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.

TM4C129XX PWM question



Can I use PWM module for internal use (timer,interrupt and etc..) but the use the associated pin as standard GPIO?
  • Without 100% certainty - my belief is that a PWM Generator's ability to drive its (potential) output pin does require both:

    GPIOPinType()
    and
    GPIOPinConfigure()
     
    in each case as PWM.
     
    Thus - if you do not direct that (potential) PWM-targeted pin as PWM - it should be available for "normal" gpio use...
    Test/verify should be quick/easy...
  • Hello Avi,

    As cb1_mobile has already indicated, yes - that should work fine. If you don't configure the pins to be used by the PWM, they can be used for other peripherals or standard GPIO.  The PWM module can be enabled/configured/etc as it has no knowledge if pins were configured for that function.