JPH08123774A - Method and equipment for communication - Google Patents

Method and equipment for communication

Info

Publication number
JPH08123774A
JPH08123774A JP6257984A JP25798494A JPH08123774A JP H08123774 A JPH08123774 A JP H08123774A JP 6257984 A JP6257984 A JP 6257984A JP 25798494 A JP25798494 A JP 25798494A JP H08123774 A JPH08123774 A JP H08123774A
Authority
JP
Japan
Prior art keywords
microcomputer
data
transferred
predetermined
microcomputers
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
JP6257984A
Other languages
Japanese (ja)
Inventor
Yonako Sano
羊奈子 佐野
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP6257984A priority Critical patent/JPH08123774A/en
Publication of JPH08123774A publication Critical patent/JPH08123774A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Bus Control (AREA)
  • Information Transfer Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE: To improve communication efficiency between microcomputers and to reduce the load of the microcomputers. CONSTITUTION: Data for 32 bytes at maximum are supplied from a RAM 3 in a mechanical computer 1 to a buffer RAM 2a in a serial interface unit 2 and data for 32 bytes at maximum are supplied from a RAM 13 in a mode computer 11 to a butter RAM 12a in a serial interface unit 12. The data in the RAM 2a are transferred from a shift register 2b to a shift register 12b and written in the RAM 12a synchronously with a CSK signal supplied from the computer 11 to the computer 1 based upon the decay of a CS signal supplied from the computer 11 to the computer 1 and the data in the RAM 12a are transferred from the register 12b to the register 2b and written in the RAM 2a.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、例えば、マイコン間の
通信を実行するシリアル・インタフェース・ユニットに
用いて好適な通信方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication method and apparatus suitable for use in, for example, a serial interface unit that executes communication between microcomputers.

【0002】[0002]

【従来の技術】従来より、マイコンに内蔵されたシリア
ル・インタフェース・ユニットは、他のマイコンとの間
の通信を、FIFO(ファーストインファーストアウ
ト)形式で行い、1回の通信で8バイトの大きさのデー
タを送受信することができるようになされている。
2. Description of the Related Art Conventionally, a serial interface unit built in a microcomputer performs communication with other microcomputers in a FIFO (first-in first-out) format and has a size of 8 bytes per communication. It is designed to be able to send and receive data.

【0003】即ち、マイコンの内蔵する例えばRAMに
記憶されたデータが、8バイト単位で読み出され、FI
FOバッファに供給される。このFIFOバッファは、
最大で8バイトのデータを記憶することができ、先に供
給されたデータから順に出力され、他のマイコンに供給
される。
That is, data stored in, for example, a RAM incorporated in a microcomputer is read in units of 8 bytes, and FI
It is supplied to the FO buffer. This FIFO buffer is
Data of up to 8 bytes can be stored, and the data supplied first is output in order and supplied to other microcomputers.

【0004】従って、マイコン間で通信するデータが8
バイト以内であれば、1回の通信でマイコン間のデータ
の送受信を行うことができる。
Therefore, the data transmitted between the microcomputers is 8
If it is within the byte, data can be transmitted and received between the microcomputers in one communication.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、マイコ
ン間の通信により送受信すべきデータの大きさが、8バ
イトより大きい場合、マイコン間の通信を所定の回数だ
け繰り返し行わなければならず、処理が複雑になる課題
があった。
However, if the size of the data to be transmitted / received by the communication between the microcomputers is larger than 8 bytes, the communication between the microcomputers must be repeated a predetermined number of times, and the processing is complicated. There was a problem that became.

【0006】本発明はこのような状況に鑑みてなされた
ものであり、マイコン間の1回の通信で、32バイトの
データを送受信することができるようにするものであ
る。
The present invention has been made in view of the above circumstances, and it is possible to transmit and receive 32 bytes of data by one communication between microcomputers.

【0007】[0007]

