METHOD FOR TRANSFERRING OR ERASING DATA IN A MASTER-SLAVE ENVIRONMENT
The present invention relates to a method for transferring or erasing data of a memory (4) in a system comprising at least a slave device (2) connected to a master device (1) by a Serial Peripheral Interface bus (3). According to the invention, the method comprises the steps of: - the slave device transmits (S1) an interrupt signal to the master device, - in response to said interrupt signal, the master device transmits (53) a read command to read a status register of the slave device, said status register storing flags indicating whether a data transfer and/or erase in the memory is requested or not by the slave device, - in response to said read command, the slave device transmits (54) the flags of the status register and address information and length information on the data to be transferred or erased, and - the master device parses the flags (S7) and triggers (S8-S10) a transfer and/or erase operation in accordance with said flags, address information and length information.