Single-wire communication interface and protocol

By using a single-line communication interface and protocol, and utilizing the control register (CSR), master interface, slave interface, buffer controller, and transceiver engine, the problems of communication rate error accumulation and insufficient anti-interference capability are solved, achieving stable and efficient communication and reducing costs.

CN117349218BActive Publication Date: 2026-11-24HANGZHOU VANGO TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311324942.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-12
Publication Date
2026-11-24
Estimated Expiration
2043-10-12

AI Technical Summary

Technical Problem

In existing technologies, single-line communication interfaces suffer from insufficient accumulation of communication rate errors and inadequate anti-interference capabilities, leading to unstable communication processes and difficulties in troubleshooting.

Method used

It adopts a single-wire communication interface and protocol, including control register CSR, master interface, slave interface, buffer controller and transceiver engine. By defining data frames and adaptive communication rate mode, it uses 01 level sequence and level transition edge filtering to eliminate error accumulation, thereby achieving high communication rate error tolerance and strong anti-interference capability.

Benefits of technology

It achieves stable communication under a wide range of communication rate variations, reduces the need for frequent adjustments, improves the anti-interference capability and real-time error response of communication, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117349218B_ABST
    Figure CN117349218B_ABST
Patent Text Reader

Abstract

The application provides a single-wire communication interface and protocol, wherein the single-wire communication interface is used for communication between a system and an external device, and comprises a control register CSR used for controlling the single-wire communication interface, a main interface used for data interaction between the single-wire communication interface and the system, a slave interface used for configuration of the single-wire communication interface by the system, and a cache controller used for controlling cache to read and write cache data; a transceiving engine is used for communication with the external device; the control register CSR and the transceiving engine are bidirectionally connected and used for controlling and configuring the transceiving engine; and the single-wire communication protocol is used for communication between the single-wire communication interface and the external device, and comprises definition of a data frame and a reading and writing method of the data frame.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a communication interface and protocol, and more particularly to a single-wire communication interface and protocol. Background Technology

[0002] Low-power, low-cost applications place particularly high demands on the overall power consumption and design cost of circuits. Using specific communication protocols and peripheral interfaces to reduce the accuracy requirements of clock circuits during communication, and minimizing the number of communication signal lines, can both reduce costs and power consumption. This is of great significance for low-power, low-cost circuit design.

[0003] In existing technologies, a scheme using synchronization frames to update the communication rate is employed. The host sends a synchronization frame header at the beginning of each communication frame, the slave decodes the pulse width of the synchronization frame header to calculate the communication rate, and then uses that rate for communication.

[0004] The aforementioned existing technical solutions use the communication rate for communication after decoding it. A single data entry typically contains multiple bits, and the communication rate error per bit accumulates with the data length and cannot be eliminated, resulting in a relatively small tolerance for communication rate error. During communication, the clock frequencies of the master and slave circuits change dynamically, leading to frequent changes in the communication rate configuration. This significant variation in communication processes hinders troubleshooting. Furthermore, successful communication depends on the synchronization frame header, making its anti-interference capability relatively weak. Summary of the Invention

[0005] Purpose of the invention: The technical problem to be solved by the present invention is to provide a single-line communication interface and protocol to address the shortcomings of the prior art.

[0006] To address the aforementioned technical problems, this invention discloses a single-wire communication interface and protocol, wherein the single-wire communication interface is used for communication between its system and external devices, including:

[0007] The control register (CSR) is used to control the single-wire communication interface.

[0008] The main interface is used for data interaction between the single-wire communication interface and the internal system; the control register (CSR) is bidirectionally connected to the main interface via a direct memory accessor (DMA) for data interaction.

[0009] The interface is used by the system to configure the single-wire communication interface and read and write the control register (CSR).

[0010] The cache controller is used to control the cache to read and write cached data. The control register CSR is bidirectionally connected to the cache controller and is used to control the cache to send and receive cached data through the cache controller.

[0011] The transceiver engine is used to communicate with external devices, including: parsing signals received from external devices and converting them into data of the system according to the communication protocol; or parsing data that the system is preparing to send to external devices and converting it into signals corresponding to the communication protocol and sending it to external devices.

[0012] The control register (CSR) is bidirectionally connected to the transceiver engine and is used to control and configure the transceiver engine; the cache controller is bidirectionally connected to the transceiver engine and is used to exchange data between the cache and the transceiver engine.

[0013] Furthermore,

[0014] The cache controller is a FIFO controller;

