Serial communication method and apparatus

A serial communication and signal line technology, applied in the field of serial communication methods and devices, can solve the problems of reducing system reliability, occupying pin resources of main equipment, and increasing interconnection lines in PCB, so as to reduce logic or software The effect of reducing the amount of code and maintenance workload and reducing development costs

Inactive Publication Date: 2009-04-01
HUAWEI TECH CO LTD
View PDF0 Cites 43 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This will take up more pin resources of the main device, and the internal interconnection lines of the PCB will also increase accordingly, which will increase the product development cost and reduce the reliability of the system; One slave device requires the master device to allocate an additional chip select signal, which can only be achieved by modifying the hardware design
In addition, since the SPI protocol does not provide a fault diagnosis mechanism, the system cannot provide corresponding solutions when one of the communication parties fails
[0010] To sum up, the existing commonly used serial communication methods have certain defects and cannot well meet the needs of practical applications.

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 communication method and apparatus
  • Serial communication method and apparatus
  • Serial communication method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] 为使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明作进一步的详细阐述。

[0049] 本发明实施例提出一种简单、高效的串行总线通信方案,为便于叙述,以下将本发明提出的这种串行通信方案称为改进型串行接口(ImprovedSerial interface,ISI)通信方式,其原理如 image 3 shown.

[0050] ISI协议在物理上需要4根信号线:同步信号(SYN),通信时钟信号(CLK),下行数据信号(CMD),上行数据信号(DAT)。其中,英文缩写只是为了下文叙述方便所采用的一种简化的表述形式,实际应用中可以采用其它的英文缩写或名称,只要信号线所进行的操作以及实现的功能与本发明实施例相同即可。

[0051] SYN信号为主设备发向从设备的“启动”信号,用以指示一次通信过程的开始;

[0052] CLK信号为通信时钟信号,由主设备提供,其它信号的接收发送都以CLK为参考;

[0053] CMD为主设备发出的下行数据(包括读 / 写命令、地址和写数据);

[0054] DAT为从设备在CLK驱动下,回送给主设备的上行数据。

[0055] 其中,上行数据(从设备到主设备方向)和下行数据(主设备到从设备方向)通过两根数据线分开传送,这样可以大大降低通信过程控制的复杂程度。另外,在CMD中不仅包含所要访问的从设备的寄存器的地址,也包含了从设备的从设备地址;从设备通过判断当前接收到的从设备地址是否为本从设备地址,来决定是否响应主设备当前的命令,这样就不需要对每个从设备单独分配一个片选信号就可以做到对所有从设备的访问,主设备就可以实现访问多个从设备的目的,从而大大提高了主设备管脚资源利用率。本发明实施例中,从设备地址的比特数为5位,允许有32个从设备,但其中包括一个广播地址和一个保留地址,因此从设备数目n的最大允许值为30。

[0056] 同时,系统中增加从设备时也不需要对主设备的硬件设计进行更改,因此大大提高了系统扩展的灵活性。

[0057] 所述ISI协议信号的数据格式如图4所示,其中上部为读过程的数据格式,下部为写过程的数据格式。

[0058] 用于传送下行数据的CMD包含3个部分的内容:

[0059] (1)读 / 写模式标志位:共3比特,用于控制本次通信的读 / 写...

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 a method of serial communication, wherein, master equipment is connected with at least one slave equipment; the master equipment provides a communication clock signal (CLK) to the slave equipment by a clock signal wire, notifies the slave equipment to start reading / writing operation by a synchronous signal (SYN), and transmits a slave equipment address or a register address to the slave equipment by a downstream data signal (CMD); and the master equipment transmits downstream data to the slave equipment by the downstream data signal (CMD), or the slave equipmen transmits upstream data to the master equipment by an upstream data signal (DAT). The method of serial communication comprises a serial communication method of the master equipment, a serial communication method of the slave equipment and a serial communication method for interaction of the master equipment and the slave equipment. The invention also discloses the master equipment and the slave equipment. The proposal of the invention has the advantages of easy realization, pin resource conservation and cost reduction.

Description

technical field [0001] The invention relates to the technical field of electronic circuits, in particular to a serial communication method and device. Background technique [0002] In electronics, the cost of a complete system is often influenced by its internal interconnection bus structure. Generally, interconnection bus structures are divided into parallel and serial types. [0003] A parallel bus or a serial bus generally consists of data lines, address lines, control lines, and the like. Parallel bus design is simple to achieve, easy to achieve a higher communication rate, which has been widely used. However, the parallel communication method requires more signal lines, takes up more chip pin resources and circuit board design space, and generally requires a larger number of devices. Therefore, this method is generally not used in systems with tight pin resources, limited board space, and cost-sensitive systems. Serial bus communication requires only few interconnec...

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): H04L7/00H04L12/40
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