PULSE OUTPUT PORT MODE
9.2 Block description
9.2.5 Pin P6OUTCUT (pulse-output-cutoff signal input pin)
When a falling edge is input to pin P6OUTCUT, the waveform output control bit 1 (bit 7 at address A616
)
becomes “0” and the pulse output pins enter the floating state. (In other words, pulse output becomes
disabled.) The pulse output pins where pulse output is to be inactive depend on the pulse output mode.
• Pulse mode 0: RTP0
• Pulse mode 1: RTP0
0
to RTP0
to RTP0
3
0
3
, RTP1
0
, RTP1
1
When restarting pulse output after the pulse output becomes inactive, be sure to return the input level at
pin P6OUTCUT to “H” level; and then, be sure to set the waveform output control bit 1 to “1.” When the input
level at pin P6OUTCUT is “L” level, the waveform output control bit 1 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
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” level, no bit of the port P6 direction register can be “1.”
Figure 9.2.8 shows the relationship between the P6OUTCUT input, waveform output control bit 1, and pulse
output pin.
Note that, when not making the pulse output inactive by using pin P6OUTCUT, be sure to connect pin
P6OUTCUT to Vcc via a resistor.
Selection of pulse output port mode
(selected by bit s 3 to 0 at address A616
)
➀
P6OUTCUT input
➀
➀
Waveform output control bit 1
➀
(bit 7 at address A616
)
Programmable
I/O port
Pulse output
Pulse output
Pulse output pin
Floating
Floating
➀ When the pulse output port mode is selected, the pulse outpit pins become floating.
➀ The pulse is output by writing of “1” with the input level at pin P6OUTCUT = “H.”
➀ When a falling edge is input to pin P6OUTCUT, this bit becomes “0.”
Fig. 9.2.8 Relationship between P6OUTCUT input, waveform output control bit 1, and pulse output pin
7906 Group User’s Manual Rev.2.0
9-13