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.

TM4C1294NCPDT: Tivaware library does no have PWM6_BASE defnition

Part Number: TM4C1294NCPDT

In my project I am trying to use PWM6 (GPIO PK4 & PK5, M0PWM6),   However Compiler throws an error " Description Resource Path Location Type
#20 identifier "PWM6_BASE" is undefined dacpwm.c /BELMR2KWV01 line 48 C/C++ Problem".  I checked header files hw_memmap.h & pwm.h and could find only defintions for PWM0 & PWM1.  Is it defined in some other files or do we need to define our own?

Regards,

Ramesh

  • Greetings,

    Ramesh Muruganantham said:
    I am trying to use PWM6 (GPIO PK4 & PK5, M0PWM6)

    You have additionally noted the presence of "PWM0_BASE & PWM1_BASE" - both of these are the MCU's (main) PWM Modules - each containing up to "4 PWM Generators" - with each generator supporting 2 PWM channels.   There is no, "PWM6_BASE" - just as you've confirmed.   

    Instead - PWM Generator 3 contains both "MOPWM6 & M0PWM7" and those 2 PWM channels may be used independently or (with the insertion of "dead-band") - may provide a "Complementary PWM Pair."

    The MCU Manual nicely describes the PWM Modules, Generators & Independent PWM Channels.    ARM MCUs have substantially "increased the capability" (as well as the complexity) of PWM Generation, Set-Up & Control...

  • There is no PWM6_BASE. There is only one PWM module on the TM4C1294NCPDT and it has four generators, each having two PWM outputs for a total of 8 output pins. To use PK4 and PK5 use PWM0_BASE, PWM_GEN_3, PWM_OUT_6 and PWM_OUT_7.

  • Thank you very much.  Will read the manual again.

    Regards,

    Ramesh

  • Thanks Bob.  Will check the manual again.

    Regards,

    Ramesh