MC81F4x16
10.2 R1 Port Registers
R1CONH – R14~R17
R1 PORT CONTROL HIGH REGISTER
00D3H
A reset clears the R1CONH register to „55H‟, makes the R17-R14 pins to open-drain output mode.
You can use R1CONH 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 R1CONH register must also be enabled in the associated peripheral module.
7
6
5
4
3
2
1
0
R17
R16
R15
R14
R1CONH
Reset value: 55H
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
00: Schmitt trigger input mode
01: Output mode, open-drain
10: Alternative function (SCL)
11: Output mode, push-pull
00: Schmitt trigger input mode
01: Output mode, open-drain
10: Alternative function (SDA)
11: Output mode, push-pull
00: Schmitt trigger input mode
01: Output mode, open-drain
10: Alternative function (TxD)
11: Output mode, push-pull
R17
R16
R15
R17/SCL
R16/SDA
R15/TxD
00: Schmitt trigger input mode
(RxD mode1,2,3)
01: Output mode, open-drain
10: Alternative function (RxD mode 0)
11: Output mode, push-pull
R14
R14/RxD
78
October 19, 2009 Ver.1.35