This application claims the priority, under 35 U.S.C. ยง 119, of German application DE 10 2007 010 886.0, filed Mar. 6, 2007; the prior application is herewith incorporated by reference in its entirety.
The invention relates to a control device for a motor vehicle.
Particularly in motor vehicles, safety-critical functions are also being integrated more and more frequently into the control device, as controllers, which mainly contain microcontrollers, offer a plurality of application possibilities and can be adjusted to numerous operating conditions in a relatively easy fashion. However, the demands placed on the operational safety of the control devices thus increase. The control devices must thus also contain diagnostic functions, emergency operation functions and locking device functions for instance in order to be able to suitably control certain safety-relevant motor vehicle functions such as for instance hazard warning lights, windshield wipers, motor vehicle lighting or the door unlocking mechanism in the case of partial or full failure of the control device.
It is accordingly an object of the invention to provide a control device for a motor vehicle that overcomes the above-mentioned disadvantages of the prior art devices of this general type, which contains at least some of the afore-described functions.
The object is achieved in particular by a control device containing a microcontroller, which is clocked by a first clock signal and contains at least one reset input, a diagnostic trigger input and a diagnostic output. The control device further contains a monitoring circuit for the microcontroller and the monitoring circuit has a counter clocked by a second clock signal and contains at least one reset input, a first counter output of lower weight and a second counter output of higher weight, with the reset input of the counter being coupled to the diagnostic output of the microcontroller. The first counter output is coupled to the diagnostic trigger input of the microcontroller and the second counter output is coupled to the reset input of the microcontroller such that when the microcontroller functions correctly, a signal at the first counter output triggers a diagnostic process of the microcontroller and a signal at the diagnostic output of the microphone resets the counter. However, if the microcontroller malfunctions, the counter is not reset so that this continues to count and generates a signal for resetting the microcontroller at the second counter output.
The invention is advantageous in that it achieves comprehensive monitoring and thus high operational safety with relatively little additional circuit complexity. The counter provided for the monitoring itself is also partly included in the monitoring circuit for instance.
In accordance with an added feature of the invention, the second counter output is embodied such that if the microcontroller malfunctions, the counter generates more than one signal for resetting the microcontroller.
In accordance with an additional feature of the invention, the counter has a third counter output of higher weight than the second counter output, and the third counter output outputs an emergency operation clock signal for further units in the control device, outside the control device or both.
In accordance with a further feature of the invention, the counter has a fourth counter output of higher weight than the second counter output, the fourth counter output is coupled to the reset input of the microcontroller and generates a signal for continuous reset activation.
In accordance with another feature of the invention, the monitoring circuit has a gate with an OR function, the second and fourth counter outputs are coupled to one another via the gate, the gate further coupled to the reset input of the microcontroller.
In accordance with another added feature of the invention, the signal for continuous reset activation is also provided for signaling an emergency operation.
In accordance with another further feature of the invention, the monitoring circuit has a resettable memory element, the fourth counter output is connected to the resettable memory element and through the resettable memory element is coupled to the reset input of the microcontroller. Preferably, the resettable memory element can be reset by a power-on reset signal.
In accordance with a further additional feature of the invention, the monitoring circuit has a monostable multivibrator coupled to the reset input of the microcontroller, the second counter output is connected to the monostable multivibrator and via the monostable multivibrator is coupled to the reset input of the microcontroller.
In accordance with yet another feature of the invention, the monitoring circuit has a flank generator for generating reset signals with a clear flank and is disposed upstream of the reset input of the counter.
In accordance with a concomitant feature of the invention, the first and second clock signals originate from different sources.
Other features which are considered as characteristic for the invention are set forth in the appended claims.
Although the invention is illustrated and described herein as embodied in a control device for a motor vehicle, it is nevertheless not intended to be limited to the details shown, since various modifications and structural changes may be made therein without departing from the spirit of the invention and within the scope and range of equivalents of the claims.
The construction and method of operation of the invention, however, together with additional objects and advantages thereof will be best understood from the following description of specific embodiments when read in connection with the accompanying drawings.
Referring now to the figures of the drawing in detail and first, particularly, to
The control circuit according to
The basic structure of the monitoring circuit 11 as well as the connection thereof to the microcontroller 1 is such that the reset input R2 of counter 4 is coupled to the diagnostic output DO of the microcontroller 1, counter output B1 is coupled to the diagnostic trigger input D1 of the microcontroller 11 and counter output B2 is coupled to the reset input R1 of the microcontroller 1. When the microcontroller 1 functions correctly, a signal at counter output B1 triggers a diagnostic process of the microcontroller 1 and a signal at the diagnostic output of the microcontroller 1 resets counter 4. If the microcontroller 1 malfunctions, counter 4 is not reset, so that this continues to count and generates a signal for resetting the microcontroller 1 at counter output B2.
With the present exemplary embodiment, counter output B2 is embodied such that if the microcontroller 1 malfunctions, it generates more than one signal in order to reset the microcontroller 1. The number in the present case is two and results here from the ratio of the weights of outputs B2 and B4, as counter output B4 delivers a signal which is divided by 4 in the frequency compared with the signal at output B2. Counter output B2 is here interconnected via a monostable memory element, namely a monoflop 6, with which it is coupled to the reset input R1 of the microcontroller in order to generate defined impulses to reset the microcontroller 1.
Counter output B3, which as already been mentioned, has a higher weight than counter output B2, provides an emergency operation clock signal ACS for further units in the control device or outside the control device or both. Autonomous circuit units for the operation of hazard warning lights, windshield wipers, the motor vehicle lighting or a door locking system can thus be operated for instance.
Counter output B4, which has a higher weight than counter output B2, is coupled to the reset input R1 of the microcontroller 1 and generates a signal for the continuous reset activation of the microcontroller 1. This means that when the microcontroller 1 no longer takes up the correct operation despite numerous resets by way of counter output B2, counter 4 continues to count and then activates the continuous reset with a specific counter state. A resettable memory element, here an RS-flip-flop 8, is disposed here downstream of counter output B4, the memory element being set by the signal at counter output B4 and being reset by a power-on reset signal POR. The linking of the signals to counter outputs B2 and B4 by interconnection via the mono-flop 6 and/or the RS-flip-flop 8 is carried out by way of a gate 7 with OR function for instance, the output of which is coupled to the reset input of the microcontroller 1. The signal for the continuous reset, in other words the signal at the output Q of the RS-flip-flop 8, is also provided for signaling an emergency operation (signal FO).
A flank generator 9 for generating reset signals with a clear flank (rising and falling edges) is finally arranged upstream of the reset input R2 of counter 4. The flank generator 9 of this type can in the simplest case be a differential element or a non post-triggerable monostable multivibrator (Monoflop).
The signal courses in
If the microcontroller 1 does not or not promptly reset counter 4, counter 4 continuous to run and resets the microcontroller 1 by its counter output B2. In the present case, counter output B2 is selected here in relation to counter output B4, such that it provides two reset signals for the microcontroller 1. If the microcontroller 1 thus fails to operate correctly even with a double reset, the continuous reset and thus the emergency operation is activated by way of counter output B4. The continuous reset is used to prevent an unwanted, i.e. highly probable faulty program execution. The emergency operation clock signal ACS is however also provided by way of counter output B3, since the counter continuous to run. Safety-relevant autonomous units can herewith be powered with the emergency operation clock signal ACS and thus continue to operate. The signal triggering the continuous reset can also be provided to other units in order to signal the emergency operation function.
A signal which is divided by four in the frequency compared with counter output B2 is present at counter output B4. Two high statuses (pulses to reset the microcontroller 1) herewith firstly appear at counter output B2, before a continuous reset is activated by the high state of the signal at counter output B4. The RS-flip-flop 8 connected downstream of counter output B4 is herewith set and continuously keeps the microcontroller reset by way of its output Q until the RS-flip-flop 8 is reset on its part by switching the power supply on and off (power-on reset).
The reset signal at the reset input R1 of the microcontroller 1 is thus produced from the OR link (or equivalent links with partial or exclusive use of inverted signals) of the output signals of the mono-flop 6 and of the RS-flip-flop 8, such that two high pulses of a duration determined by the mono-flop 6 are firstly emitted and then a high level is permanently generated. Regardless of this, a clock signal for the emergency operation is generated by counter 4 continuously counting at counter output B3, which corresponds to the signal divided by 4 in the frequency at counter output B1.
Number | Date | Country | Kind |
---|---|---|---|
10 2007 010 886.0 | Mar 2007 | DE | national |