JPS61180357A - Data latch circuit - Google Patents

Data latch circuit

Info

Publication number
JPS61180357A
JPS61180357A JP1987885A JP1987885A JPS61180357A JP S61180357 A JPS61180357 A JP S61180357A JP 1987885 A JP1987885 A JP 1987885A JP 1987885 A JP1987885 A JP 1987885A JP S61180357 A JPS61180357 A JP S61180357A
Authority
JP
Japan
Prior art keywords
latch
data
control signal
register
transmission
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.)
Granted
Application number
JP1987885A
Other languages
Japanese (ja)
Other versions
JPH0560134B2 (en
Inventor
Shigeki Kumagai
熊谷 茂樹
Yoshito Nakamura
義人 中村
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.)
Toshiba Corp
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics Corp
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 Toshiba Corp, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP1987885A priority Critical patent/JPS61180357A/en
Publication of JPS61180357A publication Critical patent/JPS61180357A/en
Publication of JPH0560134B2 publication Critical patent/JPH0560134B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4208Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being a system bus, e.g. VME bus, Futurebus, Multibus
    • G06F13/4217Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being a system bus, e.g. VME bus, Futurebus, Multibus with synchronous protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)
  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To transfer surely the data outputted from the transmission side to the reception side by adding plural latch registers and latch control circuits to a system where data are transferred from the transmission side without detecting the reception timing of the reception side. CONSTITUTION:The 1st latch register 21 latches temporarily the data which are transferred to a peripheral device 20 from a transmission register 11 of a CPU10 serving as the transmission side. In such a case, the latching operation is performed synchronously with the transmission control signal WR outputted from an MPU 14 of the CPU 10 via an I/O port 15. While the 2nd latch register 22 latches the data outputted from the register 21 and outputs them to the device 20. Here the latching operation is carried out synchronously with the latch control signal L outputted from a latch control circuit 23. Thus the CPU 10 can transfer surely the transmission data synchronous with the signal WR to the reception side without detecting the reception timing of the device 20.

Description

【発明の詳細な説明】 C発明の技術分野] 本発明は、データの送受信システムに使用されるデータ
ラッチ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a data latch circuit used in a data transmission/reception system.

[発明の技術的背景とその問題点] 従来、ホストコンピュータから周辺装置へデータを転送
する場合、第8図に示すようなデータラッチ回路による
転送方式(ハンドシェイク方式)がある。この方式では
、ホストコンピュータ(以下CPLIと称す)10であ
る送信側の送信レジスタ11から出力されるデー★は、
ラッチレジスタ12に一時ラッチされる。CP U 1
0は、受信側である周辺装置13へ転送すべきデータを
作成するマイクロプロセッサ(以下MPUと称す)14
を備えている。
[Technical Background of the Invention and Problems Therewith] Conventionally, when transferring data from a host computer to a peripheral device, there is a transfer method (handshake method) using a data latch circuit as shown in FIG. In this method, the data ★ output from the transmission register 11 on the transmission side, which is the host computer (hereinafter referred to as CPLI) 10, is
It is temporarily latched in the latch register 12. CPU 1
0 is a microprocessor (hereinafter referred to as MPU) 14 that creates data to be transferred to the peripheral device 13 on the receiving side.
It is equipped with

M P U 14は、転送データを送信レジスタ11へ
出力すると共に、送信制御信号(書込み制御信号)Aを
I10ポート15aを通じて出力する。ラッチレジスタ
12は、I10ポート15aから出力される送信制御信
号A(「0」が有意信号)に同期して、送信レジスタ1
1から出力されるデータをラッチする。
The MPU 14 outputs transfer data to the transmission register 11 and also outputs a transmission control signal (write control signal) A through the I10 port 15a. The latch register 12 synchronizes with the transmission control signal A (“0” is a significant signal) output from the I10 port 15a.
Latch the data output from 1.

このとき、I10ボート15aから出力される送信5i
IIWJ信@Aは、フリップフロップ16のリセット端
子へも与えられる。フリップフロップ16は、周辺装置
t13からデータの受信完了信号(「0」が有意信号)
Eが出力されるまで、送信側のM P LJ 14ヘビ
シイ−信号BをI10ボート15bへ出力している。同
時に、周辺装置へもビジィ−信号Bが出力されて、ラッ
チレジスタ内のデータの有無が確認される。これにより
、M P U 14は、周辺装@13から受信完了信号
Eが出力されると、送信レジスタ11から次のデータを
ラッチレジスタ12へ出力することになる。このように
して、CP LJ 10から送信されるデータが、ラッ
チレジスタ12を通じて周辺a置13へ転送されること
になる。
At this time, the transmission 5i output from the I10 boat 15a
IIWJ signal @A is also applied to the reset terminal of flip-flop 16. The flip-flop 16 receives a data reception completion signal (“0” is a significant signal) from the peripheral device t13.
Until E is output, the M P LJ 14 heavy signal B on the transmitting side is output to the I10 boat 15b. At the same time, a busy signal B is also output to the peripheral device to confirm the presence or absence of data in the latch register. As a result, the MPU 14 outputs the next data from the transmission register 11 to the latch register 12 when the reception completion signal E is output from the peripheral device @13. In this way, the data sent from the CP LJ 10 will be transferred to the peripheral location 13 through the latch register 12.

