MC81F4204
April 24, 2012 Ver.1.41 67
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
R0CONL
– – R02 R01 R00
Reset value: 00H
– – R/W R/W R/W R/W R/W R/W
– bit7 – bit6 Not used for MC81F4204
00: Schmitt trigger input mode
(EC0/EXT0)
01: Output mode, open-drain
10: Alternative function (AN0)
R02
R02/AN0/EXT0/EC0
11: Output mode, push-pull
00: Schmitt trigger input mode (EXT11)
01: Output mode, open-drain
10: Alternative function (SXout)
R01
R01/SXout/EXT11
11: Output mode, push-pull
00: Schmitt trigger input mode (EXT10)
01: Output mode, open-drain
10: Alternative function (SXin)
R00
R00/SXin/EXT10
11: Output mode, push-pull