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

SPI (Serial Peripheral Interface)-based register fast read-write method

A read-write method and register technology, applied in the field of mobile communication, can solve problems such as inability to interconnect, no standard protocol, SPI interface technology differences, etc., and achieve the effect of improving the overall operation level, simple timing, and quick and easy operation.

Active Publication Date: 2014-12-24
MICROARRAY MICROELECTRONICS CORP LTD
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Since the SPI interface is a de facto standard and there is no standard protocol, most manufacturers refer to Motorola's SPI interface definition to design. Because there is no exact version agreement, there are certain differences in the technology of the SPI interface of different manufacturers' products. , it is easy to cause ambiguity, and some even cannot be interconnected

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
  • SPI (Serial Peripheral Interface)-based register fast read-write method
  • SPI (Serial Peripheral Interface)-based register fast read-write method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The technical solution of the present invention will be further described in detail below in conjunction with the accompanying drawings, but the protection scope of the present invention is not limited to the following description.

[0026] A register quick reading and writing method based on the SPI interface, which includes register reading and writing and register batch reading two steps;

[0027] Such as figure 1 As shown, register read and write includes the following sub-steps:

[0028] S11: The device strobe signal CS becomes valid, that is, low level, and keeps 4 beats continuously valid;

[0029] S12: In the first beat, transmit the read and write command and the read and write address CMD[7:0] through the SDI data line, where CMD[7]=0 means the read and write command, and CMD[6:0] is the read and write address ;

[0030] S13: In the second beat, transmit the write data DATA0 through the SDI data line;

[0031] S14: In the third beat, read out the old data ...

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 an SPI (Serial Peripheral Interface)-based register fast read-write method. The method comprises a register read-write step and a register batch read step, wherein the register read-write step comprises the following sub-steps: changing an equipment gating signal CS to be effective, namely at low level, and keeping four beats effective continuously; at a first beat, transmitting a read-write command and a read-write address CMD [7:0] through an SDI (Serial Digital Interface) data line, wherein CMD [7] is equal to 0 and represents the read-write command, and CMD [6:0] is a read-write address; at a second beat, transmitting the data DATA0 through the SDI data line; at a third beat, reading old data DATA1 of the read-write CMD [6:0] through an SDO (Service Data Object) data line; at a fourth beat, reading new data DATA2 of the read-write address CMD [6:0] through an SDO data line, wherein the DATA2 is required to be consistent with the DATA0; changing the equipment gating signal CS to be high level and finishing the read-write of the register. The read-write method provided by the invention does not need multiple addressing, has a simple time sequence, is fast, simple and convenient to operate and plays an important role in improving the overall operation level and the institutional norms of SPI interface communication in China.

Description

technical field [0001] The invention relates to a method for reading and writing an SPI interface in the technical field of mobile communication, in particular to a method for quickly reading and writing registers based on the SPI interface. Background technique [0002] The SPI interface is a synchronous serial peripheral interface. As a general data interface, it is widely used because it is easy to use and saves system resources. The SPI interface is mainly used in EEPROM, FLASH, real-time clock, AD converter, and Between the digital signal processor and the digital signal decoder, it enables the MCU to communicate with various peripheral devices in a serial manner to exchange information. [0003] Since the SPI interface is a de facto standard and there is no standard protocol, most manufacturers refer to Motorola's SPI interface definition to design. Because there is no exact version agreement, there are certain differences in the technology of the SPI interface of d...

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/16
Inventor 杨力向建军
Owner MICROARRAY MICROELECTRONICS CORP LTD
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