The slew rate of an input signal can be determined by utilizing a comparator to compare the input signal to various thresholds and generating output signals when the thresholds are crossed. The time between the generation of the output signals is the slew rate of the input signal.
The op-amps 110, 120 need to be matched for the detector 100 to work effectively. However, the op-amp 110 may utilize negative channel transistors (e.g., NMOS) and the op-amp 120 may utilize positive channel transistors (e.g., PMOS). Furthermore, the op-amps 110, 120 may be susceptible to process, voltage and temperature (PVT). Mismatches in the clock to output time (TCO) of the op amps 110, 120 may cause an unacceptable detection error. As the incoming slew rate gets smaller as the speed of applications increase the tighter the diction parameters will be.
The features and advantages of the various embodiments will become apparent from the following detailed description in which:
The comparators 210H, 210L are identical and include charge switches 230, 235, a compare switch 240, first and second capacitors 250, 260, and first and second inverters (inverting comparators) 270, 280. The comparators 210H, 210L receive two complementary clocks (charge and compare) that control the operation of the charge switches 230 and the compare switches 240 respectively.
When the charge clock is high (and the compare clock is low) the charge switches 230, 235 will be closed (and the compare switches 240 will be open) and the comparators 210H, 210L will be in a charging state. For the comparator 210H when the charge switch 230H is closed the capacitor 250H is connected to VREFHI and that side (node A-high) of the capacitor 250H is charged to VREFHI (80% of VCC). When the charge switch 235H is closed an input and output of the first inverter 270H is shorted together (a negative feedback path is provided for the inverter 270H) so that the first and second capacitors 250H, 260H are coupled to the second inverter 280H. The sides of the capacitors coupled to the second inverter (node B-high) are equalized to the output of the first inverter 270H/input of the second inverter 280H (the trip-point of the second inverter 280H, VTRIPHI). For the comparator 210L, node A-low is charged to VREFLO (20% of VCC) and node B-low is charged to the second inverter 280L trip-point (VTRIPLO).
When the compare clock is high (and the charge clock is low) the compare switches 240 will be closed (and the charge switches 230, 235 will be open) and the comparators 210H, 210L will be in a comparing state. For the comparators 210H, 210L when the compare switch 240 is closed the capacitor 250 is connected to VIN. If VIN is on a rising edge VIN will reach VREFLO first so the operation of the second comparator 210L will be discussed first. From the charging state the capacitor 250L is storing VREFLO and VTRIPLO. When VIN reaches VREFLO the inverters 270L, 280L will trip and the VOUTLO signal will go from low to high. For the comparator 210H from the charging state the capacitor 250H is storing VREFHI and VTRIPHI. When VIN reaches VREFHI the inverters 270H, 280H will trip and the VOUTHI signal will be activated (go from low to high). The time difference between two trip points is Δt, which corresponds to the slew rate.
For a falling edge VIN, the VOUTHI would be deactivated (go from high to low) first followed by the VOUTLO being deactivated.
Using switched capacitor comparators to detect the slew rate enables the comparators to have the same (substantially identical) design as well as operate with same (substantially identical) biasing conditions so systematic errors (e.g., PVT) are substantially eliminated. Furthermore, the negative feedback connection across the comparator during the charge state auto-zeros any random mismatch errors in the comparators. Although the two comparators are identically designed, manufacturing defects and lithographic variations result in slight random variations in the behavior of each. During the charge phase any such statistical errors in the zero-crossing threshold of the comparator get stored on the capacitor so that during the compare phase, this offset error is reduced by a factor of A+1; where A is the gain of the comparator. The statistical mismatch between the two comparators is substantially reduced (e.g., by at least 10 times). As a result of the substantially identical circuits, substantially identical biasing, and auto-zeroing of mismatch enabled, precision in slew rate detection is accomplished.
The switched capacitor slew-rate detector may be utilized in any number of input/output (I/O) systems. The high-precision of the switched capacitor slew-rate detector allows it to be used for high-speed systems. The switched capacitor slew-rate detector may be implemented in any number of integrated circuits utilized in these systems.
Although the disclosure has been illustrated by reference to specific embodiments, it will be apparent that the disclosure is not limited thereto as various changes and modifications may be made thereto without departing from the scope. Reference to “one embodiment” or “an embodiment” means that a particular feature, structure or characteristic described therein is included in at least one embodiment. Thus, the appearances of the phrase “in one embodiment” or “in an embodiment” appearing in various places throughout the specification are not necessarily all referring to the same embodiment.
The various embodiments are intended to be protected broadly within the spirit and scope of the appended claims.