This invention relates to an interface error monitor system and method for monitoring data exchanged between a controller and a data converter such as an analog to digital converter or digital to analog converter.
Data converters both analog to digital converters (ADC's) and digital to analog converters (DAC's) often are used in harsh industrial environments such as data acquisition and transfer applications where noise is a serious problem causing errors in the data exchanged between the controller and the data converted. One approach is to reduce the noise to levels where no or very few errors occur using optoisolators, differential signals and hysteresis techniques but these are expensive and space consuming solutions which still can't assure noise free and error free data exchanges. In one technique for detecting errors in the data exchange the data is simply read a second or third time. This severely reduces the data transfer rate or requires faster more expensive systems to maintain the original data transfer rate. Conventional error checking approaches could be used but they require additional and costly error checking logic and/or parity bits which increase the size of the data and processing time. See generally The Ouroboros of the digital consciousness: Linear-feedback-shift registers. EDN Jan. 4, 1996; Digital systems testing and testable design. Pages 431 to 448. ISBN 0-7803-1062-4; and Bebop to the Boolean logic. ISBN 1878707-22-1. Appendix F.
It is therefore an object of this invention to provide improved interface error monitor system and method for monitoring data exchanged between a controller and data converter.
It is a further object of this invention to provide such an improved interface error monitor system and method for monitoring data exchanged between a controller and data converter which requires little additional circuitry and chip space.
It is a further object of this invention to provide improved interface error monitor system and method for monitoring data exchanged between a controller and data converter which avoids using additional parity bits.
It is a further object of this invention to provide improved interface error monitor system and method for monitoring data exchanged between a controller and data converter which reduces the amount of data transferred for error checking.
It is a further object of this invention to provide improved interface error monitor system and method for monitoring data exchanged between a controller and data converter which inherently functions with any size data exchange.
It is a further object of this invention to provide improved interface error monitor system and method for monitoring data exchanged between a controller and data converter which enables user control over the timing and frequency of error checking.
This invention features an interface error monitor system for monitoring data exchanged between a controller and a data converter including a multi-stage linear feedback shift register associated with the data converter for generating a pseudo random number sequence. A signature generating circuit responsive to the data exchanged between the controller and data converter alters the pseudo random number sequence generated by the linear shift feedback register to create a signature of the data.
In a preferred embodiment, a replicating system associated with the controller may be responsive to the data exchanged for creating an image of the signature of the data created by the linear feedback shift register. An error detecting system may be responsive to a mismatch between the signature of the data and the image of the signature of the data to indicate an error in the data exchange. The linear feedback shift register may include at least sixteen stages. The data exchange may include multi bit words and the signature generating circuit may include a logic gate for each bit of a word in the data exchanged. Each logic gate may be interposed between a different pair of stages. The replicating system may include a second linear feedback shifter register. The error detecting system may include a comparator; the data exchanged may include data in and data out. There may be a switching circuit for selectively connecting the linear feedback shifter register to data in and data out. There may be a second linear feedback shifter register associated with the data converter; one of the feedback registers may be responsive to the data in and the other responsive to the data out. The data converter may be an analog to digital converter or it may be a digital to analog converter. The linear feedback shift register may be reset by a sequence of data bits in the data exchanged. The switching circuit may re responsive to whether data in or data out is active.
The invention also features an interface monitor system for monitoring data exchanged between a controller and a data converter over an interface. There is a multistage linear feedback shift register associated with the data converter for generating a pseudo random number sequence. A signature generating circuit responsive to data exchanged between the controller and data converter alters the pseudo random number sequence generated by the linear feedback shift register to create a signature of the data. The data exchanged includes a first data signal and there is a clock for providing synchronizing clock signals between the controller and the data converter.
In a preferred embodiment, the data exchange may further include a second data signal. There may be a switching circuit for selectively connecting the linear feedback shift register to first and second data signals. There may be a second linear feedback shift register associated with the data converter one of the feedback registers being responsive to the first data signal and the other being responsive to the second data signal.
The invention also features an interface error monitor system for monitoring data exchanged between the controller and the data converter over an interface including a multistage linear feedback shift register associated with the data converter for generating a pseudo random number sequence. A signature generating circuit is responsive to data exchanged between the controller and data converter for altering the pseudo random number sequence generated by the linear feedback shift register to create a signature of the data wherein the contents of the multistage linear feedback register is read from the data converter over the interface.
This invention also features an interface error monitoring method for monitoring the data exchange between a controller and a data converter over an interface including setting a signature in the data converter and setting a signature in the controller. The method further includes altering, in response to data exchanged between the controller and the data converter, the pseudo random number sequence generated by a linear feedback shift register in each of the data converter and controller to generate a new signal in each of the data converter and controller. Data is communicated between the controller and the data converter and the new signatures from the data converter and controller are read over the interface. The new signatures are compared, and if they match, the communication is validated.
The invention results from the realization that an improved interface error monitor system and method for monitoring data exchanged between a controller and a data converter which achieves all of the foregoing objects can be achieved by altering with the data exchanged a pseudo random number sequence generated in the data converter to construct a signature of that exchanged data and then comparing that signature with an image of that signature constructed by a replicating circuit in the controller.
Other objects, features and advantages will occur to those skilled in the art from the following description of a preferred embodiment and the accompanying drawings, in which:
Aside from the preferred embodiment or embodiments disclosed below, this invention is capable of other embodiments and of being practiced or being carried out in various ways. Thus, it is to be understood that the invention is not limited in its application to the details of construction and the arrangements of components set forth in the following description or illustrated in the drawings.
There is shown in
Error monitor system 24,
In operation with the clock signal SCLK occurring on line 40,
One example of this method according to the invention includes setting or resetting the signature on the data converter, step 200,
Monitor circuit 26,
A linear feedback shift register (LSFR) is basically a shift register with feedback to pre-defined taps. Such an LFSR 80 is shown in
After seven clocks the LFSR returns to its initial condition and will thereafter repeat the same sequence as it is further clocked. This LFSR is said to be maximal in that it hits each output value exactly once when the registers are combined to form a three bit word. The only three bit value not hit is zero and if the LFSR were ever to be reset to a zero condition it could not escape without an external prompt. The order in which LFSR 80 progresses through all combinations of the three bit numbers is pseudo random in nature and LFSR are often used to generate pseudo random numbers or sequences. Not all feedback locations will result in the behavior described in Table I. If the feedback points are improperly chosen then either the LFSR will enter the zero state and become trapped or will repeat without covering all codes. There are tables readily available giving the feedback points for the most practical length LFSRs. For a sixteen bit LFSR shown in this preferred embodiment the feedback points are 1, 2, 4 and 15. For a thirty-two bit LFSR, they are 1, 5, 6 and 31. The larger the LFSR, that is the more stages it has, the less is the likelihood of aliasing. If an LFSR is reset and the same pattern of data is applied on two occasions then it will contain the same output on both occasions; if however, a different pattern is applied it may contain an identical value purely through chance and this is referred to as aliasing, a well known effect.
Other than generating random numbers the above arrangement is limited. If however, the LFSR is arranged to accept external inputs then its usefulness is much extended. This can be explained with respect to linear feedback shift register 80,
Although thus far the invention has been explained with respect to a linear feedback shift register servicing a serial bit stream this is not a necessary limit of the invention, for example if instead of a serial bit stream the data exchange occurred in bytes of 8 bits at a time a multiple signature input register (MISR) would be used.
Such an MISR 120 is shown in
Although the description in
Although specific features of the invention are shown in some drawings and not in others, this is for convenience only as each feature may be combined with any or all of the other features in accordance with the invention. The words “including”, “comprising”, “having”, and “with” as used herein are to be interpreted broadly and comprehensively and are not limited to any physical interconnection. Moreover, any embodiments disclosed in the subject application are not to be taken as the only possible embodiments.
Other embodiments will occur to those skilled in the art and are within the following claims:
Number | Name | Date | Kind |
---|---|---|---|
4513418 | Bardell et al. | Apr 1985 | A |
4980888 | Bruce et al. | Dec 1990 | A |
5778206 | Pain et al. | Jul 1998 | A |
5905738 | Whetsel | May 1999 | A |
6049894 | Gates | Apr 2000 | A |
6189127 | Fang et al. | Feb 2001 | B1 |
6671832 | Apisdorf | Dec 2003 | B1 |
6691272 | Azim | Feb 2004 | B2 |
6771442 | Bliss et al. | Aug 2004 | B2 |
Number | Date | Country | |
---|---|---|---|
20040117702 A1 | Jun 2004 | US |