【課題を解決するための手段】請求項1に記載の通信方
法は、所定のデータを記憶し、所定のジョブを実行する
複数のマイコン間で、データ通信を行う通信方法におい
て、所定の周期で電位が変化する所定のタイミング信号
を発生し、タイミング信号の電位が変化した場合におい
て、マイコン間でデータ通信が行われていないとき、マ
イコンのうち第1のマイコンに記憶された所定のデータ
を、マイコンのうち第2のマイコンにNバイト単位でシ
リアルに転送するとともに、第2のマイコンに記憶され
ている所定のデータを、第1のマイコンにNバイト単位
でシリアルに転送し、転送が終了した後、第1のマイコ
ンにおいて、最初の第1のマイコンのジョブにより、第
2のマイコンより転送された第2のマイコンの所定のデ
ータが読み出され、次に第2のマイコンに転送すべき所
定のデータが第1のマイコンに設定されるとともに、転
送が終了した後、第2のマイコンにおいて、所定のタイ
ミングで、第1のマイコンより転送された第1のマイコ
ンの所定のデータが読み出され、次に第1のマイコンに
転送すべき所定のデータが第2のマイコンに設定される
ことを特徴とする。
A communication method according to a first aspect of the present invention is a communication method for performing data communication between a plurality of microcomputers that store predetermined data and execute a predetermined job. When a predetermined timing signal whose electric potential changes is generated and the electric potential of the timing signal changes, when the data communication is not performed between the microcomputers, the predetermined data stored in the first microcomputer among the microcomputers is changed to The N-byte unit is serially transferred to the second microcomputer among the microcomputers, and the predetermined data stored in the second microcomputer is serially transferred to the first microcomputer in the N-byte unit, and the transfer is completed. Then, the first microcomputer reads the predetermined data of the second microcomputer transferred from the second microcomputer by the first job of the first microcomputer. Next, the predetermined data to be transferred to the second microcomputer is set in the first microcomputer, and after the transfer is completed, the second microcomputer transfers the first data at a predetermined timing in the second microcomputer. The predetermined data of one microcomputer is read out, and the predetermined data to be transferred to the first microcomputer is set in the second microcomputer next.

【0008】第1のマイコンと第2のマイコンとの間の
データの転送は、DMA方式により行われるようにする
ことができる。
Data transfer between the first microcomputer and the second microcomputer can be performed by the DMA method.

【0009】この転送は、32バイト単位で行うように
することができる。
This transfer can be performed in units of 32 bytes.

【0010】請求項4に記載の通信装置は、所定のデー
タを記憶し、所定のジョブを実行する複数のマイコン間
で、データ通信を行う通信装置において、所定の周期で
電位が変化する所定のタイミング信号を発生するタイミ
ング信号発生手段(例えば図1のシリアル・インタフェ
ース・ユニット12)と、タイミング信号発生手段によ
り発生されたタイミング信号の電位が変化した場合にお
いて、データ通信が行われていないとき、マイコンのう
ち第1のマイコンに記憶された所定のデータを、マイコ
ンのうち第2のマイコンにNバイト単位でシリアルに転
送するとともに、第2のマイコンに記憶された所定のデ
ータを、第1のマイコンにNバイト単位でシリアルに転
送する転送手段(例えば図1のシフトレジスタ2b,1
2b)と、転送手段による転送が終了した後、最初の第
1のマイコンのジョブにより、第2のマイコンより転送
された第2のマイコンの所定のデータが読み出され、次
に第2のマイコンに転送すべき所定のデータが第1のマ
イコンに設定されるとともに、転送が終了した後、第2
のマイコンにおいて、所定のタイミングで、第1のマイ
コンより転送された第1のマイコンの所定のデータが読
み出され、次に第1のマイコンに転送すべき所定のデー
タが第2のマイコンに設定されるデータ設定手段(例え
ば図1のバッファRAM2a,12a)とを備えること
を特徴とする。
According to a fourth aspect of the present invention, there is provided a communication device which stores predetermined data and performs data communication between a plurality of microcomputers which execute a predetermined job. When data communication is not performed when the potential of the timing signal generated by the timing signal generating means (for example, the serial interface unit 12 in FIG. 1) and the timing signal generating means for generating the timing signal changes, The predetermined data stored in the first microcomputer among the microcomputers is serially transferred to the second microcomputer among the microcomputers in units of N bytes, and the predetermined data stored in the second microcomputer is transferred to the first microcomputer. Transfer means for serially transferring to the microcomputer in units of N bytes (for example, shift registers 2b and 1 in FIG. 1)
2b), and after the transfer by the transfer means is completed, the first job of the first microcomputer reads the predetermined data of the second microcomputer transferred from the second microcomputer, and then the second microcomputer. The predetermined data to be transferred to the first microcomputer is set in the first microcomputer, and after the transfer is completed, the second data is transferred to the second microcomputer.
In the microcomputer, the predetermined data of the first microcomputer transferred from the first microcomputer is read at a predetermined timing, and the predetermined data to be transferred to the first microcomputer is set in the second microcomputer. Data setting means (for example, the buffer RAMs 2a and 12a in FIG. 1).

【0011】転送手段は、第1のマイコンと第2のマイ
コンとの間のデータの転送を、DMA方式により行うよ
うにすることができる。
The transfer means may transfer the data between the first microcomputer and the second microcomputer by the DMA method.

【0012】転送手段は、所定のデータを32バイト単
位で転送するようにすることができる。
The transfer means can transfer predetermined data in units of 32 bytes.

【0013】[0013]

【作用】請求項1または4に記載の通信方法または装置
においては、所定のタイミング信号に従って、マイコン
間で、所定のデータが32バイト単位で相互に転送され
る。従って、32バイト以下のデータは、マイコン間の
1回の通信で送受信することができる。
In the communication method or device according to the present invention, predetermined data are mutually transferred in 32-byte units between the microcomputers in accordance with a predetermined timing signal. Therefore, data of 32 bytes or less can be transmitted / received in one communication between the microcomputers.

