Datasheet

Standard Timer (TIM)
M68HC12B Family Data Sheet, Rev. 9.1
144 Freescale Semiconductor
12.3.4 Timer Count Register
Read: Anytime
Write: Has no meaning or effect in normal mode; only writable in special modes
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 a different result than accessing them as a word.
The period of the first count after a write to the TCNT registers may be a different size because the write
is not synchronized with the prescaler clock.
12.3.5 Timer System Control Register
Read: Anytime
Write: Anytime
TEN — Timer Enable Bit
If for any reason the timer is not active, there is no ÷64 clock for the pulse accumulator since the E ÷
64 is generated by the timer prescaler.
0 = Disables timer, including the counter; can be used for reducing power consumption
1 = Allows timer to function normally
TSWAI — Timer Stops While in Wait Bit
Timer interrupts cannot be used to get the MCU out of wait.
0 = Allows timer to continue running during wait
1 = Disables timer when MCU is in wait mode
Address: $0084
Bit 7654321Bit 0
Read: Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8
Write:
Reset:00000000
Address: $0085
Bit 7654321Bit 0
Read: Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Write:
Reset:00000000
= Unimplemented
Figure 12-6. Timer Count Register (TCNT)
Address: $0086
Bit 7654321Bit 0
Read:
TEN TSWAI TSBCK TFFCA
0000
Write:
Reset:00000000
= Unimplemented
Figure 12-7. Timer System Control Register (TSCR)