mc9s12hz256v2 Freescale Semiconductor, Inc, mc9s12hz256v2 Datasheet - Page 300

no-image

mc9s12hz256v2

Manufacturer Part Number
mc9s12hz256v2
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Chapter 10 Stepper Stall Detector (SSDV1)
10.3.2.5
Read: anytime
Write: anytime.
If the RDMCL bit in the MDCCTL register is cleared, reads of the MDCCNT register will return the
present value of the count register. If the RDMCL bit is set, reads of the MDCCNT register will return the
contents of the load register.
With a 0x0000 write to the MDCCNT register, the modulus counter stays at zero and does not set the
MCZIF flag in the SSDFLG register.
If modulus mode is not enabled (MODMC = 0), a write to the MDCCNT register immediately updates the
load register and the counter register with the value written to it. The modulus counter will count down
from this value and will stop at 0x0000.
If modulus mode is enabled (MODMC = 1), a write to the MDCCNT register updates 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. The FLMC bit in the MDCCTL register can be used to immediately update the count register
with the new value if an immediate load is desired.
The modulus down counter clock frequency is the bus frequency divided by 64 or 512.
300
Reset
Reset
W
W
R
R
Modulus Down-Counter Count Register (MDCCNT)
15
1
1
7
A separate read/write for high byte and low byte gives a different result than
accessing the register as a word.
Figure 10-6. Modulus Down-Counter Count Register High (MDCCNT)
Figure 10-7. Modulus Down-Counter Count Register Low (MDCCNT)
14
1
1
6
MC9S12HZ256 Data Sheet, Rev. 2.05
13
1
1
5
NOTE
12
1
1
4
MDCCNT
MDCCNT
11
1
1
3
10
1
1
2
Freescale Semiconductor
1
1
9
1
1
1
8
0

Related parts for mc9s12hz256v2