CPC G06F 13/4291 (2013.01) | 20 Claims |
1. An SPI controller, comprising:
an SPI clock signal generator, configured to generate an SPI clock signal;
a register group configured to store an SPI operating configuration of the SPI controller;
a plurality of SPI pins configured to connect to one or more SPI peripherals; and
an input/output controller configured to perform data input or output between the SPI controller and the SPI peripherals according to the SPI clock signal and the SPI operating configuration; and
an SPI state machine configured to control a working state of the SPI controller;
wherein the SPI controller is electrically coupled via a bus to a CPU, a DMA controller and a system memory located outside the SPI controller; and
the input/output controller is further configured to receive an updated SPI operating configuration from the DMA controller and update the updated SPI operating configuration into the register group between two consecutive SPI transmissions.
|