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 Champs,
Is there any example codes to show how to use T1/T2 event to control Action Qualifier? And how to set ePWM as source of T1/T2 and how to use T1/T2 event as sync event?
I can't find the corresponding example in C2000ware. Do you know any code that can be used for reference?
Thanks in advance!
BR
Julia
Hi Julia,
We do have an example 'epwm_ex12_monoshot_mode' available with C2000Ware which demonstrates the T1 event sync use case and its configuration to control Action Qualifier.
Please find below a snippet from the example:
// // Set PWM output as HIGH on T1 event // EPWM_setActionQualifierAction(myEPWM1_BASE, EPWM_AQ_OUTPUT_A, EPWM_AQ_OUTPUT_HIGH, EPWM_AQ_OUTPUT_ON_T1_COUNT_UP); // // Configure T1 trigger source as PWM SYNC signal // EPWM_setActionQualifierT1TriggerSource(myEPWM1_BASE, EPWM_AQ_TRIGGER_EVENT_TRIG_EPWM_SYNCIN);
Thanks,
Aditya
Hi Julia,
Since we haven't heard back from you on this query, I believe you've been able to resolve the issue. I am marking this thread as resolved.