Download Print this page

Toshiba TMP96C141AF Manual page 82

Cmos 16-bit microcontroller

Advertisement

TMP96C141AF
Generating a 50% square wave
To generate a 50% square wave, invert the timer flip-
flop at a fixed interval and output the timer flip-flop
lows:
7
TRUN
P0MOD
x
TREG2
0
PFFCR
P7CR
x
P7FC
x
TRUN
1
Note:
x; don't care
82
6
5
4
3
2
1
x
0
0
1
1
0
0
x
0
0
0
0
1
1
1
0
0
x
x
x
1
x
x
x
1
x
1
–; no change
Figure 3.8 (11). Square Wave (50% Duty) Output Timing Chart
value to the timer output pin (TO2).
Example: To output a 3.0µs square wave at fc =
0
Stops PWM0 and clears it to 0.
Sets 8-bit timer mode and selects φ P1 (0.25µs) as the input clock.
x
0
Sets 3.0µs/0.25µs/2 = 6 in the timer register.
)
1
Clears TFF2 to 0 and inverts using comparator output.
Sets P72 as the TO2 pin.
x
16MHz from TO2 pin, set register as fol-
TOSHIBA CORPORATION

Advertisement

loading

This manual is also suitable for:

Tlcs-900 series