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/LAUNCHXL-F280049C: ramp generation

Part Number: LAUNCHXL-F280049C

Tool/software: Code Composer Studio

i actually want to create a ramp of freqency around 200 khz where i am able to change frequency ,slope offset according to my need . i actually tried a logic using a buffer and cpu timer but this is only suitable for lower frequency. 

the logic is as follow

    ConfigCpuTimer(&CpuTimer0, 100, 0.02);

__interrupt void cpuTimer0ISR()
{
CpuTimer0.InterruptCount++;


A[S]=S;
S=S+1;
if (S>=100){
S=0;

}

}

so kindly help me for the generation of variable ramp of freq 200 khz

thank you

  • Hi,
    This query has been assigned to the experts. Due to the US Holiday on 25/05, please expect reply by 26/05 US time.

    Thanks
    Vasudha

  • Hi Mohsin,

    Do you want to create a frequency ramp with step size of 200Khz? Or do you want to create a ram up to 200KHz?

    Are you toggling GPIO? What are you using this frequency ramp for? Please provide more details to be able to assist.

    Regards,

    Nirav

  • hii  Nirav

    yes i do want to create ramp signal or we can say sawtooth wave of freq of 200 khz where i am able to change its slope, height and frequency at a time . thats why i am trying to use cpu interrupt to create a logic for a sawtooth wave . but when i toggle the cpu timer it is operating at a maximum frequency of 1.4 Mhz so for 200 khz i am able to create a step size or buffer size of 7 only i.e 1.4Mhz/200khz =7. but atleast i need over 50  step size. 

    toggle programme

        ConfigCpuTimer(&CpuTimer0, 100, 0.02);

    __interrupt void cpuTimer0ISR(void)
    {
    CpuTimer0.InterruptCount++;

    GpioDataRegs.GPATOGGLE.bit.GPIO0=1;
    //
    // Acknowledge this interrupt to receive more interrupts from group 1
    //
    PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
    }

    i am using this frequency ramp for my current mode control using slope compensation..

    is there any other method to create this sawtooth wave of 200 khz where i can change its height slope and freq . please let me know.

    i have tried EPWM but their i am only able to change frequency . so please let me know how to create this.

    logic for sawtooth wave-

    Regards

    Mohsin asad

  • Hi Mohsin,

    Let me know if this issue is still open. For now I am going to close this thread.

    Regards,

    Nirav