MC81F4204
April 24, 2012 Ver.1.41 65
10.1 R0 Port Registers
R0CONH – R05~07
R0 PORT CONTROL HIGH REGISTER 00C6H
A reset clears the R0CONH register to ‘00H’, makes R07-R05 pins input mode. You can use
R0CONH 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 R0CONH register must also be enabled in the associated peripheral module.
7 6 5 4 3 2 1 0
R0CONH
R07 R06 – R05
R/W R/W R/W R/W R/W R/W – R/W
Reset value:
0000_00-0b
000: Schmitt trigger input mode (EXT5)
001: Output mode, open-drain
010: Alternative function (AN5)
011: Alternative function (T2O)
R07
R07/AN5/EXT5/T2O
1xx: Output mode, push-pull
000: Schmitt trigger input mode
(EC2/EXT4)
001: Output mode, open-drain
010: Alternative function (AN4)
011: Alternative function (SO)
R06
R06/AN4/EXT4/SO/EC2
1xx: Output mode, push-pull
–
bit1 Not used for MC81F4204
1: Output mode, push-pull
R05
R05/AN3/EXT3/SI/T1O/PWM1O
0: depend on R0CONM.7 – .6
Note:
1. When R0CONH.0 is selected to ‘1’, R05 is push-pull output mode.
2. When R0CONH.0 is selected to ‘0’, R05 depends on R0CONM.7 - .6 bits.