【0014】請求項2または5に記載の通信方法または
装置においては、マイコン間のデータの転送は、DMA
方式により行われる。従って、マイコンの負荷を軽減す
ることができる。
In the communication method or apparatus according to the present invention, the data transfer between the microcomputers is performed by the DMA.
Method. Therefore, the load on the microcomputer can be reduced.

【0015】請求項3または6に記載の通信方法または
装置においては、マイコン間のデータ転送を32バイト
単位で行う。従って、効率的なデータ転送を行うことが
できる。
In the communication method or apparatus according to the third or sixth aspect, data transfer between the microcomputers is performed in units of 32 bytes. Therefore, efficient data transfer can be performed.

【0016】[0016]

【実施例】図1は、本発明の通信装置を応用したシリア
ル・インタフェース・ユニットの一実施例の構成を示す
ブロック図である。シリアル・インタフェース・ユニッ
ト(シリアル・インタフェース)2は、所定の制御プロ
グラムに従って動作し、所定のタイミング信号(CS
(Chip Select)信号、ただし、図1におい
ては、文字列CSの上部にバーを付してある)が入力さ
れるCS端子、SCK(シリアルクロック)信号(図1
においては、文字列SCKの上部にバーを付してある)
が入出力されるSCK端子、所定のデータがシリアルに
入力されるSI端子、および所定のデータがシリアルに
出力されるSO端子を備えている。
1 is a block diagram showing the configuration of an embodiment of a serial interface unit to which a communication device of the present invention is applied. The serial interface unit (serial interface) 2 operates according to a predetermined control program and has a predetermined timing signal (CS
(Chip Select) signal, however, in FIG. 1, a CS terminal to which a bar is attached above the character string CS and an SCK (serial clock) signal (FIG. 1) are input.
In, a bar is attached to the upper part of the character string SCK)
Is provided with an SCK terminal for inputting / outputting, a SI terminal for inputting predetermined data serially, and an SO terminal for outputting predetermined data serially.

【0017】また、シリアル・インタフェース2におい
て、バッファRAM2aは、32バイト分の所定のデー
タを記憶するようになされている。シフトレジスタ2b
は、SI端子よりシリアル(1ビット単位)に供給され
たデータを記憶するとともに、そこに記憶されているデ
ータをSO端子を介してシリアルに出力するようになさ
れている。また、そこに記憶されているデータを、バス
2cを介して8ビット単位で、バッファRAM2aに供
給したり、または、バッファRAM2aよりバス2cを
介して8ビット単位で所定のデータを入力するようにな
されている。
In the serial interface 2, the buffer RAM 2a is adapted to store 32 bytes of predetermined data. Shift register 2b
Stores the data serially (in 1-bit units) supplied from the SI terminal, and outputs the data stored therein serially via the SO terminal. Further, the data stored therein is supplied to the buffer RAM 2a in 8-bit units via the bus 2c, or predetermined data is input from the buffer RAM 2a in 8-bit units via the bus 2c. Has been done.

【0018】このような構成のシリアル・インタフェー
ス2は、メカ制御を行うマイコン(メカコン)1を構成
し、メカコン1の内蔵するRAM3に記憶されているデ
ータを一旦バッファRAM2aに書き込むことにより、
そのデータをSO端子から出力したり、SI端子から入
力されたデータがバッファRAM2aにロードされ、そ
れが直接アクセスされることにより、RAM3に読み出
される(DMA(ダイレクトメモリアクセス)方式)。
The serial interface 2 having such a structure constitutes a microcomputer (mechanical computer) 1 for performing mechanical control, and by temporarily writing the data stored in the RAM 3 incorporated in the mechanical computer 1 into the buffer RAM 2a,
The data is output from the SO terminal, or the data input from the SI terminal is loaded into the buffer RAM 2a and directly accessed to be read out to the RAM 3 (DMA (direct memory access) method).

【0019】シリアル・インタフェース12は、所定の
制御プログラムにより動作し、CS信号を出力するCS
1端子、SCK信号が入出力されるSCK端子、所定の
データがシリアルに入力されるSI端子、および所定の
データがシリアルに出力されるSO端子を備えている。
The serial interface 12 operates according to a predetermined control program and outputs a CS signal.
It has one terminal, an SCK terminal for inputting / outputting an SCK signal, an SI terminal for serially inputting predetermined data, and an SO terminal for serially outputting predetermined data.

