R8C/20 Group, R8C/21 Group 7. Programmable I/O Ports
Rev.2.00 Aug 27, 2008 Page 50 of 458
REJ09B0250-0200
7.4 Port Settings
Table 7.4 to Table 7.47 list the port settings.
X: 0 or 1
NOTE:
1. Pulled up by setting the PU00 bit in the PUR0 register to 1.
X: 0 or 1
NOTE:
1. Pulled up by setting the PU00 bit in the PUR0 register to 1.
X: 0 or 1
NOTE:
1. Pulled up by setting the PU00 bit in the PUR0 register to 1.
X: 0 or 1
NOTE:
1. Pulled up by setting the PU00 bit in the PUR0 register to 1.
X: 0 or 1
NOTE:
1. Pulled up by setting the PU01 bit in the PUR0 register to 1.
Table 7.4 Port P0_0/AN7
Register PD0 ADCON0
Function
Bit PD0_0 CH2 CH1 CH0 ADGSEL0
Setting
value
0XXXX
Input port
(1)
1 X X X X Output port
0 1 1 1 0 A/D converter input (AN7)
Table 7.5 Port P0_1/AN6
Register PD0 ADCON0
Function
Bit PD0_1 CH2 CH1 CH0 ADGSEL0
Setting
value
0XXXX
Input port
(1)
1 X X X X Output port
0 1 1 0 0 A/D converter input (AN6)
Table 7.6 Port P0_2/AN5
Register PD0 ADCON0
Function
Bit PD0_2 CH2 CH1 CH0 ADGSEL0
Setting
value
0XXXX
Input port
(1)
1 X X X X Output port
0 1 0 1 0 A/D converter input (AN5)
Table 7.7 Port P0_3/AN4
Register PD0 ADCON0
Function
Bit PD0_3 CH2 CH1 CH0 ADGSEL0
Setting
value
0XXXX
Input port
(1)
1 X X X X Output port
0 1 0 0 0 A/D converter input (AN4)
Table 7.8 Port P0_4/AN3
Register PD0 ADCON0
Function
Bit PD0_4 CH2 CH1 CH0 ADGSEL0
Setting
value
0XXXX
Input port
(1)
1 X X X X Output port
0 0 1 1 0 A/D converter input (AN3)