Sine wave generator

What are you developing?
Post Reply
ted
Posts: 44
Joined: Sun Jul 16, 2017 9:57 pm

Sine wave generator

Post by ted » Sun Jul 16, 2017 10:15 pm

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.

ChrisMicro
Posts: 316
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: Sine wave generator

Post by ChrisMicro » Mon Jul 17, 2017 4:21 am

Last edited by ChrisMicro on Mon Jul 17, 2017 9:07 am, edited 1 time in total.

User avatar
RogerClark
Posts: 7539
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Sine wave generator

Post by RogerClark » Mon Jul 17, 2017 7:41 am

I hope the OP has a clear understanding of AVR registers

ChrisMicro
Posts: 316
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: Sine wave generator

Post by ChrisMicro » Mon Jul 17, 2017 9:08 am

Upps ... that was the wrong directory. :shock:
I corrected it and hope it is more useful.

User avatar
RogerClark
Posts: 7539
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Sine wave generator

Post by RogerClark » Mon Jul 17, 2017 9:59 pm

LOL

Ok.

thanks for posting

dannyf
Posts: 197
Joined: Wed May 11, 2016 4:29 pm

Re: Sine wave generator

Post by dannyf » Mon Jul 17, 2017 11:51 pm

Much easier to pick one with built-in DAC.

User avatar
mrburnette
Posts: 2013
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Sine wave generator

Post by mrburnette » Mon Jan 01, 2018 7:05 pm

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

User avatar
Pito
Posts: 1696
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: Sine wave generator

Post by Pito » Tue Jan 02, 2018 12:17 pm

@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)..
Pukao Hats Cleaning Services Ltd.

ted
Posts: 44
Joined: Sun Jul 16, 2017 9:57 pm

Re: Sine wave generator

Post by ted » Sat Jan 06, 2018 12:15 am

The sine wave generator on stm23f103 is completed.

dannyf
Posts: 197
Joined: Wed May 11, 2016 4:29 pm

Re: Sine wave generator

Post by dannyf » Sat Jan 06, 2018 1:58 am

The sine wave generator on stm23f103 is completed.
your answer provided a lot of help to others wanting to implement sine wave generation.

Post Reply