JPS63192149A - Data bus controller - Google Patents

Data bus controller

Info

Publication number
JPS63192149A
JPS63192149A JP2538387A JP2538387A JPS63192149A JP S63192149 A JPS63192149 A JP S63192149A JP 2538387 A JP2538387 A JP 2538387A JP 2538387 A JP2538387 A JP 2538387A JP S63192149 A JPS63192149 A JP S63192149A
Authority
JP
Japan
Prior art keywords
output
bidirectional driver
cpu
data
memory
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.)
Pending
Application number
JP2538387A
Other languages
Japanese (ja)
Inventor
Tokuo Emura
徳男 江村
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.)
Nissin Electric Co Ltd
Original Assignee
Nissin Electric 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 Nissin Electric Co Ltd filed Critical Nissin Electric Co Ltd
Priority to JP2538387A priority Critical patent/JPS63192149A/en
Publication of JPS63192149A publication Critical patent/JPS63192149A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To prevent an oscillation phenomenon on a data bus by setting a flip-flop FF when a memory read signal outputted from a CPU is active and then resetting the FF when the output of a gate circuit is inactive. CONSTITUTION:An FF25 is set when the memory read signal outputted from a CPU 1 is active and then reset when the output of a gate circuit 26 is inactive respectively. Therefore, the conducting direction of a bidirectional driver 15 is fixed in a read mode before the output control signal given to the driver 15. At the same time, the fixed conducting direction is kept even after the output control signal is inactive and the driver 15 is cut off. Thus the driver 15 conducts only in the direction where the driver 15 moves toward the CPU 1 from a peripheral circuit in the read mode. As a result, an oscillation phenome non is prevented on a data bus 7.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、マイクロコンピュータ等においてCPU(
中央処理装置)とメモリ回路等の周辺装置とを結ぶ双方
向性のデータバスの接続および切゛離しの制御ならびに
方向制御を行うデータバス制御装置に関するものである
[Detailed Description of the Invention] (Industrial Application Field) The present invention provides a CPU (CPU) in a microcomputer etc.
The present invention relates to a data bus control device that performs connection/disconnection control and direction control of a bidirectional data bus that connects a central processing unit (central processing unit) and peripheral devices such as memory circuits.

〔従来の技術] 第4図はマイクロコンピュータの一般的な構成の一例の
ブロック図を示している。このマイクロコンビ1−夕は
、第4図に示すように、CP IJ 1と周辺回路であ
るメモリ回WR2,入出力回路3およびインタフェース
回路4とをバス5で接続している。
[Prior Art] FIG. 4 shows a block diagram of an example of a general configuration of a microcomputer. As shown in FIG. 4, this microcombi 1-1 connects the CP IJ 1 and peripheral circuits such as a memory circuit WR2, an input/output circuit 3, and an interface circuit 4 via a bus 5.

第5図はCPLllに接続されるバス5を具体的に示す
ブロック図である。バス5は、第5F!4に示すように
、単方向性のアドレスバス6と双方向性(1)チーlバ
ス7とm方向性のコントロールバス8との3種類からな
り、コントロールバス8については、本発明に関係する
メモリリード信号線8aおよびメモリライト信号線8b
のみ図示している。
FIG. 5 is a block diagram specifically showing the bus 5 connected to CPLll. Bus 5 is on the 5th floor! As shown in FIG. 4, there are three types of busses: a unidirectional address bus 6, a bidirectional (1) channel bus 7, and an m-directional control bus 8, and the control bus 8 is related to the present invention. Memory read signal line 8a and memory write signal line 8b
Only shown in the diagram.

上記双方向性のデータバス7は、CPUIがり−ドモー
ドの時はデータDがCPLJIに入る方向に流れ、CP
IJIがライトモードの時はデータ■がCPUIから出
る方向に流れる。アドレスADとメモリリード信号M 
E M Rおよびメモリライト信号M P、 M Wは
、常にCP LJ 1から出る方向に流れる。
The bidirectional data bus 7 allows data D to flow in the direction of input to CPLJI when the CPU is in the red mode;
When IJI is in write mode, data ■ flows in the direction from the CPUI. Address AD and memory read signal M
EMR and memory write signals M P, M W always flow in the direction out of CP LJ 1.

第6図は第4図および第5図に示したマイクロコンピュ
ータにおけるリードモード時およびライトモード時のタ
イムチャートで、(a)はアドレス1石を、(b)はメ
モリリード信号M E M Rを、(c)はメモリライ
ト信号MEMWを、(d)はデータDをそれぞれ示して
いる。
Fig. 6 is a time chart in read mode and write mode in the microcomputer shown in Figs. , (c) show the memory write signal MEMW, and (d) show the data D, respectively.

このマイクロコンピュータは、リードモード時には、C
PIJIが所定のアドレスA I)を出力し、このアド
レス1石によって周辺回路のうち例えばメモリ回路2が
選択される。この後、メモリリード信号MIMRがロー
レベルになると、選択されたメモリ回路2からデータD
が出力され、このデータDがデータバス7上に現れる。
In read mode, this microcomputer uses C
PIJI outputs a predetermined address A1), and this address selects, for example, memory circuit 2 among the peripheral circuits. After that, when the memory read signal MIMR becomes low level, data D is sent from the selected memory circuit 2.
is output, and this data D appears on the data bus 7.

このデータDは、メモリリード信号M P、 M Rが
ローレベルになった後メモリ回路2のアクセス時間経過
して安定し、メモリリード信号MEMRがハイレベルに
なる直前に、CPLJIの内部のレジスタに読み込まれ
る。そして、メモリリード48号MEMRがハイレベル
になった後でメモリ回路2からのデータ百の出力が終了
する。
This data D becomes stable after the access time of the memory circuit 2 has elapsed after the memory read signals MP and MR become low level, and is stored in the internal register of CPLJI just before the memory read signal MEMR becomes high level. Loaded. Then, after memory read No. 48 MEMR becomes high level, the output of data 100 from the memory circuit 2 ends.

一方、ライトモード時には、CPLllが所定のアドレ
スADを出力し、このアドレスADによって周辺回路の
うち例えばメモリ回路2が選択される。この後、メモリ
ライト信号MEMWがローレベルになると同時にCPU
Iからデータバス7上にデータDが出力される。そして
、メモリライト信号114RMWがハイレベルになった
t&cpυlからのデータDの出力が終了する。メモリ
回路2へは、通常メモリライト信号MaMWがローレベ
ルからハイレベルに切換わるタイミングで書き込まれる
ことになる。
On the other hand, in the write mode, CPLll outputs a predetermined address AD, and the memory circuit 2, for example, among the peripheral circuits is selected by this address AD. After this, at the same time that the memory write signal MEMW becomes low level, the CPU
Data D is output from I onto the data bus 7. Then, the output of data D from t&cpυl, where the memory write signal 114RMW becomes high level, ends. Normally, data is written to the memory circuit 2 at the timing when the memory write signal MaMW switches from low level to high level.

なお、第6図(d)において、データ蹟は周辺回路であ
るメモリ回路2より出力され、データ夏〕2はCPUI
より出力される。
In addition, in FIG. 6(d), the data base is output from the memory circuit 2 which is a peripheral circuit, and the data base]2 is output from the CPUI
It is output from

また、CPUIによる読み出し動作および書き込み動作
は、アドレス5を変更することによって、入出力回路3
やインタフェース回路4に対しして行うこともできる。
In addition, the read operation and write operation by the CPUI can be performed by changing the address 5 of the input/output circuit 3.
This can also be done for the interface circuit 4.

