Hi Fausto, After making sure PDWN, DSYNC and RESET pins are pulled high and DVDD and AVDD supplies are active, make sure the POL pin is set to the correct mode for your SPI communication. Make sure you keep CS low throughout the entire communications transaction. Also make sure you have a proper oscillation on the XIN/XOUT pins ( or the proper clock frequency is provided from a clock source on XIN). Without writing anything to the ADS1216 , read the registers and compare to the default settings in the datasheet to make sure your communication is setup properly. Also with a scope or logic analyzer verify that the DRDY pin is pulsing at the default data rate. If you do not see this pin toggling, then most likely there is a supply or other issue as mentioned in the first paragraph above. If things appear to be working at this point, you can try writing to the ADS1216 , then verify your writes with a register read. DRDY transitioning from a high to low state signal a conversion has completed and can be read from the device. Pulsing DSYNC will restart a conversion otherwise if the DSYNC, RESET, and PDWN pins are high the device should be converting and DRDY toggling. When using the internal reference make sure that VREFOUT connects to VREF+ and VREF- connects to AGND. Also in your code comment you stated fosc/256 when the value sent is fosc/128. Best regards, Bob B
↧