Download Print this page

Toshiba TLCS-900/H1 Series Manual page 417

Original cmos 32-bit microcontroller
Hide thumbs Also See for TLCS-900/H1 Series:

Advertisement

3.18.2
Operation of Each Block
(1) Prescaler
The 5-bit prescaler generates the source clock for timer 0. The prescaler clock (φT0) is
a divided clock (divided by 8) from the f
This prescaler can be started or stopped using TB0RUN<TB0PRUN>. Counting
starts when <TB0PRUN> is set to 1; the prescaler is cleared to 0 and stops operation
when <TB0PRUN> is cleared to 0.
System clock
selection
SYSCR1
<SYSCK>
1 (fs)
0 (fc)
(2) Up counter (UC10)
UC10 is a 16-bit binary counter which counts up pulses input from the clock specified
by TB0MOD<TB0CLK1:0>.
Any one of the prescaler internal clocks φT1, φT4 and φT16 can be selected as the
input clock. Counting or stopping and clearing of the counter is controlled by
TB0RUN<TB0RUN>.
When clearing is enabled, the up counter UC10 will be cleared to 0 each time its
value matches the value in the timer register TB0RG1H/L. If clearing is disabled, the
counter operates as a free-running counter.
Clearing can be enabled or disabled using TB0MOD<TB0CLE>.
A timer overflow interrupt (INTTBOF0) is generated when UC10 overflow occurs.
Table 3.18.2 Prescaler Clock Resolution
Clock gear
selection
SYSCR1
<GEAR2:0>
000 (1/1)
001 (1/2)
1/8
010 (1/4)
011 (1/8)
100 (1/16)
92CH21-415
.
FPH
Timer counter input clock
TMRB prescaler
TB0MOD<TB0CLK1:0>
φT1(1/2)
φT4(1/8)
fs/16
fs/64
fc/16
fc/64
fc/32
fc/128
fc/64
fc/256
fc/128
fc/512
fc/256
fc/1024
TMP92CH21
φT16(1/32)
fs/256
fc/256
fc/512
fc/1024
fc/2048
fc/4096
2009-06-19

Advertisement

loading

This manual is also suitable for:

Tmp92ch21fgJtmp92ch21