【0020】また、シリアル・インタフェース12にお
いて、バッファRAM12aは、32バイト分の所定の
データを記憶するようになされている。シフトレジスタ
12bは、SI端子よりシリアルに供給されたデータを
記憶するとともに、そこに記憶されているデータをSO
端子を介してシリアルに出力するようになされている。
また、そこに記憶されているデータを、バス12cを介
して8ビット単位で、バッファRAM12aに供給した
り、または、バッファRAM12aよりバス12cを介
して8ビット単位で所定のデータを入力するようになさ
れている。
In the serial interface 12, the buffer RAM 12a is adapted to store 32 bytes of predetermined data. The shift register 12b stores the data serially supplied from the SI terminal, and stores the data stored therein in the SO
It is designed to output serially through the terminal.
Further, the data stored therein is supplied to the buffer RAM 12a in 8-bit units via the bus 12c, or predetermined data is input from the buffer RAM 12a in 8-bit units via the bus 12c. Has been done.

【0021】このシリアル・インタフェース12は、ヒ
ューマンインタフェースに関する処理、例えば、ユーザ
により操作されたキーを検出し、対応するモード(早送
り、再生、または巻戻しモード等)で所定の処理を行う
マイコン(モードコン)11を構成し、モードコン11
の内蔵するRAM13に記憶されているデータを一旦バ
ッファRAM12aに書き込むことにより、そのデータ
をSO端子から出力したり、SI端子から入力されたデ
ータがバッファRAM12aにロードされ、それが直接
アクセスされることにより、RAM13に読み出される
ようになされている(DMA方式)。
The serial interface 12 is a microcomputer (mode) which performs a process related to a human interface, for example, a key operated by a user is detected and a predetermined process is performed in a corresponding mode (fast forward, reproduction, rewind mode, etc.). 11), and mode con 11
By temporarily writing the data stored in the built-in RAM 13 in the buffer RAM 12a, the data is output from the SO terminal, or the data input from the SI terminal is loaded into the buffer RAM 12a and directly accessed. , Are read out to the RAM 13 (DMA method).

【0022】メカコン1からモードコン11に転送され
るデータは、例えば機器の状態を示すデータであり、モ
ードコン11からメカコン1に転送されるデータは、例
えば現在のモードを示すデータである。
The data transferred from the mechanical control unit 1 to the mode control unit 11 is, for example, data indicating the state of the device, and the data transferred from the mode control unit 11 to the mechanical control unit 1 is, for example, data indicating the current mode.

【0023】次に、図2に示したタイムチャート、図3
に示したシリアル・インタフェース2の詳細なブロック
図、図4に示したシフトレジスタ2b,12bの詳細な
図、および、図5、図6に示したバッファRAM2a,
12aの図を参照して、その動作を説明する。
Next, the time chart shown in FIG. 2 and FIG.
5 is a detailed block diagram of the serial interface 2 shown in FIG. 4, a detailed diagram of the shift registers 2b and 12b shown in FIG. 4, and the buffer RAM 2a shown in FIGS.
The operation will be described with reference to FIG.

【0024】モードコン11のシリアル・インタフェー
ス12は、1フィールド期間(NTSC方式の場合1
6.67ms(ミリ秒)、PAL方式の場合20ms)
の周期を有する同期信号を基準として、所定のタイミン
グ信号CSを発生し、それをCS1端子を介してメカコ
ン1を構成するシリアル・インタフェース2のCS端子
に供給する。また、モードコン11のシリアル・インタ
フェース12は、所定のSCK信号を発生し、SCK端
子を介して、メカコン1のシリアル・インタフェース2
に供給する。
The serial interface 12 of the mode controller 11 has one field period (1 in the case of the NTSC system).
6.67ms (millisecond), 20ms in case of PAL system)
A predetermined timing signal CS is generated on the basis of the synchronization signal having the period of, and is supplied to the CS terminal of the serial interface 2 constituting the mechanical controller 1 via the CS1 terminal. Further, the serial interface 12 of the mode controller 11 generates a predetermined SCK signal, and the serial interface 2 of the mechanical controller 1 is supplied via the SCK terminal.
Supply to.

【0025】シリアル・インタフェース2を制御する制
御プログラムは、自動転送スタートフラグ、および転送
終了フラグを設定し、最初、自動転送スタートフラグを
オンにする。
The control program for controlling the serial interface 2 sets an automatic transfer start flag and a transfer end flag, and first turns on the automatic transfer start flag.

【0026】次に、RAM3に記憶されているモードコ
ン11に転送すべきデータD1乃至D32が、シリアル・
インタフェース2のバッファRAM2aの所定のアドレ
スN乃至(N+31)に、バス4を介してそれぞれ供給
される。一方、モードコン11においても同様に、RA
M13に記憶されているメカコン1に転送すべきデータ
1乃至d32が、バッファRAM12aの所定のアドレ
スN乃至(N+31)に、バス14を介してそれぞれ供
給される。そして、転送終了フラグがオフにされる。
Next, the data D 1 to D 32 to be transferred to the mode controller 11 stored in the RAM 3 are serial data.
It is supplied to predetermined addresses N to (N + 31) of the buffer RAM 2a of the interface 2 via the bus 4. On the other hand, similarly in the mode controller 11, RA
Data d 1 to d 32 stored in M13 to be transferred to the mechanical controller 1 are supplied to predetermined addresses N to (N + 31) of the buffer RAM 12a via the bus 14, respectively. Then, the transfer end flag is turned off.

