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.

Config GPIO as PWM in 28335

Hi,

I am to implement a GPIO pin as PWM.  Depending upon the period and duty cycle I would like to toggle GPIO  ON & OFF. Is there any implementation examples that I can find in TI site or control suite?

Appreciate your response.

Thanks,

KK

 

 

 

  • Hi,

    I'm trying to do the same thing as you.Using GPIO as PWM output pin. What I have done is do the simulation of the pwm generation using simulink, the let simulink generate the code for you. Its done successfully for low speed  pwm generation.

    madie

  • Hi KK,

    You mean to say, leaving so many PWM peripherals apart, you want to simulate PWM via GPIO?

    If so, then by toggling GPIO with an x delay you'll be able to achieve particular period and duty cycle.

    You've an inbuilt delay routine which can be called like:     DELAY_US(100);    //100us delay

    Regards,

    Gautam