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.

MSPM0G3507: Timer compare mode

Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

Hi Team,

I want to try the timer in compare mode without any external interrupt output. For example I want to load two different values into  the timer and need to enter the interrupt routine when timer count reaches the desire value.

it is very helpful if can have some examples.

Kind regards

Staneslouse

  • Hi, 

    Based on the SDK demo code: timx_timer_mode_pwm_edge_sleep_LP_MSPM0G3507_nortos_ticlang

    You can enable two Channel x capture or compare up/down event interrupt.

    And then use this code to disable PWM output of Timer. The value is depending on the PWM channel you are using.

    PULSE_PWM_INST->COMMONREGS.ODIS = 0x03;

    Also, you can reset the GPIO initialized by sysconfig (two PWM output Pin).

    ---------------------------

    Or you can manually config the timer by referring the configuration made by: timx_timer_mode_pwm_edge_sleep_LP_MSPM0G3507_nortos_ticlang

    Regards,

    Helic