|
TMP89FS60 Datasheet, PDF (164/410 Pages) Toshiba Semiconductor – 8 Bit Microcontroller | |||
|
◁ |
13. 16-bit Timer Counter (TCA)
13.4 Timer Function
TMP89FS60
TA0CR<TA0S>
Timer start
Timer stop
TA0MOD<TA0DBE>
Source clock
Counter
Write to TA0DRAL
01234
Write n
mn
mn-1 0 1 2 3
Counter clear
Write s
rs
rs-1 0
120
Counter clear
Write to TA0DRAH
Write m
Write r
Temporary buffer
(8 bits)
TA0DRAL
TA0DRAH
n
n
m
Match detection
s
s
Match detection
r
INTTCA interrupt request
TA0CR<TA0S>
Reflected by writing to TA0DRAH
Reflected by writing to TA0DRAH
When the double buffer is disabled (TA0MOD<TA0DBE>=â0â)
Timer start
TA0MOD<TA0DBE>
Source clock
Counter
Write to TA0DRAL
01234
Write n
mn
mn-1 0 1 2 3
Counter clear
Write s
mn
rs
mn-1 0 1
rs-1 0 1
Counter clear
Write to TA0DRAH
Write m
Write r
Temporary buffer
n
(8 bits)
Double buffer
mn
(16 bits)
TA0DRAL
TA0DRAH
INTTCA interrupt request
n
Match detection
m
Reflected at the same time as data
is written into TA0DRAH while
the timer is stopped
s
rs
Match detection
s
Match detection
r
Reflected by
an interrupt
When the double buffer is enabled (TA0MOD<TA0DBE>=â1â)
Figure 13-2 Timer Mode Timing Chart
RA001
Page 150
|
▷ |