English
Language : 

MC68HC05P9A Datasheet, PDF (99/158 Pages) Freescale Semiconductor, Inc – HCMOS Microcontroller Unit
Alternate Timer
Registers
Freescale Semiconductor, Inc.
Timer
I/O Registers
The read-only alternate timer registers (ATRH and ATRL) contain the
current high and low bytes of the 16-bit counter. Reading ATRH before
reading ATRL causes ATRL to be latched until ATRL is read. Reading
does not affect the timer overflow flag (TOF). Writing to the alternate
timer registers has no effect.
$001A Bit 7
6
5
4
3
2
1
Bit 0
Read: Bit 15
14
13
12
11
10
9
Bit 8
Write:
Reset:
Reset initializes ATRH to $FF
$001B Bit 7
6
5
4
3
2
1
Bit 0
Read: Bit 7
6
5
4
3
2
1
Bit 0
Write:
Reset:
Reset initializes ATRL to $FC
= Unimplemented
Figure 55. Alternate Timer Registers (ATRH and ATRL)
Reading ATRH returns the current value of the high byte of the counter
and causes the low byte to be latched into a buffer.
INTERNAL
DATA BUS
LATCH
BUFFER
READ ATRH
ATRH ($001A)
ATRL ($001B)
Figure 56. Alternate Timer Register Reads
NOTE:
To prevent interrupts between readings of ATRH and ATRL, set the
interrupt mask (I bit) in the condition code register before reading ATRH,
and clear the mask after reading ATRL.
19-tim1ic1oc_a
MOTOROLA
Timer
99
For More Information On This Product,
Go to: www.freescale.com