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.

RTOS/MSP432E401Y: Using PWM on Timer Module

Part Number: MSP432E401Y

Tool/software: TI-RTOS

Hi,

This is in regards with the PWM support on Timer, we were able to use the functionality of the PWM on the GPT in an NONRTOS environment , but the application is being build in the TI-RTOS environment. Our problem; we require the interrupt capability on the RTOS for the PWM. we could do all the configuration using the nonRTOS code and other functionality of generating a PWM,

Would like to know how to register the callback on the RTOS for the Interrupt on PWM. We could not use the PWM module as the specific requirement we had could not meet by the PWM Module.

The SDK for MSP432P4 support GPT PWM generation on RTOS. Any reason for not supporting it in msp432E4. Could we use the .h and .c from MSP432P4 in the SDK.

Thank you

Regards,

Muruga

  • Hello Muruga,

    The reason there is a difference in the PWM TI driver between MSP432P4 and MSP432E4 is because MSP432E4 has a dedicated PWM module where as MSP432P4 does not have a dedicated PWM.

    The "PWMTimerMSP432.c" and "PWMTimerMSP432.h" files are very specific to the MSP432P4 and they cannot be used as is on MSP432E4 SDK.

    Can you explain why you need to use the PWM mode on the GPTM instead of the dedicated PWM?

    Thanks,
    Sai
  • Hi Sai,

    In the PWM Driver on the TITROS, we are unable to find a way to register a Interrupt callback, we are working on a sensor device requiring 3 PWM and PWM 1 and PWM 2 to be shifted (not inverted) every 1 sec on the interrupt and we need both rising and falling edge trigger. Though the PWM module is supporting the Intterupt, we could not find a way to resister the call back and enable the interrupt. Probably we are missing something here. Let us know how we could use interrupts on the PWM module. The documentation on the custom argument is vague,  no explanation on the function PWM_control() cmd structure or the parameters.

    Kindly let us know how we could register the callback and enable the interrupts as supported by the module.

    Regards,

    Muruga

  • Hello Muruga,

    The PWM TI-Driver is a very basic driver that allows generation of simple PWM signals. The features that you are asking for are not supported by this driver out of box. However you can extend this driver to add call back. The SPI or I2C driver can be used as a reference to implement call back function when an interrupt occurs.

    The PWM module on MSP432E4 hardware should be able to support the features that you are looking for.

    Hope this helps!

    Regards,
    Sai

**Attention** This is a public forum