SDAA286 March 2026 MSPM0G3519
Timers with intentional start-time offsets enable controlled phase relationships that are critical for efficiency, stability and signal integrity in some applications involving motor control, and sensor data polling or sampling. This can be achieved when using two or more timers by using them in synchronized fashion using the cross-triggering mechanism, as described below:
Due to delay limitations that prevent setting delays on the second Timer when specific duty cycles are required for the first PWM output, using the CC4/5 event of the first PWM would provide the necessary flexibility for configuring the delay.
/* TIMA Interrupt Service Routine */
void PWM_0_INST_IRQHandler(void)
{
switch (DL_TimerA_getPendingInterrupt(PWM_0_INST)) {
case DL_TIMERA_IIDX_CC0_DN:
if(interrupt_counter==0){
DL_TimerA_generateCrossTrigger(PWM_0_INST);//Mechanism to generate Software based Cross-Trigger
}
else{
;
}
interrupt_counter++;
break;
default:
break;
}
}While the Hardware Cross-Triggering functionality can also be utilized for this application, it is important to recognize that this mechanism will generate Cross-Trigger on every CC event. Therefore, if developers intend to utilize the hardware cross-trigger capability, it must be explicitly disabled after one cross-trigger for this application to function as intended.
Figure 6-1 Configurable Timer Start Time Offset