前記のような転送方式が実施例されるのは、送信側から
ラッチレジスタ12へのデータ送信完了以前に、受信側
の周辺装置13がラッチレジスタ12からデータを受信
することを防止することが目的である。このため、受信
側の周辺装置13が本来とは異なるデータを受信する問
題は回避できる。但し、この方式では、c p u i
oからデータが転送される際には、データ転送が完了す
るまで周辺装置13の動作が一時停止されることになる
。このため、周辺装置13は動作が一定でなくなるよう
な状態となる。
The purpose of implementing the above-described transfer method is to prevent the peripheral device 13 on the receiving side from receiving data from the latch register 12 before the data transmission from the transmitting side to the latch register 12 is completed. It is. Therefore, the problem of the peripheral device 13 on the receiving side receiving data different from the original data can be avoided. However, in this method, c p u i
When data is transferred from o, the operation of the peripheral device 13 is temporarily stopped until the data transfer is completed. For this reason, the peripheral device 13 enters a state in which its operation is not constant.

また、第9図に示すように、送信側であるC P U 
10が周辺装置13の受信状態を検出することなく、送
信側からラッチレジスタ12を通じてデータが転送され
る方式がある。しかしながら、前記のような転送方式で
は、送信側からラッチレジスタ12へのデータ送信完了
以前に、受信側の周辺装置t13がラッチレジスタ12
からデータを受信することがある。このため、受信側の
周辺装置13が本来とは異なるデータを受信する問題が
発生する。
In addition, as shown in FIG. 9, the CPU on the transmitting side
There is a method in which data is transferred from the transmitting side through the latch register 12 without the peripheral device 10 detecting the receiving state of the peripheral device 13. However, in the above-described transfer method, before data transmission from the transmitting side to the latch register 12 is completed, the peripheral device t13 on the receiving side transfers data to the latch register 12.
Data may be received from. Therefore, a problem arises in that the peripheral device 13 on the receiving side receives data different from the original data.

[発明の目的] 本発明の目的は、送信側が受信側の受信タイミングを検
出することなくデータを転送する送受信システムにおい
て、送信側から出力されるデータを確実に受信側へ転送
することができるデータラッチ回路を提供することにあ
る。
[Object of the Invention] An object of the present invention is to provide data that can reliably transfer data output from the transmitting side to the receiving side in a transmitting/receiving system in which the transmitting side transfers data without detecting the reception timing of the receiving side. The purpose of the present invention is to provide a latch circuit.

[発明の概要] 本発明は、第1及び第2のラッチレジスタを備えており
、第1のラッチレジスタは送信側からの送信制御信号に
同期して送信データをラッチするように構成されている
。また、第2のラッチレジスタは、ラッチ制御回路から
のラッチ1lilJIll信号に同期して、第1のラッ
チレジスタから出力されるデータをラッチするように構
成されている。ラッチ制御回路は、送信υIIII信号
に基づいて、データの非送信状態時では受信側により設
定されるラッチタイミングに対応するラッチ制御信号を
出力する。また、ラッチ制御回路は、データの送信状態
時では受信側により設定されるラッチタイミングを遅延
するように変化させたラッチ制御信号を出力する。
[Summary of the Invention] The present invention includes first and second latch registers, and the first latch register is configured to latch transmission data in synchronization with a transmission control signal from the transmission side. . Further, the second latch register is configured to latch data output from the first latch register in synchronization with the latch 1lilJIll signal from the latch control circuit. Based on the transmission υIII signal, the latch control circuit outputs a latch control signal corresponding to the latch timing set by the receiving side when data is not being transmitted. Further, the latch control circuit outputs a latch control signal that is changed so as to delay the latch timing set by the receiving side in the data transmission state.

このような′!I4戒のデータラッチ回路により、送信
側から所定のタイミングで送信されるデータを確実に受
信側へ転送することが可能となる。
like this'! The I4 data latch circuit makes it possible to reliably transfer data transmitted from the transmitting side at a predetermined timing to the receiving side.

