MC81F4x16
10.5 R4 Port Registers
R4CONH – R44~R47
R4 PORT CONTROL HIGH REGISTER
00DEH
A reset clears the R4CONH register to „AAH‟, makes the R47-R44 pins to open-drain output mode.
You can use R4CONH register setting to select input (with or without pull-up) or output mode (open-
drain or push-pull).
7
R4CONH
R/W
R47
6
R/W
5
R46
4
R/W
3
R45
2
R/W
1
R44
0
Reset value: AAH
R/W
R/W
R/W
R/W
00: Input mode
R47
R47
01: Input pull-up mode
10: Output mode, open-drain
11: Output mode, push-pull
00: Input mode
R46
R46
01: Input pull-up mode
10: Output mode, open-drain
11: Output mode, push-pull
00: Input mode
R45
R45
01: Input pull-up mode
10: Output mode, open-drain
11: Output mode, push-pull
00: Input mode
R44
R44
01: Input pull-up mode
10: Output mode, open-drain
11: Output mode, push-pull
October 19, 2009 Ver.1.35
87