Jump to content
Sign in to follow this  
VisSim Forum Archives

How to generate sine wave using F28335

Recommended Posts

Submitted by pete on Tue, 02/09/2010 - 20:05.

Hi Vijay, You don't say what you want to do with your sin. Usually you are modulating a PWM our something similar. Anyway, for the the F28335, which supports floating point, you can simply use a Blocks > Signal Producer > sawtooth block, set the gain to "2*pi" and frequency to desired sin freq, and connect it to a Blocks > trancendental > sin block.

simple-sin.png

Then connect the sin to ePWM or serial write or whatever you want: 

If you want to use fixed point, then use Diagrams > Tools > Fixed-point > Ramp32 and connect it to Blocks > Fixed-point > sin

Sabarirajan likes this

Share this post


Link to post
Share on other sites

Submitted by xgao7 on Sun, 03/30/2014 - 00:05.

If I use the above block diagram for PWM output. How do I select the carrier frequency of the generated PWM output?

Submitted by xgao7 on Sun, 03/30/2014 - 00:07.

If I try to use the above block diagram to generate a Sine PWM frequency. How do I configure the carrier frequency? (The frequency of the saw tooth being compared?)

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...