Master-slave system, command execution method and data access method with use of serial peripheral interface (SPI)
AssigneeGuangzhou Tyrafos Semiconductor Technologies Co., LTD
InventorKeng-Li Chang
Life of this patent
Estimating the term…
Abstract
A master-slave system, a command execution method, and a data access method are provided. The master-slave system includes a master device and a slave device. The master device provides a first command and a clock signal to the slave device. The slave device executes a first operation corresponding to the first command according to the first command and the clock signal. When the first operation corresponding to the first command is completed, the slave device generates a response signal according to the clock signal to notify the master device an execution result of the first operation corresponding to the first command.
Claims28
A master-slave system, comprising:
- a master device, having a first interface;
- and
- a slave device, having a second interface, the second interface being electrically connected to the first interface, wherein
- the master device provides a first command and a clock signal to the slave device,
- the slave device executes a first operation corresponding to the first command according to the first command and the clock signal, and
- when the first operation corresponding to the first command is completed, the slave device generates a response signal according to the clock signal to notify the master device an execution result of the first operation corresponding to the first command,
- wherein before the operation where the master device provides the first command and the clock signal to the slave device,
- the master device and the slave device pre-define a quantity of a first clock cycle in the clock signal required when the master device provides the first command to the slave device, a quantity of a second clock cycle in the clock signal required when the slave device executes the first operation corresponding to the first command and a quantity of a third clock cycle in the clock signal required when the slave device generates the response signal.
A command execution method for a master-slave system, the master-slave system comprising a master device having a first interface and a slave device having a second interface, the second interface being electrically connected to the first interface;
- the method comprising:
- providing a first command and a clock signal to the slave device by the master device;
- executing a first operation corresponding to the first command by the slave device according to the first command and the clock signal;
- and
- when the first operation corresponding to the first command is completed, generating a response signal by the slave device according to the clock signal to notify the master device an execution result of the first operation corresponding to the first command,
- wherein before the step of providing the first command and the clock signal to the slave device, the method further comprises:
- pre-defining, by the master device and the slave device, a quantity of a first clock cycle in the clock signal required when the master device provides the first command to the slave device, a quantity of a second clock cycle in the clock signal required when the slave device executes the first operation corresponding to the first command and a quantity of a third clock cycle in the clock signal required when the slave device generates the response signal.
A master-slave system, comprising:
- a master device, having a first interface;
- and
- a slave device, having a second interface, the second interface being electrically connected to the first interface, wherein
- the master device provides a first operation code (OP code), a first address and a clock signal to the slave device,
- the slave device executes a first access operation to access first data corresponding to the first address according to the first operation code, the first address and the clock signal,
- when the slave device finishes accessing the first data corresponding to the first address and the slave device does not receive the clock signal again before the master device finishes operations corresponding to the first operation code, the slave device finishes executing the first access operation, and
- when the slave device finishes accessing the first data corresponding to the first address and the slave device continuously receives the clock signal, the slave device accesses second data corresponding to a second address according to the clock signal, wherein the second address is adjacent to the first address.
A data access method for a master-slave system, the master-slave system comprising a master device having a first interface and a slave device having a second interface, the second interface being electrically connected to the first interface, the method comprising:
- providing a first operation code (OP code), a first address and a clock signal to the slave device by the master device;
- executing a first access operation by the slave device to access first data corresponding to the first address according to the first operation code, the first address and the clock signal;
- when the slave device finishes accessing the first data corresponding to the first address and the slave device does not receive the clock signal again before the master device finishes operations corresponding to the first operation code, finishing executing the first access operation by the slave device;
- and
- when the slave device finishes accessing the first data corresponding to the first address and the slave device continuously receives the clock signal, accessing second data corresponding to a second address by the slave device according to the clock signal, wherein the second address is adjacent to the first address.
Dependencies are inferred from the claim text.