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.

TMS320F28388S: If enable valley switching, DCEVTFILT is synchronous output or asynchronous output?

Part Number: TMS320F28388S

Dear Expert,

1. My understanding is that when enabling valley switching, DCEVTFILT is synchronous output. Then, in Figure 26-52. DCxEVT1 Event Triggering, if I set DCxCTL[EVT1SRCSEL] 1 to select DCEVTFILT, I notice there is sync logic after the EVT1SRCSEL mux, will the sync logic filter out the DCEVTFILT signal from valley switching? 

2. In T1SEL, DCEVTFILT is output from valley switching or from event filtering(async after blank window filtering)? 

3. In T1sel, following signals are level sensitive signals, how do they work on AQ PWM? Is PWM  toggling on the edge of these signals or PWM is always toggling when these signals is HIGH? 

0000: DCAEVT1
0001: DCAEVT2
0010: DCBEVT1
0011: DCBEVT2
0100: TZ1
0101: TZ2
0110: TZ3

  • Hi Echo,

    1. My understanding is that when enabling valley switching, DCEVTFILT is synchronous output. Then, in Figure 26-52. DCxEVT1 Event Triggering, if I set DCxCTL[EVT1SRCSEL] 1 to select DCEVTFILT, I notice there is sync logic after the EVT1SRCSEL mux, will the sync logic filter out the DCEVTFILT signal from valley switching? 

    You do not want to select the sync'ed path after enabling the valley switching. Yes, the sync logic will filter out the DCEVTFILT signal.

    You can test this using our ePWM example 6 CCS project. ePWM1B is using DCBEVT1 to force ePWM output low and adding a delay to the DCFILT signal by a software defined DELAY value. If you set DCBCTL[EVT1SRCESEL] = 0, (SYNC path) the DCEVTFILT does not get delayed and is filtered out. 

    2. In T1SEL, DCEVTFILT is output from valley switching or from event filtering(async after blank window filtering)? 

    This is dependent on what is chosen in DFCTL[EDGEFILTSEL].

    3. In T1sel, following signals are level sensitive signals, how do they work on AQ PWM? Is PWM  toggling on the edge of these signals or PWM is always toggling when these signals is HIGH? 

    If you configure your T1 AQ event to toggle and your digital compare event signal is still active then your PWM signals will NOT always toggle while the signals stay high until the next DCx event occurs.

    For example:

    If you have ePWMxA T1's AQ event to toggle, and you configure your Digital Compare event 1A's condition to be when DCxH is high. IF the digital compare 1A event stays high, the AQ event will not toggle continuously. Only on the rising edge of the DCEVT1 high signal, will the PWM output toggle.

     

    Best,

    Ryan Ma

  • Hi Ryan,

     As you said "after enabling the valley switching. Yes, the sync logic will filter out the DCEVTFILT signal.", in this case, if I set DFCTL[EDGEFILTSEL] =1 to enable valley switching and set DCxCTL[EVT1SRCSEL] =1 to select DCEVTFILT, then will DCxEVT1.inter, DCxEVT1.soc, DCxEVT1.sync be ALWAYS zero since I select the sync'ed path and this path(sync'ed DCEVTFILT) is filtered out by sync logic after DCxCTL[EVT1SRCSEL] mux?  In the following diagram, DCxEVT1.inter, DCxEVT1.soc, DCxEVT1.sync can only be sourced from sync logic after DCxCTL[EVT1SRCSEL].

  • Hi Echo,

    The sync logic will filter out the SWDELAY that was applied from the valley switching. Not completely filter out the DCEVTFILT signal.

    DCxEVT1.sync will occur some TBCLK edge, however the sync will not have the added software delay from valley switching.

    Could you use DCxEVT2 as your DCxEVT2.force signal? Then use DCxEVT1 as your sync source?

    Also, could you share what is the end application for this type of requirement?

    Best,

    Ryan Ma

  • Hi Ryan,

    I'm just curious that once enable valley switching, then only .force signal is valid. Now I fully understood it, I really appreciate your support here. By the way, do you have materials(user guide or application guide) about valley switching that I can find limited information in the TRM?

  • Hi Echo,

    You're welcome! Would you be kind to share what is your end application that you're using our ePWM for? If needed and requested by multiple users, we could look into creating an app note around valley switching. 

    We do have a video and reference design that talks about valley switching:

    1. TIDM-1022 Valley switching boost power factor correction (PFC) reference design

    2. Video Resource 

    I was able to also find this reference.

    However we currently do not have a user guide or app note on valley switching.

    Best,

    Ryan Ma