CN101155010B - High-reliability serial transmission processing method and device for programmable hardware - Google Patents

High-reliability serial transmission processing method and device for programmable hardware Download PDF

Info

Publication number
CN101155010B
CN101155010B CN200710077258A CN200710077258A CN101155010B CN 101155010 B CN101155010 B CN 101155010B CN 200710077258 A CN200710077258 A CN 200710077258A CN 200710077258 A CN200710077258 A CN 200710077258A CN 101155010 B CN101155010 B CN 101155010B
Authority
CN
China
Prior art keywords
receiving
receiving port
control module
receive
determined number
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.)
Expired - Fee Related
Application number
CN200710077258A
Other languages
Chinese (zh)
Other versions
CN101155010A (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.)
Invt Power Electronics Suzhou Co ltd
Original Assignee
Shenzhen Invt Electric Co Ltd
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 Shenzhen Invt Electric Co Ltd filed Critical Shenzhen Invt Electric Co Ltd
Priority to CN200710077258A priority Critical patent/CN101155010B/en
Publication of CN101155010A publication Critical patent/CN101155010A/en
Application granted granted Critical
Publication of CN101155010B publication Critical patent/CN101155010B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)
  • Optical Communication System (AREA)

Abstract

The present invention provides a high-reliability serial transmission processing method which is suitable for the programmable hardware and the device, which includes a receiving port, a receiving control module and a controlled receiving module, the receiving control module scans the prescribed number n of the receiving port in each receiving period and defines the interval between each scanning as one scanning period; judging whether the value of current receiving port has changed after the completion of each scanning; and the receiving module receives one bit information from the receiving port when the triggering signal of the receiving control module is received. The invention can settle the problem of wrongly receiving caused by the disaccording of the crystal vibration between the receiving and transmitting equipment; can settle the problem of wave distortion at the receiving end caused by the transmission medium and the transmission circuit and increases the reliability of the communication.

Description

