
DS4830A User’s Guide
56
7.2 – ADC Register Descriptions
The ADC is controlled by the ADC SFR registers. The PINSEL register is used to configure pins as analog pins for
ADC use. Six of the registers, ADST, ADST1, ADADDR, ADCN, RPCFG, REFAVG and ADDATA are used for
setup, control, and reading from the ADC. Registers ADCG1-4 and ADVOFF which are used to adjust the gains and
offsets applied to ADC results. To avoid undesired operations, the user should not write to bits labeled as
“Reserved”.
7.2.1 – ADC Control Register (ADCN)
* Unrestricted read, but can only be written to when ADCONV = 0 except ADDAIE bit.
ADC Clock Divider. These bits select the ADC conversion clock in relationship to the
Core Clock.
Interrupt After Number of Sample. These bits define the Number of ADC samples
required for an ADC interrupt when ADDAINV = 1. If ADDAINV is set to ‘1’, then ADC
Interrupt occurs after (NUM_SMP + 1) ADC samples and End of Sequence.
ADC Data Available Interrupt Interval. This bit selects the condition for setting the
data available interrupt flag (ADDAI).
When ADDAINV = 0, ADDAI is set after End of Sequence.
When ADDAINV = 1, ADDAI is set after End of Sequence and after ADC Samples =
ADC Continuous Sequence Mode. Setting this bit to ‘1’ enables the continuous
sequence mode. Clearing this bit to ‘0’ disables
the continuous sequence mode. In
single sequence mode, the ADC conversion is stopped after the end of the sequence.
The user should set this bit to ‘1’, when temperature and sample and hold are also
enabled.
ADC Data Available Interrupt Enable. Setting the ADDAIE bit to ‘1’ enables an
interrupt to be generated when the ADDAI=1. Clearing this bit to ‘0’ disables an
interrupt from generating when ADDAI=1. This bit is unconditional writable.
Location override bit. Setting this bit to ‘1’ enables the user to select an alternate
location for storing ADC conversion results. The alternate
ADDATA[12:8] (ALT_LOC). By default, the ADC conversion results are stored in ADC
buffer location corresponding to channel number. See Table 7-1.
ADC Acquisition Extension Bits [3:0]. These bits are used to extend sample
acquisition time if the corresponding ADC Acquisition Extension is enabled
(ADDATA.ADACQEN =1 when ADST.ADCFG is set to ‘1’). See ADC Conversion Time
Section for details.
The ADC acquisition extension should not be used when the fast
comparator is used for the same channel.
Komentáře k této Příručce