Datasheet

Timebase Register Description
MC68HC908AP Family Data Sheet, Rev. 4
Freescale Semiconductor 153
TBR[2:0] — Timebase Rate Selection
These read/write bits are used to select the rate of timebase interrupts as shown in Table 10-1.
NOTE
Do not change TBR[2:0] bits while the timebase is enabled (TBON = 1).
TACK — Timebase ACKnowledge
The TACK bit is a write-only bit and always reads as 0. Writing a logic 1 to this bit clears TBIF, the
timebase interrupt flag bit. Writing a logic 0 to this bit has no effect.
1 = Clear timebase interrupt flag
0 = No effect
TBIE — Timebase Interrupt Enabled
This read/write bit enables the timebase interrupt when the TBIF bit becomes set. Reset clears the
TBIE bit.
1 = Timebase interrupt enabled
0 = Timebase interrupt disabled
TBON — Timebase Enabled
This read/write bit enables the timebase. Timebase may be turned off to reduce power consumption
when its function is not necessary. The counter can be initialized by clearing and then setting this bit.
Reset clears the TBON bit.
1 = Timebase enabled
0 = Timebase disabled and the counter initialized to 0’s
Table 10-1. Timebase Rate Selection for OSCCLK = 32.768-kHz
TBR2 TBR1 TBR0 Divider
Timebase Interrupt Rate
Hz ms
0 0 0 262144 0.125 8000
0 0 1 131072 0.25 4000
0 1 0 65536 0.5 2000
0 1 1 32768 1 1000
1 0 0 64 512 ~2
1 0 1 32 1024 ~1
1 1 0 16 2048 ~0.5
1 1 1 8 4096 ~0.24