Be adapted to the serial transmission processing method and the device of the high reliability of programmable hardware
Technical field
The present invention relates between two equipment by medium such as optical fiber etc., the field of transmitting with the method for serial communication, mainly be that proposition is a kind of by programmable hardware circuit, as CPLD, FPGA etc., the phase deviation that the crystal oscillator difference causes between the self adaptation transceiver, the influence that wave distortion brought that causes by communication media, and reduce the communication receiving handling method that communication transceiving circuit is required.
Background technology
Technology of serial communication is simple because of its equipment, the convenience of realization, and obtained using very widely at industrial circle.A branched optical cable communication in its field is also because its strong interference immunity, and long transmission distance and being specially adapted to has the place of strong electromagnetic and uses.But there are two problems in existing technology of serial communication: first problem is, transceiver is because use different clock crystal oscillators, the problem of the transmitting-receiving bit phase shift that causes owing to the existence of crystal oscillator circular error; Suppose that transmitting apparatus A is slower than the clock crystal oscillator of receiving equipment B, and transmitting apparatus A, receiving equipment B send out, receive with identical baud rate; Then As time goes on, the transmission point of transmitting apparatus A moves after can be slowly with respect to the acceptance point of receiving equipment B.After the sufficiently long time of process, the transmission point of transmitting apparatus A can overlap with the acceptance point of receiving equipment B, the next bit that transmitting apparatus A sends, the acceptance point of twice experience of meeting receiving equipment B.In like manner, when transmitting apparatus A is faster than receiving equipment B crystal oscillator, can cause bit that transmitting apparatus A sends on receiving equipment B, not have an acceptance point at certain time point.Consider the foundation of accepting data and the requirement of retention time, this tends to cause mistake to receive.If exactly this problem occurs in the transmission data, then this time transmission will produce wrong result.Second problem is, for some communication media (such as optical fiber), because the problem of the duty ratio of the high-low level that the characteristic of medium itself causes distortion, referring to Fig. 1, such as, for 1521/2521, if use its preferred circuit to send 0101 with the interval of 200ns, then the low level time of receiving terminal accounts for 230ns, and high level time only accounts for 170ns.Suppose that the duty ratio distortion is 30ns, transmitting apparatus A sends 0101 ... if receiving equipment B begins within the 30ns to receive after the transmission point of transmitting apparatus A, then in receiving circuit was the low level cycle, receiving equipment B can experience two acceptance points; And in receiving circuit is the cycle of high level, acceptance point also wait less than.Thereby what cause that in fact receiving circuit receive is 0000 ... (as Fig. 2).Problem for this duty ratio distortion is relevant with the characteristic of transmission circuit parameter and transmission medium, and different circuit parameters is produced different distortion effects.The value that acceptance point 1,2,3 receives among Fig. 2 is always 0.
In the serial communication, having no idea to evade for first problem at present, can only be by the verification to received content wrong content to be weeded out; If but so exactly transmit significant data in the moment that makes mistake, then reliability, the efficient of whole communication are brought very big influence.
For second problem, then often need to increase the result that some analog circuits are revised transmission, receiving terminal, the duty ratio that guarantees receiving terminal is near 1.But because there is error in the parameter of analog circuit, and the characteristic of duty ratio and transmission medium (such as the length of optical fiber, technology etc.) is relevant, thereby the revision precision is not high; Guarantee certain transmission precision toward contact the mode of need assisting to reduce transmission speed.
Summary of the invention
The objective of the invention is always to have the characteristics of certain intervals at the transmission of serial communication, provide a kind of can the self adaptation transmitting-receiving two-end the clock phase shift and the duty ratio distortion that can tolerate serial communication, be applicable to the serial transmission processing method of programmable logic device.
Technical scheme of the present invention is: a kind of serial transmission processing method that is adapted to the high reliability of programmable hardware is provided, and it comprises receiving port, receives control module, controlled receiver module, and the step of its method for transmission processing is as follows:
1. receive control module at each receiving cycle interscan receiving port pre-determined number n (n 〉=4), define the scan period that is spaced apart of each scanning;
2. after finishing, each scanning judges whether the value of current receiving port variation has taken place:
If a) variation has taken place in the value of receiving port, then receive control module postpone set point number m (scan period of m<n/2), trigger controlled receiver module and receive information;
If a) receiving port receives to move apart from the last time and continued a pre-determined number n scan period and not variation, then trigger controlled receiver module and begin to receive;
3. whenever having received the triggering signal that receives control module, receiver module is collected the information of a bit from receiving port.
The present invention also provides a kind of device of realizing said method, comprises receiving port, receives control module, controlled receiver module; Wherein receiving port is the inlet of communication signal, and it is directly connected to peripheral communication receiving circuit; Receive the signal (at a receiving cycle interscan pre-determined number n) that control module regularly repeatedly scans receiving port, the triggering signal that receives according to the change dynamics adjustment of optical fiber receiving port signal; Controlled receiver module carries out concrete reception action by the triggering signal control that receives control module.
The present invention has following technique effect:
1. dynamically adjust the acceptance point of receiving terminal, solved the problem of the receipts of misconnection once in a while that cause because of the inconsistent problem of receiving and sending equipment crystal oscillator in the serial communication.
2. use the method that just receives after a period of stabilisation at receiving port, solved because the problem of the receiving terminal wave distortion that transmission medium and transmission circuit cause for the influence of communication reliability.
3. reduced requirement, improved reliability simultaneously for circuit.For the situation of frequent transmitting-receiving, in theory can be so that miscommunication is reduced to 0.
4. realize simply being applicable to programmable hardware circuit such as FPGA/CPLD, under the situation that does not increase hardware cost, realize the high reliability serial communication of fair speed.
5. this method and apparatus is specially adapted to the frequent occasion use that sends.
Description of drawings
Fig. 1 is the duty ratio distortion schematic diagram of Optical Fiber Transmission;
Fig. 2 is because the reception mistake schematic diagram that wave distortion causes;
Fig. 3 is an apparatus structure schematic diagram of the present invention;
Fig. 4 is the schematic flow sheet of processing method of the present invention.
Embodiment
See also Fig. 3, Fig. 3 is an apparatus structure schematic diagram of the present invention.A kind of communicator comprises receiving port, receives control module, controlled receiver module; Wherein receiving port is the inlet of communication signal, and it is directly connected to peripheral communication receiving circuit; Receive the signal that control module regularly repeatedly scans receiving port, as at a receiving cycle interscan pre-determined number n, the triggering signal that receives according to the change dynamics adjustment of optical fiber receiving port signal; Controlled receiver module carries out concrete reception action by the triggering signal control that receives control module.
See also Fig. 4, Fig. 4 is the schematic flow sheet of processing method of the present invention.It is a kind of serial transmission processing method that is adapted to the high reliability of programmable hardware, and it comprises receiving port, receives control module, controlled receiver module (referring to Fig. 3), and the step of its method for transmission processing is as follows:
1, receives control module at each receiving cycle interscan receiving port pre-determined number n (n 〉=4), define the scan period that is spaced apart of each scanning;
2, judge whether the value of current receiving port variation has taken place after each scanning is finished:
If a) variation has taken place in the value of receiving port, then receive control module postpone set point number m (scan period of m<n/2), trigger controlled receiver module and receive information;
B) action has continued a pre-determined number n scan period and not variation if receiving port received apart from the last time, then triggers controlled receiver module and begins to receive;
3, whenever having received the triggering signal that receives control module, receiver module is collected the information of a bit from receiving port.
Be meant m the cycle or the constant duration of receiving port after the value that satisfies receiving port changes of the Rule of judgment that should receive among Fig. 4 reach under the condition of scan period pre-determined number n outside, then receive control module triggering reception and operate.
Illustrate below in conjunction with example and to adopt device of the present invention and method of the present invention are how to solve two problems in the background technology particularly.For first problem, i.e. different the and clock phase shift problem that causes of Transmitting and Receiving End crystal oscillator: establish,
1. each communication frames of serial communication all has start bit and stop bits, the value of start bit different with the value of stop bits (in general, the value of start bit is 1, and the value of stop bits is 0).
2. every frame of hypothesis serial communication length of not including start bit and stop bits accounts for a bit, the time interval maximum between per two frames is b bit, then maximum duration of not changing of receiving port is the maximum of a+1 bit and b+1 bit in theory, is made as c bit.
3. therefore, receive maximum lasting c of control module and send all after dates, adjust once.
4. for the crystal oscillator of receiving and dispatching, (n sends the scanning times in cycle for each as long as guarantee the deviation in the every c of a crystal oscillator transmission cycle of sending and receiving end to be not more than m/n in theory, m is for find to change to the interval of the scan period that receives next time) the individual transmission cycle, can guarantee that then the deviation of the crystal oscillator of sending and receiving end can not cause misconnection to receive.
For second problem, the i.e. problem of the distortion of the waveform duty cycle that causes because of media problem: suppose set point number m=1, predetermined scanning times n=4, the transmission cycle with 200ns sends 010101 ... the duration of receiving terminal 1 is 230ns, and 0 duration is 170ns, then:
1. if scanning time, receiving port exactly becomes 1 from 0, suppose that time point at this moment is 0.
A) then 50ns begins to receive constantly, and the value that receive this moment is 1.
B) 50ns backward constantly, every the 50ns run-down, scan 3 times after (moment is 200ns at this moment), become 0 at the moment of 230ns receiving terminal
C) in the moment of 250ns, receive the 4th scanning in back, find that variation has taken place receiving port, thereby receive that the value of receiving is 0 since 300ns.
D) backward at 300ns, every the 50ns run-down, then scan twice after, get back to the situation of a step.Thereby and the like, the result of reception is 10101
2. if scanning time, receiving port exactly becomes 0 from 1, and then the time point of hypothesis this moment is 0.
A) begin constantly to receive at 50ns, the value that receive this moment is 0.
B) 50ns has scanned (moment of this moment is 150ns) after 2 times constantly backward every the 50ns run-down, becomes 1 at the moment of 170ns receiving terminal.
C) constantly, the scanning for the third time after receiving finds that variation has taken place receiving port, thereby begins constantly to receive at 250ns, and the value of receiving is 1 at 200ns.
D) backward, change up to 400ns receiving terminal eloquence, be 3 scan periods this moment at interval, returns the situation of a step from 250ns, thus circulation successively, and the result of reception is 010101
3., suppose that time point at this moment is 0 if after scanning had just been finished, receiving port became 1 from 0:
A) begin scanning in the moment of 50ns, find that receiving port changes, then receive operation in the moment of 100ns, reception result is 1.
B) behind 100ns every the 50ns run-down, scanned 2 times after (this moment constantly be 200ns), 230ns constantly port become 0
C) remaining disposition is similar with 1.c.Thereby reception result remains 101010.
If just scan finish after, receiving port becomes 0 from 1, supposes that the time point of this moment is 0
A) begin scanning in the moment of 50ns, find that receiving port changes, then receive operation in the moment of 100ns, reception result is 0.
B) behind 100ns every the 50ns run-down, scanned 1 time after (this moment constantly be 150ns), 170ns constantly port become 1.
C) remaining disposition, similar with 2.c, thus the result who receives is 010101
According to the analysis thinking of front, be not difficult to analyze, in theory at set point number m=1, under the situation of predetermined scanning times n=4, can accept the situation that the duty ratio distortion reached for 1/4 transmitting-receiving cycle.Consider the variation of circuit parameter in the practical application, the interference of the foundation of circuit and the situations such as restriction of retention time, the circuit that the duty ratio distortion reaches about 20% can correctly receive fully.
Above-mentioned example is at setting set point number m=1, the analysis under the situation of predetermined scanning times n=4, and obviously, at set point number m, when predetermined scanning times n was other parameter, the present invention can realize that also at this moment the concrete analysis process is not given unnecessary details.

