JP3097404B2 - Status reading circuit by microcomputer - Google Patents

Status reading circuit by microcomputer

Info

Publication number
JP3097404B2
JP3097404B2 JP05199832A JP19983293A JP3097404B2 JP 3097404 B2 JP3097404 B2 JP 3097404B2 JP 05199832 A JP05199832 A JP 05199832A JP 19983293 A JP19983293 A JP 19983293A JP 3097404 B2 JP3097404 B2 JP 3097404B2
Authority
JP
Japan
Prior art keywords
output
microcomputer
read
flip
flop
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 - Fee Related
Application number
JP05199832A
Other languages
Japanese (ja)
Other versions
JPH0756756A (en
Inventor
久義 藏屋
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP05199832A priority Critical patent/JP3097404B2/en
Publication of JPH0756756A publication Critical patent/JPH0756756A/en
Application granted granted Critical
Publication of JP3097404B2 publication Critical patent/JP3097404B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、マイコンによる状態読
出回路に係り、特に伝送路等のエラー数をシステムクロ
ックでカウントするカウンタのカウント値を、システム
クロックと非同期なマイクロコンピュータにて読出す場
合のマイコンによる状態読出回路及び、非同期転送モー
ドにて、アラーム情報等を固定長のパケットのセルにて
転送し、受信側にてはセルの到着時にフリップフロップ
(以下FFと称す)をセットし、定期的に読出している
マイクロコンピュータ(以下マイコンと称す)が読み取
ると該FFをリセットすることになっている等の、マイ
コンとは非同期である情報セットパルスによりセットさ
れるFFの出力を、該マイコンよりの読出し信号にて読
出し、読出した後は該FFをクリアする場合等の、マイ
コンによる状態読出回路の改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a state reading circuit using a microcomputer, and particularly to a case where a count value of a counter for counting the number of errors in a transmission line or the like by a system clock is read by a microcomputer asynchronous with the system clock. In a state readout circuit by the microcomputer and the asynchronous transfer mode, alarm information and the like are transferred in fixed-length packet cells, and a flip-flop (hereinafter referred to as FF) is set on the receiving side when the cells arrive. The output of the FF, which is set by an information set pulse that is asynchronous with the microcomputer, such as resetting the FF when read by a microcomputer (hereinafter referred to as a microcomputer) that is periodically reading, is output to the microcomputer. The status is read by the microcomputer when reading with the read signal from the It relates to an improvement of the circuit.

【0002】[0002]

【従来の技術】図5は従来例のカウンタ値を読出す場合
の状態読出回路のブロック図及びタイムチャート、図6
は従来例の情報セットパルスが非同期にセットされマイ
コンリードによりリセットされる場合の状態読出回路の
ブロック図及びタイムチャートである。
2. Description of the Related Art FIG. 5 is a block diagram and a time chart of a conventional state reading circuit for reading a counter value, and FIG.
FIG. 2 is a block diagram and a time chart of a state reading circuit in a case where an information set pulse of a conventional example is set asynchronously and reset by a microcomputer read.

【0003】図5では、エラーパルスを図5(A)に示
すシステムクロックにてカウントするカウンタ1の出力
を、システムクロックと非同期なマイコン(図示してい
ない)にて読出す為に、マイコンより読出用のプログラ
ムを取り出すアドレスを出力すると共に該アドレスをデ
コーダ20にも入力して図5(B)に示す如きHレベル
の信号を出力させセレクタ4に入力させ、又マイコンよ
りの図5(C)に示す如くLレベルにしたチップセレク
ト信号、図5(D)に示す如くLレベルにしたリードイ
ネーブル信号をオア回路21に入力し出力をゲート5に
入力させる。
In FIG. 5, an output of a counter 1 for counting an error pulse by a system clock shown in FIG. 5A is read by a microcomputer (not shown) asynchronous with the system clock. An address for taking out the program for reading is output, and the address is also input to the decoder 20 to output an H-level signal as shown in FIG. 5B and input to the selector 4. 5), an L-level chip select signal as shown in FIG. 5D, and an L-level read enable signal as shown in FIG.

