Datasheet

REV. 0–20–
ADuC831
Table IV. ADCCON2 SFR Bit Designations
Bit
Name Description
ADCCON2.7 ADCI The ADC interrupt bit (ADCI) is set by hardware at the end of a single ADC conversion cycle or at
the end of a DMA block conversion. ADCI is cleared by hardware when the PC vectors to the ADC Inter-
rupt Service Routine. Otherwise, the ADCI bit should be cleared by user code.
ADCCON2.6 DMA The DMA mode enable bit (DMA) is set by the user to enable a preconfigured ADC DMA mode opera-
tion. A more detailed description of this mode is given in the ADC DMA Mode section. The DMA bit is
automatically set to “0” at the end of a DMA cycle. Setting this bit causes the ALE output to cease, it will
start again when DMA is started and will operate correctly after DMA is complete.
ADCCON2.5 CCONV The continuous conversion bit (CCONV) is set by the user to initiate the ADC into a continuous mode of
conversion. In this mode, the ADC starts converting based on the timing and channel configuration
already set up in the ADCCON SFRs; the ADC automatically starts another conversion once a previ-
ous conversion has completed.
ADCCON2.4 SCONV The single conversion bit (SCONV) is set to initiate a single conversion cycle. The SCONV bit is
automatically reset to “0” on completion of the single conversion cycle.
ADCCON2.3 CS3 The channel selection bits (CS3-0) allow the user to program the ADC channel selection under
ADCCON2.2 CS2 software control. When a conversion is initiated, the channel converted will be the one pointed to by
ADCCON2.1 CS1 these channel selection bits. In DMA mode, the channel selection is derived from the channel ID
ADCCON2.0 CS0 written to the external memory.
CS3 CS2 CS1 CS0 CH#
00000
00011
00102
00113
01004
01015
01106
01117
1000Temp Monitor Requires minimum of 1 s to acquire
1001DAC0 Only use with Internal DAC o/p buffer on
1010DAC1 Only use with Internal DAC o/p buffer on
1011AGND
1100VREF
1111DMA STOP Place in XRAM location to finish DMA sequence,
see the ADC DMA Mode section.
All other combinations reserved
ADCCON2 – (ADC Control SFR #2)
The ADCCON2 register controls ADC channel selection and
conversion modes as detailed below.
SFR Address: D8H
SFR Power-On Default Value: 00H
Bit Addressable: YES