tmp1940cyaf TOSHIBA Semiconductor CORPORATION, tmp1940cyaf Datasheet - Page 169

no-image

tmp1940cyaf

Manufacturer Part Number
tmp1940cyaf
Description
32-bit Tx System Risc Tx19 Family
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
TA01RUN.TA1RUN
Comparator Timing
Comparator Output
Up-
Counter
Up-Counter Clear
(Match Detect)
(2) Generating a SquareWave with a 50% Duty Cycle
TA1OUT
by toggling the timer flip-flop (TA1FF) periodically. The TA1FF state can be driven out to the
TA1OUT pin. Both the TMRA0 and the TMRA1 can be used as square-wave generators. The
following shows an example using the TMRA1.
Bits 7–2
INTTA1
TA1FF
X = Don’t care,
The 8-bit interval timer mode can be used to generate square-wave output. This is accomplished
Example: Generating square-wave output with a 1.5-µs period on the TA1OUT pin
TA01RUN
TA01MOD
TA1REG
TA1FFCR
P7CR
P7FC
TA01RUN
Bit 1
Bit 0
T1
Clocking conditions:
Figure 11.9 Square-Wave Generation (50% Duty Cycle)
System clock:
High-speed clock gear: ×1 (fc)
Prescaler clock:
0
(fc = 32 MHz)
MSB
– = No change
7
0
0
X
1
6
X
0
0
X
X
TMP1940CYAF-127
5
X
X
0
X
X
2
4
X
X
0
X
X
3
0
0
1
High-speed (fc)
fperiph/4 (fperiph = fsys)
3
2
1
0
0
1
0
1
0
1
1
1
1
1
LSB
0
1
1
1
2
Stops and clears the TMRA1.
Selects 8-bit interval timer mode and
µs resolution @fc=32 MHz).
Sets the time constant value in the TA1REG.
1.5 µs
Clears the TA1FF to 0 and selects the TMRA1
match-detect output as a toggle-trigger signal.
Configures P71 as the TA1OUT output pin.
Starts the TMRA1.
T1 as the clock source (which provides a 0.25-
3
T1
0
TMP1940CYAF
2 = 3
1
2
3
0

Related parts for tmp1940cyaf