【0004】するとセレクタ4では、デコーダ20より
Hレベルが入力している間はFF1の出力を選択して出
力し、ゲート5はオア回路21の出力がLレベルの間ゲ
ートを開き、図5(E)に示す如きカウンタ1の出力を
読出しデータとしてマイコンのデータバスに送る。
Then, the selector 4 selects and outputs the output of the FF 1 while the H level is being input from the decoder 20, and the gate 5 opens the gate while the output of the OR circuit 21 is at the L level. The output of the counter 1 as shown in E) is sent to the data bus of the microcomputer as read data.

【0005】図6では、図6(F)に示す如き、マイコ
ンと非同期な情報到着を知らせる情報セットパルスがF
F10のセット端子に入力すると、FF10の出力は、
図6(G)に示す如くHレベルになる。
In FIG. 6, as shown in FIG. 6F, an information set pulse for notifying the arrival of information asynchronous with the microcomputer is F.
When input to the set terminal of F10, the output of FF10 is
It becomes H level as shown in FIG.

【0006】マイコン(図示していない)がFF10の
出力を読出す時は、読出用のプログラムを取り出すアド
レス及び図6(B)に示す如くLレベルにしたチップセ
レクト信号、図6(C)に示す如くLレベルにしたリー
ドイネーブル信号を出力し、リードイネーブル信号がL
レベルの間に図6(D)に示す如くFF10の出力を確
定して読出信号としてマイコンのデータバスに出力させ
る。
When a microcomputer (not shown) reads the output of the FF 10, an address from which a program for reading is taken out, a chip select signal at L level as shown in FIG. As shown in the figure, the read enable signal is output at L level,
As shown in FIG. 6D, the output of the FF 10 is determined during the level and output to the data bus of the microcomputer as a read signal.

【0007】この時、読出用のプログラムを取り出すア
ドレスはデコーダ17にも入力して出力よりHレベルを
出力させナンド回路18に入力させ、又チップセレクト
信号及びリードイネーブル信号はノア回路16にも入力
し出力をナンド回路18に入力させ、ナンド回路18の
出力を遅延回路19にてFF10の出力がマイコンのデ
ータバスへ安定して出力されるよう僅か遅延させ図6
(E)に示す如きクリアパルスを作り、FF10のクロ
ック端子に入力し、立ち上がりで図6(G)に示す如く
FF10をクリアする。
At this time, the address from which the program for reading is taken out is also inputted to the decoder 17 and the H level is outputted from the output to be inputted to the NAND circuit 18. The chip select signal and the read enable signal are also inputted to the NOR circuit 16. The output of the NAND circuit 18 is input to the NAND circuit 18. The output of the NAND circuit 18 is slightly delayed by the delay circuit 19 so that the output of the FF 10 is stably output to the data bus of the microcomputer.
A clear pulse as shown in (E) is generated, input to the clock terminal of the FF 10, and the FF 10 is cleared at the rising edge as shown in FIG.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、図5の
場合は、図5(E)に示す、カウンタ1の出力データを
確定中に、図5(F)に示す如くエラーパルスが入力す
ると、図5(G)に示す如く、データ確定中にデータの
変化点が出来、データが不確定となるので、2度読み,
3度読みをし多数決をとつてデータを確定せねばならな
い問題点がある。
However, in the case of FIG. 5, if an error pulse is input as shown in FIG. 5F while the output data of the counter 1 is determined as shown in FIG. As shown in FIG. 5 (G), a data change point is generated during data determination and the data becomes indeterminate.
There is a problem that the data must be determined by reading three times and taking a majority decision.

【0009】図6の場合は、図6(D)に示す、出力デ
ータを確定中に、図6(H)に示す如く情報セットパル
スがFF10に入力すると、FF10の出力は図6
(I)に示す如くなり、図6(J)に示す如く、データ
確定中にデータの変化点が出来、データが不確定となり
且つ図6(I)に示す如くデータがこの時点でクリアさ
れ次の読出しでは読出しが出来ず、正確なデータが読出
せない問題点がある。
In the case of FIG. 6, when the information set pulse is input to the FF 10 as shown in FIG. 6H while the output data is determined as shown in FIG. 6D, the output of the FF 10 becomes
As shown in FIG. 6 (I), as shown in FIG. 6 (J), a change point of data is made during data determination, the data becomes indeterminate, and as shown in FIG. In this case, there is a problem that reading cannot be performed and accurate data cannot be read.

