8 years, 6 months ago.

generate single waveform

hi,

im a newbie with arm microcontroller..can u teach me how to produce single output for sine,square,triangle and sawtooth..

thank you

Question relating to:

Motoo Tanaka / funcgen Featured
Yet another implementation of wave function generator dac, FRDM-K64F, FRDM-KL25Z, FRDM-KL46Z, function generator

1 Answer

8 years, 6 months ago.

Hi,

I'm sorry for this slow response.

Although your question is short, probably I can not answer them in a few lines.
Meantime, I'm afraid that I can not afford time to prepare such documentation for the time being.

Instead, I would recommend you to do some web site hunting for function generation or wave form generation.
For an example AN2025 from Cypress seems to be a pretty good reading.

https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CCcQFjABahUKEwj4w4Ku_N_IAhVMG5QKHQ0hDPw&url=http%3A%2F%2Fwww.cypress.com%2Ffile%2F51301&usg=AFQjCNGqHOQdqF8TISttKT5ejgf7apA3kg&sig2=tKK_Fv_4a6fogZPP8VT-Qw

Meantime, since we are here, how about reading my source code(s)?
Also, Terry Richards-san's HW5-functionGenerator seems to be a good sample for
sine wave, square wave, sawtooth and DC.

https://developer.mbed.org/users/trichards1138/code/HW5-functionGenerator/file/7340e7a6eb14/main.cpp

Best Regards, 26-Oct-2015 moto

Accepted Answer

Hi,

Thank you so much for the answer..Much appreciate because of your answer give a lot of idea about generate wave..

Before this im kind of confuse of your sin table.After showing to some of my friends they give better undestanding.Now i know how its work.its my mistake not to learn in cookbook first.Your post really helpful for beginner like me to expand ideas.By the way thanks for showing Terry Richards works.It much helpful for me to make reference.Hopefully you will inspire people to love this in future.

Best regrads, izzat

posted by izzat hafiz 01 Nov 2015