2013-08-20 02:41 AM
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?2013-08-20 09:56 AM
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?