【0010】本発明は、エラーパルスをシステムクロッ
クでカウントするカウンタのカウント値を、該システム
クロックと非同期なマイコンにて読出す場合、1度読み
で確定データが得られるマイコンによる状態読出回路
と、マイコンとは非同期である情報セットパルスにより
HレベルにセットされるFFの出力を、該マイコンより
の読出し信号にて読出し、読出した後に該FFをクリア
する場合、正確なデータが読出せるマイコンによる状態
読出回路の提供を目的としている。
According to the present invention, when a count value of a counter that counts an error pulse with a system clock is read by a microcomputer that is asynchronous with the system clock, a status read circuit by the microcomputer that can obtain final data by reading once is provided; When the output of the FF that is set to the H level by the information set pulse that is asynchronous with the microcomputer is read by the read signal from the microcomputer and the FF is cleared after reading, the state of the microcomputer that allows accurate data to be read The purpose is to provide a readout circuit.

【0011】[0011]

【課題を解決するための手段】図1は本発明の原理ブロ
ック図である。エラーパルスをシステムクロックでカウ
ントするカウンタのカウント値を、該システムクロッ
クと非同期なマイコンにて読出す場合は、図1(A)に
示す如く、カウンタ1の出力を保持して出力する、該シ
ステムクロックで動作するFF2と、読出要求信号を書
込み信号にてラッチし、該システムクロックに同期して
該ラッチした信号を該FF2のイネーブル端子に出力す
るラッチ部3と、 該フリップフロップの出力を読出し用
データとして出力するゲート5を設け、 マイコンにて
読出す前に該マイコンより、読出要求信号と、該読出要
求信号を該ラッチ部3に書込む書込み信号を同時に出力
し、次にFF2の出力を読出す読出し信号を該ゲート5
出力する構成とする。
FIG. 1 is a block diagram showing the principle of the present invention. When the count value of the counter 1 that counts the error pulse with the system clock is read by a microcomputer asynchronous with the system clock, the output of the counter 1 is held and output as shown in FIG. An FF2 operating on a system clock and a read request signal latched by a write signal, and the latched signal is output to an enable terminal of the FF2 in synchronization with the system clock .
Latch unit 3 for reading the output of the flip-flop
A gate 5 for outputting data is provided, and a read request signal and a write signal for writing the read request signal to the latch unit 3 are simultaneously output from the microcomputer before reading by the microcomputer. Is applied to the gate 5
And configured to output to.

【0012】マイコンとは非同期である情報セットパル
スによりHレベルにセットされるFF10の出力を、該
マイコンよりの読出し信号にて読出し、読出した後に該
FF10をクリアする場合は、図1(B)に示す如く、
該FF10の出力を入力とし、該マイコンよりの読出し
信号により入力した信号を保持して出力するFF11
と、FF11の出力がHレベルに保持されていればFF
10をリセットするリセット手段12を設け、 FF10
の出力を、該マイコンよりの読出し信号により、FF1
1から読み出し、FF11の出力がHであれば、その出
力によりFF10をクリアする構成とする。
When the output of the FF 10 which is set to the H level by an information set pulse which is asynchronous with the microcomputer is read by a read signal from the microcomputer and the FF 10 is cleared after the read, the output of FIG. As shown in B),
It receives the output of the FF10, hold and output signal inputted by the read signal from the microcomputer FF11
And if the output of FF11 is held at H level,
A reset means 12 for resetting the FF 10;
Of the FF1 by the read signal from the microcomputer.
1 and if the output of FF11 is H,
The FF 10 is cleared by force .

【0013】[0013]

