Reading multiple ADC values periodically in interrupt mode
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-02-20 7:24 AM
Hello All,
I need to read 4 ADC values with period of 1 Khz in interrupt mode.
After reading various post I found out that DMA will be used but I want to read multiple value periodically so should i use ADC injected conversion mode and set
No. of conversion to 4
External trigger source Timer 2 trigger out event
External trigger edge: Rising Edge
Injected Conversion mode to be discontinuous
Use Rank for various channels
I have a doubt that which to be used in main.c to start ADC i.e
HAL_ADC_START_DMA or HAL_ADC_START_IT
Also, is the approach use by me correct?
Regards,
Gunit
Labels:
- Labels:
-
ADC
-
STM32Cube MCU Packages
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
