Other Parts Discussed in Thread: ADS1247
hello,
I'm trying to calibrate the ads1247 and ads1248, but the self offset calibration isn't doing anything. Here is the pseudo code of what I'm doing:
- reset ADC
- setup to read internal temperature
- read internal temperature
- set registers:
- MUX1: VREFCON always on, REFSELT default, MUXCAL default
- SYS0: GAIN 4, DATARATE 5 sps
- MUX0: BCS default, MUX_SP ain0, MUX_SN ain1
- IDAC0: DRDY MODE default, IMAG 1000uA
- IDAC1: both disconnected
- set FSC registers to : 0xff, 0x00, 0xff
- set OFC registers to : 0xf0, 0x00, 0x0f
- read full scale and offset registers
- run self offset calibration by
- SS low
- set mux1 to offset calibration (0b001)
- send 0x62
- return MUX1 to previous state
- SS high
- read full scale and offset registers
if the command were working I would see different values, but I'm not. here is what I am getting from the ADC:
internal Temp. : 27.11
Offset register: 111100000000000000001111
Full S register: 111111110000000011111111
After calibration
Offset register: 111100000000000000001111
Full S register: 111111110000000011111111