
DS4830 User’s Guide
53
7.2.2 – ADC Status Register (ADST)
Register Address: M2[06h]
Reserved. The user should write 0 to these bits.
Sample and Hold 1 Data Available Interrupt Flag. This bit is set to ‘1’ when Sample and
Hold is completed on GP12-GP13 in dual mode and data is ready at buffer location 24.
This flag will cause an interrupt if the SH1DAI_EN (SHCN.5) is set to ‘1’. This bit is cleared
by software writing a ‘0’.
Sample and Hold 0 Data Available Interrupt Flag. This bit is set to ‘1’ when Sample and
Hold is completed on GP2-GP3 if only S/H0 is used or after completion of S/H1 conversion
on GP12-GP13 when both are used in single mode. The S/H0 and S/H1 data is ready at
buffer location 23 and 24 respectively. This flag will cause an interrupt if the SH0DAI_EN
(SHCN.1) is set to ‘1’. This bit is cleared by software writing a ‘0’.
External Temperature 1 Data Available Interrupt Flag. This bit is set to ‘1’ when an
external temperature conversion on GP10-GP11 is complete and data is ready in buffer
location 20. This flag will cause an interrupt if the EX1_IEN (TEMPCN.8) is enabled. This
bit is cleared by software writing a ‘0’.
External Temperature 0 Data Available Interrupt Flag. This bit is set to ‘1’ when an
external temperature conversion on GP8-GP9 is complete and data is ready in buffer
location 21. This flag will cause an interrupt if the EX0_IEN (TEMPCN.9) is enabled. This
bit is cleared by software writing a ‘0’.
Internal Temperature Data Available Interrupt Flag. This bit is set to ‘1’ when an internal
temperature conversion is complete and data is ready in buffer location 22. This flag will
cause an interrupt if the INT_IEN (TEMPCN.10) is enabled. This bit is cleared by software
writing a ‘0’.
ADC Data Available Interrupt Flag. This bit is set to ‘1’ when the condition matching
ADDAINV bit is met. This flag will cause an interrupt if the ADDAIE bit is set. This bit is
cleared by software writing a ‘0’ or when software changes ADCONV bit from '0' to ‘1’.
ADC Start Conversion. Setting this bit to ‘1’ starts the ADC conversion process. This bit
will remain set until the ADC conversion process is finished. In single sequence mode, this
bit will be cleared to ‘0’ when the ADC conversion sequence is finished. In continuous
sequence mode, this bit will remain set until the ADC conversion is stopped. To stop ADC
conversion at any time, write ‘0’ to this bit. The ADC will stop acquiring data after the
current conversion is finished or if the ADC is waiting during extended acquisition time, the
ADC will stop immediately.
ADC Conversion Configuration Register Select.
ADCFG = 0: The ADDATA register points to the data buffers. The ADIDX[4:0] bits
determine which data buffer is currently being accessed. When ADCFG=0, ADDATA is
read only.
ADCFG = 1: The ADDATA register points to the ADC sequence configuration registers.
The ADIDX[4:0] bits determine which configuration register is currently being accessed.
When ADCFG=1, ADDATA has read/write access.
ADC Register Index Bits [4:0]. These bits together with ADCFG select the source /
destination for ADDATA access. When ADCFG=1, ADIDX [4:0] are used to address one of
24 configuration registers. When ADCFG=0, ADIDX [4:0] are used to select one of 25 data
buffers. This register value will be auto-incremented on successive access (read/write) of
ADDATA register.
Comentarios a estos manuales