ALFAT SPI Communication... L Command

we will use ALF2X-SC-512 on the our device.
It controlled USB Files by SPI communication.

If I send the W Command to ALF2 IC, it changed SPI_BUSY status are Low and then I can write to the ALF2 IC. But, if I send the L Command to ALF2 IC, it changed SPI_BUSY are HIGH and then I can’t communicate with ALF2 IC anymore.

we applied ALFAT_SPI_UART_IF_Code_Library CODE.

  1. What is different between W Command and L Command ?
  2. How to control SPI_BUSY Pin ?

We are looking foward to hearing this questions from you soon.

From the manual (https://www.ghielectronics.com/downloads/ALFAT/ALFAT_SoC_Processor_User_Manual.pdf) you’ll be able to see that W is a standard “write” and L is a “fast write”.

Since SPI busy is still asserted, I suspect you have not properly sent the number of bytes that you told ALFAT to expect, and it’s still waiting for that to complete (see steps 4 and 5 of the algorithm noted in the manual P46). Until SPI_BUSY is not busy, you can’t proceed to step 6.

@ taejun Park -

Please clear “!00” before sending raw data. It is only one that different between L and W commands.

@ Dat -
if I send the L Command, SPI_BUSY PIN status is HIGH
And then DataReady Status is High or Low?

@ taejun Park -

it is high because there are !00 response after “L” command! You have to clear it. With “W” command you don’t need, but with L command you have to

L 0>5
!00 ====> you have to read this before send raw data if using L command
12345
$00000005
!00