|
7906 Datasheet, PDF (221/531 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
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 P60 through P65 pins become the three-phase
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
P65/TA2IN/U/RTP11 â U-phase waveform output
P64/TA2OUT/V/RTP10 â V-phase waveform output
P63/TA1IN/W/RTP03 â W-phase waveform output
U-phase position data input â P57/INT7/TB2IN/IDU
P62/TA1OUT/U/RTP02 â U-phase waveform output
V-phase position data input â P56/INT6/TB1IN/IDV
P61/TA0IN/V/RTP01 â V-phase waveform output
W-phase position data input â P55/INT5/TB0IN/IDW
P60/TA0OUT/W/RTP00 â W-phase waveform output
P6OUTCUT/INT4 â Three-phase-waveform-output-
forcibly-cutoff signal input
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 â0000002.â (Refer
to section â5.2.3 Pin P6OUTCUT/INT4.â) Therefore, if it is necessary to switch port pins P60 through P65 to
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.
P6OUTCUT input
Three-phase waveform mode is selected (Bit 2 through 0 at address A616 = 1002)
â
Waveform output control bit
(bit 7 at address A616)
â
â
â
Three-phase waveform
output pin
Programmable
I/O port
Floating
Three-phase
waveform output
Floating
Three-phase
waveform output
â 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
10-16
7906 Group Userâs Manual Rev.2.0
|
▷ |