[0015] The cache is a FIFO random access memory (RAM).

[0016] The single-line communication interface interacts with the system internally, that is, the main interface interacts with the system through the system bus;

[0017] The system configures the single-wire communication interface, that is, the slave interface interacts with the system through the system bus and forwards the system's configuration commands to the control register (CSR).

[0018] The transceiver engine communicates with external devices, that is, the transceiver engine interacts with external devices through a communication bus.

[0019] A single-wire communication protocol is provided for the single-wire communication interface to communicate with external devices. The protocol includes: defining data frames and methods for reading and writing data frames.

[0020] Furthermore, the definition of the data frame specifically includes:

[0021] The data frames include four basic communication frames: the start frame (START frame), the first data frame (DATA0 frame), the second data frame (DATA1 frame), and the interval data frame (IDLE frame).

[0022] The START frame is located at the beginning of the data frame and is used to indicate the start of a data transmission frame. The START frame is represented by a SYNC sequence, which is a combination of three consecutive low and high levels.

[0023] The IDLE frame is located at the end of the data frame and is used to separate different data frames, representing an idle level signal; the IDLE frame is represented by more than 8 high levels;

[0024] A DATA0 frame is used to represent a single bit of data 0; the DATA0 frame is represented by a combination of a LOGIC0 sequence and a TRD sequence; wherein, the LOGIC0 sequence is two consecutive low-high level combinations, and the TRD sequence is three consecutive high level combinations.

[0025] A DATA1 frame is used to represent a single bit of data 1; the DATA1 frame is represented by a combination of a LOGIC1 sequence and a TRD sequence; wherein, the LOGIC1 sequence is a combination of consecutive low and high levels.

[0026] Furthermore, the method for reading and writing data frames specifically includes: writing data frames and reading data frames;

[0027] The write data frame is used to write data to other peripherals on the communication bus. The specific process is as follows:

[0028] Step a1: The data sending end uses a START frame to indicate the start of writing data;

[0029] Step a2: After the START frame, use the DATA0 frame to indicate a write data frame operation;

[0030] Step a3: After the first DATA0 frame, fill in a data segment. This data segment uses DATA0 frames to represent a single bit of data 0 and DATA1 frames to represent a single bit of data 1.

[0031] Step a4: After receiving the above data frame, the data receiving end determines whether the data segment is correct based on the checksum. If it is correct, it replies with a DATA0 frame as an ACK signal to indicate that the data was successfully received. Otherwise, it replies with a DATA1 frame as a NACK signal to indicate that the data was not successfully received.

[0032] Step a5: The data transmitter sends an IDLE frame and judges the above signal. If it is a NACK signal indicating failure to confirm, it returns to step a1 to retransmit; otherwise, it completes the transmission.

[0033] The read data frame is used to read data from other peripherals on the communication bus. The specific process is as follows:

[0034] Step b1: The data receiving end uses a START frame to indicate the start of reading data;

[0035] Step b2: After the START frame, use the DATA1 frame to indicate a read data frame operation;

[0036] Step b3: After the first DATA1 frame, read the data segment, which uses DATA0 frames to represent a single bit of data 0 and DATA1 frames to represent a single bit of data 1.

[0037] Step b4: After receiving the above data frame, the data receiving end determines whether the data segment is correct based on the checksum. If it is correct, it replies with a DATA0 frame as an ACK signal to indicate that the data was successfully received. Otherwise, it replies with a DATA1 frame as a NACK signal to indicate that the data was not successfully received.

[0038] In step b5, the data receiving end sends an IDLE frame, and the data sending end reads the IDLE frame to indicate that the data reception has ended;

[0039] Step b6: Continue waiting for the next data frame.

[0040] Furthermore, when writing and reading data frames, the time interval between each high and low level edge in the basic communication frame is determined, and the communication rate error accumulation is eliminated at the high and low level edges. The specific method is as follows:

[0041] Let T0 be the duration of the first low level. After configuring the communication rate of the peripheral device, the receiver compares the difference between the configured T0 value and the actual sampled T0 value. If the actual sampled T0 value is within the error range threshold of the configured T0 value, then the low level corresponding to T0 is considered valid.

[0042] Use the same method to determine the time from the second level to the fifth level, i.e., T1 to T4.

[0043] Furthermore, when writing and reading data frames, filtering is applied to each high-low level transition edge in the basic communication frame to eliminate signal noise.

[0044] Furthermore, when writing and reading data frames, an adaptive communication rate mode is adopted, specifically including:

