I am using ADS1282 device, but I are faced some problems. I can't read register value from ADS1282 correctly.
I am using SPI interface. Here is my sequence.
2. Write SDATAC (0x11) command to stop Read Data Continuous mode. 3. Write 0x20 command to read registers starting at 0x04 address 4. Write 0x00 command to read 1 registers 5. Write 0xF0 through SPI to read data out.
Somehow I read zero from the ADS1282 device always. Do you see anything wrong with my test sequence?
while(1) { //ADS1282 RESET, at least 0.488us to force a reset //GPIO_ResetBits(GPIOC,GPIO_Pin_7); //Delay_us(1); //GPIO_SetBits(GPIOC,GPIO_Pin_7); //Delay_us(1); //Stop read data continuous X25042_SendByte(0x11); Delay_us(10); //read register X25042_SendByte(0x24); Delay_us(10); X25042_SendByte(0x00); Delay_us(10); Reg_data = X25042_SendByte(0xF0); Delay_us(10); }