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.

CC2652R7: How to configure the PWM (CCP) pins?

Part Number: CC2652R7

I have a PWM (GPT0A) running but can't figure out how to configure the output pin. (I've read the reference manual many times but can't figure it out.)
I can handle the interrupts and us a GPIO but I want to do it right.

Any help is much appreciated!

  • Hi Mike,

    What reference manual are you referring to?  The pwmled2 TI Driver example and TI Drivers Runtime API PWM interfaces/implementations are the optimal resources to get you started.  Can you please specify, perhaps with code snippets, what you are trying to accomplish and how it is not working?

    Regards,
    Ryan

  • This gave me the clue I needed:

    /*!
    * @brief
    * Definitions for input / output ports in IO controller to connect GPTimer
    * to a pin. Used in gptimerCC26xxHWAttrs for static timer configuration
    * PIN driver is used to mux a pin to the timer.
    * @sa PINCC26XX_setMux
    * @sa GPTimerCC26XX_getPinMux
    */
    typedef enum GPTimerCC26XX_PinMux
    {
    GPT_PIN_0A = IOC_PORT_MCU_PORT_EVENT0,
    GPT_PIN_0B = IOC_PORT_MCU_PORT_EVENT1,
    GPT_PIN_1A = IOC_PORT_MCU_PORT_EVENT2,
    GPT_PIN_1B = IOC_PORT_MCU_PORT_EVENT3,
    GPT_PIN_2A = IOC_PORT_MCU_PORT_EVENT4,
    GPT_PIN_2B = IOC_PORT_MCU_PORT_EVENT5,
    GPT_PIN_3A = IOC_PORT_MCU_PORT_EVENT6,
    GPT_PIN_3B = IOC_PORT_MCU_PORT_EVENT7,
    } GPTimerCC26XX_PinMux;

    I wish I could have found this in the reference manual: https://www.ti.com/lit/ug/swcu192/swcu192.pdf?ts=1705975324337

    Thanks for your help!