[発明の実施例] 以下図面を参照して本発明の一実施例を説明する。第1
図は一実施例に係わる送受信システムの構成を示すブロ
ック図である。第1図において、第1のラッチレジスタ
21は、送信側であるCPU(ホストコンピュータ)1
0の送信レジスタ11から周辺装置20へ転送されるデ
ータを一時ラッチする。
[Embodiment of the Invention] An embodiment of the present invention will be described below with reference to the drawings. 1st
The figure is a block diagram showing the configuration of a transmitting/receiving system according to an embodiment. In FIG. 1, a first latch register 21 is connected to a CPU (host computer) 1 on the sending side.
The data transferred from the 0 transmission register 11 to the peripheral device 20 is temporarily latched.

第1のラッチレジスタ21は、CP Ll 10のMP
IJ(マイクロプロセッサ)14からI10ボート15
を通じて出力される送信制御信号WRに同期してラッチ
動作を実行する。第2のラッチレジスタ22は、第1の
ラッチレジスタ21から出力されるデータをラッチして
周辺装置20へ出力する。第2のラッチレジスタ22は
、ラッチ制御回路23から出力されるラッチ#IJIl
l信号しに同期してラッチ動作を実行する。
The first latch register 21 is the MP of CP Ll 10.
IJ (microprocessor) 14 to I10 boat 15
The latch operation is performed in synchronization with the transmission control signal WR outputted through the latch control signal WR. The second latch register 22 latches the data output from the first latch register 21 and outputs it to the peripheral device 20. The second latch register 22 is a latch #IJIl output from the latch control circuit 23.
The latch operation is executed in synchronization with the l signal.

ラッチ制御回路23は、CP U 10から出力される
送信制御信号WRに基づいて、データの非送信状態時に
は周辺装置20から出力される受信制御信号Rに同期す
るラッチ制御信号りを出力する。また、ラッチ制御回路
23は、データの送信状態時には周連装@20から出力
されるタイミング変化信号CHに基づいて、受信制御信
号Rによるランチタイミングを遅延するように変化させ
たラッチ制御信号りを出力する。
Based on the transmission control signal WR output from the CPU 10, the latch control circuit 23 outputs a latch control signal synchronized with the reception control signal R output from the peripheral device 20 when data is not being transmitted. Furthermore, in the data transmission state, the latch control circuit 23 outputs a latch control signal that is changed to delay the launch timing of the reception control signal R based on the timing change signal CH output from the link @20. do.

第3図は、同実施例のデータラッチ回路及びその周辺回
路の構成の具体例を示すブロック図である。第3図にお
いて、第1のラッチレジスタ21は、例えば8ビツトの
データD1〜D8をラッチするD型ラッチ回路30−1
〜30−8からなる。D型ラッチ回路30−1〜30−
8は、第1図のCP U 10から出力される送信制御
信号WRがインバータ31〜33を通じて各クロック端
子CPに供給される。第1のラッチレジスタ21にラッ
チされたデータD1〜D8は、送信制御信号WRに同期
して第2のラッチレジスタ22に出力される。第2のラ
ッチレジスタ22は、同様に8ビツトのデータをラッチ
するD型ラッチ回路34−1〜34−8からなる。
FIG. 3 is a block diagram showing a specific example of the configuration of the data latch circuit and its peripheral circuits in the same embodiment. In FIG. 3, the first latch register 21 is a D-type latch circuit 30-1 that latches, for example, 8-bit data D1 to D8.
~30-8. D-type latch circuit 30-1 to 30-
8, a transmission control signal WR output from the CPU 10 of FIG. 1 is supplied to each clock terminal CP through inverters 31 to 33. Data D1 to D8 latched by the first latch register 21 are output to the second latch register 22 in synchronization with the transmission control signal WR. The second latch register 22 similarly consists of D-type latch circuits 34-1 to 34-8 that latch 8-bit data.

第2のラッチレジスタ22のD型ラッチ回路34−1〜
34−8は、ラッチ制御回路23から出力されるラッチ
制御信号りが各クロック端子CPへ供給される。
D-type latch circuit 34-1 of the second latch register 22
34-8, a latch control signal output from the latch control circuit 23 is supplied to each clock terminal CP.

