Background of the Invention
This invention relates to a multiplexed system including a plurality of microcomputers associated with watch dog timers for checking run-away in the respective microcomputers.
Multiplexed systems, which have a plurality of microcomputers multiplexed therein, include watch dog timers associated with the respective microcomputer to reset a defective microcomputer so as to stop the program run-away made in the defective microcomputer. For example, Japanese Patent Kokai No. 1-298446 discloses a prior art multiplexed system including two watch dog timers for checking program run-away in first and second microcomputers by monitoring watch dog pulse signals applied thereto from the respective microcomputers. When program run-away occurs in one of the first and second microcomputers, the corresponding watch dog timer produces a reset signal through a reset line to the one microcomputer. The prior art multiplexed system is arranged for the first and second microcomputers to check the watch dog timers at uniform intervals of time. The first microcomputer checks the second watch dog timer by monitoring the reset line of the second microcomputer while interrupting the watch dog pulse signal to the second watch dog timer. The second microcomputer checks the first watch dog timer by monitoring the reset line of the first microcomputer while interrupting the watch dog pulse signal to the first watch dog timer. A1 though the prior art multiplexed system is sufficient for checking the operations of the watch dog timers, it cannot check whether a watch dog timer has initialized the corresponding microcomputer correctly.
Summary of the Invention
It is a main object of the invention to provide a multiplexed system which can monitor the operations of a plurality of microcomputers to check associated watch dog timers.
There is provided, in accordance with the invention, a multiplexed system which comprises at least two microcomputers operable in parallel with each other, and watch dog timers. One of the watch dog timers is connected for receipt of an input signal from one of the microcomputers to check a program run-away condition in the one microcomputer. The other watch dog timer is connected for receipt of an input signal from the other microcomputer to check a program run-away condition in the other microcomputer. The one microcomputer checks the other watch dog timer. The other microcomputer checks the one watch dog timer. The multiplexed system also includes means for comparing calculation results fed thereto from the respective microcomputers to produce an output signal from the multiplexed system, means for interrupting the input signal from the other microcomputer to the other watch dog timer when the one microcomputer checks the other watch dog timer, means for checking the other watch dog timer based on an opera ting condition of the other microcomputer, and means for interrupting the calculation result fed from the other microcomputer to the comparing means while the other watch dog timer is checked.
Brief Description of the Drawings
The invention will be described in greater detail by reference to the following description taken in connection with the accompanying drawings, in which:
FIG. 1 is a schematic block diagram showing one embodiment of a multiplexed system made in accordance with the invention; and
FIG. 2 is a flow diagram used in explaining the operation of the multiplexed system of FIG. 1.
Detailed Description of the Invention
With reference to the drawings and in particular to FIG. 1, there is shown one embodiment of a schematic block diagram of a multiplexed system embodying the invention. The multiplexed system includes first and second microcomputers 31 and 39 which make the same calculations according to the state of an input signal applied thereto, and a first and second watch-dog timers 35 and 36 provided for the respective microcomputers 31 and 39. The second microcomputer (CPU2) 39 controls a gate circuit 33 through which a program run signal PRUN1 is fed to the first watch-dog timer (WDT1) 35 from the first microcomputer (CPU1) 31. When the program run signal PRUN1 is abnormal, the first watch-dog timer 35 produces a reset signal to the reset terminal of the first microcomputer 31 through a gate circuit 34 which is controlled by the second microcomputer 39. The first microcomputer 31 controls a gate circuit 37 through which a program run signal PRUN2 is fed to the second watch-dog timer (WDT2) 36 from the second microcomputer 39. When the program run signal PRUN2 is abnormal, the second watch-dog timer 39 produces a reset signal to the reset terminal of the second microcomputer 39 through a gate circuit 38 which is controlled by the first microcomputer 31. The multiplexed system also includes first and second switching circuits 40 and 41. The first switching circuit (SW1) 40 is normally in a first state passing an output signal from the first microcomputer 31 to a comparator circuit 42. The first switching circuit 40 changes into a second state passing an output signal from the second microcomputer 39 to the comparator circuit 42 in response to a command from the second microcomputer 39. The second switching circuit (SW2) 41 is normally in a first state passing an output signal from the second microcomputer 39 to the comparator circuit 42. The second switching circuit 41 changes to a second state passing an output signal from the first microcomputer 31 to the comparator circuit 42 in response to a command from the first microcomputer 31. The comparator circuit 42 compares the outputs fed thereto from the first and second switching circuits 40 and 41. A delay circuit 43 is connected to the comparator circuit 42 for providing a delay to the result of the comparison made in the comparator circuit 42. In FIG. 1, the numerals 44, 45, 46, 47, 48 and 49 indicate pull-up resistors.
FIG. 2 is a flow diagram illustrating the operation of the first microcomputer 31 to check the second watch-dog timer 36. At the point 110, the first microcomputer 31 produces a command to change the second switching circuit 41 to the second state passing the output signal fed thereto from the first microcomputer 31 to interrupt the operation of the comparator circuit 42. At the point 120, the first microcomputer 31 produces a mask signal to turn the gate circuit 3 7 off so as to mask the program run signal (PRUN2) from the second microcomputer 39 and operates the second watch-dog timer 36. At the point 130, the first microcomputer 31 makes a determination as to whether or not the second watch-dog timer 36 is operating in order. This determination is made based on the state of the output signal from the second microcomputer 39. The second watch-dog timer 36 is operating in order when the output signal from the second microcomputer 39 is in a reset state. In this case, at the point 140, the first microcomputer 31 produces a command to turn the gate circuit 37 on and at the same time produces a command to produce a mask signal to gate circuit 38 so as to mask the reset signal from the second watch-dog timer 36 to the second microcomputer 39. As a result, the operation of the second microcomputer 39 is resumed. At the point 150, the first microcomputer 31 makes a determination as to whether or not the output signal of the second microcomputer 39 is resumed. If the output signal of the second microcomputer 39 is resumed, at the point 160, the first microcomputer 31 produces a command to change second the first switching circuit 41 to the first state passing the output signal from the second microcomputer 39 and interrupts the mask signal to the gate circuit 38. If the output signal from the second microcomputer 39 is not in the reset state, at the point 170, an indication is made that the second watch-dog timer 36 is subject to a failure. In this case, at the point 180, the first microcomputer 31 produces a command to reset the multiplexed system.
While the operation of the first microcomputer 31 to check the watch-dog timer 36 has been described, it is to be understood that the second microcomputer 39 operates in a similar manner to check the watch-dog timer 35.