8.2.4
Pin Functions
• P27/PW15, P26/PW14
The function of port 2 pins is switched as shown below according to the combination of the
PWMAS bit in PTCNT0, the OEm bit in PWOERB of PWM, and the P2nDDR bit.
PWMAS
P2nDDR
OEm
Pin function
P2n input pin P2n output pin PWm output pin
Note: n = 7 to 6
m = 15 to 14
• P25/PW13, P24/PW12
The function of port 2 pins is switched as shown below according to the combination of the
PWMBS bit in PTCNT0, the OEm bit in PWOERB of PWM, and the P2nDDR bit.
PWMBS
P2nDDR
OEm
Pin function
P2n input pin P2n output pin PWm output pin
Note: n = 5 to 4
m = 13 to 12
• P23/PW11, P22/PW10, P21/PW9, P20/PW8
The function of port 2 pins is switched as shown below according to the combination of the
OEm bit in PWOERA of PWM and the P2nDDR bit.
P2nDDR
OEm
Pin function
Note:
n = 3 to 0
m = 11 to 8
0
0
0
0
0
0
0
P2n input pin
1
1
P2n input pin
1
1
P2n input pin
0
P2n output pin
Rev. 3.00 Jul. 14, 2005 Page 169 of 986
Section 8 I/O Ports
1
0
1
P2n output pin
1
0
1
P2n output pin
1
1
PWm output pin
REJ09B0098-0300