em78p5842 ELAN Microelectronics Corp, em78p5842 Datasheet - Page 20
![no-image](/images/manufacturer_photos/0/2/215/elan_microelectronics_corp_sml.jpg)
em78p5842
Manufacturer Part Number
em78p5842
Description
8-bit Micro-controller
Manufacturer
ELAN Microelectronics Corp
Datasheet
1.EM78P5842.pdf
(45 pages)
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to change without notice.
IOC7 (PORT7 I/O control, PORT7 pull high control)
PAGE0 (PORT7 I/O control register)
Bit0(IOC70): PORT70 pin will defined to general purpose IO, PLLC or OSC by setting code option. In IRC
Bit1 (Unused) : This bit is unused registers. By setting P71S = 1 in code option, PORT71 pin will be a INPUT
Bit2; Bit7 (Unused) : These 2 bits must clear to 0 or MCU power consumption will increase.
Bit3~Bit6 (IOC73~IOC76) : PORT7 I/O direction control register
PAGE1 (PORT7 pull high control register)
mode or crystal mode(only at code option P70S =0 ), PORT70 pin will be a general purpose IO. IOC70 is
PORT70 pin’s I/O direction control register.
Bit 1(P91S) : Select normal I/O PORT91 pin or channel 2 input AD2 pin of ADC
Bit 2(P62S) : Select normal I/O PORT62 pin or channel 3 input AD3 pin of ADC
Bit 3(P63S) : Select normal I/O PORT63 pin or channel 4 input AD4 pin of ADC
Bit 4(P64S) : Select normal I/O PORT64 pin or channel 5 input AD5 pin of ADC
Bit 5(P65S) : Select normal I/O PORT65 pin or channel 6 input AD6 pin of ADC
Bit 6: Unused register. Please clear this bit to 0 or ADC result will wronging.
Bit 7: Unused register. This bit is nor allowed to use.
Bit0: PORT70 pull high control register. This bit only exist on setting PORT70 general purpose IO.
Bit1, Bit7 (Unused): These2 bits must clear to 0 or MCU power consumption will increase.
Bit3~Bit6 : PORT7 pull high control register
-
-
X
0 Î P90 (I/O PORT90) pin is selected
1 Î AD1 (Channel 1 input of ADC) pin is selected
0 Î P91 (I/O PORT91) pin is selected
1 Î AD2 (Channel 2 input of ADC) pin is selected
0 Î P62 (I/O PORT62) pin is selected
1 Î AD3 (Channel 3 input of ADC) pin is selected
0 Î P63 (I/O PORT63) pin is selected
1 Î AD4 (Channel 4 input of ADC) pin is selected
0 Î P64 (I/O PORT64) pin is selected
1 Î AD5 (Channel 5 input of ADC) pin is selected
0 Î P65 (I/O PORT65) pin is selected
1 Î AD5 (Channel 6 input of ADC) pin is selected
X
0 Î put the relative I/O pin as output
1 Î put the relative I/O pin into high impedance
0 Î put the relative I/O pin as output
1 Î put the relative I/O pin into high impedance
7
0 Î disable pull high function.
1 Î enable pull high function
0 Î disable pull high function.
1 Î enable pull high function
7
The default value in these 3 bits are “1”. Please clear them to “0” when init MCU.
only pin.
R/W-1
R/W-0
IOC76
PH76
6
6
R/W-1
R/W-0
IOC75
PH75
5
5
R/W-1
R/W-0
IOC74
PH74
4
4
R/W-1
IOC73
R/W-0
PH73
3
3
18
-
X
2
X
-
2
-
X
1
X
-
1
R/W-1
IOC70
R/W-0
PH70
0
0
EM785840/5841/5842
8-bit Micro-controller
2004/11/10 V1.2