English
Language : 

MC81F4332 Datasheet, PDF (70/198 Pages) Finechips – ABOV SEMICONDUCTOR 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC81F4x16
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 Reset value: 00H
R/W R/W R/W R/W R/W R/W – R/W
R07
R07/AN5/EXT5/T2O
R06
R06/AN4/EXT4/SO/EC2
–
bit1
R05
R05/AN3/EXT3/SI/T1O/PWM1O
000: Schmitt trigger input mode(EXT5)
001: Output mode, open-drain
010: Alternative function (AN5)
011: Alternative function (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)
1xx: Output mode, push-pull
Not used for MC81F4x32
1: Output mode, push-pull
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.
70
October 19, 2009 Ver.1.35