cancel
Showing results for 
Search instead for 
Did you mean: 

spi adc

yang hong
Associate II

I am using stm32l476rg. I am connecting a external spi adc with 1.25MHz clock. I would like to have a continuous data reading from that adc. I tried spi2 to connect this adc. it works, but how can I get continuous data reading from that adc? use timer to trigger a event? or something else?

1 REPLY 1
S.Ma
Principal

Well it depends on the ADC SPI Spec.

You could use DMA TX and RX over SPI in cyclical mode, reading continuously, so make sure the bitrate is slow enough to read a new fresh value once all the ADC value bits are transferred.