【作用】図1(A)の場合は、カウンタ1の出力を読出
す前に出力される読出要求信号を、同時に出力される書
込み信号にてラッチ部3にラッチし、ラッチ部3ではラ
ッチした信号をシステムクロックで動作するFF2のイ
ネーブル端子に入力し、FF2ではイネーブル端子にイ
ネーブル信号が入力している間に、FF2にてカウンタ
1の出力を保持してゲート5に出力し、次にくる読出し
信号にてゲート5を開いてFF2の出力を読出すように
するので、エラーパルスが何時カウンタ1に入力しても
カウント値は、読出す前に出力される読出要求信号入力
時にFF2に取り込まれ、それから、次にくる読出し信
号にて読出されるので、1度読みで確定データが得られ
る。
In the case of FIG. 1A, a read request signal output before reading the output of the counter 1 is latched in the latch unit 3 by a simultaneously output write signal, and the latch unit 3 latches the read request signal. The signal is input to the enable terminal of the FF2 operating with the system clock, and while the enable signal is input to the enable terminal of the FF2, the output of the counter 1 is held by the FF2 and output to the gate 5 and then comes. Since the output of the FF2 is read by opening the gate 5 by the read signal, the count value is taken into the FF2 at the time of inputting the read request signal which is output before reading, even if the error pulse is input to the counter 1. Then, the data is read by the next read signal, so that once-determined data is obtained.

【0014】図1(B)の場合は、情報セットパルス入
力によりFF10がセットされ出力がHレベルになる。
このHレベルの信号はマイコンよりの読出し信号により
FF11に取り込まれマイコンのデータバスに出力する
とともに、このHレベルの信号はリセット手段12にも
入力し、リセット手段12の出力でFF10をクリアす
る。
In the case of FIG. 1B, the FF 10 is set by the input of the information set pulse, and the output becomes H level .
This H level signal is taken into the FF 11 by a read signal from the microcomputer and output to the data bus of the microcomputer.
At the same time, the H-level signal is also input to the reset means 12, and the output of the reset means 12 clears the FF 10.

【0015】しかし読出し信号がきた時、FF10がセ
ットされていず出力がLレベルの時は、FF11の出力
はLレベルで、且つリセット手段12はFF10をクリ
アしないので、データ出力中に情報セットパルスがFF
10に入力しても、この時はFF11の出力はLレベル
の儘で、FF10はクリアされないので、次の読出しの
時に読み出すことになり、正確なデータが読み出され
る。
However, when the read signal is received, when the FF 10 is not set and the output is at the L level, the output of the FF 11 is at the L level and the reset means 12 does not clear the FF 10, so that the information set pulse is output during data output. Is FF
Even if it is input to 10, the output of the FF 11 remains at the L level at this time and the FF 10 is not cleared, so that it is read at the next reading, and accurate data is read.

【0016】[0016]

【実施例】図2は本発明の実施例のカウンタ値を読出す
場合の状態読出回路のブロック図、図3は図2の各部の
タイムチャート、図4は本発明の実施例の情報セットパ
ルスが非同期にセットされマイコンリードによりリセッ
トされる場合の状態読出回路のブロック図及びタイムチ
ャートである。
FIG. 2 is a block diagram of a state reading circuit for reading a counter value according to an embodiment of the present invention. FIG. 3 is a time chart of each part in FIG. 2, and FIG. 4 is an information set pulse of the embodiment of the present invention. FIG. 2 is a block diagram and a time chart of a state readout circuit in a case where is set asynchronously and reset by a microcomputer read.

【0017】図2では、マイコンが読出す前に出力され
る、ソフトウエアによる読出要求信号をFF3ー1に入
力し、読出要求信号と同時にマイコン(図示されていな
い)より出力される読出要求信号を書き込むプログラム
を読み出すアドレスをデコーダ7にも入力し、図3
(B)に示す如く信号30をHレベルにしナンド回路9
に入力し、又図3(C)に示す如くLレベルにしたチッ
プセレクト信号,図3(D)に示す如くLレベルとした
ライトイネーブル信号も出力し、ナンド回路9に入力さ
せる。
In FIG. 2, a read request signal by software, which is output before the microcomputer reads, is input to the FF3-1, and a read request signal output from a microcomputer (not shown) simultaneously with the read request signal. The address from which the program for writing the data is read is also input to the decoder 7, and FIG.
The signal 30 is set to the H level as shown in FIG.
, And also outputs an L level chip select signal as shown in FIG. 3C and an L level write enable signal as shown in FIG.

