MC81F4x16
10.6 R5 Port
R5CON – R50~R53
R5 PORT CONTROL REGISTER
00E0H
A reset clears the R5CON register to „AAH‟, makes R53-R50 pins to open-drain output mode. You
can use R5CON register setting to select input (with or without pull-up) or output mode (open-drain or
push-pull).
7
6
5
4
3
2
1
0
R53
R52
R51
R50
R5CON
Reset value: AAH
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
00: Input mode
01: Input pull-up mode
R53
R52
R51
R53
10: Output mode, open-drain
11: Output mode, push-pull
00: Input mode
01: Input pull-up mode
10: Output mode, open-drain
11: Output mode, push-pull
00: Input mode
R52
R51
R50
01: Input pull-up mode
10: Output mode, open-drain
11: Output mode, push-pull
00: Input mode
01: Input pull-up mode
10: Output mode, open-drain
11: Output mode, push-pull
R50
R5
R5 PORT DATA REGISTER
00C5H
7
-
6
-
5
-
4
-
3
2
1
0
R53
R52
R51
R50
R5
Reset value: -FH
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
In input mode, it represents the R5 port status.
In output mode, R5 port represents it.
1: High
0 : Low
October 19, 2009 Ver.1.35
89