English
Language : 

MC68HC912DG128 Datasheet, PDF (245/452 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Enhanced Capture Timer
Timer Registers
BIT 7
6
5
4
3
2
1
BIT 0
$00B6
BIt 15
14
13
12
11
10
9
Bit 8
MCCNTH
$00B7
Bit 7
6
5
4
3
2
1
Bit 0
MCCNTL
RESET:
1
1
1
1
1
1
1
1
MCCNTH/L — Modulus Down-Counter Count Register
$00B6, $00B7
Read: any time
Write: any time
A full access for the counter register should take place in one clock cycle.
A separate read/write for high byte and low byte will give different result
than accessing them as a word.
If the RDMCL bit in MCCTL register is cleared, reads of the MCCNT
register will return the present value of the count register. If the RDMCL
bit is set, reads of the MCCNT will return the contents of the load
register.
If a $0000 is written into MCCNT and modulus counter while LATQ and
BUFEN in ICSYS ($AB) register are set, the input capture and pulse
accumulator registers will be latched.
With a $0000 write to the MCCNT, the modulus counter will stay at zero
and does not set the MCZF flag in MCFLG register.
If modulus mode is enabled (MODMC=1), a write to this address 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.
The FLMC bit in MCCTL ($A6) can be used to immediately update the
count register with the new value if an immediate load is desired.
If modulus mode is not enabled (MODMC=0), a write to this address will
clear the prescaler and will immediately update the counter register with
the value written to it and down-counts once to $0000.
MC68HC912DG128 — Rev 3.0
MOTOROLA
Enhanced Capture Timer
For More Information On This Product,
Go to: www.freescale.com
Technical Data
245