2022-12-22 8:48 AM
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
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.
Solved! Go to Solution.
2023-01-04 8:01 AM
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.
2023-01-04 8:01 AM
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.