This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Sine wave genreation uising ramp genarator

Other Parts Discussed in Thread: TMS320F28335

Hi, I want to generate 60Hz sine wave in my project. I need to use Ramp generator function from control suite to generate sine wave. I am using TMS320F28335 DSC. Out put of the ramp generator should be used in following equation Y(n)= M Sin(Ramp generator output) Y(n) I need to scaled to PWM counter compare register to generate a PWM. I am going to use 10Khz as carier frequency for PWM. I want to genrate this PWM in a timer with sampling period of 20Khz. I dont know how to use ramp generator and scaling the out sine value to PWM. Can anyone help me in this regard.