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.

TMS320F28388D: How we configure a source(ePWMx) of ADCSOCA/B in eQEP QS setting ?

Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG

Hi experts,

F2838x Technical reference manual (spruii0d.pdf) show a below diagram to select sources of QI and QS.

However eQEP chapter( chapter 27) does not describe more detailed information about ADCSOCA/B. 

ADCSOCA/B are same as below ADCSOCA/B ?

Chapter 17 shows a below diagram. But there is no register related eQEP in EPWM X-BAR registers.

Figure 17-5 ePWM and Output X-BARs Sources

A source of ADCSOCx can be selected in SyncSocRegs.ADCSOCOUTSELECT register.

In X-Bar modules, a user have to connect a source signal with an input signal to a peripheral.

I donot find any registers like registers.

Could you please let us know what registers a user should set ?

Best regards,

Hidehiko

  • Hi Hidehiko,

    The connection between EPWMXBAR and EQEP in Figure 17-5 only applies to QEPBSEL and QEPASEL. QEPSTROBESEL is defined here:

    ADCSOCOUTSEL should be used for configuring ADCSOCA and ADCSOCB

  • Hi Luke,

    Thank you for your comment.

    3 eQEP receive ADCSOCA/B signals directly and not via ePWM X-Bar.

    Is it right ?

    Best regards,

    Hidehiko

  • Hi Hidehiko,

    The EQEP module receives the ADCSOCA and ADCSOCB signals in two different ways. One via EPWMXBAR, and again as a direct connection in figure 27-13. The figure in your most recent reply is associated with the EQEP inputs table in the EQEP chapter, where the EPWMXBAR outputs are inputs to the EQEP module.

  • Hi Luke,

    Thank you for your information.

    1) via EPWMXBAR

    2) direct connection ( ADCSOCA and ADCSOCB are connected to eQEPs(1,2,3))

    1) There is no description about this connection in 17.2.1 ePWM X-BAR (TRM).

    Only one figure shows a eQEPx block in my previous comment.

    Could you please provide more information ?

    How should we configure to connect this line ?

    2) I understand that 2 configurations are needed to connect this line.

    2-a) select a source in ADCSOCA0  / ADCSOCB0 blocks in ADCSOCOUTSELECT registers

    2-b) select a source(ADCSOCA/B) in QEPSTROBESEL  registers

    Best regards,

    Hidehiko

  • Hi Hidehiko,

    ADCSOCA and ADCSOCB are connected as inputs to the EPWM XBAR via the ePWM X-BAR Mux Configuration Table in the XBAR chapter. Then, the PWMXBAR outputs are used as inputs to the eQEP Input Source Select Table in the EQEP chapter to select the inputs for QEPA, QEPB, and QEPI.

    In addition to this signal path, there is the direct connection selected by QEPSTROBESEL as you described.

    Let me know if this answers your question.

    Thank you,

    Luke

  • Hi Luke,

    >ADCSOCA and ADCSOCB are connected as inputs to the EPWM XBAR via the ePWM X-BAR Mux Configuration Table in the XBAR chapter. 

    In the X-Bar chapter, ePWM X-Bar outputs 8 signals (TRIP4,5,7,8,9,10,11,12)  

    >>1) There is no description about this connection in 17.2.1 ePWM X-BAR (TRM).

    This is my question. How we should configure an input signal from ePWM X-Bar to eQEP ?

    Best regards,

    Hidehiko

  • Hi Hidehiko,

    The EPWM-XBAR outputs in the EQEP input select table are labeled 1-8. These correspond with the trip names you see in the Input X-BAR diagram. For example, TRIP4 corresponds with EPWMXBAR1, TRIP5 corresponds with EPWMXBAR2, TRIP7 corresponds with EPWMXBAR3, etc.

  • Hi Luke,

    Thank you for your information.

    You already provided :

    >The connection between EPWMXBAR and EQEP in Figure 17-5 only applies to QEPBSEL and QEPASEL. QEPSTROBESEL is defined here:

    How we select a source of a strobe event in  EPWM-XBAR outputs (label 1-8).

    Best regards,

    Hidehiko

  • Hi Hidehiko,

    There is no option to connect the EPWM-XBAR output to the strobe event, unlike inputs A, B and I:

    The only options for the strobe input are defined by the GPIO mux for each EQEP instance. For each EQEP instance, there are 3 GPIO options for the strobe input. You can easily see this through SysConfig when controlling the pin configuration in the EQEP menu.

    Thank you,

    Luke

  • Hi Luke,

    Thank you for your help.

    I understand how to configure PWM X-Bar signals.

    Best regards,

    Hidehiko