Post Go back to editing

AD2S1210: An error occurs when switching from normal mode to configuration mode.

Hi

In my design, MCU communicates with AD2S1210 through SPI, in normal mode, position and speed data can be read correctly. And in the configuration mode, the position, speed and fault data can also be read correctly.

But when switching from the normal mode to the configuration mode, serious errors will occur in the data read, and DOS, LOT, A, B, and Z will all flicker abnormally.

In order to prove the phenomenon I encountered, when the resolver was stationary, I constructed a narrow pulse of A0A1 as shown in the figure. The relationship between the A0 pulse and the CLK signal of SPI in the figure is shown in the figure.

Test Results, A0 A1 and Encoder B(A0 and A1 are the same waveform).

Test Result - CLK and SDOs.

In short, it is found from the experimental results that when switching from the normal mode to the configuration mode, the angle and signal inside the AD2S1210 will be wrong.

I don't know how to switch between configuration mode and normal mode without erroneous data. I cannot implement the sequential logic diagram in the manual.

Q: Does this problem really exist? How to avoid this problem and realize flexible switching.

Regards.

LGX

Parents
  • LGX,

    I'm not sure I understand the source of the problem you are encountering but I would like a closer look at your timing waveforms for configuration versus normal operation to understand how you've implemented each serial pattern.   Could you also please indicate what your input stimulus looks like when the encoder output is disturbed during the switching.

    Sean

  • Sean,

    Sorry for not describing it clearly.

    The timing diagram of SPI is shown in the figure.

    Normal mode,A0 = 0 ,A1 = 0, /CS = 0,read position data.

    Cofigure mode,  A0 = 1, A1 = 1,  /CS = 0,  write 0x80 0x81 0x82 0x83 0xF0,read FAULT POS_HI,POS_LO,VEL_HI,VEL_LO.

    The resolver remains stationary. From the above test results, it can be seen that the normal mode and configuration mode read the same position data, and this data is correct.

    In the above cases, the state of A0A1 remains unchanged, all zeros or all ones. When I deliberately insert a mode switch before the configuration mode, as shown in the figure below. Irregular error data appears. Everything goes wrong(Encoder A B Z, SDO data).

    In fact, when only the SAMPLE signal and A1 A0 signal are sent and the SPI communication is turned off, the error still exists (Encoder A B Z).

    Thanks,

    LGX

  • LGX,

    Can you please send me a simplified connection diagram/schematic for your setup?   It will be easier for me to spot anything abnormal.   I will continue to study your timing diagrams to see if I see anything obvious.

    Sean

  • LGX,

    First of all my apologies for the delay in my response.  Having looked over your schematic (focusing primarily on the AD2S1210) I don't see anything immediately that jumps out.  However, could you try a simple experiment for me?   What happens to the response if you remove R194 and R201?  Does the behavior change?

    Also do you see any fault indication (LOS/DOT) when the error occurs at the transition?

    Sean 

  • LGX,

    One more thing.   Try deasserting SAMPLE (SAMPLE=1) before issuing your serial commands?  Does this change the outcome?

Reply Children