Modulo (Tpmx_Mod) - NXP Semiconductors MKL27Z128VFM4 Reference Manual

Table of Contents

Advertisement

Address: Base address + 4h offset
Bit
31
30
29
28
27
26
R
W
0
0
0
0
0
0
Reset
Field
31–16
This field is reserved.
Reserved
This read-only field is reserved and always has the value 0.
COUNT
Counter value

29.4.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 address + 8h offset
Bit
31
30
29
28
27
26
R
W
0
0
0
0
0
0
Reset
Field
31–16
This field is reserved.
Reserved
This read-only field is reserved and always has the value 0.
MOD
Modulo value
This field must be written with single 16-bit or 32-bit access.
Freescale Semiconductor, Inc.
25
24
23
22
21
20
19
18
0
0
0
0
0
0
0
0
0
TPMx_CNT field descriptions
25
24
23
22
21
20
19
18
0
0
0
0
0
0
0
0
0
TPMx_MOD field descriptions
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
17
16
15
14
13
12
11
10
0
0
0
0
0
0
0
0
Description
MOD Register Update
17
16
15
14
13
12
11
10
0
0
1
1
1
1
1
1
Description
Chapter 29 Timer/PWM Module (TPM)
9
8
7
6
5
4
3
COUNT
0
0
0
0
0
0
0
Counter
. Additional writes
9
8
7
6
5
4
3
MOD
1
1
1
1
1
1
1
2
1
0
0
0
0
).
2
1
0
1
1
1
465

Advertisement

Table of Contents
loading

Table of Contents