s908ey16g2vfar Freescale Semiconductor, Inc, s908ey16g2vfar Datasheet - Page 229

no-image

s908ey16g2vfar

Manufacturer Part Number
s908ey16g2vfar
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
18.8.2 TIMB Counter Registers
The two read-only TIMB counter registers contain the high and low bytes of the value in the TIMB counter.
Reading the high byte (TBCNTH) latches the contents of the low byte (TBCNTL) into a buffer. Subsequent
reads of TBCNTH do not affect the latched TBCNTL value until TBCNTL is read. Reset clears the TIMB
counter registers. Setting the TIMB reset bit (TRST) also clears the TIMB counter registers.
18.8.3 TIMB Counter Modulo Registers
The read/write TIMB modulo registers contain the modulo value for the TIMB counter. When the TIMB
counter reaches the modulo value, the overflow flag (TOF) becomes set, and the TIMB counter resumes
counting from $0000 at the next timer clock. Writing to the high byte (TMODH) inhibits the TOF bit and
overflow interrupts until the low byte (TMODL) is written. Reset sets the TIMB counter modulo registers.
Freescale Semiconductor
Register Name and Address
Register Name and Address
Register Name and Address
Register Name and Address
If TBCNTH is read during a break interrupt, be sure to unlatch TBCNTL by
reading TBCNTL before exiting the break interrupt. Otherwise, TBCNTL
retains the value latched during the break.
Reset the TIMB counter before writing to the TIMB counter modulo registers.
Reset:
Reset:
Reset:
Reset:
Read:
Read:
Read:
Read:
Write:
Write:
Write:
Write:
Figure 18-6. TIMB Counter Modulo Registers (TMODH and TMODL)
Figure 18-5. TIMB Counter Registers (TBCNTH and TBCNTL)
BIT 15
BIT 15
BIT 7
BIT 7
Bit 7
Bit 7
Bit 7
Bit 7
0
0
1
1
MC68HC908EY16A • MC68HC908EY8A Data Sheet, Rev. 1
= Unimplemented
BIT 14
BIT 14
BIT 6
BIT 6
6
0
6
0
6
1
6
1
TBCNTH — $002C
TBCNTL — $002D
TBMODH — $002E
TBMODL — $002F
BIT 13
BIT 13
BIT 5
BIT 5
5
0
5
0
5
1
5
1
NOTE
NOTE
BIT 12
BIT 12
BIT 4
BIT 4
4
0
4
0
4
1
4
1
BIT 11
BIT 11
BIT 3
BIT 3
3
0
3
0
3
1
3
1
BIT 10
BIT 10
BIT 2
BIT 2
2
0
2
0
2
1
2
1
BIT 9
BIT 1
BIT 9
BIT 1
1
0
1
0
1
1
1
1
BIT 0
BIT 8
BIT 8
BIT 0
Bit 0
Bit 0
Bit 0
Bit 0
0
0
1
1
I/O Registers
229

Related parts for s908ey16g2vfar