English
Language : 

MC81F4332 Datasheet, PDF (78/198 Pages) Finechips – ABOV SEMICONDUCTOR 8-BIT SINGLE-CHIP MICROCONTROLLERS
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.
R2CONH
7
6
R27
R/W R/W
5
4
R26
R/W R/W
3
2
R25
R/W R/W
1
0
R24
R/W R/W
Reset value: 55H
R27
R27/AN12
R26
R26/AN11
R25
R25/AN10
R24
R24
00: Input mode
01: Output mode, open-drain
10: Alternative function (AN12)
11: Output mode, push-pull
00: Input mode
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
11: Output mode, push-pull
78
October 19, 2009 Ver.1.35