Need help with example code. I'm trying to do simultaneous ADC sampling on 3 analog inputs at 80KHz for 80 samples. Like to kickoff sampling on trigger from analog comparator. DMA samples to buffer and interrupt when buffer is full.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-17 2:27 PM
Thinking STM32G7474xx wound be a good fit but not sure. Need M4 CPU with FPU and low power modes. Like to have MCU in low power mode until buffer full. Any help would be greatly appreciated! I am new to ST MCU tools and not sure even where to begin.
Thanks!
Mark
- Labels:
-
ADC
-
DMA
-
RAM
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-18 4:20 AM
Begin with blinking a LED.
Then read the ADC chapter and try the simplest thing - convert one channel using software trigger and check conversion end by polling.
Then read the DAC chapter and try to move converted data to RAM using DAC, triggering ADC from software simply using a loopdelay (just as you do in blinky).
Then re-read the ADC chapter and try to do the simultaneous sampling on 3 inputs, still triggered from software from a simple loop.
Then read the TIM chapter and try to trigger ADC by the timer.
Then read the COMP chapter and re-read the TIM chapter and try to trigger the timer from the comparator.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-19 12:49 AM
This might help you https://community.st.com/s/question/0D53W00001AOJx3SAH/stm32f207-dmaadc-captures-only-one-channel-only-once
Nice video for you
https://www.youtube.com/watch?v=AloHXBk6Bfk