D型ラッチ回路34−1〜34−8にラッチされたデー
タは、ラッチ制御信号しに同期して周辺装置20へ出力
される。ラッチ制御回路23は、D型フリップ70ツブ
35、ナンド回路36及びインバータ37.38を備え
ている。フリップフロップ35は、データ端子りには送
信制御信号WRがインバータ31により反転されて入力
されており、出力信号Qをナンド回路36の一方の入力
端子に出力する。ナンド回路36は、他方の入力端子に
は周辺装置20からの受信制御信号Rが与えられて、ラ
ッチ制御信号りを出力する。フリップフロップ35のク
ロック端子CPには、受信制御信号Rがインバータ37
.38を通じて供給される。
The data latched by the D-type latch circuits 34-1 to 34-8 are output to the peripheral device 20 in synchronization with the latch control signal. The latch control circuit 23 includes a D-type flip 70 tube 35, a NAND circuit 36, and inverters 37 and 38. The flip-flop 35 has a data terminal input with the transmission control signal WR inverted by the inverter 31, and outputs an output signal Q to one input terminal of the NAND circuit 36. The other input terminal of the NAND circuit 36 receives the reception control signal R from the peripheral device 20, and outputs a latch control signal R. The reception control signal R is connected to the clock terminal CP of the flip-flop 35 by the inverter 37.
.. 38.

周辺装置20は、シフトレジスタ40〜43、インバー
タ44.45、ナンド回路46及びノア回路47を備え
ている。シフトレジスタ40〜43は、繰返し動作信号
fcyの周期及びクロック信号GKに応じて動作してい
る。シフトレジスタ40の出力信号Q1は、インバータ
44を通じてナンド回路46の一方の入力端子に出力さ
れる。ナンド回路46は、他方の入力端子にはシフトレ
ジスタ41の出力信号Q2が与えられて、出力端子から
受信制御信号Rを出力する。
The peripheral device 20 includes shift registers 40 to 43, inverters 44 and 45, a NAND circuit 46, and a NOR circuit 47. The shift registers 40 to 43 operate according to the cycle of the repetitive operation signal fcy and the clock signal GK. The output signal Q1 of the shift register 40 is outputted to one input terminal of the NAND circuit 46 through the inverter 44. The NAND circuit 46 has its other input terminal supplied with the output signal Q2 of the shift register 41, and outputs the reception control signal R from its output terminal.

一方、ノア回路47は、第1の入力端子にはシフトレジ
スタ42の出力信@Q3が与えられて、第2の入力端子
にはシフトレジスタ43の出力信号Q4がインバータ4
5で反転されて与えられている。ノア回路47は、出力
信号であるタイミング変化信号CHをラッチ制御回路2
3のフリップ70ツブ35のセット入力端子へ出力する
On the other hand, the NOR circuit 47 has a first input terminal supplied with the output signal @Q3 of the shift register 42, and a second input terminal supplied with the output signal @Q4 of the shift register 43.
5 and is given inverted. The NOR circuit 47 transmits the timing change signal CH, which is an output signal, to the latch control circuit 2.
It is output to the set input terminal of the flip 70 knob 35 of No. 3.

前記のような構成のデータラッチ回路において、同実施
例の動作を説明する。先ず、第1図に示すM P LJ
 14が送信データDを作成し、送信レジスタ11へ出
