Chapter 26 eTimer
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
737
NOTE
It is possible to connect counters together by using the other (non-cascade)
counter modes and selecting the outputs of other counters as a clock source.
In this case, the counters are operating in a “ripple” mode, where higher
order counters will transition a clock later than a purely synchronous design.
One channel can be cascaded with any other channel, but channels cannot
be cascaded more than two deep. Separate cascades of pairs of channels can
be created. For example, channels 0 and 1 can be cascaded, and channels 5
and 4 cascaded separately. However, channels 0, 1, and 5 cannot be
cascaded.
26.7.2.10 PULSE-OUTPUT mode
When the counter is set up with CNTMODE = 001, and the OFLAG OUTMODE is set to 1111 (gated
clock output), and the ONCE bit is set, then the counter will output a pulse stream of pulses that has the
same frequency of the selected clock source, and the number of output pulses is equal to the compare value
minus the init value. This mode is useful for driving step motor systems.
NOTE
This does not work if the PRISRC is set to 11000.
Figure 26-27. Pulse Output mode
26.7.2.11 FIXED-FREQUENCY PWM mode
When the counter is set up for CNTMODE = 001, count through roll-over (LENGTH = 0), continuous
count (ONCE = 0) and the OFLAG OUTMODE is 0111 (set on compare, cleared on counter roll-over)
then the counter output yields a Pulse Width Modulated (PWM) signal with a frequency equal to the count
clock frequency divided by 65,536 and a pulse width duty cycle equal to the compare value divided by
65,536. This mode of operation is often used to drive PWM amplifiers used to power motors and inverters.
26.7.2.12 VARIABLE-FREQUENCY PWM mode
When the counter is setup for CNTMODE = 001, count till compare (LENGTH = 1), continuous count
(ONCE = 0) and the OFLAG OUTMODE is 0100 (toggle OFLAG and alternate compare registers) then
the counter output yields a Pulse Width Modulated (PWM) signal whose frequency and pulse width is
determined by the values programmed into the COMP1 and COMP2 registers, and the input clock
Pulse Stream Init
0
1
0
1
2
3
4
0
LOAD = 0, COMP1 = 4
CNTMODE
Primary
CNTR
OFLAG
Содержание SAFE ASSURE Qorivva MPC5601P
Страница 2: ...MPC5602P Microcontroller Reference Manual Rev 4 2 Freescale Semiconductor ...
Страница 4: ...MPC5602P Microcontroller Reference Manual Rev 4 4 Freescale Semiconductor ...
Страница 62: ...Chapter 2 MPC5602P Memory Map MPC5602P Microcontroller Reference Manual Rev 4 62 Freescale Semiconductor ...
Страница 104: ...Chapter 4 Clock Description MPC5602P Microcontroller Reference Manual Rev 4 104 Freescale Semiconductor ...
Страница 128: ...Chapter 6 Power Control Unit MC_PCU MPC5602P Microcontroller Reference Manual Rev 4 128 Freescale Semiconductor ...
Страница 272: ...Chapter 12 e200z0 and e200z0h Core MPC5602P Microcontroller Reference Manual Rev 4 272 Freescale Semiconductor ...
Страница 280: ...Chapter 14 Crossbar Switch XBAR MPC5602P Microcontroller Reference Manual Rev 4 280 Freescale Semiconductor ...
Страница 306: ...Chapter 16 Internal Static RAM SRAM MPC5602P Microcontroller Reference Manual Rev 4 306 Freescale Semiconductor ...
Страница 380: ...Chapter 17 Flash Memory MPC5602P Microcontroller Reference Manual Rev 4 380 Freescale Semiconductor ...
Страница 532: ...Chapter 21 LIN Controller LINFlex MPC5602P Microcontroller Reference Manual Rev 4 532 Freescale Semiconductor ...
Страница 578: ...Chapter 22 FlexCAN MPC5602P Microcontroller Reference Manual Rev 4 578 Freescale Semiconductor ...
Страница 708: ...Chapter 25 FlexPWM MPC5602P Microcontroller Reference Manual Rev 4 708 Freescale Semiconductor ...
Страница 742: ...Chapter 26 eTimer MPC5602P Microcontroller Reference Manual Rev 4 742 Freescale Semiconductor ...
Страница 760: ...Chapter 27 Functional Safety MPC5602P Microcontroller Reference Manual Rev 4 760 Freescale Semiconductor ...
Страница 782: ...Chapter 28 Fault Collection Unit FCU MPC5602P Microcontroller Reference Manual Rev 4 782 Freescale Semiconductor ...
Страница 788: ...Chapter 29 Wakeup Unit WKPU MPC5602P Microcontroller Reference Manual Rev 4 788 Freescale Semiconductor ...
Страница 798: ...Chapter 30 Periodic Interrupt Timer PIT MPC5602P Microcontroller Reference Manual Rev 4 798 Freescale Semiconductor ...
Страница 816: ...Chapter 32 Cyclic Redundancy Check CRC MPC5602P Microcontroller Reference Manual Rev 4 816 Freescale Semiconductor ...
Страница 848: ...Chapter 33 Boot Assist Module BAM MPC5602P Microcontroller Reference Manual Rev 4 848 Freescale Semiconductor ...
Страница 930: ...Chapter 36 Nexus Development Interface NDI MPC5602P Microcontroller Reference Manual Rev 4 930 Freescale Semiconductor ...