CN102790657A - Simplex asynchronous serial communication encoding and decoding method - Google Patents

Simplex asynchronous serial communication encoding and decoding method Download PDF

Info

Publication number
CN102790657A
CN102790657A CN2012102266208A CN201210226620A CN102790657A CN 102790657 A CN102790657 A CN 102790657A CN 2012102266208 A CN2012102266208 A CN 2012102266208A CN 201210226620 A CN201210226620 A CN 201210226620A CN 102790657 A CN102790657 A CN 102790657A
Authority
CN
China
Prior art keywords
low level
count value
continuous low
count
level count
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.)
Pending
Application number
CN2012102266208A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2012102266208A priority Critical patent/CN102790657A/en
Publication of CN102790657A publication Critical patent/CN102790657A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)

Abstract

The invention discloses a simplex asynchronous serial communication encoding and decoding method, by which simplex serial communication encoding and decoding are completed based on a single signal wire. The method comprises the following steps: counting a continuous low level during the decoding of a decoding module; determining that the current continuous low level count value is a continuous low level count value corresponding to logic 1 and the previous continuous low level count value is a continuous low level count value corresponding to logic 0 if the product of the current continuous low level count value of a signal wire and 1.015625 is less than the previous continuous low level count value; or, determining that the previous continuous low level count value is the continuous low level count value corresponding to logic 1 and the current continuous low level count value is the continuous low level count value corresponding to logic 0 if the product of the previous continuous low level count value and 1.015625 is less than the current continuous low level count value; and otherwise, continuing the comparison to determine the continuous low level count value corresponding to logic 0 and the continuous low level count value corresponding to logic 1. By adopting the method, the encoding and decoding are low in cost and easy to implement.

Description

A kind of single worker's asynchronous serial communication decoding method
Technical field
The present invention relates to communication field, especially a kind of single worker's asynchronous serial communication decoding method.
Background technology
The communication modes of electronic circuit can be divided into parallel communication and serial communication, and the advantage of parallel communication is that communication speed is fast, but that shortcoming is a holding wire is more; The advantage of serial communication is that holding wire is few, realizes long-distance transmissions easily.
Generally in the low and middle-end electronic product, communication interface only needs the one-way data transmission, and is not high to the transfer of data rate request, but needs interface simple as far as possible, so need simple, the easy realization of agreement, the less serial communication decoding method of Seize ACK message line.
Present I 2Serial communications such as C, SPI, RS-232 obtain extensive use because of advantages such as pin are few.I 2C, RS-232 communication coding more complicated realize that cost is higher; Spi bus is made up of three signal line, comprises serial clock (SCLK), serial data output (SD0), serial data input (SDI), and iic bus needs two lines (SCL, SDA) to form.
Summary of the invention
Defectives such as, realization cost higher for the encoding and decoding cost that overcomes the existing means of communication is higher, the present invention provides a kind of encoding and decoding cost low, easy realization, only needs a holding wire just can accomplish the decoding method of single-signal-line list worker asynchronous serial communication.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of single worker's asynchronous serial communication decoding method, said method adopts and accomplishes the encoding and decoding of single worker's asynchronous serial communication based on single holding wire, and is specific as follows:
1. definition time T 0And time T 1, T 0Greater than 1.015625 * T 1
2. logical zero is by less than time 1.0078125 * T 0And greater than time T 0The indication of continuous low level, logical one is by less than time T 1And greater than time 0.9921875 * T 1The indication of continuous low level;
3. signal indicates one digit number according to end-of-encode by low level to the rising edge of high level;
4. the default setting of definition signal line is a high level, and the index signal line is in idle state;
Count continuous low level, current continuous low level count value Count on the holding wire during decoder module decoding CurrTake advantage of 1.015625 value less than last position low level count value Count continuously Prev, then confirm current continuous low level count value Count CurrBe the corresponding continuous low level count value Count of logical one 1, last position is low level count value Count continuously PrevBe the corresponding continuous low level count value Count of logical zero 0Or current continuous low level count value Count CurrGreater than the continuous low level count value Count in last position PrevTake advantage of 1.015625 value, then confirm last position low level count value Count continuously PrevBe the corresponding continuous low level count value Count of logical one 1, current continuous low level count value Count CurrBe the corresponding continuous low level count value Count of logical zero 0Otherwise continue relatively continuous low level count value Count to confirm that logical zero is corresponding 0The continuous low level count value Count corresponding with logical one 1
Further, during decoding, the continuous low level count value Count on the holding wire is greater than Count 1Take advantage of 1.015625, confirm that then correspondence is encoded to logical zero, otherwise be logical one; Or the continuous low level count value Count on the holding wire takes advantage of 1.015625 less than Count 0Confirm that then correspondence is encoded to logical one, otherwise be logical zero.
Beneficial effect of the present invention mainly shows: 1. coding can realize that the coding module circuit is simple through program control; 2. decoding only needs counting, displacement, plus-minus, comparison operation, and decoder module is simple.
Embodiment
Further describe in the face of the present invention down.
A kind of single worker's asynchronous serial communication decoding method is accomplished the encoding and decoding of single worker's asynchronous serial communication based on single holding wire, and is specific as follows:
1. definition time T 0And time T 1, T 0Greater than 1.015625 * T 1
2. logical zero is by less than time 1.0078125 * T 0And greater than time T 0The indication of continuous low level, logical one is by less than time T 1And greater than time 0.9921875 * T 1The continuous low level indication of time;
3. signal indicates one digit number according to end-of-encode by low level to the rising edge of high level;
4. the default setting of definition signal line is a high level, and the index signal line is in idle state;
Count continuous low level, current continuous low level count value Count on the holding wire during decoder module decoding CurrTake advantage of 1.015625 value less than last position low level count value Count continuously Prev, then confirm current continuous low level count value Count CurrBe the corresponding continuous low level count value Count of logical one 1, last position is low level count value Count continuously PrevBe the corresponding continuous low level count value Count of logical zero 0Or current continuous low level count value Count CurrGreater than the continuous low level count value Count in last position PrevTake advantage of 1.015625 value, then confirm last position low level count value Count continuously PrevBe the corresponding continuous low level count value Count of logical one 1, current continuous low level count value Count CurrBe the corresponding continuous low level count value Count of logical zero 0Otherwise continue relatively continuous low level count value Count to confirm that logical zero is corresponding 0The continuous low level count value Count corresponding with logical one 1
During the decoder module decoding, the continuous low level count value Count on the holding wire is greater than Count 1Take advantage of 1.015625, confirm that then correspondence is encoded to logical zero, otherwise be logical one; Or the continuous low level count value Count on the holding wire takes advantage of 1.015625 less than Count 0Confirm that then correspondence is encoded to logical one, otherwise be logical zero.

