dsPIC33FJ32MC204 Microchip Technology, dsPIC33FJ32MC204 Datasheet - Page 153

no-image

dsPIC33FJ32MC204

Manufacturer Part Number
dsPIC33FJ32MC204
Description
(dsPIC33FJ16MC304 / dsPIC33FJ32MC20x) 16-bit Microcontrollers
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
dsPIC33FJ32MC204-E/PT
Manufacturer:
PANASONIC
Quantity:
12 000
Part Number:
dsPIC33FJ32MC204-E/PT
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
dsPIC33FJ32MC204-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
dsPIC33FJ32MC204-I
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
dsPIC33FJ32MC204-I/ML
Manufacturer:
Microchip
Quantity:
229
Part Number:
dsPIC33FJ32MC204-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
dsPIC33FJ32MC204-I/PT
0
Part Number:
dsPIC33FJ32MC204T-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
dsPIC33FJ32MC204T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
dsPIC33FJ32MC204T-I/PT
0
14.3.4
In Double Update mode (PTMOD<1:0> = 11), an inter-
rupt event is generated each time the P
is equal to zero, as well as each time a period match
occurs. The postscaler selection bits have no effect in
this mode of the timer.
Double Update mode provides two additional functions:
• The control loop bandwidth is doubled because
• Asymmetrical center-aligned PWM waveforms can
14.3.5
The input clock to P
options of 1:1, 1:4, 1:16 or 1:64, selected by control bits
PTCKPS<1:0> in the P
counter is cleared when any of the following occur:
• A write to the P
• A write to the P
• Any device Reset
The P
written.
14.3.6
The match output of P
scaled through a 4-bit postscaler (which gives a 1:1 to
1:16 scaling).
The postscaler counter is cleared when any of the
following occur:
• A write to the P
• A write to the P
• Any device Reset
The P
ten.
© 2007 Microchip Technology Inc.
the PWM duty cycles can be updated twice per
period.
be generated, which can be useful for minimizing
output waveform distortion in certain motor control
applications.
Note:
X
X
TMR register is not cleared when P
TMR register is not cleared when P
DOUBLE UPDATE MODE
Programming a value of 0x0001 in the
PWM Period register could generate a
continuous interrupt pulse and must be
avoided.
PWM TIME BASE PRESCALER
PWM TIME BASE POSTSCALER
X
X
X
X
TMR register
TCON register
TMR register
TCON register
X
X
TMR (F
X
TMR can optionally be post-
TCON SFR. The prescaler
OSC
/4) has prescaler
X
X
TMR register
TCON is writ-
X
TCON is
Preliminary
14.4
P
period for the PWM time base. P
buffered register. The P
loaded into the P
• Free-Running and Single-Shot modes: When the
• Up/Down Count modes: When the PxTMR
The value held in the PxTPER buffer is automatically
loaded into the PxTPER register when the PWM time
base is disabled (PTEN = 0).
The
Equation 14-1:
EQUATION 14-1:
If the PWM time base is configured for one of the Up/
Down Count modes, the PWM period will be twice the
value provided by Equation 14-1.
The maximum resolution (in bits) for a given device
oscillator and PWM frequency can be determined using
Equation 14-2:
EQUATION 14-2:
14.5
Edge-aligned PWM signals are produced by the module
when the PWM time base is in Free-Running or Single-
Shot mode. For edge-aligned PWM outputs, the output
has a period specified by the value in PxTPER and a
duty cycle specified by the appropriate Duty Cycle reg-
ister (see Figure 14-3). The PWM output is driven active
at the beginning of the period (PxTMR = 0) and is driven
inactive when the value in the Duty Cycle register
matches PxTMR.
If the value in a particular Duty Cycle register is zero,
the output on the corresponding PWM pin is inactive
for the entire PWM period. In addition, the output on
the PWM pin is active for the entire PWM period if the
value in the Duty Cycle register is greater than the
value held in the PxTPER register.
T
X
P
the PxTPER register.
register is zero.
TPER is a 15-bit register used to set the counting
PWM
X
TMR register is reset to zero after a match with
PWM
= T
PWM Period
Edge-Aligned PWM
CY
Resolution =
• (P
period
X
TPER register at the following instants:
X
TPER + 1) • (P
PWM PERIOD
PWM RESOLUTION
can
log (2 • T
X
TPER buffer contents are
be
log (2)
X
TMR Prescale Value)
PWM
X
determined
TPER is a double-
DS70283B-page 151
/T
CY
)
using

Related parts for dsPIC33FJ32MC204