Quantcast
Channel: Data converters
Viewing all articles
Browse latest Browse all 27412

Forum Post: RE: ADS1256: SPI Interrupt Handling for ADS1256

$
0
0
Hi Khoi, Unfortunately I am not too familiar with the ESP32, so if you have questions specific to that device you may need to contact the company that makes that device for help. However as it relates to the ADS1256 , the /DRDY signal is generally what is used to initiate a data read operation. The falling edge of /DRDY indicates to the MCU that it has data available to read from the ADS1256 (after reading the data your MCU may generate additional SPI interrupts to indicate that the SPI peripheral is no long busy or to trigger a DMA transfer, but those are internal functions that you can decide to use or to ignore if not needed). How you handle the GPIO interrupt in software is also up to you...you can read the data directly in the GPIO interrupt routine, OR you could just set a flag and exit interrupt (allowing some other part of your code to decide what is the next highest priority task to run). The advantage of the first method is that is handles the interrupt immediately; however, if your MCU has other high-priority tasks to complete, then you would probably want to go with the second method to minimize the amount of time spent in each interrupt.

Viewing all articles
Browse latest Browse all 27412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>