上記のように、マイクロコンピュータにおいては、リー
ドモード時とライトモード時とでデータ百の流れる方向
が逆になり、cputと例えばメモリ回VtTl2との
間でデータ百の受は渡しを正しく行うには、アドレスA
Dとメモリリード信号富1マ1およびメモリライト信号
M P、 M Wとに基づきデータバス7と例えばメモ
リ回路2のデータ入力端子との接続、切離しの制御およ
びデータ五を流す方向を制御するデータバス制御装置を
設ける必要があり、メモリ回路2等の周辺回路はデータ
バス制御装置を含んで構成している。
As mentioned above, in a microcomputer, the direction in which 100 data flows is reversed between read mode and write mode, and it is difficult to correctly transfer 100 data between cput and, for example, memory circuit VtTl2. , address A
Data that controls connection and disconnection between the data bus 7 and, for example, a data input terminal of the memory circuit 2, and the direction in which the data 5 flows, based on the memory read signal M1 and the memory write signals MP and MW. It is necessary to provide a bus control device, and peripheral circuits such as the memory circuit 2 are configured to include a data bus control device.

第7図は第4図のマイクロコンピュータの具体的なブロ
ック図を示している。ただし、入出力回路3およびイン
タフェース回路4の図示は省いている。
FIG. 7 shows a concrete block diagram of the microcomputer shown in FIG. 4. However, illustration of the input/output circuit 3 and the interface circuit 4 is omitted.

このマイクロコンビエータは、第7図に示すように、C
PU lとメモリ回1/32とをアドレスバス6、デー
タバス7およびコントロールバス8(メモリリード信号
線8aおよびメモリライト信号線8bのみを図示)で接
続している。
As shown in FIG.
PU 1 and memory circuit 1/32 are connected by address bus 6, data bus 7 and control bus 8 (only memory read signal line 8a and memory write signal line 8b are shown).

上記のアドレスバス6を通して周辺回路に与えられるア
ドレスADは、例えば上位2ビツトの周辺Ifil路選
択用アドレスと例えば下位14ビツトのデータ記憶場所
アドレスとから構成され、データバス7を通るデータD
は例えば8ビツトである。
The address AD given to the peripheral circuit through the address bus 6 is composed of, for example, the upper 2 bits of the peripheral Ifil path selection address and the lower 14 bits of the data storage location address, and the data D passing through the data bus 7 is
is, for example, 8 bits.

メモリ回路2は、アドレスバス6を信号反転用f)4ン
バータ11の入力端に接続し、インバータ11の出力端
のうも下位14ビツトをRAM12のアドレス入力端に
接続してインバータ11の出刃端のうち上位2ビツトを
比較器13の一方の入力端に接続し、比較器13の他方
の入力端には周辺回路選択用アドレス設定用の設定器1
4の出力端を接続している。
The memory circuit 2 connects the address bus 6 to the input end of a signal inverter 11, connects the lower 14 bits of the output end of the inverter 11 to the address input end of the RAM 12, and connects the output end of the inverter 11 to the address input end of the RAM 12. The upper two bits are connected to one input terminal of the comparator 13, and the other input terminal of the comparator 13 is connected to the setter 1 for setting the address for peripheral circuit selection.
The output end of 4 is connected.

また、データバス7を双方向性ドライバ15の一方の入
出力端に接続し、この双方向性ドライバ15の他方の入
出力端をRAM12のデータ入出力端に接続している。
Further, the data bus 7 is connected to one input/output end of the bidirectional driver 15, and the other input/output end of the bidirectional driver 15 is connected to the data input/output end of the RAM 12.

また、メモリリード信号線8aをバッファ16を介して
r!AM12のメモリリード信号入力端に接続するとと
もに、メモリライト信号線8bをバッファ17を介して
RAM12のメモリライト信号入力端に接続している。
In addition, the memory read signal line 8a is connected to r! through the buffer 16. It is connected to the memory read signal input end of the AM 12, and the memory write signal line 8b is connected to the memory write signal input end of the RAM 12 via the buffer 17.

また、比較′/%13の出力端を双方向性ドライバ15
の出力制御信号入力端に接続するとともに、バッファ1
6の出力端を双方向性ドライバ15の方向制御信号入力
幅に接続する。
In addition, the output terminal of the comparison '/%13 is connected to the bidirectional driver 15.
is connected to the output control signal input terminal of buffer 1.
6 is connected to the direction control signal input width of the bidirectional driver 15.

上記したマイクロコンピュータの中で、比較器13、設
定器14.双方向性ドライバ15がデータバス制御装置
を構成する。
In the above-mentioned microcomputer, the comparator 13, the setting device 14. Bidirectional driver 15 constitutes a data bus controller.

第8図および第9図は、第7図のマイクロコンビ、−一
夕のライトモード時およびリードモード時の動作を示す
タイムチャートである。第8図において、(a)はcp
u iからアドレスバス6を通して出力されるアドレス
A I)を、(b)は同じくメモリリード信号線8aを
通して出力されるメモリリード信号M L’ M l?
を、(C)は同じくメモリライト信号線8bを通して出
力されるメモリライト信号MEMWを、(d)は同じく
データバス7を通して出力されるデータ1〕を、(6)
はRAM12および比較器13に入力されるアドレスA
nを、(f)は比較113の出力■すなわち双方向性ド
ライバ15へ入力される出力制御信号OCを、(g)は
双方向性ドライバ15へ入力される方向制御信号DIR
すなわちRAM12へ入力されるリード信号l?を、(
h)はI?AM12へ入力されるライト信号Wをそれぞ
れ示している。また、第9図において、(a)はCPU
Iからアドレスバス6を通して出力されるアドレスAD
を、(b)は同じくメモリリード信号線8aを通して出
力されるメモリリード信号M E M Rを、(C)は
同じくメモリライト信号線8bを通して出力されるメモ
リライト信号M Li M Wを、(d)はRAMI 
2および比較813に入力されるアドレスADを、(e
’)は比較器13の出力Tすなわち双方向性ドライバ1
5へ人力される出力制御信号σでを、(flは双方向性
ドライバ15へ入力される方向制御信号DIRすなわち
RAM12へ入力されるリード信号正を、(g)はRA
M12へ入力されるライト信号Wを、(h)はRAM1
2から出力されるデータDをそれぞれ示している。
8 and 9 are time charts showing the operation of the microcombi shown in FIG. 7 during the overnight write mode and the read mode. In Figure 8, (a) is cp
(b) is the memory read signal M L' M l? output from u i through the address bus 6, and (b) is the memory read signal M L' M l? which is also output through the memory read signal line 8a.
, (C) is the memory write signal MEMW which is also output through the memory write signal line 8b, (d) is the data 1 which is also output through the data bus 7, (6)
is address A input to RAM 12 and comparator 13
(f) is the output of the comparator 113, that is, the output control signal OC input to the bidirectional driver 15, and (g) is the direction control signal DIR input to the bidirectional driver 15.
In other words, the read signal l? input to the RAM 12? of,(
h) is I? Each shows a write signal W input to AM12. In addition, in FIG. 9, (a) is the CPU
Address AD output from I through address bus 6
, (b) shows the memory read signal M E M R outputted through the memory read signal line 8a, (C) shows the memory write signal M Li M W outputted through the memory write signal line 8b, and (d ) is RAMI
2 and the address AD input to the comparison 813, (e
') is the output T of the comparator 13, that is, the bidirectional driver 1
5, (fl is the direction control signal DIR input to the bidirectional driver 15, that is, the read signal positive input to the RAM 12, and (g) is the output control signal σ input to the bidirectional driver 15.
Write signal W input to M12, (h) is RAM1
The data D output from 2 is shown respectively.

ここで、第8図を参照して第7図のマイクロコンピュー
タのライトモード時の動作を説明する。
Here, the operation of the microcomputer shown in FIG. 7 in the write mode will be explained with reference to FIG.

CP tJ 1からアドレスADが出力されると、これ
より少し遅れてRAM12および比較器13ヘアドレス
ADが入力される。また、CPUIから出力されるメモ
リリード信号M8MRはハイレベルのままであり、した
がってRAMI 2へ入力されるリード信)4−πもハ
イレベルのままであり、さらに双方向性ドライバ15へ
入力される方向制御信M) D I Rもハイレベルの
ままである。
When address AD is output from CP tJ 1, address AD is input to RAM 12 and comparator 13 a little later. Furthermore, the memory read signal M8MR output from the CPUI remains at a high level, so the read signal (4-π) input to the RAMI 2 also remains at a high level, and is further input to the bidirectional driver 15. The direction control signal M) DIR also remains at high level.