【0018】すると、ナンド回路9の出力は図3(F)
に示す如き信号を出力し、FF3ー1のクロック端子に
入力し、FF3ー1の出力は図3(G)に示す如くな
り、FF3ー2に出力する。
Then, the output of the NAND circuit 9 is shown in FIG.
Is output to the clock terminal of the FF3-1, and the output of the FF3-1 becomes as shown in FIG. 3 (G) and is output to the FF3-2.

【0019】FF3ー2では、図3(A)に示すシステ
ムクロックに同期して取込み、出力は図3(H)に示す
如くなり、FF3ー3に出力する。FF3ー3では、シ
ステムクロックに同期して取込み出力は図3(I)に示
す如くなり遅延回路3ー4に入力する。
The FF 3-2 fetches the data in synchronization with the system clock shown in FIG. 3A, and outputs as shown in FIG. In the FF 3-3, the fetched output is input to the delay circuit 3-4 as shown in FIG. 3 (I) in synchronization with the system clock.

【0020】遅延回路3ー4ではFF3ー2の出力をF
F3ー3に取り込む際のホールド分及びカウンタ1の出
力からFF2に取り込む際のホールド分が確保出来るよ
うに遅延させ、FF2のイネーブル端子に入力しイネー
ブルにすると共にFF3ー1,3ー2のリセット端子に
入力し、FF3ー1,3ー2をリセットする。
In the delay circuit 3-4, the output of the FF 3-2 is
It is delayed so that a hold amount when taking in the F3-3 and a hold amount when taking in the FF2 from the output of the counter 1 are input to the enable terminal of the FF2 to be enabled, and the FFs 3-1 and 3-2 are reset. Input to the terminal to reset the FFs 3-1 and 3-2.

【0021】カウンタ1は、エラーパルスが入力する
と、システムクロックにてカウントしカウント値を出力
するが、FF2ではイネーブルになっている時の、シス
テムクロックで取込み、図3(J)に示す如く取り込ん
だデータを出力する。
When an error pulse is input, the counter 1 counts at the system clock and outputs a count value. At the FF 2, the counter 1 takes in the system clock when it is enabled, and takes in as shown in FIG. Output data.

【0022】するとマイコンは、FF2より読出すプロ
グラムを取り出すアドレスをデコーダ7にも入力し、図
3(B)に示す如く信号31をHレベルにし、セレクタ
4に入力し、FF2の出力を選択して出力させ、又上記
アドレスと同時に出力される図3(C)に示す如くLレ
ベルとしたチップセレクト信号,図3(K)に示す如く
Lレベルとしたリードイネーブル信号も、オア回路8に
入力し、オア回路8の出力がLレベルの間ゲート5を開
き、図3(L)に示す如くデータを出力させる。
Then, the microcomputer also inputs the address for extracting the program to be read from the FF 2 to the decoder 7, sets the signal 31 to the H level as shown in FIG. 3B, inputs the signal 31 to the selector 4, and selects the output of the FF 2. The chip select signal, which is output at the same time as the above address and is at the L level as shown in FIG. 3C, and the read enable signal which is at the L level as shown in FIG. Then, while the output of the OR circuit 8 is at the L level, the gate 5 is opened to output data as shown in FIG.

【0023】即ち、エラーパルスが何時カウンタ1に入
力してもカウント値は、読出す前に出力される読出要求
信号入力時にFF2に取り込まれ、それから、次にくる
読出し信号にて読出されるので、1度読みで確定データ
が得られる。
That is, no matter when the error pulse is input to the counter 1, the count value is taken into the FF 2 when the read request signal output before reading is input, and is read by the next read signal. First, read-out data is obtained.

