How to generate sine wave using F28335
Hi,
i am using DSp F28335 ,how to generate sine wave please give me some flow chart or some source code using c language. i am using CCStudio_v3.3
Hi,
i am using DSp F28335 ,how to generate sine wave please give me some flow chart or some source code using c language. i am using CCStudio_v3.3
Use the sin block
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. 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