Encoding and decoding method for optical isolation amplifier employing sigma-delta modulation technology

An encoding and decoding method for an optical isolation amplifier including an encoder, an optical driver, a light source, an optical detector, and a decoder, and employing sigma-delta modulation technology is provided. The method includes: generating a plurality of first pulses, each having a predetermined pulse width, through the encoder when an input digital signal experiences an input pulse rising or falling edge; outputting an encoded signal having the plurality of first pulses to the optical driver; driving the light source through the optical driver, according to the plurality of first pulses, so as to output an encoded optical signal; generating a detected signal through the optical detector detecting the encoded optical signal, and the detected signal has a plurality of second pulses; and duplicating the input digital signal of the encoder through the decoder, according to the detected signal having the plurality of second pulses.

FIELD OF THE DISCLOSURE

The present disclosure relates to an optical isolation amplifier employing a sigma-delta (Σ-Δ) modulation technology, and more particularly to an encoding and decoding method for the optical isolation amplifier, which can accurately restore a one-bit data stream generated by a sigma-delta modulator after passing through an optical channel.

BACKGROUND OF THE DISCLOSURE

An optical coupler is a circuit element that transmits electrical signals through light. The optical coupler element has a function of providing an electrical isolation between an input circuit and an output circuit, thereby enabling the electrical signals to be transmitted through an electrical isolating layer.

Reference is made toFIG. 1, which is a block diagram showing a circuit of a conventional optical isolation amplifier employing a sigma-delta (Σ-Δ) modulation technology. An analog input signal is converted into a high speed serial one-bit data stream through a Σ-Δ modulator. The one-bit data stream is composed of logic levels “1” and logic levels “0”, and a density of the logic levels “1” in the one-bit stream is proportional to an amplitude of the input analog signal. The one-bit data stream is encoded by an encoder, the encoded one-bit data stream then drives a light source, so as to convert an encoded data signal of the encoded one-bit data stream into an optical signal, the optical signal is then converted into a data stream through the optical detecting and amplifying circuit, the data stream is converted back into the one-bit data stream, and then the one-bit data stream is converted into an analog signal through a digital-to-analog converter. Since the amplitude of the analog signal is proportional to the density of the logic levels “1” in the one-bit stream, accurately restoring the one-bit stream through the decoder has become a crucial matter when designing an optical isolation amplifier. As shown inFIG. 1, the conventional optical isolation amplifier10employing the Σ-Δ modulation technology includes a modulator11, an encoder12, a light source13, an optical detector14, and a decoder15. The modulator11is an analog modulator, which can convert the input analog signal into a one-bit digital signal. The encoder12is electrically connected to the modulator11, and the encoder12receives and encodes the digital signal. The light source13is electrically connected to the encoder12, the light source13receives the encoded digital signal, and the light source13is driven by the encoded digital signal to output an optical signal. The optical detector14senses the optical signal and converts the optical signal into another digital signal. The decoder15is electrically connected to the optical detector14, and the decoder15receives and decodes the another digital signal, so as to output another analog signal.

However, in the conventional optical isolation amplifier10employing the Σ-Δ modulation technology, the input analog signal is converted by the Σ-Δ modulator into a high speed serial one-bit data stream that is a high speed data stream in which pulse distortion and changes of the rising edge and the falling edge occur, when the high speed data stream passes through the optical channels in an optical isolation amplifier that include circuits such as optical drivers, light sources, optical detector, and transimpedance amplifiers. When employing the conventional encoding and decoding method, the one-bit data stream generated by the Σ-Δ modulator cannot be accurately restored. Reference is made toFIG. 2, which is a waveform diagram showing a waveform of the conventional optical isolation amplifier employing the Σ-Δ modulation technology. As shown inFIG. 2, a digital signal21of the modulator11is converted by the encoder12into an encoded digital signal22. The encoded digital signal22outputted by the encoder12has a pulse width that is different from that of an output signal23of the decoder15. That is to say, the density of the logic levels “1” of the one-bit data stream is changed, and after the signal in the one-bit data stream is decoded, passed through a digital-to-analog converter, and restored back to an analog signal, the changes of the one-bit data stream thereby lead to problems such as an increments of input offset voltage (Vos) of the optical isolation amplifier, a decreasing of the signal-to-noise ratio, and a degradation of linearity.

