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.

enable signal for PWM

Hi, 

I am sort of confused at how to create an "enable" signal for a set of PWM signals.  

What I have right now is a up-down counter, and my PWMs are generated by comparing to a value on the up and down part of the counter.  

What I want to do is create an enable signal (which is independent of the counter signal) that when turned LOW, the PWMs are turned off, but when turned HIGH, the PWMs are turned back on.  

is there some simple code that someone can show me to see how this is done?  I have attached a diagram to show what i want to do.  The diagram shows the a) counter, b) enable signal c) PWM

http://i.imgur.com/LMrJV.png

thanks  

  • // Action qualifier continuous SW force register bit definitions */
    struct AQCSFRC_BITS { // bits description
    Uint16 CSFA:2; // 1:0 Continuous Software Force on output A
    Uint16 CSFB:2; // 3:2 Continuous Software Force on output B
    Uint16 rsvd1:12; // 15:4 reserved
    };
    
    
    C:\ti\controlSUITE\device_support\f2803x\v125\DSP2803x_headers\include\DSP2803x_EPwm.h