EM78P5840N/41N/42N
8-Bit Microcontrollers
Programmable
divider
ADC output
10-bit
ADC
fpll
fadc
fs
Divider
Nx
PLL
1/Mx
ADCLK1~ADCLK0
ENPLL
CLK2 ~ CLK0
Figure 7-4 ADC Voltage Control Logic
Bit 5 ~ Bit 7 (IN0~ IN2) : Input channel selection of the AD converter. These two bits
can choose one of the following three AD inputs.
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
NOTE
Before switching to the AD channel, the corresponding pin must be set
as an AD input.
7.3.8
IOCC (Port C I/O Control, ADC Control)
Page 0 (Port C I/O Control)
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
IOCC2
R/W-1
Bit 1
IOCC1
R/W-1
Bit 0
0
-
0
-
0
-
0
-
0
-
0
-
Bit 0 (undefined): This bit is not used. However, it must be cleared to “0.” Otherwise,
the MCU power consumption will increase.
Bit 1 ~ Bit 2 (IOCC1 ~ IOCC2): PORTC (1~2) I/O direction control register
"0" : Set the corresponding I/O pin as output
"1" : Set the corresponding I/O pin to high impedance
Bit 3 ~ Bit 7 (undefined): This bit is not used. However, it must be cleared to “0.”
Otherwise, the MCU power consumption will increase.
NOTE
The default value of Bit 0 and Bits 3~7 is “1.” Clear to “0” when
initializing the MCU
Product Specification (V1.0) 04.25.2006
(This specification is subject to change without further notice)
• 25