Moreover, different signal pulse widths have different distortion of signals, e.g., different rising edges, falling edges, and propagation delays, when the signals pass through the optical channels that include optical drivers and optical detector s. Therefore, a one-bit data stream obtained through the decoder is different from the one-bit data stream generated by the Σ-Δ modulator. The input analog signal is converted through the Σ-Δ modulator into the one-bit data stream, and the density of the logic levels “1” are proportional to the amplitude of the input analog signal. Therefore, distortion of the signals and the change of the rising edges and the falling edges leads to the change of the density of the logic levels “1” in the one-bit data stream after passing through the optical channels, which thereby leads to problems such as the increasing of input offset voltage (Vos) of the optical isolation amplifier, the decreasing of the signal-to-noise ratio, and the degradation of linearity of the optical isolation amplifier.

In conclusion, it has become an important to accurately restore the one-bit data stream generated by the Σ-Δ modulator in the optical isolation amplifier through circuit design, after the one-bit data stream passes through an optical channel.

SUMMARY OF THE DISCLOSURE

In response to the above-referenced technical inadequacies, the present disclosure provides an encoding and decoding method, which can accurately restore a one-bit data stream generated by a sigma-delta (Σ-Δ) modulator, after passing through an optical channel.

In one aspect, the present disclosure provides an encoding and decoding method for an optical isolation amplifier employing sigma-delta modulation technology. The optical isolation amplifier includes an encoder, an optical driver, a light source, an optical detector, and a decoder. The encoding and decoding method includes: the encoder generating a plurality of first pulses with a predetermined pulse width, when an input digital signal experiences an input pulse rising edge or an input pulse falling edge, and each of the predetermined pulse widths being between 10% and 25% of the pulse width of the clock pulse of the Σ-Δ modulator, so as to ensure that the plurality of first pulses effectively passes through the optical channel; outputting an encoded signal having the plurality of first pulses to the optical driver; driving the light source through the optical driver, according to the plurality of first pulses of the encoded signal, so as to output an encoded optical signal; generating a detected signal through the optical detector which detects the encoded optical signal, and the detected signal having a plurality of second pulses corresponding to the plurality of first pulses of the encoded signal; and duplicating the input digital signal of the encoder through the decoder, according to the detected signal having the plurality of second pulses.

One of the advantages of the method of the present disclosure is that the encoding and decoding method for the optical isolation amplifier employing a Σ-Δ modulation technology is able to increase an accuracy of the output signal of the optical isolation amplifier, decrease an input offset voltage (Vos) of the optical isolation amplifier, increase a signal-to-noise ratio, and improve a linearity of the optical isolation amplifier through the technical solution of adopting a dual-edge-triggered signal encoder and adopting a rising-edge-triggered signal decoder in the decoder.

DETAILED DESCRIPTION OF THE EXEMPLARY EMBODIMENTS

FIG. 3is a block diagram of an optical isolation amplifier of the present disclosure.FIG. 4is a flowchart of an encoding and decoding method of the optical isolation amplifier of the present disclosure.FIG. 5is a waveform diagram showing a waveform of the optical isolation amplifier employing the sigma-delta (Σ-Δ) modulation technology of the present disclosure. As shown inFIG. 3, an optical isolated amplifier30provided by the present disclosure at least includes: a modulator31, an encoder32, an optical driver33, a light source34, an optical detector35, a decoder36, a digital-to-analog converter37, and a low-pass filter38.

References are made toFIG. 3,FIG. 4, andFIG. 5. In step S401, an input analog signal Sia is converted into an input digital signal Si through the modulator31. The modulator31is preferably an Σ-Δ modulator, i.e., a pulse density modulation (PDM) modulator. The Σ-Δ modulator is an analog-to-digital circuit, which can convert an analog signal into a digital signal, i.e., sampling the analog signal and converting the analog signal into a one-bit digital signal. Therefore, the Σ-Δ modulator has advantages of being able to shape noises, effectively suppressing quantization noises, and having a higher signal-to-noise ratio. The Σ-Δ modulation circuit, which is composed of an integrator and a differentiator, has a differentiating characteristic, such that the Σ-Δ modulator has a high-pass filtration effect on the quantization noises. The mechanism of the Σ-Δ modulator is known by a person having ordinary skill in the art, and will not be reiterated herein. In a preferable embodiment of the present disclosure, an input signal is the input analog signal Sia, the input analog signal Sia is transmitted to the modulator31, and the modulator31then converts the input analog signal Sia into the one-bit input digital signal Si.

In step S402, when an input pulse rising edge or an input pulse falling edge is presented in the input digital signal Si, an encoded signal Se having a plurality of first pulses is generated by the encoder32, and each of the plurality of first pulses has a predetermined pulse width. The encoder32is electrically connected to the modulator31, and the encoder32can be utilized to encode the input digital signal Si that is transmitted from the modulator31. Moreover, the encoder32is able to detect the input pulse rising edge and the input pulse falling edge of the input digital signal Si generated by the modulator31, and the encoder32is able to generate the plurality of first pulses each having the predetermined pulse width, according to the input pulse rising edge and the input pulse falling edge of the input digital signal Si.

In step S403, an encoded signal Se having the plurality of first pulses is outputted to the optical driver33. To be more specific, the encoder32is preferably a dual-edge-triggered signal encoder, the dual-edge-triggered signal encoder receives the input digital signal Si of the modulator31, and according to the input digital signal Si of the modulator31, when the input pulse rising edge or the input pulse falling edge of the input digital signal Si occurs, the dual-edge-triggered signal encoder generates the plurality of first pulses each having the predetermined pulse width. In other words, when the dual-edge-triggered signal encoder detects the input pulse rising edge or the input pulse falling edge of the input digital signal Si of the modulator31, the dual-edge-triggered signal encoder then generates the plurality of first pulses. Each of the plurality of first pulses has the predetermined pulse width that is identical to one another, and the encoded signal Se includes the plurality of first pulses, each having the predetermined pulse width.

In step S404, the light source34is driven by the optical driver33, so as to output an encoded optical signal Sp according to the plurality of first pulses of the encoded signal Se. The optical driver33is electrically connected to the encoder32and the light source34, and the optical driver33receives the encoded signal Se having the plurality of first pulses that is outputted by the encoder32. The optical driver33is able to drive the light source34, so as to output the encoded optical signal Sp, according to the encoded signal Se having the plurality of first pulses. The light source34is preferably an LED, but in other embodiments, the light source34can also include different light emitters, and the present disclosure is not limited thereto. The optical driver33receives the encoded signal Se having the plurality of first pulses outputted from the encoder32, so as to drive the light source34to emit light, thereby outputting the encoded optical signal Sp. In other words, the encoded optical signal Sp that is outputted by the light source34corresponds to the encoded signal Se.

Next, in step S405, a detected signal S is generated through the optical detector35detecting the encoded optical signal Sp, and the detected signal S has a plurality of second pulses corresponding to the plurality of first pulses of the encoded signal Se. After the optical driver33drives the light source34to generate the encoded optical signal Sp according to the encoded signal Se having the plurality of first pulses, the optical detector35senses the encoded optical signal Sp to generate the detected signal S having the plurality of second pulses that is distorted. As shown inFIG. 5, a distortion of each of the plurality of second pulses is related to the pulse width of each of the plurality of first pulses.

To be more specific, the optical detector35is disposed on a position relative to the light source34, i.e., on a light transmission path of the light source34, and the optical detector35is utilized to detect the encoded optical signal Sp outputted by the light source34, so as to generate the detected signal S. The detected signal S generated by the optical detector35has the plurality of second pulses corresponding to the plurality of first pulses of the encoded signal Se, and a pulse width of each of the plurality of second pulses is related to a pulse width of each of the plurality of first pulses. The optical detector35is able to generate the detected signal S that includes the plurality of second pulses through sensing the encoded optical signal Sp.

In step S406, the input digital signal Si of the modulator31is restored by the decoder36, according to the detected signal S having the plurality of second pulses. The decoder36is electrically connected to the optical detector35, and the decoder36is utilized to receive the detected signal S generated by the optical detector35. The decoder36restores the input digital signal Si of the modulator31according to the detected signal S having the plurality of second pulses. Furthermore, the decoder36is preferably a rising-edge-triggered decoder, every time the decoder36detects the rising edge of one of the plurality of second pulses, an output state of the decoder36is changed once. For example, assuming that a current output state of the decoder36is at a high level (1), when the decoder36detects the rising edge of a first of the plurality of second pulses, the output state is changed to be at a low level (0), and when the decoder36detects the rising edge of a second of the plurality of second pulses, the output state is changed to be at the high level. In other words, when the current output state of the decoder36is at the low level, and the decoder36detects the rising edge for the first time, the output state will be at the high level and will remain thereat; and when the decoder36detects the rising edge for the second time, the output state will change from the high level to the low level, and vice versa. Therefore, when the decoder36receives consecutive two of the plurality of second pulses, the decoder36generates an output pulse, and a pulse width of the output pulse is determined by the rising edge of the consecutive two of the plurality of second pulses and the time interval therebetween. An output digital signal So includes a plurality of output pulses. Since the pulse width of each of the plurality of first pulses are identical to one another, when the plurality of first pulses passes through an optical channel, the plurality of second pulses generated thereby have highly similar distortion or propagation delays with one another. Therefore, the output digital signal So can be guaranteed to accurately duplicate the input digital signal Si of the modulator31.