【0024】図4の場合は、マイコンよりFF10の出
力を読出すプログラムを取り出すアドレスをデコーダ1
4にも入力すると、図4(A)に示す如く、出力aをH
レベルとし又同時にマイコンより出力される図4(B)
に示す如くLレベルとしたチップセレクト信号,図4
(C)に示す如くLレベルとしたリードイネーブル信号
もノア回路13に入力し出力をアンド回路15に入力す
る。
In the case of FIG. 4, an address for extracting a program for reading the output of the FF 10 from the microcomputer is assigned to the decoder 1.
4 as well, as shown in FIG.
Fig. 4 (B) output from the microcomputer at the same time as the level
4 shows a chip select signal at L level as shown in FIG.
As shown in (C), the read enable signal at L level is also input to the NOR circuit 13 and the output is input to the AND circuit 15.

【0025】するとアンド回路15の出力は図4(D)
に示す如きパルスとなり、FF11のクロック端子及び
遅延回路12ー2に入力し、遅延回路12ー2では、デ
ータ確定期間が安定に出力出来るよう僅か遅延させナン
ド回路12ー1に入力させる。
Then, the output of the AND circuit 15 is shown in FIG.
Are input to the clock terminal of the FF 11 and the delay circuit 12-2. The delay circuit 12-2 delays the data to a stable value so that the data determination period can be output stably, and inputs the data to the NAND circuit 12-1.

【0026】一方、マイコンとは非同期な図4(E)に
示す如き情報セットパルスがFF10のセット端子に入
力すると、FF10の出力は図4(F)に示す如くHレ
ベルとなり、FF11に送出される。
On the other hand, when an information set pulse as shown in FIG. 4E, which is asynchronous with the microcomputer, is input to the set terminal of the FF 10, the output of the FF 10 becomes H level as shown in FIG. You.

【0027】FF11では、アンド回路15の出力の立
ち上がりで入力のHレベルを読出し出力よりは図4
(G)に示す如きHレベルを出力しナンド回路12ー1
に入力する。
In the FF 11, the input H level is read at the rising edge of the output of the AND circuit 15, and
The NAND circuit 12-1 outputs an H level as shown in FIG.
To enter.

【0028】するとナンド回路12ー1の出力は図4
(H)に示す如きパルスを出力し、立ち上がりでFF1
0をリセットする。従ってFF11の出力よりは図4
(I)に示す確定したデータを出力する。
The output of the NAND circuit 12-1 is shown in FIG.
A pulse as shown in (H) is output, and FF1 is output at the rising edge.
Reset 0. Therefore, the output of FIG.
The determined data shown in (I) is output.

【0029】図4(D)に示すアンド回路15の出力の
立ち上がり時点で、FF10の出力がLレベルで、FF
11の出力がLレベルであれば、FF11の出力はLレ
ベルの儘で、FF10をリセットしないので、データ出
力中に、情報セットパルスがFF10に入力しても、こ
の時はFF11の出力はLレベルの儘で、FF10はク
リアされないので、次の読出しの時に読み出すことにな
り、正確なデータが読み出される。
At the time when the output of the AND circuit 15 rises as shown in FIG.
If the output of the FF11 is at the L level, the output of the FF11 remains at the L level and the FF10 is not reset. Therefore, even if an information set pulse is input to the FF10 during data output, the output of the FF11 is at the L level. Since the level remains unchanged, the FF 10 is not cleared, so that it will be read at the next read, and accurate data will be read.

【0030】[0030]

【発明の効果】以上詳細に説明せる如く本発明によれ
ば、エラーパルスをシステムクロックでカウントするカ
ウンタのカウント値を、該システムクロックと非同期な
マイコンにて読出す場合、1度読みで確定データが得ら
れるマイコンによる状態読出回路及び、マイコンとは非
同期である情報セットパルスによりHレベルにセットさ
れるFFの出力を、該マイコンよりの読出し信号にて読
出し、読出した後に該FFをクリアする場合、正確なデ
ータが読出せるマイコンによる状態読出回路が得られる
効果がある。
As described above in detail, according to the present invention, when a count value of a counter that counts an error pulse with a system clock is read by a microcomputer that is asynchronous with the system clock, the determined data is read once. When the output of the FF which is set to the H level by the information set pulse which is asynchronous with the microcomputer is read by the read signal from the microcomputer, and the FF is cleared after reading, Thus, there is an effect that a state reading circuit by a microcomputer which can read accurate data can be obtained.

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

