DSPIC33FJ12MC202 Microchip Technology Inc., DSPIC33FJ12MC202 Datasheet - Page 148
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
DSPIC33FJ12MC202
Manufacturer Part Number
DSPIC33FJ12MC202
Description
High-performance, 16-bit Digital Signal Controllers
Manufacturer
Microchip Technology Inc.
Datasheet
1.DSPIC33FJ12MC202.pdf
(284 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DSPIC33FJ12MC202-E/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
DSPIC33FJ12MC202-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
DSPIC33FJ12MC202-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
- Current page: 148 of 284
- Download datasheet (5Mb)
dsPIC33FJ12MC201/202
14.3
The PWM time base is provided by a 15-bit timer with
a prescaler and postscaler. The time base is accessible
via the P
bit, PTDIR, that indicates the present count direction of
the PWM time base.
• If PTDIR is cleared, P
• If PTDIR is set, PxTMR is counting downward.
The PWM time base is configured using the PxTCON
SFR. The time base is enabled or disabled by setting
or clearing the PTEN bit in the P
is not cleared when the PTEN bit is cleared in software.
The P
P
to P
matches the value in P
will either reset to ‘0’ or reverse the count direction on
the next occurring clock cycle. The action taken
depends on the operating mode of the time base.
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
These four modes are selected by the PTMOD<1:0>
bits in the P
support center-aligned PWM generation. The Single-
Shot mode allows the PWM module to support pulse
control of certain Electronically Commutative Motors
(ECMs).
The interrupt signals generated by the PWM time base
depend on the mode selection bits (PTMOD<1:0>) and
the postscaler bits (PTOPS<3:0>) in the P
DS70265B-page 146
X
Note:
for double updates
TMR. The user application must write a 15-bit value
X
TPER<14:0>. When the value in P
X
TPER SFR sets the counting period for
X
PWM Time Base
TMR SFR. P
If the PWM Period register is set to
0x0000, the timer will stop counting and
the interrupt and Special Event Trigger will
not be generated, even if the special event
value is also 0x0000. The module will not
update the PWM Period register if it is
already at 0x0000; therefore, the user
application must disable the module in to
update the PWM Period register.
X
TCON SFR. The Up/Down Count modes
X
TMR<15> is a read-only status
X
X
TMR is counting upward.
TPER<14:0>, the time base
X
TCON SFR. P
X
X
TCON SFR.
TMR<14:0>
X
TMR
Preliminary
14.3.1
In Free-Running mode, the PWM time base counts
upwards until the value in the PWM Time Base Period
register (P
reset on the following input clock edge, and the time
base will continue to count upward as long as the PTEN
bit remains set.
When the PWM time base is in the Free-Running mode
(PTMOD<1:0> = 00), an interrupt event is generated
each time a match with the P
and the P
selection bits can be used in this mode of the timer to
reduce the frequency of interrupt events.
14.3.2
In Single-Shot mode, the PWM time base begins
counting upward when the PTEN bit is set. When the
value in the P
ister, the P
input clock edge, and the PTEN bit will be cleared by
the hardware to halt the time base.
When the PWM time base is in Single-Shot mode
(PTMOD<1:0> = 01), an interrupt event is generated
when a match with the P
PxTMR register is reset to zero on the following input
clock edge and the PTEN bit is cleared. The postscaler
selection bits have no effect in this mode of the timer.
14.3.3
In Continuous Up/Down Count modes, the PWM time
base counts upward until the value in the P
register is matched. The timer will begin counting
downwards on the following input clock edge. The
PTDIR bit in the P
indicates the counting direction. The PTDIR bit is set
when the timer counts downward.
In the Up/Down Count mode (PTMOD<1:0> = 10), an
interrupt event is generated each time the value of the
P
begins to count upward. The postscaler selection bits
can be used in this mode of the timer to reduce the
frequency of interrupt events.
X
TMR register becomes zero and the PWM time base
X
X
TMR register is reset to zero. The postscaler
X
TPER) is matched. The P
FREE-RUNNING MODE
SINGLE-SHOT MODE
CONTINUOUS UP/DOWN COUNT
MODES
TMR register will be reset on the following
X
TMR register matches the P
X
TMR SFR is read-only and
© 2007 Microchip Technology Inc.
X
TPER register occurs. The
X
TPER register occurs
X
TMR register is
X
TPER reg-
X
TPER
Related parts for DSPIC33FJ12MC202
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![dsPIC33EP32MC204-H/ML](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 32KB FL 4KB RAM 60MHz 44Pin
Manufacturer:
Microchip Technology
![dsPIC33EP128GP502-H/MM](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 128KB FL 16KB RAM 60MHz 28Pin
Manufacturer:
Microchip Technology
![dsPIC33EP32GP504-H/TL](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 32KB FL 4KB RAM 60MHz 44Pin
Manufacturer:
Microchip Technology
![dsPIC33EP32MC204-H/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 32KB FL 4KB RAM 60MHz 44Pin
Manufacturer:
Microchip Technology
![dsPIC33EP32MC502-H/MM](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 32KB FL 4KB RAM 60MHz 28Pin
Manufacturer:
Microchip Technology
![dsPIC33EP128GP504-E/TL](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 128KB FL 16KB RAM 60MHz 44Pin
Manufacturer:
Microchip Technology
![dsPIC33EP32GP502-H/MM](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 32KB FL 4KB RAM 60MHz 28Pin
Manufacturer:
Microchip Technology
![dsPIC33EP128GP504-H/ML](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 128KB FL 16KB RAM 60MHz 44Pin
Manufacturer:
Microchip Technology
![dsPIC33EP32MC204-H/TL](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 32KB FL 4KB RAM 60MHz 44Pin
Manufacturer:
Microchip Technology
![dsPIC33EP256MC204-E/TL](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 256KB FL32KB RAM 60MHz 44Pin
Manufacturer:
Microchip Technology
![dsPIC33EP32GP502-H/SO](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 32KB FL 4KB RAM 60MHz 28Pin
Manufacturer:
Microchip Technology
![dsPIC33EP32GP504-H/ML](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 32KB FL 4KB RAM 60MHz 44Pin
Manufacturer:
Microchip Technology
![dsPIC33EP128GP502-E/SP](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 128KB FL 16KB RAM 60MHz 28Pin
Manufacturer:
Microchip Technology
![dsPIC33EP32GP504-H/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 32KB FL 4KB RAM 60MHz 44Pin
Manufacturer:
Microchip Technology
![dsPIC33EP32MC202-H/MM](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Digital Signal Processors & Controllers - DSP, DSC 32KB FL 4KB RAM 60MHz 28Pin
Manufacturer:
Microchip Technology