Toshiba H1 Series Data Book page 300

32bit micro controller tlcs-900/h1 series
Table of Contents

Advertisement

3.13.2 Operation
(1) Prescaler
The 5-bit prescaler generates the source clock for TMRB0. The prescaler clock (φT0)
is
selected by the register SYSCR0<PRCK> of clock gear. This prescaler can be
started or stopped using TB0RUN<TB0RUN>. Counting starts when <TB0RUN> is
set to "1"; the prescaler is cleared to "0" and stops operation when <TB0RUN> is
cleared to "0".
The resolution of prescaler is showed in the Table 3.13.2.
Clock gear
selection
SYSCR1
<GEAR2:0>
1/1
1/2
1/4
1/8
1/16
fc
1/1
1/2
1/4
1/8
1/16
(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, φTB0 and φT16 or an external clock
input via the TB0IN0 pin 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 zero each time its
value matches the value in the timer register TB0RG1H/L. Clearing can be enabled or
disabled using TB0MOD<TB0CLE>.
If clearing is disabled, the counter operates as a free running counter.
Table 3.13.2 Prescaler Clock Resolution
Prescaler of
clock gear
SYSCR0
φT1(1/2)
<PRCK>
fc/16
1/2
fc/32
fc/64
fc/128
1/2
fc/32
fc/64
1/8
fc/128
fc/256
fc/512
92CZ26A-297
Timer counter input clock
Prescaler of TMRB
TBxMOD<TBxCLK1:0>
φT4(1/8)
fc/8
fc/32
fc/64
fc/128
fc/256
fc/512
fc/128
fc/256
fc/512
fc/1024
fc/2048
TMP92CZ26A
φT16(1/32)
fc/128
fc/256
fc/512
fc/1024
fc/2048
fc/512
fc/1024
fc/2048
fc/4096
fc/8192

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tlcs-900Tmp92cz26axbg

Table of Contents