Page 1 of 1

Sine wave generator

Posted: Sun Jul 16, 2017 10:15 pm
by ted
Hi
Sine wave generator
Can someone help me in programing STM32F103C8T6 to generate sinewave signal similar to; https://www.romanblack.com/onesec/SineDDS.htm but with ability to change phase and amplitude of one channel.

Re: Sine wave generator

Posted: Mon Jul 17, 2017 4:21 am
by ChrisMicro

Re: Sine wave generator

Posted: Mon Jul 17, 2017 7:41 am
by RogerClark
I hope the OP has a clear understanding of AVR registers

Re: Sine wave generator

Posted: Mon Jul 17, 2017 9:08 am
by ChrisMicro
Upps ... that was the wrong directory. :shock:
I corrected it and hope it is more useful.

Re: Sine wave generator

Posted: Mon Jul 17, 2017 9:59 pm
by RogerClark
LOL

Ok.

thanks for posting

Re: Sine wave generator

Posted: Mon Jul 17, 2017 11:51 pm
by dannyf
Much easier to pick one with built-in DAC.

Re: Sine wave generator

Posted: Mon Jan 01, 2018 7:05 pm
by mrburnette
For a rainy day, one may wish to explore Don Lancaster's discussion on Magic Sine Waves.
https://www.tinaja.com/magsn01.shtml

In today's world of dedicated IC's, the discussion may hold little practical value beyond a decent review of math.

Ray

Re: Sine wave generator

Posted: Tue Jan 02, 2018 12:17 pm
by Pito
@Ray - an interesting article. Precise timing - that is why the stm32f334 has got a timer with
The STM32F3x4 product line is specifically addressing digital power conversion applications, such as D-SMPS, lighting, welding, inverters for solar systems and wireless chargers..
High-resolution timer: 217ps, self-compensated versus power supply and temperature drift..
217ps resolution available for all operating modes..
Transparent high-resolution implementation (equivalent to 4.6GHz timer)..

Re: Sine wave generator

Posted: Sat Jan 06, 2018 12:15 am
by ted
The sine wave generator on stm23f103 is completed.

Re: Sine wave generator

Posted: Sat Jan 06, 2018 1:58 am
by dannyf
The sine wave generator on stm23f103 is completed.
your answer provided a lot of help to others wanting to implement sine wave generation.