JPH06274441A - Serial interface for cpu - Google Patents
Serial interface for cpuInfo
- Publication number
- JPH06274441A JPH06274441A JP6049293A JP6049293A JPH06274441A JP H06274441 A JPH06274441 A JP H06274441A JP 6049293 A JP6049293 A JP 6049293A JP 6049293 A JP6049293 A JP 6049293A JP H06274441 A JPH06274441 A JP H06274441A
- Authority
- JP
- Japan
- Prior art keywords
- address
- serial
- data
- cpu
- parallel
- 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
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 description 33
- 102100023882 Endoribonuclease ZC3H12A Human genes 0.000 description 12
- 101710112715 Endoribonuclease ZC3H12A Proteins 0.000 description 12
- QGVYYLZOAMMKAH-UHFFFAOYSA-N pegnivacogin Chemical compound COCCOC(=O)NCCCCC(NC(=O)OCCOC)C(=O)NCCCCCCOP(=O)(O)O QGVYYLZOAMMKAH-UHFFFAOYSA-N 0.000 description 12
- 230000000630 rising effect Effects 0.000 description 12
- 108700012361 REG2 Proteins 0.000 description 5
- 101150108637 REG2 gene Proteins 0.000 description 5
- 101100120298 Rattus norvegicus Flot1 gene Proteins 0.000 description 5
- 101100412403 Rattus norvegicus Reg3b gene Proteins 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 241000613130 Tima Species 0.000 description 2
- 101100412394 Drosophila melanogaster Reg-2 gene Proteins 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Information Transfer Systems (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】この発明は、伝送装置の制御部に
おけるCPUから出力されるパラレルのデータ信号をシ
リアルのデータ信号に変換して制御対象へ出力するシリ
アルインタフェースに関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial interface for converting a parallel data signal output from a CPU in a control unit of a transmission device into a serial data signal and outputting the serial data signal to a controlled object.
【0002】[0002]
【従来の技術】シリアルインタフェースにはパラレルイ
ンタフェースに比べて布線が少なく、また活線での抜き
差し時に誤動作しにくいという利点があるので、一般的
に、CPUのインタフェースには、シリアルインタフェ
ースが用いられている。2. Description of the Related Art A serial interface generally has a serial interface as a CPU interface because it has fewer wirings than a parallel interface and is less likely to malfunction during hot-plugging and unplugging. ing.
【0003】図3に従来のシリアルインタフェースのブ
ロック図を示す。CPUと入出力ポート(以下I/O
PORT)の間は、8bitのパラレルアドレスバスB
1(AD0〜7)、パラレルデータバスB2(DT0〜
7)及びライトイネーブル信号(WR)線Wで接続され
ている。I/O PORTに入力されるクロック(CL
K)は、シリアルインタフェースのタイミング信号であ
る。FIG. 3 shows a block diagram of a conventional serial interface. CPU and I / O port (hereinafter I / O
8bit parallel address bus B during PORT)
1 (AD0 to 7), parallel data bus B2 (DT0 to DT0)
7) and the write enable signal (WR) line W. Clock input to I / O PORT (CL
K) is a serial interface timing signal.
【0004】I/O PORTから図示しない制御対象
への出力信号としては、シリアルに変換された16bi
tのアドレス(SAD)、同じくシリアルに変換された
16bitのデータ(SDT)、受信側がSAD上のア
ドレス情報を識別するための信号(ASCN)、受信側
がSDT上のデータを識別するための信号(DSC
N)、及びシリアルインタフェースのタイミング信号
(CLK)がある。An output signal from the I / O PORT to a control target (not shown) is serially converted 16 bi.
t address (SAD), serially converted 16-bit data (SDT), signal for receiving side to identify address information on SAD (ASCN), signal for receiving side to identify data on SDT ( DSC
N), and the timing signal (CLK) of the serial interface.
【0005】I/O PORTは、アドレスデコーダ部
(以下ADR DEC)、送信アドレス用のレジスタ部
(以下SAD REG1,2)、送信データ用のレジス
タ部(以下SDT REG1,2)、制御コマンド用の
レジスタ部(以下CONTREG)、パラレル−シリア
ル変換部(以下P/S(A)、P/S(D))及びスタ
ート制御部(以下START)で構成される。The I / O PORT includes an address decoder section (hereinafter referred to as ADR DEC), a transmission address register section (hereinafter referred to as SAD REG1, 2), a transmission data register section (hereinafter referred to as SDT REG1, 2), and a control command. It is composed of a register unit (hereinafter CONTREG), a parallel-serial conversion unit (hereinafter P / S (A), P / S (D)), and a start control unit (hereinafter START).
【0006】ADR DECは、アドレスをデコード
し、各I/O PORTの持つ固有のアドレスと一致し
た場合にそのI/O PORT内の各レジスタに対する
書込みイネーブル信号(WD1,WD2,WA1,WA
2,WC)のうちの1つをイネーブルにする。いずれを
イネーブルにするかは、アドレス情報による。The ADR DEC decodes an address, and when it matches the unique address of each I / O PORT, a write enable signal (WD1, WD2, WA1, WA) for each register in the I / O PORT is obtained.
2, WC). Which is enabled depends on the address information.
【0007】SDT REG1には、I/O PORTが
送信するデータの上位8ビット(D15〜D8)が、W
D1の立ち上がりエッジで書き込まれる。SDT RE
G2には、I/O PORTが送信するデータの下位8
ビット(D7〜D0)が、WD2の立ち上がりエッジで
書き込まれる。SAD REG1には、I/O PORT
が送信するアドレスの上位8ビット(A15〜A8)が
WA1の立ち上がりエッジで書き込まれる。SAD R
EG2には、I/O PORTが送信するアドレスの下
位8ビット(A7〜A0)がWA2の立ち上がりエッジ
で書き込まれる。CONT REGには、シリアルのア
ドレスおよびデータの送信を制御するための信号(SR
Q)が書き込まれる。P/S(D)は、SDT REG
1,2に保持されているパラレルのデータをタイミング
信号TIMDを受けてシリアルデータに変換する。P/
S(A)は、SAD REG1,2に保持されているパ
ラレルのアドレスをタイミング信号TIMAを受けてシ
リアルアドレスに変換する。STARTは、SRQがイ
ネーブルになると、アドレス,データのパラレル−シリ
アル変換に必要なタイミング信号TIMA,TIMDを
送出し、P/S(A),P/S(D)がアドレス,デー
タを送信している間ASCN,DSCNをアクティブに
する。In SDT REG1, the upper 8 bits (D15 to D8) of the data transmitted by the I / O PORT are W
Written on the rising edge of D1. SDT RE
In G2, the lower 8 bits of the data transmitted by the I / O PORT
Bits (D7-D0) are written on the rising edge of WD2. I / O PORT for SAD REG1
The upper 8 bits (A15 to A8) of the address transmitted by are written at the rising edge of WA1. SAD R
The lower 8 bits (A7 to A0) of the address transmitted by the I / O PORT are written in EG2 at the rising edge of WA2. CONT REG has a signal (SR) for controlling transmission of serial address and data.
Q) is written. P / S (D) is SDT REG
The parallel data held in 1 and 2 receives the timing signal TIMD and is converted into serial data. P /
S (A) receives the timing signal TIMA and converts the parallel address held in SAD REG1, 2 into a serial address. When SRQ is enabled, START sends timing signals TIMA and TIMD necessary for parallel-serial conversion of address and data, and P / S (A) and P / S (D) send address and data. While it is active, ASCN and DSCN are activated.
【0008】図4に上記従来のシリアルインタフェース
の動作をタイミングチャートに示す。FIG. 4 is a timing chart showing the operation of the conventional serial interface.
【0009】図4において、時間T1ではSDT RE
G1にデータD15〜D8が書き込まれ、時間T2では
SDT REG2にデータD7〜D0が書き込まれる。
時間T3では、SAD REG1にアドレスA15〜A8
が書き込まれ、時間T4では、SAD REG2にアドレ
スA7〜A0が書き込まれる。時間T5では、CONT
REGにSRQ信号を0にするように書き込まれ、時間
T6では、SRQ信号を1にするように書き込まれる。In FIG. 4, at time T1, SDT RE
The data D15 to D8 are written to G1, and the data D7 to D0 are written to SDT REG2 at time T2.
At time T3, addresses A15 to A8 are sent to SAD REG1.
Are written, and at time T4, addresses A7 to A0 are written in SAD REG2. At time T5, CONT
It is written to REG so that the SRQ signal is 0, and at time T6, it is written so that the SRQ signal is 1.
【0010】書き込みは、CPUからのアドレスバス上
のアドレスに従って、SDT REG1,SDT REG
2,SAD REG1,SAD REG2,CONT R
EGのいずれかが選択され、WR信号の立ち上がりエッ
ジで行われる。Writing is performed according to the address on the address bus from the CPU, SDT REG1, SDT REG
2, SAD REG1, SAD REG2, CONT R
One of EG is selected and is performed at the rising edge of the WR signal.
【0011】時刻t1 にSRQ信号がLowからHig
hに変化すると、その直後のCLK信号の立ち上がり時
刻t2からシリアルアドレス(SAD)、シリアルデー
タ(SDT)の送信を開始する。そして、時間T7の間
送信を続け、時刻t3ですべてのビットの送信が終了す
る。At time t1, the SRQ signal changes from Low to High.
When it changes to h, the transmission of the serial address (SAD) and the serial data (SDT) is started from the rising time t2 of the CLK signal immediately after that. Then, the transmission is continued for time T7, and at time t3, the transmission of all bits is completed.
【0012】[0012]
【発明が解決しようとする課題】上記従来のシリアルイ
ンタフェースでは、次のような問題がある。The above-mentioned conventional serial interface has the following problems.
【0013】1.CPUが送信データ(D15〜D
0)、送信アドレス(A15〜A0)をレジスタに書き
込んだ後に、CONT REGのSRQ信号を制御して
送信を実行するための操作を必要とするのでファームウ
ェアに負担がかかる。 2.上記1のためにプログラムのステップ数が多くな
り、処理速度が遅くなる。 3.送信を制御するためのCONT REGが必要なた
め、I/O PORTのハードウェアの規模が大きくな
る。1. CPU sends data (D15-D
0), after writing the transmission address (A15 to A0) in the register, an operation for controlling the SRQ signal of CONT REG to execute the transmission is required, thus burdening the firmware. 2. Because of the above 1, the number of steps of the program increases, and the processing speed becomes slow. 3. Since the CONT REG is required to control the transmission, the I / O PORT hardware becomes large in scale.
【0014】そこで、本発明は、ファームウェア,ハー
ドウェアに対する負担が少ないと共に、処理速度が速
く、しかもハードウェアの規模が小さいCPUのシリア
ルインタフェースを提供することを目的とする。Therefore, an object of the present invention is to provide a serial interface for a CPU, which has a small load on firmware and hardware, a high processing speed, and a small hardware scale.
【0015】[0015]
【課題を解決するための手段】本発明は、上述の課題を
解決するため、CPUからパラレルバスを通じて送られ
るパラレルデータ信号をレジスタ及びパラレル−シリア
ル変換部を介してシリアル信号に変換し、これを制御対
象に送信する入出力ポートにおいて、前記シリアル信号
の送信トリガとして前記レジスタへデータを書き込むた
めの最終のパルス信号を用いるようにCPUのシリアル
インタフェースを構成した。In order to solve the above problems, the present invention converts a parallel data signal sent from a CPU through a parallel bus into a serial signal through a register and a parallel-serial conversion unit, and converts the serial signal into a serial signal. The serial interface of the CPU is configured to use the final pulse signal for writing data in the register as the transmission trigger of the serial signal in the input / output port for transmitting to the controlled object.
【0016】[0016]
【作用】本発明によれば、シリアルのデータを送信する
際に、レジスタへデータを書き込むための最終のパルス
信号に基づいてシリアルのデータ信号を送信するための
送信トリガがパラレル−シリアル変換部に送られるの
で、データの送信が自動的に開始される。従って、従来
のようなシリアルのデータを送信するためのレジスタや
そのための制御が不要となるので、ファームウェア上お
よびハードウェア上の上記欠点が除去される。According to the present invention, when transmitting serial data, the transmission trigger for transmitting the serial data signal based on the final pulse signal for writing the data in the register is transmitted to the parallel-serial conversion unit. As it is sent, the data transmission is automatically started. Therefore, the conventional register for transmitting serial data and the control therefor are not required, and the above-mentioned defects in firmware and hardware are eliminated.
【0017】[0017]
【実施例】次に添付図面を参照して本発明によるCPU
のI/Oインタフェースの実施例を詳細に説明する。な
お、従来のものと同一の構成部分には同一符号を付して
説明を省略する。DESCRIPTION OF THE PREFERRED EMBODIMENTS A CPU according to the present invention will now be described with reference to the accompanying drawings.
An example of the I / O interface will be described in detail. It should be noted that the same components as those of the conventional one are designated by the same reference numerals and the description thereof will be omitted.
【0018】図1にCPUのシリアルインタフェースの
ブロック図を示す。このCPUのI/Oインタフェース
は、従来のものと同様にCPUと複数個のI/O PO
RTから構成され、CPUとI/O PORTとの間に
は、それぞれ8ビットのパラレルバスであるアドレス,
データバス及び書き込みイネーブル信号WR線が接続さ
れている。FIG. 1 shows a block diagram of the serial interface of the CPU. The I / O interface of this CPU is similar to the conventional one, and the CPU and a plurality of I / O PO
It is composed of RT, and an 8-bit parallel bus address is provided between the CPU and the I / O PORT.
The data bus and the write enable signal WR line are connected.
【0019】I/O PORTの内部は、ADR DE
C、SAD REG1,2、SDTREG1,2、P/
S(A)、P/S(D)、STARTで構成される。I
/OPORTは、従来のものと同様に、SAD、SD
T、ASCN、DSCN、CLKの各信号を出力する。
従来の例で掲げたものと異なる点は、I/O PORT
の内部で送信を制御するために設けたCONT REG
を排し、送信アドレスの下位ビット(A7〜A0)の書
き込みパルス信号WA2をSTARTに入力するように
した点である。The inside of the I / O PORT is ADR DE
C, SAD REG1,2, SDTREG1,2, P /
It is composed of S (A), P / S (D), and START. I
/ OPT is the same as the conventional one, SAD, SD
It outputs T, ASCN, DSCN, and CLK signals.
What is different from the conventional examples is that I / O PORT
CONT REG provided inside to control transmission
Is omitted, and the write pulse signal WA2 of the lower bits (A7 to A0) of the transmission address is input to START.
【0020】図2に本実施例のシリアルインタフェース
の動作をタイミングチャートに示す。時間T1では、W
D1の立ち上がりエッジでSDT REG1に送信デー
タの上位ビット(D15〜D8)が書き込まれる。時間
T2では、WD2の立ち上がりエッジでSDT REG2
に送信データの下位ビット(D7〜D0)が書き込まれ
る。時間T3では、WA1の立ち上がりエッジでSAD
REG1に送信アドレスの上位ビット(A15〜A8)
が書き込まれる。時間T4では、WA2の立ち上がりエ
ッジで、SAD REG2に送信アドレスの下位ビット
(A7〜A0)が書き込まれる。FIG. 2 is a timing chart showing the operation of the serial interface of this embodiment. At time T1, W
The upper bits (D15 to D8) of the transmission data are written in SDT REG1 at the rising edge of D1. At time T2, SDT REG2 at the rising edge of WD2
The lower bits (D7 to D0) of the transmission data are written in. At time T3, SAD is generated at the rising edge of WA1.
Upper bits of transmission address in REG1 (A15 to A8)
Is written. At time T4, the lower bits (A7 to A0) of the transmission address are written in SAD REG2 at the rising edge of WA2.
【0021】図中の時刻t1でA7〜A0の書き込みが
終了するがその直後のCLKの立ち上がりの時刻t2か
ら、ASCN,DSCNをアクティブにしてシリアルア
ドレス(SAD)、シリアルデータ(SDT)の送信を
開始する。つまり、図1中のスタート制御部でWA2の
立ち上がりを検出すると、送信を開始する。そして、T
5の時間だけ送信を行い、時刻t3でASCN,DSC
NをOFFにし、送信を終了する。At time t1 in the figure, writing of A7 to A0 is completed, but immediately after that, at time t2 at the rising edge of CLK, ASCN and DSCN are activated to transmit serial address (SAD) and serial data (SDT). Start. That is, when the start control unit in FIG. 1 detects the rising edge of WA2, transmission is started. And T
Transmission is performed only for 5 hours, and ASCN and DSC are sent at time t3.
The N is turned off and the transmission ends.
【0022】時間T1〜T4で送信するデータ,アドレス
を(1)送信データの上位ビット(D15〜D8)、
(2)送信データの下位ビット(D7〜D0)、(3)
送信アドレスの上位ビット(A15〜A8)、(4)送
信アドレスの下位ビット(A7〜A0)の順序で書込み
を行い、全てのビットの書込みが終了するとI/OPO
RTで、自動的にシリアルのアドレス,データの送信が
行われる。Data to be transmitted at time T1 to T4, address (1) upper bits (D15 to D8) of transmission data,
(2) Lower bits (D7 to D0) of transmission data, (3)
Writing is performed in the order of the upper bits (A15 to A8) of the transmission address and (4) the lower bits (A7 to A0) of the transmission address, and when all the bits have been written, I / OPO
At RT, serial addresses and data are automatically transmitted.
【0023】[0023]
【発明の効果】このように本発明のインタフェースによ
れば、I/O PORTが送信するアドレスの下位ビッ
トの書き込みが行われると、自動的にシリアルのデー
タ,アドレスの送信が開始されるので、ファームウェア
上で特に送信を実行させるための手順を踏む必要がなく
なり、ファームウェアの負担が軽減されるという効果が
期待できる。また、これにより、プログラムのステップ
数を減らすことができるので、処理スピードが速くなる
という利点もある。さらに、送信を制御するための制御
レジスタを必要としないのでハードウェア規模の縮小化
を期待することができるという効果を有する。As described above, according to the interface of the present invention, when the lower bit of the address transmitted by the I / O PORT is written, the transmission of serial data and address is automatically started. It is possible to expect an effect that the burden on the firmware is reduced because it is not necessary to take a procedure for executing the transmission on the firmware. Further, this can reduce the number of steps of the program, which has the advantage of increasing the processing speed. Further, since a control register for controlling transmission is not required, it is possible to expect a reduction in hardware scale.
【図1】本発明によるCPUのシリアルインタフェース
の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a serial interface of a CPU according to the present invention.
【図2】本発明によるシリアルインタフェースのタイミ
ングチャートである。FIG. 2 is a timing chart of a serial interface according to the present invention.
【図3】従来のシリアルインタフェースのブロック図で
ある。FIG. 3 is a block diagram of a conventional serial interface.
【図4】従来のシリアルインタフェースのタイミングチ
ャートである。FIG. 4 is a timing chart of a conventional serial interface.
CPU 中央演算処理装置 I/O PORT 入出力ポート B1 パラレルアドレスバス B2 パラレルデータバス ADR DEC アドレスデコーダ SAD REG1,2 送信アドレス用レジスタ部 SDT REG1,2 送信データ用レジスタ部 P/S(A) 送信アドレス用パラレル−シリ
アル変換部 P/S(D) 送信データ用パラレル−シリア
ル変換部 START スタート制御部CPU central processing unit I / O PORT input / output port B1 parallel address bus B2 parallel data bus ADR DEC address decoder SAD REG1, transmission address register SDT REG1, transmission data register P / S (A) transmission address Parallel-serial conversion unit P / S (D) transmission data parallel-serial conversion unit START start control unit
Claims (1)
るパラレルのデータ信号をレジスタ(SAD REG,SDT REG)
及びパラレル−シリアル変換部(P/S)を介してシリアル
のデータ信号に変換し、これを制御対象に送信する入出
力ポート(I/OPORT)を有するCPUのシリアルインタフ
ェースにおいて、 前記シリアルのデータ信号の送信トリガが、前記レジス
タ(SAD REG,SDT REG)へデータを書き込むための最終の
パルス信号(WA2)に基づいて送出されることを特徴とす
るCPUのシリアルインタフェース。1. A register (SAD REG, SDT REG) for parallel data signals sent from a CPU through a parallel bus.
And a serial interface of the CPU having an input / output port (I / OPORT) for converting the serial data signal through the parallel-serial conversion unit (P / S) and transmitting the serial data signal to the control target. Is transmitted based on the final pulse signal (WA2) for writing data to the registers (SAD REG, SDT REG).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6049293A JPH06274441A (en) | 1993-03-19 | 1993-03-19 | Serial interface for cpu |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6049293A JPH06274441A (en) | 1993-03-19 | 1993-03-19 | Serial interface for cpu |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH06274441A true JPH06274441A (en) | 1994-09-30 |
Family
ID=13143845
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6049293A Pending JPH06274441A (en) | 1993-03-19 | 1993-03-19 | Serial interface for cpu |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH06274441A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008135047A (en) * | 2000-11-06 | 2008-06-12 | Matsushita Electric Ind Co Ltd | Multiprocessor interface |
JP2009211682A (en) * | 2008-02-07 | 2009-09-17 | Yokogawa Electric Corp | Data transfer device and semiconductor testing device |
-
1993
- 1993-03-19 JP JP6049293A patent/JPH06274441A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008135047A (en) * | 2000-11-06 | 2008-06-12 | Matsushita Electric Ind Co Ltd | Multiprocessor interface |
JP2009211682A (en) * | 2008-02-07 | 2009-09-17 | Yokogawa Electric Corp | Data transfer device and semiconductor testing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6658582B1 (en) | Serial interface circuits having improved data transmitting and receiving capability | |
NO321931B1 (en) | Microprocessor that has programmable waiting states | |
US5987578A (en) | Pipelining to improve the interface of memory devices | |
JP3108080B2 (en) | Access control circuit device | |
JPH06274441A (en) | Serial interface for cpu | |
US5327393A (en) | External memory interface circuit capable of carrying out initialization of external memory with a reduced initialization time duration | |
EP0473059A2 (en) | Communication control system | |
JPH0140366B2 (en) | ||
JP2000347899A (en) | Microcomputer | |
JPS6246353A (en) | Memory read system | |
JP2659886B2 (en) | Processor system | |
JP2867449B2 (en) | Microprocessor with address translation function | |
JPH05128279A (en) | One-chip microcomputer | |
JP3496942B2 (en) | Memory access method | |
JP3481669B2 (en) | Electronic music box and its driving device | |
KR19980083459A (en) | Databus Sizing Device | |
JP2563807B2 (en) | Direct memory access control circuit | |
JPS61852A (en) | Data transmission system | |
JPH08314797A (en) | Memory access system | |
JPH1031646A (en) | DMA control method | |
JPH0354647A (en) | Memory access system | |
JPS6012664B2 (en) | Data transfer method | |
JPH04311247A (en) | Bus controller | |
JPS6068724A (en) | Analog-digital and digital-analog converter | |
JPS6369326A (en) | data conversion device |