English
Language : 

PIC24FJ256DA210 Datasheet, PDF (204/408 Pages) Microchip Technology – 64/100-Pin, 16-Bit Flash Microcontrollers with Graphics Controller and USB On-The-Go (OTG)
PIC24FJ256DA210 FAMILY
FIGURE 14-2:
OUTPUT COMPARE BLOCK DIAGRAM (DOUBLE-BUFFERED, 16-BIT PWM MODE)
OCTSELx
SYNCSELx
TRIGSTAT
TRIGMODE
OCTRIG
OCxCON1
OCxCON2
OCxR and
DCB<1:0>
Rollover/Reset
OCxR and
DCB<1:0> Buffers
OC Clock
Sources
Trigger and
Sync Sources
Clock
Select
Increment
Reset
Trigger and
Sync Logic
Match Event
Comparator
OCxTMR
Match
Event
Rollover
Comparator
OCxRS Buffer
Match
Event
OCMx
OCINV
OCTRIS
FLTOUT
FLTTRIEN
FLTMD
ENFLT<2:0>
OCFLT<2:0>
DCB<1:0>
OC Output and
Fault Logic
OCx Pin(1)
OCFA/OCFB(2)
Rollover/Reset
Reset
OCxRS
OCx Interrupt
Note 1:
2:
The OCx outputs must be assigned to an available RPn pin before use. See Section 10.4 “Peripheral Pin
Select (PPS)” for more information.
The OCFA/OCFB fault inputs must be assigned to an available RPn/RPIn pin before use. See Section 10.4
“Peripheral Pin Select (PPS)” for more information.
14.3.1 PWM PERIOD
The PWM period is specified by writing to PRy, the
Timer Period register. The PWM period can be
calculated using Equation 14-1.
EQUATION 14-1: CALCULATING THE PWM PERIOD(1)
PWM Period = [(PRy) + 1 • TCY • (Timer Prescale Value)
where:
PWM Frequency = 1/[PWM Period]
Note 1: Based on TCY = TOSC * 2; Doze mode and PLL are disabled.
Note: A PRy value of N will produce a PWM period of N + 1 time base count cycles. For example, a value of 7
written into the PRy register will yield a period consisting of 8 time base cycles.
DS39969B-page 204
 2010 Microchip Technology Inc.