【0027】この状態で、CS信号が所定の基準電位よ
り低いLレベルに変化すると(図2の時刻T1)、シリ
アル・インタフェース2,12は所定の動作を開始す
る。メカコン1においては、図3に示すように、バッフ
ァRAM2aのアドレスNに記憶されたデータD1(8
ビット)が、シフトレジスタ2bにバス2cを介して供
給される。一方、モードコン11においては、バッファ
RAM12aのアドレスNに記憶されたデータd1(8
ビット)が、シフトレジスタ12bにバス12cを介し
て供給される。
In this state, when the CS signal changes to the L level lower than the predetermined reference potential (time T1 in FIG. 2), the serial interfaces 2 and 12 start the predetermined operation. In the mechanical controller 1, as shown in FIG. 3, the data D 1 (8
Bits) are supplied to the shift register 2b via the bus 2c. On the other hand, in the mode controller 11, the data d 1 (8
Bits) are supplied to the shift register 12b via the bus 12c.

【0028】即ち、シリアル・インタフェース2におい
ては、図4に示すように、シフトレジスタ2bに記憶さ
れたデータD1(ビットデータD10乃至D17により構成
される)が、モードコン11より供給されるSCK信号
に同期して、1ビットずつSO端子を介してシリアル・
インタフェース12に出力されるとともに、シリアル・
インタフェース12のシフトレジスタ12bより、SO
端子を介して出力され、シリアル・インタフェース2の
SI端子を介して入力されたデータd1が、シフトレジ
スタ2bに記憶される。
That is, in the serial interface 2, as shown in FIG. 4, the data D 1 (composed of bit data D 10 to D 17 ) stored in the shift register 2b is supplied from the mode controller 11. Serially through the SO pin bit by bit in synchronization with the SCK signal
Output to the interface 12 and serial
From the shift register 12b of the interface 12, the SO
The data d 1 output via the terminal and input via the SI terminal of the serial interface 2 is stored in the shift register 2b.

【0029】即ち、シリアル・インタフェース2のシフ
トレジスタ2bより、データD1を構成するD10乃至D
17が、シリアル・インタフェース12のシフトレジスタ
12bに転送され、シリアル・インタフェース12のシ
フトレジスタ12bに記憶されているデータd1を構成
するビットデータd10乃至d17が、シリアル・インタフ
ェース2のシフトレジスタ2bに転送される。
That is, the shift register 2b of the serial interface 2 is used to form the data D 1 from D 10 to D 10.
17 is transferred to the shift register 12b of the serial interface 12, and the bit data d 10 to d 17 forming the data d 1 stored in the shift register 12b of the serial interface 12 are the shift registers of the serial interface 2. 2b.

【0030】図4においては、シリアル・インタフェー
ス2のシフトレジスタ2bに記憶されているデータD1
のうちの4ビット分だけが、シリアル・インタフェース
12のシフトレジスタ12bに供給され、シリアル・イ
ンタフェース12のシフトレジスタ12bに記憶されて
いるデータd1のうちの4ビット分だけが、シリアル・
インタフェース12のシフトレジスタ12bに供給され
た状態を示している。
In FIG. 4, the data D 1 stored in the shift register 2b of the serial interface 2 is stored.
Of the data d 1 stored in the shift register 12b of the serial interface 12 is supplied to the shift register 12b of the serial interface 12.
The state of being supplied to the shift register 12b of the interface 12 is shown.

【0031】次に、シフトレジスタ2bに供給されたデ
ータd1は、バス2cを介して、バッファRAM2aに
供給され、バッファRAM2aのアドレスNに書き込ま
れる。その結果、図5に示すように、バッファRAM2
aのアドレスNにはデータd1が記憶され、アドレス
(N+1)乃至(N+31)には、データD2乃至D32
が記憶された状態となる。
Next, the data d 1 supplied to the shift register 2b is supplied to the buffer RAM 2a via the bus 2c and written in the address N of the buffer RAM 2a. As a result, as shown in FIG.
Data d 1 is stored in the address N of a, and data D 2 to D 32 are stored in the addresses (N + 1) to (N + 31).
Will be stored.

【0032】データD2乃至D32、およびデータd2乃至
32のそれぞれについても、上述した場合と同様にし
て、バッファRAM2aより、シフトレジスタ2b,1
2bを介して、バッファRAM12aに転送することが
できる。図6は、このようにして、バッファRAM12
aに記憶されていたデータd1乃至d32が、バッファR
AM2aに転送された状態を示している。
For each of the data D 2 to D 32 and the data d 2 to d 32 , the shift registers 2b, 1 are transferred from the buffer RAM 2a in the same manner as described above.
It can be transferred to the buffer RAM 12a via 2b. FIG. 6 shows the buffer RAM 12 in this way.
The data d 1 to d 32 stored in a are stored in the buffer R
The state of being transferred to the AM 2a is shown.

