2017-10-15 08:12 PM
All,
I am trying to use ADC in two-channel mode and then sending o/p samples to two different buffers using DMA. Each channel output goes to its own buffer. How do I set this up?
I am just looking at example on DMA.
Is there any quicker way to learn about the way to set up ADCs, DMA?
I am using STM32F3DISCOVERY board.
Thanks,
Mallesh
Solved! Go to Solution.
2017-10-16 08:07 AM
The Reference Manual should have a good register level breakdown of things.
2017-10-15 09:28 PM
Also, I want to have DMA with ping pong buffer.
Thanks for your help.
Mallesh
2017-10-16 01:30 AM
I find the better way than copying other people's examples is to read the manual and come up with my own, but I'm playing with a stacked deck.
No, the DMA will not demux the stream. To get two non-interleaved arrays would require two ADC and DMA.
For ping-pong operation I typically double the bufierce size and use the DMA HT and TC interrupts to service each half.
2017-10-16 06:02 AM
Thanks for your reply. Do you have any document on DMA which explains its operation and also has the register set?
I see the documentation on ADC explaining its operation. But register set is not there?
Right now I am trying to understand the setup using HAL and use the driver code. It will be good to have the register set so that we can understand and double check the configuration.
2017-10-16 08:07 AM
The Reference Manual should have a good register level breakdown of things.
2017-10-16 08:41 AM
Thank you Clive.
Mallesh