比較n13ヘアドレス八〇の上位ビットが入力されると
、このアドレスADの上位ピントと設定器14の出力と
が一致すれば、比較器13の出力Yがローレベルになり
、したがって双方向性ドライバ15の出力制御信号QC
がローレベルとなる。
When the upper bit of address 80 is input to the comparison n13, if the upper focus of this address AD matches the output of the setter 14, the output Y of the comparator 13 becomes low level, and therefore the bidirectional driver 15 output control signals QC
becomes low level.

このとき、方向?l111御信号DIRがハイレベルで
あるので、出力制御信号QCがローレベルとなった時点
から双方向性ドライバ15がCPUIからRAM12の
方向に導通する。
At this time, what direction? Since the l111 control signal DIR is at high level, the bidirectional driver 15 conducts from the CPUI to the RAM 12 from the moment the output control signal QC becomes low level.

CP tJ lからアドレス八〇が出力された後、CI
) U lから出力されるメモリライト信号M I?、
 M Wがローレベルになり、これと同時にデータDが
CPUIから出力される。メモリライト信号M )?、
 MWがローレベルになると、これより少し遅れてRA
M12へ入力されるライト信号Wがローレベルとなる。
After address 80 is output from CP tJ l, CI
) Memory write signal M I? output from U I? ,
MW becomes low level, and at the same time data D is output from the CPUI. Memory write signal M)? ,
When MW goes to low level, RA is activated a little later than this.
The write signal W input to M12 becomes low level.

このとき、双方向性ドライバ15が導通しているので、
データ■は双方向性ドライバ15で反転されてRAM1
2のデータ入出力端にデータDとして入力される。
At this time, since the bidirectional driver 15 is conducting,
Data ■ is inverted by bidirectional driver 15 and stored in RAM1.
It is input as data D to the data input/output terminal of No.2.

この後、メモリライト信号MEMWがハイレベルとなり
、これより少し遅れてライト信号Wがハイレベルとなり
、このライト信号Wがローレベルからハイレベルに変化
するときにRAM12のアドレス^Dで指定された場所
にデータDが書き込まれる。
After this, the memory write signal MEMW becomes high level, and a little later, the write signal W becomes high level, and when this write signal W changes from low level to high level, the location specified by address ^D of RAM 12 Data D is written to.

この後、ある時間経過するとCPUIからのデータ了の
出力がなくなり、アドレスADもメモリ回路2と対応し
ないものとなり、比較器13の出カフがハイレベルとな
り、したがって双方向性ドライバ15の出力制御信号了
τがハイレベルとなり、双方向性ドライバ15が遮断す
る。
After this, after a certain period of time has passed, the data completion output from the CPUI disappears, the address AD also no longer corresponds to the memory circuit 2, the output of the comparator 13 becomes high level, and therefore the output control signal of the bidirectional driver 15 The signal τ becomes high level, and the bidirectional driver 15 is cut off.

つぎに、第9図を参照して第71!i!!Iのマイクロ
コンピュータのリードモード時の動作を説明する。
Next, referring to Fig. 9, see the 71st! i! ! The operation of the I microcomputer in read mode will be explained.

CP [11からアドレスADが出力されると、これよ
り少し遅れてRAM12および比較113ヘアドレスA
Dが入力される。また、CP tJ 1から出力される
メモリライト信号MEMWはハイレベルのままであり、
したがって、RAM12へ入力されるライト信号Wもハ
イレベルのままである。また、メモリリード信号M F
、 M Rはハイレベルであり、双方向性ドライバ15
へ入力される方向制御信号Dlr?もハイレベルである
When address AD is output from CP [11, address A is sent to RAM 12 and comparison 113 a little later.
D is input. In addition, the memory write signal MEMW output from CP tJ 1 remains at high level,
Therefore, the write signal W input to the RAM 12 also remains at high level. In addition, memory read signal M F
, M R is at high level, and the bidirectional driver 15
Direction control signal Dlr? is also at a high level.

比較器13ヘアドレスADの上位ビットが入力されると
、このアドレス八りの上位ビットと設定器13の出力と
が一致すれば、比較器13の出力Yがローレベルになり
、したがって双方向性ドライバ15の出力制御信号丁で
かローレベルとなる。
When the high-order bits of the address AD are input to the comparator 13, if the high-order bits of the address AD match the output of the setter 13, the output Y of the comparator 13 becomes low level, thus indicating bidirectionality. The output control signal of the driver 15 becomes low level.

このとき、方向制御信号r)、lRがハイレベルである
ので、出力?Iil+御信号OCがローレベルとなった
時点から双方向性ドライバ15がCPU 1からRAM
12の方向に導通する。
At this time, since the direction control signals r) and lR are at high level, the output? From the moment when the Iil+ control signal OC becomes low level, the bidirectional driver 15 transfers data from the CPU 1 to the RAM.
Conductive in 12 directions.

