![](http://datasheet.mmic.net.cn/370000/P9S12XEP100J1VVLR_datasheet_16728329/P9S12XEP100J1VVLR_578.png)
Chapter 14 Enhanced Capture Timer (ECT16B8CV3)
MC9S12XE-Family Reference Manual , Rev. 1.07
578
Freescale Semiconductor
14.4.2.31 Modulus Down-Counter Count Register (MCCNT)
Read: Anytime
Write: Anytime.
All bits reset to one.
A full access for the counter register will take place in one clock cycle.
NOTE
A separate read/write for high byte and low byte will give different results
than accessing them as a word.
IftheRDMCLbitinMCCTLregisteriscleared,readsoftheMCCNTregisterwillreturnthepresentvalue
of the count register. If the RDMCL bit is set, reads of the MCCNT will return the contents of the load
register.
If a 0x0000 is written into MCCNT when LATQ and BUFEN in ICSYS register are set, the input capture
and pulse accumulator registers will be latched.
With a 0x0000 write to the MCCNT, the modulus counter will stay at zero and does not set the MCZF flag
in MCFLG register.
Ifthemodulusdowncounterisenabled(MCEN=1)andmodulusmodeisenabled(MODMC=1),awrite
to MCCNT will update the load register with the value written to it. The count register will not be updated
with the new value until the next counter underflow.
If modulus mode is not enabled (MODMC = 0), a write to MCCNT will clear the modulus prescaler and
will immediately update the counter register with the value written to it and down-counts to 0x0000 and
stops.
The FLMC bit in MCCTL can be used to immediately update the count register with the new value if an
immediate load is desired.
Module Base + 0x0036
15
14
13
12
11
10
9
8
R
W
MCCNT15
MCCNT14
MCCNT13
MCCNT12
MCCNT11
MCCNT10
MCCNT9
MCCNT8
Reset
1
1
1
1
1
1
1
1
Figure 14-56. Modulus Down-Counter Count Register High (MCCNT)
Module Base + 0x0037
7
6
5
4
3
2
1
0
R
W
MCCNT7
MCCNT6
MCCNT5
MCCNT4
MCCNT3
MCCNT2
MCCNT1
MCCNT0
Reset
1
1
1
1
1
1
1
1
Figure 14-57. Modulus Down-Counter Count Register Low (MCCNT)