MC68HC05P9ACDW FREESCALE [Freescale Semiconductor, Inc], MC68HC05P9ACDW Datasheet - Page 98

no-image

MC68HC05P9ACDW

Manufacturer Part Number
MC68HC05P9ACDW
Description
HCMOS Microcontroller Unit
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
Timer
Timer Registers
98
NOTE:
The read-only timer registers (TRH and TRL) contain the current high
and low bytes of the 16-bit counter. Reading TRH before reading TRL
causes TRL to be latched until TRL is read. Reading TRL after reading
the timer status register clears the timer overflow flag (TOF). Writing to
the timer registers has no effect.
Reading TRH returns the current value of the high byte of the counter
and causes the low byte to be latched into a buffer. The buffer value
remains fixed even if the high byte is read more than once. Reading TRL
reads the transparent low byte buffer and completes the read sequence
of the timer registers.
To prevent interrupts from occurring between readings of TRH and TRL,
set the interrupt mask (I bit) in the condition code register before reading
TRH, and clear the mask after reading TRL.
Reset:
Reset:
$0018
$0019
Read:
Read:
Write:
Write:
Freescale Semiconductor, Inc.
For More Information On This Product,
Bit 15
Bit 7
Bit 7
Bit 7
Figure 53. Timer Registers (TRH and TRL)
Go to: www.freescale.com
INTERNAL
DATA BUS
= Unimplemented
READ TRH
14
6
6
6
Figure 54. Timer Register Reads
Timer
13
5
5
5
LATCH
Reset initializes TRH to $FF
Reset initializes TRL to $FC
TRH ($0018)
12
4
4
4
11
3
3
3
TRL ($0019)
BUFFER
10
2
2
2
1
1
9
1
MOTOROLA
18-tim1ic1oc_a
Bit 0
Bit 0
Bit 8
Bit 0

Related parts for MC68HC05P9ACDW