CN103532686B - Serial data transceiver circuit with line sequence adaptive function and its control method - Google Patents
Serial data transceiver circuit with line sequence adaptive function and its control method Download PDFInfo
- Publication number
- CN103532686B CN103532686B CN201210229095.5A CN201210229095A CN103532686B CN 103532686 B CN103532686 B CN 103532686B CN 201210229095 A CN201210229095 A CN 201210229095A CN 103532686 B CN103532686 B CN 103532686B
- Authority
- CN
- China
- Prior art keywords
- signal
- serial
- serial data
- unit
- control unit
- 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
Links
Landscapes
- Communication Control (AREA)
- Dc Digital Transmission (AREA)
Abstract
Description
技术领域 technical field
本申请涉及电路系统技术领域,尤其涉及一种带有线序自适应功能的串行数据收发电路及其控制方法。The present application relates to the technical field of circuit systems, in particular to a serial data transceiver circuit with a line sequence adaptive function and a control method thereof.
背景技术 Background technique
串行数据通信传输由于其信号线数目较少而获得了广泛的应用,例如通用异步接收/发送装置(Universal Asynchronous Receiver/Transmitter,UART)、串行外设接口(Serial Peripheral Interface,SPI)和其他实现方式(如I2C),其中UART是异步串行通信方式,通常使用数据发送(TxD)和数据接收(RxD)两路信号线;SPI是同步串行通信方式,通常使用三线(CLK、DATA和EN三路信号线)或四线(CLK、MOSI、MISO和EN四路信号线)模式。Serial data communication transmission has been widely used due to its small number of signal lines, such as Universal Asynchronous Receiver/Transmitter (UART), Serial Peripheral Interface (SPI) and other Implementation (such as I2C), where UART is an asynchronous serial communication method, usually using two signal lines for data transmission (TxD) and data reception (RxD); SPI is a synchronous serial communication method, usually using three lines (CLK, DATA and EN three-wire) or four-wire (CLK, MOSI, MISO, and EN four-wire) mode.
由于串行数据信号线较少,其线序问题就显得尤为重要,线序的错误将直接导致传输的数据不能被正确接收。在串行信号的传输实现中,由于飞线错误、设计错误和无线信道频率错误等情况,经常会出现线序错误问题。Since there are few serial data signal lines, the line sequence problem is particularly important, and the wrong line sequence will directly cause the transmitted data to be incorrectly received. In the implementation of serial signal transmission, the problem of line sequence error often occurs due to errors in flying wires, design errors, and wireless channel frequency errors.
为检测和修正线序相关问题,已经有若干专利提出了解决方法。Several patents have proposed solutions to detect and correct line sequence related problems.
申请号为201010002667.7的专利《一种线序测试方法》,提出了一种以太网线进行线序测试的方法。但是这种方法只能对以太网线进行测试;并且只有测错功能,而没有自适应纠错功能;同时这种方法基于电阻分压,需要模数转换芯片(下文简称ADC),电阻和ADC的稳定度都会影响线序测试结果。与之类似的专利还有申请号为200820029252.7的专利《网络配线故障模拟试验仪》,同样有没有纠错功能、只能基于RJ-45的缺陷。The patent "A Wire Sequence Test Method" with application number 201010002667.7 proposes a method for performing a wire sequence test on an Ethernet cable. However, this method can only test the Ethernet cable; and only has the error detection function, but no adaptive error correction function; at the same time, this method is based on resistor voltage division, and requires an analog-to-digital conversion chip (hereinafter referred to as ADC), resistors and ADC. Stability will affect the line sequence test results. A similar patent also has the patent "Network Wiring Fault Simulation Tester" with application number 200820029252.7, which also has the defect that it can only be based on RJ-45 because it has no error correction function.
申请号为200910154166.8的专利《一种多芯通信电缆综合测试仪》,提出了一种多芯通信电缆综合测试仪,使用编解码CPU进行线序信息测试,但是这种方法同样需要基于ADC,并且需要单独CPU,并且只能提供测试功能,而不具有自纠错功能。与之类似的专利还有申请号为94223771.4的专利《多线电缆线序及故障检测仪》、申请号为200610146680.3的专利《检测方法》和申请号为200610166865.0的专利《用于对至少一条线缆进行检测的检测方法》,同样有需要单独CPU、只能提供测试功能和不具有自纠错功能的缺陷。Patent Application No. 200910154166.8 "A Comprehensive Tester for Multi-Core Communication Cables" proposes a comprehensive tester for multi-core communication cables, which uses codec CPU to test line sequence information, but this method also needs to be based on ADC, and A separate CPU is required, and it can only provide test functions without self-correcting functions. Similar patents include patent application number 94223771.4 "Multi-wire cable line sequence and fault detector", application number 200610146680.3 patent "detection method" and application number 200610166865.0 patent "used to at least one cable "Detection method for detection" also has the defects of requiring a separate CPU, only providing test functions and not having self-error correction functions.
申请号为200620036870.5的专利《网线线序变换器》,提出了一种网线线序变换器,可以对基于RJ-45的网线进行线序变换,但是这种网线线序变换器只能对基于RJ-45的网线进行变换,并且只能进行固定线序变换,而且没有错误检测和自适应纠错功能。The patent "Network Cable Line Sequence Converter" with the application number of 200620036870.5 proposes a network cable line sequence converter, which can perform line sequence conversion on RJ-45-based network cables, but this network cable line sequence converter can only perform RJ-45 based -45 network cable for conversion, and only fixed line sequence conversion, and there is no error detection and adaptive error correction function.
总结上述专利,可以看出当前专利及其实施方法都存在着只能进行检测或只能进行固定线序切换,并且大都只能基于特定接口(RJ-45)的缺点。Summarizing the above patents, it can be seen that the current patents and their implementation methods all have the disadvantages of only detection or fixed line sequence switching, and most of them can only be based on a specific interface (RJ-45).
如图1所示,图1为现有串行数据信号传输示意图。现有的串行信号收发方式为:由串行信号发送端将发送端处理电路需要发送的数据按协议转换成串行数据信号,串行数据信号在串行数据信号传输信道进行传输,串行数据接收端在接收到串行数据信号之后将按协议将串行数据信号转换回原有数据格式的串行数据,转换回原有数据格式的串行数据将传送给接收端处理电路进行下一步处理。其中,发送端处理电路可以是处理器(CPU或MCU)、数字信号处理器(DSP)或其他处理电路(FPGA、CPLD等),串行数据信号传输信道可以是有线的线缆或PCB电路板金属线,也可以是无线信号信道。As shown in FIG. 1 , FIG. 1 is a schematic diagram of conventional serial data signal transmission. The existing serial signal sending and receiving method is as follows: the serial signal sending end converts the data to be sent by the sending end processing circuit into a serial data signal according to the protocol, and the serial data signal is transmitted on the serial data signal transmission channel, and the serial After receiving the serial data signal, the data receiving end will convert the serial data signal back to the serial data in the original data format according to the protocol, and the serial data converted back to the original data format will be sent to the receiving end processing circuit for the next step deal with. Wherein, the sending end processing circuit can be a processor (CPU or MCU), a digital signal processor (DSP) or other processing circuits (FPGA, CPLD, etc.), and the serial data signal transmission channel can be a wired cable or a PCB circuit board Metal wires can also be wireless signal channels.
以基带控制信号的格式为SPI制式信号为例,SPI信号是一种同步串行外设的接口总线,它可以使处理器与各种外设设备以串行方式进行通信,工作方式为主从式。SPI传输方式分为三线制和四线制两种实现方式,图2上半部分展示了一个正常的三线制SPI实现,三线制SPI一般有以下三路信号:时钟信号(CLK)、使能信号(EN)和数据信号(DATA)。其中CLK信号为采样信号,当CLK信号为上升沿时对信号进行采样,当采样时EN稳定为高电平则DATA的当前值将被作为有效数据读取,如DATA为低电平则作为数据‘0’读取,若DATA为高电平做作为数据‘1’读取。如图2所示,为了保证CLK上升沿可以准确的采样,EN信号和DATA均应在CLK上升之前准备好,在CLK上升之前这段时间在数字电路上称之为“建立时间(Setup Time)”,图2中所示的实例中EN相对DATA信号更提前一些时间建立。如图2上半部分所示的实例,接收端在时钟上升沿采样,在EN为高电平的情况下,依次采样到‘0’、‘1’、‘0’、‘1’、‘1’、‘0’、‘1’和‘0’。当前实例中使用MSB最先的传输机制(Most Significant Bit,最高有效位),也即第一个‘0’为MSB,采样的8比特结果为0b01011010,以十进制表示为90,十六进制表示为0x5A。Taking the format of the baseband control signal as an SPI standard signal as an example, the SPI signal is a synchronous serial peripheral interface bus, which enables the processor to communicate with various peripheral devices in a serial manner, and the working mode is master-slave Mode. The SPI transmission mode is divided into three-wire system and four-wire system. The upper part of Figure 2 shows a normal three-wire SPI implementation. The three-wire SPI generally has the following three signals: clock signal (CLK), enable signal (EN) and data signal (DATA). The CLK signal is a sampling signal. When the CLK signal is a rising edge, the signal is sampled. When EN is stable at high level during sampling, the current value of DATA will be read as valid data. If DATA is low level, it will be read as data. '0' is read, if DATA is high level, it is read as data '1'. As shown in Figure 2, in order to ensure that the rising edge of CLK can be accurately sampled, both the EN signal and DATA should be ready before the CLK rises. The period before the CLK rises is called "Setup Time" on the digital circuit. ", in the example shown in Figure 2, EN is established earlier than the DATA signal. In the example shown in the upper part of Figure 2, the receiving end samples at the rising edge of the clock, and when EN is high, it samples '0', '1', '0', '1', '1' in sequence ', '0', '1', and '0'. In the current example, the MSB first transmission mechanism (Most Significant Bit, most significant bit) is used, that is, the first '0' is the MSB, and the sampled 8-bit result is 0b01011010, expressed as 90 in decimal and hexadecimal is 0x5A.
图2下半部分展示了三线SPI由于EN信号和DATA信号错误交换的线序错误而造成的数据传输错误。由于原应为DATA的数据电平被作为EN处理,而原应为EN的数据电平被作为DATA处理,使时钟上升沿只有在原DATA信号(现为错误的EN信号)为‘1’的时候才会认定有效数据,而在DATA信号为‘1’的时候,EN信号一定为‘1’,这就造成SPI采到的信号全部为‘1’,采到8个有效数据的时候所得到的信号数值为8位二进制数据0b11111111(以十六进制表示为0xFF,以十进制表示为255)。The lower part of Figure 2 shows the data transmission error caused by the three-wire SPI due to the wrong line sequence of the wrong exchange of the EN signal and the DATA signal. Since the data level that should be DATA is treated as EN, and the data level that should be EN is treated as DATA, the rising edge of the clock is only when the original DATA signal (now the wrong EN signal) is '1' Valid data will be identified, and when the DATA signal is '1', the EN signal must be '1', which causes all the signals collected by the SPI to be '1', and the result obtained when 8 valid data are collected The signal value is 8-bit binary data 0b11111111 (0xFF in hexadecimal, 255 in decimal).
图3下半部分展示了三线SPI由于CLK信号和DATA信号错误交换的线序错误而造成的数据传输错误。由于原应为DATA的数据电平被作为CLK处理,而原应为CLK的数据电平被作为DATA处理,使时钟(原来的DATA信号)上升沿时EN信号一定为‘1’(如前所述,EN信号比DATA信号(被作为CLK信号)提前一些时间建立),而DATA信号(原来的CLK信号)一定为‘0’(由于建立时间的缘故,DATA信号比CLK信号提前建立,而当DATA信号作为时钟信号(CLK)时,其上升沿采样的时候DATA信号(原CLK)正处在上升沿之前,一定为‘0’),这就造成SPI采到的信号全部为‘0’,采到8个有效数据的时候所得到的信号数值为8位二进制数据0b00000000(以十六进制表示为0x00,以十进制表示为0)。The lower part of Figure 3 shows the data transmission error caused by the three-wire SPI due to the wrong line sequence of the wrong exchange of the CLK signal and the DATA signal. Since the data level that should be DATA is processed as CLK, and the data level that should be CLK is processed as DATA, the EN signal must be '1' when the clock (the original DATA signal) rises (as previously As mentioned above, the EN signal is established some time earlier than the DATA signal (used as the CLK signal), and the DATA signal (the original CLK signal) must be '0' (due to the establishment time, the DATA signal is established earlier than the CLK signal, and when When the DATA signal is used as the clock signal (CLK), when the rising edge is sampled, the DATA signal (the original CLK) is just before the rising edge, and must be '0'), which causes all the signals collected by the SPI to be '0', When 8 valid data are collected, the obtained signal value is 8-bit binary data 0b00000000 (0x00 in hexadecimal, 0 in decimal).
发明内容 Contents of the invention
(一)要解决的技术问题(1) Technical problems to be solved
针对现有技术中存在的上述一个或多个问题,本发明的主要目的在于提供一种带有线序自适应功能的串行数据收发电路及其控制方法,以对线序错误进行检测,自适应调整串行信号的线序和相对时延,使数据收发两端得以正确的传输数据。In view of the above-mentioned one or more problems existing in the prior art, the main purpose of the present invention is to provide a serial data transceiver circuit with a line sequence adaptive function and a control method thereof, so as to detect line sequence errors and self-adapt Adjust the line sequence and relative delay of the serial signal, so that the data can be transmitted correctly at both ends of the data sending and receiving ends.
(二)技术方案(2) Technical solution
根据本发明的一个方面,本发明提供了一种带有线序自适应功能的串行数据收发电路,该电路包括串行数据发送端信号处理模块100和串行数据接收端信号处理模块200,其中,该串行数据发送端信号处理模块100前端与串行数据发送端信号生成模块300连接,后端与串行信号传输信道连接;该串行数据接收端信号处理模块200前端与串行信号传输信道连接,后端与串行数据接收端信号接收模块400连接。According to one aspect of the present invention, the present invention provides a serial data transceiver circuit with a line sequence adaptive function, the circuit includes a serial data sending end signal processing module 100 and a serial data receiving end signal processing module 200, wherein , the front end of the serial data sending end signal processing module 100 is connected to the serial data sending end signal generating module 300, and the back end is connected to the serial signal transmission channel; the front end of the serial data receiving end signal processing module 200 is connected to the serial signal transmission The channel is connected, and the back end is connected with the signal receiving module 400 of the serial data receiving end.
上述方案中,所述串行数据发送端信号处理模块100包括串行信号模式生成单元101、串行信号发送端控制单元104、反馈信号接收单元105和错误模型判定单元106,其中,串行信号模式生成单元101分别与串行数据发送端信号生成模块300、串行信号传输信道和串行信号发送端控制单元104连接,串行信号发送端控制单元104分别与串行信号模式生成单元101、错误模型判定单元106和反馈信号接收单元105连接。In the above solution, the serial data sending end signal processing module 100 includes a serial signal pattern generation unit 101, a serial signal sending end control unit 104, a feedback signal receiving unit 105 and an error model determination unit 106, wherein the serial signal The pattern generating unit 101 is connected with the serial data sending end signal generating module 300, the serial signal transmission channel and the serial signal sending end control unit 104 respectively, and the serial signal sending end control unit 104 is respectively connected with the serial signal pattern generating unit 101, The error model determination unit 106 is connected to the feedback signal receiving unit 105 .
上述方案中,所述串行信号模式生成单元101,包括串行信号交叉矩阵子单元103,用于接收串行数据发送端信号生成模块300发出的原始串行数据信号,接收串行信号发送端控制单元104的控制信号,并将原始串行数据信号经过其串行信号交叉矩阵子单元103处理后,输出已修正串行数据信号。所述串行信号交叉矩阵子单元103用于根据串行信号发送端控制单元的指令进行信号交叉。In the above solution, the serial signal pattern generation unit 101 includes a serial signal cross matrix subunit 103, which is used to receive the original serial data signal sent by the serial data sending end signal generation module 300, and receive the serial signal sending end control signal of the control unit 104, and after the original serial data signal is processed by its serial signal cross matrix subunit 103, the corrected serial data signal is output. The serial signal crossing matrix subunit 103 is used to perform signal crossing according to the instruction of the serial signal sending end control unit.
上述方案中,所述串行信号发送端控制单元104用于接收反馈信号接收单元105传送的串行数据接收反馈信号,并将其传送至错误模型判定单元106,接收错误模型判定单元106返回的错误类型,根据该错误类型控制串行信号模式生成单元101的工作模式,如果错误类型未知,则串行信号发送端控制单元104将向串行数据发送端信号生成模块300发出报警信息。In the above solution, the serial signal sending end control unit 104 is used to receive the serial data reception feedback signal transmitted by the feedback signal receiving unit 105, and transmit it to the error model determination unit 106, and receive the feedback signal returned by the error model determination unit 106. Error type, control the working mode of the serial signal pattern generating unit 101 according to the error type, if the error type is unknown, the serial signal sending end control unit 104 will send an alarm message to the serial data sending end signal generating module 300 .
上述方案中,所述反馈信号接收单元105用于对串行数据接收端反馈信号进行预处理,并将处理后的信号传送给串行信号发送端控制单元104。In the above solution, the feedback signal receiving unit 105 is configured to preprocess the feedback signal of the serial data receiving end, and transmit the processed signal to the serial signal sending end control unit 104 .
上述方案中,所述错误模型判定单元106,包含错误模型存储子单元107,用于接收串行信号发送端控制单元104发送的错误判定请求及串行数据接收端反馈信号,通过与错误模型存储子单元107中存储的模型的比对和分析,分析当前错误模型,将结果传送给串行信号发送端控制单元104。In the above scheme, the error model judgment unit 106 includes an error model storage subunit 107, which is used to receive the error judgment request sent by the serial signal sending end control unit 104 and the serial data receiving end feedback signal, and store The comparison and analysis of the models stored in the subunit 107 analyzes the current error model and transmits the result to the serial signal sending end control unit 104 .
上述方案中,所述串行数据接收端信号处理模块200包括:串行信号接收端控制单元201,用于接收串行信号传输信道上的已修正串行数据信号,并将此信号传送至串行数据接收端信号接收模块400和反馈信号生成单元202,并使能反馈信号生成单元202在反馈信道上产生串行数据接收端反馈信号;反馈信号生成单元202,用于接收串行信号接收端控制单元201传送的串行数据信号及反馈信号指令,生成串行数据接收端反馈信号,输出给反馈信号接收单元105。所述反馈信号生成单元202在生成的反馈信号中加入识别信号。In the above solution, the serial data receiver signal processing module 200 includes: a serial signal receiver control unit 201, configured to receive the corrected serial data signal on the serial signal transmission channel, and transmit the signal to the serial Row data receiving end signal receiving module 400 and feedback signal generating unit 202, and enable feedback signal generating unit 202 to generate serial data receiving end feedback signal on feedback channel; Feedback signal generating unit 202 is used to receive serial signal receiving end The serial data signal and the feedback signal instruction transmitted by the control unit 201 generate a serial data receiving terminal feedback signal, and output it to the feedback signal receiving unit 105 . The feedback signal generating unit 202 adds an identification signal to the generated feedback signal.
根据本发明的另一个方面,本发明还提供了一种串行数据收发控制方法,应用于所述的带有线序自适应功能的串行数据收发电路,该方法包括:According to another aspect of the present invention, the present invention also provides a serial data transceiver control method, which is applied to the serial data transceiver circuit with a line sequence adaptive function, and the method includes:
步骤A:串行信号发送端控制单元104控制串行信号模式生成单元101发送测试串行数据信号;Step A: the serial signal sending end control unit 104 controls the serial signal pattern generating unit 101 to send a test serial data signal;
步骤B:串行信号发送端控制单元104接收串行数据接收端反馈信号并向错误模型判定单元106发送判定请求及数据;Step B: the serial signal sending end control unit 104 receives the serial data receiving end feedback signal and sends a judgment request and data to the error model judging unit 106;
步骤C,当串行信号发送端控制单元104接收到错误模型判定单元106的“正常”信号后,控制串行信号模式生成单元101将原始串行数据信号直接传送至串行信号传输信道;Step C, when the serial signal sending end control unit 104 receives the "normal" signal from the error model determination unit 106, control the serial signal pattern generation unit 101 to directly transmit the original serial data signal to the serial signal transmission channel;
步骤D,当串行信号发送端控制单元104接收到错误模型判定单元106的“已知错误模型”信号后,控制串行信号模式生成单元101按特定模式进行信号演示和信号交叉,将处理后的信号传送至串行信号传输信道;Step D, when the serial signal sending end control unit 104 receives the "known error model" signal from the error model determination unit 106, it controls the serial signal pattern generation unit 101 to perform signal presentation and signal crossover in a specific pattern, and the processed The signal is transmitted to the serial signal transmission channel;
步骤E,当串行信号发送端控制单元104接收到错误模型判定单元106的“未知错误模型”信号后,向串行数据发送端信号生成模块300发出报警信息并等待进一步处理指令。Step E, after receiving the "unknown error model" signal from the error model determination unit 106, the serial signal sending end control unit 104 sends an alarm message to the serial data sending end signal generation module 300 and waits for further processing instructions.
(三)有益效果(3) Beneficial effects
本发明提供的带有线序自适应功能的串行数据收发电路及其控制方法,不但能够较好的检测由于串行信号传输中的线序错误,而且可以自适应调整串行信号线序,使数据收发两端得以正确地传输数据。同时本发明有较好的通用性,可以应用于各种有线或无线等传输信道中的各种制式串行数据传输。The serial data transceiver circuit and its control method with line sequence self-adaptive function provided by the present invention can not only better detect the line sequence error in serial signal transmission, but also can adaptively adjust the line sequence of the serial signal, so that The data receiving and sending ends can transmit data correctly. At the same time, the present invention has good versatility, and can be applied to various standard serial data transmissions in various wired or wireless transmission channels.
附图说明 Description of drawings
图1为现有串行数据信号传输的示意图;FIG. 1 is a schematic diagram of existing serial data signal transmission;
图2为现有以三线SPI为例说明由于线序错误(EN与DATA信号错误交换)造成的数据传输错误的示意图。FIG. 2 is a schematic diagram illustrating a data transmission error caused by a wrong line sequence (wrong exchange of EN and DATA signals) by taking the three-wire SPI as an example.
图3为现有以三线SPI为例说明由于线序错误(CLK与DATA信号错误交换)造成的数据传输错误的示意图。FIG. 3 is a schematic diagram illustrating a data transmission error caused by a wrong line sequence (wrong exchange of CLK and DATA signals) by taking a three-wire SPI as an example.
图4本发明提供的带有线序自适应功能的串行数据收发电路的硬件架构示意图。FIG. 4 is a schematic diagram of the hardware architecture of the serial data transceiver circuit with line sequence adaptive function provided by the present invention.
图5为本发明提供的带有线序自适应功能的串行数据收发电路在单向串行数据传输系统中的实现示意图。FIG. 5 is a schematic diagram of the implementation of the serial data transceiver circuit with the line sequence adaptive function provided by the present invention in the unidirectional serial data transmission system.
图6为本发明提供的带有线序自适应功能的串行数据收发电路在双向串行数据传输系统中的实现示意图。FIG. 6 is a schematic diagram of the implementation of the serial data transceiver circuit with line sequence adaptive function provided in the present invention in a bidirectional serial data transmission system.
图7为本发明提供的带有线序自适应功能的串行数据收发电路的错误模型判断的流程图。FIG. 7 is a flow chart of error model judgment of the serial data transceiver circuit with line sequence adaptive function provided by the present invention.
图8为串行信号交叉矩阵子单元工作功能的示意图。FIG. 8 is a schematic diagram of working functions of a serial signal cross matrix subunit.
图9为测试信号的产生、反馈及错误模型判定的流程图。FIG. 9 is a flow chart of test signal generation, feedback and error model determination.
具体实施方式 detailed description
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
在下面所述的具体实施方式中,假设串行数据信号的格式为SPI制式信号,所属领域的技术人员应当了解,对于其他制式的信号,本发明同样适用。In the specific implementation manner described below, it is assumed that the format of the serial data signal is an SPI signal, and those skilled in the art should understand that the present invention is also applicable to signals of other formats.
在本发明的一个示例性实施例中,提出了一种带有线序自适应功能的串行数据信号收发电路。如图4所示,图4本发明提供的带有线序自适应功能的串行数据收发电路的硬件架构示意图,该串行数据信号收发电路包括串行数据发送端信号处理模块100和串行数据接收端信号处理模块200。根据系统实现需求,如系统为单向数据传输需求,则可以按图5所示在发送端和接收端分别实施发送端信号处理模块和接收端信号处理模块。如系统为双向数据传输要求,则按图6所示在A端和B端均实现所述发送端信号处理模块和接收端信号处理模块。图4中的串行数据发送端信号生成模块300和串行数据接收端信号接收模块400为图1中所示的现有串行数据传输的组成部分。In an exemplary embodiment of the present invention, a serial data signal transceiver circuit with a line sequence adaptive function is proposed. As shown in Figure 4, Figure 4 is a schematic diagram of the hardware architecture of the serial data transceiver circuit with line sequence adaptive function provided by the present invention, the serial data signal transceiver circuit includes a serial data sending end signal processing module 100 and a serial data The signal processing module 200 at the receiving end. According to the requirements of system implementation, if the system requires one-way data transmission, the signal processing module at the sending end and the signal processing module at the receiving end can be respectively implemented at the sending end and the receiving end as shown in Fig. 5 . If the system requires two-way data transmission, the signal processing module at the sending end and the signal processing module at the receiving end are implemented at both the A end and the B end as shown in FIG. 6 . The serial data sending end signal generating module 300 and the serial data receiving end signal receiving module 400 in FIG. 4 are components of the existing serial data transmission shown in FIG. 1 .
其中,串行数据发送端信号处理模块100,其前端与串行数据发送端信号生成模块300连接,其后端与串行信号传输信道连接,该模块包括串行信号模式生成单元101、串行信号发送端控制单元104、反馈信号接收单元105和错误模型判定单元106。其中:Wherein, the serial data sending end signal processing module 100, its front end is connected with the serial data sending end signal generation module 300, and its rear end is connected with the serial signal transmission channel, and this module includes a serial signal pattern generating unit 101, a serial A signal sending end control unit 104 , a feedback signal receiving unit 105 and an error model determining unit 106 . in:
串行信号模式生成单元101,包括串行信号交叉矩阵子单元103,分别与串行数据发送端信号生成模块300、串行信号传输信道和串行信号发送端控制单元104连接,用于接收串行数据发送端信号生成模块300发出的原始串行数据信号,接收串行信号发送端控制单元104的控制信号,并将原始串行数据信号经过其串行信号交叉矩阵子单元103处理后,输出已修正串行数据信号。The serial signal pattern generation unit 101 includes a serial signal cross matrix subunit 103, which is respectively connected to the serial data sending end signal generation module 300, the serial signal transmission channel and the serial signal sending end control unit 104 for receiving the serial signal The original serial data signal sent by the line data sending end signal generation module 300 receives the control signal of the serial signal sending end control unit 104, and outputs the original serial data signal after being processed by its serial signal cross matrix subunit 103 Corrected serial data signal.
串行信号发送端控制单元104,分别与串行信号模式生成单元101、错误模型判定单元106和反馈信号接收单元105连接,用于接收反馈信号接收单元105传送的串行数据接收反馈信号,并将其传送至错误模型判定单元106,接收错误模型判定单元106返回的错误类型,根据该错误类型控制串行信号模式生成单元101的工作模式,如果错误类型未知,则串行信号发送端控制单元104将向串行数据发送端信号生成模块300发出报警信息。The serial signal sending end control unit 104 is respectively connected with the serial signal pattern generation unit 101, the error model judgment unit 106 and the feedback signal receiving unit 105, and is used to receive the serial data receiving feedback signal transmitted by the feedback signal receiving unit 105, and Send it to the error model determination unit 106, receive the error type returned by the error model determination unit 106, control the working mode of the serial signal pattern generation unit 101 according to the error type, if the error type is unknown, the serial signal sending end control unit 104 will send an alarm message to the signal generating module 300 of the serial data sending end.
反馈信号接收单元105,用于对串行数据接收端反馈信号进行预处理,并将处理后的信号传送给串行信号发送端控制单元104。The feedback signal receiving unit 105 is configured to preprocess the feedback signal of the serial data receiving end, and transmit the processed signal to the serial signal sending end control unit 104 .
错误模型判定单元106,包含错误模型存储子单元107,与串行信号发送端控制单元104连接,接收串行信号发送端控制单元104发送的错误判定请求及串行数据接收端反馈信号,通过与错误模型存储子单元107中存储的模型的比对和分析,分析当前错误模型,将结果传送给串行信号发送端控制单元104。The error model judgment unit 106 includes the error model storage subunit 107, is connected with the serial signal sending end control unit 104, receives the error judgment request and the serial data receiving end feedback signal sent by the serial signal sending end control unit 104, and passes the Compare and analyze the models stored in the error model storage subunit 107 , analyze the current error model, and send the result to the serial signal sending end control unit 104 .
串行数据接收端信号处理模块200,其前端与串行信号传输信道连接,其后端与串行数据接收端信号接收模块400连接,该模块包括串行信号接收端控制单元201和反馈信号生成单元202。其中:Serial data receiving terminal signal processing module 200, its front end is connected with serial signal transmission channel, and its back end is connected with serial data receiving terminal signal receiving module 400, and this module comprises serial signal receiving terminal control unit 201 and feedback signal generation Unit 202. in:
串行信号接收端控制单元201,接收串行信号传输信道上的已修正串行数据信号,并将此信号传送至串行数据接收端信号接收模块400和反馈信号生成单元202。The serial signal receiving end control unit 201 receives the corrected serial data signal on the serial signal transmission channel, and transmits the signal to the serial data receiving end signal receiving module 400 and the feedback signal generating unit 202 .
反馈信号生成单元202,接收串行信号接收端控制单元201传送的串行数据信号及反馈信号指令,生成串行数据接收端反馈信号,输出给反馈信号接收单元105。The feedback signal generating unit 202 receives the serial data signal and the feedback signal instruction transmitted by the serial signal receiving end control unit 201 , generates a serial data receiving end feedback signal, and outputs it to the feedback signal receiving unit 105 .
下面分3个小节以实例性实施例对本发明进行说明:“串行数据发送端信号处理模块100部分”和“串行数据接收端端信号处理模块200部分”说明了本发明的硬件电路,即前述发明内容中所述的“一种串行数据收发电路”;“测试信号的产生、反馈及错误模型判定流程”说明了本发明在错误模型判定方面的流程,即前述发明内容中所述的“一种串行数据收发控制方法”。The present invention is described below in 3 subsections with exemplary embodiments: "serial data sending end signal processing module 100 part" and "serial data receiving end signal processing module 200 part" have described the hardware circuit of the present invention, namely "A serial data transceiver circuit" described in the foregoing summary of the invention; "test signal generation, feedback, and error model determination process" illustrate the process of the present invention in terms of error model determination, that is, the process described in the foregoing summary of the invention "A Serial Data Transceiver Control Method".
串行数据发送端信号处理模块100部分Serial data sending end signal processing module 100 parts
串行信号模式生成单元101,内部包含串行信号交叉矩阵子单元103,前端与串行数据发送端信号生成模块300连接,接收原始串行数据信号,后端与串行信号传输信道连接,用于对原始串行数据信号进行处理(修正线序)并输出已修正串行数据信号。The serial signal pattern generation unit 101 includes a serial signal cross matrix subunit 103 inside, the front end is connected to the serial data sending end signal generation module 300, receives the original serial data signal, and the back end is connected to the serial signal transmission channel, using It is used to process the original serial data signal (correct line sequence) and output the corrected serial data signal.
串行信号交叉矩阵子单元103,包含在串行信号模式生成单元101中,可以根据串行信号发送端控制单元的指令进行信号交叉。在本实施例中,端口0、1、2分别定义为正常传输中的EN、CLK和DATA信号。如图8所示,本发明以图3中的信号错位问题来解释串行信号交叉矩阵子单元的运行方式:对于四路信号(为了同时支持三线式SPI和四线式SPI,我们以通用性更好的四线交叉矩阵为例),串行信号发送端控制单元104向串行信号模式生成单元101给出4对配置数据,形式如下:(输入端口,输出端口),如图8中的(2,1)即表示自端口2输入的信号经矩阵后由端口1输出。串行信号交叉矩阵子单元103在工作时读取该配置数据并修正信号线序,如图8所示,被错误交换的端口1和端口2信号(DATA与CLK信号)被串行信号交叉矩阵子单元103修正,恢复为正确的信号连接。串行信号交叉矩阵子单元103同时在串行信号发送端控制单元104的指令下可以输出串行数据测试信号,如图9所示,当前实施例中的具体处理流程参见下文“测试信号的产生、反馈及错误模型判定流程”一节。The serial signal crossover matrix subunit 103 is included in the serial signal pattern generating unit 101 and can perform signal crossover according to the instruction of the serial signal sending end control unit. In this embodiment, ports 0, 1, and 2 are respectively defined as EN, CLK, and DATA signals in normal transmission. As shown in Figure 8, the present invention explains the mode of operation of the serial signal crossover matrix subunit with the signal misalignment problem in Figure 3: A better four-wire cross matrix is an example), the serial signal sending end control unit 104 provides 4 pairs of configuration data to the serial signal pattern generating unit 101, the form is as follows: (input port, output port), as shown in Figure 8 (2, 1) means that the signal input from port 2 is output from port 1 after passing through the matrix. The serial signal cross matrix subunit 103 reads the configuration data and corrects the signal line order during operation. As shown in FIG. The subunit 103 is corrected to restore the correct signal connection. The serial signal cross matrix subunit 103 can output the serial data test signal under the instruction of the serial signal sending end control unit 104 at the same time, as shown in FIG. , Feedback and Error Model Judgment Process” section.
串行信号发送端控制单元104,与反馈信号接收单元105、串行信号模式生成单元101和错误模型判定单元106相连接,用于接收反馈信号接收单元105进行预处理后的反馈信号,并将上述信号传送给错误模型判定单元106,在收到错误模型判定单元106的返回结果后,若结果为“正常”或“已知错误模型”,则按相应结果配置修正串行信号交叉矩阵子单元103的配置数据;若结果为“未知错误模型”,则串行信号发送端控制单元104将向串行数据发送端信号生成模块300发出报警信息。同时,串行数据发送端控制单元104还可以控制串行信号模式生成单元101生成串行数据测试信号,如图9所示,当前实施例中的具体处理流程参见下文“测试信号的产生、反馈及错误模型判定流程”一节。The serial signal sending end control unit 104 is connected with the feedback signal receiving unit 105, the serial signal pattern generating unit 101 and the error model determination unit 106, and is used to receive the feedback signal after the feedback signal receiving unit 105 preprocesses, and The above signal is transmitted to the error model determination unit 106, and after receiving the return result of the error model determination unit 106, if the result is "normal" or "known error model", then configure the corrected serial signal cross matrix subunit according to the corresponding result 103 configuration data; if the result is “unknown error model”, the serial signal sending end control unit 104 will send an alarm message to the serial data sending end signal generation module 300 . At the same time, the serial data sending end control unit 104 can also control the serial signal pattern generating unit 101 to generate a serial data test signal, as shown in FIG. and error model judgment process” section.
反馈信号接收单元105,与反馈信道和串行信号发送端控制单元104连接,用于接收反馈信道上的信号,并将其预处理为串行数据发送端信号处理模块中各部分可以处理的信号。例如反馈信道上信号为5V TTL电平,而串行数据发送端信号处理模块100中使用1.8V COMS电平,则反馈信号接收单元105需要将反馈信号中的信号采样并转换为1.8V CMOS电平信号。再例如反馈信道上信号和串行数据发送端信号处理模块100均为1.8V CMOS电平,但由于反馈信道的信号衰减,实际到达反馈信号接收单元105的电平只有1.2V左右时,反馈信号接收单元105将对信道上信号进行采样和重生成,恢复成标准的1.8V CMOS电平。The feedback signal receiving unit 105 is connected to the feedback channel and the serial signal sending end control unit 104, and is used to receive the signal on the feedback channel and preprocess it into a signal that can be processed by each part of the serial data sending end signal processing module . For example, the signal on the feedback channel is at a 5V TTL level, and the signal processing module 100 at the serial data sending end uses a 1.8V CMOS level, then the feedback signal receiving unit 105 needs to sample and convert the signal in the feedback signal into a 1.8V CMOS level. flat signal. For another example, the signals on the feedback channel and the signal processing module 100 of the serial data sending end are both at 1.8V CMOS level, but due to the signal attenuation of the feedback channel, when the level actually reaching the feedback signal receiving unit 105 is only about 1.2V, the feedback signal The receiving unit 105 will sample and regenerate the signal on the channel, and restore it to a standard 1.8V CMOS level.
错误模型判定单元106,与串行信号发送端控制单元104连接,接收串行信号发送端控制单元104传送的反馈信号及错误模型判定请求,并将该反馈信号与错误模型存储子单元107中的信号进行对比,得出错误模型判定结果(“正常”、“已知错误模型”或“未知错误模型”)及错误模型代码(“已知错误模型”的具体类型),将该错误模型判定结果传送给串行信号发送端控制单元104,并由串行信号发送端控制单元104做进一步处理。当前实施例中的错误模型判定过程如图9所示,参见下文“测试信号的产生、反馈及错误模型判定流程”一节。The error model judgment unit 106 is connected with the serial signal sending end control unit 104, receives the feedback signal and the error model judgment request transmitted by the serial signal sending end control unit 104, and combines the feedback signal with the error model storage subunit 107 The signals are compared to obtain the error model judgment result ("normal", "known error model" or "unknown error model") and the error model code (the specific type of "known error model"), and the error model judgment result The data is transmitted to the serial signal sending end control unit 104, and further processed by the serial signal sending end control unit 104. The error model determination process in the current embodiment is shown in FIG. 9 , see the section "Generation and Feedback of Test Signals and Error Model Determination Process" below.
串行数据发接收端信号处理模块200部分Serial data sending and receiving end signal processing module 200 part
串行信号接收端控制单元201,与串行信号传输信道、反馈信号生成单元202和串行数据接收端信号接收模块400连接,用于接收并预处理串行信号传输信道上的已修正串行数据信号(对电平预处理方式同所述反馈信号接收单元105),同时,将接收并预处理的信号传送给反馈信号生成单元202,并使能反馈信号生成单元202在反馈信道上产生串行数据接收端反馈信号。The serial signal receiving end control unit 201 is connected with the serial signal transmission channel, the feedback signal generating unit 202 and the serial data receiving end signal receiving module 400, for receiving and preprocessing the corrected serial signal on the serial signal transmission channel. data signal (the level preprocessing method is the same as the feedback signal receiving unit 105), and at the same time, the received and preprocessed signal is sent to the feedback signal generating unit 202, and the feedback signal generating unit 202 is enabled to generate a serial signal on the feedback channel Line data receiving end feedback signal.
反馈信号生成单元202,与串行信号接收端控制单元201和反馈信道连接,用于接收串行信号接收端控制单元201传送的数据信号和使能指令,并在反馈信道上生成串行数据接收端反馈信号。为了令串行数据发送端信号处理模块100的各单元可以识别反馈信号,反馈信号生成单元202需要在反馈信号中加入识别信号,在当前实施例中为前导信号,反馈信号的生成如图9所示,参见下文“测试信号的产生、反馈及错误模型判定流程”一节。The feedback signal generation unit 202 is connected with the serial signal receiving end control unit 201 and the feedback channel, and is used to receive the data signal and the enabling instruction transmitted by the serial signal receiving end control unit 201, and generate a serial data reception signal on the feedback channel. terminal feedback signal. In order to enable each unit of the signal processing module 100 at the serial data sending end to identify the feedback signal, the feedback signal generation unit 202 needs to add an identification signal to the feedback signal, which is a leading signal in the current embodiment, and the generation of the feedback signal is shown in FIG. 9 For more information, please refer to the section "Generation of Test Signals, Feedback and Error Model Judgment Process" below.
测试信号的产生、反馈及错误模型判定流程Test signal generation, feedback and error model judgment process
如图7所示,本发明提出的带有线序自适应功能的串行数据收发电路在进行一次数据传输时,流程如下:首先,串行信号发送端控制单元104控制串行信号模式生成单元101发送测试串行数据信号(步骤A);在接收到测试信号后,串行信号接收端控制单元201将数据传送给反馈信号生成单元202,并使能反馈信号生成单元202在反馈信道上生成串行数据接收端反馈信号,该反馈信号将加入标示符,供反馈信号接收单元105识别(当前实施例使用前导符作为标示符)。串行信号发送端控制单元104在接收到经过反馈信号接收单元105预处理的信号后,将信号数据及请求传送给错误模型判定单元106,错误模型判定单元106将该信号数据与错误模型存储子单元107中的特征码进行比对,并得出错误模型判定结果(“正常”、“已知错误模型”或“未知错误模型”及判断代码)返回给串行信号发送端控制单元104(步骤B);串行信号发送端控制单元104将根据判定结果控制串行信号模式生成单元101并设定串行信号交叉矩阵子单元103的配置数据(步骤C、步骤D或步骤E);步骤C,当串行信号发送端控制单元104接收到错误模型判定单元106的“正常”信号后,控制串行信号模式生成单元101将原始串行数据信号直接传送至串行信号传输信道;步骤D,当串行信号发送端控制单元104接收到错误模型判定单元106的“已知错误模型”信号后,控制串行信号模式生成单元101按特定模式进行信号演示和信号交叉,将处理后的信号传送至串行信号传输信道;步骤E,当串行信号发送端控制单元104接收到错误模型判定单元106的“未知错误模型”信号后,向串行数据发送端信号生成模块300发出报警信息并等待进一步处理指令。As shown in Figure 7, when the serial data transceiver circuit with line sequence adaptive function proposed by the present invention performs a data transmission, the process is as follows: first, the serial signal sending end control unit 104 controls the serial signal pattern generation unit 101 Send a test serial data signal (step A); after receiving the test signal, the serial signal receiver control unit 201 transmits the data to the feedback signal generating unit 202, and enables the feedback signal generating unit 202 to generate a serial signal on the feedback channel The row data receiving end feeds back a signal, and the feedback signal will add an identifier for identification by the feedback signal receiving unit 105 (the current embodiment uses the preamble as the identifier). After receiving the signal pre-processed by the feedback signal receiving unit 105, the serial signal sending end control unit 104 transmits the signal data and the request to the error model judgment unit 106, and the error model judgment unit 106 combines the signal data with the error model memory The feature code in the unit 107 is compared, and draws error model judgment result (" normal ", " known error model " or " unknown error model " and judgment code) returns to serial signal sending end control unit 104 (step B); The serial signal sending end control unit 104 will control the serial signal pattern generation unit 101 and set the configuration data (step C, step D or step E) of the serial signal cross matrix subunit 103 according to the judgment result; Step C , when the serial signal sending end control unit 104 receives the "normal" signal from the error model determination unit 106, control the serial signal pattern generation unit 101 to directly transmit the original serial data signal to the serial signal transmission channel; step D, When the serial signal sending end control unit 104 receives the "known error model" signal from the error model determination unit 106, it controls the serial signal pattern generation unit 101 to perform signal demonstration and signal crossover in a specific mode, and transmits the processed signal To the serial signal transmission channel; step E, after the serial signal sending end control unit 104 receives the "unknown error model" signal of the error model determination unit 106, send an alarm message to the serial data sending end signal generation module 300 and wait Further processing instructions.
图9以具体事例说明了测试信号的产生、反馈及错误模型判定流程。如图9所示,在一次数据传输开始的时候,串行信号发送端控制单元104控制串行信号模式生成单元101在串行信号传输信道上产生测试信号,本实施例中的测试信号为二进制0b01011010(十六进制0x5A),串行信号接收端控制单元201接收到测试信号后将信号和使能命令传送至反馈单元生成单元202,反馈单元生成单元202在反馈数据最前加入2bit前导符(当前实施例中为0b01)作为标示符并将接收到的前8bit作为反馈信号在前导符之后一次输出。Fig. 9 illustrates the flow of test signal generation, feedback and error model determination with specific examples. As shown in Figure 9, when a data transmission starts, the serial signal sending end control unit 104 controls the serial signal pattern generating unit 101 to generate a test signal on the serial signal transmission channel, and the test signal in this embodiment is binary 0b01011010 (hexadecimal 0x5A), the serial signal receiver control unit 201 transmits the signal and the enable command to the feedback unit generation unit 202 after receiving the test signal, and the feedback unit generation unit 202 adds a 2-bit preamble ( In the current embodiment, 0b01) is used as an identifier and the received first 8 bits are output once after the preamble as a feedback signal.
若当前线序正确,则加入前导符的10bit数据依次为:“0”、“1”、“0”、“1”、“0”、“1”、“1”、“0”、“1”、“0”,(除去2bit前导符后数值为0x5A)。If the current line sequence is correct, the 10-bit data added to the leading character are: "0", "1", "0", "1", "0", "1", "1", "0", "1" ", "0", (the value is 0x5A after removing the 2-bit leading character).
若当前线序出现了如图2所示的EN和DATA信号错误交换的错误,则加入前导符的10bit数据依次为:“0”、“1”、“1”、“1”、“1”、“1”、“1”、“1”、“1”、“1”,(除去2bit前导符后数值为0xFF)。If the current line sequence has an error in the wrong exchange of EN and DATA signals as shown in Figure 2, the 10-bit data added to the preamble are: "0", "1", "1", "1", "1" , "1", "1", "1", "1", "1", (the value is 0xFF after removing the 2-bit leading character).
若当前线序出现了如图3所示的CLK和DATA信号错误交换的错误,则加入前导符的10bit数据依次为:“0”、“1”、“0”、“0”、“0”、“0”、“0”、“0”、“0”、“0”,(除去2bit前导符后数值为0x00)。If the current line sequence has an error of CLK and DATA signal exchange as shown in Figure 3, the 10-bit data added to the preamble is: "0", "1", "0", "0", "0" , "0", "0", "0", "0", "0", (the value is 0x00 after removing the 2-bit leading character).
若测试信号的第一个EN信号没有被正确采样,造成第一个“0”没有被采样,则则加入前导符的10bit数据依次为:“0”、“1”、“1”、“0”、“1”、“1”、“0”、“1”、“0”、“0”,如图9中标示的“未知错误”,(除去2bit前导符后数值为0xB8)。If the first EN signal of the test signal is not correctly sampled, resulting in the first "0" not being sampled, then the 10-bit data added to the preamble are: "0", "1", "1", "0" ", "1", "1", "0", "1", "0", "0", "unknown error" marked in Figure 9, (the value is 0xB8 after removing the 2bit leading character).
反馈信号接收单元105在接收到反馈信道的反馈信号并确认前导符后,将把余下的8bit进行解码并传送至串行信号发送端控制单元104,串行信号发送端控制单元104将把余下8bit的数据值传送给错误模型判定单元106,错误模型判定单元106将此数据值和错误模型存储子单元中的特征码进行比对并得出判定结果。如图9所示,若反馈数值为0x5A,则判定为“正常”,向串行信号发送端控制单元104返回判断代码“0”,代表“正常”;若反馈数值为0x00,则判定为“已知错误模型”,向串行信号发送端控制单元104返回判断代码“1”,代表“已知错误模型,CLK/DATA信号错误交换”;若反馈数值为0xFF,则判定为“已知错误模型”,向串行信号发送端控制单元104返回判断代码“2”,代表“已知错误模型,EN/DATA信号错误交换”;若反馈数值为其他值,则判定为“未知错误模型”,向串行信号发送端控制单元104返回判断代码“4”,代表“未知错误模型”;After receiving the feedback signal of the feedback channel and confirming the preamble, the feedback signal receiving unit 105 will decode the remaining 8 bits and send them to the serial signal sending end control unit 104, and the serial signal sending end control unit 104 will send the remaining 8 bits to the serial signal sending end control unit 104. The data value of is transmitted to the error model determination unit 106, and the error model determination unit 106 compares the data value with the feature code in the error model storage subunit and obtains a determination result. As shown in Figure 9, if the feedback value is 0x5A, it is determined as "normal", and the judgment code "0" is returned to the serial signal sending end control unit 104, representing "normal"; if the feedback value is 0x00, it is determined as "normal". Known error model", return judgment code "1" to the serial signal sending end control unit 104, representing "known error model, CLK/DATA signal error exchange"; if the feedback value is 0xFF, it is judged as "known error Model", return the judgment code "2" to the serial signal sending end control unit 104, representing "known error model, EN/DATA signal error exchange"; if the feedback value is other values, then it is judged as "unknown error model", Return judgment code "4" to the serial signal sending end control unit 104, representing "unknown error model";
根据错误模型判定单元106的判定结果,串行信号发送端控制单元104对不同结果做出不同处理:According to the judgment result of the error model judging unit 106, the serial signal sending end control unit 104 makes different processing for different results:
若判定结果为“正常”(判断代码“0”),则将串行信号交叉矩阵子单元103的配置数值配置为((0,0),(1,1),(2,2),(3,3))并继续后续数据传输;If the judgment result is "normal" (judgment code "0"), the configuration value of the serial signal cross matrix subunit 103 is configured as ((0,0), (1,1), (2,2), ( 3, 3)) and continue subsequent data transmission;
若判定结果为“已知错误模型,CLK/DATA信号错误交换”(判断代码“1”),则将串行信号交叉矩阵子单元103的配置数值配置为((0,0),(1,2),(2,1),(3,3))并继续后续数据传输,如所述图8所述;If the determination result is "known error model, CLK/DATA signal error exchange" (judgment code "1"), the configuration value of the serial signal cross matrix subunit 103 is configured as ((0, 0), (1, 2), (2,1), (3,3)) and continue the subsequent data transmission, as described in Figure 8;
和CLK/DATA信号错误交换类似,若判定结果为“已知错误模型,EN/DATA信号错误交换”(判断代码“2”),则将串行信号交叉矩阵子单元103的配置数值配置为((0,2),(1,1),(2,0),(3,3))并继续后续数据传输;Similar to CLK/DATA signal error exchange, if the judgment result is "known error model, EN/DATA signal error exchange" (judgment code "2"), the configuration value of the serial signal cross matrix subunit 103 is configured as ( (0, 2), (1, 1), (2, 0), (3, 3)) and continue subsequent data transmission;
若判定结果为“未知错误模型”(判断代码“4”),则向发送端信号生成模块300报警。If the judgment result is "unknown error model" (judgment code "4"), an alarm is sent to the signal generating module 300 at the sending end.
综上所述,本发明提供的带有线序自适应功能的串行数据收发电路及其控制方法,不但能够较好的检测由于串行信号传输中的线序错误,而且可以自适应调整串行信号线序,使数据收发两端得以正确地传输数据。同时本发明有较好的通用性,可以应用于各种有线或无线等传输信道中的各种制式串行数据传输。To sum up, the serial data transceiver circuit with line sequence adaptive function and its control method provided by the present invention can not only better detect the line sequence error in serial signal transmission, but also can adaptively adjust the serial The signal line sequence enables the two ends of the data transceiver to transmit data correctly. At the same time, the present invention has good versatility, and can be applied to various standard serial data transmissions in various wired or wireless transmission channels.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210229095.5A CN103532686B (en) | 2012-07-03 | 2012-07-03 | Serial data transceiver circuit with line sequence adaptive function and its control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210229095.5A CN103532686B (en) | 2012-07-03 | 2012-07-03 | Serial data transceiver circuit with line sequence adaptive function and its control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103532686A CN103532686A (en) | 2014-01-22 |
| CN103532686B true CN103532686B (en) | 2016-09-28 |
Family
ID=49934401
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210229095.5A Active CN103532686B (en) | 2012-07-03 | 2012-07-03 | Serial data transceiver circuit with line sequence adaptive function and its control method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103532686B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104199795B (en) * | 2014-09-15 | 2017-02-08 | 活点信息技术有限公司 | Data transferring and receiving method of bus framework |
| CN108347393B (en) * | 2017-01-22 | 2020-11-06 | 华为技术有限公司 | Method, device and system for processing crossover line sequence |
| CN110166082B (en) * | 2019-04-01 | 2021-07-02 | 深圳市速腾聚创科技有限公司 | Magnetic ring line sequence self-adaption method, device, equipment and storage medium |
| CN111158335B (en) * | 2019-11-19 | 2021-08-20 | 潍柴动力股份有限公司 | Pin function matching method and storage medium for multi-ECU system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6275526B1 (en) * | 1997-08-28 | 2001-08-14 | Samsung Electronics Ltd. | Serial data communication between integrated circuits |
| CN2634731Y (en) * | 2003-07-15 | 2004-08-18 | 上海长达信息科技有限公司 | Digital signal transmission device |
| CN1967513A (en) * | 2005-11-18 | 2007-05-23 | 群康科技(深圳)有限公司 | Data signal transmission system and method |
-
2012
- 2012-07-03 CN CN201210229095.5A patent/CN103532686B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6275526B1 (en) * | 1997-08-28 | 2001-08-14 | Samsung Electronics Ltd. | Serial data communication between integrated circuits |
| CN2634731Y (en) * | 2003-07-15 | 2004-08-18 | 上海长达信息科技有限公司 | Digital signal transmission device |
| CN1967513A (en) * | 2005-11-18 | 2007-05-23 | 群康科技(深圳)有限公司 | Data signal transmission system and method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103532686A (en) | 2014-01-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11100036B2 (en) | Serial connection between management controller and microcontroller | |
| CN105656600B (en) | A kind of communication means of the adaptive two kinds of communication protocol of slave station | |
| CN106950864B (en) | A CAN communication program generation method and device for a vehicle controller | |
| US20110156936A1 (en) | Mobile industry processor interface | |
| CN105187420B (en) | A kind of communications protocol matching process based on RS422 buses | |
| EP4459474A1 (en) | Data transmission method and apparatus, and device and medium | |
| CN103532686B (en) | Serial data transceiver circuit with line sequence adaptive function and its control method | |
| CN110851388A (en) | Debugging system and debugging signal transmission method for RISC-V processor | |
| WO2016123936A1 (en) | Method, device, test board, and system for testing traffic of interface board | |
| CN119271593A (en) | Bus signal processing method, device, equipment and storage medium of server | |
| CN114201436A (en) | Lvds data communication implementation method and communication device based on axi bus | |
| CN117195785A (en) | Bus verification method and intellectual property core verification system | |
| CN110809002A (en) | Method and protocol conversion module for protocol conversion between robot and welding equipment | |
| CN113992471B (en) | Communication system and method for multiple hosts and multiple slaves | |
| CN115663549A (en) | Multi-interface conversion device and vehicle | |
| CN103413003B (en) | A kind of sequence transmission, reception device and method | |
| US20100229041A1 (en) | Device and method for expediting feedback on changes of connection status of monitioring equipments | |
| EP1305922B1 (en) | Ground level shift detection in can systems | |
| CN212515784U (en) | RS-485 signal line polarity self-adaptation realization device based on double UARTs | |
| CN110096002A (en) | A kind of automatization test system and test method based on CANFD bus | |
| CN111385172B (en) | Control system, control method and storage medium based on bus | |
| CN202385121U (en) | A Control System Based on FSM Short-distance Home Communication Protocol | |
| CN114817113B (en) | A method, system, device and storage medium for judging the direction of SDA data | |
| CN116775390B (en) | Interface protocol conversion verification system and method, electronic equipment and storage medium | |
| CN114531359B (en) | A data conversion communication system based on resource extension protocol |
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 | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20220811 Address after: Room 108, floor 1, building 4, No. 2 dacuodeng Hutong, Dongcheng District, Beijing 100010 Patentee after: Beijing Zhongke micro Investment Management Co.,Ltd. Address before: 100083 Beijing city Chaoyang District Beitucheng West Road No. 3 Patentee before: Institute of Microelectronics of the Chinese Academy of Sciences |
|
| TR01 | Transfer of patent right |