Explanation Of Operations Of Timebase Timer Functions - Fujitsu F2MCTM-16LX Hardware Manual

16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 11 TIMEBASE TIMER
11.5

Explanation of Operations of Timebase Timer Functions

The timebase timer operates as an interval timer or an oscillation stabilization wait time
timer. It also supplies a clock to peripherals.
Interval Timer Function
Interrupt generation at every interval time enables the timebase timer to be used as an interval timer.
Operating the timebase timer as an interval timer requires the settings shown in Figure 11.5-1 .
Setting of timebase timer
Timebase timer control register
(TBTC)
: Undefined bit
: Used bit
0
: Set to "0".
1
: Set to "1".
Operations of the Interval Timer Functions
The timebase timer can be used as an interval timer by generating an interrupt at every set interval time.
• The timebase timer continues incrementing in synchronization with the main clock (a half
frequency of the oscillation clock) while the oscillation clock is active.
• When the timebase timer counter reaches the interval time set by the interval time select bits
in the timebase timer control register (TBTC: TBC1, TBC0), it causes an overflow (carrying)
and the overflow interrupt request flag bit (TBTC: TBOF) is set to "1".
• When the overflow interrupt request flag bit is set (TBTC: TBOF = 1) with interrupts enabled
(TBTC: TBIE = 1), an interrupt request is generated.
Note:
The interval time may be longer than the one set by clearing the timebase timer counter.
Example of operation for timebase timer
Figure 11.5-2 gives an example of the operation that the timebase timer performs under the following
conditions:
• A power-on reset occurs.
• The mode transits to the sleep mode during the operation of the interval timer.
• The mode transits to the stop mode during the operation of the interval timer.
• A request to clear the timebase timer counter is issued.
188
Figure 11.5-1 Setting of Timebase Timer
bit15 14
13
12
Re-
TBIE TBOF
served
1
11
10
9 bit8
TBR
TBC1TBC0
0
0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the F2MCTM-16LX and is the answer not in the manual?

This manual is also suitable for:

Mb90360 series

Table of Contents

Save PDF