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.

TMS320F28379D: EPWM oneshot sync

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Dear Champs,

I am asking this for our customer.

Would you please make it clearer about EPWM one-shot sync?

When this "EPWM_startoneShotSync(uint32_t base)" is used, it sets bit 7 (OSHTSYNC) of TBCTL2 Register.

In Table 15-23. TBCTL2 Register Field Descriptions of F2837xD TRM

https://www.ti.com/lit/ug/spruhm8i/spruhm8i.pdf?ts=1595593378037&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTMS320F28379D%253FkeyMatch%253DF28379%2526tisearch%253DSearch-EN-everything%2526usecase%253DGPN

Questions:

1. Does it issue a sync signal "immediately" or wait until the predefined conditions set by EPWM_setSyncOutPulseMode() or others?


2. Is this oneshot sync available in all EPWM modules, or in only EPWM 1, 4, 7, 10 from "Figure 15-7. Time-Base Counter Synchronization Scheme" that can generate EPWM1SYNCOUT?

 

3.After OSHTSYNC is set to 1 to issue such a sync, will OSHTSYNC be cleared to 0 automatically? OR it should be cleared by the user?

 

4.In the TRM, the description about this one-shot sync is little. Is there any more description or example except Table 15-23. TBCTL2 Register Field Descriptions?

Wayne Huang

  • 1. The oneshot sync put is going to send out immediately. IF it is enabled.

    2. On all EPWMs.

    3. I believe it automatically clears. Wiritng a Zero should have no affect. And there is no driverlib function support to CLEAR this bit. So it should clear on its own.

    4. Unfortunately I didn't see any further description on the oneshotsync. If there are any other questions I can help. I can also try and add more content or possibly an example to C2000WARE backlog.

    Nima