ADSTAT

ADSTAT

ADC Status Register
Notes:
  1. 1.MATH bit cannot be cleared by software while STAT = ‘b100.
  2. 2.If ADC clock source is ADCRC, and FOSC < ADCRC, the indicated status may not be valid.
  3. 3.STAT = ‘b100 appears between the two triggers when DSEN = 1 and CONT = 0.
  0x233 8  

ADSTAT

Bit  7 6 5 4 3 2 1 0  
  AOV UTHR LTHR MATH   STAT[2:0]  
Access  R/C/HS/HC R R R/W/HS   R R R  
Reset  0 0 0 0   0 0 0  

Bit 7 – AOV: ADC Accumulator Overflow

ADC Accumulator Overflow

ValueDescription
1 ADACC or ADFLTR or ADERR registers have overflowed
0 ADACC, ADFLTR and ADERR registers have not overflowed

Bit 6 – UTHR: ADC Module Greater-than Upper Threshold Flag

ADC Module Greater-than Upper Threshold Flag

ValueDescription
1 ADERR > ADUTH
0 ADERRADUTH

Bit 5 – LTHR: ADC Module Less-than Lower Threshold Flag

ADC Module Less-than Lower Threshold Flag

ValueDescription
1 ADERR < ADLTH
0 ADERR ADLTH

Bit 4 – MATH: ADC Module Computation Status

ADC Module Computation Status

ADC Module Computation Status(1)

ValueDescription
1 Registers ADACC, ADFLTR, ADUTH, ADLTH and the AOV bit are updating or have already updated
0 Associated registers/bits have not changed since this bit was last cleared

Bits 2:0 – STAT[2:0]: ADC Module Cycle Multi-Stage Status

ADC Module Cycle Multi-Stage Status

ValueDescription
111 ADC module is in 2nd conversion stage
110 ADC module is in 2nd acquisition stage
101 ADC module is in 2nd precharge stage
100 ADC computation is suspended between 1st and 2nd sample; the computation results are incomplete and awaiting data from the 2nd sample(2,3)
011 ADC module is in 1st conversion stage
010 ADC module is in 1st acquisition stage
001 ADC module is in 1st precharge stage
000 ADC module is not converting