Download Print this page

Toshiba TMP96C141AF Manual page 115

Cmos 16-bit microcontroller

Advertisement

(4) Application of PG and Timer Output
As explained in "Trigger signal from timer", the timing to shift
PG and invert TFF differs depending on the mode of timer. An
application to operate PG while operating an 8-bit timer in
Setting example:
7
6
TRUN
TMOD
1
0
TFFCR
x
x
TREG0
*
*
TREG1
*
*
P7CR
x
x
P7FC
x
x
P6CR
P6FC
PG01CR ←
PG0REG ←
*
*
TRUN
1
x
Note:
x; don't care
–; no change
TOSHIBA CORPORATION
Figure 3.10 (13). Output Waveforms of 4-Phase 1-Step Excitation
5
4
3
2
1
0
x
x
x
x
0
x
0
0
1
1
*
*
*
*
*
*
*
*
*
*
x
x
1
x
x
1
1
1
1
1
1
1
0
0
0
*
*
*
*
*
1
PPG mode will be explained below.
To drive a stepping motor, in addition to the value of each
phase (PG output), synchronizing signal is often required at the
timing when excitation is changed over. In this application, port
6 is used as a stepping motor control port to output a synchro-
nizing signal to the TO1 pin (shared by P71).
0
0
Stop timer 0, and clears it to zero.
Set timer 0 and timer 1 in PPG output mode and selects φ T1 as the input clock.
1
x
Enable TFF1 inversion and sets TFF1 to "1".
*
Set the duty of TO1 to TREG0.
*
Set the cycle of TO1 to TREG1.
)
Assign P71 as TO1.
x
)
1
Assign P60 - 63 as PG0.
1
1
Set PG0 in 4-phase 1-step excitation mode.
*
Set an initial value.
1
Start timer 0 and timer 1.
TMP96C141AF
115

Advertisement

loading

This manual is also suitable for:

Tlcs-900 series