【0033】シリアル・インタフェース2は、データの
転送が終了すると、所定の転送終了割り込みを発生し、
自動転送スタートフラグが自動的にオフにされる。転送
終了割り込みにより、所定のシステムプログラムが起動
され、転送終了フラグがオンにされる。
When the data transfer ends, the serial interface 2 generates a predetermined transfer end interrupt,
The automatic transfer start flag is automatically turned off. A predetermined system program is activated by the transfer end interrupt, and the transfer end flag is turned on.

【0034】メカコン1の所定のジョブが起動された場
合(図2の時刻T3)において、転送終了フラグがオン
にされているとき、このジョブは、モードコン11よ
り、シフトレジスタ2bを介して、バッファRAM2a
に転送されたデータd1乃至d3 2を、RAM3に取り込
むデータ取り込み処理を実行する(図2の時刻T4)。
データ取り込み処理が終了すると、このジョブは、自動
転送スタートフラグをオンにする(図2の時刻T5)。
これにより、次にCS信号がLレベルに変化した場合に
おいて、次の転送処理の開始を可能にする。
When a predetermined job of Mechacon 1 is started
(Time T3 in FIG. 2), the transfer end flag is turned on.
When this is set, this job is mode con 11
The buffer RAM 2a via the shift register 2b.
Data transferred to1Through d3 2To RAM3
The data acquisition process is executed (time T4 in FIG. 2).
When the data acquisition process is completed, this job will
The transfer start flag is turned on (time T5 in FIG. 2).
As a result, when the CS signal changes to the L level next time,
Then, the next transfer process can be started.

【0035】次に、このジョブは、RAM3に記憶され
ている、次にモードコン11に転送すべき所定のデータ
を、バッファRAM2aに書き込むデータ構築処理を実
行する。データ構築処理が終了すると、転送終了フラグ
をオフにする。
Next, this job executes a data construction process for writing in the buffer RAM 2a the predetermined data stored in the RAM 3 and to be transferred to the mode controller 11 next. When the data construction process ends, the transfer end flag is turned off.

【0036】このようにして、メカコン1から、モード
コン11へのデータ転送が順次実行される。
In this way, data transfer from the mechanical controller 1 to the mode controller 11 is sequentially executed.

【0037】なお、上記実施例においては、マイコン間
の1回の通信で、32バイト分のデータを相互に転送す
るようにしたが、32バイト以下の任意の大きさのデー
タを転送するようにすることもできる。
In the above embodiment, 32 bytes of data are mutually transferred in one communication between the microcomputers, but data of any size of 32 bytes or less may be transferred. You can also do it.

【0038】また、上記実施例においては、マイコン間
の1回の通信で、32バイト分のデータを相互に転送す
るようにしたが、バッファRAMの記憶容量を大きく
し、32バイト以上のバイト数を転送するようにするこ
とも可能である。
Further, in the above embodiment, 32 bytes of data are mutually transferred in one communication between the microcomputers. However, the storage capacity of the buffer RAM is increased to increase the number of bytes of 32 bytes or more. It is also possible to transfer.

【0039】さらに、上記実施例においては、8ビット
の大きさのシフトレジスタを用いるようにしたが、その
他の大きさのシフトレジスタを用いるようにすることも
可能である。
Further, in the above embodiment, the shift register having a size of 8 bits is used, but it is also possible to use the shift register having another size.

【0040】[0040]

【発明の効果】請求項1または4に記載の通信方法また
は装置によれば、所定のタイミング信号に従って、マイ
コン間で、所定のデータがNバイト単位で転送されるよ
うにしたので、Nバイト以下の所定のデータの場合、マ
イコン間の1回の通信で転送することができる。従っ
て、マイコン間の通信における処理を簡単にし、効率を
上げることが可能となる。
According to the communication method or apparatus of the first or fourth aspect of the present invention, the predetermined data is transferred in N-byte units between the microcomputers according to the predetermined timing signal. In the case of the predetermined data, the data can be transferred by one communication between the microcomputers. Therefore, it is possible to simplify the processing in communication between the microcomputers and improve the efficiency.

【0041】請求項2または5に記載の通信方法または
装置によれば、マイコン間のデータの転送は、DMA方
式により行われるようにしたので、マイコンの負荷を軽
減することができる。従って、マイコンの処理性能を上
げることが可能となる。
According to the communication method or apparatus of the second or fifth aspect, since the data transfer between the microcomputers is performed by the DMA method, the load on the microcomputers can be reduced. Therefore, the processing performance of the microcomputer can be improved.

【0042】請求項3または6に記載の通信方法または
装置によれば、マイコン間のデータ転送を32バイト単
位で行うようにしたので、効率的なデータ転送を行うこ
とができる。従って、装置の処理性能を上げることがで
きる。
According to the communication method or apparatus of the third or sixth aspect, since data transfer between the microcomputers is performed in units of 32 bytes, efficient data transfer can be performed. Therefore, the processing performance of the device can be improved.

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

