摘要 |
PURPOSE:To shorten the queuing time, by inputting a signal, which is generated by the depression of a switch, a microcomputer as an interrupt signal in a switch circuit where many input codes are inputted with one switch. CONSTITUTION:When an interrupt signal 31 is generated from a flip flop 2 by the depression of a switch 1 and is inputted to a microcomputer 3, the microcomputer 3 counts 2sec (a certain time) and stores 1 indicating the first depression in a memory. When the interrupt signal is generated again by depression of the switch 1 before the elapse of 2sec, contents in the memory are read out, and 1 is added to them, and they are stored in the memory again. After the elapse of 2sec, a signal is generated and becomes the interrupt signal of the microcomputer 3 itself, and contents of the memory are read out, and the processing for the code corresponding to contents of the memory is performed. Consequently, a short code is inputted without a long queuing time, and the circuit copes with the input of a long code also. |