MC81F4x16
R0CONL – R00~02
R0 PORT CONTROL LOW REGISTER
00C8H
A reset clears the R0CONL register to „00H‟, makes R02-R00 pins input mode. You can use R0CONL
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 R0CONL register must also be enabled in the associated peripheral module.
7
6
5
4
3
2
1
0
–
–
R02
R01
R00
R0CONL
Reset value: 00H
–
–
R/W
R/W
R/W
R/W
R/W
R/W
–
bit7 – bit6
Not used for MC81F4x16
00: Schmitt trigger input mode
(EC0/EXT0)
01: Output mode, open-drain
10: Alternative function (AN0)
11: Output mode, push-pull
R02
R02/AN0/EXT0/EC0
00: Schmitt trigger input mode(EXT11)
01: Output mode, open-drain
10: Alternative function (SXout)
11: Output mode, push-pull
R01
R00
R01/SXout/EXT11
R00/SXin/EXT10
00: Schmitt trigger input mode(EXT10)
01: Output mode, open-drain
10: Alternative function (SXin)
11: Output mode, push-pull
76
October 19, 2009 Ver.1.35