PULSE OUTPUT PORT MODE
9.2 Block description of pulse output port 0
(1) RTP0
0
to RTP0 pulse output data bits (bits 0 to 3 at address A816)
3
Each time when a pulse output trigger is generated, the contents written to these bits are output from
the corresponding pulse output pins (Note). The pulse output trigger can be selected by the pulse
output trigger select bits (bits 7, 6 at address A816).
(2) RTP1
0
, RTP1 pulse output data bits (bits 4, 5 at address A816)
1
These bits are valid in pulse mode 1.
Each time when a pulse output trigger is generated, the contents written to these bits are output from
the corresponding pulse output pins (Note). The pulse output trigger can be selected by the pulse
output trigger select bits (bits 7, 6 at address A816).
These bits are invalid in pulse mode 0.
(3) Pulse output trigger select bits (bits 7, 6 at address A816
)
The pulse output trigger can be selected from an internal trigger and an external trigger. When using
an external trigger (input signal to pin RTPTRG0), be sure to clear the port P5 direction register’s bit,
corresponding to port P5
3
pin, in order to set this port P5 pin for the input mode.
3
(4) Pulse width modulation enable bits 0 to 2 (bits 0 to 2 at Address A916
)
These bits are used to select the pins, where the pulse width modulation is to be applied. Synchronous
with a pulse output trigger, the contents of these bits become valid. Table 9.2.4 lists the pulse-width-
modulation-relevant bits.
(5) Pulse output polarity select bit (bit 3 at address A916
When this bit = “0,” the data corresponding to the contents which have been set in the RTP0
RTP0 , RTP1 to RTP1 pulse output data bits are output from pins RTP0 to RTP0 , RTP1 to RTP1
When this bit = “1,” the contents which have been set in the RTP0 to RTP0 , RTP1 to RTP1 pulse
output data bits are reversed (in other words, pulses with the negative polarity are generated here.);
and then, these pulses with the negative polarity are output from pins RTP0 to RTP0 , RTP1 to
RTP1
Note that, in pulse mode 1, the pulses with the negative polarity are not output from pins RTP1
)
0
to
3
0
3
0
3
0
3
.
0
3
0
3
0
3
0
3
.
2
and RTP1 .
3
(6) RTP1
0
, RTP1 pulse output data bits (bits 4, 5 at address A916)
1
These bits are valid in pulse mode 0.
Each time when an underflow occurs in timer A3, the contents which have been written to these bits
are output from the corresponding pulse output pins (Note).
These bits are invalid in pulse mode 1.
(7) RTP1
2
, RTP1 pulse output data bits (bits 6, 7 at address A916)
3
Each time when an underflow occurs in timer A3, the contents which have been written to these bits are output
from the corresponding pulse output pins (Note).
Note: The output level at a pulse output pin is undefined in the period from when data is written to
these bits until the first occurrence of a pulse output trigger. If it is necessary to avoid this state,
perform “Processing of avoiding undefined output before starting pulse output” in Figure 9.4.2.
7905 Group User’s Manual Rev.1.0
9-9