PIC18F2331-E/ML MICROCHIP [Microchip Technology], PIC18F2331-E/ML Datasheet - Page 177

no-image

PIC18F2331-E/ML

Manufacturer Part Number
PIC18F2331-E/ML
Description
28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
FIGURE 18-4:
The PWM time base can be configured for four different
modes of operation:
• Free-Running mode
• Single-Shot mode
• Continuous Up/Down Count mode
• Continuous Up/Down Count mode with interrupts
 2010 Microchip Technology Inc.
for double updates
F
OSC
/4
Comparator
PWM TIME BASE BLOCK DIAGRAM
PTPER Buffer
PTPER
1:1, 1:4, 1:16, 1:64
Zero Match
Period Match
Prescaler
PTMR Register
Comparator
Update Disable (UDIS)
Period Load
PIC18F2331/2431/4331/4431
Period Match
Zero Match
Postscaler
1:1-1:16
Zero Match
Period Match
PTMOD1
PTMOD1
PTMOD0
PTMOD1
PTMOD0
Timer Reset
Up/Down
Interrupt
PTMR Clock
Control
Control
These four modes are selected by the PTMOD<1:0>
bits in the PTCON0 register. The Free-Running mode
produces
Continuous
center-aligned PWM generation. The Single-Shot
mode allows the PWM module to support pulse control
of certain Electronically Commutated Motors (ECMs)
and produces edge-aligned operation.
Direction
Clock
Control
Timer
edge-aligned
PTDIR
PTEN
PTMR Clock
Up/Down
PTIF
Count
PWM
Duty Cycle Load
DS39616D-page 177
modes
generation.
produce
The

Related parts for PIC18F2331-E/ML