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

Method for realizing serial peripheral unit interface

A technology of serial peripheral interface and implementation method, which is applied in the field of serial communication, can solve problems such as data transmission that does not support full duplex, divide machinery, limit application range, etc., and achieve the effect of reducing chip design investment

Active Publication Date: 2008-11-26
HUAWEI TECH CO LTD
View PDF7 Cites 2 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
[0015] 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 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

[0066] 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.

[0067] 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.

[0068] In half-duplex mode, all serial data transmission activities are initiated by the master device, and the slave device only performs data transmission and reception passively, and responds according to the command word information (if the peripheral device supports the corresponding); in full-duplex In this mode, there is no distinction between master / slave devices, that is, both the sender and receiver of serial data act as 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

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 Patents(China)
IPC IPC(8): G06F13/42
Inventor 黄卫华吴奇祥
Owner HUAWEI TECH CO 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