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.

Questions on PWM

Hi,

This is my first time using the TI mcu. I am working on solar project and I am required to program the f2812 to generate a pwm to drive my power transistor to operate in mppt condition. I have studied the C/C++ header files and example for PWM. However I am still not able to understand how to initialize the event manager to generate a PWM.

   EvaRegs.T1PR = 0xFFFF;      
   EvaRegs.T1CMPR = 0x3C00;   
    EvaRegs.T1CON.all = 0x1042;  

Why the T1PR, T1CMPR and T1CON.all is set for that particular value in this example?

Is there any flowchart for guidance to generate a PWM waveform of different duty cycle for every loop to drive my dc-dc converter work at mppt?

Thank you .

  • Please check out the example projects which come with header file installation .. you will find projects on various peripherals including PWM/Even manager etc.

    By the way, if it is possible and not too late then I believe you will be better off using 280xxx devices instead of 281x .. newer devices will offer you more flexible peripherals and latest example code. I think TI even has a renewable enegy Kit based on  newer devices ...