PULSE OUTPUT PORT MODE
9.2 Block description of pulse output port 0
(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
P6
P6
7
6
5
4
/RTP1
3
2
1
0
P6
P6
P6
P6
7
6
5
4
/RTP1
3
2
1
0
P6
P6
P6
P6
7
6
5
4
/RTP1
3
2
1
0
P6
P6
P6
P6
7
6
5
4
/RTP1
3
2
1
0
/RTP1
/RTP1
/RTP1
/RTP1
/RTP1
/RTP1
/RTP1
/RTP1
/RTP1
/RTP1
/RTP1
/RTP1
RTP
RTP
Port
Port
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
RTP
RTP
RTP
Port
Port
Port
Port
Port
P6
P6
7
/RTP1
/RTP1
3
P6
P6
7
6
/RTP1
/RTP1
3
2
P6
P6
7
6
/RTP1
/RTP1
3
2
P6
P6
7
6
/RTP1
/RTP1
3
2
Pulse mode 1
6
2
(Note)
P6
P6
P6
P6
P6
P6
5
4
3
2
1
0
/RTP1
/RTP1
/RTP0
/RTP0
/RTP0
/RTP0
1
0
3
2
1
0
P6
P6
P6
P6
P6
P6
5
4
3
2
1
0
/RTP1
/RTP1
/RTP0
/RTP0
/RTP0
/RTP0
1
0
3
2
1
0
P6
P6
P6
P6
P6
P6
5
4
3
2
1
0
/RTP1
/RTP1
/RTP0
/RTP0
/RTP0
/RTP0
1
0
3
2
1
0
P6
P6
P6
P6
P6
P6
5
4
3
2
1
0
/RTP1
/RTP1
/RTP0
/RTP0
/RTP0
/RTP0
1
0
3
2
1
0
Port
RTP
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).
(2) Pulse output mode select bit (bit 3)
This bit is used to select the operation mode of pulse output port 0: pulse mode 0 or pulse mode 1.
(3) Pulse width modulation timer select bits (bits 5 and 4)
These bits are used to select the type of the pulse width modulation of pulse output port 0. Table 9.2.2
lists the functions of the pulse width modulation timer select bits.
Table 9.2.2 Functions of pulse width modulation timer select bits
b5 b4
Pulse mode 0
(Note 1)
00
01
10
11
P6
P6
P6
P6
3
2
1
0
/RTP0
3
2
1
0
/RTP0
/RTP0
/RTP0
Do not select.
Timer A1
Timer A1
Do not select.
Do not select.
P6
P6
5
4
/RTP1
/RTP1
1
0
P6
P6
P6
5
4
3
/RTP1
/RTP1
/RTP0
1
0
3
Pulse mode 1 P6
P6
5
4
3
2
1
0
/RTP1
1
0
3
2
1
0
Timer A4
Timer A2
Timer A1
Timer A2
Timer A1
/RTP1
/RTP0
/RTP0
/RTP0
/RTP0
(Note 2)
P6
P6
P6
3
2
/RTP0
/RTP0
3
2
Do not select.
P6
P6
P6
P6
P6
P6
2
1
0
/RTP0
/RTP0
/RTP0
2
1
0
P6
P6
1
0
/RTP0
/RTP0
1
0
Note 1: The pulse width modulation cannot be applied to pins RTP1
0
to RTP1
3.
2: The pulse width modulation cannot be applied to pins RTP1
2
and RTP1 .
3
7905 Group User’s Manual Rev.1.0
9-6