PIC18F1230 MICROCHIP [Microchip Technology], PIC18F1230 Datasheet - Page 116

no-image

PIC18F1230

Manufacturer Part Number
PIC18F1230
Description
18/20/28-Pin, Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F1230-E/SS
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18F1230-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230-I/P
Manufacturer:
MICROCHIP
Quantity:
5
Part Number:
PIC18F1230-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230T-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F1230/1330
13.1
The operation of the PWM module is controlled by a
total of 20 registers. Eight of these are used to
configure the features of the module:
• PWM Timer Control Register 0 (PTCON0)
• PWM Timer Control Register 1 (PTCON1)
• PWM Control Register 0 (PWMCON0)
• PWM Control Register 1 (PWMCON1)
• Dead-Time Control Register (DTCON)
• Output Override Control Register (OVDCOND)
• Output State Register (OVDCONS)
• Fault Configuration Register (FLTCONFIG)
There are also 12 registers that are configured as six
register pairs of 16 bits. These are used for the
configuration values of specific features. They are:
• PWM Time Base Registers (PTMRH and PTMRL)
• PWM Time Base Period Registers (PTPERH and
• PWM Special Event Compare Registers
• PWM Duty Cycle #0 Registers
• PWM Duty Cycle #1 Registers
• PWM Duty Cycle #2 Registers
All of these register pairs are double-buffered.
DS39758B-page 114
PTPERL)
(SEVTCMPH and SEVTCMPL)
(PDC0H and PDC0L)
(PDC1H and PDC1L)
(PDC2H and PDC2L)
Control Registers
Advance Information
disabled by respectively setting or clearing the PTEN bit
13.2
The PWM module supports several modes of operation
that are beneficial for specific power and motor control
applications. Each mode of operation is described in
subsequent sections.
The PWM module is composed of several functional
blocks. The operation of each is explained separately
in relation to the several modes of operation:
• PWM Time Base
• PWM Time Base Interrupts
• PWM Period
• PWM Duty Cycle
• Dead-Time Generators
• PWM Output Overrides
• PWM Fault Inputs
• PWM Special Event Trigger
13.3
The PWM time base is provided by a 12-bit timer with
prescaler and postscaler functions. A simplified block
diagram of the PWM time base is shown in Figure 13-4.
The PWM time base is configured through the PTCON0
and PTCON1 registers. The time base is enabled or
in the PTCON1 register.
Note:
Module Functionality
PWM Time Base
The PTMR register pair (PTMRL:PTMRH)
is not cleared when the PTEN bit is
cleared in software.
© 2006 Microchip Technology Inc.

Related parts for PIC18F1230