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.

reg enhanced qep interface and HRPWM modules

Other Parts Discussed in Thread: TMS320F28335

Hi all,

I am developing motor control application using TMS320F28335 DSP. I need to generate a PWM pulse as output of processor to drive the motor and the EQEP interface receives the encoder position from the motor. I used CCSV3.3 for programming the software.

I found problem in generating the PWM signal from the processor. Up on running the  HRPWM  project from examples list, i couldnt see the PWM pulse at the 5 and 6th pins of p8 digital input for Spectrum Digital DSP board. I didnt change any configurations but even in the simulation graph couldnt see any PWM signal generated other than a single step pulse.

What do i need to generate the HRPWM signal both at simulation and at the board when connected to CRO

How to interface the EQEP module with the encoder feedback. Also specify the required hardware connections to be taken into account.

 

Please post any related documents or application examples for generating PWM signal

  • Hi Deepika,

    You can check with the following options for checking the same if you are using the code as is.

    1.  Make sure the pin you are checking is output pin (as you have mentioned p8 digital input)

    I think you are using the eZdsp board, so make sure the switch settings are as mentioned in the datasheet, as it will be having multiple functionalities.

    2. Make sure you understand the register settings to enable the PWM. The same can be found in the below link:

    http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=sprug04a

    If you can read and understand the concept of pwm, you can easily debug your issues.

    Since HRPWM is extended part of PWM, basic understanding of PWM is essential.

    More about HRPWM at

    http://focus.ti.com/lit/ug/spru924e/spru924e.pdf

    Let me know about your futher questions on the same, I will try to get the answers.

     And you can generate the PWM using regular ePWM, HRPWM is requried only if you are running at higher frequencies i.e more than 200KHz.

    Regards,

    Mohan