求助ads1220的配置程序。
Power-up
• Delay
• Configure the SPI interface of the microcontroller to SPI mode 1
• If the CS pin is not tied low permanently, configure the microcontroller GPIO connected to CS as an output
• Configure the microcontroller GPIO connected to the DRDY pin as an interrupt input
• Set CS to the ADS1220 low
• Delay
• Send the RESET command (06h) to make sure the ADS1220 is properly reset after power-up
• Write the respective register configuration using the WREG command (43h, 08h, 04h, 10h, and 00h)
• Delay
• Read back all configuration registers using the RREG command (23h) to make sure the correct values are
written
• Delay
• Send the START/SYNC command (08h) to start converting in continuous conversion mode
• Delay
• Clear CS to high (resets the serial interface)
• Loop
{
Wait for DRDY to transition low
Take CS low
Delay
Send 24 SCLK rising edges to read out conversion data on DOUT
Delay
Clear CS to high
}
• Take CS low
• Delay
• Send the POWERDOWN command (02h) to stop conversions and put the ADS1220 in power-down mode
• Delay
• Clear CS to high