Claims (2)

1. a serial transmission processing method that is adapted to the high reliability of programmable hardware is characterized in that it comprises receiving port, receives control module, controlled receiver module, and the step of its method for transmission processing is as follows:
(1), receive control module at each receiving cycle interscan receiving port pre-determined number n, described pre-determined number n is more than or equal to 4, the each scanning of definition be spaced apart a scan period;
(2), judge whether the value of current receiving port variation has taken place after each scanning is finished:
If a) variation has taken place in the value of receiving port, then receive control module and postpone m scan period of set point number, described set point number m triggers controlled receiver module and receives information less than pre-determined number n;
B) action has continued a pre-determined number n scan period and not variation if receiving port received apart from the last time, then triggers controlled receiver module and begins to receive;
(3), whenever having received the triggering signal that receives control module, receiver module collects the information of a bit from receiving port.
2. a device of realizing the described method of claim 1 comprises receiving port, receives control module, controlled receiver module; Wherein receiving port is the inlet of communication signal, and it is directly connected to peripheral communication receiving circuit; Receive the signal that control module regularly repeatedly scans receiving port, at a receiving cycle interscan pre-determined number n, described pre-determined number n is more than or equal to 4, the triggering signal that receives according to the change dynamics adjustment of receiving port signal; Controlled receiver module carries out concrete reception action by the triggering signal control that receives control module.
CN200710077258A 2007-09-24 2007-09-24 High-reliability serial transmission processing method and device for programmable hardware Expired - Fee Related CN101155010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710077258A CN101155010B (en) 2007-09-24 2007-09-24 High-reliability serial transmission processing method and device for programmable hardware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710077258A CN101155010B (en) 2007-09-24 2007-09-24 High-reliability serial transmission processing method and device for programmable hardware

