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