PULSE OUTPUT PORT MODE
9.2 Block description
9.2.1 Waveform output mode register
Figure 9.2.2 shows the structure of the waveform output mode register (in pulse output port mode).
b7 b6 b5 b4 b3 b2 b1 b0
Waveform output mode register (Address A616
)
Bit
0
Bit name
Function
At reset R/W
Waveform output select bits
See Table 9.2.1.
0
0
0
RW
RW
RW
(Note)
1
2
0 : Pulse mode 0
1 : Pulse mode 1
0
RW
Pulse output mode select bit
3
Pulse width modulation timer
select bits
0
0
0
RW
RW
RW
4
5
6
See Table 9.2.2.
When pulse mode 0 is selected,
Waveform output control bit 0
0: RTP1
1: RTP1
0
, RTP1
1
: pulse outputs are disabled.
: pulse outputs are enabled.
0, RTP1
1
When pulse mode 1 is selected,
fix this bit to “0.”
Waveform output control bit 1
When pulse mode 0 is selected,
0
RW
7
0 : RTP0
0
to RTP0
to RTP0
3
: pulse outputs are disabled.
: pulse outputs are enabled.
1 : RTP0
0
3
When pulse mode 1 is selected,
0 : RTP0
0
to RTP0
3
, RTP10, RTP1
1
: pulse outputs
: pulse outputs
are disabled.
1 : RTP0
0
to RTP0
3
, RTP10, RTP1
1
are enabled.
Note: When not using the pulse output port mode and three-phase waveform mode, be sure to fix these bits to “000 .”
2
Fig. 9.2.2 Structure of waveform output mode register (in pulse output port mode)
(1) Waveform output select bits (bits 2 to 0)
These bits are used to select whether a pin serves as a programmable I/O port pin or
a pulse output pin. Table 9.2.1 lists the functions of the waveform output select bits.
Table 9.2.1 Functions of waveform output select bits
001
010
b2 b1 b0
Pulse mode 0
(Note)
000
011
P6
P6
5
4
/RTP1
1
P6
P6
5
4
/RTP1
/RTP1
1
P6
P6
5
4
/RTP1
1
P6
P6
5
4
/RTP1
1
RTP
Port
Port
RTP
RTP
RTP
Port
Port
/RTP1
0
0
/RTP1
0
/RTP1
0
P6
P6
P6
P6
3
2
1
0
/RTP0
/RTP0
/RTP0
/RTP0
3
2
1
0
P6
P6
P6
P6
3
2
1
0
/RTP0
/RTP0
/RTP0
/RTP0
3
2
1
0
P6
P6
P6
P6
3
2
1
0
/RTP0
/RTP0
/RTP0
/RTP0
3
2
1
0
P6
P6
P6
P6
3
2
1
0
/RTP0
/RTP0
/RTP0
/RTP0
3
2
1
0
P6
P6
P6
P6
P6
P6
5
/RTP1
/RTP1
/RTP0
/RTP0
/RTP0
/RTP0
1
Pulse mode 1
P6
P6
P6
P6
P6
P6
5
4
3
2
1
0
/RTP1
/RTP1
/RTP0
/RTP0
/RTP0
/RTP0
1
0
3
2
1
0
4
3
2
1
0
0
3
2
1
0
(Note)
Do not select.
Do not select.
RTP
Port
Port: This serves as a programmable I/O port pin or timer I/O pin.
RTP: This serves as a pulse output pin regardless of the contents of the corresponding port direction register.
Note: This is selected by the pulse output mode select bit (bit 3 at address A616).
7906 Group User’s Manual Rev.2.0
9-4