8.3 Polling Routine

A polling routine can be implemented to optimize time‑sensitive applications that prefer not to wait the fixed maximum write cycle time (tWC). This method allows the application to determine when the write cycle has completed so that a subsequent operation can begin.

Once the internally timed write cycle has started, a polling routine can be initiated. This involves repeatedly sending a Read STATUS Register (RDSR) instruction to determine whether the device has completed its self-timed internal write cycle. If the RDY/BSY bit (bit 0 of STATUS register) = 1, the write cycle is still in progress. If bit 0 = 0, the write cycle has ended. If the RDY/BSY bit = 1, repeated RDSR commands can be executed until the RDY/BSY bit = 0, signaling that the device is ready to execute a new instruction. Only the Read STATUS Register (RDSR) instruction is enabled during the write cycle.
Figure 8-3. Polling Flowchart