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

SPI (Serial Peripheral Interface) controller and communication method for SPI controller

A technology of controller and receiving control, which is applied in the direction of instrumentation, electrical digital data processing, etc., can solve problems such as loss, inflexibility, and data transmission misalignment, so as to ensure accuracy and reliability, meet the requirements of operation sequence, and adapt to the scope wide range of effects

Active Publication Date: 2015-07-29
NO 47 INST OF CHINA ELECTRONICS TECH GRP
View PDF3 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the current SPI interface design is not flexible enough. First, when the transmission speed of the interface is slower than that of the CPU, the operation timing of the interface and the CPU will be inconsistent, resulting in a relatively narrow scope of application of the SPI interface. Second, it is easy to appear in the communication process. Misplacement and loss of data transmission errors, the obtained data is not the actual required data

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) controller and communication method for SPI controller
  • SPI (Serial Peripheral Interface) controller and communication method for SPI controller
  • SPI (Serial Peripheral Interface) controller and communication method for SPI controller

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0061] #define HWREG(x)

[0062] (*((volatile unsigned long*)(x)))

[0063] / / Definition of a function that writes data at an address

[0064] #define SPI_Delay 0x40000000

[0065] / / Define the register address of the delay sending register 25

[0066] HWREG(SPI_Delay) = 0x108;

[0067] / / Write 0x108 (binary number 9'b100001000) on SPI_Delay (delayed sending register address), the 25 bit field [8] control position of the delayed sending register is 1, and the delayed sending is enabled, and the bit field [7:0] is 8'b00001000, representing a delay of 8 clocks.

no. 2 example

[0069] #define HWREG(x)

[0070] (*((volatile unsigned long*)(x)))

[0071] / / Definition of a function that writes data at an address

[0072] #define SPI_Delay 0x40000000

[0073] / / Define the register address of the delay sending register 25

[0074] #define ASSERT(expr)

[0075] / / ASSERT function to define

[0076] #define DELAYE 0x00000100

[0077] / / Delayed sending register 25 delayed sending enable to define

[0078] void

[0079] Delay(unsigned long n)

[0080] {

[0081] ASSERT((n>=0)&&(n<=255));

[0082] / / Check whether the variable is greater than or equal to 0, or less than or equal to 255, and whether it is within the range of the delayed sending count

[0083] HWREG(SPI_Delay) = n;

[0084] / / Delay n clocks

[0085] HWREG(SPI_Delay)|=DELAYE;

[0086] / / delay send enable

[0087] }

[0088] After the...

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) controller. The controller comprises an interface module (1), a register set module (2), a clock division module (3), a data transmission buffer (4), a data reception buffer (5), a delay transmission module (6), a transmission / reception control logic module (7) and an interruption generation module (8). In addition, the invention discloses a communication method by utilization of the SPI controller. The SPI controller and the communication method by utilization of the SPI controller have the advantages that a delay transmission control function can be realized, the high-speed performance of interface operation is guaranteed, and the requirements of a low-speed interface device on operation time sequence are also met.

Description

technical field [0001] The invention relates to a peripheral serial bus SPI interface, in particular to an SPI controller and a communication method realized by the controller. Background technique [0002] With the development of VLSI, the design of SOC (System on Chip, system-on-chip) becomes more and more complicated. IP core (Intellectual Property core) is a hardware description language program with specific circuit functions. This program has nothing to do with the integrated circuit process and can be transplanted to different semiconductor processes to produce integrated circuit chips. The IP core has a standardized interface protocol, good portability and testability, and provides a reliable guarantee for system development. It is of great significance to study IP multiplexing technology. [0003] The SPI interface is a synchronous serial interface technology introduced by Motorola. SPI has obvious advantages such as simple structure and fast communication speed,...

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
IPC IPC(8): G06F13/42G06F13/32
CPCG06F13/32G06F13/4282G06F2213/0002G06F2213/0038G06F2213/2414G06F2213/28
Inventor 刘东梅牛英山
Owner NO 47 INST OF CHINA ELECTRONICS TECH GRP
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