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.
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;
Hi Fatih,
I'll take a look at this and get back to you tomorrow.
Best Regards,
Angel
Hi Fatih,
Are you using an external clock?
Section "8.3.5 Output Data Rate" provides the conversion time for different settings in terms of t(CLK) cycles using an external clock with a clock frequency of f(CLK) = 4.096 MHz
The data rates scale proportionally in case an external clock with a frequency other than 4.096 MHz is used.
When using the internal oscillator, the conversion time and filter notches vary by the amount specified in the Electrical Characteristics table for oscillator accuracy.
Best Regards,
Angel
Hi Angel,
I found a problem about library which I used for ADS1220. In the process, there are two delay before and after CS Low - High operation. I changed the delay from ms to us as in the datasheet values, finally the issue resolved. Thank you very much.