CP tJ 1からアドレスADが出力された後、CP
 [J 1から出力されるメモリリード信号M F、 
M Rがローレベルになると、これより少し遅れた時刻
t1で方向制御信号DIRおよびリード信号Rがローレ
ベルとなり、この時点より双方向性ドライバ15の導通
方向が逆転するとともに、RAM12におけるアドレス
ADで指定された場所の読み出しのためのアクセスが始
まりデータDが出力され始める。なお、時刻(I直後の
アクセス時間はデータDが不安定で、アクセス時間の終
了後データDが安定する。このデータDは双方向性ドラ
イバ15で反転されたtIIcPUIに入力される。
After address AD is output from CP tJ 1, CP
[Memory read signal M F output from J1,
When MR becomes low level, the direction control signal DIR and read signal R become low level at time t1, which is a little later than this, and from this point on, the conduction direction of the bidirectional driver 15 is reversed, and the address AD in the RAM 12 is Access for reading the designated location begins, and data D begins to be output. Note that data D is unstable during the access time immediately after time (I, and becomes stable after the access time ends. This data D is input to tIIcPUI, which is inverted by the bidirectional driver 15.

CPUIは、メモリリード信号M P、 M Rをハイ
レベルに変化する直前にデータ百を内部レジスタに読み
込む、メモリリード信号MEMRがハイレベルとなると
、これより少し遅れた時刻t2で方向制御信号DIRお
よびリード信号Rがハイレベルになる。この結果、ただ
ちに双方向性ドライバ15の導通方向が元にもどり、ま
た時刻(2よりもさらに遅れた時刻t3でRAM12か
らデータDの出力が停止する。
The CPU reads data 100 into the internal register immediately before changing the memory read signals M P and M R to high level. When the memory read signal MEMR becomes high level, the direction control signals DIR and M R are read at time t2, which is a little later than this. Read signal R becomes high level. As a result, the conduction direction of the bidirectional driver 15 immediately returns to its original state, and the output of data D from the RAM 12 stops at time t3, which is further delayed than time (2).

この後、アドレスに石がメモリ回路2と対応しないもの
となり、比較1113の出力Yがハイレベルとなり、し
たがうて双方向性ドライバ15の出力1M御信号5でか
ハイレベルとなり、双方向性ドライバ15が遮断する。
After this, the address does not correspond to the memory circuit 2, and the output Y of the comparison 1113 becomes high level.Therefore, the output 1M control signal 5 of the bidirectional driver 15 becomes high level, and the bidirectional driver 15 is blocked.

〔発明が解決しようとする間n点] 上記した従来のマイクロコンビエータのデータバス制御
装置においては、rlAM12に入力されるリード信号
τをそのまま双方向性ドライバ15に方向制御信号DI
Rとして加えるとともに、比較器13の出カマをそのま
ま双方向性ドライバ15に出力制御信号5τとして加え
る構成であったため、リードモード時において、出力制
御信号OCが方向制御信号DIRより先にローレベル(
アクティブ)になり、かつ方向制御信号DIRより遅れ
てハイレベル(インアクティブ)になることから、双方
向性ドライバ15がまずCPUIからRAM12の方向
へ導通し、ついでRAM12からCPUIの方向へ導通
し、ついでCPUIからl?AM12の方向へ導通し、
そのt&遮断することになり、都合2同郷通方向を変化
することになる。
[N points to be solved by the invention] In the conventional micro combinator data bus control device described above, the read signal τ input to the rlAM 12 is directly sent to the bidirectional driver 15 as the direction control signal DI.
In addition, the output of the comparator 13 is directly applied to the bidirectional driver 15 as the output control signal 5τ, so in the read mode, the output control signal OC goes to low level (
Since the bidirectional driver 15 first conducts from the CPUI to the RAM 12, and then from the RAM 12 to the CPUI, Then from the CPUI? Conductive in the direction of AM12,
I will have to cut off the t&, and I will have to change the direction of Dogo-dori.

最初にCPUIからRAM12の方向へ双方向性ドライ
バ15が導通する時には、リード信号kがローレベルと
なっておらずRAM12がアクセスされていないので問
題はないが、時刻t2以後においてCPtJlからRA
M12の方向へ双方向性ドライバ15が導通する時には
つぎのような間題がある。すなわち、時刻t2でリード
信号正がハイレベルとなっても時刻t3までRAM12
がデータDの出力を持続し、この時に双方向性ドライバ
15がCPUIからRAM12の方向へ導通しているこ
とから、cputからデータバス7を通して出ていこう
とするデータDとRAM12が出力を持続しているデー
タDとの衝突が起こり、データバス7上で不要な発振が
生じ、次回のRAM12のアクセスを正常に行えなくな
るという問題があった。
When the bidirectional driver 15 first becomes conductive in the direction from the CPUI to the RAM 12, there is no problem because the read signal k is not at a low level and the RAM 12 is not accessed.
When the bidirectional driver 15 conducts in the direction of M12, the following problem occurs. That is, even if the positive read signal becomes high level at time t2, the RAM 12 remains unused until time t3.
continues to output data D, and at this time the bidirectional driver 15 conducts from the CPU to the RAM 12, so the data D and RAM 12 that are going to go out from cput through the data bus 7 continue to output. There is a problem in that a collision occurs with the data D that is being used, and unnecessary oscillation occurs on the data bus 7, making it impossible to access the RAM 12 normally next time.

この発明の目的は、データバス7でのデータの11突を
防止することができるデータバス制御装置を捷供するこ
とである。
An object of the present invention is to provide a data bus control device that can prevent data collisions on the data bus 7.

〔間腓点を解決するための手段〕[Means for solving the gap]

この発明のデータバス制御装置は、CPUと周辺素子と
を接続する双方向のデータバス中に介挿した双方向性ド
ライバと、 前記CPUから出力されるメモリリード信号がアクティ
ブとなったタイミングでセットされセット状態の出力を
前記双方向性ドライバに対し前記周辺素子から前記CP
 LJへ向かう方向を導通方向として指定するための方
向制御信号として与えるとともにリセット状態の出力を
前記双方向性ドライバに対し前記CPuから前記周辺素
子へ向かう方向を導通方向としてtFr定するための方
向制御信号として与えるフリップフロップと、 前記フリップフロップからセット状態の出力が発生しか
つ前記メモリリード信号がアクティブとなったときおよ
び前記フリップフロップからリセット状態の出力が発止
しかつ前記CPUから出力されるメモリライト信号がア
クティブとなったときに出力をアクティブにして前記双
方向性ドライバに対し導通させるための出力制御信号と
して与えるとともにこの出力がインアクティブとなった
時に前記フリップフロップ゛をリセットするゲート回路
とを備えている。
The data bus control device of the present invention includes a bidirectional driver inserted in a bidirectional data bus that connects a CPU and peripheral elements, and a bidirectional driver that is set at the timing when a memory read signal output from the CPU becomes active. A set state output is sent from the peripheral element to the bidirectional driver to the CP.
A direction control signal is provided as a direction control signal for specifying the direction toward the LJ as the conduction direction, and a direction control for determining tFr of the reset state output to the bidirectional driver with the direction from the CPU to the peripheral element as the conduction direction. a flip-flop to be given as a signal; and a memory that is output from the CPU when a set state output is generated from the flip-flop and the memory read signal becomes active, and when a reset state output is generated from the flip-flop. a gate circuit that activates an output when a write signal becomes active and provides it as an output control signal for making the bidirectional driver conductive; and resets the flip-flop when the output becomes inactive; It is equipped with

(作用〕 この発明のデータバス制御装置によれば、CPUから出
力されるメモリリード信号がアクティブとなったタイミ
ングでフリップフロップをセットし、フリップフロップ
のセット状態の出力を双方向性ドライバに対し周辺回路
からCPUへ向かう方向を導通方向として指定するため
の方向制御信号として与えるとともに、フリップフロッ
プのリセット状態の出力を双方向性ドライバに対しCP
Uから周辺回路へ向かう方向を導通方向として指定する
ための方向制御信号として与え、かつフリップフロップ
からのセット状態の出力が発生しかつメモリリード信号
がアクティブとなったときとフリップフロップからリセ
ット状態の出力が発生しかつメモリライト信号がアクテ
ィブとなったときとにゲート回路が出力をアクティブに
して双方向性ドライバに対し導通させるための出力制御
信号として与え、上記ゲート回路の出力がインアクティ
ブとなった時にフリップフロップをリセットするように
しているため、リードモード時において読み出しのため
の双方向性ドライバの導通方向を双方向性ドライバに与
えられる出力制御信号がアクティブとなる前に確定する
とともに出力制御信号がインアクティブとなって双方向
性ドライバが遮断した後まで導通方向確定伏恕を保持す
ることができる。したがって、リードモード時には双方
向性ドライバが周辺回路からCPUへ向かう方向にしか
導通せず、従来例のように周辺回路からデータが出力さ
れているのに双方向性ドライバがCI) tJから周辺
回路へ向かう方向に導通することはなく、データバス上
でのデータの衝突を防止でき、データバス上での発振現
象を防止することができる。
(Operation) According to the data bus control device of the present invention, the flip-flop is set at the timing when the memory read signal output from the CPU becomes active, and the output of the set state of the flip-flop is sent to the bidirectional driver. It is given as a direction control signal to specify the direction from the circuit to the CPU as the conduction direction, and the output of the reset state of the flip-flop is sent to the bidirectional driver as the direction control signal.
It is given as a direction control signal to designate the direction from U to the peripheral circuit as the conduction direction, and when the set state output from the flip-flop occurs and the memory read signal becomes active, and when the flip-flop outputs the reset state. When an output is generated and the memory write signal becomes active, the gate circuit activates the output and provides it as an output control signal to the bidirectional driver to make it conductive, and the output of the gate circuit becomes inactive. In read mode, the conduction direction of the bidirectional driver for reading is determined before the output control signal applied to the bidirectional driver becomes active, and the flip-flop is reset when the flip-flop is reset. Continuity direction determination can be maintained until after the signal becomes inactive and the bidirectional driver is shut off. Therefore, in the read mode, the bidirectional driver conducts only in the direction from the peripheral circuit to the CPU, and even though data is being output from the peripheral circuit as in the conventional example, the bidirectional driver conducts from CI) tJ to the peripheral circuit. Since conduction does not occur in the direction toward the data bus, data collision on the data bus can be prevented, and oscillation phenomenon on the data bus can be prevented.

〔実施例〕〔Example〕

この発明の一実施例を第1図ないし第3図に基づいて説
明する。このデータバス制御装置は、第1図に示すよう
に、双方向性ドライバ15と、フリップフロップ25と
、ゲート回路26とで構成されている。
An embodiment of the present invention will be described based on FIGS. 1 to 3. This data bus control device is comprised of a bidirectional driver 15, a flip-flop 25, and a gate circuit 26, as shown in FIG.

双方向性ドライバ15は、CPU lと周辺素子である
r?AM12とを接続する双方向のデータバス7中に介
挿している。
The bidirectional driver 15 includes a CPU l and peripheral elements r? It is inserted into the bidirectional data bus 7 that connects with AM12.

フリップフロップ25は、CPUIから出力されるメモ
リリード信号MEMRがアクティブとなったタイミング
でセットされセット状態の出力を双方向性ドライバ15
に対し周辺素子であるRAM12からCPUIへ向かう
方向を導通方向として指定するための方向制御信号DI
Rとして与えるとともにリセット状態の出力を双方向性
ドライバ15に対しCP 131から周辺素子であるR
AM12へ向かう方向を導通方向として指定するための
方向制御信号D I Rとして与える。
The flip-flop 25 is set at the timing when the memory read signal MEMR output from the CPUI becomes active, and outputs the set state to the bidirectional driver 15.
A direction control signal DI for specifying the direction from the RAM 12, which is a peripheral element, toward the CPU as the conduction direction.
The output of the reset state is sent to the bidirectional driver 15 from the CP 131 to the peripheral element R.
It is given as a direction control signal DIR for specifying the direction toward AM12 as the conduction direction.

ゲート回路26は、フリップフロップ25からセット状
態の出力が発生しかつメモリリード信号M L’: M
 Rがアクティブとなったときおよびフリップフロップ
25からリセット状態の出力が発生しかつCPUIから
出力されるメモリライト信号「F、 M Wがアクティ
ブとなったときに出力を7クテイプにして双方向性ドラ
イバ15に対し導通させるための出力制御信号■として
与えるとともにこの出力がインアクティブとなった時に
フリップフロップ25をリセットする。
The gate circuit 26 generates a set state output from the flip-flop 25 and receives a memory read signal M L': M
When R becomes active, a reset state output is generated from the flip-flop 25, and the memory write signal "F, MW" output from the CPU becomes active, the output is set to 7 tapes and the bidirectional driver is activated. The flip-flop 25 is given as an output control signal (2) to make it conductive to the flip-flop 25, and when this output becomes inactive, the flip-flop 25 is reset.

以下、データバス制御装置を含むマイクロコンピュータ
を図面に従って説明する。このマイクロコンビ二一夕は
、第1図に示すように、cputとメモリ回ff12’
とを従来例と同様にアドレスバス61デークバス7およ
びコントロールバス8で接続している。
A microcomputer including a data bus control device will be described below with reference to the drawings. As shown in FIG.
These are connected by an address bus 61, a data bus 7, and a control bus 8, as in the conventional example.

メモリ回路2′は、インバータ11.RへM 12゜比
較’/、413.設定a14および双方向性ドライバ1
5、インバータ16.17については従来例と同じであ
り、この構成にノアゲート20.21からなるフリップ
フロップ25とアンドゲート22゜23およびノアゲー
ト24からなるゲート回路26とアンドゲート18.1
9とを追加したものである。
The memory circuit 2' includes an inverter 11. M 12° comparison to R'/, 413. Settings a14 and bidirectional driver 1
5. The inverters 16 and 17 are the same as the conventional example, and this configuration includes a flip-flop 25 consisting of a NOR gate 20, 21, a gate circuit 26 consisting of an AND gate 22, 23, and a NOR gate 24, and an AND gate 18.1.
9 has been added.

フリップフロップ25およびゲート回路26は前記した
機崗をもち、アンドゲート18.19は、アドレスAD
の上位ビットと設定器14の出力とが一致した時に発生
する比較器13の出カフで導通してメモリリード信号M
 EM r?およびメモリライト信号MEMWをRAM
12およびフリップフロップ25に供給させる機能をも
つ。
The flip-flop 25 and the gate circuit 26 have the above-mentioned functions, and the AND gates 18 and 19 have the address AD.
The memory read signal M
EM r? and memory write signal MEMW to RAM
12 and a flip-flop 25.

第2図および第3図は第1図のマイクロコンビ二一夕の
ライトモード・時およびリードモード時の動作を示すタ
イムチャートである。第2図において、(a)はCPt
Jlからアドレスバス6を通して出力されるアドレスA
Dを、(b)は間じくメモリリード信号線8aを通して
出力されるメモリリード信号MEMRを、(C)は同じ
くメモリライト信号線8bを通して出力されるメモリラ
イト信号MEMWを、(d)は同じくデータバス7を通
して出力されるデータDを、(6)はRAM12および
比較器13に入力されるアドレスADを、(【)は比較
器13の出力Yを、(g)はRAM12へ入力されるリ
ード信号正を、(h)はRAM12へ入力されるライト
信号Wを、(翫)は双方向性ドライバ15へ入力される
方向制御信号DIRを、(J)は双方向性ドライバ15
へ入力される出力am信号百で”をそれぞれ示している
。また、第3図において、(1)はCPUIからアドレ
スバス6を通して出力されるアドレスADを、(b)は
同じくメモリリード信号線8aを通して出力されるメモ
リリード信号M P、 M Rを、(C)は同じくメモ
リライト信号線8bを通して出力されるメモリライト信
号M RM Wを、(d)はRAM12および比較P:
413に入力されるアドレスADを、10)は比較器1
3の出力Yを、(f、)はRAM12へ入力されるリー
ド信号πを、(g)はRAM12へ入力されるライト信
号Wを、(h)は双方向性ドライバ15へ入力される方
向制御信号L) I Rを、(1)は双方向性ドライバ
15へ入力される出力制御信号Cでを、(J)はI?A
M12から出力されるデータDをそれぞれ示している。
FIGS. 2 and 3 are time charts showing the operation of the microcombination unit shown in FIG. 1 in write mode and read mode. In Figure 2, (a) is CPt
Address A output from Jl through address bus 6
(b) is the memory read signal MEMR that will soon be output through the memory read signal line 8a, (C) is the memory write signal MEMW that will also be output through the memory write signal line 8b, and (d) is the same. (6) is the address AD input to the RAM 12 and the comparator 13, ([) is the output Y of the comparator 13, (g) is the lead input to the RAM 12. (h) is the write signal W input to the RAM 12, (翫) is the direction control signal DIR input to the bidirectional driver 15, (J) is the bidirectional driver 15.
In FIG. 3, (1) shows the address AD output from the CPU through the address bus 6, and (b) also shows the memory read signal line 8a. (C) is the memory write signal MRMW outputted through the memory write signal line 8b, (d) is the RAM 12 and the comparison P:
10) is the address AD input to the comparator 1.
(f,) is the read signal π input to the RAM 12, (g) is the write signal W input to the RAM 12, and (h) is the direction control input to the bidirectional driver 15. (1) is the output control signal C input to the bidirectional driver 15, (J) is I? A
Data D output from M12 is shown.

ここで、tJJ2図を参照して第1図のマイクロコンピ
ュータのライトモード時の動作を説明する。
Here, the operation of the microcomputer shown in FIG. 1 in the write mode will be explained with reference to FIG. tJJ2.

CPUIからアドレスADが出力されると、これより少
し遅れてRAM12および比較器13ヘアドレスAnが
入力される。
When the address AD is output from the CPUI, the address An is input to the RAM 12 and the comparator 13 a little later.

比較器13ヘアドレス^Dの上位ビットが入力されると
、このアドレスADの上位ビットと設定器14の出力と
が一致すれば、比較:513の出力Yがローレベルにな
り、アンドJ7’−)18.19が導通してメモリリー
ド信号M E M 11およびメモリライト信号MEM
Wがフリップフロップ25に入力されるとともにインパ
ーク16.17を通してRAM12へ入力されることに
なる。この際、CPUIから出力されるメモリリード信
号WτV正はハイレベル(インアクティブ)のままであ
り、したがって、F?AMl 2へ入力されるリード信
号正もハイレベルのままである。また、フリップフロッ
プ25はリセット状態にあるため、方向制御信号T)1
11もハイレベルのままである。
When the upper bits of the address ^D are input to the comparator 13, if the upper bits of this address AD match the output of the setter 14, the output Y of the comparator 513 becomes low level, and J7'- ) 18.19 conducts, and the memory read signal MEM11 and the memory write signal MEM
W is input to the flip-flop 25 and is also input to the RAM 12 through imparks 16 and 17. At this time, the memory read signal WτV positive output from the CPUI remains at a high level (inactive), so F? The read signal positive input to AMl 2 also remains at high level. Also, since the flip-flop 25 is in the reset state, the direction control signal T)1
11 also remains at a high level.

