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.
Hi,
in our application, we use a Comparator to generate a DCAEVT1. This forces a TBCTR sync via EVT1SYNCE.
The pwm (upcount mode) is forced high on ctr=zero and forced low on CMPA or period.
We observe that sometimes the force high on ctr=zero is missed.
After adding force high on CMPB and setting CMPB to a small value (2..5), everything works fine, no missed events anymore.
Any ideas what could cause these missed PWM events?
We already had problems in another application with missed events after changing period and phase (e2e.ti.com/.../1109299, but I think this is something different.
Hi Stephan,
Could you post your PWM initialization code here so that we can further understand your setup? Also, can you describe how you are updating the PWM period and/or post the code as well?
Thanks,
Kris
Hi Stephan,
CMPB = 2 and PWMA configured to SET on CBU seems to be bringing back all the pulses, which suggests the syncing mechanism is working. As you said something seems to be overriding the SET on ZRO action. I have my suspicions on the TZCTL setting. Please make sure that the TZCTL[DCAEVT1] bit is configured to 'do nothing' (11b). In fact it is a good practice to configure all unused options in TZCTL registers to 'do nothing'.
BTW I noticed that you have configured blanking window but it looks like you are (possibly unintentionally) not using it. To use blanking window DCACTL[EVT1SRCSEL] should be set to 1.
I hope this helps.
Hrishi
Stephan,
Please let me know what you find. Setting unused options in TZCTL to 'do nothing' should help.
I will reply to your other post as well.
Hrishi