JAJSEG5A January 2018 – October 2018 ADS112U04
PRODUCTION DATA.
The following list shows a pseudo code sequence with the required steps to set up the device and the microcontroller that interfaces to the ADC in order to take subsequent readings from the ADS112U04 in continuous conversion mode. The dedicated GPIO2/DRDY pin is used to indicate availability of new conversion data. The default configuration register settings are changed to gain = 16, continuous conversion mode. This example shows data collection using manual data read mode.
Power-up;
Delay to allow power supplies to settle and power-on reset to complete; minimum of 600 µs;
Configure the UART interface of the microcontroller to 8-N-1 format;
Configure the microcontroller GPIO connected to the GPIO2/DRDY pin as a falling edge triggered interrupt input;
Send the synchronization word to the device (55h);
Send the RESET command (06h) to make sure the device is properly reset after power-up;
Delay for a minimum of td(RSRX);
Write the respective register configurations with the WREG command, sending the synchronization word each time (55h, 40h, 08h, 55h, 42h, 08h, 55h, 48h, 48h);
As an optional sanity check, send the synchronization word then read back all configuration registers with the RREG command (55h, 2xh);
Send the synchronization word to the device (55h);
Send the START/SYNC command (08h) to start converting in continuous conversion mode;
Loop
{
Wait for GPIO2/DRDY to transition low;
Send the synchronization word (55h);
Send the RDATA command (10h);
Receive 2 bytes of data from TX;
}
Send the synchronization word (55h);
Send the POWERDOWN command (02h) to stop conversions and put the device in power-down mode;
TI recommends running an offset calibration before performing any measurements or when changing the gain of the PGA. The internal offset of the device can, for example, be measured by shorting the inputs to mid-supply (MUX[3:0] = 1110). The microcontroller then takes multiple readings from the device with the inputs shorted and stores the average value in the microcontroller memory. When measuring the sensor signal, the microcontroller then subtracts the stored offset value from each device reading to obtain an offset compensated result; the offset can be either positive or negative in value.