CPUIからなるアドレスADが出力された後、CPU
1から出力されるメモリライト信号M L、MWがロー
レベル(アクティブ)になり、これと同時にデータDが
CPU1から出力される。メモリライト信号MP、MW
がローレベルになると、これより少し遅れてRAM12
へ入力されるライト信号Wがローレベルとなる。この結
果、双方向性ドライバ15へ入力される出力制御信号O
Cがローレベル(アクティブ)となり、双方向性ドライ
バ15はCPU 1からRAM12の方向へ導通し、デ
ータ■は双方向性ドライバ15で反転されてRへMI2
のデータ人出刃端にデータDとして人力される。
After the address AD consisting of CPUI is output, the CPU
Memory write signals M L and MW output from CPU 1 become low level (active), and data D is output from CPU 1 at the same time. Memory write signal MP, MW
When becomes low level, RAM12
The write signal W input to becomes low level. As a result, the output control signal O input to the bidirectional driver 15
C becomes low level (active), the bidirectional driver 15 conducts from the CPU 1 to the RAM 12, and the data ■ is inverted by the bidirectional driver 15 and transferred to R MI2.
The data is human-powered as data D.

この後、メモリライト13号M l;、 M Wがハイ
レベル(インアクティブ)となり、これより少し遅れて
ライト信号Wがハイレベルとなり、このライトIN%W
がローレベルからハイレベルに変化するときにt?八へ
I2のアドレスADで指定された場所にデータDが書き
込まれる。
After this, memory write No. 13 Ml;, MW becomes high level (inactive), and a little later than this, the write signal W becomes high level, and this write IN%W
When changes from low level to high level, t? Data D is written to the location designated by address AD of I2.

