
DS4830 User’s Guide
52
7.2 – ADC Register Descriptions
The ADC is controlled by ADC SFR registers. The PINSEL register is used to configure pins as analog pin for ADC use.
Four of the registers, ADST, ADADDR, ADCN, and ADDATA are used for setup, control, and reading from the ADC.
There are few other registers, ETS, ADCG1-4, ADVOFF, and TOEX, 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)
Register Address: M2[03h]
* Unrestricted read, but can only be written to when ADCONV = 0.
ADC Clock Divider. These bits select the ADC conversion clock in relationship to the
Core Clock.
Interrupt After Number of Sample. These bits define interrupt after Number of ADC
Samples and are used with ADDAINV. If ADDINV is set to ‘1’, then ADC Interrupt will
occur after (NUM_SMP + 1) ADC samples and End of Sequence.
ADC Data Available Interrupt Interval. This bit selects the condition for setting 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 =
(NUM_SMP + 1).
ADC Continuous Sequence Mode. Setting this bit to ‘1’ will enable the continuous
sequence mode. Clearing this bit to ‘0’ will disable the continuous sequence mode. In
single sequence mode, the ADC conversion will stop 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’ will enable an
interrupt to be generated when the ADDAI=1. Clearing this bit to ‘0’ will disable an interrupt
from generating when ADDAI=1.
Location override bit. Setting this bit to ‘1’ will enable the user to select an alternate
location for storing ADC conversion results. The alternate location is defined by
ADDATA[12:8] (ALT_LOC). By default, the ADC conversion results are stored in ADC
buffer location corresponding to channel number. Refer 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.
Kommentare zu diesen Handbüchern