27.3.7 Configuration (TPMx_CONF)
This register selects the behavior in debug and wait modes and the use of an external
global time base.
Address: Base a 84h offset
Bit
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
R
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
TPMx_CONF field descriptions
Field
Description
31–28
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
27–24
TRGSEL
Trigger Select
Selects the input trigger to use for starting the counter and/or reloading the counter. This field should only
be changed when the TPM counter is disabled. See Chip configuration section for available options.
23–19
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
18
CROT
Counter Reload On Trigger
When set, the TPM counter will reload with zero (and initialize PWM outputs to their default value) when a
rising edge is detected on the selected trigger input.
The trigger input is ignored if the TPM counter is paused during debug mode or doze mode. This field
should only be changed when the TPM counter is disabled.
0
Counter is not reloaded due to a rising edge on the selected input trigger
1
Counter is reloaded when a rising edge is detected on the selected input trigger
17
CSOO
Counter Stop On Overflow
When set, the TPM counter will stop incrementing once the counter equals the MOD value and
incremented (this also sets the TOF). Reloading the counter with zero due to writing to the counter register
or due to a trigger input does not cause the counter to stop incrementing. Once the counter has stopped
incrementing, the counter will not start incrementing unless it is disabled and then enabled again, or a
rising edge on the selected trigger input is detected when CSOT set.
Table continues on the next page...
Memory Map and Register Definition
KL02 Sub-Family Reference Manual, Rev. 2.1, July 2013
420
Freescale Semiconductor, Inc.