AnsweredAssumed Answered

stm32f4 discovery and dac

Question asked by marino.fernando on Mar 5, 2013
Latest reply on Mar 6, 2013 by fm
hey there,
recently I've started playing with a stm32f4discovery with the final goal of realizing the control of a particular simple device we had in our company. It is my first embedded project so I'm quite new to this world and I'm a bit disoriented. Anyway I managed to run through several code example and build an application that read several analog input (multichannel adc with dma), and using those input to evaluate a pid regulator called using systick. Now I need to write the output on some port and here comes the pain!
I cant quite understand how the example of wave generation works. All I need to do is write the output of the pid function to some port every time the pid is evaluated. So I dont think I need the DMA, and the DAC should be triggered by my piece of software. How do I do that?

Second question: I've seen that for analog input I have potentially a lot of channels and 3 adc, and that is good. But for output just 2 channels and 1 dac? o_O
If I put more than two pid regulator in it I cant pull out the calculated output? that's strange. I hope I've misunderstood something. 

Thank you in advance for your help.