TMP92CF30
2009-06-12
92CF30-259
Example: To generate 1/4 duty 31.25 kHz pulses (at f
SYS
=
50 MHz)
* Clock state
Clcok gear :
1/1
Prescaler of clock gear : 1/2
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
4
3
2
1
0
TA01RUN
← −
X X X
−
−
0
0
Stop TMRA0 and TMRA1 and clear it to “0”.
TA01MOD
←
1
0
X
X
X
X
0
1
Set the 8-bit PPG mode, and select
φ
T1 as input clock.
TA0REG
←
0
0
0
0
1
0
1
0
Write 32H.
TA1REG
←
1
1
0
0
1
0
0
0
Write C8H.
TA1FFCR
←
X
X
X
X
0
1
1
X
Set TA1FF, enabling both inversion and the double buffer.
Writing 10 provides negative logic pulse.
PM
← −
X X X X
−
0
X
PMFC
← −
X X X X
−
1
X
Set PM1 as the TA1OUT pin.
TA01RUN
←
1 X X X
−
1
1
1
Start TMRA0 and TMRA1 counting.
X: Don't care,
−
: No change
32
μ
s
Содержание TLCS-900/H1 Series
Страница 1: ...TOSHIBA Original CMOS 32 Bit Microcontroller TLCS 900 H1 Series TMP92CF30FG Semiconductor Company ...
Страница 650: ...TMP92CF30 2009 06 12 92CF30 648 7 Package Dimensions LQFP176 P 2020 0 40F TOP VIEW BOTTOM VIEW Detail view of A 25 1 A ...
Страница 652: ...TMP92CF30 2009 06 12 92CF30 650 ...