Other Parts Discussed in Thread: MSPM0G3507
I set TIMG4/PWM Channel 0/initial Value is High, and i hope that the PWM output keep Low after the PWM output is done.
i tried to make Forced Output enable, unfortunately i couldn't find this function in system configurations.
and i tried to set the register of TIMG4 directly, and i couldn't find the correctly register name.
TIMG4_CCACT_01[0] or TIMG4_CCACT_01 were both wrong.
Would you please kinldy let me know how to know the correct register name from MSPM0 L-Series Technical Reference Manual? (Question 1)
i just found the information about CCACT register from the follwoing section, but i don't know how to correspond to the specific TIMx.
for example, if we want to use these two register of TIMG4, What are their correct names? (Question 2)
And I use the following two lines of code to implement the functionality I need, Is this the recommended method? (Question 3)
DL_TimerG_stopCounter(PWM_1_INST);
DL_TimerG_setCaptureCompareOutCtl(PWM_1_INST, DL_TIMER_CC_OCTL_INIT_VAL_LOW,
DL_TIMER_CC_OCTL_INV_OUT_DISABLED, DL_TIMER_CC_OCTL_SRC_FUNCVAL,
DL_TIMERG_CAPTURE_COMPARE_0_INDEX);
many thanks.