MC81F4x16
R2CONL – R20~R23
R2 PORT CONTROL LOW REGISTER
00DAH
A reset clears the R2CONL register to „55H‟, makes R23-R20 pins to open-drain output mode. You
can use R2CONL register setting to select input or output mode (open-drain or push-pull) and enable
alternative functions.
When programming the port, please remember that any alternative peripheral I/O function that
defined by the R2CONL register must also be enabled in the associated peripheral module.
7
6
5
4
3
2
1
0
R23
R/W
R22
R21
R/W
R20
R/W
R2CONL
Reset value: 55H
R/W
R/W
R/W
R/W
R/W
00: Input mode
01: Output mode, open-drain
10: Not available
R23
R22
R21
R23
R22
R21
11: Output mode, push-pull
00: Input mode
01: Output mode, open-drain
10: Not available
11: Output mode, push-pull
00: Input mode
01: Output mode, open-drain
10: Not available
11: Output mode, push-pull
00: Input mode
01: Output mode, open-drain
10: Alternative function (AN9)
11: Output mode, push-pull
R20
R20/AN9
October 19, 2009 Ver.1.35
83