力したとする。送信レジスタ11に格納された送信デー
タDは、第1のラッチレジスタ21へ出力される。この
とき、M P U 14からI10ボート15を通じて
、第2図に示すような送信制御信号WRがCP U 1
0から出力される。第1のラッチレジスタ21は、I1
0ボート15から出力される送信制御信号WR(rOJ
が有意信号)の「0」レベルでデータを取入れて、立上
が′りに同期して、送信データDをラッチする。第1の
ラッチレジスタ21内のラッチデータLD1は、第2の
ラッチレジスタ22へ出力される。第2のラッチレジス
タ22は、第2図に示すようにラッチ制御回路23から
出力されるラッチ制御信号しに同期して、第1のラッチ
レジスタ21からのデータをラッチすることになる。
In the data latch circuit configured as described above, the operation of the same embodiment will be explained. First, M P LJ shown in FIG.
14 creates transmission data D and outputs it to the transmission register 11. Transmission data D stored in the transmission register 11 is output to the first latch register 21. At this time, a transmission control signal WR as shown in FIG.
Output from 0. The first latch register 21 is I1
Transmission control signal WR (rOJ
Data is taken in at the "0" level of the signal (significance signal), and the transmission data D is latched in synchronization with the rising edge of the signal. Latch data LD1 in the first latch register 21 is output to the second latch register 22. The second latch register 22 latches the data from the first latch register 21 in synchronization with the latch control signal output from the latch control circuit 23 as shown in FIG.

第2のラッチレジスタ22でラッチされたラッチデータ
LD2は、周辺装置1120へ出力されることになる。
Latch data LD2 latched by second latch register 22 will be output to peripheral device 1120.

ところで、ラッチ制御回路23は、CP U 10から
送信制御信@WRが出力されると、送信レジスタ11か
らの送信データDの送信状態を検出する。送信データD
が非送信状態時であれば、ラッチ制御回路23は周辺装
置20から出力される受信i111111信号R(rO
Jが有意信号)に同期したラッチ制御信号りを出力する
。このラッチ制御信号りにより、第2のラッチレジスタ
22は第1のラッチレジスタ21からのデータをラッチ
する。具体的には、送信データDが非送信状態時であれ
ば、第3図に示すラッチ制御回路23の7リツプ70ツ
ブ35には「1」である送信制御信号WRがデータ端子
りに供給されている。このとき、ラッチ制御回路23に
対して、第4図に示すような受信制御信号Rが周辺装置
20のナンド回路46から供給されると、第5図に示す
ようなラッチ制御信号しが第2のラッチレジスタ22へ
出力されることになる。
By the way, when the transmission control signal @WR is output from the CPU 10, the latch control circuit 23 detects the transmission state of the transmission data D from the transmission register 11. Transmission data D
is in the non-transmission state, the latch control circuit 23 outputs the reception i111111 signal R(rO
A latch control signal synchronized with J is a significant signal) is output. This latch control signal causes the second latch register 22 to latch the data from the first latch register 21. Specifically, when the transmission data D is in a non-transmission state, the transmission control signal WR of "1" is supplied to the data terminal of the 7-lip 70-tube 35 of the latch control circuit 23 shown in FIG. ing. At this time, when the reception control signal R as shown in FIG. 4 is supplied to the latch control circuit 23 from the NAND circuit 46 of the peripheral device 20, the latch control circuit 23 receives the second latch control signal R as shown in FIG. It will be output to the latch register 22 of.

次に、ラッチ制御回路23が送信データDの送信状態時
に、周辺装置20から受信制御信号Rを受信した場合で
ある。即ち、第2図に示すように、送信制御信号WRが
rOJのとき、受信制御信号RもrOJの場合である。
Next, there is a case where the latch control circuit 23 receives the reception control signal R from the peripheral device 20 while the transmission data D is being transmitted. That is, as shown in FIG. 2, when the transmission control signal WR is rOJ, the reception control signal R is also rOJ.

ラッチ制御回路23は、受信制御信号Rに同期した立下
がりのラッチ制御信号りを出力し、さらに受信制御信号
Rの立上がり時点より所定の期間延長された立上がりの
ラッチ制御信号りを出力する。この場合、ラッチ制御信
号りの延長期間は周辺装置20から出力されるタイミン
グ変化信号CHに基づいて設定される。第2のラッチレ
ジスタ22は、通常のラッチタイミングより延長された
ラッチ制御信号りに同期して、第1のラッチレジスタ2
1からのデータをラッチする。
The latch control circuit 23 outputs a falling latch control signal that is synchronized with the reception control signal R, and further outputs a rising latch control signal that is extended for a predetermined period from the rise of the reception control signal R. In this case, the extension period of the latch control signal is set based on the timing change signal CH output from the peripheral device 20. The second latch register 22 is connected to the first latch register 2 in synchronization with a latch control signal that is extended from the normal latch timing.
Latch data from 1.

具体的には、第3図に示す周辺装置20から受信制御信
号R(rOJ )がラッチ制御回路23へ出力された際
、第5図に示すように送信制御信号WRがラッチ制御回
路23へ出力されたとする。ラッチ制御回路23では、
タイミング変化信@CHが予めフリップフロップ35の
セット入力端子へ入力されているため、フリップフロッ
プ35の出力信号Qは「1」である。このため、ナンド
回路36からは、受信制御信号Rの立下がりに同期して
立上がるラッチ制御信号りが出力される。そして、受信
制御信号Rが立上がる際、第5図に示すように送信制御
信号WRが「0」である。即ち、受信制御信号Rに同期
して第2のラッチレジスタ22がラッチする際に、送信
制御信号WRに同期して第1のラッチレジスタ21がデ
ータのラッチ動作を行なう場合である。フリップフロッ
プ35の出力信号Qは、受信制御信号Rの立上がり時に
、送信制御信号WRのレベルを判断するのであるが、送
信制御信号WRがrOJであるためrOJに立下がるこ
とになる。したがって、ラッチ制御信号りは、受信制御
信号Rの立上がりに同期して一度立下がるが、出力信号
Qにより「1」の状態を再度続ける。フリップフロップ
35の出力信号Qは、周辺装置20から出力されるタイ
ミング変化信号CHの立上がりに同期して、「1」の立
上がることになる。これにより、ラッチ制御回路23か
ら出力されるラッチ制御信号しは、受信制御信@Rで決
定されるラッチタイミング期間より第5図に示すような
期間Trだけ延長されたラッチタイミング信号として出
力されることになる。この場合、タイミング変化信号C
Hにより決定される延長期間Trは、第5図に示すよう
な送信制御信号WRのパルス幅TW1以上で、期間Tw
2より短い期間である。
Specifically, when the reception control signal R (rOJ) is output from the peripheral device 20 shown in FIG. 3 to the latch control circuit 23, the transmission control signal WR is output to the latch control circuit 23 as shown in FIG. Suppose that In the latch control circuit 23,
Since the timing change signal @CH is input to the set input terminal of the flip-flop 35 in advance, the output signal Q of the flip-flop 35 is "1". Therefore, the NAND circuit 36 outputs a latch control signal that rises in synchronization with the fall of the reception control signal R. When the reception control signal R rises, the transmission control signal WR is "0" as shown in FIG. That is, when the second latch register 22 latches in synchronization with the reception control signal R, the first latch register 21 performs a data latching operation in synchronization with the transmission control signal WR. The output signal Q of the flip-flop 35 determines the level of the transmission control signal WR when the reception control signal R rises, and since the transmission control signal WR is rOJ, it falls to rOJ. Therefore, the latch control signal falls once in synchronization with the rise of the reception control signal R, but continues to be in the "1" state again due to the output signal Q. The output signal Q of the flip-flop 35 rises to "1" in synchronization with the rise of the timing change signal CH output from the peripheral device 20. As a result, the latch control signal output from the latch control circuit 23 is output as a latch timing signal that is extended by the period Tr shown in FIG. 5 from the latch timing period determined by the received control signal @R. It turns out. In this case, the timing change signal C
The extension period Tr determined by H is longer than the pulse width TW1 of the transmission control signal WR as shown in FIG.
The period is shorter than 2.

また、ラッチ制御回路23は、受信制御信号Rに同期し
て立下がった直後に延長期間だけ再度立上がるパルスの
ラッチ制御信号りを出力しているが、パルス幅Trだけ
連続的に延長されたパルスを出力するような回路でもよ
い。
In addition, the latch control circuit 23 outputs a latch control signal of a pulse that rises again for an extended period immediately after falling in synchronization with the reception control signal R, but the latch control signal is continuously extended by the pulse width Tr. A circuit that outputs pulses may also be used.

このようにして、送信側であるC P Ll 10は、
受信側の周辺装置20の受信タイミングを検出すること
なく、送信制御信号WRに同期した送信データを受信側
へ確実に転送することができる。この場合、送信制御信
号WRと周辺装置20からの受信制御信号Rのタイミン
グが重なる際、第2のラッチレジスタ22は受信制御信
号Rによるラッチタイミングが遅延するように変化した
ラッチタイミングでデータをラッチする。したがって、
第2のラッチレジスタ22は、第1のラッチレジスタ2
1へ送信データの転送が完了する以前にラッチすること
なく、完全に転送された後のデータをラッチして周辺装
置20へ出力することになる。
In this way, the sender C P Ll 10:
Transmission data synchronized with the transmission control signal WR can be reliably transferred to the reception side without detecting the reception timing of the peripheral device 20 on the reception side. In this case, when the timings of the transmission control signal WR and the reception control signal R from the peripheral device 20 overlap, the second latch register 22 latches the data at the latch timing changed so that the latch timing by the reception control signal R is delayed. do. therefore,
The second latch register 22 is the first latch register 2
1, the data is not latched before the transfer of the transmission data is completed, but the data that has been completely transferred is latched and output to the peripheral device 20.

第6図は、本発明のデータラッチ回路を適用した具体的
回路を示すブロック図であり、第7図はその回路の動作
を示すタイミングチャートである。
FIG. 6 is a block diagram showing a specific circuit to which the data latch circuit of the present invention is applied, and FIG. 7 is a timing chart showing the operation of the circuit.

第6図に示す回路は、外部からの入力信号に応じたデユ
ーティ信号を発生する可変デユーティ出力回路である。
The circuit shown in FIG. 6 is a variable duty output circuit that generates a duty signal according to an external input signal.

この可変デユーティ出力回路は、第2の受信レジスタ6
1の値とカウンタ62のカウント値とを比較回路63で
比較して、比較結果が一致するまでの期間に対応するパ
ルス幅のパルス信号を出力する。第2の受信レジスタ6
1の値を変更するタイミングは、カウンタ62の値が全
てOの場合であり、その繰返しサイクルは一定である。
This variable duty output circuit is connected to the second receiving register 6.
A comparison circuit 63 compares the value of 1 and the count value of the counter 62, and outputs a pulse signal with a pulse width corresponding to the period until the comparison results match. Second receive register 6
The timing to change the value of 1 is when all the values of the counter 62 are O, and the repetition cycle is constant.

第1の受信レジスタ60は、書込み信号WRのタイミン
グにより外部入力信号を格納する。第1の受信レジスタ
60に記憶された信号は、ラッチ制御回路23からのラ
ッチ制御信号りのタイミングにより第2の受信レジスタ
61へ転送される。
The first receiving register 60 stores an external input signal according to the timing of the write signal WR. The signal stored in the first reception register 60 is transferred to the second reception register 61 at the timing of the latch control signal from the latch control circuit 23.

このような可変デユーティ出力回路に対して本発明を適
用した場合、第2の受信レジスタ61には外部入力信号
が確実に格納されることになる。したがって、可変デユ
ーティ回路の内部でデータが変化する事態を防止できる
ため、連続してデユーティ値を変化させる場合には非常
に滑らかに変化させることが可能になるなどの効果があ
る。尚、前記のような可変デユーティ出力回路は、表示
装置の輝度変調回路に使用すると有効である。
When the present invention is applied to such a variable duty output circuit, the external input signal will be reliably stored in the second receiving register 61. Therefore, it is possible to prevent the data from changing inside the variable duty circuit, so that when changing the duty value continuously, it is possible to change the duty value very smoothly. Note that the variable duty output circuit as described above is effective when used in a brightness modulation circuit of a display device.

[発明の効果] 以上詳述したように本発明によれば、送信側が受信側の
受信タイミングを検出することなくデータを転送する送
受信システムにおいて、送信側から出力されるデータを
確実に受信側へ転送することができる。したがって、送
信側のシステムの変更が発生した場合でも、受信側への
データ転送を容易に実行することが可能となる。また、
送信側はデータの受信側に対する処理を簡単化できるた
め、システム全体の処理効率を向上できる効果を得るこ
とができるものである。
[Effects of the Invention] As detailed above, according to the present invention, in a transmitting/receiving system in which the transmitting side transfers data without detecting the reception timing of the receiving side, data output from the transmitting side can be reliably transmitted to the receiving side. Can be transferred. Therefore, even if a change occurs in the system on the sending side, it is possible to easily transfer data to the receiving side. Also,
Since the sending side can simplify the processing for the data receiving side, it is possible to obtain the effect of improving the processing efficiency of the entire system.

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

第1図は本発明の一実施例に係わるデータラッチ回路の
構成を示すブロック図、第2図は同実施例の動作を説明
するためのタイミングチャート、第3図は同実施例の具
体的回路を示すブロック図、第4図及び第5図はそれぞ
れ第3図の回路の動作を説明するためのタイミングチャ
ート、第6図は本発明を具体的に適用した場合の可変デ
ユーティ出力回路の構成を示すブロック図、第7図は第
6図の回路の動作を説明するためのタイミングチャート
、第8図及び第9図はそれぞれは従来のデータラッチ回
路の構成を示すブロック図である。 10・・・CPU、11・・・送信レジスタ、14・・
・マイクロプロセッサ、15・・・110ボート、20
・・・周辺装置、21・・・第1のラッチレジスタ、2
2・・・第2のラッチレジスタ、23・・・ラッチ制御
回路。 出願人代理人 弁理士 鈴 江 武 彦α      
工 ≧Cr−〇− 1g毛 ”l)! 1K          大
FIG. 1 is a block diagram showing the configuration of a data latch circuit according to an embodiment of the present invention, FIG. 2 is a timing chart for explaining the operation of the embodiment, and FIG. 3 is a specific circuit of the embodiment. FIGS. 4 and 5 are timing charts for explaining the operation of the circuit shown in FIG. 3, and FIG. 6 shows the configuration of a variable duty output circuit when the present invention is specifically applied. FIG. 7 is a timing chart for explaining the operation of the circuit shown in FIG. 6, and FIGS. 8 and 9 are block diagrams each showing the configuration of a conventional data latch circuit. 10...CPU, 11...Transmission register, 14...
・Microprocessor, 15...110 boats, 20
...Peripheral device, 21...First latch register, 2
2... Second latch register, 23... Latch control circuit. Applicant's agent Patent attorney Takehiko Suzue α
Engineering≧Cr-〇- 1g hair"l)! 1K large

