MC81F4x16
R3CONL – R30~R32
R3 PORT CONTROL LOW REGISTER
00DDH
A reset clears the R3CONL register to „9BH‟, makes the R32-R30 pins to open-drain output mode.
You can use R3CONL 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 R3CONL register must also be enabled in the associated peripheral module.
7
6
5
4
3
2
1
0
R32
R31
R30
R3CONL
Reset value: 9BH
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
00: Input mode
01: Input pull-up mode
R32
R32
10: Output mode, open-drain
11: Output mode, push-pull
000: Input mode
001: Input pull-up mode
R31
R31/AN14
R30/AN13
010: Alternative function (AN14)
011: Output mode, open-drain
1xx: Output mode, push-pull
000: Input mode
001: Input pull-up mode
R30
010: Alternative function (AN13)
011: Output mode, open-drain
1xx: Output mode, push-pull
R3
R3 PORT DATA REGISTER
00C3H
7
6
5
4
3
2
1
0
R37
R36
R35
R34
R33
R32
R31
R30
R3
Reset value:
--00_0111b
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
In input mode, it represents the R3 port status.
In output mode, R3 port represents it.
1: High
0 : Low
86
October 19, 2009 Ver.1.35