CONTROL SYSTEM WITH A MICROPROCESSOR

Abstract: A control system with a microprocessor (14) controls an output pressure of a water/air pump (50) and a light amount of a light source lamp (48) in an endoscope. Under control of a program, the microprocessor (14) periodically accesses a decoder (22) to periodically generate a pulse signal. The gen­ erated pulse signal is applied to a watch dog type detector (32, 38) for detecting an abnormal operation of the microproces­ sor (14). When the microprocessor (14) operates abnormally and is detected, the microprocessor (14) is reset, and an out­ put pressure of a water/air pump (50) and a light amount of a light source lamp (48) are respectively set at the maximum levels independently of the control by the microprocessor (14).

Description: The present invention relates to an endoscope control system with a microprocessor, comprising a detecting means for detecting an abnormal operation of the microprocessor and resetting the microprocessor upon detection of an abnormal operation; and a control means for controlling the amount of light emitted from a light source lamp and output pressure of a water/air pump, in accordance with the output signal of the microprocessor; a first display means, connected to the microprocessor, for displaying an operating state of the lamp and the pump; and a second display means for indicating an abnormal operation of the microprocessor upon detection by the detecting means. The present invention relates particularly to a control system with a microprocessor for preventing a device under control from erroneous operation of the microprocessor. In DE-A-29 10 058, a system has been described for preventing a device under control from erroneously operating due to the malfunction of the microprocessor. The system relates to a lifting crane which is controlled by a microprocessor so that the load lifted will be within a predetermined safety limit. The microprocessor sends out an output signal in the form of a series of impulses to the input of a detector, namely, a retriggerable monoflop. The detector will detect a malfunction of the microprocessor by sensing missing pulses from the output of the microprocessor. The output of the detector is normally low but will change to a high state whenever there is a missing pulse, that is, when the time delay is greater than twice the width of the signal pulse. When the detector senses an abnormality of the microprocessor, its state will change from low to high and give a corresponding output signal which will be received by an alarm device and a shut-off device. Therefore, if the microprocessor controlling the crane malfunctions, the crane will automatically be shut down. Recently, the applicant has developed a microprocessor which has found diverse applications in controlling an unlimited number of devices, apparatuses and equipment in a variety of fields. The microprocessor executes control operations of devices under control of a program already designed and prepared. Some cases, for example, noise, often place the microprocessor into an abnormal operation so that the microprocessor erroneously executes the program. In measures most popularly taken for this, it is checked whether or not the microprocessor is in an abnormal operation. When it is checked that the microprocessor operates abnormally, the microprocessor is immediately reset and returned to a normal operation. There is a case, however, that the microprocessor which is operating abnormally is not returned to normal operation although it is reset. In such a case, a symptom of the abnormality of the microprocessor operation can be recognised by carefully observing the operation of a device under control by the microprocessor. Therefore, the erroneous control by the microprocessor can be stopped. Some types of abnormal operations, however, cannot be recognised from the operation of a device under control. For example, in the case of controlling a display device, the display device presents the visual contents common to the normal and abnormal operation. This case is impossible in checking the abnormal operation and in stopping the abnormal running of the microprocessor. This is particularly detrimental to the control of medical equipment such as an endoscope. Accordingly, an object of the present invention is to provide a control system with a microprocessor which prevents an abnormal operation due to the abnormal operation of the microprocessor and visually and distinctly presents an abnormal operation of the microprocessor, thereby improving the reliability of the control system. To achieve the above object, the control means of the endoscope control system of the present invention is connected to the detecting means and sets the amount of light from the lamp and output pressure of the pump to predetermined values independently of the output signal of the microprocessor upon detection of an abnormal operation by the detecting means, and further the first display means is placed in a specific operating state upon detection of the abnormal operation. With such an arrangement, an abnormal operation of the microprocessor is detected, the device under control is placed in a specific and proper operating state. This feature removes the problem which arises from the unarrested abnormal running of the microprocessor even through reset operation. This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawings, in which: Fig. 1 is a block diagram of an embodiment of a control system according to the present invention; Figs. 2A to 2E show timing charts of the operation of the control system when a microprocessor is returned to a normal operation upon its resetting; and Figs. 3A to 3E show timing charts of the operation of the control system when the microprocessor will not returned to a normal operation though after it is reset. An embodiment of a control system with a microprocessor according to the present invention will be described referring to the accompanying drawings. In a control system illustrated in Fig. 1, a microprocessor 14 controls an endoscope containing a light source lamp 48 for illuminating the inside of body cavities and a water/air feed pump 50 for washing and dehydrating an objective lens. As shown, the microprocessor 14, a ROM 16, a RAM 18 and an operation panel 20 are connected to an address/control bus 10 and a data bus 12. The ROM 16 stores a program to be executed by the microprocessor 14. The operation panel 20 is used for entering various data and commands for the system operations. The address/control bus 10 is also connected to a decoder 22, a decoder 24, a driver 26 and a decoder 28. The program stored in the ROM 16 is designed so as to periodically specifiy the decoder 22 by an interrupt routine. The output signal of the decoder 22 is input to the first input terminal of an OR gate 30. The output signal of the OR gate 30 is supplid to the trigger terminal of a retriggerable monostable multivibrator 32. The output signal of the monostable multivibrator 32 is input to the second terminal of the OR gate 30, via a delay circuit 34 and a pulse generator 36, and also supplied to the negative logic reset terminal R of the microprocessor 14, and to the trigger terminal of a retriggerable monostable multivibrator 38. The time constant of the monostable multivibrator 38 is longer than that of the monostable multivibrator 32. The address decoder 22, the OR gate 30, and the monostable multivibrators 32 and 38 cooperate to form a called watch dog type abnormal operation detector for detecting an abnormal operation of the microprocessor 14. The output signal of the monostable multivibrator 38 is supplied through a driver 40 to an alarm device 42 for audibly and visually notifying an operator of the abnormal operation of the microprocessor 14. A driver 26 is for driving a display 44, for example, a LED. Data from the data bus 12 is also supplied to the driver 26. A decoder 24 is for selecting the driver 26. A display 44 visually displays various operating states of an endoscope, for example, an operating state of the light source lamp 48 for illuminating the inside of body cavities and an operating state of the water/air pump 50 for washing and dehydrating the objective lens. The output signal of the decoder 24 is supplied to the first input terminal of an AND gate 46. The output signal of the monostable multivibrator 38 is inverted and input to the second input terminal of the AND gate 46. The output signal of the AND gate 46 is supplied to the control terminal of the driver 26. The driver 26, when its control terminal is in a certain logical level, e.g. a low level, operates independently of the control by the microprocessor 14. A decoder 28 selects either the light source lamp 48 or the water/air pump 50. The output signal of the decoder 28 is supplied to a parallel port 52. The data bus 12 places data on the parallel port 52. The output signal of the parallel port 52 drives a driver 54 for driving the light source lamp 48 and the water/air pump 50. The output signal of the monostable multivibrator 38 is also connected to the control terminal of the driver 54. The driver 54, when its control terminal has a certain logic level, e.g. a high level, is in operation beyond the control by the signal output from the parallel port 52. The operation of the control system thus arranged will be described. The microprocessor 14 executes a program stored in the ROM 16 to control the light source lamp 48 and the water/air pump 50 through a route containing the decoder 28, the parallel port 52 and the driver 54. For displaying operating states of the light source lamp 48 and the water/air pump 50, the microprocessor 14 drives the display 44 through a route containing the decoder 24, the AND gate 46 and the driver 26. As described above, as long as the program in the ROM 16 is normally executed, an address of the decoder 22 is periodically specified by an interrupt routine. Accordingly, the decoder 22 periodically produces a pulse signal when the microprocessor 14 normally operates. The period of the pulse signal generated is shorter than a time constant (the width of the output pulse) of the monostable multivibrator 32. With this time relation, the decoder 22 produces a next pulse when the output signal of the monostable multivibrator 32 lasts in a high level when the microprocessor 14 has a normal operation. A level change of the pulse signal produced from the decoder 22, more exactly, a trailing edge of the pulse signal, triggers again the monostable multivibrator 32. Accordingly, the monostable multivibrator 32 is successively triggered to always apply the high level output signal to the reset terminal R (negative logic) of the microprocessor 14 and the trigger terminal of the monostable multivibrator 38. In this way, the microprocessor 14 normally operates free from the resetting. The monostable multivibrator 38 is wired such that, responsive to a transition (trailing edge) of the output signal of the monostable multivibrator 32, it is triggered to produce an output signal. Therefore, at this time, the monostable multivibrator 38 is not triggered and produces no output signal. Let us consider an abnormal operation of the microprocessor 14, viz. a situation that an endless loop is formed in the program, the interrupt routine is not executed, and no addressing to the decoder 22 can not be executed. In this situation, the monostable multivibrator 32 provides no output signal to the monostable multivibrator 38. Accordingly the microprocessor 14 is reset, and the monostable multivibrator 38 is triggered to produce an output signal. Then, the driver 40 energizes the alarm device 42. When reset, the microprocessor 14 takes one of two statuses. In the first status, it is returned to a normal operation. In the second status, it is not returned to a normal operation. These two statuses will individually be described. The first status that the microprocessor 14 returns to a normal operation upon reset operation, will first be given referring to Figs. 2A to 2E. Fig. 2A shows a waveform of the output signal of the address decoder 22. Fig. 2B shows a waveform of the output signal of the monostable multivibrator 32. Fig. 2C shows a waveform of the output signal of the delay circuit 34. Fig. 2D shows a waveform of the output signal of the pulse generator 36. Fig. 2E shows a waveform of the monostable multivibrator 38. As shown in Fig. 2A, when the microprocessor 14 normally operates, the decoder 22 produces pulses at periods T1. Under this condition, the output signals of the monostable multivibrator 32 and the delay circuit 34 continue in a high level, as shown in Figs. 2B and 2C. The output signal of the pulse generator 36 is in a low level as shown in Fig. 2D, since the pulse generator 36 is triggered in response to a level change (falling edge) of an input signal thereto, i.e. the output signal of the delay circuit 34. The output signal of the monostable multivibrator 38, which is triggered with the transition of the input signal thereto, also keeps a low level, as shown in Fig. 2E, because the output signal of the monostable multivibrator 32 continues in a high level, has not transition. When the microprocessor 14 operates abnormally, the decoder 22 stops its signal outputting, as shown in Fig. 2A. After a time duration T2 (a time constant of the monostable multivibrator 32) succeeding to the trailing edge of the final pulse from the decoder 22, the output signal of the monostable multivibrator 32 goes negative, as shown in Fig. 2B. In response of the level change (falling edge) of the output signal of the monostable multivibrator 32, the monostable multivibrator 38 is triggered to be high for a period T3, as shown in Fig. 2E. The high level signal produced by the monostable multivibrator 38 drives, through the driver 40, the alarm device 42 to notify an operator an abnormal running of the microprocessor 14. The low level output signal from the monostable multivibrator 32 resets the microprocessor 14. It is assumed that the microprocessor 14, when reset, returns to its normal operation. Then, after a short delay (which is more than sufficient for the microprocessor 14 when it is reset and returns to a normal operation), the output of the delay circuit 34 also goes low, as shown in Fig. 2C. On the falling edge of the output signal from the delay circuit 34, the pulse generator 36 starts generation of a pulse signal at high frequency, as shown in Fig. 2D. The high frequency pulse signal generated triggers the monostable multivibrator 32, through the OR gate 30. The triggered monostable multivibrator 32 again goes high, as shown in Fig. 2B. This high level removes a reset command to the microprocessor 14. The microprocessor 14 returns to a normal operation. Upon removal of the reset command, the address decoder 22 resumes the periodic generation of a pulse signal, as shown in Fig. 2A. In this way, the control system again starts its normal operation. As shown in Fig. 2C, the output signal of the delay circuit 34 returns to a high level with a short time delay after the output signal of the monostable multivibrator 32 becomes high. Where the abnormal operation of the microprocessor 14 is detected, the monostable multivibrator 38 is triggered to produce a high level signal, as shown in Fig. 2E. This high level causes the AND gate 46 to be disabled. Then, the control terminal of the driver 26 goes low. Under this condition, the driver 26 is not under control of the microprocessor 14, and places the display 44 in a specific operating state, for example, an extinguished state or an abnormal display mode. This is done for making the alarming by the alarm device 42 more noticeable. The hig level on the output of the monostable multivibrator 38 sets a high level on the control terminal of the driver 54. At this time, the driver 54 escapes from the control by the parallel port 52 which is now under control of the erroneously running microprocessor 14. Under this condition, the driver 54 sets the light source lamp 48 and the water/air pump 50 in specific modes. For example, when the lamp 48 is a halogen lamp, it maximizes an amount of emitting light. If the lamp 48 is a xenon lamp, it sets an amount of emitting light in an intermediate level. The water/air pump 50 maximizes its output pressure. Such specific modes are set up in order to prevent, for example, an exceeding or abnormal decrease in the light amount and the output pressure respectively of the lamp 48 and the pump 50. The second status that the microprocessor 14 can not returned to a normal operation through the reset operation, will be described. Reference is made to Figs. 3A to 3E which respectively correspond to Figs. 2A to 2E. The operating process of the control system from the detection of the abnormal operation of the microprocessor 14 till the microprocessor 14 is reset, is the same as that as stated previously. In this situation, after the output signal of the monostable multivibrator 32 goes low as shown in Fig. 3B, the decoder 22 produces still no pulse signal, as in Fig. 3A. And the output of the monostable multivibrator 32 returns to a low state at intervals T2. The time constant T3 of the monostable multivibrator 38 is longer than that T2 of the monostable multivibrator 32. Therefore, when the output signal of the monostable multivibrator 38 lasts in the high level, the monostable multivibrator 32 applies the next pulse signal and triggers the monostable multivibrator 38 with a transition, or at the falling egde, of its output signal recurring every the time period T2. As a result, the output of the monostable multivibrator 38 maintains the high level, as shown in Fig. 3E. This continuous high level of the output signal from the monostable multivibrator 38 continuously energizes the alarm device 42 and at the same time keeps the specific operating state of the display 44, the light source lamp 48 and the water/air pump 50. In this way, the control system can present visually and audibly the operation abnormality of the microprocessor 14 to an operator. As described above, in the control system according to the present invention, when the abnormality of the microprocessor is detected, the device under control is placed in a specific and proper condition. This feature removes the disadvantages caused by the abnormal running of the microprocessor. Upon detection of the abnormalility of the microprocessor 14, the ordinary display is placed in a specific condition. Because of this feature, an operator never misses to see the lighting by the alarm indicator to indicate the abnormality of the microprocessor. It should be understood that the present invention is not limited to the above specific embodiment. For example, the time constant of the monostable multivibrator 38 may theoretically be equal to that of the monostable multivibrator 32.

