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.

Timer interrupt in F28335

Other Parts Discussed in Thread: CONTROLSUITE

I need to have a interrupt subroutine (in the F28335 DSP) when the up counting timer reaches its period value and resets to zero. At this point I want to set the compare registers for three pwm signals so that I can generate three signals of different duty ratios but same frequency. How to configure the interrupt?

  • Which peripheral are you targeting, the ePWM or HRPWM module?

    You should be able to find an example that sets up the ePWM timer to generate the appropriate interrupts.  What you do inside that interrupt service routine is up to you.

    You can find this example as part of the controlSUITE software download.  In it is some device specific support files and example projects.  Look for the F2833x device level stuff in :

    <CONTROLSUITE_INSTALL_DIR>\device_support\f2833x\v132\DSP2833x_examples_ccsv4\epwm_timer_interrupts

     

  • Dear BrandonAzbell,

                               I am trying to use ePWM to generate the gate signals of a multilevel inverter. I read SPRU791D which is the document for ePWM in the F28335, but it has no examples with interrupts. I will look up the "controlsuite" which is new to me and I need to install it.

    Thanks

    With regards

    Sanjay .L

                            

  • Dear Sir,

                Kindly do the following steps to configure Timer period interrupt

     

    1.       Disable the Global Interrupt and Clear the CPU IFR.

    2.       Enable the PIE and configure the PIE block specifically for Timer Interrupt[Refer Literature No:SPRU712g,P.No:128].

    3.       Configure the Timer interrupt related register

    a.       Event-Trigger Selection Register (ETSEL):BIT 3 and 2,1 & 0.[0xXXXA]

    4.       Enable the Global Interrupt

    5.     In Timer Period ISR change the Counter-Compare A Register (CMPA) and the Counter-Compare A Register (CMPB) using int variables.

     

    Note: To know more about PWM Register kindly refer the PWM document[spru791f].