Claims (2)

1. single worker's asynchronous serial communication decoding method, it is characterized in that: said method can be accomplished the encoding and decoding of single worker's asynchronous serial communication based on single holding wire, and is specific as follows:
1. definition time T 0And time T 1, T 0Greater than 1.015625 * T 1
2. logical zero is by less than time 1.0078125 * T 0And greater than time T 0The indication of continuous low level, logical one is by less than time T 1And greater than time 0.9921875 * T 1The indication of continuous low level;
3. signal indicates one digit number according to end-of-encode by low level to the rising edge of high level;
4. the default setting of definition signal line is a high level, and the index signal line is in idle state;
Count continuous low level, current continuous low level count value Count on the holding wire during decoder module decoding CurrTake advantage of 1.015625 value less than last position low level count value Count continuously Prev, then confirm current continuous low level count value Count CurrBe the corresponding continuous low level count value Count of logical one 1, last position is low level count value Count continuously PrevBe the corresponding continuous low level count value Count of logical zero 0Or current continuous low level count value Count CurrGreater than the continuous low level count value Count in last position PrevTake advantage of 1.015625 value, then confirm last position low level count value Count continuously PrevBe the corresponding continuous low level count value Count of logical one 1, current continuous low level count value Count CurrBe the corresponding continuous low level count value Count of logical zero 0Otherwise continue relatively continuous low level count value Count to confirm that logical zero is corresponding 0The continuous low level count value Count corresponding with logical one 1
2. single worker's asynchronous serial communication decoding method as claimed in claim 1 is characterized in that: during decoding, the continuous low level count value Count on the holding wire is greater than Count 1Take advantage of 1.015625, confirm that then correspondence is encoded to logical zero, otherwise be logical one; Or the continuous low level count value Count on the holding wire takes advantage of 1.015625 less than Count 0Confirm that then correspondence is encoded to logical one, otherwise be logical zero.
CN2012102266208A 2012-06-29 2012-06-29 Simplex asynchronous serial communication encoding and decoding method Pending CN102790657A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102266208A CN102790657A (en) 2012-06-29 2012-06-29 Simplex asynchronous serial communication encoding and decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102266208A CN102790657A (en) 2012-06-29 2012-06-29 Simplex asynchronous serial communication encoding and decoding method

Publications (1)

Publication Number Publication Date
CN102790657A true CN102790657A (en) 2012-11-21

Family

ID=47155965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102266208A Pending CN102790657A (en) 2012-06-29 2012-06-29 Simplex asynchronous serial communication encoding and decoding method

Country Status (1)

Country Link
CN (1) CN102790657A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970300A (en) * 2012-11-29 2013-03-13 苏州瀚瑞微电子有限公司 Asynchronous communication protocol

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1440161A (en) * 2002-02-21 2003-09-03 黄庆文 Open single-wire asynchronous serial communication bus
CN1449168A (en) * 2003-05-08 2003-10-15 尹启凤 Single line serial interface protocol
CN2710047Y (en) * 2004-07-07 2005-07-13 袁友伟 Universal serial communication controller
DE102005042493A1 (en) * 2005-09-07 2007-03-08 Robert Bosch Gmbh Control unit with computing device and I / O module that communicate with each other via a serial multi-wire bus
CN101431390A (en) * 2008-11-19 2009-05-13 北京巨数数字技术开发有限公司 Circuit and method for data serial transmission

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1440161A (en) * 2002-02-21 2003-09-03 黄庆文 Open single-wire asynchronous serial communication bus
CN1449168A (en) * 2003-05-08 2003-10-15 尹启凤 Single line serial interface protocol
CN2710047Y (en) * 2004-07-07 2005-07-13 袁友伟 Universal serial communication controller
DE102005042493A1 (en) * 2005-09-07 2007-03-08 Robert Bosch Gmbh Control unit with computing device and I / O module that communicate with each other via a serial multi-wire bus
CN101431390A (en) * 2008-11-19 2009-05-13 北京巨数数字技术开发有限公司 Circuit and method for data serial transmission

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970300A (en) * 2012-11-29 2013-03-13 苏州瀚瑞微电子有限公司 Asynchronous communication protocol
CN102970300B (en) * 2012-11-29 2016-06-22 苏州瀚瑞微电子有限公司 A kind of asynchronous communication method

Similar Documents

Publication Publication Date Title
KR101800157B1 (en) Multi-wire single-ended push-pull link with data symbol transition based clocking
US10216690B2 (en) Single-wire interface bus transceiver system based on I2C-bus, and associated method for communication of single-wire interface bus
CN101339738B (en) Single line cascade chip for lamp point display
CN203120211U (en) Data conversion device of flexible LED driver and dimming system
CN104579583A (en) Improved method for 8b/10b coding mode
US20190266122A1 (en) Multilane heterogenuous serial bus
CN102739364A (en) Simplex asynchronous serial communication encoding and decoding method
CN106055512A (en) MIPI (Mobile Industry Processor Interface) RAW10 data reorganization coding and reading structure and method
CN104239247B (en) SPI (Serial Peripheral Interface)-based register fast read-write method
CN102790657A (en) Simplex asynchronous serial communication encoding and decoding method
US8837628B2 (en) Method of transmission through single wire
CN102780541A (en) Single signal line simplex asynchronous serial communication encoding and decoding method
CN103166732B (en) The data transmission method that clock pulse embeds and packet data coding/decoding method
CN110209613A (en) A kind of NVMe SSD reading speed and optical fiber interface speed adaptive matching process
CN201233711Y (en) Single line cascade chip for lamp point display
CN102970300A (en) Asynchronous communication protocol
CN102799552A (en) Simplex asynchronous serial communication encoding/decoding method of single signal wire
CN104144137B (en) A kind of high speed LVDS serial synchronous communication controllers
CN101442380A (en) Method and apparatus for testing error rate based on high speed serial interface encoded mode
CN103605626B (en) A kind of Single wire Serial Bus agreement and change-over circuit
CN103442482B (en) LED lighting pulse width modulation drive circuit
CN103117804B (en) A kind of multichannel communication method between power cable checkout gear and harvester
CN101394703B (en) Time clock recovery system and method
CN202713523U (en) Self-adaptive resolution high-definition video and audio encoding and decoding device
JP2008283262A (en) Transmitter, receiver, transmitting method, receiving method, fixed-length serial burst data transfer system, semiconductor device, and hybrid semiconductor device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121121