cancel
Showing results for 
Search instead for 
Did you mean: 

On STM32F4 discovery board we got accurate 7000 adc sampes but unable to read 7000 adc samples using stm32f030r8 using SPI. Please provide your inputs.

Bhushan
Associate II

Hi,

We are using ADS1292 to get the ADC samples and we had successfully read the 7000 sample with the help of imx6 processor, STM32F4 controller.

But now our project requirement changed and we have to use the STM32F030R8 controller with same ads1292 board which was working fine with imx6 and STM32F4, so we tried to repeat the same process to configure and read the adc samples though the ADC1292,

but after reading few correct samples value DRDY pin automatically set to high and ADS1292 will never make it low during current running process to indicate the data is ready.

We are using sampling rate of 500sps, internal reference of 4.033-v reference, PGA gain setting for channel 2 is set to default (i.e. 6),and SPI clock rate set to 1 Mbps.

Below are our observed issues:

1. In case for STM32F030R8 we are getting 0xBF value ID control register but with imx6 we got correct value of 0x52.

2. When we are getting correct sample values as per our setting DRDY pin automatically set to high rest of process after few sample values (not getting fix count it will be in between 3 samples to 30 samples).

We have to collect the 7000 samples, please provides us appropriate solution on above issue.

Regards,

Bhushan Bute

2 REPLIES 2

Watch for issues with the FIFO, and the width of the write to SPI->DR

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Bhushan
Associate II

Continue to previous query....today we observed that what ever the data received on MISO pin is same transmitting on MOSI pin but we are using only "HAL_SPI_Receive_IT()" api for receiving data, not using any transmit call during reception of data from ADC, due to which ADC get reset.

Please provide solution on same.