JPS6285360A - Serial data input/output circuit - Google Patents
Serial data input/output circuitInfo
- Publication number
- JPS6285360A JPS6285360A JP60226517A JP22651785A JPS6285360A JP S6285360 A JPS6285360 A JP S6285360A JP 60226517 A JP60226517 A JP 60226517A JP 22651785 A JP22651785 A JP 22651785A JP S6285360 A JPS6285360 A JP S6285360A
- Authority
- JP
- Japan
- Prior art keywords
- clock
- data
- program
- signal
- circuit
- 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
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、例えばワンチップマイクロコンピュータ等
において他のコンピュータ等の素子にデータを転送する
際などに用いられるシリアルデータ入出力回路に関する
。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a serial data input/output circuit used, for example, in a one-chip microcomputer or the like to transfer data to an element of another computer or the like.
データ転送方法には、クロックに同期してデータをシリ
アルに転送するシリアル転送方法と、データをパラレル
に転送するパラレル転送方法とがあるが、このうち、マ
イクロコンピュータ間の転送等にはシリアル転送方式が
一般に用いら扛る。Data transfer methods include a serial transfer method that transfers data serially in synchronization with a clock, and a parallel transfer method that transfers data in parallel. Of these, the serial transfer method is used for transfer between microcomputers, etc. is commonly used.
従来、この種の転送は例えば第4図に示すような回路構
成で行なわれていた。すなわち、8ビツトのデータセッ
ト回路1によシ、送るべきデータを8ビツトのシフトレ
ジスタ2にセットする。一方、クロック信号発生回路3
からクロック信号CKを8ビツトのシフトレジスタ2に
入力させ、同時にデータ信号DAとクロック信号CKと
を外部に出力させる。このような構成を用いることによ
シ、データをセットした後にクロック信号を発生させる
ことによってデータをクロックと同期してシリアルに転
送することができる。Conventionally, this type of transfer has been performed using a circuit configuration as shown in FIG. 4, for example. That is, the 8-bit data set circuit 1 sets the data to be sent in the 8-bit shift register 2. On the other hand, clock signal generation circuit 3
The clock signal CK is input to the 8-bit shift register 2, and at the same time, the data signal DA and the clock signal CK are output to the outside. By using such a configuration, data can be serially transferred in synchronization with the clock by generating a clock signal after setting the data.
このように従来のシリアル転送方法におけるクロック信
号の発生は、純粋にハードウェア上の構成で行なってい
るために各株の制限があった。例えば、送信側と受信側
のマイクロコンピュータをつなぐ線が長い時は、クロッ
ク速度を遅くする必要がある。また、データおよびクロ
ック信号を受ifる側のマイクロコンピュータの受信速
度に合うクロック信号の速度をもったマイクロコンピュ
ータを送信側として選択する必要がある。As described above, since the generation of the clock signal in the conventional serial transfer method is performed purely by a hardware configuration, there are limitations for each stock. For example, when the line connecting the sending and receiving microcomputers is long, the clock speed needs to be slowed down. Furthermore, it is necessary to select a microcomputer on the transmitting side that has a clock signal speed that matches the receiving speed of the microcomputer on the receiving side of data and clock signals.
この発明は上記のような問題点を解消するためになさ扛
たもので、クロック速度を自任に変化させることができ
るシリアルデータ入出力回路を得ることを目的とする。The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a serial data input/output circuit that can arbitrarily change the clock speed.
この発明は、マイクロプロセッサ等のプロセッサユニッ
トによるプログラム上の所定の命令の実行としてクロッ
)発生回路を起動させ、クロックパルスを発生させるよ
うにしたものである。In this invention, a clock generation circuit is activated as a predetermined instruction on a program is executed by a processor unit such as a microprocessor, and a clock pulse is generated.
プログラムを変更して上記命令の実行サイクルを変化さ
せnばクロック速度は変化する。If the program is changed to change the execution cycle of the above instructions, the clock speed will change.
以下、この発明の一実施例を図について説明する。第2
図に示すように、lチップマイクロコンピュータ11の
データを他のマイクロコンピュータ12に転送する場合
を考える。データ信号DAは、クロック信号CKに同期
した形で送ら扛る。An embodiment of the present invention will be described below with reference to the drawings. Second
As shown in the figure, consider the case where data from an l-chip microcomputer 11 is transferred to another microcomputer 12. Data signal DA is sent in synchronization with clock signal CK.
つま夛、第3図に示すように、クロック信号CKの1パ
ルスに対してデータ信号DAの1ビツト(11″または
%ol)を送るようにする。図示の例の場合は、8クロ
ツクに対して8個のデータを送ることが出来る。In summary, as shown in Figure 3, one bit (11'' or %ol) of the data signal DA is sent for one pulse of the clock signal CK. It is possible to send 8 pieces of data.
このデータ信号DAとクロック信号CKを得るために、
マイクロコンビエータ11は第1図に示すような構成を
有している。もちろん、因はこの発明の説明に必要な要
素に限って図示したものである。In order to obtain this data signal DA and clock signal CK,
The micro combinator 11 has a configuration as shown in FIG. Of course, only the elements necessary for explaining the invention are illustrated.
第1図において、101はプロセッサユニット(CPU
)、102はプログラムおよび固定データを格納した固
定メモリ(ROM)、103は可変データを記憶する可
変メモリ(RAM)であり、104は出力ボートを介し
てCPU101と接続さnたクロック発生回路、105
は前述したと同様の8ビツトシフトレジスタである。1
06は同じく8ビツトデータセット回路で、入出力ボー
トを介してcPUlolと接続さ扛ている。In FIG. 1, 101 is a processor unit (CPU
), 102 is a fixed memory (ROM) that stores programs and fixed data, 103 is a variable memory (RAM) that stores variable data, 104 is a clock generation circuit connected to the CPU 101 via an output port, 105
is an 8-bit shift register similar to that described above. 1
06 is also an 8-bit data set circuit and is connected to cPUlol via an input/output port.
CPU101は、予めROM102に格納さnたプログ
ラムデータをロードし、当該プログラムに従り行に移行
すると、CPU101はクロック信号CKを%IJ
または10′とするようにクロック発生回路104に制
御信号を送シ、クロックパルスを発生させる。また、C
PUIQIは同じくプログラム上の命令に従い、転送す
べきデータをデータセット回路106に入力する。入力
さnたデータはシフトレジスタ105に転送され、上記
クロック信号に同期したデータ信号DAとして送シ出さ
れる。The CPU 101 loads the program data previously stored in the ROM 102, and when the program moves to the row according to the program, the CPU 101 changes the clock signal CK to %IJ.
or 10', a control signal is sent to the clock generation circuit 104 to generate a clock pulse. Also, C
Similarly, PUIQI inputs data to be transferred to the data set circuit 106 in accordance with instructions on the program. The input data is transferred to the shift register 105 and sent out as a data signal DA synchronized with the clock signal.
CPU 101は、上記処理、またその他の処理のため
にも各種の演算命令等を上記プログラムに従って実行し
、そのためにRAM103との間で各種のデータの授受
が行なわれる。The CPU 101 executes various arithmetic instructions and the like for the above processing and other processing according to the above programs, and for this purpose, various data are exchanged with the RAM 103.
ここで、ROM 102に格納するプログラム上でクロ
ック信号の発生、っまシクロツク発生回路104の制御
に関するデータを変更するのみで、クロック信号の周期
は自在に変化させることができる。Here, the period of the clock signal can be freely changed by simply changing the data regarding the generation of the clock signal and the control of the clock generation circuit 104 on the program stored in the ROM 102.
したがって、受信側のマイクロコンピュータ12がどの
ような受信速度を有するものであっても、マイクロコン
ビエータ11からのデータの転送が可能である。Therefore, data can be transferred from the microcombiator 11 no matter what reception speed the microcomputer 12 on the receiving side has.
以上、送信の場合について説明したが、受信の場合も同
様で、この発明のデータ入出力回路によnば、送信側か
らどのようなりロック速度で送ら扛てくるデータ信号で
も、予めプログラム上のデータを七扛に合せて設定する
ことで正常に受信できる。Although the case of transmission has been explained above, the case of reception is also the same, and according to the data input/output circuit of the present invention, no matter what lock speed the data signal is sent from the transmitting side, it can be processed in advance according to the program. By setting the data according to the seven patterns, it can be received correctly.
以上のように、この発明によ扛は、シリアルデータ入出
力用のクロック信号をプログラム上の所定の命令の実行
として、つまυソフトウェアにより発生させるため、ど
のようなシステムにでも容易に合せることができ、ハー
ドウェア的な制約から解放さ扛る効果がある。As described above, according to the present invention, the clock signal for serial data input/output is generated by software as the execution of a predetermined command on the program, so it can be easily adapted to any system. This has the effect of freeing you from hardware constraints.
第1図ないし第3図は本発明の一実施例を示す図で、第
1図はマイクロコンピュータの構成を示すブロック図、
第2図はデータ転送を行なうマイクロコンピュータ間の
接続を示すブロック図、第3図はシリアル転送されるデ
ータ信号とクロック信号との関係を示すタイミングチャ
ート、第4図は従来例を示すブロック図である。
11.12・・Φ・マイクロコンピュータ、101−・
・・プロセッサユニット(CPU)、102・・・・プ
ログラムを格納した固定メモリ(ROM)、104@・
φ・クロック発生回路、105・・・・シフトレジスタ
、106・・・Φデータセット回路。1 to 3 are diagrams showing one embodiment of the present invention, and FIG. 1 is a block diagram showing the configuration of a microcomputer;
Figure 2 is a block diagram showing connections between microcomputers that perform data transfer, Figure 3 is a timing chart showing the relationship between serially transferred data signals and clock signals, and Figure 4 is a block diagram showing a conventional example. be. 11.12...Φ・Microcomputer, 101-・
... Processor unit (CPU), 102 ... Fixed memory (ROM) that stores the program, 104@.
φ/clock generation circuit, 105...shift register, 106...φ data set circuit.
Claims (1)
るクロック信号に同期させてデータを入出力するシリア
ルデータ入出力回路において、予め格納されたプログラ
ムに従つて命令を実行するプロセッサユニットを備え、
プログラム上の所定の命令の実行としてクロック発生回
路を起動させクロックパルスを発生させるようにしたこ
とを特徴とするシリアルデータ入出力回路。A serial data input/output circuit that inputs and outputs data in synchronization with a clock signal sent from a clock generation circuit using a shift register, and includes a processor unit that executes instructions according to a prestored program,
A serial data input/output circuit characterized in that a clock generation circuit is activated to generate clock pulses as a predetermined instruction on a program is executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60226517A JPS6285360A (en) | 1985-10-09 | 1985-10-09 | Serial data input/output circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60226517A JPS6285360A (en) | 1985-10-09 | 1985-10-09 | Serial data input/output circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6285360A true JPS6285360A (en) | 1987-04-18 |
Family
ID=16846367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP60226517A Pending JPS6285360A (en) | 1985-10-09 | 1985-10-09 | Serial data input/output circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6285360A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5498145A (en) * | 1978-01-20 | 1979-08-02 | Toshiba Corp | Communication control system |
JPS54109733A (en) * | 1978-02-16 | 1979-08-28 | Casio Comput Co Ltd | Synchronous control system for interface device |
JPS58140840A (en) * | 1982-02-15 | 1983-08-20 | Hitachi Ltd | Baud rate controller |
-
1985
- 1985-10-09 JP JP60226517A patent/JPS6285360A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5498145A (en) * | 1978-01-20 | 1979-08-02 | Toshiba Corp | Communication control system |
JPS54109733A (en) * | 1978-02-16 | 1979-08-28 | Casio Comput Co Ltd | Synchronous control system for interface device |
JPS58140840A (en) * | 1982-02-15 | 1983-08-20 | Hitachi Ltd | Baud rate controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA1321030C (en) | Programmable data transfer timing | |
CA2002895A1 (en) | Arithmetic unit | |
JPS6285360A (en) | Serial data input/output circuit | |
JPS62168415A (en) | Inter-latch transmission system | |
JPS62160564A (en) | Pipeline control system | |
SU458829A1 (en) | Computer system synchronization device | |
JPH0399354A (en) | Bus controller | |
JPH05342172A (en) | Multiprocessor system | |
JP2542802B2 (en) | Data output circuit | |
KR920002665B1 (en) | A method for generating local bus cycle in multi processing system | |
JP2818412B2 (en) | Counting circuit | |
JPS6313558Y2 (en) | ||
JPS60225269A (en) | Data transfer system | |
JPS62250580A (en) | Memory controller | |
JPH01128152A (en) | Serial i/o circuit | |
JPS59176863A (en) | Timer synchronizing system | |
JPH02280263A (en) | Microprocessor | |
JPH0318958A (en) | Multiprocessor system | |
JPH07230304A (en) | Dual control method for pc system | |
JPS63271635A (en) | High-speed arithmetic processor | |
JPH01145758A (en) | Time synchronizing system for multisystem computer system | |
JPS59121456A (en) | Microprocessor circuit | |
JPH01166203A (en) | Programmable controller | |
JPH03156555A (en) | Bus control system | |
JPS59138147A (en) | Data transmitter |