2012-11-04 02:34 PM
Hi
I am new to the STM32 (using the STM32L151) and I have a question: I need to use ADC1 channel 1 to control the duty cycle of a PWM with DMA (i have this working) Then I need ADC1 channel 2 to control the duty cycle of another PWM, also with DMA Lastly, for housekeeping, I need to aquire a third ADC channel3 to memory with DMA Is this possible, having the different channels of the ADC1 routed to different memory locations, not using an address increment? Thanks Klaus2012-11-04 07:29 PM
No, not directly.
You'll need to look at doing a circular DMA into a 6 location array, on the HT and TC interrupts load and copy half the content, ie 3 values, into your diverse target locations.