XC68HC08KH12 Motorola, XC68HC08KH12 Datasheet - Page 176

no-image

XC68HC08KH12

Manufacturer Part Number
XC68HC08KH12
Description
MICROCONTROLLER
Manufacturer
Motorola
Datasheet
Timer Interface Module (TIM)
11.9.3 TIM Counter Modulo Registers (TMODH:TMODL)
Advance Information
176
NOTE:
Address:
Address:
TCNTH do not affect the latched TCNTL value until TCNTL is read.
Reset clears the TIM counter registers. Setting the TIM reset bit (TRST)
also clears the TIM counter registers.
If you read TCNTH during a break interrupt, be sure to unlatch TCNTL
by reading TCNTL before exiting the break interrupt. Otherwise, TCNTL
retains the value latched during the break.
The read/write TIM modulo registers contain the modulo value for the
TIM counter. When the TIM counter reaches the modulo value, the
overflow flag (TOF) becomes set, and the TIM counter resumes counting
from $0000 at the next clock. Writing to the high byte (TMODH) inhibits
the TOF bit and overflow interrupts until the low byte (TMODL) is written.
Reset sets the TIM counter modulo registers.
Reset:
Reset:
Read:
Write:
Read:
Write:
Figure 11-4. TIM Counter Registers (TCNTH:TCNTL)
$0012
$0013
Bit15
Bit 7
Bit 7
Bit7
0
0
Timer Interface Module (TIM)
TCNTH
TCNTL
= Unimplemented
Bit14
Bit6
6
0
6
0
Bit13
Bit5
5
0
5
0
Bit12
Bit4
4
0
4
0
Bit11
Bit3
3
0
3
0
MC68HC(7)08KH12
Bit10
Bit2
2
0
2
0
Bit9
Bit1
1
0
1
0
MOTOROLA
Rev. 1.0
Bit 0
Bit 0
Bit8
Bit0
0
0

Related parts for XC68HC08KH12