Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for expanding chip selection number and enhancing read-write response time flexibility of SPI (Serial Peripheral Interface)

A technology of response time and chip expansion, applied in the direction of electrical digital data processing, digital memory information, static memory, etc., can solve problems such as timing errors, no response time, SPI can not achieve normal communication, etc., to increase the number of chip selection, increase Response time, port saving effect

Pending Publication Date: 2021-11-30
SOUTHEAST UNIV
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to provide a method for expanding the number of SPI chip selections and enhancing the flexibility of reading and writing response time, so as to solve the problem that when there are many slave devices, SPI cannot realize normal communication and the slave devices do not respond between receiving control information and sending data information Timing, technical issues prone to timing errors

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for expanding chip selection number and enhancing read-write response time flexibility of SPI (Serial Peripheral Interface)
  • Method for expanding chip selection number and enhancing read-write response time flexibility of SPI (Serial Peripheral Interface)
  • Method for expanding chip selection number and enhancing read-write response time flexibility of SPI (Serial Peripheral Interface)

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0072] For read operations, the following steps are included:

[0073] 1. The SPI controller in the master device sends the control signal to the Din port of the control word processing module via the MOSI port. The chip select port occupied by the existing SPI controller can be simplified as an enable signal port of a control word processing module. If the master device is connected to 8 slave devices, then after applying this scheme, the master device chip occupied by the system The optional port is reduced from 8 to 1, which greatly saves the pins of the chip.

[0074] 2. If the number of slave devices is less than 256, the chip select byte length can be set to 1Byte. Taking the slave device SPI flash chip M25P64 as an example, the format of the control word containing chip selection information is as follows: figure 2 . The control signal includes 1Byte chip selection byte, 1Byte mode selection byte, 3Byte address byte and 1Byte invalid control byte.

[0075] 3. ima...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for expanding the chip selection number and enhancing read-write response time flexibility of an SPI (Serial Peripheral Interface). The method includes a master device, an SPI controller, a control word processing module and a slave device. The system adopts an SPI protocol for communication. In order to realize chip selection expansion, the control word is expanded, and N Byte chip selection bytes are added in front of the original control word. After receiving the control instruction of the MOSI port, the control word processing module decodes the chip selection information in the control instruction and pulls down the corresponding chip selection port. In order to increase the response time of the slave device, when the SPI controller sends a read instruction, invalid control bytes are added behind the address bytes. The slave device sends the data stream to the master device in the next clock period of the invalid control bytes. By adopting the method provided by the invention, the chip selection number can be expanded to 256 * N, the response time of the slave equipment is increased, and the stability and flexibility of SPI communication are improved.

Description

technical field [0001] The invention belongs to the field of SPI communication, in particular to a method for expanding the number of SPI chip selections and enhancing the flexibility of read and write response time. Background technique [0002] SPI (Serial Peripheral Interface, serial peripheral interface) is a high-speed full-duplex communication bus. It only occupies four wires on the chip pins, thus saving the chip pins and saving space for the layout of the printed circuit board. It is because of this easy-to-use nature that more and more chips today integrate this communication protocol. [0003] SPI works in a master-slave mode, which usually has a master device and one or more slave devices. SPI does not have a plaintext standard, but a de facto standard. The implementation of communication operations is only a general abstract description. Chip manufacturers and driver developers communicate implementation details through data sheets and application notes. [00...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/42G06F13/40G11C8/10G06F12/06
CPCG06F13/4282G06F13/4068G11C8/10G06F12/063
Inventor 张在琛张兆涵
Owner SOUTHEAST UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products