また、ライト信号Wがハイレベルとなったことにより出
力制御信号QCがハイレベル(インアクティブ)となり
、双方向性ドライバ15が’IXVfftする。
Further, as the write signal W becomes high level, the output control signal QC becomes high level (inactive), and the bidirectional driver 15 performs 'IXVfft.

この後、ある時間経過するとCP U 1からのデータ
τの出力がなくなり、アドレスA l)もメモリ回路2
と対応しないものとなり、比較′I513の出力Yがハ
イレベルとなり、アンドゲート18,19が遮断する。
After this, after a certain period of time has passed, the data τ is no longer output from the CPU 1, and the address A1) is also output from the memory circuit 2.
The output Y of the comparison 'I513 becomes high level, and the AND gates 18 and 19 are cut off.

つぎに、第3図を参照して第1図のマイクロコンピュー
タのり−ドモード時の動作を説朋する。
Next, referring to FIG. 3, the operation of the microcomputer shown in FIG. 1 in the board mode will be explained.

CPUIからアドレスADが出力されると、これより少
し遅れてRAM12および比較器13ヘアドレスAnが
人力される。
When the address AD is output from the CPUI, the address An is input to the RAM 12 and the comparator 13 a little later.

比較113ヘアドレスADの上位ビットが入力されると
、このアドレスΔDの上位ビットと設定器13の出力と
が一致すれば、比較器13の出力Yがローレベルになり
、アンドゲート18.19が導通してメモリリード信号
MEMRおよびメモリライト信号MgMWがフリップフ
ロップ25に人力されるとともにインバータ16.17
を通してRAM12へ入力されることになる。この際、
CP LJ 1から出力されるメモリライト信号MEM
Wはハイレベル(インアクティブ)のままであり、した
がってRAM12へ入力されるライト信号Wもハイレベ
ルのままである。また、メモリリード信号MEMRがま
だハイレベル(インアクティブ)であり、フリップフロ
ップ25がリセット状態にあるため、方向制御信号DI
Rもハイレベルである。
When the upper bits of the address AD are input to the comparator 113, if the upper bits of this address ΔD match the output of the setter 13, the output Y of the comparator 13 becomes low level, and the AND gate 18.19 is turned on. The memory read signal MEMR and the memory write signal MgMW are electrically connected to the flip-flop 25 and the inverter 16.17.
It will be input to the RAM 12 through. On this occasion,
Memory write signal MEM output from CP LJ 1
W remains at a high level (inactive), and therefore the write signal W input to the RAM 12 also remains at a high level. Furthermore, since the memory read signal MEMR is still at a high level (inactive) and the flip-flop 25 is in a reset state, the direction control signal DI
R is also at a high level.