[0045] In step c1, when the adaptive communication rate mode is used, the peripheral device counts the length of T0 through the level edge and the internal clock; where T0 represents the duration of the first low level.

[0046] Step c2: Sample the SYNC sequence and use T0 to determine whether the SYNC sequence is valid, that is, T1 to T4 are within the error range threshold, and the signal length of the TRD sequence is the preset length; if the SYNC sequence is valid, proceed to step c3; otherwise, proceed to step c1.

[0047] Step c3: Continue to use T0 as the time base to send and receive subsequent basic communication frames until the IDLE frame is received. At the same time, determine whether the high and low levels of each basic communication frame are valid, that is, whether the level width is within the error range threshold and the signal length of the TRD sequence is the preset length. If all basic communication frames are valid, proceed to step c4; otherwise, after detecting that the current basic communication frame is invalid, proceed to step c1.

[0048] Step c4: Return to step c2, resample and determine the SYNC sequence.

[0049] Furthermore, the error range threshold is: greater than 0.5 times to less than 2 times.

[0050] Furthermore, the preset length is 1 to 7 high-level lengths.

[0051] Beneficial effects:

[0052] 1. The communication interface and protocol in this invention have high tolerance for communication rate errors, and can still communicate normally when the communication rate changes significantly; the communication rate does not need to be adjusted or frequently adjusted when the system clock changes, making configuration and troubleshooting more convenient; by using the method of judging the time interval of each high and low level edge in the basic communication frame, communication rate errors will not accumulate during the communication process.

[0053] 3. This invention designs an adaptive communication rate mode, which can work in a wider range of communication rates.

[0054] 4. This invention supports level transition edge filtering and data checksum, and has strong anti-interference capability for communication.

[0055] 5. This invention uses a 01 level sequence for judgment, which provides high real-time error response and enhances communication anti-interference capabilities.

[0056] 6. This invention uses single-signal-line communication, resulting in lower costs. Attached Figure Description

[0057] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments, and the advantages of the present invention in the above and / or other aspects will become clearer.

[0058] Figure 1 This is a schematic diagram of a single-line communication interface.

[0059] Figure 2 This is a schematic diagram of the START frame.

[0060] Figure 3 This is a diagram illustrating data time points.

[0061] Figure 4This is a schematic diagram of an IDLE frame.

[0062] Figure 5 This is a schematic diagram of the DATA0 frame.

[0063] Figure 6 This is a schematic diagram of DATA1 frame.

[0064] Figure 7 This is a diagram illustrating the writing of a data frame.

[0065] Figure 8 This is a diagram illustrating the reading of a data frame. Detailed Implementation

[0066] This invention designs a communication interface and protocol that can eliminate this error accumulation, allowing peripherals to tolerate very large communication rate errors. This large communication rate error tolerance allows peripherals to communicate without needing to update the communication rate using a synchronization frame header. It also facilitates software simulation of peripheral communication. Frequent adjustments to the communication rate due to minor clock frequency variations are unnecessary. Communication data relies on 0 / 1 level sequences and level transition edges. Adding filtering to the level transition edges easily removes transmitted noise signals. Because the low-level duration of the 0 / 1 level sequence is always one cycle, data transmission errors can be detected during bit data transmission, without waiting for all data transmission to complete and then checking the checksum to confirm data correctness, thus improving the real-time performance of error response. The double guarantee of data correctness through checksum and verification improves the anti-interference capability of transmission.

[0067] This invention discloses a communication interface and protocol, comprising a single-wire communication interface and a single-wire communication protocol, the specific technical solution of which is as follows:

[0068] I. Single-line communication interface, including:

[0069] The system consists of a control status register (CSR), a direct memory access (DMA) controller, and a first-in-first-out (FIFO) random access memory (RAM). The CSR controls the operation of the single-wire communication interface. The DMA exchanges data with the system bus via the Master Interface, and the system configures the control registers via the Slave Interface. The FIFO controller buffers transmitted and received data. The TX / RX transceiver engine parses received data and converts transmitted data into protocol-corresponding signals.

[0070] The single-line communication interface supports functions such as master-slave transmission and reception, communication rate configuration, and error checking.

[0071] like Figure 1 As shown, the specific structure of the single-line communication interface is as follows:

[0072] The single-wire communication interface includes a control register (CSR), which is bidirectionally connected to the direct memory access controller (DMA), the FIFO controller (first-in-first-out controller), the TX / RX transceiver engine, and the slave interface.

