CN105812355B - A kind of LVDS interface communication means - Google Patents

A kind of LVDS interface communication means Download PDF

Info

Publication number
CN105812355B
CN105812355B CN201610124554.1A CN201610124554A CN105812355B CN 105812355 B CN105812355 B CN 105812355B CN 201610124554 A CN201610124554 A CN 201610124554A CN 105812355 B CN105812355 B CN 105812355B
Authority
CN
China
Prior art keywords
training
complete
transferred
code
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610124554.1A
Other languages
Chinese (zh)
Other versions
CN105812355A (en
Inventor
杨涛
邱东伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Polytron Technologies Inc
Original Assignee
Beijing Polytron Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Polytron Technologies Inc filed Critical Beijing Polytron Technologies Inc
Priority to CN201610124554.1A priority Critical patent/CN105812355B/en
Publication of CN105812355A publication Critical patent/CN105812355A/en
Application granted granted Critical
Publication of CN105812355B publication Critical patent/CN105812355B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a kind of LVDS interface communication means, wherein includes: the initialization for carrying out communication both ends;Carry out the training of LVDS route;Transmission flow includes: S1, sending BUSY code;S2, the state for checking itself, as state be it is full, then continue send BUSY code, otherwise transmission FREE code;S3, it receives opposite end BUSY code and then waits, be otherwise transferred to S4;S4, it locally such as is transferred to S3 without message, is otherwise transferred to S5;S5, local message is packaged and is sent, message is transferred to S2 after being sent completely;Receiving process includes: S6, receiving opposite end BUSY code and then waits, is otherwise transferred to S7;S7, the data for checking opposite end, receive opposite end FREE code and are then transferred to S6, be otherwise transferred to S8;S8, such as receive is message, then obtains message length according to encapsulation format, according to the packet storage that message length will receive, and updates itself state.

Description

A kind of LVDS interface communication means
Technical field
The present invention relates to LVDS field of communication technology more particularly to a kind of LVDS interface communication means.
Background technique
Be often used the LVDS interface based on Serders in the interconnection of high speed circuit chip, Serders complete data and String/serial conversion, LVDS complete the physical connection of route.
In being commonly designed, the both ends of LVDS interface are peer-to-peers, from the point of view of one end, have tranmitting data register line, send data Line receives clock line, receives data line, while also needing to be used for the management and data of LVDS interface using at least 3 pairs of signal wires Transmission, the ready RDY line completion notice opposite end 1 couple of # is ready, and the training stage completes DONE signal using 1 couple of #, notifies opposite end Local training is completed, and the message transmissions stage expires FULL signal using 1 couple of #, completes the flow control function of bi-directional data.
Traditional LVDS interface design, in addition to clock, data line additionally uses the management and report of 3 pairs of signal wires completion interfaces Text transmission, wastes valuable chip pin resource, at the same the management function of LVDS interface can not flexible expansion, such as addition resets Function, loop fuction, it is necessary to newly add respective pin, when there are many function, the mode for adding pin can not be received.
Summary of the invention
The purpose of the present invention is to propose to a kind of pins without using outside any clock, data, while LVDS module again can Itself management and message transmissions function are completed well.
A kind of LVDS interface communication means of the present invention, wherein include: the initialization for carrying out communication both ends;Carry out LVDS line Road training;Transmission flow includes: S1, sending BUSY code;S2, the state for checking itself, as state be it is full, then continue send BUSY Otherwise code sends FREE code;S3, it receives opposite end BUSY code and then waits, be otherwise transferred to S4;S4, it is such as locally transferred to without message Otherwise S3 is transferred to S5;S5, local message is packaged and is sent, message is transferred to S2 after being sent completely;Receiving process includes: S6, it receives opposite end BUSY code and then waits, be otherwise transferred to S7;S7, the data for checking opposite end, receive opposite end FREE code and are then transferred to Otherwise S6 is transferred to S8;S8, such as receive is message, then obtains message length according to encapsulation format, will be connect according to message length The packet storage received, and update the state of itself.
One embodiment of LVDS interface communication means according to the present invention, wherein carry out communication both ends initialization include: Select first handshake as both ends in LVDS data line;First end sends square wave, and second end sends complete 1, simultaneously The two starts the detection to opposite end square wave;Second end stops sending complete 1 after detecting the square wave of first end, starts sender Wave, while detecting complete the 1 of first end transmission;First end stops sending square wave after detecting the square wave of second end, starts to send complete 1, while detecting complete the 1 of second end transmission;Second end detect first end complete 1 after stop send square wave, start to send complete 1, The midamble code of first end transmission is detected simultaneously, and second end is shaken hands completion;First end detect second end complete 1 after stop sending it is complete 1, first end is shaken hands completion.
One embodiment of LVDS interface communication means according to the present invention, wherein the training of LVDS route includes: in data line Before training starts, it is complete 1 that all of data lines, which is exported,;First end sends the full 0 that midamble code detects second end transmission simultaneously, the Two ends detection midamble code waits for training;Second end receives midamble code and is trained, and exports full 0 after training, simultaneously Start to detect first end is sent complete 1;First end sends complete 1 after detecting the full 0 that second end is sent, and starts simultaneously at detection training Code waits for training;Second end detect first end send complete 1 after send midamble code, start simultaneously at detection first end send Full 0;Full 0 is sent after first end training, starts simultaneously at the full 0 that detection second end is sent;Second end detects first end Start to send full 0 after the full 0 of transmission, persistently sends the full 0 of multiple clock cycle;Between first end, second end route training from A data wire starts, and after the completion of training, into the training of second data line, judges whether all of data lines training later It finishes, as unfinished, second end turns to lower a data wire and continues to train, and so on, until all of data lines training It finishes, such as completes, then second end enters message transmissions.
LVDS interface communication means of the present invention passes through will be ready, completes signal and is completed using data line, saves exterior tube Foot;By being packaged to transmitting message, transmission in control code band is realized, that is, saves the exterior tube that full flow control signal occupies Foot, while can also flexibly add new control command.
Detailed description of the invention
Fig. 1 show LVDS booting handshake procedure figure;
Fig. 2 show LVDS route training flow chart;
Fig. 3 show the message transmissions flow diagram of LVDS interface.
Specific embodiment
To keep the purpose of the present invention, content and advantage clearer, with reference to the accompanying drawings and examples, to of the invention Specific embodiment is described in further detail.
The both ends of LVDS are designed as master-slave mode by the present invention, and operation is divided into 3 stages, and the first stage is the rank of shaking hands that is switched on Section, second stage are the route training stages, and the phase III is the message transmissions stage.
Fig. 1 is the first stage booting handshake procedure figure of LVDS interface communication means of the present invention, as shown in Figure 1, LVDS Booting handshake procedure includes the following steps:
(1) select first in LVDS data line as main side, from the handshake at end.
(2) main side sends square wave, sends complete 1 from end, while the two starts the detection to opposite end square wave.In order to guarantee to examine Reliability is surveyed, square-wave cycle setting can be 16 clock cycle.
(3) stop sending complete 1 after the square wave that end detects main side, start to send square wave, while detecting main side transmission Complete 1.
(4) main side, which is detected, stops sending square wave after the square wave at end, starts to send complete 1, while detecting from end transmission Complete 1.
(5) stop sending square wave after detecting complete the 1 of main side from end, start to send complete 1, while detecting the instruction of main side transmission Practice code, shakes hands completion from end, into the training stage.
(6) main side, which is detected, stops sending complete 1 behind complete the 1 of end, and main side is shaken hands completion, into the training stage.
Fig. 2 is the second stage route training flow chart of LVDS interface communication means of the present invention, as shown in Fig. 2, LVDS line Road training process includes the following steps:
(1) main side, between end route training since a data wire, training after the completion of, into the second radical evidence The training of line, and so on, until all of data lines training finishes.It is before data line training starts, all of data lines is defeated It is out complete 1.
(2) main side sends midamble code and detects the full 0 sent from end simultaneously, and from end, detection midamble code waits for training.
(3) midamble code is received from termination to be trained, export full 0 after training, start simultaneously at what detection main side was sent Complete 1.
(4) main side, which is detected, sends complete 1 after the full 0 that end is sent, and starts simultaneously at detection midamble code and waits for training.
(5) midamble code is sent after detecting complete the 1 of main side transmission from end, starts simultaneously at the full 0 that detection main side is sent.
(6) full 0 is sent after the training of main side, starts simultaneously at the full 0 that detection is sent from end.
(7) full 0 is sent since detecting after the full 0 that main side is sent end, persistently sends the full 0 of 16 clock cycle, it After judge whether that all of data lines training finishes, no end, turns to down a data wire from end, repeatedly step 2-7;It has been handled that, then Enter the message transmissions stage from end.
(8) main side detects the full 0 sent from end, judges whether that all of data lines training finishes later, no end, main side turns Downward a data wire repeats step 2-7;It has been handled that, then main side enters the message transmissions stage.
Fig. 3 is the phase III message transmissions flow diagram of LVDS interface communication means of the present invention, as shown in figure 3, report Literary transmission flow is divided into 2 parts, transmission flow and reception process.
Before carrying out message transmissions, there is following agreement to message transmissions
Control code is defined, full 0 code is BUSY code, indicates that transmitting terminal cannot receive data;All-ones are FREE code, indicate hair Sending end can receive data;
Define message encapsulation format, message length+message content.
Transmission flow comprises the steps of
(1) BUSY code is sent when initially entering the transmission stage.
(2) it checks BUF (for the receiving message) state for receiving itself, completely continues to send BUSY code, otherwise send FREE Code, is transferred to step 3 later.
(3) it receives opposite end BUSY code then to wait in this step, is otherwise transferred to step 4.
(4) local to be transferred to step 3 without message, otherwise it is transferred to step 5.
(5) local message is packaged, i.e., adds message length information before message, the message after sending encapsulation, Message is transferred to step 2 after being sent completely.
It is comprised the steps of as shown in figure 3, receiving process
(1) it receives opposite end BUSY code then to wait in this step, is otherwise transferred to step 2.
(2) data for checking opposite end, receive opposite end FREE code and are then transferred to step 1, be otherwise transferred to step 3.
(3) what is received is message, obtain message length according to encapsulation format first, will be received according to message length Packet storage to receive BUF.Message is transferred to step 1 after receiving.
While step 3 carries out message reception, check that receiving BUF sky expire state, it is full then reception BUF full scale will is set, It is otherwise provided as non-full.
LVDS interface communication means of the present invention sends square wave by using a data wire in LVDS interface and is opened Machine is shaken hands, that is, improves successful robustness of shaking hands, because will not accidentally generate square wave in start-up phase, while being saved additional Ready signal;It is then saved in the training stage using the interaction that the data line being trained to is trained process and completes signal;It is reporting The literary transmission stage by being packaged to message, defines BUSY code, FREE code saves full flow control signal, while can also be square Just other control commands of addition.
Compared with prior art, LVDS interface communication means of the present invention is by completing ready RDY DONE signal and using number It is completed according to line, saves external terminal;By being packaged to transmitting message, transmission in control code band is realized, that is, is saved The external terminal that full FULL flow control signal occupies, while can also flexibly add new control command.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, without departing from the technical principles of the invention, several improvement and deformations can also be made, these improvement and deformations Also it should be regarded as protection scope of the present invention.

Claims (2)

1. a kind of LVDS interface communication means characterized by comprising
Carry out the initialization at communication both ends;
Carry out the training of LVDS route;
It communicates both ends and carries out data transmission and reception;
Data transmission flow includes:
S1, BUSY code is sent;
S2, the state for checking itself, as state be it is full, then continue send BUSY code, otherwise transmission FREE code;
S3, it receives opposite end BUSY code and then waits, be otherwise transferred to S4;
S4, it locally such as is transferred to S3 without message, is otherwise transferred to S5;
S5, local message is packaged and is sent, message is transferred to S2 after being sent completely;
Data receiver process includes:
S6, it receives opposite end BUSY code and then waits, be otherwise transferred to S7;
S7, the data for checking opposite end, receive opposite end FREE code and are then transferred to S6, be otherwise transferred to S8;
S8, such as receive is message, then obtains message length according to encapsulation format, the message that will be received according to message length Storage, and update the state of itself;
Carry out communication both ends initialization include:
Select first handshake as both ends in LVDS data line;
First end sends square wave, and second end sends complete 1, while the two starts the detection to opposite end square wave;
Second end stops sending complete 1 after detecting the square wave of first end, starts to send square wave, while detecting the complete of first end transmission 1;
First end stops sending square wave after detecting the square wave of second end, starts to send complete 1, while detecting the complete of second end transmission 1;
Second end detect first end complete 1 after stop send square wave, start to send complete 1, at the same detect first end transmission instruction Practice code, second end is shaken hands completion;
First end detect second end complete 1 after stop sending complete 1, first end is shaken hands completion.
2. LVDS interface communication means as described in claim 1, which is characterized in that the training of LVDS route includes:
Before data line training starts, it is complete 1 that all of data lines, which is exported,;
First end sends the full 0 that midamble code detects second end transmission simultaneously, and second end detection midamble code waits for training;
Second end receives midamble code and is trained, and exports full 0 after training, starts simultaneously at detection first end is sent complete 1;
First end sends complete 1 after detecting the full 0 that second end is sent, and starts simultaneously at detection midamble code and waits for training;
Second end detect first end send complete 1 after send midamble code, start simultaneously at detection first end send full 0;
Full 0 is sent after first end training, starts simultaneously at the full 0 that detection second end is sent;
Second end starts to send full 0 after detecting the full 0 that first end is sent, and persistently sends the full 0 of multiple clock cycle;
Route training is since a data wire between first end, second end, after the completion of training, into second data line Training,
Judge whether that all of data lines training finishes later, as unfinished, second end turns to lower a data wire and continues to instruct Practice, and so on, until all of data lines training finishes, such as completion, then second end enters message transmissions.
CN201610124554.1A 2016-03-04 2016-03-04 A kind of LVDS interface communication means Active CN105812355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610124554.1A CN105812355B (en) 2016-03-04 2016-03-04 A kind of LVDS interface communication means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610124554.1A CN105812355B (en) 2016-03-04 2016-03-04 A kind of LVDS interface communication means

Publications (2)

Publication Number Publication Date
CN105812355A CN105812355A (en) 2016-07-27
CN105812355B true CN105812355B (en) 2019-04-12

Family

ID=56467740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610124554.1A Active CN105812355B (en) 2016-03-04 2016-03-04 A kind of LVDS interface communication means

Country Status (1)

Country Link
CN (1) CN105812355B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270694A (en) * 2017-12-04 2018-07-10 山东超越数控电子股份有限公司 A kind of high speed transmission method based on LVDS

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1285104A (en) * 1997-12-19 2001-02-21 艾利森电话股份有限公司 Asynchronous transfer mode switch
CN1835432A (en) * 2005-03-18 2006-09-20 中国科学院自动化研究所 Asymmetric high speed semi-duplex communicating system and communicating method
CN102667742A (en) * 2009-09-30 2012-09-12 微软公司 Radio control board for software-defined radio platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101611921B1 (en) * 2010-05-25 2016-04-14 엘지디스플레이 주식회사 Driving circuit for image display device and method for driving the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1285104A (en) * 1997-12-19 2001-02-21 艾利森电话股份有限公司 Asynchronous transfer mode switch
CN1835432A (en) * 2005-03-18 2006-09-20 中国科学院自动化研究所 Asymmetric high speed semi-duplex communicating system and communicating method
CN102667742A (en) * 2009-09-30 2012-09-12 微软公司 Radio control board for software-defined radio platform

Also Published As

Publication number Publication date
CN105812355A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
US11100036B2 (en) Serial connection between management controller and microcontroller
CN107832250B (en) Master-slave communication time sequence method based on SPI
CN103312636A (en) Information processing apparatus, serial communication system, method of initialization of communication therefor, and serial communication apparatus
CN102231114A (en) System and method for upgrading chip as well as method and device for transmitting upgrade file
KR20130113269A (en) Apparatus and method for connection control of pcie switch
CN108563595B (en) System and method for long-distance transmission of USB data
CN100447771C (en) Universal serial bus transmitter
CN105446837A (en) Method, device and system for detecting whether IIC (inter-integrated circuit) interface device is connected
CN105812355B (en) A kind of LVDS interface communication means
KR940017437A (en) Transmission method, reception method, communication method and two-way bus system
CN116436526B (en) Method, device, system, storage medium and electronic equipment for controlling signal transmission
CN107911288B (en) Train communication network card and train control management system
CN113282532B (en) Communication device, communication method of communication device and electronic equipment
CN110096002A (en) A kind of automatization test system and test method based on CANFD bus
CN108270694A (en) A kind of high speed transmission method based on LVDS
CN110928562B (en) Software upgrading method for Android box
WO2017149768A1 (en) Data transmission system, projector, and data transmission method
CN115280730A (en) Communication device and communication system
US7165127B2 (en) Flow control for interfaces providing retransmission
CN107786309B (en) Chip data transmission method and system free of clock synchronization and electronic equipment
CN112817895A (en) Communication method based on GPIO
JP6407661B2 (en) Communication device
CN116418094B (en) Charger and single bus communication method thereof
CN109474663A (en) A kind of method and intelligent terminal of intelligent terminal and single chip communication
US9606857B2 (en) Electronic control unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100095 Beijing, China, the high road, No. 3, No. 9, building No. 1, layer 101, layer 201,, 2

Applicant after: BEIJING ZUOJIANG TECHNOLOGY CO.,LTD.

Address before: 100036 Beijing, Haidian District, Fu Cheng Road, No. 58 Xinzhou commercial building, No. 511

Applicant before: BEIJING ZUOJIANG TECHNOLOGY CO.,LTD.

Address after: 100036 Beijing, Haidian District, Fu Cheng Road, No. 58 Xinzhou commercial building, No. 511

Applicant after: BEIJING ZUOJIANG TECHNOLOGY CO.,LTD.

Address before: 100036 Beijing, Haidian District, Fu Cheng Road, No. 58 Xinzhou commercial building, No. 511

Applicant before: BEIJING ZUOJIANG TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant