Serial communication interface device
The serial communication interface device addresses false detection and signal degradation issues by generating and converting signals based on clock and data changes, ensuring reliable communication without waveform shaping circuits or noise filters, enabling higher speed operations.
Patent Information
- Application Number
- JP2023065153
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2043-04-12
AI Technical Summary
Existing serial communication interface devices face issues with false detection due to signal deterioration and require waveform shaping circuits and noise filters based on pulse width for transmission and reception.
A serial communication interface device that generates and converts signals based on clock and data signal changes, eliminating the need for two types of waveform shaping circuits and noise filters by outputting specific edge signals for transmission start and stop, reducing false detection even with signal degradation.
The device minimizes false detection and eliminates the need for waveform shaping circuits and noise filters, ensuring reliable communication without pulse width dependence, while allowing for higher speed operations.
Smart Images

Figure 2024151641000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a serial communication interface device. [Background technology]
[0002] The following techniques are known regarding serial communication interface devices. Patent Document 1 describes a method in which a standard SPI signal is converted into a pulse signal by a serial interface device on the transmitting side, and then the pulse signal is converted into a standard SPI signal by a serial interface device on the receiving side. The serial interface device on the transmitting side converts a chip select signal into a pulse signal with a large pulse width, and converts a data signal into a pulse signal with a small pulse width. The serial interface device on the receiving side converts the pulse signal with a large pulse width into a chip select signal, and converts the pulse signal with a small pulse width into a data signal and a clock signal. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] U.S. Pat. No. 8,908,779 Summary of the Invention [Problem to be solved by the invention]
[0004] However, the above-mentioned serial interface device has the problem that because it distinguishes between chip select signals and data signals based on the pulse width of a pulse signal, there is a possibility of erroneous detection if the signal is degraded, and two types of waveform shaping circuits and noise filters are required depending on the pulse width during transmission and reception.
[0005] The present invention has been made in consideration of the above-mentioned problems, and aims to provide a serial communications interface device that reduces the possibility of erroneous detection even when the signal is degraded, and does not require two types of waveform shaping circuits or noise filters according to the pulse width during transmission and reception. [Means for solving the problem]
[0006] A serial communication interface device according to one aspect of the present invention comprises: A serial communication interface device that transmits and receives a transmission start signal, a data signal, and a transmission end signal via a communication line, comprising: a conversion unit that generates a first signal and a second signal based on a change in a clock signal input to a clock input terminal, generates a third signal and a fourth signal based on a change in a data signal input to a data input terminal, and converts the first to fourth signals into the clock signal and the data signal; a transmitting unit that converts the first to fourth signals into communication signals and transmits the communication signals to the communication line; a receiving unit that converts the communication signal received from the communication line into the first to fourth signals, The conversion unit is The present invention is characterized in that the reception of the fourth signal when the clock signal is at a first level is regarded as the transmission start signal, and the reception of the third signal following the first signal is regarded as the transmission end signal. Effect of the Invention
[0007] According to the serial communications interface device of the present invention, a falling signal of the clock signal SCL is output following a falling signal of the data signal SDA as a transmission start signal, and a rising signal of the clock signal SCL is output following a rising signal of the data signal SDA as a transmission stop signal. This makes it possible to provide a serial communications interface device which reduces the possibility of erroneous detection even when the signal is degraded, and which does not require two types of waveform shaping circuits or noise filters according to the pulse width during transmission and reception. [Brief description of the drawings]
[0008] [Figure 1] 4 is a timing chart showing an example of an operation of the serial communication interface device of the present embodiment. [Diagram 2] 1 is a block diagram showing an example of a serial communication interface device according to an embodiment of the present invention; [Diagram 3] 1 is a block diagram showing an example of a communication system including a serial communication interface device according to an embodiment of the present invention. [Figure 4] 10 is a timing chart showing another example of the operation of the serial communication interface device of the present embodiment. [Diagram 5] 10 is a timing chart showing another example of the operation of the serial communication interface device of the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A serial communication interface device according to the present invention will now be described with reference to the drawings. FIG. 2 is a block diagram showing an example of a serial communication interface device 20 according to the present embodiment.
[0010] The serial communication interface device 20 includes a conversion unit 21, a transmission unit 22, a receiving unit 23, two input terminals and two output terminals connected to the control device 10, and a first communication terminal and a second communication terminal for transmitting and receiving signals from the communication line TP, which is a twisted pair cable, via an insulating unit 30.
[0011] The conversion unit 21 has a clock input terminal and a data input terminal connected to the clock output terminal OSCL and data output terminal OSDA of the control unit 10, a clock output terminal and a data output terminal connected to the clock input terminal ISCL and data input terminal ISDA of the control unit 10, a signal output terminal that outputs a signal to the transmitting unit 22, and a signal input terminal that inputs a signal from the receiving unit 23.
[0012] The transmitting unit 22 has an input terminal connected to the signal output terminal of the converting unit 21, and an output terminal that outputs a transmission signal to the insulating unit 30. The receiving unit 23 has an input terminal that inputs a reception signal from the insulating unit 30, and an output terminal that is connected to the signal input terminal of the converting unit 21.
[0013] FIG. 3 is a block diagram showing an example of a communication system including the serial communication interface device 20 of the present embodiment. The communication system includes control devices 10a and 10b such as MCUs, serial communication interface devices 20a and 20b, insulating units 30a and 30b, and a communication line TP.
[0014] The communication system may be configured such that, for example, the control device 10a is the master and the control device 10b is the slave, or the control device 10b is provided with two conversion units and two transmission / reception units in a daisy chain configuration.
[0015] The operation of the serial communication interface device 20 configured as above will be described with reference to the timing chart of FIG. First, each signal in the timing chart will be described.
[0016] The notation "transmission side" indicates the contents of the signal output from the control device 10a to the serial communication interface device 20a. The waveforms of "SCL" and "SDA" on the transmission side are the clock signal and the data signal input from the control device 10a to the "conversion unit 21" of the serial communication interface device 20a.
[0017] "Communication signal IP" is the waveform of the signal output from the first communication terminal IP of the transmitting unit 22. The signal output from the second communication terminal IN of the transmitting unit 22 has an inverted waveform.
[0018] The waveforms of "SCL" and "SDA" on the receiving side are clock signals and data signals that are converted by the conversion unit 21 of the serial communication interface device 20b based on the signal input from the communication line TP and output to the control device 10b. The notation "receiving side" indicates the contents of the signal output from the serial communication interface device 20b to the control device 10b.
[0019] 1, the converter 21 converts the input clock signal SCL and data signal SDA into corresponding signals at the rising and falling edges of the signals and outputs them. In addition, the output between signals is temporarily set to an intermediate level, for example, GND level.
[0020] The rising signal of the clock signal SCL goes from an intermediate level to a high level, then to a low level, and then returns to the intermediate level. The falling signal of the clock signal SCL has an inverse waveform to the rising signal of the clock signal SCL. The rising signal of the data signal SDA goes from an intermediate level to a high level, then to a low level, and then returns to the intermediate level twice. The falling signal of the data signal SDA has an inverse waveform to the rising signal of the data signal SDA.
[0021] In this embodiment, the transmitting side outputs a transmission start signal, an 8-bit data signal (D7 to D0), and a transmission stop signal. The transmission start signal is indicated by the falling edge of the data signal SDA when the clock signal SCL is at high level, followed by the falling edge of the clock signal SCL. The data signal maintains a high or low level for the period of one bit. The clock signal SCL is a rectangular wave that changes from high to low in the middle of the period of one bit.
[0022] The waveforms and logic of each signal described above are merely examples and are not limiting.
[0023] Next, the timing chart of FIG. 1 will be described in detail.
[0024] When the clock signal SCL is at a high level as a transmission start signal, the control device 10a causes the data signal SDA to fall and then the clock signal SCL to fall. The serial communication interface device 20a outputs a falling signal of the data signal SDA to the communication line TP, sets it to an intermediate level once, and then outputs a falling signal of the clock signal SCL.
[0025] When the serial communication interface device 20b receives a falling edge of the data signal SDA from the communication line TP and then a falling edge of the clock signal SCL, it causes the data signal SDA to fall and then the clock signal SCL to fall. The control device 10b recognizes the falling edge of the data signal SDA and then the falling edge of the clock signal SCL when the clock signal SCL is at a high level as a transmission start signal.
[0026] The control device 10a outputs a rectangular wave of the clock signal SCL after raising the data signal SDA to output "1" to the data signal D7. The serial communication interface device 20a outputs a rising signal of the data signal SDA to the communication line TP, and then outputs a rising signal and a falling signal of the clock signal SCL.
[0027] The serial communication interface device 20b raises the data signal SDA when a rising edge of the data signal SDA is input from the communication line TP, and then raises the clock signal SCL to a high level and then to a low level when a rising edge and a falling edge of the clock signal SCL are input. The control device 10b reads the data signal SDA at the rising edge of the clock signal SCL and stores the data signal D7 as "1".
[0028] Since the same processing is carried out for the data signals D6 to D0 thereafter, the description will be omitted. The control device 10a drops the data signal SDA as a preprocessing before outputting a transmission stop signal. The low level of the data signal SDA is input to the control device 10b via the serial communication interface device 20a, the communication line TP, and the serial communication interface device 20b.
[0029] Finally, the control device 10a sets the clock signal SCL to a high level as a transmission stop signal, and then sets the data signal SDA to a high level. The serial communication interface device 20a outputs the rising edge of the clock signal SCL to the communication line TP, sets it to an intermediate level once, and then outputs the rising edge of the data signal SDA.
[0030] The serial communication interface device 20b raises the clock signal SCL when a rising edge of the clock signal SCL is input from the communication line TP, and raises the data signal SDA when a rising edge of the data signal SDA is input. The control device 10b recognizes the rising edge of the data signal SDA when the clock signal SCL is at high level as a transmission stop signal.
[0031] As described above, the serial communications interface device 20 of the present embodiment is configured to output a falling signal of the clock signal SCL followed by a falling signal of the data signal SDA as a transmission start signal, and to output a rising signal of the clock signal SCL followed by a rising signal of the data signal SDA as a transmission stop signal. This reduces the possibility of erroneous detection even if the signal is degraded, and does not require two types of waveform shaping circuits or noise filters according to the pulse width during transmission and reception.
[0032] Fig. 4 is a timing chart showing another example of the operation of the serial communication interface device 20 of this embodiment. The basic operation of the serial communication interface device 20 and each signal are the same as those in the timing chart of Fig. 1, so detailed description will be omitted.
[0033] In the operation of the serial communication interface device 20 shown in Fig. 4, the conversion unit 21 converts the input clock signal SCL and the data signal SDA into corresponding signals at the rising and falling timings and outputs them. That is, the signal at the falling timing of the clock signal SCL during data transmission is deleted from the timing chart of Fig. 1.
[0034] Therefore, the serial communication interface device 20b receives the rising edge of the clock signal SCL and sets the clock signal SCL to high level, and then after a predetermined time has passed, sets it to low level by itself.
[0035] When a rising signal of the clock signal SCL followed by a rising signal of the data signal SDA is input as a transmission stop signal from the communication line TP, the serial communication interface device 20b causes the data signal SDA to rise without causing the clock signal SCL to fall after it has risen.
[0036] The serial communication interface device 20 shown in FIG. 4 is similarly configured to output a falling signal of the clock signal SCL followed by a falling signal of the data signal SDA as a transmission start signal, and to output a rising signal of the clock signal SCL followed by a rising signal of the data signal SDA as a transmission stop signal.
[0037] As described above, the serial communications interface device 20 is less likely to misdetect even if the signal is degraded, and does not require two types of waveform shaping circuits or noise filters according to the pulse width during transmission and reception. Furthermore, since it does not transmit a signal at the falling edge of the clock signal SCL, it is more advantageous for achieving high speeds than the case of FIG.
[0038] FIG. 5 is a timing chart showing another example of the operation of the serial communication interface device 20 of the present embodiment.
[0039] Unlike the above-mentioned example, the serial communication interface device 20a shown in Fig. 5 has a converter 21 that converts the data signal SDA into a signal corresponding to the data at the rising edge of the input clock signal SCL and outputs the converted signal. That is, the falling edge of the clock signal SCL and the rising and falling edges of the data signal SDA are deleted from the timing chart of Fig. 1, and only a signal corresponding to the data of the data signal SDA is output at the rising edge of the clock signal SCL. Here, the signal output at the rising edge of the clock signal SCL is set to be equal to the falling edge of the data signal SDA when data is 0, and equal to the rising edge of the data signal SDA when data is 1.
[0040] Therefore, the serial communication interface device 20b changes the level of the data signal SDA upon receiving a signal corresponding to the data of the data signal SDA, and after a predetermined time has passed, it changes the clock signal SCL to a high level and then to a low level.
[0041] The serial communication interface device 20a shown in FIG. 5 is similarly configured to output a falling signal of the data signal SDA followed by a falling signal of the clock signal SCL as a transmission start signal, and to output a rising signal of the data signal SDA followed by a rising signal of the clock signal SCL as a transmission stop signal.
[0042] Here, the serial communication interface device 20a outputs a data 0 signal because the clock signal SCL rises after the data signal SDA falls prior to the transmission stop signal. However, the serial communication interface device 20a understands this to be a transmission stop signal because the data signal SDA rises without the clock signal SCL falling. Therefore, when the data signal SDA rises, the serial communication interface device 20a outputs a rising signal of the clock signal SCL followed by a rising signal of the data signal SDA as a transmission stop signal.
[0043] The serial communications interface device 20b receives a data 0 signal as the 9th bit of data from the communications line TP, and immediately thereafter receives a rising edge of the clock signal SCL followed by a rising edge of the data signal SDA as a transmission stop signal. The serial communications interface device 20b then receives the rising edge of the clock signal SCL to raise the clock signal SCL, and receives the rising edge of the data signal SDA to raise the data signal SDA.
[0044] As described above, the serial communications interface device 20 is unlikely to cause erroneous detection even if the signal is degraded, and does not require two types of waveform shaping circuits or noise filters according to the pulse width during transmission and reception. Furthermore, since only a signal according to the data of the data signal SDA is output at the rising edge of the clock signal SCL, this is more advantageous for achieving high speed than the case of FIG.
[0045] As described above, the serial communications interface device 20 of this embodiment is configured to output a falling signal of the clock signal SCL followed by a falling signal of the data signal SDA as a transmission start signal, and output a rising signal of the clock signal SCL followed by a rising signal of the data signal SDA as a transmission stop signal. Therefore, it is possible to provide a serial communications interface device that is less likely to cause erroneous detection even if the signal is degraded, and does not require two types of waveform shaping circuits or noise filters according to the pulse width during transmission and reception.
[0046] Although the embodiment of the present invention has been described above, the present invention is not limited to the above embodiment, and various modifications are possible without departing from the spirit of the present invention. For example, the waveform of the communication signal IP may be a sine wave and is not limited to a square wave. Also, for example, the control device 10b may understand the falling edge of the data signal SDA when the clock signal SCL is at a high level as a transmission start signal. [Explanation of symbols]
[0047] 10, 10a, 10b Control device 20, 20a, 20b Serial communication interface device 21 Conversion section 22 Transmitter 23 Receiving section TP communication line 30, 30a, 30b Insulation part
Claims
1. A serial communication interface device that transmits and receives a transmission start signal, a data signal, and a transmission end signal via a communication line, comprising: a conversion unit that generates a first signal and a second signal based on a change in a clock signal input to a clock input terminal, generates a third signal and a fourth signal based on a change in a data signal input to a data input terminal, and converts the first to fourth signals into the clock signal and the data signal; a transmitting unit that converts the first to fourth signals into communication signals and transmits the communication signals to the communication line; a receiving unit that converts the communication signal received from the communication line into the first to fourth signals, The conversion unit is Receipt of the fourth signal while the clock signal is at a first level is regarded as the transmission start signal, and receipt of the third signal following the first signal is regarded as the transmission end signal.
1. A serial communication interface device comprising:
2. The conversion unit is The fourth signal is received when the clock signal is at a first level, and the second signal is subsequently received, which is regarded as the transmission start signal.
2. The serial communication interface device according to claim 1.
3. The conversion unit is The data signal is determined by receiving the first signal after receiving the third signal or the fourth signal, or by receiving the first signal after receiving the second signal.
3. The serial communication interface device according to claim 1, wherein the first and second inputs are connected to the first and second inputs.
4. The conversion unit is The data signal is determined when the first signal is received after the third signal or the fourth signal is received, or when the first signal is received after an interval of one data bit length after the first signal is received.
3. The serial communication interface device according to claim 1, wherein the first and second inputs are connected to the first and second inputs.
5. The conversion unit is When the third signal is received, the data signal is set to the first data, and when the fourth signal is received, the data signal is set to the second data.
3. The serial communication interface device according to claim 1, wherein the first and second inputs are connected to the first and second inputs.
Citation Information
Patent Citations
Isolated communications interface
US8908779B2
