In electronics, a light-emitting diode (LED) optocoupler may be used to provide electrical isolation between two electronic circuits that pass signals between them. For example, this may allow the two circuits to have grounds that are at different voltage potentials. Applications for such isolation may include, for example, automobile electronics wherein an ignition system communicates with, but may be electrically isolated from, an on-board computer system. Another application may be maintain electrical isolation between a primary side and a secondary side of a power supply by optocoupling a feedback signal the secondary side to the primary side.
A conventional optocoupler includes an input node coupled to a transmitter circuit that is configured to drive an LED. When an input signal at the input node is at a high logic level, the LED may be turned “on”, i.e., activated, and when the input signal is at a low logic level, the LED may be turned “off”, i.e., deactivated. The LED may be positioned next to (or optically coupled with) a receiver circuit having a photo diode that may be operable to generate a signal having a first level in the presence of light and having a second signal in the absence of light. Thus, when light is present (i.e., the LED is on), the photo diode may generate a high logic level signal, and when no light (or a level of light below a threshold of the photo diode) is detected (i.e., the LED is off), the photo diode may generate a low logic level signal.
One potential problem with a conventional optocoupler is inefficient power consumption. In order to generate, e.g., a high logic level in the receiver side circuit, the LED in the transmitter side circuit must remain on for the duration of the high logic level signal at the input node. Similarly, the photodiode also remains on as long as light is detected from the LED. As a result, the LED and photo diode remain on and consume power at a duty cycle that is equivalent to duty cycle of the input signal. Furthermore, because the LED may not immediately transition from on to off (or vice versa), pulse width distortion (PWD) may be introduced. That is, there exists a finite amount of time necessary for the LED to turn off, and during that time, light begins to dissipate at a specific rate. If this rate of dissipation is too slow, the photo diode in the receiver circuit may interpret a high logic level signal to be present longer than it actually is present ion the input signal. Thus, the output signal derived from the detected light may be distorted with respect to the input signal.
Embodiments of the subject matter disclosed herein will become more readily appreciated as the same become better understood by reference to the following detailed description, when taken in conjunction with the accompanying drawings.
The following discussion is presented to enable a person skilled in the art to make and use the subject matter disclosed herein. The general principles described herein may be applied to embodiments and applications other than those detailed above without departing from the spirit and scope of the subject matter disclosed herein. This disclosure is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed or suggested herein.
The input signal may typically be binary data represented as a series of logical ones and zeros (e.g., a one is a high logical value and zero is a low logical value). If the input signal is at a logical high level, it represents a datum of one and if the input signal is at a logical low value, it represents a datum of zero. In an effort to preserve power, the optocoupler interprets these two scenarios differently and drives the LED in a manner which consumes less power overall. Thus, if the input signal is at a high logic level, instead of driving the LED with a full signal for the entire time that the input signal is at a high logic level, the drive circuit 110 may generate an LED drive signal having a different representative parameter such as a signal having a shorter duration or a signal having a smaller amplitude. If the input signal is at a low logic level, then the drive circuit 110 may generate an LED drive signal at a second, different duration or amplitude. Driving the LED 120 with shorter-duration signals or smaller-amplitude signals results in the LED being on for less time or with less power consumption.
On the receiver side of the optocoupler 100, a photo-diode 125 may be located proximate to the LED 120 so as to detect light from the LED. The photo-diode 125 then generates a signal that is proportionate to the level of light detected (e.g., the signal generated becomes larger as more light is detected). The photo-diode 125 is coupled to a receiver circuit 130 that may interpret the amplitude and duration of signals generated by the photo-diode 125. Much like the generation of the LED drive signal on the driver side but in a reciprocal manner, the receiver circuit 130 may interpret a signal having a first duration or amplitude as a low logic level signal and a signal having a second duration or amplitude as being a high logic level signal. The receiver circuit 130 may then condition the newly generated signal from the photo diode to be passed to an output node 150, such that the signal at the input node 105 will be substantially replicated at the output node despite the output node being electrically isolated from the input node by the optocoupler 100.
With such an optocoupler 100, power consumption may be reduced if the LED is powered on for less time or with less intensity. In conventional optocouplers, the LED 120 would be driven at a duty cycle equivalent to a respective input signal at the input node 105. That is, if the input signal is a high logic level signal, the LED 120 is on until the input signal transitions to a low logic level signal. Keeping the LED 120 on for the entire duration of a high logic level signal consumes power for the duration in which the LED is on. However, embodiments described herein only turn on the LED 120 for a short duration to represent a high-logic level signal (as opposed to the entire time). An example operation of such an optocoupler 100 will be better understood with reference to the example timing diagram of
At t1, the input signal VIN may be a high logic level signal representing an underlying datum of one. Its voltage level is high for the duration of the 100 ns between t1 and t2. In a conventional optocoupler (not shown), the LED would then be energized for the full 100 ns. However, the LED 120 of
Next, the photo-diode 125 may also generate a signal equivalent to the LED drive signal as can be seen at t1 on the PHOTO-DIODE DRIVE plot. The receiver side may then interpret a 10 ns signal to be representative of a high logic level signal at VIN and subsequently, generate a VOUT signal that as also a high logic level signal that is substantially the same as VIN from t1 to t2. In an embodiment, the receiver 130 maintains VOUT at a high logic level until the photo diode receives a signal indicating a falling-edge transition of the input signal to a low logic level as described below.
At t2, the input signal VIN may transition to a low logic level signal (representing an underlying datum of logical zero). Then, the drive circuit may generate a signal of a different duration (e.g., different from the 10 ns that represents a high logic level) for driving the LED. As can be seen at t2, the LED DRIVE signal may be a signal with a longer duration of 40 ns (but still less than 100 ns). Subsequently, the photo-diode generates a signal having a duration of 40 ns. The receiver side may then interpret a signal of 40 ns to represent an underlying datum of zero. Thus, at t2, VOUT is a low logic level and is again substantially similar to VIN. In an embodiment, the receiver 130 maintains VOUT at a low logic level until the photo diode receives a signal indicating a rising-edge transition of the input signal to a high logic level.
At t6, however, the input signal transitions high again. Thus, a 10 ns signal is generated on the driver side and interpreted on the receiver side such that the output signal also transitions to a high logic level.
From the foregoing, it can be seen that the optocoupler 100 of
Such an optocoupler may be realized on a single integrated circuit or on multiple integrated circuits. For example, the driver circuit may be located remotely from the receiver circuit such that light energy is transmitted from the LED to the photodiode via a fiber-optic connection. Further, the optocoupler may have various components or functionality realized via firmware or software. The particular example signal widths discussed above are suitable for circuitry supporting a speed up to 10 MHz wherein each data bit comprises a duration of 100 ns. However, other circuitry speeds and corresponding signal durations may be realized for faster or slower circuitry. Thus, the signal widths may be reduced to accommodate greater circuit speeds. Or, the driver circuit 110 may generate the LED DRIVE signal having a lower amplitude but a duration that spans the entire time between consecutive times t for VIN being a logic one, and having a substantially zero amplitude by a duration that spans the entire time between consecutive times t for VIN being a logic zero. Or, the driver circuit 110 may generate the LED DRIVE signal having both a shorter duration and a lower amplitude. The forgoing driver side and receiver side circuits are described in greater detail below in conjunction with
Next the conditioned signal may be passed to a data translation block 320 via node 325 where the incoming signal may be interpreted and translated by the data translator 320. The data translator 320 may generate a different signal that still conveys the underlying data, but using a different signal parameter to do so. Thus, a signal having a different parameter (e.g., duration, amplitude) defining the underlying data is generated and passed to an LED driver 330 that drives the LED 120. For example, the translator 320 may generate a signal that is similar to the LED DRIVE signal of
The incoming signal is passed to a first D-type flip-flop 420 and to a second D-type flip-flop 421. The second D-type flip-flop 421 receives an inverted signal as the incoming signal is passed through an inverter 412. Each of these signals is coupled to the clocked inputs 420a and 421a of the respective D-type flip-flops 420 and 421. Each flip flop 420 and 421 has its D-input coupled to ground as well. Thus, each D-type flip-flop 420 and 421 will output a low logic level signal on its respective output 420b and 421b when its clocked input detects a transition from low logic level to high logic level (i.e., a rising edge). The outputs 420b and 421b of each D-type flip-flop 420 and 421 remains at a low logic level until a low logic level signal is received at a respective reset node 420c and 421c. Additionally, each D-type flip-flop output 420b and 421b is coupled to a NAND gate 450 which is, in turn, coupled to node 325 (coupled to the LED driver 330 of
In operation, the lower D-type flip-flop 420 may be used to generate a 10 ns signal on node 325 in response to detecting a rising edge (transition from logic zero to logic one) on node 315, and the upper D-type flip-flop 421 may be used to generate a 40 ns signal on the node 325 in response to detecting a falling edge (transition from logic one to logic zero) on node 315. Thus, when the input signal transitions from a low logic level to a high logic level and a rising edge is present at node 315, the lower D-type flip-flop sets its output 420b to a low logic level. Because the signal is inverted (at inverter 412) the clocked input to the upper D-type flip-flop 421 sees a falling edge, which does not trigger the upper D flip-flop; consequently, the output Q of the upper D flip-flop 421 remains at logic one.
The output 420b of the lower D-type flip-flop 420 is coupled to an input of the NAND gate 450 and, therefore, sets the output of the NAND gate to a high logic level. This signal remains at a high logic level until the lower D-type flip-flop 420 is reset. The reset node 420c is coupled to the output node 420b via a series of two inverters 435a and 435b which not only inverts the signal twice, but also delays the signal by approximately 5 ns per inverter. Thus, after 10 ns (two 5 ns delays), the lower D-type flip-flop 420 is reset and its output transitions back to a high logic level, thus causing the output of the NAND gate 450 and the node 325 to transition to a low logic level.
Similarly, the upper D-type flip-flop may detect a falling edge (transition from logic one to logic zero) of a signal at node 315 (which the inverter 412 converts into a rising edge). Thus, when the input signal transitions from a high logic level to a low logic level and a rising edge is present at node 315, the lower D-type flip-flop 420 remains inactive, and thus continues to generate a logic one at its Q output 420b. But the clock input to the upper D-type flip-flop 421 is a rising edge, which sets the flip-flop output 421b to a low logic level.
The output 421b of the upper D-type flip-flop 421 is also coupled to an input of the NAND gate 450 and, therefore, sets the output of the NAND gate to a high logic level. This signal remains at a high logic level until the upper D-type flip-flop 421 is reset. The reset node 421c is coupled to the output node Q of the flip-flop 421 via a series of eight inverters 445a-445h, which not only inverts the signal eight times, but also delays the signal by approximately 5 ns per inverter. Thus, after 40 ns (eight 5 ns delays), the upper D-type flip-flop 421 is reset and its output transitions back to a high logic level, and the output of the NAND gate 450 transitions back to low.
In summary, the data translator 320 detects the edges of any signal that may be received at node 315. If a rising edge is detected, then a 10 ns signal is generated on node 325 to indicate a transition of the input signal (node 105 of
Other embodiments may use signal widths other than 10 ns and 40 ns to represent rising and falling edges. Additionally, signals with different amplitudes may be generated in response to detecting a rising or falling edge at node 315. For example, a signal having an amplitude of 60 mV may be used to represent a high logic level and a signal having an amplitude of 120 mV may be used to represent a signal having a low logic level, or vice versa.
The LED 120 (
The output of the comparator 650 is then a signal that mimics the on time and of time of the received optical signal. That is, the comparator 650 outputs a high logic level signal while the optical signal is on (i.e., light is detected) and outputs a low logic level signal while the optical signal is off (i.e., no light is detected). In other words, the comparator 650 generates signal levels that correspond to the levels of the LED signal in the timing diagram of
In operation of an embodiment of the interpreter 520, a signal at node 515 will typically either be a 10 ns signal (representing a rising edge at VIN of
Consider the case of the 10 ns signal first. As the rising edge of the 10 ns signal is detected at the D-type flip-flop 730 at its clock node 730a, an output signal at its Q-node 730c transitions low while an output signal at its inverted Q-node 730d transitions high. This is because its D-input 730b is coupled to a low-voltage rail (as represented by logical 0 in
Additionally, the Q-node 730c is coupled to the D-input 740b of the upper left D-type flip-flop 740. Further, the inverted Q-node 730d of the lower flip-flop 730 is coupled to the D-input 750b of the upper right D-type flip-flop 750. Both the upper D-type flip-flops 740 and 750 are clocked by the inverse of the signal at node 515 via inverter 720.
At the rising edge of a signal at node 515, the Q-node 730c of the lower flip-flop 730 is set to low and the inverted Q-node 730d is set to high. In turn, there will be a low logic signal on the D-input 740b to the upper left flip-flop 740 and there will be a high logic signal on the D-input 750b on the upper right flip-flop 750. At this moment, the Q output 740c (signal SN) of the flip flop 740 and the inverted Q output 750d (signal R) of the flip flop 750 are both ready to be set to a low logic level. However, because the clock input 740a and 750a for each flip flop 740 and 750 has yet to receive a rising edge(e.g., a falling edge at node 515), the SN signal remains at a high logic level (its default state) and the R signal remains at a low logic level.
The values of signals SN and R depend upon whether a falling edge of a signal at node 515 occurs before or after the lower flip-flop 730 is reset, i.e., before the initial low signal that comes out of the flip-flop has a chance to propagate through the delay circuit 735a-735h and back again before a falling edge occurs at the node 515. The low logic value at the Q-node 730c of the lower flip-flop 730 begins to traverse through the delay circuit 735a-735h. Once this signal propagates through the delay circuit 735a-735h, it resets this flip-flop 730 and thus cause the Q-node 730c to be set to a high logic level and the inverted Q-node 730d to fall to a low logic level.
In the case of a 10 ns signal at node 515, the lower flip-flop 730 will not have a chance to be reset by the delay circuit signal. After 10 ns, a falling edge at node 515 occurs and this causes a rising edge on the clock inputs of both upper flip-flops 740 and 750. Because there is a low logic level already on the Q-node 730c of the lower flip-flop 730 (and consequently, the D-input 740a of the upper left flip-flop 740), the clocking of the upper left flip-flop 740 causes the signal SN to transition low. This signal pulses low for 1-2 ns because the upper left flip-flop 740 is substantially immediately reset (e.g., within 1-2 ns) by this very output signal. Further, because there is a high logic value on the inverted Q-node 730d of the lower flip-flop and thus a high logic value on the D-input 750a on the upper right flip-flop 750, the signal R which comes from the inverted Q-node 750d of the upper right flip-flop 750, stays low.
The signal SN pulsing low causes the output of the toggle flip-flop 760 to transition to a high logic level (if it is not already at a high logic level). Thus, when a 10 ns signal is detected at node 515, the delay circuit does not have a chance to interrupt the signal on the signal SN, which sets or keeps the output of the data interpreter (e.g., node 525) to/at a high logic level.
However, if the signal on node 515 is a 40 ns signal, then the delay circuit will have a chance to reset the lower D-type flip-flop 730 before the upper D-type flip-flops 740 and 750 are clocked by a falling edge (40 ns later) of the signal at node 515. When reset, Q-node 730c of the lower D-type flip-flop 730 is set to high and the inverted Q-node 730d falls to a low logic level. Thus, when the falling edge of the signal at node 515 occurs, the D-input 740a to the upper left D-type flip-flop 740 just causes the Q-node 740a (i.e., the signal SN) to remain at a high logic level. But, the low logic level now at the D-input 750b of the upper right D-type flip-flop 750 causes its inverted Q-node 750d to transition high, i.e., the signal R pulses high. This signal pulses low for 1-2 ns because the upper right flip-flop 750 is substantially immediately reset (e.g., within 1-2 ns) by this very output signal. This high pulse on the signal R causes the output of the toggle flip-flop 760 to transition to a low logic level (if the output is not already low).
In the manner described above, the interpreter 520 generates on the node 525 a signal that substantially mimics the VIN signal at the input node 105 (
In this embodiment, when a signal at the node 515 is at a low logic level, the output of inverter 810 is high, which turns on the transistor N13. This pulls the node VP to a low logic level. The node VP is a first input to a differential amplifier 840 and therefore, the output of the amplifier is also at a low logic level when the input VP is low. The output of the amplifier 840 is coupled to the D-input of a first D-type flip-flop 850 via an inverter 851. Thus, the D-input is at a high logic level, which on a rising clock edge (of the signal at node 515) will cause the signal R at the inverted Q-node of the first flip-flop 850 to remain at a low logic level. The output of the amplifier 840 is also coupled to a second D-type flip-flop 860 via a second inverter 861. Then, a rising clock edge (of the signal at node 515) will cause the signal SN to pulse low.
On a rising edge of a signal at node 515 (i.e., either a 10 ns signal or a 40 ns signal is present), the transistor N13 turns off and the node VP begins to increase in voltage at a rate that is proportional to a delay associated with the current through transistor M13 and an RC circuit, where the transistor N10 forms a capacitor When the rising voltage at VP is compared to the threshold voltage VTH, the resulting output will control the flip-flops 850 and 860.
Thus, when the voltage at VP rises above the threshold before the falling edge at node 515 (as may be typical with a 40 ns signal), then the output of the amplifier 840 will transition to a high logic level causing the D-input of the first flip-flop 850 to transition to a low logic level and the D-input of the second flip-flop 860 to transition to a high logic level. Then, at the falling edge of the signal at node 515, the first flip-flop 850 will be clocked so that the signal R pulses high. Thus, the output at node 525 transitions to a low logic level.
Conversely, if the signal at node 515 presents a falling edge before VP charges to above VTH threshold, then the output of the amplifier remains at a low logic level and the D-input to the first flip-flop 850 is high while the D-input to the second flip-flop 860 is low. Therefore, on the falling edge of the signal at node 515, the first flip-flop will just keep the signal R at its logic low level. The second flip-flop 860 however, will cause the signal SN on its inverted Q-node output to pulse low, thus causing the flip flop 760 to generate or maintain a high logic level on the node 525.
The system 900 may include a first integrated circuit component 930 having an optocoupler circuit 100 disposed thereon as well as additional electronic components, such as, for example, a processing unit 940 and a memory unit 950. The components of the first integrated circuit component 930 may be disposed on a single integrated circuit die or may be disposed on several distinct integrated circuit dies that may be part of a single component 930 package. Signals sent to and received from these additional components may be electrically isolated via the optocoupler 100.
Further, the first integrated circuit component 930 may also be coupled to additional components as part of the system 900 such as a separate processor 910 and a separate memory 920. Signals sent to and received from these off-chip components may also be electrically isolated via the optocoupler 100.
While the subject matter discussed herein is susceptible to various modifications and alternative constructions, certain illustrated embodiments thereof are shown in the drawings and have been described above in detail. Furthermore, those skilled in the art will understand that various aspects described in less than all of the embodiments may, nevertheless, be present in any embodiment. It should be understood, however, that there is no intention to limit the subject matter to the specific forms disclosed, but on the contrary, the intention is to cover all modifications, alternative constructions, and equivalents falling within the spirit and scope of the subject matter disclosed.