【図1】本発明の通信装置を応用したシリアル・インタ
フェース・ユニットの一実施例の構成を示す図である。
FIG. 1 is a diagram showing a configuration of an embodiment of a serial interface unit to which a communication device of the present invention is applied.

【図2】図1に示したシリアル・インタフェース・ユニ
ットの動作を示すタイムチャートである。
FIG. 2 is a time chart showing the operation of the serial interface unit shown in FIG.

【図3】図1に示したシリアル・インタフェース・ユニ
ット2の動作を説明するための図である。
FIG. 3 is a diagram for explaining the operation of the serial interface unit 2 shown in FIG.

【図4】図1に示したメカコン1のシフトレジスタ2b
と、モードコン11のシフトレジスタ12bの動作を説
明するための図である。
FIG. 4 is a shift register 2b of the mechanical controller 1 shown in FIG.
6A and 6B are diagrams for explaining the operation of the shift register 12b of the mode controller 11.

【図5】図3に示したバッファRAM2aに、所定タイ
ミングにおいて記憶されているデータを示す図である。
5 is a diagram showing data stored in a buffer RAM 2a shown in FIG. 3 at a predetermined timing.

【図6】データ転送終了時において、バッファRAM2
aに記憶されているデータを示す図である。
FIG. 6 shows a buffer RAM 2 at the end of data transfer.
It is a figure which shows the data memorize | stored in a.

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

1 メカコン 2 シリアル・インタフェース・ユニット 2a バッファRAM 2b シフトレジスタ 2c バス 3 RAM 4 バス 11 モードコン 12 シリアル・インタフェース・ユニット 12a バッファRAM 12b シフトレジスタ 12c バス 13 RAM 14 バス 1 Mechacon 2 Serial Interface Unit 2a Buffer RAM 2b Shift Register 2c Bus 3 RAM 4 Bus 11 Modecon 12 Serial Interface Unit 12a Buffer RAM 12b Shift Register 12c Bus 13 RAM 14 Bus

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 所定のデータを記憶し、所定のジョブを
実行する複数のマイコン間で、データ通信を行う通信方
法において、 所定の周期で電位が変化する所定のタイミング信号を発
生し、 前記タイミング信号の前記電位が変化した場合におい
て、前記マイコン間で前記データ通信が行われていない
とき、前記マイコンのうち第1のマイコンに記憶された
所定のデータを、前記マイコンのうち第2のマイコンに
Nバイト単位でシリアルに転送するとともに、前記第2
のマイコンに記憶されている所定のデータを、前記第1
のマイコンにNバイト単位でシリアルに転送し、 前記転送が終了した後、前記第1のマイコンにおいて、
最初の前記第1のマイコンのジョブにより、前記第2の
マイコンより転送された前記第2のマイコンの前記所定
のデータが読み出され、次に前記第2のマイコンに転送
すべき所定のデータが前記第1のマイコンに設定される
とともに、 前記転送が終了した後、前記第2のマイコンにおいて、
所定のタイミングで、前記第1のマイコンより転送され
た前記第1のマイコンの前記所定のデータが読み出さ
れ、次に前記第1のマイコンに転送すべき所定のデータ
が前記第2のマイコンに設定されることを特徴とする通
信方法。
1. A communication method for performing data communication between a plurality of microcomputers that store predetermined data and execute a predetermined job, wherein a predetermined timing signal for changing a potential at a predetermined cycle is generated, When the potential of the signal changes and the data communication is not performed between the microcomputers, the predetermined data stored in the first microcomputer of the microcomputers is transferred to the second microcomputer of the microcomputers. The data is transferred serially in units of N bytes and the second
The predetermined data stored in the microcomputer of
Serially transferred to the microcomputer of N byte unit, and after the transfer is completed, in the first microcomputer,
By the first job of the first microcomputer, the predetermined data of the second microcomputer transferred from the second microcomputer is read, and then the predetermined data to be transferred to the second microcomputer is read. After being set to the first microcomputer and after the transfer is completed, in the second microcomputer,
The predetermined data of the first microcomputer transferred from the first microcomputer is read at a predetermined timing, and the predetermined data to be transferred to the first microcomputer next is transferred to the second microcomputer. A communication method characterized by being set.
【請求項2】 前記第1のマイコンと前記第2のマイコ
ンとの間の前記データの転送は、DMA方式により行わ
れることを特徴とする請求項1に記載の通信方法。
2. The communication method according to claim 1, wherein the transfer of the data between the first microcomputer and the second microcomputer is performed by a DMA method.
【請求項3】 前記転送は、32バイト単位で行われる
ことを特徴とする請求項1または2に記載の通信方法。
3. The communication method according to claim 1, wherein the transfer is performed in units of 32 bytes.
【請求項4】 所定のデータを記憶し、所定のジョブを
実行する複数のマイコン間で、データ通信を行う通信装
置において、 所定の周期で電位が変化する所定のタイミング信号を発
生するタイミング信号発生手段と、 前記タイミング信号発生手段により発生された前記タイ
ミング信号の前記電位が変化した場合において、前記デ
ータ通信が行われていないとき、前記マイコンのうち第
1のマイコンに記憶された所定のデータを、前記マイコ
ンのうち第2のマイコンにNバイト単位でシリアルに転
送するとともに、前記第2のマイコンに記憶された所定
のデータを、前記第1のマイコンにNバイト単位でシリ
アルに転送する転送手段と、 前記転送手段による前記転送が終了した後、最初の前記
第1のマイコンのジョブにより、前記第2のマイコンよ
り転送された前記第2のマイコンの前記所定のデータが
読み出され、次に前記第2のマイコンに転送すべき所定
のデータが前記第1のマイコンに設定されるとともに、 前記転送が終了した後、前記第2のマイコンにおいて、
所定のタイミングで、前記第1のマイコンより転送され
た前記第1のマイコンの前記所定のデータが読み出さ
れ、次に前記第1のマイコンに転送すべき所定のデータ
が前記第2のマイコンに設定されるデータ設定手段とを
備えることを特徴とする通信装置。
4. A timing signal generator for generating a predetermined timing signal for changing a potential in a predetermined cycle in a communication device for storing data and performing data communication between a plurality of microcomputers for executing a predetermined job. And a predetermined data stored in the first microcomputer among the microcomputers when the data communication is not performed when the potential of the timing signal generated by the timing signal generator changes. A transfer means for serially transferring to the second microcomputer of the microcomputer in units of N bytes, and for transferring predetermined data stored in the second microcomputer to the first microcomputer in units of N bytes. And after the transfer by the transfer means is completed, the second job is executed by the first job of the first microcomputer. The predetermined data transferred from the second microcomputer is read out, predetermined data to be transferred to the second microcomputer next is set in the first microcomputer, and the transfer ends. After that, in the second microcomputer,
The predetermined data of the first microcomputer transferred from the first microcomputer is read at a predetermined timing, and the predetermined data to be transferred to the first microcomputer next is transferred to the second microcomputer. A communication device comprising: a data setting unit to be set.
【請求項5】 前記転送手段は、前記第1のマイコンと
前記第2のマイコンとの間の前記データの転送を、DM
A方式により行うことを特徴とする請求項4に記載の通
信装置。
5. The transfer means DM transfers the data between the first microcomputer and the second microcomputer.
The communication device according to claim 4, wherein the communication is performed by the A system.
【請求項6】 前記転送手段は、前記所定のデータを3
2バイト単位で転送することを特徴とする請求項4また
は5に記載の通信装置。
6. The transfer means stores the predetermined data in 3
The communication device according to claim 4, wherein data is transferred in units of 2 bytes.
JP6257984A 1994-10-24 1994-10-24 Method and equipment for communication Pending JPH08123774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6257984A JPH08123774A (en) 1994-10-24 1994-10-24 Method and equipment for communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6257984A JPH08123774A (en) 1994-10-24 1994-10-24 Method and equipment for communication