Claims (1)

【特許請求の範囲】[Claims] 送信側から受信側へ転送されるデータを前記送信側から
出力される送信制御信号のタイミングに応じてラッチす
る第1のラッチ手段と、前記送信側から出力される前記
送信制御信号に基づいて前記送信側からのデータの送信
状態を検出しデータの非送信状態時には前記受信側から
設定されるラッチタイミングに対応するラッチ制御信号
を出力し又前記送信側がデータの送信状態時には前記受
信側から設定されるラッチタイミングを遅延するように
変化させたラッチ制御信号を出力するラッチ制御手段と
、前記第1のラッチ手段から出力されるデータを前記ラ
ッチ制御手段から出力されるラッチ制御信号に応じてラ
ッチし前記受信側へ出力する第2のラッチ手段とを具備
してなることを特徴とするデータラッチ回路。
a first latch means for latching data transferred from a transmitting side to a receiving side according to the timing of a transmission control signal output from the transmitting side; Detects the data transmission state from the transmitting side, and outputs a latch control signal corresponding to the latch timing set by the receiving side when the data is not being transmitted, and outputs a latch control signal corresponding to the latch timing set by the receiving side when the transmitting side is in the data transmitting state. latch control means for outputting a latch control signal changed to delay latch timing; and latch control means for latching the data output from the first latch means in accordance with the latch control signal output from the latch control means. A data latch circuit comprising: second latch means for outputting to the receiving side.
JP1987885A 1985-02-06 1985-02-06 Data latch circuit Granted JPS61180357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1987885A JPS61180357A (en) 1985-02-06 1985-02-06 Data latch circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1987885A JPS61180357A (en) 1985-02-06 1985-02-06 Data latch circuit

