cancel
Showing results for 
Search instead for 
Did you mean: 

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.

MSamp.1
Associate

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

2 REPLIES 2

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

Javier1
Principal