cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 DMA and ADC

avwa
Associate
Posted on August 20, 2013 at 11:41

STM32 DMA and ADC

Questions about the STM32 DMA and ADC:

I now have the following requirements:

The sampling signal list:

A1

A2

B1

B2

B3

B4

B5

Suppose I cycle of PWM carrier for 5 KHZ. I hope B1 ~ B5 signal acquisition time, each carrier cycle but A1 and A2 signal can continuous sampling and accumulative sampling points and sampling values, in the carrier ADC sampling cycle point to accumulative value of A1, A2 and cumulative frequency division (actually the ultimate goal is to achieve carrier cycle of A1 and A2 signal sampling).

Don't know whether STM32 have this function? And if so how do I use?
1 REPLY 1
Posted on August 20, 2013 at 18:56

Is this a homework question?

I'm having a hard time deciphering what you want. Can you provide a diagram of the wave form and the sample points? How about some pseudo code that might convey the process?

I think you'd need to do any accumulation in software. The ADC/DMA can be set up to sample a specified periodicity, are these 5 samples done at the same time, uniformly spaced?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..