Reading the CNT register adds two wait states to the register access due to
synchronization delays.
Address: Base a 4h offset
Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
TPMx_CNT field descriptions
Field
Description
31–16
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
COUNT
Counter value
27.3.3 Modulo (TPMx_MOD)
The Modulo register contains the modulo value for the TPM counter. When the TPM
counter reaches the modulo value and increments, the overflow flag (TOF) is set and the
next value of TPM counter depends on the selected counting method (see
).
Writing to the MOD register latches the value into a buffer. The MOD register is updated
with the value of its write buffer according to
to the MOD write buffer are ignored until the register has been updated.
It is recommended to initialize the TPM counter (write to CNT) before writing to the
MOD register to avoid confusion about when the first counter overflow will occur.
Address: Base a 8h offset
Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
TPMx_MOD field descriptions
Field
Description
31–16
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
MOD
Modulo value
When writing this field, all bytes must be written at the same time.
Chapter 27 Timer/PWM Module (TPM)
KL02 Sub-Family Reference Manual, Rev. 2.1, July 2013
Freescale Semiconductor, Inc.
415