Moreover, as shown inFIG. 6, in a preferable embodiment of the present disclosure, the encoder32can be composed of an XOR gate321and a plurality of delay units322. The plurality of delay units322can delay the inputted signals for one fourth of the pulse width of the clock. The input digital signal Si of the modulator31is transmitted to an input port A of a first of the plurality of delay units322and a first input port324of the XOR gate321composed of five NAND gates323. An output port YN of a last one of the plurality of delay units322is connected to a second input port325of the XOR gate321, and the plurality of first pulses each having a predetermined pulse width are outputted from an output port326of the XOR gate321. The plurality of first pulses that each have the predetermined pulse width are generated through the rising edge or the pulse falling edge of the input digital signal Si of the encoder32of the present disclosure. It is worth mentioning that the above-mentioned encoder32is composed of the XOR gate321and the plurality of delay units322, but in other embodiments, the encoder32can be composed of other logic units, the present disclosure is not limited thereto; a person having ordinary skill in the art can design different encoders32that are composed of different logic units, which is not limited in the present disclosure. After the encoder32generates the plurality of first pulses that each have the predetermined pulse width, the encoder32generates the encoded signal Se having the plurality of first pulses.

Reference is made toFIG. 7, which is a schematic view showing a circuit of a decoder in the embodiment of the present disclosure. Furthermore, as shown inFIG. 7, the optical detector35can also be a dual-edge-triggered decoder that is composed of a flip-flop351that is D-edge-triggered and an inverter352. The detected signal having the plurality of second pulses that each have the predetermined pulse width is transmitted to a clock input port clk of the flip-flop351, the output port YN of the inverter352is electrically connected to a data input port data of the flip-flop351, an input port A of the inverter352is connected to an output port Q of the flip-flop351, and the output digital signal So is outputted from another output port QN of the flip-flop351. A decoding circuit that is composed of the above-mentioned flip-flop351and the inverter352is able to decode the plurality of second pulses having the identical pulse width, so as to generate an output signal. It should be noted that, in a preferable embodiment, the dual-edge-triggered decoder is composed of one of the flip-flop351and one of the inverter352, but in other embodiments, the dual-edge-triggered decoder can be composed of other logic units, which is not limited in the present disclosure.

Furthermore, the encoding and decoding method of the optical isolation amplifier of the present disclosure further includes a step of converting the output digital signal So into an output analog signal Sa through the digital-to-analog converter37, and then filtering the noise in the output analog signal Sa through the low-pass filter38. The digital-to-analog converter37is electrically connected to the decoder36, the digital-to-analog converter37receives the output digital signal So of the decoder36, and then converts the output digital signal So into the output analog signal Sa, so as to restore the original input analog signal Sia of the optical isolation amplifier30. In a preferable embodiment of the present disclosure, the low-pass filter38can be utilized to filter the noise that is generated when the output digital signal So is converted into the output analog signal Sa, and eventually output the output analog signal Sa with less noise.

It can be observed fromFIG. 5that, in the optical isolation amplifier30of the present disclosure, the plurality of first pulses of the encoded signal Se, each having the predetermined pulse width, can be outputted through the encoder32when the input pulse rising edge or the input pulse falling edge of the input digital signal Si occurs, so as to accurately obtain a starting time and an ending time of a signal pulse of the input digital signal Si. Moreover, the plurality of first pulses of the encoded signal Se, each having the predetermined pulse width, would have experienced identical pulse distortion, rising edge, and pulse falling edge after passing through an optical channel. Furthermore, through a circuit design of the present disclosure, the plurality of second pulses each having the predetermined pulse width can completely duplicate the plurality of first pulses each having the predetermined pulse width. That is to say, even though propagation delay and distortion is to occur to the detected signal S after the detected signal S passes through the optical channel, after being decoded by the present disclosure, the output digital signal So can be accurately restored as the input digital signal Si. Therefore, the problems such as increased input offset voltage (Vos), decreased signal-to-noise ratio, and degradation of linearity of the optical isolation amplifier can be effectively improved.

One of the advantages of the method of the present disclosure is that the optical isolation amplifier is able to enhance the accuracy of the output signal of the optical isolation amplifier through the technical solution of adopting the dual-edge-triggered signal encoder and adopting the upper-edge-triggered signal decoder.