【図1】は本発明の原理ブロック図、FIG. 1 is a block diagram showing the principle of the present invention;

【図2】は本発明の実施例のカウンタ値を読出す場合の
状態読出回路のブロック図、
FIG. 2 is a block diagram of a state reading circuit for reading a counter value according to the embodiment of the present invention;

【図3】は図2の各部のタイムチャート、3 is a time chart of each part in FIG. 2,

【図4】は本発明の実施例の情報セットパルスが非同期
にセットされマイコンリードによりリセットされる場合
の状態読出回路のブロック図及びタイムチャート、
FIG. 4 is a block diagram and a time chart of a state reading circuit when an information set pulse according to an embodiment of the present invention is asynchronously set and reset by a microcomputer read;

【図5】は従来例のカウンタ値を読出す場合の状態読出
回路のブロック図及びタイムチャート、
FIG. 5 is a block diagram and a time chart of a state reading circuit when reading a counter value according to a conventional example;

【図6】は従来例の情報セットパルスが非同期にセット
されマイコンリードによりリセットされる場合の状態読
出回路のブロック図及びタイムチャートである。
FIG. 6 is a block diagram and a time chart of a conventional state reading circuit when an information set pulse is set asynchronously and reset by a microcomputer read.

【符号の説明】[Explanation of symbols]

1はカウンタ、 2,3ー1,3ー2,3ー3,10,11はフリップフ
ロップ、 3はラッチ部、 3ー4,12ー2,19は遅延回路、 4はセレクタ、 5はゲート、 6,13,16はノア回路、 7,14,17,20はデコーダ、 8,21はオア回路、 9,12ー1,18はナンド回路、 12はリセット手段、 15はアンド回路を示す。
1 is a counter, 2,3-1,3-2,3-3,10,11 are flip-flops, 3 is a latch section, 3-4,12-2,19 are delay circuits, 4 is a selector, 5 is a gate Reference numerals 6, 13, 16 and 15 denote NOR circuits, 7, 14, 17 and 20 denote decoders, 8, 21 denote OR circuits, 9, 12-1 and 18 denote NAND circuits, 12 denotes reset means, and 15 denotes an AND circuit.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/00 H01L 1/00 G06F 1/24 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 11/00 H01L 1/00 G06F 1/24

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 エラーパルスをシステムクロックでカウ
ントするカウンタのカウント値を、該システムクロック
と非同期なマイクロコンピュータにて読出す状態読出回
において、 該カウンタの出力を保持して出力する、該システムクロ
ックで動作するフリップフロップと、 読出要求信号を書込み信号にてラッチし、該システムク
ロックに同期して該ラッチした信号を該フリップフロッ
プのイネーブル端子に出力するラッチ部と、 該フリップフロップの出力を読出し用データとして出力
するゲートを設け、 マイクロコンピュータにて読出す前に該マイクロコン
ピュータより、読出要求信号と、該読出要求信号を該ラ
ッチ部に書込む書込み信号を同時に出力し、次に該フリ
ップフロップの出力を読出す読出し信号を該ゲートに
力するようにしたことを特徴とするマイコンによる状態
読出回路。
1. A state reading circuit for reading a count value of a counter that counts an error pulse by a system clock by a microcomputer asynchronous with the system clock.
In road, it holds and outputs the output of the counter, and a flip-flop that operates in the system clock, latches the read request signal at the write signal, the latch signal the flip-flop in synchronization with the system clock And an output terminal of the flip-flop as an output terminal.
A read request signal and a write signal for writing the read request signal into the latch unit are simultaneously output from the microcomputer before reading by the microcomputer , and then the output of the flip-flop is output. A state read circuit by a microcomputer, wherein a read signal to be read is output to the gate.
【請求項2】 マイクロコンピュータとは非同期である
情報セットパルスによりHレベルにセットされる第1の
フリップフロップの出力を、該マイクロコンピュータよ
りの読出し信号にて読出し、読出した後に該第1のフリ
ップフロップをクリアする状態読出回路において、 該第1のフリップフロップの出力を入力とし、該マイク
ロコンピュータよりの読出し信号により入力した信号を
保持して出力する第2のフリップフロップと、 該第2のフリップフロップの出力がHレベルに保持され
ていれば該第1のフリップフロップをリセットするリセ
ット手段を設け、 該第1のフリップフロップの出力を、該マイクロコンピ
ュータよりの読出し信号により、該第2のフリップフロ
ップから読み出すとともに、該第2のフリップフロップ
の出力により第1のフリップフロップをクリアするよう
にした ことを特徴とするマイコンによる状態読出回路。
2. An output of a first flip-flop, which is set to an H level by an information set pulse that is asynchronous with the microcomputer, is read by a read signal from the microcomputer, and after reading, the first flip-flop is read. A state readout circuit for clearing a flip-flop, receiving an output of the first flip-flop as an input, and outputting a signal input by a readout signal from the microcomputer.
A second flip-flop for holding and outputting, only setting the reset means output of the second flip-flop to reset the flip-flop of the first if it is held at H level, the first flip-flop Output of the microcomputer
In response to a read signal from the
From the second flip-flop.
Clears the first flip-flop by the output of
State readout circuit by the microcomputer, characterized in that the.
JP05199832A 1993-08-12 1993-08-12 Status reading circuit by microcomputer Expired - Fee Related JP3097404B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05199832A JP3097404B2 (en) 1993-08-12 1993-08-12 Status reading circuit by microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05199832A JP3097404B2 (en) 1993-08-12 1993-08-12 Status reading circuit by microcomputer

