MB89190/190A series
Chapter 12 A/D Converter
12-11
Table 12-4 Function of Each Bit of A/D Control Register 1 (ADC1)
Bit name
Function
Bit 7
to
Bit 4
ANS3 to ANS0:
Analog input
channel select bits
Pin used as analog input pin selected from AN0 to AN7. When A/D conversion is
started by software (ADC2: EXT = 0), these bits can be rewritten when starting A/D
conversion or sense function (AD = 1).
Note: Always set 0 at ANS3.
When ANS3 is 1, the analog input pin cannot be selected. Also, disable the
output of the general-purpose port corresponding to the analog input pin.
When the ADMV bit is 1, do not rewrite these bits.
Do not use pins other than AN0 to AN3.
Remark:
Pins that are not used as analog input pins can be used as general-
purpose ports.
Bit 3
ADI:
Interrupt request
flag bit
When A/D conversion function used
Set to 1 when A/D conversion completed.
When sense function used
When the input voltage matches the set condition of the comparison-condition
setting bit (SIFM), this bit is set to 1.
Interrupt request output when this bit and interrupt request enable bit (ADC2:
ADIE) are 1
Cleared when 0 written to this bit. When 1 written, not changed and nothing
affected
Bit 2
ADMV:
Conversion-on flag
bit
Indicates conversion in progress when A/D conversion function used and voltage
comparison in progress when sense function used
Set to 1 during conversion (during comparison)
Remark:
This bit is a read-only bit. Write to this bit is meaningless and does not
affect operation.
Bit 1
SIFM:
Comparison-
condition setting
bit
This bit is meaningless for A/D conversion.
When sense function used
The comparison condition for the input voltage and the compare voltage is set as
an interrupt factor.
When this bit is 0, an interrupt request occurs (ADI = 1) when the input voltage is
lower than the compare voltage. When this bit is 1, an interrupt request occurs
(ADI = 1) when the input voltage is higher than the compare voltage.
No interrupt request occurs when the input voltage and compare voltage are
equal.
At starting software (ADC2: EXT = 0), this bit can be rewritten concurrently with
starting the sense function (AD = 1).
Note: When the ADMV bit is 1, do not rewrite this bit.
Bit 0
AD:
A/D conversion
start bit
Start A/D conversion function or sense function using software
A/D conversion or sense function started when 1 written to this bit with
continuous start not performed (ADC2: EXT = 0)
Notes:
Even when 0 is written to this bit, the operation of the A/D conversion
function and sense function is not stopped. 0 is always read.
This bit is meaningless when continuous start is performed.