I'm using the ADC121 analog input Grove module and using the AnalogIn example. I've noticed that a change in the analog input is several seconds late in being collected by getData(). Can anyone tell me how to get the most current samples available? Also, I need to change the gain/range value. Is there a good reference available on how to control the ADC121 (register functions, etc)?
At current gain/range setting (I changed the write following the write to REG_ADDR_CONFIG from the original 0x20 to 0x02), and after connecting the input of the ADC to +5V, all samples are 4095, except for single-sample pulses every 661st or 662nd sample which have a value of 0. It happens repetitively and occasionally doesn't happen at all (4095 instead). I'm curious why and how best to deal with it.