ml670100 Oki Semiconductor, ml670100 Datasheet - Page 154

no-image

ml670100

Manufacturer Part Number
ml670100
Description
Ml670100 Is A High-performance 32-bit Microcontroller
Manufacturer
Oki Semiconductor
Datasheet
10.3
10-10
The analog-to-digital converter's three operating modes fall into two types: the scan modes and
select mode. AD Control Register H (ADHCON) specifies the mode.
The scan modes sequentially convert analog inputs from four channels (CH0 to CH3 or CH4 to
CH7), storing the individual results in the AD Result Registers 0 to 3 (ADCRn, n=0 - 3)
assigned to the channels. Setting the ADRUN bit in ADHCON to "1" starts conversion.
After four conversions, the analog-to-digital converter generates an A/D conversion complete
interrupt request (ADINT) and sets the ADREQ bit in the AD Status Register (ADST) to "1." If
the CONT bit in ADHCON is "0," the analog-to-digital converter then resets the ADRUN bit to
"0" and shuts down. If the CONT bit is "1," specifying continuous operation, the analog-to-
digital converter leaves the ADRUN bit at "1," and operation continues.
Select mode converts analog input from a single channel, storing the individual results in the
AD Result Register (ADCRn, n=0 - 3) assigned to that channel. Setting the ADRUN bit in
ADHCON to "1" starts conversion. After conversion, the analog-to-digital converter generates
an A/D conversion complete interrupt request (ADINT) and sets the ADREQ bit in the AD
Status Register (ADST) to "1." If the CONT bit in ADHCON is "0," the analog-to-digital
converter then resets the ADRUN bit to "0" and shuts down. If the CONT bit is "1," specifying
continuous operation, the analog-to-digital converter leaves the ADRUN bit at "1," and
operation continues.
Switching from a scan mode to select mode in the middle of a scan cycle is not possible.
Terminate the scan mode conversions first.
Figure 10.6 shows the execution timing for A/D conversion.
Figure 10.7 gives examples of stored results.
Analog-to-Digital Converter (ADC) Operation

Related parts for ml670100