3
\$\begingroup\$

I am now looking into the Figure 11-1 Read Manufacturer and Device ID Signal.

Say my code correctly clocks in the relevant OPCODE on SI.

However, maybe then the software waits a little too long (or not long enough) to begin reading data from SO. Or similarly, for instance, if the final CS to high command is made a little late, or early.

In these situations, will the entire operation be incorrect and no data will be readable? Or will there be correct data in the SO line that can be read, and perhaps only the start and end bits will be incorrect?

\$\endgroup\$

1 Answer 1

3
\$\begingroup\$

From section 4. Device Operation:

The AT25SF081 is controlled by a set of instructions that are sent from a host controller, commonly referred to as the SPI Master.

The software on your host controller drives the input pins to the Flash device: CS, SCK and SI. If the host shifts in the OPCODE byte, then it needs to wait a while for some reason, the host can keep CS low and stop toggling the clock line for a while until it is ready to start reading bytes. As long as CS stays low, the Flash needs to wait for clock pulses before it outputs the ID bytes. The Flash will not cancel the command in-progress.

\$\endgroup\$
3
  • \$\begingroup\$ So in the situation that the clock is left running, and the CS is set to high before the final bit of data is received from SO - will this mean that the data previously clocked out on SO will not be accessible? (Even if it is written to a local register for later processing before CS is set to high) \$\endgroup\$
    – K_T
    Commented Oct 9 at 17:41
  • 1
    \$\begingroup\$ @K_T: If the host keeps the clock running and CS goes high during the middle of a byte, then that byte will not be received, but previous bytes will be received. \$\endgroup\$
    – toolic
    Commented Oct 9 at 17:47
  • \$\begingroup\$ Ace, thanks :)! \$\endgroup\$
    – K_T
    Commented Oct 9 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.