Claims: An endoscope control system with a microprocessor, comprising: detecting means (22,30,32,38) for detecting an abnormal operation of the microprocessor (14) and resetting the microprocessor (14) upon detection of an abnormal operation; and control means (54) for controlling the amount of light emitted from a light source lamp (48) and the output pressure of a water/air feed pump (50), in accordance with the output signal of the microprocessor (14); and first display means (44), connected to the microprocessor (14), for displaying an operating state of the lamp (48) and the pump (50); and second display means (42) connected to said detecting means (22,30,32,38) for indicating an abnormal operation of the microprocessor upon detection by said detecting means; characterised in that said control means (54) being connected to said detecting means (22,30,32,38) and setting the amount of light from the lamp (48) and the output pressure of the pump (50) to predetermined values independently of the output signal of the microprocessor (14) upon detection of an abnormal operation by said detecting means (22,30,32,38) and said first display means being placed in a specific operating state upon detection of the abnormal operation. The endoscope control system according to claim 1, further comprising means (46) connected between said detecting means (22,30,32,38) and said first display means (44) for controlling said display means (44) to display predetermined information independently of the output signal of the microprocessor (14) upon detection of an abnormal operation by said detecting means (22,30,32,38). The endoscope control system according to one of claims 1 and 2, wherein said second display means is an alarm means (42) which sounds an alarm upon detection by said detecting means (22,30,32,38) of an abnormal operation of said microprocessor (14). The endoscope control system according to one of claims 1 to 3 in which the said detecting means (22,30,32,38) includes a decoder (22) controlled by the microprocessor (14) so as to periodically produce a pulse signal, a first monostable multivibrator (32) triggered by the output signal of said decoder (22), and a second monostable multivibrator (38) triggered by the output signal of said first monostable multivibrator (32) and having a time constant longer than that of said first monostable multivibrator (32), the output signal of said second monostable multivibrator (38) being used as an abnormal operation detecting signal. The endoscope control system according to one of claims 1 to 4 in which said first display means is de-energised upon detection of the abnormal operation.

Inventors: AMANO, ATSUSHI, HATTORI, SHINICHIRO, HOSODA, SEIICHI, KANNO, MASAHIDE
Applicants: OLYMPUS OPTICAL CO., LTD.
Application year: 1984
Main classification: G05B9
IPC codes: A61B1, G05B9, G06F11, A61B5, G06F15, G06Q50