Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0128968B2 - - Google Patents
[go: Go Back, main page]

JPH0128968B2 - - Google Patents

Info

Publication number
JPH0128968B2
JPH0128968B2 JP57233602A JP23360282A JPH0128968B2 JP H0128968 B2 JPH0128968 B2 JP H0128968B2 JP 57233602 A JP57233602 A JP 57233602A JP 23360282 A JP23360282 A JP 23360282A JP H0128968 B2 JPH0128968 B2 JP H0128968B2
Authority
JP
Japan
Prior art keywords
register
signal
instruction
memory
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP57233602A
Other languages
Japanese (ja)
Other versions
JPS59123950A (en
Inventor
Katsuhiko Ueda
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP57233602A priority Critical patent/JPS59123950A/en
Publication of JPS59123950A publication Critical patent/JPS59123950A/en
Publication of JPH0128968B2 publication Critical patent/JPH0128968B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Advance Control (AREA)
  • Executing Machine-Instructions (AREA)
  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明はマイクロコンピユータのプログラム暴
走を防止するプログラム制御装置に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a program control device for preventing program runaway in a microcomputer.

従来例の構成とその問題点 近年各種のマイクロコンピユータが考案される
ようになつた。そしてこれらはその何れも次に示
すようなシーケンスを繰返す事により動作してい
る。
Conventional configurations and their problems Recently, various microcomputers have been devised. All of these operate by repeating the following sequence.

すなわち (1) プログラムカウンタで示されるアドレスのメ
モリの内容を命令レジスタに格納する。
That is, (1) the contents of the memory at the address indicated by the program counter are stored in the instruction register.

(2) 命令レジスタの内容である命令をデコーダで
解読する。
(2) The decoder decodes the instruction that is the contents of the instruction register.

(3) 解読の結果に基いて各種の制御信号をデコー
ダから出力し、実行を行う。
(3) Based on the decoding results, various control signals are output from the decoder and executed.

(4) プログラムカウンタの値を1だけインクリメ
ントする。
(4) Increment the program counter value by 1.

そこでプログラムカウンタが誤動作し、誤つた
アドレスを示した時、あるいはメモリの内容が何
らかの理由で破壊されてしまつた時には誤つた命
令がデコーダでデコードされる事になり、マイク
ロコンピユータは正しく動作しなくなる。この時
特に、命令として定義されていない命令はデコー
ダでデコードする事もできず、その後マイクロコ
ンピユータは全く動作しなくなりいわゆるデツド
ロツクの状態となつてしまう。
Therefore, if the program counter malfunctions and indicates the wrong address, or if the contents of the memory are destroyed for some reason, the erroneous instruction will be decoded by the decoder, and the microcomputer will not operate correctly. At this time, in particular, instructions that are not defined as instructions cannot be decoded by the decoder, and thereafter the microcomputer stops operating at all and enters a so-called deadlock state.

発明の目的 本発明の目的は、上記欠点に鑑み、命令の実行
速度を向上させるために命令レジスタに、未定義
命令が入力された時もデツドロツク状態とはなら
ずに、これを回避するプログラム制御装置を提供
するものである。
OBJECTS OF THE INVENTION In view of the above drawbacks, an object of the present invention is to control a program to avoid a deadlock state even when an undefined instruction is input to an instruction register in order to improve the execution speed of instructions. It provides equipment.

発明の構成 本発明は上記目的を達するために、命令を記憶
するメモリと、前記メモリにアドレス信号を与え
るプログラムカウンタと、前記メモリの内容を順
次保持してゆくレジスタと、前記レジスタ出力に
接続され実行中の命令を保持する命令レジスタ
と、前記メモリから前記レジスタへの書き込みと
前記プログラムカウンタのインクリメントとを制
御すると共に、前記レジスタが空でない時に能動
となる状態信号を出力するレジスタ制御回路と、
前記命令レジスタ出力及び前記状態信号をデコー
ドし、デコード可能の場合に能動となるデコード
可能信号を出力するプログラマブルロジツクアレ
イと、前記状態信号及び前記デコード可能信号を
入力とし前記デコード可能信号が非能動でかつ前
記状態信号が能動であることを検出しデツドロツ
ク発生信号を出力するデツドロツク検出回路とを
備えたプログラム制御装置であり、前記デツドロ
ツク検出回路で、前記レジスタに命令が存在して
いるにもかかわらずプログラマブルロジツクアレ
イで命令がデコードされないという状態を検出
し、その結果前記プログラムカウンタを予め定め
てある値にプリセツトし改めて前記メモリのアク
セスを開始する事により、定義されていない命令
がプログラマブルロジツクアレイに入力された時
もプログラム制御装置がデツドロツク状態に陥る
事を回避する事のできるものである。
Structure of the Invention In order to achieve the above object, the present invention includes a memory that stores instructions, a program counter that provides an address signal to the memory, a register that sequentially holds the contents of the memory, and a register that is connected to the register output. an instruction register that holds an instruction being executed; a register control circuit that controls writing from the memory to the register and incrementing the program counter; and outputs a status signal that becomes active when the register is not empty;
a programmable logic array that decodes the instruction register output and the state signal and outputs a decodable signal that becomes active when decodable; and a programmable logic array that receives the state signal and the decodable signal and makes the decodable signal inactive. and a deadlock detection circuit that detects that the state signal is active and outputs a deadlock generation signal, and the deadlock detection circuit detects that the state signal is active and outputs a deadlock generation signal, and the deadlock detection circuit detects that the state signal is active even though an instruction is present in the register. The programmable logic array first detects a state in which the instruction is not decoded, and as a result, presets the program counter to a predetermined value and starts accessing the memory again, thereby decoding undefined instructions into the programmable logic array. This also prevents the program control device from becoming deadlocked when input to the array.

実施例の説明 以下本発明の一実施例について、図面を参照し
ながら説明する。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

図は本発明の一実施例におけるプログラム制御
装置の構成を示すものである。
The figure shows the configuration of a program control device in an embodiment of the present invention.

図において、1は通常後述のQレジスタ制御回
路の出力である制御信号aによつてインクレメン
トされるプログラムカウンタであり、後述の
PLA(Programable Logic Array)の出力であ
る制御信号bによつてプリセツトする事もでき
る。2は命令を記憶しているメモリであり、プロ
グラムカウンタ1で示されるアドレスの内容を出
力する。3はメモリ2の内容を一時記憶する複数
のレジスタからなるFIFO形式のQレジスタであ
る。4は後述のPLAの出力信号である制御信号
b、cを基にし、制御信号a及び状態信号dを出
力するQレジスタ制御回路であり、Qレジスタ3
の各レジスタが常に新しい命令を一時記憶するよ
うに制御信号aを出力し、またQレジスタ3を構
成するレジスタのうち少なくともひとつのレジス
タに未だ後述の命令レジスタに出力されていない
命令が存在する時にのみ論理1となり、それ以外
は論理0となる状態信号dを出力する。5はQレ
ジスタ3の出力を入力とし、ひとつの命令を実行
中その命令を保持している命令レジスタである。
6は命令レジスタ5の出力、状態信号d及び後述
のデツドロツク検出回路の出力を入力とし、これ
らをデコードし各種の制御信号を出力するPLA
であり、状態信号dが論理1の時にのみ命令レジ
スタ5の内容をデコードするようにプログラムし
ておく。但し後述するデツドロツク検出回路の出
力信号は、PLA4の他の入力信号とは全く別に
デコードするようにし、これが論理1となつた時
に制御信号bを出力するようにプログラムしてお
く。7は状態信号d及び制御信号eを入力とし、
状態信号dが論理1、制御信号eが論理0である
状態を検出し、この時PLA6の入力に接続され
ている出力を論理1とするデツドロツク検出回路
である。
In the figure, 1 is a program counter that is normally incremented by a control signal a that is the output of a Q register control circuit, which will be described later.
Presetting can also be performed using control signal b, which is the output of PLA (Programmable Logic Array). A memory 2 stores instructions, and outputs the contents of the address indicated by the program counter 1. Reference numeral 3 denotes a FIFO-type Q register consisting of a plurality of registers for temporarily storing the contents of memory 2. 4 is a Q register control circuit that outputs a control signal a and a status signal d based on control signals b and c, which are output signals of PLA, which will be described later;
A control signal a is output so that each register in the Q register always stores a new instruction temporarily, and when at least one of the registers composing the Q register 3 contains an instruction that has not yet been output to the instruction register described below. It outputs a status signal d which is a logic 1 only when the signal is turned on, and a logic 0 otherwise. Reference numeral 5 denotes an instruction register which receives the output of the Q register 3 as an input and holds an instruction while the instruction is being executed.
6 is a PLA which inputs the output of the instruction register 5, the status signal d, and the output of the deadlock detection circuit described below, decodes these, and outputs various control signals.
The program is programmed to decode the contents of the instruction register 5 only when the status signal d is logic 1. However, the output signal of the deadlock detection circuit, which will be described later, is decoded completely separately from other input signals of the PLA 4, and it is programmed to output the control signal b when it becomes logic 1. 7 inputs the status signal d and the control signal e,
This is a deadlock detection circuit which detects a state in which the state signal d is logic 1 and the control signal e is logic 0, and at this time, the output connected to the input of the PLA 6 becomes logic 1.

なお前述したcはPLA6から出力される制御
信号であり、ひとつの命令を実行し終つた時に論
理1となり、Qレジスタ3から新しい命令を命令
レジスタ5に取込むと共に、Qレジスタ制御回路
4にQレジスタ3の内容をひとつ使用した事を知
らせる。またbはPLA6から出力される制御信
号であり、論理1の時にプログラムカウンタ1を
予め定めてある値にプリセツトすると共にQレジ
スタ制御回路4の状態をリセツトする。eは
PLA6の総てのデコード線の論理和をとつた制
御信号であり、従つて、命令レジスタ5に定義さ
れていない命令が入力された時及び命令レジスタ
5の内容は定義されている命令であるが状態信号
dが論理0である時にのみ論理0となる。
Note that the above-mentioned c is a control signal output from the PLA 6, which becomes logic 1 when one instruction has been executed. Notifies that one of the contents of register 3 has been used. Further, b is a control signal output from the PLA 6, which presets the program counter 1 to a predetermined value and resets the state of the Q register control circuit 4 when the signal is at logic 1. e is
This is a control signal obtained by calculating the logical sum of all decode lines of PLA 6. Therefore, when an undefined instruction is input to the instruction register 5, and the contents of the instruction register 5 are defined instructions, It is a logic 0 only when the state signal d is a logic 0.

以上の様に構成されたプログラム制御装置につ
いて、以下その動作について説明する。まず通常
の状態では、Qレジスタ制御回路4は、Qレジス
タ3が常に新しい命令で満たされるようにQレジ
スタ3及びプログラムカウンタ1を制御信号aに
よつて制御する。すなわち、制御信号aによりプ
ログラムカウンタ1で示されるメモリ2の内容を
Qレジスタに取り込むと共にプログラムカウンタ
1をインクリメントし、次のアドレスのメモリ2
のアクセスを行う。
The operation of the program control device configured as described above will be explained below. First, in a normal state, the Q register control circuit 4 controls the Q register 3 and the program counter 1 using the control signal a so that the Q register 3 is always filled with new instructions. That is, the contents of memory 2 indicated by program counter 1 are loaded into the Q register by control signal a, program counter 1 is incremented, and memory 2 at the next address is loaded.
access.

このようにしてQレジスタ3に蓄えられた命令
は制御信号cによつて命令レジスタ5に取り込ま
れる。制御信号cはQレジスタ制御回路4にも出
力されているので、この時制御信号aが論理1と
なり前述の動作が行われる。
The instructions stored in the Q register 3 in this manner are taken into the instruction register 5 by the control signal c. Since the control signal c is also output to the Q register control circuit 4, the control signal a becomes logic 1 at this time, and the above-described operation is performed.

そして命令レジスタ5に取込まれた命令は
PLA6によつてデコードされ、その後、デコー
ド結果に基き命令の実行が行われる。そして命令
実行の最後のサイクルで再び制御信号cが出力さ
れ次の新しい命令が命令レジスタ5にQレジスタ
3から入力される。しかしQレジスタ3に新しい
命令がまだ存在していない時には、この命令のデ
コード及び実行は行われない。何故ならば前述の
ように、PLA6は状態信号dが論理1の時にの
み命令レジスタ5の内容をデコードするようにプ
ログラムされているからである。そして前述の如
く、Qレジスタ3に新しい命令を取り込むように
Qレジスタ制御回路4が動作する。(以下、この
状態を「Q待ち」と呼ぶ)Qレジスタ3に新しい
命令が取込まれると状態信号dは論理1となり
PLA6でデコードが開始される。一方Q待ちの
時、制御信号eは論理0となるが状態信号dも論
理0となつているのでデツドロツク検出回路7の
出力は論理0となつている。
The instruction taken into instruction register 5 is
It is decoded by the PLA 6, and then the instruction is executed based on the decoded result. Then, in the last cycle of instruction execution, the control signal c is outputted again, and the next new instruction is inputted to the instruction register 5 from the Q register 3. However, when a new instruction does not yet exist in Q register 3, this instruction is not decoded and executed. This is because, as mentioned above, PLA 6 is programmed to decode the contents of instruction register 5 only when status signal d is logic 1. Then, as described above, the Q register control circuit 4 operates to take in a new instruction into the Q register 3. (Hereinafter, this state will be referred to as "Q wait") When a new instruction is taken into the Q register 3, the state signal d becomes logic 1.
Decoding starts with PLA6. On the other hand, when waiting for Q, the control signal e becomes a logic 0, but the state signal d also becomes a logic 0, so the output of the deadlock detection circuit 7 becomes a logic 0.

次に、プログラムカウンタ1が誤動作したた
め、あるいはメモリ2の内容が破壊されたため、
命令レジスタ5に、定義されていない命令が入力
された時を考える。この時、命令はPLA6でデ
コーダされないので、PLA6の総ての出力信号
は、前述のQ待ちの時と同様に総て論理0とな
る。しかし今回はQ待ちの状態とは異なり、時間
が経過してもPLA6でデコードは行われず、い
わゆるデツドロツク状態に入つてしまう。しかし
この時、状態信号dは論理1、制御信号eは論理
0という状態が発生する。そこでデルドロツク検
出回路7が動作しその出力信号を論理1とする。
そこでPLA6によつてこの状態がデコードされ、
制御信号bが論理1となり、プログラムカウンタ
1には予め設定してあるプリセツトデータがロー
ドされる。このプリセツトデータをデツドロツク
後処理のためのプログラムの先頭番地としておく
事により、その後の処理が行われる。また制御信
号bはQレジスタ制御回路4にも接続されている
ので、デツドロツク時の状態はリセツトされデツ
ドロツク後処理のための命令の取り出しを開始す
る。
Next, because program counter 1 malfunctions or the contents of memory 2 are destroyed,
Consider a case where an undefined instruction is input to the instruction register 5. At this time, since the instruction is not decoded by the PLA 6, all output signals of the PLA 6 become logic 0 as in the case of waiting for Q described above. However, this time, unlike the Q wait state, the PLA 6 does not decode even after a period of time has elapsed, and enters a so-called deadlock state. However, at this time, a state occurs in which the state signal d is logic 1 and the control signal e is logic 0. Then, the del lock detection circuit 7 operates and makes its output signal logic 1.
Therefore, this state is decoded by PLA6,
The control signal b becomes logic 1, and the program counter 1 is loaded with preset data. Subsequent processing is performed by setting this preset data as the starting address of the program for post-deadlock processing. Since the control signal b is also connected to the Q register control circuit 4, the state at the time of deadlock is reset and fetching of instructions for post-delock processing is started.

以上述べたように、本実施例によれば、定義さ
れていない命令がPLA6に入力された時もデツ
ドロツク状態とはならず、速やかにこれを回避す
ることができる。
As described above, according to this embodiment, even when an undefined command is input to the PLA 6, a deadlock state does not occur, and this can be quickly avoided.

発明の効果 以上のように本発明は、命令を記憶するメモリ
と、前記メモリにアドレス信号を与えるプログラ
ムカウンタと、前記メモリの内容を順次保持して
ゆくレジスタと、前記レジスタ出力に接続され実
行中の命令を保持する命令レジスタと、前記メモ
リから前記レジスタへの書き込みと前記プログラ
ムカウンタのインクリメントとを制御すると共
に、前記レジスタが空でない時に能動となる状態
信号を出力するレジスタ制御回路と、前記命令レ
ジスタ出力及び前記状態信号をデコードし、デコ
ード可能の場合に能動となるデコード可能信号を
出力するプログラマブルロジツクアレイと、前記
状態信号及び前記デコード可能信号を入力とし前
記デコード可能信号が非能動でかつ前記状態信号
が能動であることを検出しデツドロツク発生信号
を出力するデツドロツク検出回路とを設けること
により、前記プログラムカウンタが誤動作したり
あるいは前記メモリの内容が破壊されて定義され
ていない命令が前記プログラマブルロジツクアレ
イに入力された時もデツドロツク状態とはならず
これを回避する事ができ、マイクロコンピユータ
の信頼性を向上させる事ができる。また、この信
頼性を向上させるために必要とするハードウエア
は、従来のQレジスタをもつプログラム制御装置
と比較した場合、デツドロツク検出回路等であ
り、それほど増加していないので、その効果を考
えれば価値は大なるものである。
Effects of the Invention As described above, the present invention has a memory that stores instructions, a program counter that provides an address signal to the memory, a register that sequentially holds the contents of the memory, and a register that is connected to the register output during execution. an instruction register for holding an instruction; a register control circuit for controlling writing from the memory to the register and incrementing the program counter; and outputting a status signal that becomes active when the register is not empty; a programmable logic array that decodes a register output and the state signal and outputs a decodable signal that becomes active when decodable; a programmable logic array that receives the state signal and the decodable signal as input; By providing a deadlock detection circuit that detects that the state signal is active and outputs a deadlock generation signal, it is possible to prevent the program counter from malfunctioning or the contents of the memory to be destroyed and an undefined instruction to be written in the programmable state. Even when input to the logic array, a deadlock state does not occur, which can be avoided, and the reliability of the microcomputer can be improved. In addition, the hardware required to improve this reliability is a deadlock detection circuit, etc. compared to a conventional program control device with a Q register, and the hardware required has not increased significantly. Value is great.

【図面の簡単な説明】[Brief explanation of drawings]

図は本発明の一実施例におけるプログラム制御
装置のブロツク結線図である。 1……プログラムカウンタ、2……メモリ、3
……Qレジスタ、4……Qレジスタ制御回路、5
……命令レジスタ、6……PLA、7……デツド
ロツク検出回路。
The figure is a block diagram of a program control device according to an embodiment of the present invention. 1...Program counter, 2...Memory, 3
...Q register, 4...Q register control circuit, 5
...Instruction register, 6...PLA, 7...Deadlock detection circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 命令を記憶するメモリと、前記メモリにアド
レス信号を与えるプログラムカウンタと、前記メ
モリの内容を順次保持してゆくレジスタと、前記
レジスタ出力に接続され実行中の命令を保持する
命令レジスタと、前記メモリから前記レジスタへ
の書き込みと前記プログラムカウンタのインクリ
メントとを制御すると共に、前記レジスタが空で
ない時に能動となる状態信号を出力するレジスタ
制御回路と、前記命令レジスタ出力及び前記状態
信号をデコードし、デコード可能の場合に能動と
なるデコード可能信号を出力するプログラマブル
ロジツクアレイと、前記状態信号及び前記デコー
ド可能信号を入力とし前記デコード可能信号が非
能動でかつ前記状態信号が能動であることを検出
しデツドロツク発生信号を出力するデツドロツク
検出回路とから構成されることを特徴とするプロ
グラム制御装置。
1: a memory that stores instructions; a program counter that provides an address signal to the memory; a register that sequentially holds the contents of the memory; an instruction register that is connected to the register output and holds the instruction being executed; a register control circuit that controls writing to the register from memory and incrementing of the program counter and outputs a status signal that becomes active when the register is not empty; and a register control circuit that decodes the instruction register output and the status signal; A programmable logic array that outputs a decodable signal that becomes active when decodable, and receives the state signal and the decodable signal as input, and detects that the decodable signal is inactive and the state signal is active. 1. A program control device comprising: a deadlock detection circuit that outputs a deadlock generation signal.
JP57233602A 1982-12-29 1982-12-29 program control device Granted JPS59123950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57233602A JPS59123950A (en) 1982-12-29 1982-12-29 program control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57233602A JPS59123950A (en) 1982-12-29 1982-12-29 program control device

Publications (2)

Publication Number Publication Date
JPS59123950A JPS59123950A (en) 1984-07-17
JPH0128968B2 true JPH0128968B2 (en) 1989-06-07

Family

ID=16957621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57233602A Granted JPS59123950A (en) 1982-12-29 1982-12-29 program control device

Country Status (1)

Country Link
JP (1) JPS59123950A (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55110348A (en) * 1979-02-16 1980-08-25 Hitachi Ltd Microprocessor
JPS57164347A (en) * 1981-03-31 1982-10-08 Fujitsu Ltd Undefined instruction detector for one chip microcomputer

Also Published As

Publication number Publication date
JPS59123950A (en) 1984-07-17

Similar Documents

Publication Publication Date Title
US5576650A (en) Reset circuit of electronic device
JPS58219644A (en) Instruction execution system
JPH07104785B2 (en) Data processor
KR100238917B1 (en) Microprocessor device and its operation management method
JPH02226423A (en) Microcode controller
US5129079A (en) Computer system having subinstruction surveillance capability
US5657467A (en) Non-volatile semiconductor memory device with instruction issue during busy cycle
US5051890A (en) Program/data memory employed in microcomputer system
US5361365A (en) Microprocessor for selectively performing cold and warm starts
US3961313A (en) Computer control apparatus
JPS5812613B2 (en) Parallel data processing device
JPH0128968B2 (en)
JPH07262162A (en) Microprocessor
JPH1131068A (en) Reset vector switching method and information processing apparatus using the same
JPS6363935B2 (en)
JP2569693B2 (en) Microcomputer
JP2870083B2 (en) Microcomputer with built-in watchdog timer
JP2859048B2 (en) Microcomputer
JP3127737B2 (en) Digital signal processor
JPS6117474Y2 (en)
JPH04209033A (en) Control storage system
JPH087679B2 (en) Microprocessor
JPH01173132A (en) Microprogram controller
JPS5824808B2 (en) Initial startup processing method for microprogram controlled data processing equipment
EP0266799A2 (en) Single chip microcomputer having multi-timer function