Dear all,
I am studying on TMS320F28027 and I am trying to synchronise PWM output with analog comparator signal. To achive that, I am creating an event signal (DCAEVT1) for low and high level of comparator and going a tripzone interrupt.
When controller recieves SWFSYNC signal, PWM module is supposed to load 0 (zero) as phase value and it will load pwm counter register with zero. Thus, pwm will be restarted.
I have two problem on that step;
The first one is; SWFSYN register cannot be set 1. It is alwasy zero. Therefore, I cannot get synchronise signal.
The second one is; When I set PHSEN bit as 1, which is located in PWM registers, TBCTL register, PWM output is always high. I can observe a high level output.It never goes down.
Best Regards,
Fahri