JPH055216B2 - - Google Patents

Info

Publication number
JPH055216B2
JPH055216B2 JP58223548A JP22354883A JPH055216B2 JP H055216 B2 JPH055216 B2 JP H055216B2 JP 58223548 A JP58223548 A JP 58223548A JP 22354883 A JP22354883 A JP 22354883A JP H055216 B2 JPH055216 B2 JP H055216B2
Authority
JP
Japan
Prior art keywords
input
microcomputer
output
output port
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP58223548A
Other languages
Japanese (ja)
Other versions
JPS60116252A (en
Inventor
Sunao Nagashima
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP58223548A priority Critical patent/JPS60116252A/en
Publication of JPS60116252A publication Critical patent/JPS60116252A/en
Publication of JPH055216B2 publication Critical patent/JPH055216B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/17Interprocessor communication using an input/output type connection, e.g. channel, I/O port

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)
  • Bidirectional Digital Transmission (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】 〔技術分野〕 本発明は、マイクロコンピユータ間等のデータ
通信装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to a data communication device between microcomputers and the like.

〔従来技術〕[Prior art]

従来、この種の通信制御方式は信号線の数を減
らすために同期式、非同期式のシリアル信号によ
るものが多かつた。こうしたシリアル通信のため
の回路は近年のシングルチツプマイクロコンピユ
ータに内蔵されたものが増えておりコストも低く
おさえられるという長所がある。
Conventionally, this type of communication control system has often used synchronous or asynchronous serial signals in order to reduce the number of signal lines. Such circuits for serial communication are increasingly being built into single-chip microcomputers in recent years, and have the advantage of being able to keep costs low.

しかしながら、この様な通信制御方式は本来長
距離通信を目的としたものであるためにエラーチ
エツク等に複雑なソフトウエア制御が必要であ
り、また、シリアル通信のために高速データ伝送
が難しいという欠点がある。
However, since this type of communication control method was originally intended for long-distance communication, it requires complicated software control for error checking, etc., and also has the disadvantage that high-speed data transmission is difficult due to serial communication. There is.

さらに、マルチチツプ構成のマイクロコンピユ
ータを使用した場合には、シリアル通信のために
専用LSIを追加しなければならず、かえつてコス
トアツプの要因となるという欠点があつた。
Furthermore, when a microcomputer with a multi-chip configuration is used, a dedicated LSI must be added for serial communication, which has the disadvantage of increasing costs.

〔目的〕〔the purpose〕

以上の点に鑑み、本発明の目的は、簡単なハー
ドウエア構成で高速処理が可能なマイクロコンピ
ユータ間等のデータ通信装置を提供することにあ
る。
In view of the above points, an object of the present invention is to provide a data communication device between microcomputers, etc., which is capable of high-speed processing with a simple hardware configuration.

〔実施例〕〔Example〕

第1図は、本発明による通信制御の具体的な回
路構成の例である。マイクロコンピユータ23,
24はデータ通信を必要とするデジタルコンピユ
ータであり、それぞれ中央演算処理回路、制御用
プログラムを記憶するためのプログラムメモリ、
データの一時記憶用のランダムアクセスメモリ
(RAM)、割り込み制御回路等を内蔵したものと
する。
FIG. 1 is an example of a specific circuit configuration for communication control according to the present invention. microcomputer 23,
24 is a digital computer that requires data communication, and each includes a central processing circuit, a program memory for storing a control program, and
It has built-in random access memory (RAM) for temporary data storage, an interrupt control circuit, etc.

マイクロコンピユータ23,24には発振回路
25よりの矩形波発振出力(クロツク26)がそ
れぞれ割り込み入力端子に接続されている。本実
施例においてはマイクロコンピユータ23ではク
ロツク26の立ち上がりエツジ、マイクロコンピ
ユータ24ではクロツク26の立ち下がりエツジ
でそれぞれ割り込み機能が動作するものとする。
A rectangular wave oscillation output (clock 26) from an oscillation circuit 25 is connected to an interrupt input terminal of the microcomputers 23 and 24, respectively. In this embodiment, it is assumed that the interrupt function operates at the rising edge of the clock 26 in the microcomputer 23, and at the falling edge of the clock 26 in the microcomputer 24.

また、マイクロコンピユータ23,24はマイ
コンバス27,28を介して入出力ポート21,
22に接続されパラレルデータの入出力動作を行
なう。入出力ポート21,22として例えばイン
テル社の8255A、マイクロコンピユータ23,2
4として同じくインテル社のCPU8085A、RAM
+タイマー+I/Oポートを内蔵した8155、
EPROMとI/Oポートを内蔵した8755Aの組み
合わせ等が使用可能である。割り込み端子として
は8085AのRST7.5端子が使用可能であり、立ち
下がりエツジとするためにはクロツク26に対し
てインバータ回路を挿入すれば良い。
Further, the microcomputers 23 and 24 are connected to the input/output ports 21 and 21 via the microcomputer buses 27 and 28, respectively.
22 and performs parallel data input/output operations. For example, Intel's 8255A, microcomputer 23, 2 can be used as the input/output ports 21, 22.
4 also Intel's CPU8085A, RAM
8155 with built-in + timer + I/O port,
A combination of 8755A with built-in EPROM and I/O port can be used. The RST7.5 terminal of the 8085A can be used as an interrupt terminal, and an inverter circuit can be inserted into the clock 26 to generate a falling edge.

入出力ポート21,22は信号線11〜18に
より結線されこの間には、互いに出力状態となつ
ても回路破壊をおこさないために必要であれば保
護抵抗1〜8を挿入する。
The input/output ports 21 and 22 are connected by signal lines 11 to 18, and protective resistors 1 to 8 are inserted between them, if necessary, in order to prevent circuit damage even if they are in an output state.

第2図は、第1図の回路動作を示すタイミング
チヤートである。
FIG. 2 is a timing chart showing the circuit operation of FIG. 1.

マイクロコンピユータ23,24はクロツク2
6の立ち上がりエツジ、立ち下がりエツジでそれ
ぞれ割り込み処理動作を交互に行ないデータ通信
を行なう様子が示してある。割り込み処理では先
ず入出力ポートを入力モードに切り換えて相手の
出力したデータを入力し、その後送出するデータ
を出力しデータのやり取りを行なう。
Microcomputers 23 and 24 are clock 2
It is shown that data communication is performed by performing interrupt processing operations alternately at the rising edge and falling edge of 6. In interrupt processing, the input/output port is first switched to input mode and data output by the other party is input, and then the data to be sent is output and data is exchanged.

図からもわかるようにそれぞれの割り込み処理
はクロツク26の半周期以内に必ず終了する事が
必要であり、この処理時間を保証する事により最
大データ転送速度が決定されるとともに、互いに
相手の動作が完了している事を確認する必要がな
くなりソフトウエアの制御が容易になるというメ
リツトが生ずる。
As can be seen from the figure, each interrupt processing must be completed within half a cycle of the clock 26, and by guaranteeing this processing time, the maximum data transfer rate is determined, and the operation of each other is There is no need to confirm that the process has been completed, which has the advantage of making it easier to control the software.

第3−a図、第3−b図はマイクロコンピユー
タ23,24の制御フローチヤートの例であり、
第3−a図はメインルーチン、第3−b図は割り
込み処理ルーチンのフローチヤート例である。
3-a and 3-b are examples of control flowcharts of the microcomputers 23 and 24,
FIG. 3-a is an example of a flowchart of the main routine, and FIG. 3-b is an example of a flowchart of the interrupt processing routine.

第3−a図において、マイクロコンピユータ2
3または24の電源がオンされマイクロコンピユ
ータのハードリセツトがかかつた後、ステツプ
SP1で入出力ポート21,22の初期化、内部
RAMのクリア等の初期化を行なう。ステツプ
SP2では、クロツク26による割り込みを許可
し、割り込み可能なプログラムを実行するステツ
プSP3に進む。ステツプSP3を実行している途中
でクロツク26により割り込み要求がかかり、第
3−b図の割り込み処理ルーチンを実行する。
In Figure 3-a, the microcomputer 2
After 3 or 24 is powered on and the microcomputer is hard reset, the steps
Initialize input/output ports 21 and 22 with SP1, internal
Perform initialization such as clearing RAM. step
At SP2, interrupts by the clock 26 are enabled, and the program proceeds to step SP3, where an interrupt-enabled program is executed. During the execution of step SP3, an interrupt request is issued by the clock 26, and the interrupt processing routine shown in FIG. 3-b is executed.

第3−b図において、まずステツプSP11にお
いて入出力ポート21,22を入力モードに変更
した後ステツプSP12に進み相手マイクロコンピ
ユータが出力したデータを入出力ポート21,2
2より取り込む。続いてステツプSP13で再び入
出力ポートを出力モードにし、ステツプSP14で
相手マイクロコンピユータへ出力するデータを入
出力ポート21,22に出力する。続いて必要で
あればクロツク26をタイマー用クロツクとして
利用し、ステツプSP15でタイマー処理プログラ
ムを実行する。
In Fig. 3-b, first, in step SP11, the input/output ports 21, 22 are changed to the input mode, and then the process proceeds to step SP12, where the data output by the other microcomputer is transferred to the input/output ports 21, 22.
Import from 2. Subsequently, in step SP13, the input/output port is set to output mode again, and in step SP14, data to be output to the partner microcomputer is output to the input/output ports 21 and 22. Subsequently, if necessary, the clock 26 is used as a timer clock, and the timer processing program is executed in step SP15.

第4図は、片方が出力ポート51、入力ポート
52を使用し、もう一方が入出力ポート53を使
用して構成した場合の結線図の例である。41〜
48は信号線、31〜38は第1図の1〜8同様
の保護抵抗である。
FIG. 4 is an example of a wiring diagram when one side uses the output port 51 and the input port 52, and the other side uses the input/output port 53. 41~
48 is a signal line, and 31 to 38 are protective resistors similar to 1 to 8 in FIG.

第5図は、互いに出力ポート91,93、入力
ポート92,94を使用して構成した場合の結線
図の例である。同様に81〜88は信号線、61
〜68,71〜78は保護抵抗である。
FIG. 5 is an example of a wiring diagram when configured using output ports 91, 93 and input ports 92, 94. Similarly, 81 to 88 are signal lines, 61
~68, 71~78 are protective resistors.

また、割り込みはクロツク26のエツジを検出
して実行するように説明したが互いに入出力動作
が上記説明のタイミングで実行可能であればロ
ー、ハイのレベルセンス信号でもよい。さらに、
割り込み信号が使用できない場合にはクロツク2
6をポーリングセンスする事により同様の動作を
実行しても良い。
Furthermore, although it has been described that the interrupt is executed by detecting the edge of the clock 26, a low/high level sense signal may be used as long as input/output operations can be executed at the timings described above. moreover,
Clock 2 if no interrupt signal is available.
A similar operation may be performed by polling and sensing 6.

なお、本願発明により、同一基板上の様な比較
的短距離のデータ通信においても、特に高速にデ
ータ通信を行うことができる。
Note that, according to the present invention, data communication can be performed particularly at high speed even in relatively short-distance data communication such as on the same board.

〔効果〕〔effect〕

以上説明したように、本発明によれば非常に簡
単なハードウエア構成なので安価に特別のLSIを
使用する事なく実現可能である。
As explained above, the present invention has a very simple hardware configuration and can be realized at low cost without using any special LSI.

また、タイマー処理等とソフトウエアを同一割
り込み処理で実行する事によりソフトウエア制御
が単純になるというメリツトも生じる。
Furthermore, by executing timer processing and software in the same interrupt processing, there is an advantage that software control is simplified.

さらに、データ転送がパラレル転送であるので
高速処理も可能になるという効果がある。
Furthermore, since the data transfer is parallel transfer, there is an effect that high-speed processing is also possible.

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

第1図は本発明適用の回路構成の1実施例を示
す図、第2図は本発明適用の動作タイミング説明
のためのタイミングチヤート、第3−a図、第3
−b図は制御フローチヤート、第4図、第5図は
信号線接続の他の実施例を示す図である。 23,24はマイクロコンピユータ、26はク
ロツク。
FIG. 1 is a diagram showing one embodiment of a circuit configuration to which the present invention is applied, FIG. 2 is a timing chart for explaining the operation timing to which the present invention is applied, and FIG.
FIG. 4 and FIG. 5 are diagrams showing other embodiments of signal line connections. 23 and 24 are microcomputers, and 26 is a clock.

Claims (1)

【特許請求の範囲】 1 第1のマイクロコンピユータ及び第2のマイ
クロコンピユータと、 複数ビツトパラレルに入力及び出力し、通常出
力モードに設定されている上記第1マイクロコン
ピユータ用の第1の入出力ポートと、 複数ビツトパラレルに入力及び出力し、上記第
1の入出力ポートと複数の信号線により接続さ
れ、通常出力モードに設定されている上記第2マ
イクロコンピユータ用の第2の入出力ポートと、 所定の周期のクロツク信号を発生する発生手段
を有し、 上記発生手段により発生される上記クロツク信
号を上記第1マイクロコンピユータと上記第2マ
イクロコンピユータの夫々割込ポートに入力せし
め、 上記第1マイクロコンピユータは、上記クロツ
ク信号の立上りエツジに応答した割込処理によつ
て、上記第1の入出力ポートを出力モードから入
力モードに一時的に切り換え、上記第2の入出力
ポートを介して出力される上記第2マイクロコン
ピユータからのデータを入力し、その後上記第1
の入出力ポートを出力モードに復帰させ、 他方、上記第2マイクロコンピユータは、上記
クロツク信号の立下りエツジに応答した割込処理
によつて、上記第2の入出力ポートを出力モード
から入力モードに一時的に切り換え、上記第1の
入出力ポートを介して出力される上記第1マイク
ロコンピユータからのデータを入力し、その後上
記第2の入出力ポートを出力モードに復帰させる
ことを特徴とするデータ通信装置。
[Claims] 1. A first microcomputer, a second microcomputer, and a first input/output port for the first microcomputer that inputs and outputs multiple bits in parallel and is set to a normal output mode. and a second input/output port for the second microcomputer that inputs and outputs multiple bits in parallel, is connected to the first input/output port by a plurality of signal lines, and is set to normal output mode; a generating means for generating a clock signal of a predetermined cycle; inputting the clock signal generated by the generating means to interrupt ports of the first microcomputer and the second microcomputer, respectively; The computer temporarily switches the first input/output port from the output mode to the input mode by interrupt processing in response to the rising edge of the clock signal, and outputs the data via the second input/output port. input the data from the second microcomputer, and then input the data from the first microcomputer.
On the other hand, the second microcomputer returns the second input/output port from the output mode to the input mode by interrupt processing in response to the falling edge of the clock signal. , inputting data from the first microcomputer that is output through the first input/output port, and then returning the second input/output port to the output mode. Data communication equipment.
JP58223548A 1983-11-28 1983-11-28 Data communication equipment Granted JPS60116252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58223548A JPS60116252A (en) 1983-11-28 1983-11-28 Data communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58223548A JPS60116252A (en) 1983-11-28 1983-11-28 Data communication equipment

Publications (2)

Publication Number Publication Date
JPS60116252A JPS60116252A (en) 1985-06-22
JPH055216B2 true JPH055216B2 (en) 1993-01-21

Family

ID=16799878

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58223548A Granted JPS60116252A (en) 1983-11-28 1983-11-28 Data communication equipment

Country Status (1)

Country Link
JP (1) JPS60116252A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5561836A (en) * 1978-10-31 1980-05-09 Fujitsu Ltd Data transfer system
JPS5824925A (en) * 1981-08-06 1983-02-15 Fujitsu Ltd Controlling system for bidirectional bus
JPS5875948A (en) * 1981-10-30 1983-05-07 Toshiba Corp Serial data transfer device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5561836A (en) * 1978-10-31 1980-05-09 Fujitsu Ltd Data transfer system
JPS5824925A (en) * 1981-08-06 1983-02-15 Fujitsu Ltd Controlling system for bidirectional bus
JPS5875948A (en) * 1981-10-30 1983-05-07 Toshiba Corp Serial data transfer device

Also Published As

Publication number Publication date
JPS60116252A (en) 1985-06-22

Similar Documents

Publication Publication Date Title
US6047120A (en) Dual mode bus bridge for interfacing a host bus and a personal computer interface bus
EP0319185B1 (en) Method and apparatus for checking a state machine
JPS5829197A (en) Dynamic memory refleshing circuit
JPS58501923A (en) Interface circuit for subsystem controller
JPS63303454A (en) Bus extension control system
JP2778222B2 (en) Semiconductor integrated circuit device
CN114443170B (en) FPGA dynamic parallel loading and unloading system
JPS6162963A (en) Method and apparatus for transferring data word from small register to large register
JPH055216B2 (en)
US4180855A (en) Direct memory access expander unit for use with a microprocessor
JPS6130300B2 (en)
JPH04323755A (en) Dma device
JPH0399354A (en) Bus controller
CN106547719A (en) A kind of system communication and control process synchronous method
JPH07146842A (en) Bus interface circuit
JP2739783B2 (en) Data transfer method between packages
Wirth et al. Interfaces Between Asynchronous Units
JPS6342547A (en) Line control unit
JP2667285B2 (en) Interrupt control device
JPH04225458A (en) Computer
JPH03840B2 (en)
JPH01221043A (en) Keyboard control system
JPH05120205A (en) Processor system with address conversion device for dma transfer and dma transfer method
JP2000172307A (en) Method for updating process data collection device
JPS61288257A (en) Data transmission equipment