This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS1191: ADS1191 read adc

Part Number: ADS1191

Hi.

about ADS1191. I have a question.

If read adc value when not connect IN1P, IN1N, , is it normal the value is 0x8000??

I got right value of ID register. So i thought operating sensor is no issue.

but read adc value is strange.

under below is code of configuration 

// power up

nrf_gpio_cfg_output(RESET_PIN);
nrf_gpio_cfg_output(START_PIN);
nrf_gpio_cfg_output(CLKSEL);

nrf_gpio_pin_clear(RESET_PIN);
nrf_gpio_pin_clear(START_PIN);
nrf_gpio_pin_clear(CLKSEL);

nrf_gpio_pin_set(CLKSEL);
nrf_gpio_pin_set(RESET_PIN);

nrf_delay_ms(20);

nrf_gpio_pin_set(RESET_PIN);
nrf_delay_ms(1);
nrf_gpio_pin_clear(RESET_PIN);
nrf_delay_ms(1);
nrf_gpio_pin_set(RESET_PIN);
nrf_delay_ms(1);

nrf_gpio_pin_set(CLKSEL);
nrf_delay_ms(20);

nrf_gpio_pin_set(RESET_PIN);
nrf_delay_ms(1000);

nrf_gpio_pin_set(RESET_PIN);
nrf_delay_ms(1);
nrf_gpio_pin_clear(RESET_PIN);
nrf_delay_ms(1);
nrf_gpio_pin_set(RESET_PIN);
nrf_delay_ms(1);

// wirte reg

//WRITE CONFIG1
NRF_LOG_INFO("WRITE CONFIG1");

write_reg_command(tx_buffer, CONFIG1, 0x02); // b0000 0010 500SPS

//WRITE CONFIG2
NRF_LOG_INFO("WRITE CONFIG2");

write_reg_command(tx_buffer, CONFIG2, 0xC0); // b1010 0000


//WRITE LOFF
NRF_LOG_INFO("WRITE LOFF");

write_reg_command(tx_buffer, LOFF, 0x10); // b0001 0000

//WRITE CH1SET
NRF_LOG_INFO("WRITE CH1SET");

write_reg_command(tx_buffer, CH1SET, 0x00); // b0000 0000

//WRITE CH2SET
NRF_LOG_INFO("WRITE CH2SET");

write_reg_command(tx_buffer, CH2SET, 0x00); // b0000 0000

//WRITE RLD_SENS
NRF_LOG_INFO("WRITE RLD_SENS");

write_reg_command(tx_buffer, RLD_SENS, 0x00); // b0000 0000

//WRITE LOFF_SENS
NRF_LOG_INFO("WRITE LOFF_SENS");

write_reg_command(tx_buffer, LOFF_SENS, 0x00); // b0000 0000

//WRITE LOFF_STAT
NRF_LOG_INFO("WRITE LOFF_STAT");

write_reg_command(tx_buffer, LOFF_STAT, 0x00); // b0000 0000

//WRITE MISC1
NRF_LOG_INFO("WRITE MISC1");

write_reg_command(tx_buffer, MISC1, 0x02); // b0000 0010

//WRITE MISC2
NRF_LOG_INFO("WRITE MISC2");

write_reg_command(tx_buffer, MISC2, 0x00); // b0000 0000

//WRITE GPIO
NRF_LOG_INFO("WRITE GPIO");

write_reg_command(tx_buffer, GPIO, 0x0C); // b0000 1100

// Change RDATAC mode

write_command(tx_buffer, START);

write_command(tx_buffer, RDATAC);

//START READ data

write_command(tx_buffer, RDATAC);