Search found 5 matches

by DrCopter
Mon Dec 30, 2013 8:07 pm
Forum: STM32 Support
Topic: Example for DAC and ADC usage in parallel
Replies: 7
Views: 5122

Re: Example for DAC and ADC usage in parallel

Hi mobifab,
thank you for the additional infos, quite helpful for me to understand the driver code better.
by DrCopter
Mon Dec 30, 2013 4:52 pm
Forum: STM32 Support
Topic: Example for DAC and ADC usage in parallel
Replies: 7
Views: 5122

Re: Example for DAC and ADC usage in parallel

Hi,

now everything is working. I just had to increase the period of the ADC sampling. Not knowing still, why this is necessary.
But I am also still interested in the answers to my above questions.
Thank you.

Here is the current code FYI:
ADCDAC.ZIP
ADC and DAC in parallel
(16.17 KiB) Downloaded 489 times
by DrCopter
Mon Dec 30, 2013 1:50 pm
Forum: STM32 Support
Topic: Example for DAC and ADC usage in parallel
Replies: 7
Views: 5122

Re: Example for DAC and ADC usage in parallel

Hi,
my last reply was partly wrong as I have still not found the real bug. The whole program only runs if the DAC conversion routine is not started.
But all the processing is hanging if I uncomment the line SignalGenerator.Start() in main.cpp which will indirectly start the DAC.

So still I am ...
by DrCopter
Mon Dec 30, 2013 1:39 pm
Forum: STM32 Support
Topic: Example for DAC and ADC usage in parallel
Replies: 7
Views: 5122

Re: Example for DAC and ADC usage in parallel

Hi,

thank you for reply. I am not too familiar yet with the details of the drivers for ADC and DAC and with ChibiOS in general. I thought ADC and DAC are sharing
DMA channel 1.
I assumed that because I found in adc_lld.c :

ADCD1.dmastp = STM32_DMA1_STREAM1;

and in dac_lld.c:

DACD1.dma = STM32 ...
by DrCopter
Sun Dec 29, 2013 9:56 pm
Forum: STM32 Support
Topic: Example for DAC and ADC usage in parallel
Replies: 7
Views: 5122

Example for DAC and ADC usage in parallel

Hi,

is there an example for the use of ADC and DAC in parallel on the STM32F0 discovery board. I tried but it seems due to the usage of the same DMA channel this does not work with the current drivers. Or did I miss something ?
Thanks for any hint or example code.