HI,
we are using ADS1220 for one of our project.
We are implementing ADC ADS1220 interfaced with ATXMEGA128A4U which is based on SPI Protocol.
Points to be considered:
- Data shifted out of DATA Register is MSB first
- SETUP of ADC configuration registers , WRITING of ADC configuration registers and READING of ADC configuration registers done successfully
- ADC is SET UP as Single Shot, 20 Samples per sec, Gain 1, Vref = 3.3V (External)
- Normal Running mode with Master routine in control of the system:
- An interrupt to sample the ADC occurs – this comes from a timer internal to the hardware that is set to fire at the sampling rate required (200msec). This interrupt call the ADC sample routine.
- ADC Sample Routing will then:
- Issue the START/SYNC command for a new Single Shot sample.
- Poll the DRDY pin waiting for sample to be taken an pin go low.
- Read the value from ADC.
Facing Issue in :
- Reading the ADC counts after conversion.
For Vin = 472mV
Calculated value is 124ED1 (Hex), Formula- Vin(2^23-1)/ Vref
Value seeing on Oscilloscope and inside debugger is 00654f (Hex)à the LSB 4f keeps varying.
Please let us know your comments.