PULSE OUTPUT PORT MODE
9.2 Block description
(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 corresponding bit of the direction
register of the port, which is multiplexed with pin RTPTRG0, in order to set this port 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.3 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
0
to
RTP0
3
, RTP1
0
, RTP1
1
pulse output data bits are output from pins RTP0
0
to RTP0
3
, RTP1
0
, RTP1 .
1
When this bit = “1,” the contents which have been set in the RTP0
0
to RTP0
3
, RTP1
0
, RTP1 pulse
1
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 , RTP1 .
0
3
0
1
(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.
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.3.2.
7906 Group User’s Manual Rev.2.0
9-7