cputからアドレスADが出力された後、CPLII
から出力されるメモリリード信号MIEMRがローレベ
ル(アクティブ)になると、これより少し遅れてリード
信号正がローレベルとなり、この時点よりRAM12が
アクセスされてデータDが出力され始めるとともに、少
し遅れて、方向?t、II御信〜)o+nがローレベル
となり、さらにこの1々出力制御信号δで−がローレベ
ル(アクティブ)となり、双方向性ドライバ15がRA
M12からCPU1の方向へ導通し、データDが双方向
性ドライバ15で反転されてCP IJ lにデータπ
として入力される。
After address AD is output from cput, CPLII
When the memory read signal MIEMR output from the memory read signal MIEMR becomes low level (active), the read signal positive becomes low level a little later than this, and from this point on, the RAM 12 is accessed and data D starts to be output, and after a little delay, direction? t, II message~) o+n becomes low level, and - becomes low level (active) with this single output control signal δ, and the bidirectional driver 15 becomes RA
Conducting from M12 to CPU1, data D is inverted by bidirectional driver 15 and data π is transferred to CP IJ l.
is entered as .

cputはメモリリード信号M E M IJをハイレ
ベル(インアクティブ)に変化する直前にデータDを内
部レジスタに読み込む、メモリリード信号M Fi M
 Rがハイレベルとなると、これより少し遅れてリード
信号I?がハイレベルになる。この結果、出力制御信号
OCがハイレベルとなって双方向性ドライバ15が遮断
する。そして、出力制御信号QCがハイレベルとなるこ
とによりフリップフロップ25がリセットされ、方向制
御信号DIRがハイレベルに復帰する。
cput reads data D into the internal register immediately before changing the memory read signal M E M IJ to high level (inactive), a memory read signal M Fi M
When R becomes high level, a little later than this, the read signal I? becomes high level. As a result, the output control signal OC becomes high level and the bidirectional driver 15 is cut off. Then, when the output control signal QC becomes high level, the flip-flop 25 is reset, and the direction control signal DIR returns to high level.

そして、この後RAM12からのデータDの出力が停止
する。
Thereafter, the output of data D from the RAM 12 is stopped.

この後、アドレスADがメモリ回路2と対応しないもの
となり、比較器13の出力Yがハイレベルとなり、ゲー
)18.19が遮断する。
After this, the address AD does not correspond to the memory circuit 2, the output Y of the comparator 13 becomes high level, and the gates 18 and 19 are cut off.

なお、フリップフロップ25はゲート19の出力でもリ
セットされる。
Note that the flip-flop 25 is also reset by the output of the gate 19.

この実施例は、CPUIから出力されるメモリリード信
号MEMRがアクティブとなったタイミング(立下がり
)でフリ7プフロツプ25をセットし、フリップフロッ
プ25のセット状態の出力を双方向性ドライバ15に対
しRAM12からCPUIへ向かう方向を導通方向とし
て指定するための方向制御信号DIR(ローレベル)と
して与えるとともに、フリップフロップ25のリセット
状態の出力を双方向性ドライバ15に対しCPU1から
RAM12へ向かう方向を導通方向として指定するため
の方向制御信号DI+? (ハイレベル)として与え、
かつフリップフロップ25からセット状態の出力が発生
しかつメモリリード信号πτM R、/+<アクティブ
(ローレベル)となったときとフリップフロップ25か
らリセット状態の出力が発生しかつメモリライト信号M
 L(M Wがアクティブ(ローレベル)となったとき
とにゲート回路26が出力をアクティブにして双方向性
ドライバ15に対し導通させるための出力制御信号OC
として与え、上記ゲート回路26の出力がインアクティ
ブとなった時にフリップフロップ25をリセットするよ
うにしているため、リードモード時において読み出しの
ための双方向性ドライバ15の導通方向をアクティブ(
ローレベル)の出力制御信号丁τか双方向性ドライバ1
5に与えられる前に確定するとともに出力制御信号Sで
かインアクティブ(ハイレベル)となって双方向性ドラ
イバ15が遮断した後まで導通方向値定状態を保持する
ことができる。したがって、リードモード時には双方向
性ドライバ15がRAM12からCPUIへ向かう方向
にしか導通せず、従来例のようにRAM12からデータ
Dが出力されているのに双方向性ドライバ15がcpu
 tからRAM12へ向かう方向に導通することはなく
、データバス7上でのデータの衝突を防止でき、データ
バス7上での発振現象を防止することができ、アクセス
を正常に行える。
In this embodiment, the flip-flop 25 is set at the timing (falling edge) when the memory read signal MEMR output from the CPUI becomes active, and the output of the set state of the flip-flop 25 is sent to the bidirectional driver 15 to the RAM 12. The direction control signal DIR (low level) is provided to specify the direction from the CPU 1 to the CPU as the conduction direction, and the output of the reset state of the flip-flop 25 is sent to the bidirectional driver 15 to specify the direction from the CPU 1 to the RAM 12 as the conduction direction. Direction control signal DI+? (high level),
And when the flip-flop 25 generates a set state output and the memory read signal πτM R, /+<active (low level), the flip-flop 25 generates a reset state output and the memory write signal M
When L(MW becomes active (low level), the gate circuit 26 activates the output and makes the output conductive to the bidirectional driver 15.
Since the flip-flop 25 is reset when the output of the gate circuit 26 becomes inactive, the conduction direction of the bidirectional driver 15 for reading is set to active (
Low level) output control signal τ or bidirectional driver 1
It is possible to maintain the conduction direction value in a fixed state until the output control signal S becomes inactive (high level) and the bidirectional driver 15 is cut off. Therefore, in the read mode, the bidirectional driver 15 conducts only in the direction from the RAM 12 to the CPU, and even though data D is output from the RAM 12 as in the conventional example, the bidirectional driver 15
Since there is no conduction in the direction from t to the RAM 12, data collision on the data bus 7 can be prevented, oscillation phenomenon on the data bus 7 can be prevented, and access can be performed normally.

なお、上記実施例では、周辺素子がRAM12である場
合について説明したが、ROMでありてもよく、またメ
モリ以外の入出力素子等であってもよい。
In the above embodiment, a case has been described in which the peripheral element is the RAM 12, but it may be a ROM or an input/output element other than a memory.

〔発明の効果〕〔Effect of the invention〕

この発明のデータバス制御装置によれば、CPUから出
力されるメモリリード信号がアクティブとなったタイミ
ングでフリップフロップをセットし、フリップフロップ
のセット状態の出力を双方向性ドライバに対し周辺回路
からCPUへ向かう方向を導通方向としてtrt定する
ための方向制御信号として与えるとともに、フリップフ
ロップのリセット状態の出力を双方向性ドライバに対し
CPUから周辺回路へ向かう方向を導通方向として指定
するための方向制御信号として与え、かつフリップフロ
ップからのセット状態の出力が発生しかつメモリリード
信号がアクティブとなったときとフリップフロップから
リセット状態の出力が発生しかつメモリライト信号がア
クティブとなった時とにゲート回路が出力をアクティブ
にして双方向性ドライバに対し導通させるための出力制
御信号として与え、上記ゲート回路の出力がインアクテ
ィブとなった時にフリップフロップをリセットするよう
にしているため、リードモード時において読み出しのた
めの双方向性ドライバの導通方向を双方向性ドライバに
与えられる出力制御信号がアクティブとなる前に確定す
るとともに出力制御信号がインアクティブとなって双方
向性ドライバが遮断した後まで導通方向確定状態を保持
することができる。したがって、リードモード時には双
方向性ドライバが周辺回路からCPUへ向かう方向にし
か導通せず、従来例のように周辺回路からデータが出力
されているのに双方向性ドライバがCpuから周辺回路
へ向かう方向に導通することはなく、データバス上での
データの衝突を防止でき、データバス上での発振現象を
防止することができ
According to the data bus control device of the present invention, the flip-flop is set at the timing when the memory read signal output from the CPU becomes active, and the output of the set state of the flip-flop is sent to the bidirectional driver from the peripheral circuit to the CPU. The direction control signal is given as a direction control signal to determine the direction toward trt as the conduction direction, and the direction control signal is used to specify the reset state output of the flip-flop to the bidirectional driver in the direction from the CPU to the peripheral circuit as the conduction direction. The gate is applied as a signal, and when a set state output from the flip-flop occurs and the memory read signal becomes active, and when a reset state output occurs from the flip-flop and the memory write signal becomes active. The circuit activates the output and gives it as an output control signal to make it conductive to the bidirectional driver, and the flip-flop is reset when the output of the gate circuit becomes inactive, so in read mode. The conduction direction of the bidirectional driver for reading is determined before the output control signal applied to the bidirectional driver becomes active, and the conduction continues until the output control signal becomes inactive and the bidirectional driver is cut off. A direction-determined state can be maintained. Therefore, in the read mode, the bidirectional driver conducts only in the direction from the peripheral circuit to the CPU, and even though data is being output from the peripheral circuit as in the conventional example, the bidirectional driver conducts from the CPU to the peripheral circuit. There is no conduction in the direction, preventing data collision on the data bus, and preventing oscillation on the data bus.

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

第1図はこの発明の一実施例を示すブロック図、第2図
はそのライトモード時のタイムチャート、第3図は同じ
くそのリードモード時のタイムチャート、第4図は従来
のマイクロコンピュータの一例の概略ブロック図、第5
図はバスの構成を示すブロック図、第6図はそのタイム
チャート、第7図は第4図の具体的な構成を示すブロッ
ク図、第8図および第9図はその動作を示すタイムチャ
ートである。 1・・・CPU、7・・・データバス、12・・・RA
M。 15・・・双方向性ドライバ、25・・・フリフブフロ
ソブ、26・・・ゲート回路 第4図 第5図 A     /%   /%     /鈎−1)  
、Ω  υ  ・0 第8図
Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is a time chart in its write mode, Fig. 3 is a time chart in its read mode, and Fig. 4 is an example of a conventional microcomputer. Schematic block diagram of 5th
The figure is a block diagram showing the configuration of the bus, Figure 6 is its time chart, Figure 7 is a block diagram showing the specific configuration of Figure 4, and Figures 8 and 9 are time charts showing its operation. be. 1...CPU, 7...Data bus, 12...RA
M. 15...Bidirectional driver, 25...Flif-buf flow control, 26...Gate circuit (Figure 4) Figure 5A /% /% /hook-1)
, Ω υ ・0 Fig. 8

