Skip to main content
KiptonM
Senior III
December 22, 2022
Solved

Using the L6474 when Reading the Status Byte with the GetParam(0x20 + 0x19) and GetStatus() or Command(0xD0) I get different results for the Status Byte.

  • December 22, 2022
  • 1 reply
  • 891 views

To be honest the difference is 0x7F03 for the ReadParam() and 0xFF03 for the GetStatus()

The documentation L6474Data Sheet (DoclD022529 Rev 4) says Bits 13, 14, and 15 should be 1 all the time. In one case Bit 15 is always 0 and the other case Bit 15 is always 1

0693W00000Y6jqyQAB.png 

In case you think I am doing something wrong:

The CS being high is 920 ns or more. It must be > 800 ns

And the SCK is 4 MHz and has to be less than 5 MHz.

This topic has been closed for replies.
Best answer by KiptonM

waclawek.jan (Community Member)

Mentioned to me in another post that the SPI interface was Mode 3, and I was using Mode 0.

The documentation does not mention the mode at all. It just shows the timing diagram. And I missed it.

So in the configuration tool (MX) CPOL = High, and CPHA = 2 Edge.

And make the change to the Logic Analyzer.

1 reply

KiptonM
KiptonMAuthorBest answer
Senior III
January 4, 2023

waclawek.jan (Community Member)

Mentioned to me in another post that the SPI interface was Mode 3, and I was using Mode 0.

The documentation does not mention the mode at all. It just shows the timing diagram. And I missed it.

So in the configuration tool (MX) CPOL = High, and CPHA = 2 Edge.

And make the change to the Logic Analyzer.