Publications (2)

Publication Number Publication Date
JPH0756756A JPH0756756A (en) 1995-03-03
JP3097404B2 true JP3097404B2 (en) 2000-10-10

Family

ID=16414388

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05199832A Expired - Fee Related JP3097404B2 (en) 1993-08-12 1993-08-12 Status reading circuit by microcomputer

Country Status (1)

Country Link
JP (1) JP3097404B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3246487B2 (en) 1999-07-22 2002-01-15 日本電気株式会社 Semiconductor integrated circuit and control signal generation method thereof
JP4279023B2 (en) 2003-03-25 2009-06-17 富士通株式会社 Status display information setting circuit

Also Published As

Publication number Publication date
JPH0756756A (en) 1995-03-03

Similar Documents

Publication Publication Date Title
US7969813B2 (en) Write command and write data timing circuit and methods for timing the same
US5079693A (en) Bidirectional FIFO buffer having reread and rewrite means
US4933901A (en) Method for assigning priority to read and write requests received closely in time
US4815039A (en) Fast real-time arbiter
JP3097404B2 (en) Status reading circuit by microcomputer
US5021994A (en) Look-ahead flag generator
US5479646A (en) Method and apparatus for obtaining data from a data circuit utilizing alternating clock pulses to gate the data to the output
JP3443689B2 (en) Arbiter circuit
US6301188B1 (en) Method and apparatus for registering free flow information
EP1122737A1 (en) Circuit for managing the transfer of data streams from a plurality of sources within a system
JP3013800B2 (en) Asynchronous FIFO circuit
JPH06197009A (en) Counter with output latch function
US5598552A (en) Error free data transfers
JP2644112B2 (en) FIFO test diagnostic circuit
JP2730342B2 (en) Interrupt control circuit
JPS6256598B2 (en)
JP3088144B2 (en) FIFO reset circuit
JP2528219B2 (en) Status register device
JPS601644B2 (en) Timing pulse generation circuit
JP2994906B2 (en) Data receiving circuit
RU1789993C (en) Device for editing table elements
JPS6251525B2 (en)
JPH027284A (en) Integrated circuit
JPH10112178A (en) Fifo memory and its manufacture
JP2948714B2 (en) Receive overrun control circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000711

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080811

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090811

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090811

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100811

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110811

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120811

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees