CN111404569B - Efficient single-wire communication method between single-chip microcomputers - Google Patents

Efficient single-wire communication method between single-chip microcomputers Download PDF

Info

Publication number
CN111404569B
CN111404569B CN202010152869.3A CN202010152869A CN111404569B CN 111404569 B CN111404569 B CN 111404569B CN 202010152869 A CN202010152869 A CN 202010152869A CN 111404569 B CN111404569 B CN 111404569B
Authority
CN
China
Prior art keywords
voltage
voltage value
data
sending
receiving end
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
CN202010152869.3A
Other languages
Chinese (zh)
Other versions
CN111404569A (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.)
Shenzhen Inteltron Intelligent Science & Technology Co ltd
Original Assignee
Shenzhen Inteltron Intelligent Science & Technology 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 Inteltron Intelligent Science & Technology Co ltd filed Critical Shenzhen Inteltron Intelligent Science & Technology Co ltd
Priority to CN202010152869.3A priority Critical patent/CN111404569B/en
Publication of CN111404569A publication Critical patent/CN111404569A/en
Application granted granted Critical
Publication of CN111404569B publication Critical patent/CN111404569B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Abstract

The invention relates to the field of single-chip microcomputer communication, and provides an efficient single-wire communication party between single-chip microcomputersThe method is used for improving the communication efficiency between the single-chip microcomputers. The invention provides a high-efficiency single-wire communication method between single-chip microcomputers, which comprises a sending end, wherein the method for sending data by the sending end comprises the following steps: s11, the sending end enables the bus voltage VCCA part of [ V ]A,VB]Is divided into at least n gradients, V is more than or equal to 0A<VB≤VCCConverting binary data to be transmitted into n-system, n is positive integer and n is equal to [3,4]]∪[9,16]∪(128,256]Any voltage value in the first n gradient voltage ranges represents a value in n-system, wherein the voltage value Vi of the ith gradient is in the range of [ (V)B‑VA)/n]×i<Vi<[(VB‑VA)/n]X (i +1), i is an integer, i belongs to [0, n-1 ]](ii) a And S21, the sending end outputs voltage outwards. The data sending efficiency can be greatly improved, and the efficiency of transmitting the data of one byte can be improved by 2, 4 and 8 times.

Description

Efficient single-wire communication method between single-chip microcomputers
Technical Field
The invention relates to the field of single-chip microcomputer communication, in particular to a high-efficiency single-wire communication method between single-chip microcomputers.
Background
In the single-wire communication mechanism between the current single-chip microcomputers, a bit transmission mechanism is mostly adopted, a pulse width method is commonly used, two different pulse widths are used for representing 0 and 1, then 8 times of transmission are carried out, and finally one byte is combined.
If the information of one BYTE is transmitted between the single-chip microcomputers 1 to 2 times, the whole communication efficiency is improved by at least 4 times or 8 times.
Disclosure of Invention
The invention provides a high-efficiency single-wire communication method between single-chip microcomputers, aiming at improving the communication efficiency between the single-chip microcomputers.
In order to solve the technical problems, the technical scheme provided by the invention is as follows:
a high-efficiency single-wire communication method between single-chip microcomputers comprises a sending end, and the method for sending data by the sending end comprises the following steps:
s11, the sending end enables the bus voltage VCCA part of [ V ]A,VB]Is divided into at least n gradients, V is more than or equal to 0A<VB≤VCCConverting binary data to be transmitted into n-system, n is positive integer and n is equal to [3,4]]∪[9,16]∪(128,256]Any voltage value in the first n gradient voltage ranges represents a value in n-system, wherein the voltage value Vi of the ith gradient is in the range of [ (V)B-VA)/n]×i<Vi< [(VB-VA)/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
And S21, the sending end outputs voltage outwards.
Dividing a part of the bus voltage into n gradients, wherein any voltage value in each voltage gradient range corresponds to an n-system value; the data of one byte includes 8-bit binary data, data of one ternary number or four-decimal number can be converted into two-bit binary data, a nine-decimal number, a decimal number, … …, hexadecimal number can be converted into four-bit binary data, and a one hundred twenty eight-decimal number, a one hundred twenty nine-decimal number, … …, two hundred fifty-hexadecimal number can be converted into eight-bit binary data.
That is, when n belongs to [3,4], sending 4 times of data can transfer one byte of data; when n belongs to [9,16], sending 2 times of data can transfer one byte of data; n ∈ (128, 256), sending data once can deliver one byte of data.
The data sending efficiency can be greatly improved, and the efficiency of transmitting the data of one byte can be improved by 2, 4 and 8 times.
Preferably, after the sending end finishes sending data once or before sending data once, sending a separation code, wherein a voltage value V of the separation coden+1∈[0,VA]Or Vn+1∈[VB,VCC]. When data is transmitted, data is often transmitted for many times, different data need to be separated to avoid confusion, and voltage values which do not belong to the voltage gradient range can be sent outwards to separate the data.
Preferably, the voltage V output from the transmitting terminal isioutIs the interval ([ (V)B-VA)/n]×i,[(VB-VA)/n]X (i + 1)). Sending intermediate values may improve the fault tolerance rate.
Preferably, the transmitting end outputs the voltage to the AD module. Some single-chip microcomputers do not have a DAC module, and need to transmit data through an external AD module.
Preferably, the sending end outputs the voltage in a PWM output mode, and then converts the voltage into a dc voltage through an RC circuit and transmits the dc voltage to the AD module.
A high-efficiency single-wire communication method between single-chip microcomputers comprises a receiving end, wherein the method for receiving data by the receiving end is as follows:
s12, the receiving end reads a voltage value Vj
S22, the receiving end reads the voltage value VjJudging the voltage range of the voltage value according to the voltage value VjThe voltage range determines the voltage value VjAnd converting the n-system data into a binary system according to the corresponding n-system data. The receiving end converts the voltage value into corresponding n-system data.
Preferably, the receiving endThe voltage value read in the process of reading the voltage value is large [0, V ]A]Or e [ V ]B,VCC]Then reception of the next data is started.
Preferably, the receiving end reads the content of the AD module.
A high-efficiency single-wire communication method between single-chip microcomputers comprises a sending end and a receiving end, and comprises the following steps:
s13, the sending end enables the bus voltage VCCA part of [ V ]A,VB]Is divided into at least n gradients, V is more than or equal to 0A<VB≤VCCConverting binary data to be transmitted into n-system, n is positive integer and n is equal to [3,4]]∪[9,16]∪(128,256]Any voltage value in the first n gradient voltage ranges represents a value in n-system, wherein the voltage value Vi of the ith gradient is in the range of [ (V)B-VA)/n]×i<Vi< [(VB-VA)/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
S23, the sending end outputs voltage outwards;
s33, the receiving end reads the voltage value Vj
S43, the receiving end reads the voltage value VjJudging the voltage range of the voltage value according to the voltage value VjThe voltage range determines the voltage value VjAnd converting the n-system data into a binary system according to the corresponding n-system data.
Preferably, after the sending end finishes sending data once or before sending data once, sending a separation code, wherein a voltage value V of the separation coden+1∈[0,VA]Or Vn+1∈[VB,VCC];
The voltage value E [0, V ] read in the process of reading the voltage value by the receiving endA]Or e [ V ]B,VCC]Then reception of the next data is started.
Compared with the prior art, the invention has the beneficial effects that: the data sending efficiency can be greatly improved, and the efficiency of transmitting the data of one byte can be improved by 2, 4 and 8 times.
Drawings
Fig. 1 is a schematic diagram of a transmitting end of a high-efficiency single-wire communication method between single-chip microcomputers.
Detailed Description
The following examples are further illustrative of the present invention and are not intended to be limiting thereof.
Example 1
A high-efficiency single-wire communication method between single-chip microcomputers comprises a sending end, and the method for sending data by the sending end comprises the following steps:
s11, the sending end enables the bus voltage VCCA part of [ V ]A,VB]Is divided into at least n gradients, V is more than or equal to 0A<VB≤VCCConverting binary data to be transmitted into n-system, n is positive integer and n is equal to [3,4]]∪[9,16]∪(128,256]Any voltage value in the first n gradient voltage ranges represents a value in n-ary, wherein the voltage value V of the ith gradientiIn the range of [ (V)B-VA)/n]×i<Vi< [(VB-VA)/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
And S21, the sending end outputs voltage outwards.
After the sending end finishes sending data once or before sending data once, sending a separation code, wherein the voltage value V of the separation coden+1∈[0,VA]Or Vn+1∈[VB,VCC]。
The voltage V output by the sending terminalioutIs the interval ([ (V)B-VA)/n]×i,[(VB-VA)/n]X (i + 1)).
And the sending end outputs voltage to the AD module.
After the voltage is output by the sending end in a PWM output mode, the voltage is converted into direct current voltage through the RC circuit and then is transmitted to the AD module.
Example 2
A high-efficiency single-wire communication method between single-chip microcomputers comprises a sending end, and the method for sending data by the sending end comprises the following steps:
s11, the sending end enables the bus voltage VCCA part of [ V ]A,VB]Is divided into at least n gradients, V is more than or equal to 0A<VB≤VCCConverting binary data to be transmitted into n-system, n is positive integer and n is equal to [3,4]]∪[9,16]∪(128,256]Any voltage value in the first n gradient voltage ranges represents a value in n-ary, wherein the voltage value V of the ith gradientiIn the range of [ (V)B-VA)/n]×i<Vi< [(VB-VA)/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
And S21, the sending end outputs voltage outwards.
After the sending end finishes sending data once or before sending data once, sending a separation code, wherein the voltage value V of the separation coden+1∈[0,VA]Or Vn+1∈[VB,VCC]。
Example 3
An efficient single-wire communication method between single-chip microcomputers includes a sending end in this embodiment, and the method for sending data by the sending end includes:
s11, the sending end enables the bus voltage VCCA part of [ V ]A,VB]Is divided into not less than 16 gradients, 0= VA<VB<VCCConverting binary data to be transmitted into 16-system, wherein any voltage value in the first 16 gradient voltage ranges represents one value in n-system, and the voltage value V of the ith gradientiIn the range of [ V ]B/n]×i<Vi< [VB/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
And S21, the sending end outputs voltage outwards.
After the sending end finishes sending data once or before sending data once, sending a separation code, wherein the voltage value or V of the separation code17∈[VB,VCC]。
Table 116 system number and voltage value correspondence
Figure 114579DEST_PATH_IMAGE001
In this embodiment, the sending-end single chip microcomputer sends out 4-bit information in one byte each time.
Example 4
An efficient single-wire communication method between single-chip microcomputers includes a sending end in this embodiment, and the method for sending data by the sending end includes:
s11, the sending end enables the bus voltage VCCSplit into 17 gradients, 0= VA<VB=VCCConverting binary data to be transmitted into 16-system, wherein any voltage value in the first 16 gradient voltage ranges represents a value in 16-system, and the voltage value V of the ith gradientiIn the range of [ V ]CC/n]×i<Vi< [VCC/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
And S21, the sending end outputs voltage outwards.
After the sending end finishes sending data once or before sending data once, sending a separation code, wherein the voltage value V of the separation code17∈[VB,VCC]。
Figure 654276DEST_PATH_IMAGE002
In this embodiment, the sending-end single chip microcomputer sends out 4-bit information in one byte each time. In this embodiment, a part of the bus voltage is 0 to (V) in this embodimentCC17) × 16, the division code is actually a voltage value within the largest one of the 17 gradients, and the bus voltage in this embodiment is divided into n +1 gradients.
In fact, since the nona, decimal, … …, hexadecimal numbers can be converted into four-digit binary numbers, so that n ∈ [9,16], the implementation can be referred to in this embodiment.
Example 5
An efficient single-wire communication method between single-chip microcomputers includes a sending end in this embodiment, and the method for sending data by the sending end includes:
s11, the sending end enables the bus voltage VCCDivide into 3+1 gradients, 0= VA<VB=VCCConverting binary data to be transmitted into 3-system, wherein any voltage value in the first 3 gradient voltage ranges represents a value in 3-system, and the voltage value V of the ith gradientiIn the range of [ V ]CC/n]×i<Vi< [VCC/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
And S21, the sending end outputs voltage outwards.
After the sending end finishes sending data once or before sending data once, sending a separation code, wherein the voltage value V of the separation code17∈[(VCC/4)×3,VCC]。
Table 33 system number and voltage value corresponding relation
Figure 349699DEST_PATH_IMAGE003
In this embodiment, the sending-end single chip microcomputer sends out 2-bit information in one byte each time. In this embodiment, a part of the bus voltage is 0 to (V) in this embodimentCC4) × 3, the division code is actually a voltage value within the largest one of the 4 gradients, and the bus voltage in this embodiment is divided into n +1 gradients.
In fact, since ternary and quaternary numbers can be converted into four-digit binary numbers, n ∈ 3,4 can be implemented with reference to the embodiment.
Example 6
An efficient single-wire communication method between single-chip microcomputers includes a sending end in this embodiment, and the method for sending data by the sending end includes:
s11, the sending end enables the bus voltage VCCDivide into 3+1 gradients, 0= VA<VB=VCCConverting binary data to be transmitted into 3-system, wherein any voltage value in the first 3 gradient voltage ranges represents a value in 3-system, and the voltage value V of the ith gradientiRange of (1)Is [ V ]CC/n]×i<Vi< [VCC/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
And S21, the sending end outputs voltage outwards.
After the sending end finishes sending data once or before sending data once, sending a separation code, wherein the voltage value V of the separation code17∈[(VCC/4)×3,VCC]。
TABLE 43 binary number to voltage value correspondence
Figure 122483DEST_PATH_IMAGE004
In this embodiment, the sending-end single chip microcomputer sends out 2-bit information in one byte each time. In this embodiment, a part of the bus voltage is 0 to (V) in this embodimentCC4) × 3, the division code is actually a voltage value within the largest one of the 4 gradients, and the bus voltage in this embodiment is divided into n +1 gradients.
In this embodiment, the token code of the third gradient range is 5, and is not 2 in ternary in the conventional sense, which should be understood as that the so-called n-ary in this application is n symbols, each symbol corresponds to a voltage gradient range, as long as it can be understood that the transmitted data is the symbol in the voltage gradient range of a certain symbol, and similarly, the receiving end can also parse the symbol into binary numbers.
In fact, since ternary and quaternary numbers can be converted into four-digit binary numbers, n ∈ 3,4 can be implemented with reference to the embodiment.
Example 7
An efficient single-wire communication method between single-chip microcomputers includes a sending end in this embodiment, and the method for sending data by the sending end includes:
s11, the sending end enables the bus voltage VCCA part of [ V ]A,VB]Is divided into not less than 256 gradients, 0= VA<VB<VCCBinary data to be transferredConverted into 256-system, any voltage value in the first 256 gradient voltage ranges represents one value in 256-system, wherein the voltage value V of the ith gradientiIn the range of [ V ]B/n]×i<Vi< [VB/n]X (i +1), i is an integer, i ∈ [0,255 ]];
And S21, the sending end outputs voltage outwards.
After the sending end finishes sending data once or before sending data once, sending a separation code, wherein the voltage value or V of the separation code17∈[VB,VCC]。
Table 5256 binary number to voltage value correspondence
Figure 663186DEST_PATH_IMAGE005
In this embodiment, the sending-end single chip microcomputer sends out 8-bit information in one byte each time.
Generally speaking, limited by common symbols, the method will not be applied to 256, but it cannot be denied that 129, 130, … …,256 numbers can be converted into 8-bit binary numbers, and one byte of data can be transmitted at a time. The transmission efficiency is further improved.
Example 8
A high-efficiency single-wire communication method between single-chip microcomputers comprises a receiving end, wherein the method for receiving data by the receiving end is as follows:
s12, the receiving end reads a voltage value Vj
S22, the receiving end reads the voltage value VjJudging the voltage range of the voltage value according to the voltage value VjThe voltage range determines the voltage value VjAnd converting the n-system data into a binary system according to the corresponding n-system data.
The voltage value read by the receiving end in the process of reading the voltage value is large [0, V ]A]Or e [ V ]B,VCC]Then reception of the next data is started.
And the receiving end reads the content of the AD module.
Example 9
A high-efficiency single-wire communication method between single-chip microcomputers comprises a receiving end, wherein the method for receiving data by the receiving end is as follows:
s12, the receiving end reads a voltage value Vj
S22, the receiving end reads the voltage value VjJudging the voltage range of the voltage value according to the voltage value VjThe voltage range determines the voltage value VjAnd converting the n-system data into a binary system according to the corresponding n-system data.
Example 10
A high-efficiency single-wire communication method between single-chip microcomputers comprises a receiving end, wherein the method for receiving data by the receiving end is as follows:
s12, the receiving end reads a voltage value Vj
S22, the receiving end reads the voltage value VjJudging the voltage range of the voltage value according to the voltage value VjThe voltage range determines the voltage value VjAnd converting the n-system data into a binary system according to the corresponding n-system data. The correspondence relationship from the voltage value to the number is as shown in the following table, and in the present embodiment, n = 16.
Table 6 receiving terminal 16 system number and voltage value corresponding relation
Figure 572236DEST_PATH_IMAGE006
In this embodiment, the receiving-end single chip microcomputer can receive 4-bit information in one byte at a time. The receiving end single chip microcomputer can convert the 16-system number into the 2-system number after receiving the information, thereby realizing the use of data and also directly outputting the 16-system number.
Example 11
A high-efficiency single-wire communication method between single-chip microcomputers comprises a sending end and a receiving end, and comprises the following steps:
s13, the sending end enables the bus voltage VCCA part of [ V ]A,VB]Is divided into at least n laddersDegree, 0 ≤ VA<VB≤VCCConverting binary data to be transmitted into n-system, n is positive integer and n is equal to [3,4]]∪[9,16]∪(128,256]Any voltage value in the first n gradient voltage ranges represents a value in n-system, wherein the voltage value Vi of the ith gradient is in the range of [ (V)B-VA)/n]×i<Vi< [(VB-VA)/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
S23, the sending end outputs voltage outwards;
s33, the receiving end reads the voltage value Vj
S43, the receiving end reads the voltage value VjJudging the voltage range of the voltage value according to the voltage value VjThe voltage range determines the voltage value VjAnd converting the n-system data into a binary system according to the corresponding n-system data.
Dividing a part of the bus voltage into n gradients, wherein any voltage value in each voltage gradient range corresponds to an n-system value; the data of one byte includes 8-bit binary data, data of one ternary number or four-decimal number can be converted into two-bit binary data, a nine-decimal number, a decimal number, … …, hexadecimal number can be converted into four-bit binary data, and a one hundred twenty eight-decimal number, a one hundred twenty nine-decimal number, … …, two hundred fifty-hexadecimal number can be converted into eight-bit binary data.
That is, when n belongs to [3,4], sending 4 times of data can transfer one byte of data; when n belongs to [9,16], sending 2 times of data can transfer one byte of data; when n belongs to (128, 256), data of one byte can be transmitted by sending data once, the data transmission efficiency can be greatly improved, the efficiency of transmitting the data of one byte can be improved by 2, 4 and 8 times, the data of a plurality of bytes are often required to be transmitted during data transmission, the data of different bytes need to be separated to avoid confusion, voltage values which do not belong to a voltage gradient range can be sent outwards to separate the data, the fault tolerance rate can be improved by sending an intermediate value, some single-chip microcomputers do not comprise DAC modules and need to transmit the data through external AD modules, and a receiving end converts the voltage values into corresponding n-system data.
Example 12
A high-efficiency single-wire communication method between single-chip microcomputers comprises a sending end and a receiving end, and comprises the following steps:
s13, the transmitting terminal converts the bus voltage VCCSplit into 17 gradients, 0= VA<VB=VCCConverting binary data to be transmitted into 16-system, wherein any voltage value in the first 16 gradient voltage ranges represents a value in 16-system, and the voltage value V of the ith gradientiIn the range of [ V ]CC/n]×i<Vi< [VCC/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
S23, the sending end outputs voltage outwards;
table 716 binary number to voltage value correspondence
Figure 438561DEST_PATH_IMAGE007
S33, the receiving end reads the voltage value Vj
S43, the receiving end reads the voltage value VjJudging the voltage range of the voltage value according to the voltage value VjThe voltage range determines the voltage value VjAnd converting the n-system data into a binary system according to the corresponding n-system data, wherein the specific conversion relation is shown in a table.
After the sending end finishes sending data once or before sending data once, sending a separation code, wherein the voltage value V of the separation coden+1∈[0,VA]Or Vn+1∈[VB,VCC];
The voltage value E [0, V ] read in the process of reading the voltage value by the receiving endA]Or e [ V ]B,VCC]Then, the next data starts to be received
In this embodiment, the sending-end single chip microcomputer sends out 4-bit information in one byte each time. In this embodiment, a part of the bus voltage is 0 to (V) in this embodimentCC17) × 16, the separation code is actually within the largest one of the 17 gradientsThe bus voltage in this embodiment is divided into n +1 gradients.
The above detailed description is specific to possible embodiments of the present invention, and the above embodiments are not intended to limit the scope of the present invention, and all equivalent implementations or modifications that do not depart from the scope of the present invention should be included in the present claims.

Claims (7)

1. A high-efficiency single-wire communication method between single-chip microcomputers is characterized by comprising a sending end and a receiving end, wherein the method for sending data by the sending end comprises the following steps:
s11, the sending end enables the bus voltage VCCA part of [ V ]A,VB]Is divided into at least n gradients, V is more than or equal to 0A<VB≤VCCConverting binary data to be transmitted into n-system, n is positive integer and n is equal to [3,4]]∪[9,16]∪(128,256]Any voltage value in the first n gradient voltage ranges represents a value in n-ary, wherein the voltage value V of the ith gradientiIn the range of [ (V)B-VA)/n]×i<Vi<[(VB-VA)/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
S21, the sending end outputs voltage outwards;
after the sending end finishes sending data once or before sending data once, sending a separation code, wherein the voltage value V of the separation coden+1∈[0,VA]Or Vn+1∈[VB,VCC]Within one of these ranges; the voltage V output by the sending terminalioutIs the interval ([ (V)B-VA)/n]×i,[(VB-VA)/n]X (i + 1));
the method for receiving the data by the receiving end comprises the following steps:
s12, the receiving end reads a voltage value Vj
S22, the receiving end reads the voltage value VjJudging the voltage range of the voltage value according to the voltage value VjThe voltage range determines the voltage value VjCorresponding n-system data, and then n-system numberAnd converted to binary.
2. The method as claimed in claim 1, wherein the transmitting end outputs the voltage to the AD module.
3. The method according to claim 1, wherein the voltage is output by the transmitting end in a PWM output mode, converted into a DC voltage by an RC circuit, and transmitted to the AD module.
4. The method as claimed in claim 1, wherein the voltage value e [0, V ] read by the receiving end during the process of reading the voltage value is readA]Or e [ V ]B,VCC]Then reception of the next data is started.
5. The method as claimed in claim 1, wherein the receiving end reads the content of the AD module.
6. A high-efficiency single-wire communication method between single-chip microcomputers is characterized by comprising a sending end and a receiving end, and comprises the following steps:
s13, the sending end enables the bus voltage VCCA part of [ V ]A,VB]Is divided into at least n gradients, V is more than or equal to 0A<VB≤VCCConverting binary data to be transmitted into n-system, n is positive integer and n is equal to [3,4]]∪[9,16]∪(128,256]Any voltage value in the first n gradient voltage ranges represents a value in n-ary, wherein the voltage value V of the ith gradientiIn the range of [ (V)B-VA)/n]×i<Vi< [(VB-VA)/n]X (i +1), i is an integer, i belongs to [0, n-1 ]];
S23, the sending end outputs voltage outwards;
s33, the receiving end reads the voltage value Vj
S43, the receiving end reads the voltage value VjJudging the voltage range of the voltage value according to the voltage value VjThe voltage range determines the voltage value VjAnd converting the n-system data into a binary system according to the corresponding n-system data.
7. The method as claimed in claim 6, wherein the transmitting end transmits a separation code after transmitting data once or before transmitting data once, and the voltage value V of the separation code isn+1∈[0,VA]Or Vn+1∈[VB,VCC];
The voltage value E [0, V ] read in the process of reading the voltage value by the receiving endA]Or e [ V ]B,VCC]Then reception of the next data is started.
CN202010152869.3A 2020-03-06 2020-03-06 Efficient single-wire communication method between single-chip microcomputers Active CN111404569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010152869.3A CN111404569B (en) 2020-03-06 2020-03-06 Efficient single-wire communication method between single-chip microcomputers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010152869.3A CN111404569B (en) 2020-03-06 2020-03-06 Efficient single-wire communication method between single-chip microcomputers

Publications (2)

Publication Number Publication Date
CN111404569A CN111404569A (en) 2020-07-10
CN111404569B true CN111404569B (en) 2022-03-25

Family

ID=71413247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010152869.3A Active CN111404569B (en) 2020-03-06 2020-03-06 Efficient single-wire communication method between single-chip microcomputers

Country Status (1)

Country Link
CN (1) CN111404569B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113722264B (en) * 2021-08-24 2024-03-15 深圳市京泉华智能电气有限公司 Communication method between singlechips

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411616B (en) * 2011-10-28 2014-11-19 北京地拓科技发展有限公司 Method and system for storing data and data management method
CN202472916U (en) * 2012-03-21 2012-10-03 上海理工大学 Long-distance wireless measuring device for ambient temperature
CN102855113B (en) * 2012-08-14 2015-01-21 深圳市文鼎创数据科技有限公司 Encoding method and device for outputting information through display screen, and terminal
CN104460406B (en) * 2014-10-13 2017-04-26 深圳市江波龙电子有限公司 Single-line communication method and single chip microcomputer firmware updating method based on single-line communication
CN107818063A (en) * 2016-09-13 2018-03-20 展讯通信(上海)有限公司 More level mongline two-way communication method and system

Also Published As

Publication number Publication date
CN111404569A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
US5625644A (en) DC balanced 4B/8B binary block code for digital data communications
US5614901A (en) Method and apparatus for providing data stream for cost effective transmission links
JPH077491A (en) Communication equipment
CN111404569B (en) Efficient single-wire communication method between single-chip microcomputers
US7889763B2 (en) Data transmission apparatus and data transmission method
Kitajima Energy packing efficiency of the Hadamard transform
US20050220232A1 (en) Circuit arrangement and a method to transfer data on a 3-level pulse amplitude modulation (PAM-3) channel
JPH0748675B2 (en) Digital transmission system
WO2021148915A1 (en) Pam-based coding schemes for parallel communication
CN216119513U (en) Light emitting diode driver and light emitting diode driving apparatus
US9872035B2 (en) System and method for transcoding data
US6704793B1 (en) Data transmission protocol in image communication device
CN105103446A (en) Signal processing device
US10103912B1 (en) Phased information pulse method and apparatus
CN220108099U (en) Intelligent camera and intelligent camera system
JPS60235559A (en) Transmission system of packet signal
US20230224194A1 (en) Data encoding method, data decoding method, and communication apparatus
WO2024001230A1 (en) Bearing method, communication equipment and storage medium
EP4362361A1 (en) Service processing method and service processing device
JPH02194752A (en) Communication method using multilevel signal
CN110048818B (en) Feedback information confirmation and processing system and processing method for TID of user
KR102184181B1 (en) security information sending method for 1-bit ADC wiretap channel
CN117544691A (en) Data sub-packet sending method and receiving method of vehicle-mounted controller
JP2725609B2 (en) Terminal adapter device
CN117857730A (en) Delay control method, delay control device, interface chip and display system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: An Efficient Single-line Communication Method between Single-chip Computers

Effective date of registration: 20230104

Granted publication date: 20220325

Pledgee: CITIC Bank Limited by Share Ltd. Shenzhen branch

Pledgor: SHENZHEN INTELTRON INTELLIGENT SCIENCE & TECHNOLOGY Co.,Ltd.

Registration number: Y2022980029347

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20220325

Pledgee: CITIC Bank Limited by Share Ltd. Shenzhen branch

Pledgor: SHENZHEN INTELTRON INTELLIGENT SCIENCE & TECHNOLOGY Co.,Ltd.

Registration number: Y2022980029347