STM32F446RE Nucleo - Example of generating sine waves.

Thread Starter

ApacheKid

Joined Jan 12, 2015
1,533
This is pretty trivial I know but I learned a lot while putting it together.

The simple VisualGDB project generates a sinewave on each of the two DAC output pins.

It generates the signals in an interleaved manner and continually shifts the phase of the second wave on a scope you see one steady sine wave and another slowly scrolling horizontally.

The two signals are identical in frequency which is around 2.7 KHz (when built in Release mode).

It's here in Github for anyone playing with a Nucleo F446RE board.
 
Top