PIC18F2331 MICROCHIP [Microchip Technology], PIC18F2331 Datasheet - Page 199

no-image

PIC18F2331

Manufacturer Part Number
PIC18F2331
Description
28/40/44-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:
PIC18F2331-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2331-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
FIGURE 17-14:
17.6.4
Center-aligned PWM signals are produced by the
module when the PWM time base is configured in an
Up/Down Counting mode (see Figure 17-15). The
PWM compare output is driven to the active state when
the value of the Duty Cycle register matches the value
of PTMR and the PWM time base is counting
downwards (PTDIR = 1). The PWM compare output
will be driven to the inactive state when the PWM time
base is counting upwards (PTDIR = 0) and the value in
the PTMR register matches the duty cycle value. If the
value in a particular Duty Cycle register is zero, then
the output on the corresponding PWM pin will be
FIGURE 17-15:
 2003 Microchip Technology Inc.
Start of
first
PWM
Period
PTPER
Duty
Cycle
0
CENTER-ALIGNED PWM
PWM output
PTMR Value
DUTY CYCLE UPDATE TIMES IN UP/DOWN COUNTING MODE WITH DOUBLE
UPDATES
START OF CENTER-ALIGNED PWM
PTMR
Value
Duty Cycle
Period/2
PIC18F2331/2431/4331/4431
Duty cycle value loaded from buffer register
Period
Preliminary
inactive for the entire PWM period. In addition, the
output on the PWM pin will be active for the entire PWM
period if the value in the Duty Cycle register is equal to
or greater than the value in the PTPER register.
Note:
New values written to duty cycle buffer.
When
Center-aligned mode, the period register
(PTPER) is loaded into the PWM Timer
register (PTMR) and the PTMR is
configured
down-counting. This is done to ensure that
all the PWM signals don’t start at the same
time.
the
Period
automatically
PWM
DS39616B-page 197
is
started
to
start
in

Related parts for PIC18F2331