Tool/software:
Hi,
I need help about data rate time for Turbo Mode, Data Rate (011: 350 SPS), Continuous Mode. I will share the code below. (ADS1220_default_regs:0x01, 0x74, 0xC0, 0x00)
I connected potentiometer to the input of adc and I can configure and read the ADC normally.
Data conversion period normally required about 2.9 millisecond for 350SPS but I measure the time between start of conversion to end is 2ms.
Also I measured accurate the time for 1000 conversion is 2000ms. (One coversion time is 2ms again.) Is it normal?
ADS1220_regs regs = ADS1220_default_regs;
ini = ADS1220_init(&hspi1, ®s);
HAL_Delay(100); // Best to let settle
ADS1220_set_pga_gain(&hspi1, ADS1220_PGA_GAIN_1, ®s);
ADS1220_disable_PGA(&hspi1, ®s);
ADS1220_set_conv_mode_single_shot(&hspi1, ®s);
ch1 = ADS1220_read_singleshot_channel(&hspi1, ADS1220_MUX_AIN0_AIN1, ®s, DRDY_ADC2_GPIO_Port, DRDY_ADC2_Pin, 100);
uint16_t tmr_init = 0;
uint16_t tmr_finish = 0;
tmr_init = HAL_GetTick();
ch1 = ADS1220_read_singleshot_channel(&hspi1, ADS1220_MUX_AIN0_AIN1, ®s, DRDY_ADC2_GPIO_Port, DRDY_ADC2_Pin, 100);
tmr_finish = HAL_GetTick();
tmr_finish = tmr_finish - tmr_init;