[0073] The slave interface is bidirectionally connected to the system bus at one end; the direct memory access (DMA) is bidirectionally connected to the system bus after being bidirectionally connected to the master interface; thus realizing bidirectional connection between the master interface and the slave interface and the system bus.

[0074] The other two ends of the FIFO controller are bidirectionally connected to the FIFO random access memory RAM and the TX / RX transceiver engine, respectively. That is, the control register CSR is bidirectionally connected to the FIFO random access memory RAM through the FIFO controller.

[0075] The other end of the TX / RX transceiver engine is bidirectionally connected to the communication bus.

[0076] II. Single-line communication protocol, including:

[0077] The methods for defining, reading, and writing data frames are as follows:

[0078] 1. Data frame definition: The data frame specifically includes four basic communication frames: START frame, DATA0 frame, DATA1 frame, and IDLE frame.

[0079] The START frame is located at the beginning of the entire data frame in a single-wire communication protocol, indicating the start of a data transmission frame. The logic level of the START frame is as follows: Figure 2 As shown:

[0080] The START frame is represented by three 0 and 1 levels (SYNC sequence, i.e., synchronization sequence). Only the START frame contains three consecutive 0 and 1 levels in the entire data frame. SYNC is followed by three high levels (TRD sequence, i.e., turnaround sequence). TRD (turnaround) is used to separate basic communication frames.

[0081] When a signal receiver receives a basic communication frame, it determines the time interval between each edge, i.e., it determines the data time node. The specific method is as follows: Figure 3 As shown:

[0082] Let T0 be the duration of the first low level. After configuring the communication rate of the peripheral device, T0 should correspond to the communication rate. The receiver compares the configured T0 value with the actual sampled T0 value. If the actual sampled T0 value is 0.5 to 2 times (excluding 0.5 and 2 times), the configured T0 value is considered 0. The duration of the second to fifth levels, T1 to T4, is determined in the same way. Since each high and low level is independent, there will be no error accumulation. To eliminate error accumulation, each low level will be followed by a high level. If two consecutive high levels appear after a low level, it is considered a TRD signal. Since the error range is 0.5 to 2 times, the TRD is extended by 2 cycles to 3 high levels.

[0083] The communication interface continuously samples the voltage level signal on the interface using a clock signal. The voltage level signal can be configured to be filtered for n clock cycles. When filtering is enabled, the sampled voltage level is only updated if the voltage level is inconsistent with the current voltage level for n consecutive clock cycles. This results in a delay of n cycles in the sampled voltage level, while also removing most of the noise signal.

[0084] The device supports adaptive communication rate mode. When configured in adaptive communication rate mode, a valid T0 (when the SYNC sequence is valid) is used as the reference for calculating the communication rate. When the peripheral is operating in adaptive communication rate mode, it counts the length of T0 using level edges and the internal clock. Then, it uses T0 to determine whether the SYNC sequence is valid, i.e., T1 to T4 are within 0.5 to 2 times the error range while the TRD signal length is 1 to 7 high levels simultaneously. If the SYNC sequence is valid, T0 continues to be used as the time reference for sending and receiving subsequent basic communication frames until the IDLE frame is received. Each SYNC sequence triggers the slave's adaptive mode T0 count once. If the SYNC sequence is invalid, the SYNC sequence is resampled.

[0085] like Figure 4 As shown, the IDLE frame is used to separate read and write data frames, representing an idle level signal between data communications. The TRD and the preceding data together will have four high levels, so eight or more high levels are used to represent an IDLE frame.

[0086] like Figure 5 As shown, a DATA0 frame is used to represent a single bit of data 0. A DATA0 frame consists of two 0-1 levels (LOGIC0 sequence) and a TRD.

[0087] like Figure 6 As shown, a DATA1 frame is used to represent a single bit of data 1. A DATA1 frame consists of a 0-1 level (LOGIC1 sequence) and a TRD.

[0088] 2. The formats for reading and writing data frames are as follows:

[0089] Write frames are used by the host to write data to the slave device. For example... Figure 7 The diagram shows a write data frame format using 8-bit data as an example. The START frame indicates the start of data writing, and the DATA0 frame indicates a write (W) operation. Data B7 to B0 are represented using DATA0 / 1. Following B7 to B0 is the checksum (P) of the data. After receiving data from the master, the slave calculates the checksum of data B7 to B0. If it matches the checksum sent by the master, it replies with ACK (DATA0), indicating successful data reception. If it does not match the checksum sent by the master, it replies with NACK (DATA1), indicating data reception failure. The master determines whether to retransmit based on whether the slave replies with ACK or NACK.

