118
CHAPTER 7 BASIC TIMER
User’s Manual U15104EJ2V0UD
7.3 Operation of Basic Timer
An example of the operation of the basic timer is shown below.
In this example, the basic timer operates as an interval timer that repeatedly generates an interrupt at time intervals
of 100 ms. Interrupt request signal (INTBTM0) is generated every 100 ms.
The timer clock frequency is 10 Hz.
Figure 7-2. Operation Timing of Basic Timer
By polling the interrupt request flag (BTMIF0) of this basic timer by software, time management can be carried
out. Note that BTMIF0 is not a Read & Reset flag.
Figure 7-3. Operating Timing to Poll BTMIF0 Flag
For the registers controlling the basic timer, refer to CHAPTER 12 INTERRUPT FUNCTIONS.
Timer clock
(10 Hz)
BTMIF0 flag
1 when polled by software
0 is written by software
Always 1 unless 0 is
written by software
Interrupt acknowledged
Timer clock
(10 Hz)
INTBTM0
Interval time
(100 ms)
Interval time
Interval time
Interrupt acknowledged
Содержание mPD178053
Страница 2: ...2 User s Manual U15104EJ2V0UD MEMO ...