Claims (1)

【特許請求の範囲】 CPUと周辺素子とを接続する双方向のデータバス中に
介挿した双方向性ドライバと、 前記CPUから出力されるメモリリード信号がアクティ
ブとなったタイミングでセットされセット状態の出力を
前記双方向性ドライバに対し前記周辺素子から前記CP
Uへ向かう方向を導通方向として指定するための方向制
御信号として与えるとともにリセット状態の出力を前記
双方向性ドライバに対し前記CPUから前記周辺素子へ
向かう方向を導通方向として指定するための方向制御信
号として与えるフリップフロップと、 前記フリップフロップからセット状態の出力が発生しか
つ前記メモリリード信号がアクティブとなったときおよ
び前記フリップフロップからリセット状態の出力が発生
しかつ前記CPUから出力されるメモリライト信号がア
クティブとなったときに出力をアクティブにして前記双
方向性ドライバに対し導通させるための出力制御信号と
して与えるとともにこの出力がインアクティブとなった
時に前記フリップフロップをリセットするゲート回路と
を備えたデータバス制御装置。
[Claims] A bidirectional driver inserted in a bidirectional data bus that connects a CPU and peripheral elements, and a set state that is set at the timing when a memory read signal output from the CPU becomes active. output from the peripheral element to the bidirectional driver to the CP
A direction control signal is provided as a direction control signal for specifying a direction toward U as a conduction direction, and a direction control signal for specifying a reset state output to the bidirectional driver as a direction from the CPU toward the peripheral element. and a memory write signal output from the CPU when a set state output is generated from the flip-flop and the memory read signal becomes active, and a reset state output is generated from the flip-flop. a gate circuit that activates an output when the output becomes active and provides it as an output control signal for making the bidirectional driver conductive, and resets the flip-flop when the output becomes inactive. Data bus controller.
JP2538387A 1987-02-05 1987-02-05 Data bus controller Pending JPS63192149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2538387A JPS63192149A (en) 1987-02-05 1987-02-05 Data bus controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2538387A JPS63192149A (en) 1987-02-05 1987-02-05 Data bus controller

Publications (1)

Publication Number Publication Date
JPS63192149A true JPS63192149A (en) 1988-08-09

Family

ID=12164341

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2538387A Pending JPS63192149A (en) 1987-02-05 1987-02-05 Data bus controller

Country Status (1)

Country Link
JP (1) JPS63192149A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6898658B2 (en) * 2001-12-27 2005-05-24 Koninklijke Philips Electronics N.V. Method to prevent net update oscillation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6898658B2 (en) * 2001-12-27 2005-05-24 Koninklijke Philips Electronics N.V. Method to prevent net update oscillation

Similar Documents

Publication Publication Date Title
KR101496072B1 (en) Integrated circuit with programmable circuitry and an embedded processor system
US5021950A (en) Multiprocessor system with standby function
JP2537493B2 (en) First-in, first-out data memory with reduced delay
JP5231393B2 (en) Power OK transmission for multi-voltage chips
JPS61156358A (en) Bus converter
US20080178024A1 (en) Multilayered bus system
US7725621B2 (en) Semiconductor device and data transfer method
TW574692B (en) Refresh control method of semiconductor memory device and semiconductor memory device comprising the same control method
US9218306B2 (en) Memory sharing circuit employing a buffered address and data bus and preventing bus collision
JPS6217783B2 (en)
US7007181B2 (en) Microcontroller
JPS63192149A (en) Data bus controller
JPS6043546B2 (en) Data transfer error handling method
JP2011040423A (en) Semiconductor device
JP2003022670A (en) Semiconductor integrated circuit
JP3408262B2 (en) Digital circuit and method of accessing digital circuit with external elements
KR100436098B1 (en) Method and apparatus for accessing a chip-selectable device in a data processing system
US6822922B2 (en) Clock synchronous circuit
JP2664144B2 (en) Multiplexing device switching method and device
CN117498856B (en) Heterogeneous dual-mode redundancy timer, chip and vehicle
JP2723765B2 (en) Programmable logic array and microcomputer using the same
JP3266610B2 (en) DMA transfer method
JP3310482B2 (en) Microcomputer
JPH09311812A (en) Microcomputer
JP2552316B2 (en) CMOS semiconductor integrated circuit