EM78P5840N/41N/42N
8-Bit Microcontrollers
Page 1 (Port 6 Pins Switch Control Register)
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
-
0
P65S
P64S
P63S
-
-
R/W-0 R/W-0 R/W-0
Bit 2
P62S
R/W-0
Bit 1
P91S
R/W-0
Bit 0
P90S
R/W-0
Bit 0 (P90S): Select normal I/O Port90 pin or ADC Channel 1 input AD1 pin
"0" : P90 (I/O Port 90) pin is selected
"1" : AD1 (ADC Channel 1 input) pin is selected
Bit 1 (P91S): Select normal I/O Port 91 pin or Channel 2 input AD2 pin of ADC
"0" : P91 (I/O Port 91) pin is selected
"1" : AD2 (ADC Channel 2 input) pin is selected
Bit 2 (P62S): Select normal I/O Port 62 pin or Channel 3 input AD3 pin of ADC
"0" : P62 (I/O Port 62) pin is selected
"1" : AD3 (ADC Channel 3 input) pin is selected
Bit 3 (P63S): Select normal I/O Port 63 pin or Channel 4 input AD4 pin of ADC
"0" : P63 (I/O Port 63) pin is selected
"1" : AD4 (ADC Channel 4 input) pin is selected
Bit 4 (P64S): Select normal I/O Port 64 pin or Channel 5 input AD5 pin of ADC
"0" : P64 (I/O Port 64) pin is selected
"1" : AD5 (ADC Channel 5 input) pin is selected
Bit 5 (P65S): Select normal I/O Port 65 pin or Channel 6 input AD6 pin of ADC
"0" : P65 (I/O Port 65) pin is selected
"1" : AD5 (ADC Channel 6 input) pin is selected
Bit 6 (undefined): This bit is not used. However, it must be cleared to “0” to prevent
possible error from occuring.
Bit 7 (undefined): This bit is not used
NOTE
1. ADC Channel 1 and Channel 2 are shared with Port 90 and Port 91.
2. ADC Channel 3 and Channel 6 are shared with Port 62 and Port 65.
Product Specification (V1.0) 04.25.2006
(This specification is subject to change without further notice)
• 21