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
R2CONH
R/W
6
R27
5
4
R26
3
2
R25
1
0
R24
Reset value: 55H
R/W
R/W
R/W
R/W
R/W
R/W
R/W
00: Input mode
01: Output mode, open-drain
R27
R27/AN12
10: Alternative function (AN12)
11: Output mode, push-pull
00: Input mode
01: Output mode, open-drain
R26
R26/AN11
10: Alternative function (AN11)
11: Output mode, push-pull
00: Input mode
01: Output mode, open-drain
R25
R25/AN10
10: Alternative function (AN10)
11: Output mode, push-pull
00: Input mode
01: Output mode, open-drain
R24
R24
10: Not available
11: Output mode, push-pull
82
October 19, 2009 Ver.1.35