MC81F4x16
10.3 R2 Port Registers
R2CONH – R24~R27
R2 PORT CONTROL HIGH REGISTER
00D9H
A reset clears the R2CONH register to „55H‟, makes the R27-R24 pins to open-drain output mode.
You can use R2CONH 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 R2CONH register must also be enabled in the associated peripheral module.
7
6
5
4
3
2
1
0
R27
R/W
R26
R25
R/W
R24
R/W
R2CONH
Reset value: 55H
R/W
R/W
R/W
R/W
R/W
00: Input mode
01: Output mode, open-drain
10: Alternative function (AN12)
11: Output mode, push-pull
00: Input mode
R27
R26
R25
R27/AN12
R26/AN11
R25/AN10
01: Output mode, open-drain
10: Alternative function (AN11)
11: Output mode, push-pull
00: Input mode
01: Output mode, open-drain
10: Alternative function (AN10)
11: Output mode, push-pull
00: Input mode
01: Output mode, open-drain
10: Not available
R24
R24
11: Output mode, push-pull
82
October 19, 2009 Ver.1.35