Hi w w1, Welcome to the TI E2E Forums! Is the command sequence you showed what you are observing on the ADS1281EVM, or is that the command sequence you are currently using with the STM MCU? If you'd refer to Figure 51 in the ADS1281 datasheet, the command sequence for calibration should be: SDATAC, SYNC, RDATAC, (WAIT FOR /DRDY), SDATAC, OFSCAL, RDATAC, (WAIT FOR /DRDY) I'm not entirely sure why the device needs to be in RDATAC mode, but certainly the SDATAC commands are necessary to exit RDATAC mode to be able to send the SYNC and OFSCAL commands at all. The first time you wait for data ready you are ensuring that the digital filter has settled before performing the calibration. Alternatively, you could simple take a reading (or the average of multiple readings) with the inputs shorted and write this result to the OFC[2:0] registers. The OFSCAL command is optional. Unfortunately, I do not have any example code for the ADS1282 ; however, if you have additional programming questions we'll do our best to help you out!
↧