cancel
Showing results for 
Search instead for 
Did you mean: 

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.

KiptonM
Lead

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.

1 ACCEPTED SOLUTION

Accepted Solutions
KiptonM
Lead

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.

View solution in original post

1 REPLY 1
KiptonM
Lead

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.