Serial Peripheral Interface (SPI) controller and communication method

A controller and control register technology, applied in the field of serial communication, can solve the problems of increasing the burden of software designers, increasing software overhead and CPU resource occupation, and achieving the effect of reducing software control and improving utilization rate

Active Publication Date: 2013-04-24
SUZHOU ZHONGKE ADVANCED TECH RES INST CO LTD
View PDF3 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0023] Therefore, regardless of whether the SPI controller is configured as a master or a slave, after the receiving data buffer is full of data, regardless of whether the received data is actually used, the data in the receiving data buffer mus

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

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0062] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0063] The present invention provides an SPI controller, such as Figure 4 As shown, it includes an internal bus interface module, which is used to realize the CPU operation of the SPI controller and the register module through the internal bus, and receives the configuration of the SPI controller from the CPU transmitted through the internal bus interface module, and a data conversion module for outputting data in parallel The conversion and input data serial-to-parallel conversion, state and interrupt control module is used to report the state of the SPI controller and generate interrupts, and it is characterized in that it also includes a finite state machine, which is used for according to the SPI transmission parameters registered by the control register in the register module and The SCLK baud rate parameter registered in the baud...

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 relates to a Serial Peripheral Interface (SPI) controller. The controller comprises an inner bus interface module, a register module, a data converting module, a state and breaking control module, a data transmitting and receiving buffer and a state limiting machine which is used for generating output of Slave Select (SS) and SPI Clock (SCLK) in accordance with SPI transmitting parameters for controlling the storage of the register and SCLK Baud rate parameters for controlling the storage of a Baud rate register in the register module. For the modified SPI controller, the SS output is controlled by SPI controller hardware automatically when the controller is a host computer, and the software is not required to simulate the SS output, when the reading of the data in the buffer is selected, the unnecessary operation that a Central Processing Unit (CPU) reads and receives the data buffer is reduced, the required software control is reduced greatly when the CPU operates the SPI controller, and the use rate of the CPU is improved.

Description

【Technical field】 [0001] The invention relates to serial communication technology, in particular to an improved SPI controller and a communication method based on the SPI controller. 【Background technique】 [0002] SPI (Serial Peripheral Interface, Serial Peripheral Interface) is a full-duplex, synchronous serial transmission bus first proposed by Motorola. It is mainly used for communication between microcontrollers and peripheral devices, as well as for microprocessors. communication with the microprocessor. It has the advantages of simple circuit structure, fast transmission speed and reliable communication. [0003] The SPI bus includes 4 signal lines: SS (Slave Select, slave select), SCLK (SPI Clock, SPI transmission clock), MOSI (Master Output Slave Input, master output slave input) and MISO (Master Input Slave Output, master) input slave output). Among them, SS is output by the SPI master, which is used by the SPI master to select the SPI slave, and the low level i...

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/20
Inventor 段长江聂泽东
Owner SUZHOU ZHONGKE ADVANCED TECH RES INST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products