Other Parts Discussed in Thread: SYSCONFIG, MSPM0G3507
Tool/software:
Hi All,
I am trying to synchronise TIMA0(C0) and TIMG7(C0).
Immediately after the PWM output starts, they are synchronised, but if I change the Period and Duty in the interrupt handler of the ZERO event of TIMG7, the phase shifts.
How can the delay time be reduced?
We assume that this is because the next
period comes while changing the period and duty cycle due to the delay in the generation of the ZERO event.
[Conditions]
- TIMA0 and TIMG7 are down-counted.
- The operating frequency is 32 MHz.
- The PWM period gradually decreases from 100 KHz to 20 KHz.
- TIMA0 and TIMG7 are synchronised using TIMG6 to cross trigger.
- In Interrputs Configuration of TIMG7, select "ZERO Event" is selected and the next cycle and Duty are set in the interrupt handler.
-Waiting time from event generation to start of processing is 2~48 µs.
-Processing time in the interrupt handler is approx. 5 µs.
-Systick and ADC were set Low and TIMG7 was set High in SysConfig, but no change.
- ADC interrupts were completely stopped, but no change.
- Tried using LOAD event and Channel 0 capture or compare down zero event instead of ZERO event, but no change.
- Checked ‘Enable Shadow Load’ in SysConfig, but no change.
- Changed Channel Update Mode, but no change.
Best Regards,
Ito