English
Language : 

MC81F4104 Datasheet, PDF (53/118 Pages) Finechips – ABOV SEMICONDUCTOR
MC81F4104
10. I/O PORTS
The MC81F4104 microcontroller has one I/O port, P0. The CPU accesses ports by writing or reading
port register directly.
10.1 R0 Port Registers
R0CONH – R05~07
R0 PORT CONTROL HIGH REGISTER
00C6H
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.
R0CONH
7
6
5
4
3
2
1
0
R07
-
R06
R05
Reset value:
R/W R/W R/W R/W R/W R/W RW R/W
000-_0001b
R07
R07/AN7/Vref/EC3/EXT2
–
bit4
R06
R06/AN6/EC2/EXT1
R05
R05/AN5
000: Schmitt trigger input mode
(EC3/EXT2)
001: Output mode, open-drain
010: Alternative function (AN7)
011: Alternative function (Vref)
1xx: Output mode, push-pull
Not used for MC81F4104
00: Schmitt trigger input mode
(EC2/EXT1)
01: Output mode, open-drain
10: Alternative function (AN6)
11: Output mode, push-pull
00: Schmitt trigger input mode
01: Output mode, open-drain
10: Alternative function (AN5)
11: Output mode, push-pull
October 19, 2009 Ver.1.35
53