Method for realizing serial peripheral unit interface

A technology of serial peripheral interface and implementation method, applied in the field of serial communication, can solve the problems of data transmission that does not support full duplex, limited application scope, complicated process of receiving data by the master device, etc., so as to reduce the investment in chip design. Effect

Active Publication Date: 2006-10-25
HUAWEI TECH CO LTD
View PDF0 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But it also does not support full-duplex data transmission, and the division of frame types is relatively mechanical
[0014] At the same time, it is not difficult to see that no matter which of the above-mentioned interface implementation methods, the range of effective data bit width supported by it is small, and the process of receiving data by the master device is complicated: in addition to the command word, additional garbage data is required to generate the bit clock. Signal and slave device enable signal; although frame format 3 does not require additional garbage data, its command word is fixed at 8 bits, which greatly limits its application range

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 realizing serial peripheral unit interface
  • Method for realizing serial peripheral unit interface
  • Method for realizing serial peripheral unit interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] The present invention will be further described below in conjunction with the accompanying drawings and embodiments. The realization of the present invention is mainly to select the operating mode of the SPI port, and program the working mode of each mode, and the whole working process is as follows: figure 2 shown.

[0066] Among them, the SPI configuration parameters include: SPI working mode, bit clock status and other programmable parameters related to data transmission and frame format, as listed in Table 2, 3 and 4 respectively.

[0067] Working mode number

Working mode naming

Description of working method

mode 1

PATTERN1

Half-duplex, chip select pin output as slave enable signal

mode 2

PATTERN2

Half-duplex, chip select pin output as frame sync signal

mode 3

PATTERN3

Full duplex, chip select pin output as slave enable signal

mode 4

PATTERN4

Full duplex, chip select pin output as frame sy...

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

Present invention relates to a multiple working mode serial peripheral interface implementation method, which contains through SPI configuration parameter configuring SPI working mode, then according to synchronous serial data frame relevant all programmable parameter under different kinds of working mode to proceed data receiving / transmitting, to realize full duplex synchronous series transmission. Due to the present invented SPI interface working mode and serial data frame relevant all parameter can be configured through software, therefore the present invented SPI interface can support current whole peripheral having SPI interface. And the present invention designed SPI expansion function, such as equipment enabling signal, can be configured into frame synchronizing signal, to support other general-purpose synchronous serial peripheral interface, enlarging SPI interface application field and reducing systematical designing on chip.

Description

technical field [0001] The present invention relates to serial communication technology, more precisely, relates to a method for realizing a serial peripheral interface. Background technique [0002] The serial peripheral interface is mainly used to complete the data conversion between the parallel bus interface and the external serial interface. It is especially suitable for the configuration and control of peripherals and devices, because such applications generally require low transmission rates and small data volumes. Moreover, because the logic of the SPI interface is simple, the interface pins are few, and the programming application is convenient, most peripherals / devices also support the SPI serial interface. [0003] Generally speaking, SPI adopts a synchronous serial communication method with a master-slave structure, and one master device can have one or more slave devices. The bus at the parallel bus interface varies with the type of parallel bus, while the sig...

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/42
Inventor 黄卫华吴奇祥
Owner HUAWEI TECH 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