Toshiba TMP92CM22FG TLCS-900/H1 Series Manual page 140

Toshiba original cmos 32-bit microcontroller
Table of Contents

Advertisement

Count clock
(Prescaler output clock)
TB1IN0 input
(External trigger pulse)
Match with TB1RG1H/L
Timer output TB1OUT0 pin
Set it to enable that inversion
caused by loading into
TB1CP0H/L.
Figure 3.8.13 One-shot Pulse Output (without delay)
2.
Frequency measurement
The frequency of the external clock can be measured in this mode. Frequency is
measured by the 8-bit timers TMRA23 and the 16-bit timer/event counter.
TMRA23 is used to setting of measurement time by inversion TA3FF.
Counter clock in TMRB0 select TB1IN0 pin input, and count by external clock
input. Set to TB1MOD<TB1CPM1:0> = "11". The value of the up counter (UC12) is
loaded into the capture register TB0CP0H/L at the rise edge of the timer flip-flop
TA1FF of 8-bit timers (TMRA1), and into TB0CP1H/L at its fall edge.
The frequency is calculated by difference between the loaded values in
TB1CP0H/L and TB1CP1H/L when the interrupt (INTTA2 or INTTA3) is
generates by either 8-bit timer.
Count clock
(TB1IN0 pin input )
TA3FF
Load into TB1CP0H/L
Load into TB1CP1H/L
INTTA2/INTTA3
For example, if the value for the level 1 width of TA3FF of the 8-bit timer is set
to 0.5 s and the difference between the values in TB1CP0H/L and TB1CP1H/L is
100, the frequency is 100 ÷ 0.5 s = 200 Hz.
c + p
c
Load into capture register TB1CP0H/L
generate INT4.
Generate INTTB11.
Inversion enable
Pulse width
(p)
C1
C1
C2
Figure 3.8.14 Frequency Measurement
92CM22-138
Load into capture register 1
TB1CP1H/L.
Set it to disable that inversion caused by
loading into TB1CP1H/L.
C2
C1
TMP92CM22
C2
2007-02-16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tlcs-900/h1 series

Table of Contents