[0090] Read data frames are used by the host machine to read data from the slave machine. For example... Figure 8 The image shows a read data frame using 8-bit data as an example. The START frame indicates the start of data reading, and the DATA1 frame indicates a read (R) operation. Data B7 to B0 are represented using DATA0 / 1, and B7 to B0 of the read data frame are sent by the slave device. The data B7 to B0 is followed by a checksum (P). After receiving the data sent by the slave device, the master device calculates the checksum of data B7 to B0. If it matches the checksum sent by the slave device, it replies with ACK (DATA0), indicating successful data reception. If it does not match the checksum sent by the slave device, it replies with NACK (DATA1), indicating data reception failure. The slave device checks whether the master device replies with ACK or NACK to confirm whether the transmission was successful.

[0091] The checksum is the checksum value of the preceding padding data segment. A checksum value of 0 corresponds to DATA0, and 1 corresponds to DATA1. It follows immediately after the padding data segment, the length of which is variable. Communication between different peripherals requires using the same agreed-upon data segment length.

[0092] In its specific implementation, this application provides a single-line communication interface peripheral, a computer storage medium, and a corresponding data processing unit. The computer storage medium is capable of storing a computer program, which, when executed by the data processing unit, can control the single-line communication interface provided by this invention to implement the inventive content of the protocol and some or all of the steps in each embodiment. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0093] Those skilled in the art will clearly understand that the technical solutions in the embodiments of the present invention can be implemented using a single-wire communication interface peripheral, a computer program, and its corresponding general-purpose hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a computer peripheral hardware product. This computer peripheral hardware product is part of the computer hardware and includes a master interface, a slave interface, a control register (CSR), a direct memory access controller (DMA), a first-in-first-out (FIFO) RAM, and a TX / RX transceiver engine. The computer program software includes several instructions to cause a device containing a data processing unit (which may be a personal computer, server, microcontroller, MUU, or network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments of the present invention.

[0094] This invention provides a single-line communication interface and protocol, along with its concept and method. Many methods and approaches exist for implementing this technical solution; the above description is merely a preferred embodiment. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this invention, and these improvements and modifications should also be considered within the scope of protection of this invention. All components not explicitly stated in this embodiment can be implemented using existing technologies.

Claims

1. A single-wire communication protocol for communicating with external devices via a single-wire communication interface, characterized in that, The single-line communication protocol includes: defining data frames and methods for reading and writing data frames; The definition of a data frame specifically includes: Data frames include four basic communication frames: the start frame (START frame), the first data frame (DATA0 frame), the second data frame (DATA1 frame), and the interval data frame (IDLE frame). The START frame is located at the beginning of the data frame and is used to indicate the start of a data transmission frame. The START frame is represented by a SYNC sequence, which is a combination of three consecutive low and high levels. The IDLE frame is located at the end of the data frame and is used to separate different data frames, representing an idle level signal; the IDLE frame is represented by more than 8 high levels; A DATA0 frame is used to represent a single bit of data 0. A DATA0 frame is represented by a combination of a LOGIC0 sequence and a TRD sequence. The LOGIC0 sequence is a combination of two consecutive low-high levels, and the TRD sequence is a combination of three consecutive high levels. A DATA1 frame is used to represent a single bit of data 1; a DATA1 frame is represented by a combination of a LOGIC1 sequence and a TRD sequence; where the LOGIC1 sequence is a combination of consecutive low and high levels; The methods for reading and writing data frames specifically include: writing data frames and reading data frames; The write data frame is used to write data to other peripherals on the communication bus. The specific process is as follows: Step a1: The data sending end uses a START frame to indicate the start of writing data; Step a2: After the START frame, use the DATA0 frame to indicate a write data frame operation; Step a3: After the first DATA0 frame, fill in a data segment. This data segment uses DATA0 frames to represent a single bit of data 0 and DATA1 frames to represent a single bit of data 1. Step a4: After receiving the above data frame, the data receiving end determines whether the data segment is correct based on the checksum. If it is correct, it replies with a DATA0 frame as an ACK signal to indicate that the data was successfully received. Otherwise, it replies with a DATA1 frame as a NACK signal to indicate that the data was not successfully received. Step a5: The data transmitter sends an IDLE frame and judges the above signal. If it is a NACK signal indicating failure to confirm, it returns to step a1 to retransmit; otherwise, it completes the transmission. The read data frame is used to read data from other peripherals on the communication bus. The specific process is as follows: Step b1: The data receiving end uses a START frame to indicate the start of reading data; Step b2: After the START frame, use the DATA1 frame to indicate a read data frame operation; Step b3: After the first DATA1 frame, read the data segment, which uses DATA0 frames to represent a single bit of data 0 and DATA1 frames to represent a single bit of data 1. Step b4: After receiving the above data frame, the data receiving end determines whether the data segment is correct based on the checksum. If it is correct, it replies with a DATA0 frame as an ACK signal to indicate that the data was successfully received. Otherwise, it replies with a DATA1 frame as a NACK signal to indicate that the data was not successfully received. In step b5, the data receiving end sends an IDLE frame, and the data sending end reads the IDLE frame to indicate that the data reception has ended; Step b6, continue waiting for the next data frame; When writing and reading data frames, the time interval between each high and low level edge in the basic communication frame is determined, and the accumulated communication rate error is eliminated at the high and low level edges. The specific method is as follows: Let T0 be the duration of the first low level. After configuring the communication rate of the peripheral device, the receiver compares the difference between the configured T0 value and the actual sampled T0 value. If the actual sampled T0 value is within the error range threshold of the configured T0 value, then the low level corresponding to T0 is considered valid. Use the same method to determine the time from the second level to the fifth level, i.e., T1 to T4.

2. The single-line communication protocol according to claim 1, characterized in that, When writing and reading data frames, filtering is applied to each high-low level transition edge in the basic communication frame to eliminate signal noise.

3. A single-line communication protocol according to claim 2, characterized in that, When writing and reading data frames, an adaptive communication rate mode is used, which specifically includes: In step c1, when the adaptive communication rate mode is used, the peripheral device counts the length of T0 through the level edge and the internal clock; where T0 represents the duration of the first low level. Step c2: Sample the SYNC sequence and use T0 to determine whether the SYNC sequence is valid, that is, T1 to T4 are within the error range threshold, and the signal length of the TRD sequence is the preset length; if the SYNC sequence is valid, proceed to step c3; otherwise, proceed to step c1. Step c3: Continue to use T0 as the time base to send and receive subsequent basic communication frames until the IDLE frame is received. At the same time, determine whether the high and low levels of each basic communication frame are valid, that is, whether the level width is within the error range threshold and the signal length of the TRD sequence is the preset length. If all basic communication frames are valid, proceed to step c4; otherwise, after detecting that the current basic communication frame is invalid, proceed to step c1. Step c4: Return to step c2, resample and determine the SYNC sequence.

4. A single-line communication protocol according to claim 3, characterized in that, The error range threshold is: greater than 0.5 times to less than 2 times.

5. A single-line communication protocol according to claim 4, characterized in that, The preset length is 1 to 7 high-level lengths.

6. A single-line communication protocol according to claim 5, characterized in that, A single-wire communication interface is used for communication between the system and external devices, including: The control register (CSR) is used to control the single-wire communication interface. The main interface is used for data exchange between the single-wire communication interface and the internal system; the control register (CSR) is bidirectionally connected to the main interface via the direct memory access (DMA) for data exchange. The interface is used by the system to configure the single-wire communication interface and read and write the control register (CSR). The cache controller is used to control the cache to read and write cached data. The control register CSR is bidirectionally connected to the cache controller and is used to control the cache to send and receive cached data through the cache controller. The transceiver engine is used to communicate with external devices, including: parsing signals received from external devices and converting them into data of the system according to the communication protocol; or parsing data that the system is preparing to send to external devices and converting it into signals corresponding to the communication protocol before sending it to the external devices. The Control Register (CSR) is bidirectionally connected to the transceiver engine and is used to control and configure the transceiver engine; the buffer controller is bidirectionally connected to the transceiver engine and is used to exchange data between the buffer and the transceiver engine.

7. A single-line communication protocol according to claim 6, characterized in that, The buffer controller is a FIFO controller. Cache, which is FIFO random access memory (RAM); The single-line communication interface interacts with the system internally, that is, the main interface interacts with the system through the system bus; The system configures the single-wire communication interface, that is, the interface interacts with the system through the system bus and forwards the system's configuration commands to the control register CSR. The transceiver engine communicates with external devices, that is, the transceiver engine exchanges data with external devices through the communication bus.

Citation Information

Patent Citations

  • Single-line digital communication interface based on AHB bus

    CN112564882A

  • Single-wire communications using iterative baud learning

    US9490999B2