This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

READ() SPI problem

I am having difficulty in using the DI_GET_DEVICE_INFO instruction. I first issue the CMD_REQ command with 1E instruction (i.e. 0xDE in the CMD_REQ format) then wait for MISO high then put 900C and twelve zero bytes, all with CS low. The response for the CMD_REQ and the 900C first part of READ() is correct - the status word but then I get also the status word repeated 6 times in the data part which is not what it should be. What may I be doing wrong ? Attached the first part of what I generate

  • Hi Pawel !

    From what I can see in your diagrams you are changing your data on positive rising edge of clock. The CC85XX latches the data on the same rising edge. This will not give you the desired operation.

    Try to change on which rising edge the MOSI signal is set, and give it a try

     

    Ole A.