The present disclosure generally relates to a current modulation circuit.
Current modulation circuits are used in a number of applications. The Peripheral Sensor Interface (PSTS) is an interface used, for example, in automotive sensor applications wherein an electronic control unit (ECU) and sensor are coupled by a two-wire interface supporting both power supply and data transmission. The ECU provides a regulated voltage to the sensor, and the sensor transmits data to the ECU on the supply line using current modulation. The current modulation is detected by the ECU and decoded to recover the original digital data stream generated at the sensor.
Specifications governing configuration and operation of the interface must be followed by the current modulator in the sensor when transmitting data to the ECU. There is a need in the art for a current modulator circuit that operates in accordance with specifications and without introducing distortion.
In an embodiment, a circuit comprises: a controlled current source configured to generate an output current in response to a difference between a first input signal derived from a modulated digital input signal and a second input signal; a current sensing circuit configured to sense the output current and generate a feedback signal; a switching circuit configured to selectively apply one of a fixed reference signal and the feedback signal as the second input signal to the controlled current source; wherein the switching circuit is configured to apply the feedback signal as the second input signal in response to a transition of the modulated digital input signal from a first logic state to a second logic state; and wherein the switching circuit is configured to apply the fixed reference signal as the second input signal in response to a transition of the modulated digital input signal from the second logic state to the first logic state.
In an embodiment, a method comprises: generating an output current in response to a difference between a first input signal derived from a modulated digital input signal and a second input signal; sensing the output current to generate a feedback signal; and selectively applying a fixed reference signal or the feedback signal as the second input signal. Selectively applying comprises: applying the feedback signal in response to a transition of the modulated digital input signal from a first logic state to a second logic state; and applying the fixed reference signal in response to a transition of the modulated digital input signal from the second logic state to the first logic state.
In an embodiment, a circuit comprises: an input configured to receive a modulated digital input signal; a conditioning circuit having an input configured to receive the modulated digital input signal and an output configured to generate a first input signal having sloped logic state transitions; an error amplifier circuit having a first input configured to receive the first input signal and a second input configured to receive a second input signal; a MOS transistor having a gate coupled to an output of the error amplifier and a source-drain path configured to generate an output signal that is current modulated in accordance with the modulated digital input signal; a sensing circuit configured to sense said output signal and generated a feedback signal; a switching circuit configured to selectively apply one of a fixed reference signal and the feedback signal as the second input signal to the error amplifier; and a control circuit configured to control operation of the switching circuit so as to: apply the feedback signal as the second input signal in response to a transition of the modulated digital input signal from a first logic state to a second logic state; and apply the fixed reference signal as the second input signal in response to a transition of the modulated digital input signal from the second logic state to the first logic state.
The foregoing and other features and advantages of the present disclosure will become further apparent from the following detailed description of the embodiments, read in conjunction with the accompanying drawings. The detailed description and drawings are merely illustrative of the disclosure, rather than limiting the scope of the invention as defined by the appended claims and equivalents thereof
Embodiments are illustrated by way of example in the accompanying figures not necessarily drawn to scale, in which like numbers indicate similar parts, and in which:
Reference is now made to
The circuit 10 further includes a voltage level conditioning circuit 14 which receives the input data signal from the input node 12. The voltage level conditioning circuit 14 generates a reference voltage signal Vx at an output node 16. The voltage level of the reference voltage signal Vx varies over time in a manner which generally corresponds to the changing logic state of the input data signal. The reference voltage signal Vx has a maximum voltage level equal to a fixed reference voltage Vref.
The circuit 10 also includes voltage controlled current source circuit 18. The voltage controlled current source circuit 18 includes an input node 20 coupled to receive the reference voltage signal Vx from the voltage level conditioning circuit 14 output node 16. The voltage controlled current source circuit 18 also includes an input node 22 coupled to receive a switched voltage Vsw. Responsive to a comparison of the reference voltage signal Vx to the switched voltage Vsw, the voltage controlled current source circuit 18 generates an output current Is at an output node 24. The voltage controlled current source circuit 18 further operates to sense the output current Is and generate a feedback voltage signal Vfb which is indicative of the sensed output current.
The circuit further includes a loop timing control circuit 26. The loop timing control circuit 26 includes an input node 28 configured to receive the input data signal (IN) and an input node 30 configured to receive the feedback voltage signal Vfb. The loop timing control circuit 26 responds to the logic state of the input data signal (IN) to selectively switch (i.e., connect) either the feedback voltage signal Vfb as the switched voltage Vsw or an internal reference voltage Vdd as the switched voltage Vsw. For example, in response to a first logic state (such as logic “1”) of the input data signal (IN), the loop timing control circuit 26 connects the feedback voltage signal Vfb as the switched voltage Vsw to the input node 22 of the voltage controlled current source circuit 18. Conversely, in response to a second logic state (such as logic “0”) of the input data signal (IN), the loop timing control circuit 26 connects the internal reference voltage Vdd for application as the switched voltage Vsw to the input node 22 of the voltage controlled current source circuit 18. The precise timing of the connections is controlled by the loop timing control circuit 26 in a manner described in detail herein.
Reference is now additionally made to
When the input data signal (IN) transitions from low to high, the reference voltage signal Vx starts to ramp up slowly until it reaches the maximum voltage level set by the fixed reference voltage Vref. The switched loop is closed and the signals Vx and Vfb that are applied to the inputs of the voltage controlled current source circuit 18 cause the output current Is to rise at a rate that is almost the same as Vx. The rise in output current Is continues until Vfb=Vx. When the input data signal (IN) subsequently transitions from high to low, the reference voltage signal Vx starts to ramp down slowly and the output current Is correspondingly begins to fall. Although the input data signal (IN) is low, the switched loop does not immediately change state. The output current is sensed (through the signal Vfb) and compared to a reference current Iref by the loop timing control circuit 26. When the sensed current falls below Iref, the switched loop state changes to open. At this point, the internal reference voltage Vdd is instead applied in the feedback loop as the switched voltage Vsw. This internal reference voltage Vdd exceeds the reference voltage signal Vx and causes the current generator of the voltage controlled current source circuit 18 to turn off The current sense and comparison operation introduces a delay td between the time when the input data signal (IN) transitions from high to low and the time when the switched loop opens.
Reference is now made to
The voltage level conditioning circuit 14 includes a switched current source circuit 100 and a slope capacitor (Cslope) 102. The switched current source circuit 100 operates responsive to the input data signal (IN) (at input 12) to charge and discharge the slope capacitor 102. The switched current source circuit 100 may be configured (see,
The voltage controlled current source circuit 18 includes an error amplifier 110 having a non-inverting input (+) configured to receive the reference voltage signal Vx from input 20 and an inverting input (−) configured to receive the switched voltage Vsw from input 22. A MOS transistor (M1) 112 has a gate terminal coupled to the output 310 of the error amplifier 110. The drain terminal of transistor 112 is coupled to an output node 24. The source terminal of transistor 112 is coupled at node 114 in series with a sense resistor (R1) 116 coupled to a reference voltage node (ground). The feedback voltage signal Vfb is generated across resistor 116 in response to the flow of the output current Is in the source-drain path of transistor 112.
The loop timing control circuit 26 includes switching circuitry comprising a first switch (S1) 120, a second switch (S2) 122 and a third switch (S3) 124. The first switch 120 is coupled between the internal reference voltage Vdd and an output node 126 where the switched voltage Vsw is provided to node 22. The second switch 122 is coupled between input node 30 (receiving the feedback voltage signal Vfb) and the output node 126. The third switch 124 is coupled between input node 30 (receiving the feedback voltage signal Vfb) and the reference voltage node (ground). The switches 120, 122 and 124 are actuated by corresponding first, second and third control signals 130, 132 and 134, respectively, generated by logic circuitry 136.
The logic circuitry 136 includes an inverter 138 having an input coupled to receive the input data signal (IN) from node 12. An output of the inverter 138 is coupled to a first input of a logic-AND gate 140. A second input of the logic-AND gate 140 receives a delay control signal 142. The output (signal SHD) of the logic-AND gate 140 provides the first and third control signals 130 and 134. An inverter 144 has an input coupled to the output SHD of the logic-AND gate to generate the second control signal 132 (SHDB).
A comparator circuit 150 has an input coupled to the input node 30 (receiving the feedback voltage signal Vfb). As the feedback voltage signal Vfb is developed across resistor 116 in response to the output current Is, the voltage Vfb corresponds to the current Is. The comparator 150 further receives the reference current Iref and thus functions as a current comparator to perform a comparison of Is to Iref. The delay control signal 142 is generated at the output of comparator circuit 150. When Is exceeds Iref, the delay control signal 142 has a first logic state (for example, logic “0”), and when Iref exceeds Is, the delay control signal 142 has a second logic state (for example, logic “1”). When the delay control signal 142 is in the first logic state (logic “0”), the logic-AND gate 140 blocks a change in the logic state of output SHD when the inverted input data signal (IN) changes state. This controls the implementation of the time delay td (
Reference is now made to
The switches 202, 206, 208, 210 and 212 are actuated by corresponding fourth, fifth, sixth, seventh and eighth control signals 222, 226, 228, 230 and 232, respectively, generated by logic circuitry 218. The logic circuitry 218 receives the input data signal (IN) from node 12 and a clamp signal 220 output from the comparator circuit 216. Those skilled in the art understand how to design the logic circuitry 218 to implement the required functions and generate the appropriate control signals in response to the logic states of the input data signal (IN) and the clamp signal 220.
Reference is now additionally made to
The switched current source circuit 100 can have alternate circuit configurations than what is shown in
The circuitry for implementing the clamping of the reference voltage signal Vx to the fixed reference voltage Vref can have alternate circuit configurations than what is shown in
Reference is once again made to
Reference is now made to
To address the distortion issue discussed above, the error amplifier 110 further includes a boost start-up circuit 340 coupled between error amplifier output node 310 and the input of the differential driver circuit 302. The boost start-up circuit 340 includes a differential amplifier circuit 342 having an inverting input (−) and a non-inverting input (+), with an output of the differential amplifier circuit 342 coupled to the input of the differential driver circuit 302. A ninth switch (S9) 344 is coupled between the non-inverting input (+) and the reference voltage Vdd. A tenth switch (S10) 346 is coupled between the non-inverting input (+) and the error amplifier output node 310. The switches 344 and 346 are actuated by corresponding ninth and tenth control signals 354 and 356, respectively, generated by the loop timing control circuit 26. More specifically, the output (SHD) of the logic-AND gate 140 and its complement (SHDB) are applied as the control signals 354 and 356, respectively. The boost start-up circuit 340 further includes a current source 360 coupled in series with a diode-connected MOS transistor 362 between the reference voltage Vdd and ground. The gate of transistor 362 is coupled to the inverting input (−) of the differential amplifier circuit 342 which receives a reference voltage equal to the threshold voltage (VT) of the transistor 362.
The boost start-up circuit 340 assists the input differential amplifier circuit 300 to drive the error amplifier output node 310 in response to a transition of the input data signal (IN) to logic high (“1”). As discussed above, this transition causes the feedback loop to close through the actuation of switch S2 by the signal SHDB. The switch S10 is likewise actuated and the differential amplifier circuit 342 operates to compare the voltage at the error amplifier output node 310 to the threshold voltage (VT) of the transistor 362. The differential amplifier circuit 342 will drive the error amplifier output node 310 (through the differential driver circuit 302) for a short duration until the voltage at the error amplifier output node 310 equals the threshold voltage (VT) of the transistor 362, and the concern with the response time of the input differential amplifier circuit 300 and the distortion of output current Is are obviated. The transistor M1 will begin to conduct under the control of differential amplifier circuit 342. After the short duration expires, the input differential amplifier circuit 300 will have settled and the established feedback path through switch S2 and the input differential amplifier circuit 300 will take control over the driving of transistor M1.
Reference is now made to
The operation of the loop timing control circuit 26 of
The foregoing description has provided by way of exemplary and non-limiting examples a full and informative description of one or more exemplary embodiments of this invention. However, various modifications and adaptations may become apparent to those skilled in the relevant arts in view of the foregoing description, when read in conjunction with the accompanying drawings and the appended claims. However, all such and similar modifications of the teachings of this invention will still fall within the scope of this invention as defined in the appended claims.