| CPC G06F 13/4291 (2013.01) [G06F 13/28 (2013.01)] | 16 Claims |

|
1. A method of transmitting a payload from a host to a peripheral device using Serial Peripheral Interface (SPI), the method comprising:
asserting, by the host, a chip select (CS) signal to indicate that a transmission is intended for the peripheral device;
transmitting a header from the host to the peripheral device, wherein the header contains a number of bytes contained in the payload;
ensuring, at the peripheral device, after receipt of a final byte of the header, that an interrupt (IRQ) signal is deasserted, which signals that the peripheral device is not ready to receive the payload;
performing operations at the peripheral device to prepare to receive the payload;
asserting, by the peripheral device, the IRQ signal, after performing the operations, to indicate that the peripheral device is ready to receive the payload; and
transmitting, by the host, the payload after detecting an assertion of the IRQ signal.
|