English
Language : 

TMP86P203MG Datasheet, PDF (62/108 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
7. Time Base Timer (TBT)
7.1 Time Base Timer
TMP86P203MG
Example :Set the time base timer frequency to fc/216 [Hz] and enable an INTTBT interrupt.
LD
(TBTCR) , 00000010B
; TBTCK ← 010
LD
(TBTCR) , 00001010B
; TBTEN ← 1
DI
; IMF ← 0
SET
(EIRL) . 6
EI
Table 7-1 Time Base Timer Interrupt Frequency ( Example : fc = 2.5MHz )
TBTCK
000
001
010
011
100
101
110
111
Time Base Timer Interrupt Frequency [Hz]
NORMAL1 Mode
0.29
1.19
38.1
153
305
610
1220
4880
7.1.3 Function
An INTTBT ( Time Base Timer Interrupt ) is generated on the first falling edge of source clock ( The divider
output of the timing generato which is selected by TBTCK. ) after time base timer has been enabled.
The divider is not cleared by the program; therefore, only the first interrupt may be generated ahead of the set
interrupt period ( Figure 7-2 ).
Source clock
TBTCR<TBTEN>
INTTBT
Enable TBT
Interrupt period
Figure 7-2 Time Base Timer Interrupt
Page 54