
EM78P5840/5841/5842
8-bit Micro-controller
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to change without notice.
2004/11/10 V2.6
PAGE1 (P6* pins switch control register)
7
6
X
0
-
R/W-0
ADC channel 1 and channel 2 are shared with PORT90 and PORT91.
Bit 0(P90S) : Select normal I/O PORT90 pin or channel 1 input AD1 pin of ADC
0
P90 (I/O PORT90) pin is selected
1
AD1 (Channel 1 input of ADC) pin is selected
Bit 1(P91S) : Select normal I/O PORT91 pin or channel 2 input AD2 pin of ADC
0
P91 (I/O PORT91) pin is selected
1
AD2 (Channel 2 input of ADC) pin is selected
Bit 2(P62S) : Select normal I/O PORT62 pin or channel 3 input AD3 pin of ADC
0
P62 (I/O PORT62) pin is selected
1
AD3 (Channel 3 input of ADC) pin is selected
Bit 3(P63S) : Select normal I/O PORT63 pin or channel 4 input AD4 pin of ADC
0
P63 (I/O PORT63) pin is selected
1
AD4 (Channel 4 input of ADC) pin is selected
Bit 4(P64S) : Select normal I/O PORT64 pin or channel 5 input AD5 pin of ADC
0
P64 (I/O PORT64) pin is selected
1
AD5 (Channel 5 input of ADC) pin is selected
Bit 5(P65S) : Select normal I/O PORT65 pin or channel 6 input AD6 pin of ADC
0
P65 (I/O PORT65) pin is selected
1
AD5 (Channel 6 input of ADC) pin is selected
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.
IOC7 (PORT7 I/O control, PORT7 pull high control)
PAGE0 (PORT7 I/O control register)
7
6
5
4
X
IOC76
IOC75
IOC74
-
R/W-1
R/W-1
R/W-1
Bit0(IOC70): PORT70 pin will defined to general purpose IO, PLLC or OSC by setting code option. In IRC
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.
0
put the relative I/O pin as output
1
put the relative I/O pin into high impedance
Bit1 (Unused) : This bit is unused registers. By setting P71S = 1 in code option, PORT71 pin will be a INPUT
only pin.
Bit2; Bit7 (Unused) : These 2 bits must clear to 0 or MCU power consumption will increase.
The default value in these 3 bits are “1”. Please clear them to “0” when init MCU.
Bit3~Bit6 (IOC73~IOC76) : PORT7 I/O direction control register
0
put the relative I/O pin as output
1
put the relative I/O pin into high impedance
PAGE1 (PORT7 pull high control register)
7
6
5
4
3
X
PH76
PH75
PH74
PH73
-
R/W-0
R/W-0
R/W-0
R/W-0
Bit0: PORT70 pull high control register. This bit only exist on setting PORT70 general purpose IO.
0
disable pull high function.
1
enable pull high function
Bit1, Bit7 (Unused): These2 bits must clear to 0 or MCU power consumption will increase.
Bit3~Bit6 : PORT7 pull high control register
5
4
3
2
1
0
P65S
R/W-0
P64S
R/W-0
P63S
R/W-0
P62S
R/W-0
P91S
R/W-0
P90S
R/W-0
3
2
X
-
1
X
-
0
IOC73
R/W-1
IOC70
R/W-1
2
X
-
1
X
-
0
PH70
R/W-0