Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 221679

Forum Post: RE: MSPM0L1306: Use ADC to clear or set GPIO without ISR

$
0
0
Hey Wayne, I didn't actually run an example, but the ADC does seem to have a window comparator mode. The ADC result is compared against the window high and low values at the end of a conversion, and can trigger an ISR or Event. You can read about it in section 14.2.12.1 of the TRM. Here I see the configurations for it SysConfig for the ADC configuration: And you can trigger an Event off of the Window comparator interrupts: Overall, the full flow without CPU intervention would be something like this: Timer running and it would trigger the ADC to perform conversations over and over. At the end of each conversion, the ADC will compare and can publish an Event, and if the ADC crosses a programmed threshold, it could trigger the GPIO directly by configuring it as the subscriber to the event. Hope this makes sense. Thanks, JD

Viewing all articles
Browse latest Browse all 221679

Trending Articles



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