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.

LP-MSPM0L1306: Multiple pins from one timer output

Part Number: LP-MSPM0L1306

Hi:

I have a situation where I want to drive two PWM pins with the very same output at least some of the time, and I am wondering if I can assign two pins to a single capture/compare register output.  This can obviously be specified in software since the IOMUX registers let me set each pin individually, but there are also fanout concerns.

E.

  • Hi Eric,

    Yes, it appears possible.  I setup example below and verified with a logic probe that it works.

    //GENERATED BY SYSCONFIG TIMG0-CC0 OUTPUT ON PA12
    #define GPIO_PWM_0_C0_PORT                                                 GPIOA
    #define GPIO_PWM_0_C0_PIN                                         DL_GPIO_PIN_12
    #define GPIO_PWM_0_C0_IOMUX                                      (IOMUX_PINCM13)
    #define GPIO_PWM_0_C0_IOMUX_FUNC                     IOMUX_PINCM13_PF_TIMG0_CCP0
    #define GPIO_PWM_0_C0_IDX                                    DL_TIMER_CC_0_INDEX
    
    
    //I MODIFIED EXAMPLE TO ADD LINES #15,16 - THIS CONFIGURES TIMG0-CC0 OUTPUT ON PA5
    int main(void)
    {
        SYSCFG_DL_init();
    
    
        DL_GPIO_initPeripheralOutputFunction(IOMUX_PINCM6,IOMUX_PINCM6_PF_TIMG0_CCP0);
        DL_GPIO_enableOutput(GPIO_PWM_0_C0_PORT, DL_GPIO_PIN_5);
    
        DL_TimerG_startCounter(PWM_0_INST);
    
    
        while (1) {
            __WFI();
        }
    }