Sensors are generally located at the place of the quantity to be measured. This either is required by the measuring principle itself or serves to keep measurement errors and uncertainties to a minimum. In the sensor, the measured quantities, such as temperature, magnetic field, pressure, force, flow rate, filling level, etc., are converted into physical signals which are then fed to the receiving device. As a rule, a conversion into electric signals takes place in the sensor, which signals are easy to generate, transmit, and receive, particularly if the receiver is a processor having appropriate interfaces. The signals to be transmitted can be analog or digital signals, depending on the application. Digital signals have the advantage of being less susceptible than analog signals to interference on the transmission path, but the price paid for this is increased complexity at the transmitting and receiving ends as well as on the transmission path. On the other hand, digital signals frequently fit better into the “signal landscape” of the associated processors, because the signal processing of the latter is substantially digital as well.
To avoid parallel data lines on the transmission path and corresponding parallel connections at the sensor and receiver ends, the data are desirably transmitted serially. Transmission is effected as a continuous data stream or as data packets separated in time. In the simplest form, the individual bits of the data are encoded by means of two easily distinguishable logical states and transmitted. There are plenty of known methods, the most widely known being pulse-code modulation (PCM) and pulse-width modulation (PWM), which are both binary modulation methods. Whether a carrier modulation is added does not alter this basically binary modulation scheme.
In the case of longer data words, one disadvantage of serial data transmission is the time needed for transmission, because the transmission rate is relatively slow. Long signal lines may round the pulse edges, so that reliable detection requires a significantly reduced data rate in comparison with the processor clock rate. As a rule, at least the associated data input of the receiver is blocked for other data during this time; in the worst case, the blocking extends to further portions of the processor, which then does not permit an interrupt, for example.
Another possibility for fast transmission of data is to reconvert the data prior to transmission into an analog signal with discrete values by means of a digital-to-analog converter, and to transmit this signal. This corresponds to parallel data transmission. At the receiver end, the data can then be recovered from the individual signal ranges by means of an analog-to-digital converter. At first sight this looks complicated, for the obvious thing to do would be to transmit the sensor's originally analog output signal. If, however, processing of the sensor signal, e.g., filtering, interpolation, compensation, level adaptation, equalization, etc., takes place in the sensor, this is accomplished much more easily at the digital level, because then the associated parameters and program steps are retrievable from digital memories and the digital processing is performed in on-chip chip computing devices. Problems are encountered with this transmission method in the case of high-resolution sensor output signals, because then the interference variables on the transmission path are comparable to or even greater than the step width of the available signal grid.
It is an object of the invention to provide a method which permits fast and in particular reliable data transmission between sensor and receiver even if sensors with high resolution are used.
This object is achieved through recognition that for transmission, not all data are simultaneously converted into an analog signal, a pseudosignal, but the data are converted in sections. The resulting analog signals are then transmitted in sequence in a multiplex mode. At the receiver end, the bits determined from the transmitted pseudosignals are joined together in correct sequence, so that the complete data word is available for further processing.
The number of multiplex sections and the number of data transmitted in each multiplex section are dependent on the respective characteristics of the functional units involved and on the interference to be expected. If the interference effect is low, this will permit more discretely distinguishable states than if the interference effect is high. In the limiting case, the interference effect is so high that multiplex transmission is no longer possible, but that each bit has to be transmitted separately; this, however, is the purely sequential mode.
At the receiver end, the data packets transmitted in a multiplex mode must be correctly reassembled. There must therefore be a reliable assignment telling which of the several data packets is which. This can be accomplished in many ways. A very simple solution is an identification by short intervals between those multiplex sections of a single data word which belong together, and by long intervals which serve to distinguish between different data words. In that case, the order of the data packets belonging together is fixed.
A big advantage of the multiplex transmission described is that even high-resolution sensor signals can be handled by the lower-resolution analog-to-digital converters in the processors. If a 14-bit data word is split into two 7-bit sections, a 10-bit analog-to-digital converter in the processor will be capable of resolving this signal and determining the associated 7 bits. The first 7 bits, which are assigned to the high- or low-order positions of the data word, are placed in a first register. In the second received signal, the 7 bits assigned to the low- or high-order positions of the data word are determined and stored in a second register or in free positions of the first register in correct sequence. The transmission of a 14-bit data word is thus carried out in two steps. Further processing then takes place in the processor as a 14-bit data word. One example of the requirement for high transmission accuracy is the sensing of the exact throttle position in an internal combustion engine, which is necessary for the adjustment of smooth idling.
Assuming the supply voltage for the electronics to be the usual 5 volts, an output voltage range between roughly 0.25 V and 4.75 V is available for the sensors. If a 10-bit resolution is to be achieved with this voltage range, the smallest resolution step, one LSB (least significant bit), will correspond to a voltage step of 4.88 mV. If, however, this transmission range is used for a multiplex transmission of 2 times 5 bits in accordance with the invention, the smallest resolution step LSB will correspond to a voltage step of 62.25 mV. This is a gain by a factor of about 30 over the original resolution.
The example shows that as a rule, transmission with two steps is sufficient, which simplifies the methods for identifying the two sections. For example, the available voltage range between 0.25 V and 4.75 V can be split into two parts of 0.25 V to 2.25 V and 2.75 V to 4.75 V. Then, the high-order bits are transmitted in one range and the low-order bits in the other. Noise immunity is halved, but it is still about a factor of 15 higher than in the above example of the transmission of a 10-bit signal.
The definition of or request for the respective data range can, however, also be effected by the controller itself in that the controller connects a load resistor of the transmission line via one of its I/O ports to the VSS or VDD potential. This switching is detected via the changed current direction in a suitable evaluating circuit in the sensor output and triggers the transfer of the desired data section. Another possibility of defining the data packets and, if necessary, triggering the same is to use signals on the supply line VDD or at a further terminal of the sensor. DE 198 19 265 C1 describes, for example, how command signals from an external controller are fed to a sensor via the supply voltage terminal VDD.
In the simplest case, a relatively high VDD voltage value triggers the transmission of the high-order data and a relatively low VDD voltage value triggers the transmission of the low-order data or vice versa.
If the rate of change of the quantity to be measured by the sensor is relatively slow, the data in the high-order range will not change, but only the data in the low-order range will. In that case it is appropriate to transmit only the changes in the low-order data range until a change occurs in the high-order data range. If the transmission takes place in two dynamic ranges, the identification as to which data section is being transmitted is guaranteed; otherwise another kind of identification must ensure this. This method further increases the transmission speed and reduces the loading of the controller.
The invention and further advantageous developments will now be explained in more detail with reference to the accompanying drawings, in which:
In
One example of such an implementation is shown in
Number | Date | Country | Kind |
---|---|---|---|
10 2004 007 486.0 | Feb 2004 | DE | national |