JPH0454660A - Data transfer controller - Google Patents
Data transfer controllerInfo
- Publication number
- JPH0454660A JPH0454660A JP16614890A JP16614890A JPH0454660A JP H0454660 A JPH0454660 A JP H0454660A JP 16614890 A JP16614890 A JP 16614890A JP 16614890 A JP16614890 A JP 16614890A JP H0454660 A JPH0454660 A JP H0454660A
- Authority
- JP
- Japan
- Prior art keywords
- response signal
- data transfer
- signal
- mpu
- true
- 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
Links
Landscapes
- Information Transfer Systems (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
Description
本発明は、マイクロコンピュータを構成するマイクロプ
ロセッサと周辺装置との間におけるデータ転送制御装置
に関する。The present invention relates to a data transfer control device between a microprocessor and peripheral devices constituting a microcomputer.
従来、マイクロコンピュータを構成するマイクロプロセ
ッサ(以下rMPU」という)が周辺装置の例えば、R
AMとの間でデータ転送を行う際、第3図に示したよう
に、先ず、MPUによりRAMがアクセス(セレクト信
号及びリード/ライト信号がRAMに到達)される。次
に、MPUとRAMとの間のリード/ライトに必要な時
間が予め設定されたタイマ回路のタイムアツプ後、RA
MはMPUに対してデータ転送の完了を知らせる応答信
号を出力する。そして、MPUは応答イコ号を認識する
と前サイクルの処理を終了させ、次サイクルの処理に移
る。Conventionally, a microprocessor (hereinafter referred to as rMPU) constituting a microcomputer has been used as a peripheral device such as R
When data is transferred to/from the AM, the MPU first accesses the RAM (the select signal and the read/write signal reach the RAM), as shown in FIG. Next, after the timer circuit, which is set in advance for the time required for reading/writing between the MPU and the RAM, has timed up, the RA
M outputs a response signal to the MPU to notify the completion of data transfer. Then, when the MPU recognizes the response equal sign, it ends the processing of the previous cycle and moves on to the processing of the next cycle.
上記応答信号はサイクル終了時、周辺装置にてオフされ
るセレクト信号に基づいてオフされMPUに伝達される
。
この応答信号のオフは、正確なデータ転送を行うために
は、次サイクルのMPUの応答信号の認識タイミングで
認識されないようにする必要がある。
ところが、MPU、!:周辺装置とが離れて接続されて
いるとデータ転送途中に遅延が存在することになり、周
辺装置で応答信号がオフとなってもMPUで即、オフと
ならないことになる。
従って、MPUと周辺装置とは離す距離に制限を受ける
ことになる。
又、次サイクルのMPUの応答信号の認識タイミングに
おいて、周辺装置から遅延した前サイクルの応答信号が
入っているというような場合には、正常なデータ転送が
できないという問題があった。
本発明は、上記の課題を解決するために成されたもので
あり、その目的とするところは、MPUと周辺装置とが
離れて接続されておりデータ転送途中に遅延が存在して
いても、MPUと周辺装置との間のデータ転送が正常に
行えるデータ転送制御装置を提供することである。At the end of the cycle, the response signal is turned off based on a select signal turned off in the peripheral device and transmitted to the MPU. In order to perform accurate data transfer, it is necessary to prevent the turning off of this response signal from being recognized at the recognition timing of the response signal of the MPU in the next cycle. However, MPU! : If the peripheral device is connected far away, there will be a delay during data transfer, and even if the response signal is turned off in the peripheral device, it will not be turned off immediately in the MPU. Therefore, the distance between the MPU and peripheral devices is limited. Further, there is a problem in that normal data transfer cannot be performed if a delayed response signal from a peripheral device from a previous cycle is received at the recognition timing of the MPU's response signal for the next cycle. The present invention has been made to solve the above problems, and its purpose is to solve the problem even if the MPU and peripheral devices are connected apart and there is a delay during data transfer. An object of the present invention is to provide a data transfer control device that can normally transfer data between an MPU and peripheral devices.
上記課題を解決するための発明の構成は、MPUと周辺
装置との間で該MPU近傍に配設されるデータ転送制御
装置であって、前記周辺装置から出力され、前記MPU
が次サイクルの処理に移るためのデータ転送の完了を知
らせる応答信号を入力し、その応答信号の応答完了状態
を示すレベルへの遷移に同期してレベルが遷移される真
の応答信号を発生させる真の応答信号発生手段と、この
真の応答信号発生手段で発生された真の応答信号を前記
MPUの処理サイクルの同期をとるためのサイクルスタ
ート信号の発生タイミングに同期して前記応答信号の応
答完了状態を示すレベルと反対の初期レベルに遷移させ
前記MPUに出力する反転出力手段とにて構成されるデ
ータ転送誤り防止回路を備えたことを特徴とする。The configuration of the invention for solving the above problem is a data transfer control device disposed near the MPU between an MPU and a peripheral device, the data transfer control device being configured to transfer data from the peripheral device to the MPU.
inputs a response signal that indicates the completion of data transfer to move on to the next cycle of processing, and generates a true response signal whose level changes in synchronization with the response signal's transition to the level indicating the response completion state. A true response signal generating means, and a response of the true response signal generated by the true response signal generating means in synchronization with the generation timing of a cycle start signal for synchronizing the processing cycle of the MPU. The present invention is characterized in that it includes a data transfer error prevention circuit constituted by an inverting output means for outputting to the MPU the transition to an initial level opposite to the level indicating the completion state.
データ転送誤り防止回路の真の応答信号発生手段は、周
辺装置から出力され、MPUが次サイクルの処理に移る
ためのデータ転送の完了を知らせる応答信号を入力し、
その応答信号の応答完了状態を示すレベルへの遷移に同
期してレベルが遷移される真の応答信号を発生させる。
そして、データ転送誤り防止回路の信号反転手段は真の
応答信号発生手段で発生された真の応答信号を上記MP
Uの処理サイクルの同期をとるためのサイクルスタート
信号の発生タイミングに同期して上記応答信号の応答完
了状態を示すレベルと反対の初期レベルに遷移させ上記
MPUに出力する。
即ち、MPUと周辺装置との間が離れて接続されており
周辺装置からの応答信号が遅延していても、データ転送
誤り防止回路により前サイクルの応答信号がMPUの次
サイクルの認識タイミングで認識されることはない。The true response signal generating means of the data transfer error prevention circuit inputs a response signal output from the peripheral device and informing the MPU of the completion of data transfer for moving on to the next cycle of processing;
A true response signal whose level changes in synchronization with the transition of the response signal to a level indicating a response completion state is generated. Then, the signal inversion means of the data transfer error prevention circuit converts the true response signal generated by the true response signal generation means into the MP
In synchronization with the generation timing of a cycle start signal for synchronizing the processing cycle of U, the response signal is made to transition to an initial level opposite to the level indicating the response completion state and is output to the MPU. In other words, even if the MPU and the peripheral device are connected far apart and the response signal from the peripheral device is delayed, the data transfer error prevention circuit will recognize the response signal of the previous cycle at the recognition timing of the next cycle by the MPU. It will not be done.
以下、本発明を具体的な実施例に基づいて説明する。
第1図は本発明に係るデータ転送誤り防止回路を備えた
データ転送制御装置を示したブロックダイヤグラムであ
る。
尚、実施例において、名称等の上に線が引かれた信号は
そのレベルが低い時に有効となるロー・アクティブな信
号であることを示している。
マイクロコンビエータを構成するMPUl0と周辺装置
20の例えば、RAM21とが離れて接続されており、
MPUl0とRAM21きの間におけるデータ転送を示
している。
これらMPUl0とRAM21との間はアドレスバス及
びデータバスにて接続され、又、セレクト信号線、応答
信号線、真の応答信号線、リード/ライト信号線等にて
接続されている。そして、MPUl0の近傍で、応答信
号線と真の応答信号線との間にはデータ転送誤り防止回
路30が設けられている。
上記データ転送誤り防止回路30はセット/リセット付
フリップフロップ回路(以下「フリップフロップ回路」
という)31と負論理のOR回路(以下FOR回路」と
いう)32とインバータ33.34とから構成されてい
る。
そして、RAM21からの応答信号線はフリップフロッ
プ回路31のD端子及びOR回路32の一方の入力端子
に接続されている。又、RAM21からの応答信号線は
インバータ33を介してフリップフロップ回路31のS
端子に接続されている。又、フリップフロップ回路31
のQ端子はOR回路32の他方の入力端子に接続されて
いる。
更に、フリップフロップ回路31のCK端子にはMPU
l0の処理サイクルの同期をとるためのサイクルスター
ト信号を伝達する外部サイクルスタート信号線がMPU
l0からインバータ34を介して接続されている。又、
OR回路32の出力端子は真の応答信号線を介してMP
U、10に接続されている。
尚、フリップフロップ回路31のR端子には基準電圧V
。Cが印加され、Q端子は空き端子となっている。
上記フリップフロップ回路31はCK端子に入力される
信号の立ち下がりタイミングにて、そのD端子に入力さ
れる信号はG端子から出力される。
又、MPUl0と周辺装置20のRAM21とが離れて
いるので、その間には遅延が存在している。
次に、本発明のデータ転送制御装置におけるMPUl0
と周辺装置20のRAM21との動作タイミングを示し
た第2図を参照して説明する。
外部サイクルスタート信号はMPUl0の処理サイクル
の同期をとるため各処理サイクルの最初に一度出力され
る。
RAM21からMPUl0にデータ転送の完了を知らせ
る応答信号がデータ転送誤り防止回路30に入力すると
、その応答信号の応答完了状態を示すレベルへの遷移に
同期してデータ転送誤り防止回路30からの出力信号の
レベルは遷移する。
そして、この出力信号は外部サイクルスタート信号の有
効となる立ち下がりタイミングにてRAM21からの応
答信号が入力している場合には直ちに初期レベルに遷移
する。
本実施例においては、データ転送誤り防止回路30のフ
リップフロップ回路31とOR回路32とを接続した信
号線の応答信号イネーブル信号のレベルが低い場合には
、RAM21からの応答信号を真の応答信号としてMP
−UIOに伝達する。
そして、上記応答信号イネーブル信号が低レベルから高
レベルへと遷移すると、RAM21からの応答信号をM
PUl0に伝達しない。
上記応答信号イネーブル信号のレベルの遷移は、データ
転送誤り防止回路30にて達成される。
前サイクルのRAM21からの応答信号が遅延してデー
タ転送誤り防止回路30に入力されているとする。
この時、外部サイクルスタート信号が高レベルのままで
次サイクルの処理の最初の外部サイクルスタート信号が
出力されなければ、フリップフロップ回路31からの応
答信号イネーブル信号は低レベルのままである。従って
、RAM21からの応答信号は真の応答信号としてMP
Ul0に伝達される。
そして、次サイクルの外部サイクルスタート信号が出力
されると、フリップフロップ回路31からの応答信号イ
ネーブル信号は低レベルから高レベルへと遷移する。す
ると、RAM21からの遅延した応答信号がデータ転送
誤り防止回路30に入力していても、上記応答信号イネ
ーブル信号の遷移に同期して真の応答信号は初期レベル
である高レベルに遷移される。従って、上記遅延した応
答信号がMPUl0に伝達されることはない。
このようにして、データ転送誤り防止回路30からの出
力信号が真の応答信号として真の応答信号線を介してM
PUl0に伝達される。
上述したように、本発明のデータ転送制御装置を用いる
ことにより、MPUl0と周辺装置20とを離す距離に
制限を受けることなく、MPU 10と周辺装置20と
の間の正常なデータ転送が可能となる。The present invention will be described below based on specific examples. FIG. 1 is a block diagram showing a data transfer control device equipped with a data transfer error prevention circuit according to the present invention. In the embodiment, a signal with a line drawn above the name, etc. indicates that it is a low active signal that becomes effective when its level is low. The MPUl0 constituting the micro combinator and the peripheral device 20, for example, the RAM 21, are connected separately,
It shows data transfer between MPU10 and RAM21. The MPU10 and the RAM 21 are connected by an address bus and a data bus, and also by a select signal line, a response signal line, a true response signal line, a read/write signal line, and the like. A data transfer error prevention circuit 30 is provided near MPU10 between the response signal line and the true response signal line. The data transfer error prevention circuit 30 is a set/reset flip-flop circuit (hereinafter referred to as a "flip-flop circuit").
) 31, a negative logic OR circuit (hereinafter referred to as "FOR circuit") 32, and inverters 33 and 34. The response signal line from the RAM 21 is connected to the D terminal of the flip-flop circuit 31 and one input terminal of the OR circuit 32. Further, the response signal line from the RAM 21 is connected to the S of the flip-flop circuit 31 via the inverter 33.
connected to the terminal. Moreover, the flip-flop circuit 31
The Q terminal of is connected to the other input terminal of the OR circuit 32. Furthermore, the MPU is connected to the CK terminal of the flip-flop circuit 31.
The external cycle start signal line that transmits the cycle start signal for synchronizing the processing cycle of l0 is connected to the MPU.
It is connected from l0 via an inverter 34. or,
The output terminal of the OR circuit 32 is connected to MP via the true response signal line.
It is connected to U,10. Note that the reference voltage V is applied to the R terminal of the flip-flop circuit 31.
. C is applied, and the Q terminal is an empty terminal. The flip-flop circuit 31 outputs the signal input to the D terminal from the G terminal at the falling timing of the signal input to the CK terminal. Furthermore, since the MPU10 and the RAM 21 of the peripheral device 20 are separated, there is a delay between them. Next, MPU10 in the data transfer control device of the present invention
This will be explained with reference to FIG. 2, which shows the operation timing of the RAM 21 of the peripheral device 20. The external cycle start signal is output once at the beginning of each processing cycle to synchronize the processing cycles of MPU10. When a response signal informing the data transfer completion from the RAM 21 to the MPU10 is input to the data transfer error prevention circuit 30, an output signal from the data transfer error prevention circuit 30 is output in synchronization with the transition of the response signal to the level indicating the response completion state. The level of changes. This output signal immediately transitions to the initial level if the response signal from the RAM 21 is input at the falling timing when the external cycle start signal becomes valid. In this embodiment, when the level of the response signal enable signal on the signal line connecting the flip-flop circuit 31 and the OR circuit 32 of the data transfer error prevention circuit 30 is low, the response signal from the RAM 21 is converted into a true response signal. as MP
- communicate to UIO. Then, when the response signal enable signal transitions from a low level to a high level, the response signal from the RAM 21 is
Not transmitted to PU10. The level transition of the response signal enable signal is achieved by the data transfer error prevention circuit 30. Assume that the response signal from the RAM 21 in the previous cycle is input to the data transfer error prevention circuit 30 with a delay. At this time, if the external cycle start signal remains at a high level and the first external cycle start signal for the next cycle is not output, the response signal enable signal from the flip-flop circuit 31 remains at a low level. Therefore, the response signal from RAM 21 is treated as a true response signal by MP.
It is transmitted to Ul0. Then, when the external cycle start signal of the next cycle is output, the response signal enable signal from the flip-flop circuit 31 changes from low level to high level. Then, even if the delayed response signal from the RAM 21 is input to the data transfer error prevention circuit 30, the true response signal is transitioned to a high level, which is the initial level, in synchronization with the transition of the response signal enable signal. Therefore, the delayed response signal is not transmitted to MPU10. In this way, the output signal from the data transfer error prevention circuit 30 is transmitted as a true response signal to M via the true response signal line.
It is transmitted to PU10. As described above, by using the data transfer control device of the present invention, normal data transfer between the MPU 10 and the peripheral device 20 is possible without being limited by the distance between the MPU 10 and the peripheral device 20. Become.
本発明は、周辺装置から出力され、MPUが次サイクル
の処理に移るためのデータ転送の完了を知らせる応答信
号を入力し、その応答信号の応答完了状態を示すレベル
への遷移に同期してレベルが遷移される真の応答信号を
発生させる真の応答信号発生手段と、この真の応答信号
発生手段で発生された真の応答信号をMPUの処理サイ
クルの同期をとるためのサイクルスタート信号の発生タ
イミングに同期して応答信号の応答完了状態を示すレベ
ルと反対の初期レベルに遷移させMPUに出力する反転
出力手段とにて構成されるデータ転送誤り防止回路を備
えており、MPUと周辺装置との間のデータ転送におけ
る遅延にて生じる正しくない応答信号がMPUの次サイ
クルの認識タイミングで認識されるという不都合が防止
される。
従って、接続距離が自由に設定されたMPUと周辺装置
との間で正常なデータ転送を行うことが可能となるとい
う効果がある。The present invention inputs a response signal that is output from a peripheral device and informs the MPU of the completion of data transfer for moving on to the next cycle of processing, and raises the level in synchronization with the transition of the response signal to a level indicating a response completion state. A true response signal generation means for generating a true response signal to which the true response signal is transitioned, and generation of a cycle start signal for synchronizing the processing cycle of the MPU with the true response signal generated by the true response signal generation means. It is equipped with a data transfer error prevention circuit consisting of an inverting output means that synchronizes with the timing and transitions the response signal to an initial level opposite to the level indicating the response completion state and outputs it to the MPU. This prevents the inconvenience that an incorrect response signal caused by a delay in data transfer during the process is recognized at the recognition timing of the next cycle of the MPU. Therefore, there is an effect that normal data transfer can be performed between the MPU and peripheral devices whose connection distances are freely set.
第1図は本発明の具体的な一実施例に係るデータ転送制
御装置のデータ転送誤り防止回路を示したブロックダイ
ヤグラム。第2図は本発明のブタ転送制御装置における
MPUと周辺装置との動作タイミング図。第3図は従来
のデータ転送制御装置を示したブロックダイヤグラムで
ある。
10−MPU 20 周辺装置 21−RAM30
°データ転送誤り防止回路
31−・−フリップフロップ回路(セット/リセット付
フリップフロップ回路)
32−OR回路(負論理のOR回路)
33.34・°−インバータFIG. 1 is a block diagram showing a data transfer error prevention circuit of a data transfer control device according to a specific embodiment of the present invention. FIG. 2 is an operation timing diagram of the MPU and peripheral devices in the pig transfer control device of the present invention. FIG. 3 is a block diagram showing a conventional data transfer control device. 10-MPU 20 Peripheral device 21-RAM30
°Data transfer error prevention circuit 31--Flip-flop circuit (Flip-flop circuit with set/reset) 32-OR circuit (Negative logic OR circuit) 33.34-°-Inverter
Claims (1)
ロセッサ近傍に配設されるデータ転送制御装置であって
、 前記周辺装置から出力され、前記マイクロプロセッサが
次サイクルの処理に移るためのデータ転送の完了を知ら
せる応答信号を入力し、 その応答信号の応答完了状態を示すレベルへの遷移に同
期してレベルが遷移される真の応答信号を発生させる真
の応答信号発生手段と、 この真の応答信号発生手段で発生された真の応答信号を
前記マイクロプロセッサの処理サイクルの同期をとるた
めのサイクルスタート信号の発生タイミングに同期して
前記応答信号の応答完了状態を示すレベルと反対の初期
レベルに遷移させ前記マイクロプロセッサに出力する反
転出力手段とにて構成されるデータ転送誤り防止回路を
備えたことを特徴とするデータ転送制御装置。[Scope of Claims] A data transfer control device disposed near the microprocessor between a microprocessor and a peripheral device, wherein the data transfer control device is configured to control data transfer between a microprocessor and a peripheral device, the data transfer control device being configured to transfer data from the peripheral device to the microprocessor in order to move on to the next cycle of processing. a true response signal generating means for generating a true response signal whose level is changed in synchronization with the transition of the response signal to a level indicating a response completion state; The true response signal generated by this true response signal generation means is synchronized with the generation timing of a cycle start signal for synchronizing the processing cycle of the microprocessor, and is opposite to the level indicating the response completion state of the response signal. 1. A data transfer control device comprising: a data transfer error prevention circuit configured with an inverting output means for transitioning the signal to an initial level and outputting the signal to the microprocessor.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16614890A JPH0454660A (en) | 1990-06-25 | 1990-06-25 | Data transfer controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16614890A JPH0454660A (en) | 1990-06-25 | 1990-06-25 | Data transfer controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0454660A true JPH0454660A (en) | 1992-02-21 |
Family
ID=15825948
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16614890A Pending JPH0454660A (en) | 1990-06-25 | 1990-06-25 | Data transfer controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0454660A (en) |
-
1990
- 1990-06-25 JP JP16614890A patent/JPH0454660A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2641276B2 (en) | Two-stage synchronizer | |
| US4464715A (en) | Memory accessing method | |
| JPS62131631A (en) | Digital self-running clock synchronous circuit | |
| JP2624388B2 (en) | DMA device | |
| JPH03122745A (en) | Dma control system | |
| CN100371911C (en) | Controller and electronics for synchronous memory | |
| JPH03144990A (en) | Memory device | |
| JP2505878B2 (en) | Multibus system | |
| KR100400933B1 (en) | Apparatus for synchronization between CPU and external devices in keyphone system | |
| JP2813035B2 (en) | Contact input / output device | |
| JPS622348B2 (en) | ||
| JPH049350B2 (en) | ||
| JPS60211545A (en) | microcomputer system | |
| JPH11273380A (en) | Lsi operation mode setting signal fetching method and lsi with mode signal fetching function | |
| KR960008562Y1 (en) | Data access relay apparatus | |
| KR100213801B1 (en) | Interrupt generating circuit | |
| JPH03266049A (en) | Extension memory device | |
| JPH01166155A (en) | Memory access control circuit | |
| JPH04344554A (en) | Serial data communication equipment | |
| JPH0410045A (en) | Microprocessor | |
| JPS61216074A (en) | Direct memory access system | |
| JPS63223854A (en) | Set-up time control system | |
| JPH0199155A (en) | Ready signal generation system | |
| JPH01232819A (en) | Asynchronous signal latch circuit | |
| JPH0472260B2 (en) |