EM78P5840/5841/5842
8-bit Micro-controller
Programmable
divider
ADC output
fpll
fadc
Divider
Nx
10-bit
ADC
fs
PLL
1/Mx
ADCLK1~ADCLK0
ENPLL
CLK2 ~ CLK0
Fig.6 ADC voltage control logic
Bit 5 ~ Bit 7(IN0~ IN2) : Input channel selection of AD converter
These two bits can choose one of three AD input.
IN2
IN1
IN0
Input
Pin
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
AD1
AD2
AD3
AD4
AD5
AD6
AD7
AD8
P90
P91
P62
P63
P64
P65
P92
P93
*Before switch to the AD channel, please set the corresponding pin as AD input.
IOCC (PORTC I/O control, ADC control)
PAGE0 (PORTC I/O control)
7
0
6
0
5
0
4
0
3
0
2
1
0
IOCC2
R/W-1
IOCC1
R/W-1
0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
Bit 1 ~ Bit 2 (IOCC1 ~ IOCC2) : PORTC(1~2) I/O direction control register
0 Î put the relative I/O pin as output
1 Î put the relative I/O pin into high impedance
** Bit0 , Bit3 ~ Bit7 must clear to 0 or MCU power consumption will increase.
The default value in these 6 un-define bits are “1”. Please clear them to “0” when init MCU.
PAGE1 (PORT switch)
7
-
6
-
5
4
3
2
1
0
-
-
-
-
-
1
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W/0
Bit 0: Always set this bit to “1” otherwise partial ADC function cannot be used)
Bit 1 ~ Bit 7: (undefined) not allowed to use
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to change without notice.
22
2004/11/10 V2.6