THREE-PHASE WAVEFORM MODE
10.2 Block description
10.2.10 Three-phase waveform mode I/O pins
When the three-phase waveform mode is selected, port P6
0
through P6 pins become the three-phase
5
waveform output pins, pin P6OUTCUT becomes the three-phase-waveform-output-forcibly-cutoff signal input
pin. Figure 10.2.14 shows the pins used in the three-phase waveform mode.
M37906
→
U-phase waveform output
P6
P6 /TA2OUT/V/RTP1
P6 /TA1IN/W/RTP0
P6 /TA1OUT/U/RTP0
P6 /TA0IN/V/RTP0
P6 /TA0OUT/W/RTP0
5
/TA2IN/U/RTP1
1
0
3
2
1
0
→ V-phase waveform output
4
3
→
→
→
→
W-phase waveform output
U-phase waveform output
V-phase waveform output
W-phase waveform output
U-phase position data input
V-phase position data input
→
→
P5
7
6
5
/INT
/INT
/INT
7/TB2IN/IDU
6/TB1IN/IDV
5/TB0IN/IDW
2
P5
1
W-phase position data input → P5
0
← Three-phase-waveform-output-
forcibly-cutoff signal input
P6OUTCUT/INT
4
Fig. 10.2.14 Pins used in three-phase waveform mode
10.2.11 Pin P6OUTCUT (three-phase-waveform-output-forcibly-cutoff signal input pin)
When a falling edge is input to pin P6OUTCUT, the waveform output control bit (bit 7 at address A616
)
becomes “0”; and then the three-phase waveform output pins enter the floating state. (In other words, the
three-phase waveform output becomes inactive.)
When restarting the three-phase waveform output after this output becomes inactive, be sure to return the
input level at pin P6OUTCUT to “H”; and then, be sure to set the waveform output control bit to “1.” When
the input level at pin P6OUTCUT is “L,” the waveform output control bit cannot be “1.”
Also, at this time, bits 0 through 5 of the port P6 direction register (address 1016) become “000000
2
.” (Refer
to
to section “5.2.3 Pin P6OUTCUT/INT .”) Therefore, if it is necessary to switch port pins P6 through P6
4
0
5
the port output pins, be sure to do as follows:
➀ Return the input level at pin P6OUTCUT to “H” level.
➀ Write data to the port P6 register (address E16)’s bits, corresponding to the port P6 pins which will output
data.
➀ Set the port P6 direction register’s bits, corresponding to the port P6 pins in ➀, to “1” in order to set
these port pins to the output mode.
When the input level at pin P6OUTCUT is “L,” each bit of the port P6 direction register cannot be “1.”
Figure 10.2.15 shows the relationship between the P6OUTCUT input, waveform output control bit, and three-
phase waveform output pin.
Note that, when not inactivating the three-phase waveform output by using pin P6OUTCUT, be sure to
connect pin P6OUTCUT to Vcc via a resistor.
Three-phase waveform mode is selected (Bit 2 through 0 at address A616 = 1002)
➀
P6OUTCUT input
➀
➀
Waveform output control bit
➀
(bit 7 at address A616
)
Programmable
I/O port
Three-phase
waveform output
Three-phase
waveform output
Three-phase waveform
output pin
Floating
Floating
➀ When the three-phase waveform mode is selected, the three-phase waveform output pins enter the floating state.
➀ Due to writing of “1” when the input level at pin P6OUTCUT = “H,” a pulse is output.
➀ Due to an input of a falling edge to P6OUTCUT, this bit becomes “0.”
Fig. 10.2.15 Relationship between P6OUTCUT input, waveform output control bit, and three-phase
waveform output pin
7906 Group User’s Manual Rev.2.0
10-16