Part Number: ADS1278
Greetings,
I am using ADS1278 EVM with Dspic33 with these specifications:
- Fclk = 27 MHZ (onboard)
- mode : Low speed
- Format: SPI - TDM - Dynamic
- Only 1 channel enabled rest is PWDN
the issue that i am reading by detecting the DRDY low signal then read the SPI data and the result is fine but when i slow the sampling time (in DSPIC software by using timer), noticed that the analog doesn't change instantly and i have to read a lot of data to reach the correct analog value
so how to solve this issue, i tried using PWDIN after reading but result is the same.
Also i am checking on DRDY without interrupt only in timer, is this correct ?
if (ADS1278_DRDY == 0)
{
uint32_t temp;
WriteSPI2(NOP);
while(SPI2STATbits.SPIRBF == 0);
temp = ReadSPI2();
WriteSPI2(NOP);
*data = (uint32_t)(temp << 16);
while(SPI2STATbits.SPIRBF == 0);
temp = ReadSPI2();
WriteSPI2(NOP);
*data |= (uint32_t)(temp << 8);
while(SPI2STATbits.SPIRBF == 0);
temp = ReadSPI2();
*data |= (uint32_t)temp;
//here i disabled the channel using PWDIN
}
Thanks