Publications (2)

Publication Number Publication Date
CN101155010A CN101155010A (en) 2008-04-02
CN101155010B true CN101155010B (en) 2010-05-26

Family

ID=39256474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710077258A Expired - Fee Related CN101155010B (en) 2007-09-24 2007-09-24 High-reliability serial transmission processing method and device for programmable hardware

Country Status (1)

Country Link
CN (1) CN101155010B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1304235A (en) * 2000-01-11 2001-07-18 神达电脑股份有限公司 Detection method of synchronous serial-data transmission
CN1578209A (en) * 2003-06-27 2005-02-09 松下电器产业株式会社 Asynchronous communication circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1304235A (en) * 2000-01-11 2001-07-18 神达电脑股份有限公司 Detection method of synchronous serial-data transmission
CN1578209A (en) * 2003-06-27 2005-02-09 松下电器产业株式会社 Asynchronous communication circuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2004-320612A 2004.11.11

Also Published As

Publication number Publication date
CN101155010A (en) 2008-04-02

Similar Documents

Publication Publication Date Title
EP2972928B1 (en) Multi-wire single-ended push-pull link with data symbol transition based clocking
US10521042B2 (en) Touch display panel and method for driving the touch display panel and device for driving the touch display panel
US10547437B2 (en) Synchronization signal transmitting device, method thereof and power electronic apparatus having the device
CN101646986B (en) USB based synchronization and timing system
US7831855B2 (en) System and method for generating a reset signal for synchronization of a signal
CN102592566B (en) Data driving device, corresponding operation method and corresponding display
EP3284229B1 (en) Clock and data recovery for pulse based multi-wire link
CN101604182A (en) Automatically adjust the method and the clock frequency regulating circuit of clock frequency
CN105719587A (en) Liquid crystal display panel detecting system and method
US20220113338A1 (en) Zero crossing point signal output and power line data transmitting method and device
CN101155010B (en) High-reliability serial transmission processing method and device for programmable hardware
CN101178620B (en) Communicating system, transponder, and communicating method
CN101351966A (en) Serial data communication system and method
CN105390091A (en) LED display enabling signal control system, LED display system and display driving method
CN104253621B (en) Data receiver and data receiving method
CN105306049A (en) Cdr circuit and semiconductor device
CN102034409B (en) Method for transmitting data and display using same
CN102054418A (en) Data driver and method for determining optimal offset of same
CN109167736B (en) High-uniformity data packet sending method and device
CN103366665A (en) Level shift circuit and driving method thereof
CN105678479A (en) Intelligent service evaluation system, evaluation terminal and evaluation method
CN102833064A (en) Clock recovery method for microwave transmission and device
CN101800916A (en) Configuration method of optical port and device
US8031822B2 (en) Communication apparatus
CN103677079A (en) Frequency calibration device and method for programmable oscillator

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Li Zhongfeng

Inventor after: Xu Tiezhu

Inventor after: Zhang Kemeng

Inventor before: Li Zhongfeng

Inventor before: Xu Tiezhu

Inventor before: Zhang Kemeng

TR01 Transfer of patent right

Effective date of registration: 20190425

Address after: 215000 No. 1 Kunlunshan Road, Science and Technology City, Suzhou High-tech Zone, Jiangsu Province

Patentee after: INVT POWER ELECTRONICS (SUZHOU) Co.,Ltd.

Address before: 518000 5-storey M-6 Building, Zhongshan High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN INVT ELECTRIC Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100526

Termination date: 20210924

CF01 Termination of patent right due to non-payment of annual fee