The present invention relates to electronic circuitry and, in particular, to a self correcting scheme to match pull up and pull down devices.
CAN is a differential signaling system that makes use of two bus lines namely CANH and CANL. Data communication occurs mainly by differentiating between the two possible states on the bus—a dominant state during which a differential voltage is established between the two bus lines and a recessive state during which there is no differential voltage. In the latter state, CANH and CANL are both in a high-z (high impedance) state and the driver is inactive.
One of the specifications for CAN is that the difference in common mode voltage between dominant and recessive states should be less than 120 mV and during transitions the spikes in the common mode voltage should be restricted below the same values, if not completely avoided. A prior art CAN driver is shown in
A self correcting scheme to match pull up and pull down devices includes: a first comparator for comparing a common mode signal to a high reference limit; a second comparator for comparing the common mode signal to a low reference limit; a first flip flop having an input coupled to an output of the first comparator; a second flip flop having an input coupled to an output of the second comparator; a counter having inputs coupled to the first and second flip flops; and a delay device controlled by an output of the counter, wherein the delay device provides a pull down control signal that is delayed relative to a pull up control signal.
In the drawings:
A 4 bit counter 48 counts backwards or forward depending on transitions captured by the flip-flops 44 and 46 which in turn depend on the CM spiking negative or positive. When a negative spike occurs (meaning NMOS transistor 22 turns on faster), the counter counts backwards and when a positive spike occurs the counter counts forward. The output of counter 48 is used to control the delay select device 49 to tap off the delayed controlled signal (PMOS Control) that turns on PMOS pull up device 20, shown in
Thus a self correcting scheme is implemented that corrects itself over a few dominant and recessive transitions after start up (a worst case of 32 cycles when using a 4-bit counter). The same feed back loop is also used to correct the turn off times in the CAN driver during the dominant to recessive transition. This sort of a feedback scheme can be used in general to match any transitions that may be mismatched for varied reasons. The resolution is only limited by the number of bits used for the counter and the speed of the comparators used for detecting glitches in the common mode signal. The comparators 40 and 42 can be as simple as a detect device (matched to the driver device) driving a current source. The output of such a comparator can be used to drive an inverter that gives a logic signal that is indicative of when the detect device turns on and becomes stronger than the current threshold set by the fixed current source in the comparator scheme.
Prior art solutions relied on sizing the PMOS and NMOS very accurately by trial and error and made use of the fact that the mismatch can be reduced when the turn on times are very fast. Mismatch could only be reduced by driving the PMOS and NMOS with a fast transitioning signal but in applications where slope control is necessary, speed cannot be used to mask mismatch. Even these seemingly useful techniques fail to meet requirement because all the delay and speed settings of the control signals may have to be preset or trimmed in and these still do not cater to problems due to variation in process, temperature and supply.
The present invention uses a feed back loop for self correction of common mode spiking, which eliminates the need for trim and experimentation. This solution is thus robust and can be implemented with relative ease using a few digital blocks. Since the feedback loop directly monitors the desired performance it helps meet the specifications with more accuracy. The method is robust and the correction adjusts itself with changes in temperature and supply.
While this invention has been described with reference to an illustrative embodiment, this description is not intended to be construed in a limiting sense. Various modifications and combinations of the illustrative embodiment, as well as other embodiments of the invention, will be apparent to persons skilled in the art upon reference to the description. It is therefore intended that the appended claims encompass any such modifications or embodiments.
Number | Name | Date | Kind |
---|---|---|---|
4364094 | French et al. | Dec 1982 | A |
4637018 | Flora et al. | Jan 1987 | A |
5049766 | van Driest et al. | Sep 1991 | A |
5448180 | Kienzler et al. | Sep 1995 | A |
5566363 | Senda | Oct 1996 | A |
5731725 | Rothenberger et al. | Mar 1998 | A |
6154061 | Boezen et al. | Nov 2000 | A |
6246274 | Sakai et al. | Jun 2001 | B1 |
6456170 | Segawa et al. | Sep 2002 | B1 |
6570426 | Nakashimo | May 2003 | B2 |
6586962 | Sakurai et al. | Jul 2003 | B2 |
6778024 | Gupta et al. | Aug 2004 | B2 |
6806695 | Broach et al. | Oct 2004 | B1 |
6922073 | Haase et al. | Jul 2005 | B2 |
6924658 | Peng | Aug 2005 | B2 |
Number | Date | Country | |
---|---|---|---|
20060022735 A1 | Feb 2006 | US |