Toshiba TLCS-900/H1 Series Manual page 261

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

Advertisement

Example:
To generate 1/4 duty 31.25 kHz pulses (at f
32 μs
* Clock state
Calculate the value which should be set in the timer register.
To obtain a frequency of 31.25 kHz, the pulse cycle t should be: t = 1/31.25kHz = 32 μs
φT1 = 0.16 μs (at 50 MHz);
32 μs ÷ 0.16 μs = 200
Therefore set TA1REG to 200 (C8H)
The duty is to be set to 1/4: t × 1/4 = 32 μs × 1/4 = 8 μs
8 μs ÷ 0.16 μs = 50
Therefore, set TA0REG = 50 = 32H.
7
6
5
← −
TA01RUN
X
X
← 1
TA01MOD
0
X
← 0
TA0REG
0
0
← 1
TA1REG
1
0
← X
TA1FFCR
X
X
← −
PM
X
X
← −
PMFC
X
X
← 1
TA01RUN
X
X
X: Don't care, −: No change
= 50 MHz)
SYS
Clcok gear :
1/1
Prescaler of clock gear : 1/2
4
3
2
1
0
X
0
0
Stop TMRA0 and TMRA1 and clear it to "0".
Set the 8-bit PPG mode, and select φT1 as input clock.
X
X
X
0
1
0
1
0
1
0
Write 32H.
0
1
0
0
0
Write C8H.
X
0
1
1
X
Set TA1FF, enabling both inversion and the double buffer.
Writing 10 provides negative logic pulse.
X
X
0
X
Set PM1 as the TA1OUT pin.
X
X
1
X
X
1
1
1
Start TMRA0 and TMRA1 counting.
92CF30-259
TMP92CF30
2009-06-12

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tmp92cf30fg

Table of Contents