Skip to main content
yang hong
Associate III
February 14, 2019
Question

spi adc

  • February 14, 2019
  • 1 reply
  • 499 views

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?

This topic has been closed for replies.

1 reply

S.Ma
Principal
February 15, 2019

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.