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.

CCS/TMS320F28035: ramp generation sine wave sync with input.

Part Number: TMS320F28035
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio


I have used ramp generation to generate sine wave by using following.

RAMPGEN_IQ Ramp;

RAMPGEN_IQ_init(&Ramp);
Ramp.Freq = _IQ24(GRID_FREQ);
Ramp.StepAngleMax = _IQ24(1.0/ISR_FREQUENCY);

RAMPGEN_IQ_MACRO(Ramp);
InvSine = _IQsinPU(rgen1.Out);

I have input of one sine wave to detect frquency, i can detect frquency and zero crossing.
I can change the output frquency with input and can changing Ramp.Freq variable.
I want to sync ramp output of zero crossing with input.
can you pelease help me on this.

Thanks,
Jignesh Patel