Page 1 of 1

Example of SW trigger DAC with dacConvert()

Posted: Tue Sep 08, 2015 3:42 pm
by neums
Hallo,
is there any example which shows the dacConvert() call? I didn't find it in the DAC example project for the STMF303.

Thanks. :-)

Re: Example of SW trigger DAC with dacConvert()

Posted: Tue Sep 08, 2015 4:05 pm
by Giovanni
Hi,

It is the same of dacStartConversion() except it does not return after starting the conversion. The function only returns when dacStopConversion() is called from some other thread or ISR.

The example is in \testhal\STM32\STM32F30x\DAC.

Giovanni

Re: Example of SW trigger DAC with dacConvert()

Posted: Tue Sep 08, 2015 4:12 pm
by neums
Thanks,
so, to put once a time a sample to the dac i should use the dacPutChannelX() function?

Re: Example of SW trigger DAC with dacConvert()

Posted: Tue Sep 08, 2015 4:15 pm
by Giovanni
Correct, that function simply writes the DAC output register without starting any background activity.

Giovanni