Publications (2)

Publication Number Publication Date
JPS61180357A true JPS61180357A (en) 1986-08-13
JPH0560134B2 JPH0560134B2 (en) 1993-09-01

Family

ID=12011463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1987885A Granted JPS61180357A (en) 1985-02-06 1985-02-06 Data latch circuit

Country Status (1)

Country Link
JP (1) JPS61180357A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06129253A (en) * 1992-10-13 1994-05-10 Fuji Heavy Ind Ltd Control method for boost pressure in sequential turbo engine
US6978391B2 (en) 2000-11-01 2005-12-20 Nec Electronics Corporation Asynchronous bus interface circuit, method of controlling the circuit, microcomputer, and device controlling method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06129253A (en) * 1992-10-13 1994-05-10 Fuji Heavy Ind Ltd Control method for boost pressure in sequential turbo engine
US6978391B2 (en) 2000-11-01 2005-12-20 Nec Electronics Corporation Asynchronous bus interface circuit, method of controlling the circuit, microcomputer, and device controlling method

Also Published As

Publication number Publication date
JPH0560134B2 (en) 1993-09-01

Similar Documents

Publication Publication Date Title
US4390969A (en) Asynchronous data transmission system with state variable memory and handshaking protocol circuits
US5019966A (en) Dual processors using busy signal for controlling transfer for predetermined length data when receiving processor is processing previously received data
US5600824A (en) Clock generating means for generating bus clock and chip clock synchronously having frequency ratio of N-1/N responsive to synchronization signal for inhibiting data transfer
US3988716A (en) Computer interface system
US4756006A (en) Bus transceiver
EP0602667A1 (en) System and method for peripheral data transfer
JPS62155651A (en) Method and apparatus for creating synchronous handshake
US4811277A (en) Communication interface
US5951669A (en) Method and apparatus for serialized interrupt transmission
US5025414A (en) Serial bus interface capable of transferring data in different formats
EP0549334B1 (en) A data input and output control device and a one-chip microcomputer integrating the same
JPS61180357A (en) Data latch circuit
US6978391B2 (en) Asynchronous bus interface circuit, method of controlling the circuit, microcomputer, and device controlling method
US5235331A (en) Key scanning apparatus
AU592641B2 (en) Data transfer between data processing equipment
JP3019740B2 (en) Serial interface and serial data transfer system
US6882695B1 (en) Data transmission line used continuously connected in plurality of stages in asynchronous system
JPS62168415A (en) Inter-latch transmission system
KR940008481B1 (en) Interrupt circuit in control system
JPH05252227A (en) Serial communication equipment
JPH01143435A (en) Data transmission equipment
JPH0477940B2 (en)
JPH0546535A (en) Data transfer interface device
KR930007593Y1 (en) Control signal oscillating circuit for data input & output between apparatus
JP2538682B2 (en) Reference clock source automatic switching method

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term