A method for accessing serial peripheral interface (SPI) slave devices using an SPI control device determines an SPI slave device to be operated, sets an operation type of the determined SPI slave device, and further sets a clock rate, a clock phase, and a clock polarity of the determined SPI slave device. The method further generates a clock signal according to the clock rate, the clock phase, and the clock polarity of the determined SPI slave device, and performs a read operation or a write operation on the determined SPI slave device according to the clock signal.
展开▼