![](http://datasheet.mmic.net.cn/30000/M37905M4C-XXXFP_datasheet_2360025/M37905M4C-XXXFP_190.png)
PULSE OUTPUT PORT MODE
7905 Group User’s Manual Rev.1.0
9-9
9.2 Block description of pulse output port 0
(1) RTP00 to RTP03 pulse output data bits (bits 0 to 3 at address A816)
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) RTP10, RTP11 pulse output data bits (bits 4, 5 at address A816)
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 P53 pin, in order to set this port P53 pin for the input mode.
(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 RTP00 to
RTP03, RTP10 to RTP13 pulse output data bits are output from pins RTP00 to RTP03, RTP10 to RTP13.
When this bit = “1,” the contents which have been set in the RTP00 to RTP03, RTP10 to RTP13 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 RTP00 to RTP03, RTP10 to
RTP13.
Note that, in pulse mode 1, the pulses with the negative polarity are not output from pins RTP12 and RTP13.
(6) RTP10, RTP11 pulse output data bits (bits 4, 5 at address A916)
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) RTP12, RTP13 pulse output data bits (bits 6, 7 at address A916)
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.