TMS320F28388D: T-Fromat interface unexpected state changes

Part Number: TMS320F28388D

Hi Experts,

My cusotmer is seeing an unexpected state changes in the T-Format encoder interface. This issue only happens on some of the encoders. (specific vendor). 

Blow is a waveform capture of the issue:

421edf4c7c56f2bc95e48f68097e42f0.png

The purple and blue is the TX (to encoder) and RX of the SPI.

The Green is the SPI clock.

The Orange (GPIO1) 1 is the S0 state of the main FSM 

The Yellow(GPIO91) is the Couter1.Match2 which triggers the FSM to flip

image.png

As you can see in the waveform. There is a period that the SPI clock is missing, this is likely because the FSM is in the wrong state (idle). Which means the FSM is triggered from RECEIVE_DATA to IDEL too early. In fact, you may see an unepxected Couter1.match2 signal which triggers the FSM in the period which SPI clock the missing.

In all, the error should be expected match2 signal -> FSM transiti to IDLE earliy -> clock is missing.

The question is that what might cause the unexpected match2 singal?

Note that this only happens on a specific encoder vendor. The same software works fine on other encoder vendors. Even for encoders from this vendor, the error only happens on some of the cycles.

Regards,

Hang

  • Hi Hang,

    Thanks for your question, I am taking a look at this. Can you provide vendor information?

    Have you confirmed with vendor that their encoder is exactly T-Format compliant?

    Regards,

    Peter

  • Hi Peter,

    The Vendor is Ruiying. and they claim that their T-Format compliant.

    Neverthless, customer's FPGA solution can handle the encoder of this vendor, we need to make P65 works as well orther wise we lose to the FPGA solution, 

    Even If the encoder is not compliant, we need to indentify the root cause so that we can push this back to the vendor. 

    From the waveform, the cause is in the CLB statemachine instead of encoder response.

    Could you please help looking into the CLB logic and see if we can find the cause of the unexpected state transition?

    Regards,

    Hang