Publications (1)

Publication Number Publication Date
JPH08123774A true JPH08123774A (en) 1996-05-17

Family

ID=17313937

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6257984A Pending JPH08123774A (en) 1994-10-24 1994-10-24 Method and equipment for communication

Country Status (1)

Country Link
JP (1) JPH08123774A (en)

Similar Documents

Publication Publication Date Title
US20040107265A1 (en) Shared memory data transfer apparatus
JP2001084229A (en) Simd-type processor
JPS62256089A (en) Picture processor
KR100348545B1 (en) Communication dma device
US5430853A (en) Update of control parameters of a direct memory access system without use of associated processor
JPH08123774A (en) Method and equipment for communication
JPS62173526A (en) Page buffer control system
JPH0756803A (en) High-speed dma transfer device
JPH07271656A (en) Image data processing system
JPS58184188A (en) Reading and writting system of display data
JPS63223943A (en) Direct memory access control system
JPH0567035A (en) Data alignment system for dma transfer
JPH09146901A (en) Program transfer system
JPH081634B2 (en) Data transfer device
JP2608286B2 (en) Data transfer device
JPH0683760A (en) Data transfer device
JPS6019023B2 (en) data processing equipment
JPS6294042A (en) Communication control equipment
JPH1040026A (en) Data transfer device
JPH0520165A (en) System bus controller
JPS61851A (en) Data chain system of direct memory access circuit
JP2001175585A (en) Device and method for transferring data
JPS6228874A (en) Data transfer system
JPH03294951A (en) High speed data transfer system in personal computer system
JPS6275485A (en) Display unit

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040701

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040708

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041102