English
Language : 

MC68HC05F8 Datasheet, PDF (58/126 Pages) Motorola, Inc – High-density complementary metal oxide semiconductor(HCMOS) microcontroller unit
Freescale Semiconductor, Inc.
6.2
TIMER B - RELOADABLE TIMER
The Reloadable Timer is similar to the Free-running Timer, with the following differences:
• The 16-bit timer counter is automatically reloaded from the preset timer registers upon
underflow occurs.
• There is no input capture function, i.e. no TCAP.
• There is no output compare function, i.e. no TCMP.
The Reloadable Timer is convenient for generating periodic interrupts without the aid of software.
In addition, the timer counter value can be read in a similar way to timer A.
6.2.1 Functional Description
6
See Figure 6-6 for a block diagram of the Reloadable Timer.
The timer B is driven by a clock which is derived from E divided by 4, 8, 16 or 32. In the Control
Register, two bits TCSB0 and TCSB1 are used to select the divider for the prescaler, TBOIE is an
interrupt enable bit, TMEB is a Timer B enable bit which will inhibit the driving clock when it is clear.
Upon reset, the Control Register is cleared, Timer B is disabled, Timer B interrupt is inhibited, the
free running counter and the Preset Register are all configured to $FFFF.
The preset register should be written with proper value before enable the Timer B. A low to high
transition of the TMBE bit loads the timer counter with the content in the preset register and
activates the driving clock, then the free running counter starts to count down, when it rolls over
from $0001 to $0000 an interrupt is generated with timer B underflow flag set if the TBOIE is set,
meanwhile a “load” signal is produced to reload the counter with the content of the preset register,
thus interruption will occur periodically.
6.2.2 Resolution and Maximum Period
When a 3.579MHz crystal is used, the timer resolution and its maximum period are shown in
Table 6-2.
Table 6-2 Reloadable Timer Resolution and Maximum Period
TCSB1
TCSB0
0
0
0
1
1
0
1
1
Where E = internal bus clock
FREQUENCY
E/4
E/8
E/16
E/32
RESOLUTION
2.25 µs
4.5 µs
9 µs
18 µs
MAX. PERIOD PRESET $FFFF
147 ms
294 ms
588 ms
1176 ms
MOTOROLA
6-10
TIMERS
For More Information On This Product,
Go to: www.freescale.com
TPG
MC68HC05F8