Chapter 26 eTimer
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
721
ONCE
Count Once
This bit selects continuous or one-shot counting mode.
0 Count repeatedly.
1 Count until compare and then stop. When output mode 0x4 is used, the counter reinitializes
after reaching the COMP1 value and continues to count to the COMP2 value, then stops.
LENGTH
Count Length
This bit determines whether the counter counts to the compare value and then reinitializes itself
to the value specified in the LOAD, CMPLD1, or CMPLD2 registers, or the counter continues
counting past the compare value, to the binary roll over.
0 Continue counting to roll over.
1 Count until compare, then reinitialize.
The value that the counter is reinitialized with depends on the settings of CLC1 and CLC2. If
neither of these indicates the counter is to be loaded from one of the CMPLD registers, then the
LOAD register reinitializes the counter upon matching either COMP register. If one of CLC1 or
CLC2 indicates that the counter is to be loaded from one of the CMPLD registers, then the
counter will reinitialize to the value in the appropriate CMPLD register upon a match with the
appropriate COMP register. If both of the CLC1 and CLC2 fields indicate that the counter is to
be loaded from the CMPLD registers, then CMPLD1 will have priority if both compares happen
at the same value.
When output mode 0x4 is used, alternating values of COMP1 and COMP2 are used to generate
successful comparisons. For example, the counter counts until COMP1 value is reached,
reinitializes, then counts until COMP2 value is reached, reinitializes, then counts until COMP1
value is reached, etc.
DIR
Count Direction
This bit selects either the normal count direction up, or the reverse direction, down.
0 Count up.
1 Count down.
SECSRC
Secondary Count Source
These bits identify the source to be used as a count command or timer command. The selected
input can trigger the timer to capture the current value of the CNTR register. The selected input
can also be used to specify the count direction. The polarity of the signal can be inverted by the
SIPS bit of the CTRL2 register.
Table 26-10. Count source values
Value
Meaning
Value
Meaning
00000
Counter #0 input pin
10000
Counter #0 output
00001
Counter #1 input pin
10001
Counter #1 output
00010
Counter #2 input pin
10010
Counter #2 output
00011
Counter #3 input pin
10011
Counter #3 output
00100
Counter #4 input pin
10100
Counter #4 output
00101
Counter #5 input pin
10101
Counter #5 output
00110
Reserved
10110
Reserved
00111
Reserved
10111
Reserved
01000
Auxiliary input #0 pin
11000
IP Bus clock divide by 1 prescaler
Table 26-9. CTRL1 field descriptions (continued)
Field
Description
Содержание 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 ...