MC81F4204
74 April 24, 2012 Ver.1.41
R3CONL – R31~R32
R3 PORT CONTROL LOW REGISTER 00DDH
A reset clears the R3CONL register to ‘1001_1---b’, makes the R32-R31 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
R3CONL
R32 R31 - - -
R/W R/W R/W R/W R/W R/W R/W R/W
Reset value:
1001_1---b
00: Input mode
01: Input pull-up mode
10: Output mode, open-drain
R32
R32
11: Output mode, push-pull
000: Input mode
001: Input pull-up mode
010: Alternative function (AN14)
011: Output mode, open-drain
R31
R31/AN14
1xx: Output mode, push-pull
-
bit2 – bit0 Not used for MC81F4204
R3
R3 PORT DATA REGISTER 00C3H
7 6 5 4 3 2 1 0
R3
- - R35 R34 R33 R32 R31 -
R/W R/W R/W R/W R/W R/W R/W R/W
Reset value:
--00_011-b
In input mode, it represents the R3 port status.
In output mode, R3 port represents it.
1: High
0: Low