JPH0520017B2 - - Google Patents
Info
- Publication number
- JPH0520017B2 JPH0520017B2 JP19531884A JP19531884A JPH0520017B2 JP H0520017 B2 JPH0520017 B2 JP H0520017B2 JP 19531884 A JP19531884 A JP 19531884A JP 19531884 A JP19531884 A JP 19531884A JP H0520017 B2 JPH0520017 B2 JP H0520017B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- shift register
- signal
- clock signal
- output
- 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
Links
- 238000012546 transfer Methods 0.000 claims description 28
- 230000002093 peripheral effect Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000007257 malfunction Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000012937 correction Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
Description
【発明の詳細な説明】
(イ) 産業上の利用分野
本発明は、オーデイオ分野において、システム
コントローラと各種周辺ICとの間で行なわれる
データ転送方式に関する。DETAILED DESCRIPTION OF THE INVENTION (A) Field of Industrial Application The present invention relates to a data transfer method performed between a system controller and various peripheral ICs in the audio field.
(ロ) 従来の技術
東芝レビユー(38巻13号)の第1145頁〜第1148
頁に示されているように、オーデイオ分野におい
ても、システムコントローラとしてマイクロコン
ピユータを用い、PLLICや表示用IC、あるいは、
グラフイツクイコライザや電子ボリユーム等の各
種周辺ICとの間でデータ転送を行ない、トータ
ル的な制御をすることが、近年、開発されるよう
になつた。(b) Conventional technology Toshiba Review (Vol. 38, No. 13), pages 1145 to 1148
As shown on the page, even in the audio field, microcomputers are used as system controllers, and PLLIC, display ICs,
In recent years, the ability to perform total control by transferring data between various peripheral ICs such as graphic equalizers and electronic volumes has been developed.
従来、このような転送方式においては、第6図
イに示すように、周辺IC1,2の内部にはデー
タ転送用のインターフエース3,4が設けられて
おり、システムコントローラ5と周辺IC1との
間でデータのやり取りを行なう場合は4本のシリ
アルラインで、そして、周辺IC2へデータを一
方的に転送する場合は3本のシリアルラインで、
システムコントローラ5とインターフエース3,
4とが接続され、このインターフエース3,4と
PLL回路6や表示用回路7がデータバス8を介
して接続されていた。そして、コントローラ側か
らデータを転送する際には、第7図イ〜ハに示す
ように、先ず、アドレスコードC1〜C4であるシ
リアルデータSIとクロツク信号CKを送出し、次
にデータD1〜D4であるシリアルデータSIとクロ
ツク信号CKを送出し、これらコード及びデータ
の転送後にパルス状のストローブ信号STBを送
出していた。又、コントローラ側へデータを取込
む際は、第7図ニ〜トに示すように、同様に、先
ず、クロツク信号CKとアドレスコードC1〜C4を
送出し、ストロープ信号STBを送出した後、デ
ータD1〜D4であるシリアルデータSOを取込むた
め、クロツク信号CKを送出し、更にストローブ
信号STBを送出していた。 Conventionally, in such a transfer method, as shown in FIG. When exchanging data between the two, use four serial lines, and when transferring data unilaterally to the peripheral IC2, use three serial lines.
system controller 5 and interface 3,
4 is connected, and this interface 3, 4 and
A PLL circuit 6 and a display circuit 7 were connected via a data bus 8. When transferring data from the controller side, as shown in Figure 7 A to C, first, serial data SI and clock signal CK, which are address codes C1 to C4, are sent out, and then data D1 to D4 are sent. Serial data SI and clock signal CK were sent out, and after these codes and data were transferred, a pulsed strobe signal STB was sent out. In addition, when data is to be read into the controller side, as shown in Figure 7, first send the clock signal CK and address codes C1 to C4, then send the strobe signal STB, and then read the data. In order to capture the serial data SO, which is D1 to D4, a clock signal CK was sent out, and a strobe signal STB was also sent out.
インターフエース3は、第6図ロに示すよう
に、クロツク信号CKをシフトパルスとしてシリ
アルデータSIを取込み且つシリアルデータSOを
送出するシフトレジスタ9と、クロツク信号CK
とストローブ信号STBをデコードするコードデ
コーダ100とシフトレジスタ9に取込まれたア
ドレスコードC1〜C4をコードデコーダの出力信
号、即ち、ストローブ信号STBに応じてラツチ
するコードラツチ10と、コントローラからのデ
ータD1〜D4あるいはPLL回路6からのデータ
DT1〜DT4をラツチする複数のラツチ回路11
a〜11cと、コードラツチ10の内容をデコー
ドしアドレスコードC1〜C4に応じてラツチ回路
11a〜11cのいずれか1つをアドレス指定す
るデコーダ12とを備えており、ラツチ回路11
a〜11cのいずれか1つにデータD1〜D4を書
込む際は、先ずシフトレジスタ9にクロツク信号
CKに基づきアドレスコードC1〜C4を取込み、こ
のアドレスコードに応じてラツチ回路をアドレス
指定し、次に、シフトレジスタ9にクロツク信号
に基づきデータD1〜D4を取込み、このデータD1
〜D4をアドレス指定されたラツチ回路にストロ
ーブ信号STBに応じて書込んでいた。 As shown in FIG. 6B, the interface 3 includes a shift register 9 that takes in serial data SI using the clock signal CK as a shift pulse and sends out the serial data SO, and a shift register 9 that uses the clock signal CK as a shift pulse and sends out the serial data SO.
and a code decoder 100 that decodes the strobe signal STB, a code latch 10 that latches the address codes C1 to C4 taken into the shift register 9 according to the output signal of the code decoder, that is, the strobe signal STB, and data D1 from the controller. ~Data from D4 or PLL circuit 6
Multiple latch circuits 11 that latch DT1 to DT4
a to 11c, and a decoder 12 for decoding the contents of the code latch 10 and addressing one of the latch circuits 11a to 11c according to the address codes C1 to C4.
When writing data D1 to D4 to any one of a to 11c, first send a clock signal to the shift register 9.
Acquire address codes C1 to C4 based on CK, address the latch circuit according to this address code, and then acquire data D1 to D4 to the shift register 9 based on the clock signal.
~D4 was written to the addressed latch circuit in response to the strobe signal STB.
(ハ) 発明が解決しようとする問題点
一般に、データ転送中のノイズについては、誤
り訂正処理等を行なわなくてはならないが、デー
タを転送している時間に比べ静止状態の方が時間
的には遥かに長き、この間のノイズ対策を行なえ
ばシステムの誤動作は大幅に減少できる。ところ
が、上記した従来の技術においては、データ転送
中以外に、ストローブ信号STBやクロツク信号
CKにノイズが乗ると、誤データがラツチ回路に
書込まれしまい、PLL回路等の周辺回路には誤
データが転送されて誤動作を行なうという問題が
あつた。(c) Problems to be solved by the invention In general, error correction processing must be performed to deal with noise during data transfer, but it takes longer time in a stationary state than in data transfer. The period is much longer, and if noise countermeasures are taken during this period, system malfunctions can be greatly reduced. However, in the above-mentioned conventional technology, the strobe signal STB and clock signal are
When noise is added to CK, erroneous data is written to the latch circuit, and the erroneous data is transferred to peripheral circuits such as PLL circuits, causing malfunctions.
更に、従来の技術においては、データ入力用の
シフトレジスタとデータ出力用のシフトレジスタ
が同一であり、更に、アドレスコードを受け取る
シフトレジスタをも同一としていたため、入力と
出力とを同時に行なうことは不可能であつた。 Furthermore, in the conventional technology, the shift register for data input and the shift register for data output were the same, and the shift register for receiving the address code was also the same, so it was impossible to input and output at the same time. It was impossible.
(ニ) 問題点を解決するための手段
本発明は、システムコントローラ側から制御信
号とクロツク信号、そして、アドレスコード及び
入力データより成るシリアルデータを送出し、制
御信号の第1状態において、アドレスコード及び
クロツク信号を送出し、送出後、制御信号を第2
状態とし、第2状態の期間に入力データ及びクロ
ツク信号を送出すると共に、周辺回路側には、ク
ロツク信号に基づいてアドレスコードを取込む第
1シフトレジスタと、第1シフトレジスタの出力
をデコードするデコーダと、デコーダの特定出力
に応じてアドレス指定されクロツク信号に基づい
て入力データを取込む第2シフトレジスタと、デ
コーダの前記特定出力に応じてアドレス指定さ
れ、クロツク信号に基づいてデータの転出を行な
う第3シフトレジスタと、制御信号が第2状態で
ある期間のみにクロツク信号を第2シフトレジス
タに印加せしめる第1制御回路と、制御信号が第
1状態であるとき並列出力データの第3シフトレ
ジスタへの書込みを可能とし、制御信号が第2状
態に変化した後、並列出力データの第3シフトレ
ジスタへの書込みを禁止し、更に、第3シフトレ
ジスタからのデータの転出を可能とする第2制御
回路とを設けたものである。(d) Means for Solving Problems The present invention sends serial data consisting of a control signal, a clock signal, an address code and input data from the system controller side, and in the first state of the control signal, the address code is and a clock signal, and after sending the control signal to the second clock signal.
Input data and a clock signal are sent during the second state, and the peripheral circuit includes a first shift register that receives an address code based on the clock signal, and a first shift register that decodes the output of the first shift register. a decoder; a second shift register that is addressed in response to a particular output of the decoder and takes in input data based on a clock signal; a first control circuit for applying a clock signal to the second shift register only during the period when the control signal is in the second state; and a third shift register for controlling the parallel output data when the control signal is in the first state. A third shift register that enables writing to the register, inhibits writing of the parallel output data to the third shift register after the control signal changes to the second state, and further enables data transfer from the third shift register. 2 control circuits.
(ホ) 作用
本発明では、データ入力用の第2シフトレジス
タに、制御信号が第2状態の期間のみクロツク信
号が印加され、第1状態の期間はクロツク信号の
印加が禁止されるので、転送中以外に、制御信号
やクロツク信号にノイズが乗つても、第2シフト
レジスタの内容は変化せず、このため、転送中以
外においては、ノイズにより誤データがラツチ回
路に転送されることがほとんどなくなる。(e) Effect In the present invention, a clock signal is applied to the second shift register for data input only while the control signal is in the second state, and application of the clock signal is prohibited during the first state, so that transfer Even if noise is added to the control signal or clock signal, the contents of the second shift register do not change. Therefore, when not during transfer, erroneous data is rarely transferred to the latch circuit due to noise. It disappears.
更に、デコーダの特定出力に対応するアドレス
コードを送出すれば、システムコントローラ側か
ら第2シフトレジスタへの入力データのシリアル
転送と、第3シフトレジスタによる並列出データ
のシステムコントローラ側へのシリアル転出を同
時に行なうことが可能となる。 Furthermore, by sending an address code corresponding to a specific output of the decoder, serial transfer of input data from the system controller side to the second shift register and serial transfer of parallel output data from the third shift register to the system controller side can be performed. It becomes possible to do both at the same time.
(ハ) 実施例
第1図〜第3図は本発明の一実施例を示すブロ
ツク図、第4図及び第5図は動作を説明するため
のタイミングチヤートであり、従来技術における
インターフエースに相当する回路構成を示してい
る。(C) Embodiment FIGS. 1 to 3 are block diagrams showing an embodiment of the present invention, and FIGS. 4 and 5 are timing charts for explaining the operation, and correspond to the interface in the conventional technology. This shows the circuit configuration.
この転送方式においては、システムコントロー
ラ(図示せず)から、制御信号CE、クロツク信
号CK、シリアルデータSIを送出し、シリアルデ
ータSOを入力するようにしており、コントロー
ラ側からデータを転送する際は、第4図に示すよ
うに、制御信号CEが「L」のときにアドレスコ
ードC1〜C4と4つのクロツク信号CKを送出し、
送出後、制御信号CEを「H」とし、この「H」
の期間に、データD1〜D4と4個のクロツク信号
を送出するようにしている。 In this transfer method, a system controller (not shown) sends out a control signal CE, a clock signal CK, and serial data SI, and inputs serial data SO. , as shown in FIG. 4, when the control signal CE is "L", address codes C1 to C4 and four clock signals CK are sent out,
After sending, the control signal CE is set to "H", and this "H"
During this period, data D1 to D4 and four clock signals are sent out.
第1図において、13,14,15は、各々、
シリアルデーアSI、クロツク信号CK、制御信号
CEを入力する入力端子、16はクロツク信号CK
をシフトクロツクとしてシリアルデータSIのアド
レスコードC1〜C4を取込むための4ビツトのシ
フトレジスタ、17はANDゲート17a〜17
eより成りシフトレジスタ16の内容をデコード
するデコーダ、18は制御信号CEをデータ端子
Dに、そして、クロツクパルスφをクロツク端子
CLに入力し信号CEDを出力するDフリツプフロ
ツプ、19は信号CEDをクロツクパルスφの1
周期遅延させた信号CEDCLを発生するDフリツ
プフロツプ、20は書込み信号Wを生成する
NORゲート、21はリセツト信号RSTを生成す
るNORゲート、22a〜22eはデコーダ17
の各出力信号LIS、L2S、TS、OUT、IOを各々
データ端子に入力し、信号CEDCLをクロツク端
子CLに入力し、更に、信号RSTをリセツト端子
に入力し、各々、アドレス指定信号L1SD、
L2SD、TSD、OUTD、IODを出力するDフリツ
プフロツプである。 In FIG. 1, 13, 14, 15 are each
Serial data SI, clock signal CK, control signal
Input terminal for inputting CE, 16 is clock signal CK
17 is an AND gate 17a to 17.
A decoder 18 decodes the contents of the shift register 16, consisting of a decoder 18, which sends a control signal CE to a data terminal D, and a clock pulse φ to a clock terminal.
A D flip-flop 19 inputs the signal CED to CL and outputs the signal CED.
A D flip-flop 20 generates the write signal W, which generates the period-delayed signal CEDCL.
NOR gate, 21 is a NOR gate that generates the reset signal RST, 22a to 22e are decoders 17
The respective output signals LIS, L2S, TS, OUT, and IO are input to the data terminal, the signal CEDCL is input to the clock terminal CL, the signal RST is input to the reset terminal, and the address designation signals L1SD and IO are respectively input to the clock terminal CL.
It is a D flip-flop that outputs L2SD, TSD, OUTD, and IOD.
次に、第2図において、23及び24がシリア
ルデータSI中のデータD1〜D4をクロツク信号
CKに基づいて取込むためのデータ入力用の4ビ
ツトのシフトレジスタ、25及び26はシフトレ
ジスタ23及び24に各々接続され、書込み信号
Wをラツチパルスとして名シフトレジスタの内容
をラツチするラツチ回路、27は信号CEDとク
ロツク信号CKを入力するANDゲート、28はア
ドレス指定信号LISD及びTSDを入力するORゲ
ート、29はアドレス指定信号L2SDとTSD、更
に、IODを入力するORゲート、30及び31は
ANDゲート27の出力を一端に入力し、他端に
各々ORゲート28及び29の出力を入力し、そ
の出力を各々シフトレジスタ23及び24のクロ
ツク端子FCLに入力するANDゲート、32は
ANDゲート33,34とORゲート35とインバ
ータ36より成り、アドレス指定信号TSDに応
じてシフトレジスタ24へ、コントローラからの
データD1〜D4もしくはシフトレジスタ23の出
力を選択的に入力するデータ選択回路、37及び
38は一端に書込み信号Wを入力し、他端に各々
ORゲート28及び29の出力を入力し、その出
力を各々ラツチ回路25及び26のラツチパルス
入力端子Lに入力するANDゲートであり、各ラ
ツチ回路25及び26の出力は出力端子39a〜
39d及び40a〜40dを介して、PLL回路
等の周辺回路に接続されている。 Next, in FIG. 2, 23 and 24 convert data D1 to D4 in the serial data SI to clock signals.
4-bit shift registers 25 and 26 for inputting data to be taken in based on CK are connected to shift registers 23 and 24, respectively, and a latch circuit 27 latches the contents of the shift register using the write signal W as a latch pulse. 28 is an AND gate that receives the signal CED and the clock signal CK; 28 is an OR gate that receives the address designation signals LISD and TSD; 29 is an OR gate that receives the address designation signals L2SD and TSD; and 30 and 31 are the OR gates that receive the IOD.
An AND gate 32 inputs the output of the AND gate 27 at one end, the outputs of the OR gates 28 and 29 at the other end, and inputs the outputs to the clock terminals FCL of the shift registers 23 and 24, respectively.
A data selection circuit consisting of AND gates 33, 34, an OR gate 35, and an inverter 36, which selectively inputs data D1 to D4 from the controller or the output of the shift register 23 to the shift register 24 according to the address designation signal TSD; 37 and 38 input the write signal W to one end, and input the write signal W to the other end, respectively.
This is an AND gate that inputs the outputs of OR gates 28 and 29 and inputs the outputs to the latch pulse input terminals L of latch circuits 25 and 26, respectively.
It is connected to peripheral circuits such as a PLL circuit via 39d and 40a to 40d.
更に、第3図において、41a〜41dは
PLL回路等の周辺回路に接続され、周辺回路か
らのデータDT1〜DT4を入力する入力端子、4
2はデータDT1〜DT4を取込みクロツク信号を
シフトクロツクとして出力端子43からデータ
DT1〜DT4をシリアルデータSOとしてシステム
コントローラへ送出するデータ出力用の4ビツト
のシフトレジスタ、44はアドレス指定信号
OUTD及びIODを入力するORゲート、45は信
号CED及びORゲート44の出力を入力する
ANDゲート、46はANDゲート45の出力を反
転するインバータ、47a〜47dはデータ
DT1〜DT4の各ビツト信号DT1、DT2、DT3、
DT4を各々一端に入力し、他端にインバータ4
6の出力を入力し、その出力がシフトレジスタ4
2を構成する各フリツプフロツプ42a〜42d
のセツト端子に接続されたANDゲート、48
a〜48dはデータDT1〜DT4の各ビツト信号
の反転信号を一端に入力し、他端にインバータ4
6の出力を入力し、その出力が各フリツプフロツ
プ42a〜42dのリセツト端子に接続された
ANDゲートであり、クロツク信号CKはインバー
タ49を介してフリツプフロツプ42a〜42d
の各クロツク端子に印加されている。又、出力端
子43と接地間にはNMOSトランジスタ50及
び51が縦続接続されており、NMOSトランジ
スタ50のゲートにはシフトレジスタ42の出力
をインバータ52で反転した信号が印加され、
NMOSトランジスタ51にはANDゲート45の
出力が印加されている。そして、出力端子43は
他の周辺ICの出力端子53と共通接続されシス
テムコントローラのデータ入力端子に接続されて
おり、共通接続ラインはプルアツプ抵抗54を介
して電源電位VDDに接続されている。 Furthermore, in FIG. 3, 41a to 41d are
Input terminals connected to peripheral circuits such as PLL circuits and inputting data DT1 to DT4 from the peripheral circuits, 4
2 takes in data DT1 to DT4 and outputs the data from output terminal 43 using the clock signal as a shift clock.
A 4-bit shift register for data output that sends DT1 to DT4 as serial data SO to the system controller, 44 is an address designation signal
OR gate that inputs OUTD and IOD, 45 inputs signal CED and the output of OR gate 44
AND gate, 46 is an inverter that inverts the output of AND gate 45, 47a to 47d are data
Each bit signal of DT1 to DT4 DT1, DT2, DT3,
Input DT4 to one end and inverter 4 to the other end.
input the output of shift register 4, and the output is input to shift register 4.
Each flip-flop 42a to 42d constituting 2
AND gate connected to the set terminal of 48
A to 48d input the inverted signal of each bit signal of data DT1 to DT4 to one end, and input the inverter 4 to the other end.
6 is input, and the output is connected to the reset terminal of each flip-flop 42a to 42d.
It is an AND gate, and the clock signal CK is passed through an inverter 49 to the flip-flops 42a to 42d.
is applied to each clock terminal. Further, NMOS transistors 50 and 51 are connected in cascade between the output terminal 43 and the ground, and a signal obtained by inverting the output of the shift register 42 by an inverter 52 is applied to the gate of the NMOS transistor 50.
The output of the AND gate 45 is applied to the NMOS transistor 51 . The output terminal 43 is commonly connected to the output terminal 53 of other peripheral ICs and is connected to the data input terminal of the system controller, and the common connection line is connected to the power supply potential VDD via a pull-up resistor 54.
ところで、アドレスコードC1〜C4はシフトレ
ジスタ23,24,42のアドレス指定を行なう
コードであるが、本実施例では、シフトレジスタ
23,24,42を各々単独にアドレス指定する
コードを「0」、「1」、「2」と定めると共に、シ
フトレジスタ23及び24を共にアドレス指定す
るコードとして「3」、そして、シフトレジスタ
24及び42を共にアドレス指定するコードとし
て「4」を割り合てている。 Incidentally, the address codes C1 to C4 are codes for addressing the shift registers 23, 24, and 42, but in this embodiment, the codes for individually addressing each of the shift registers 23, 24, and 42 are "0", "1" and "2" are determined, "3" is assigned as a code for addressing both shift registers 23 and 24, and "4" is assigned as a code for addressing both shift registers 24 and 42. .
次に、本実施例の動作をタイミングチヤートを
参照しながら説明する。 Next, the operation of this embodiment will be explained with reference to timing charts.
今、ラツチ回路25にデータを転送するため、
アドレスコード「0」とデータD1〜D4をシステ
ムコントローラから送出したとする。すると、ク
ロツク信号CKに基づいてシフトレジスタ16に
はアドレスコードC1〜C4として(0、0、0、
0)が取込まれ、ANDゲート17aのデコード
出力LISNのみが第4図チに示すように「H」と
なる。制御信号CEが「L」のときは信号CED及
びCEDCLは共に「L」なので、リセツト信号
RSTは「H」となつており、この信号によりフ
リツププロツプ22a〜22eはリセツト状態に
ある。アドレスコードC1〜C4及び4つのクロツ
ク信号CKの送出後、制御信号CEを所定期間
「H」とすると、第4図ホに示すように信号CED
が「H」となり、このためリセツト信号RSTが
「L」となつて、フリツプフロツプ22a〜22
eのリセツトが解除される。次いで、第4図ヘに
示すように信号CEDCLが「H」となり、その立
ち上がりで、ANDゲート17a〜17eの各出
力は、各フリツプフロツプ22a〜22eにラツ
チされる。この場合、デコード出力LISが「H」
なので、第4図リに示すようにアドレス指定信号
LISが「H」となる。 Now, in order to transfer data to the latch circuit 25,
Assume that address code "0" and data D1 to D4 are sent from the system controller. Then, based on the clock signal CK, the shift register 16 receives address codes C1 to C4 (0, 0, 0,
0) is taken in, and only the decoded output LISN of the AND gate 17a becomes "H" as shown in FIG. When the control signal CE is “L”, the signals CED and CEDCL are both “L”, so the reset signal
RST is at "H", and flip-flops 22a to 22e are in a reset state due to this signal. After sending the address codes C1 to C4 and the four clock signals CK, if the control signal CE is set to "H" for a predetermined period, the signal CED is output as shown in FIG.
becomes "H", so the reset signal RST becomes "L", and the flip-flops 22a to 22
The reset of e is released. Next, as shown in FIG. 4, the signal CEDCL becomes "H", and at its rising edge, the outputs of the AND gates 17a-17e are latched into the respective flip-flops 22a-22e. In this case, the decode output LIS is “H”
Therefore, as shown in Figure 4, the addressing signal
LIS becomes "H".
制御信号CEが「H」となつて信号CEDが「H」
となると、クロツク信号CKはANDゲート27を
通過して、ANDゲート30及び31に印加され
るようになるが、この場合、LISDのみが「H」
なので、クロツク信号CKはANDゲート30を介
してシフトレジスタ23に印加されるようにな
り、シフトレジスタ24にはクロツク信号CKが
印加されない。即ち、シフトレジスタ23のみが
アドレス指定されることとなる。そこで、制御信
号CEが「H」の期間に、4つのクロツク信号CK
とデータD1〜D4が送出されると、このクロツク
信号CKに基づいてシフトレジスタ23はデータ
D1〜D4を取込む。データD1〜D4の送出後、制
御信号CEは「L」にされるので、これに応じて、
先ず信号CEDが「L」となり、クロツクパルス
φの1周期遅れて信号CEDが「L」となるので、
第4図トに示すように、信号CEDの立下りに応
じて書込信号Wは「H」となり、クロツクパルス
の1周期経過後「L」となる。ANDゲート37
には「H」のLISDが入力されているので、書込
信号Wが「H」となると、その出力によりシフト
レジスタ23の内容D1〜D4がラツチ回路25に
ラツチされる。即ち、ラツチ回路25へのデータ
転送が終了する。 Control signal CE becomes "H" and signal CED becomes "H"
Then, the clock signal CK passes through the AND gate 27 and is applied to the AND gates 30 and 31, but in this case, only LISD is "H".
Therefore, the clock signal CK is applied to the shift register 23 via the AND gate 30, and the clock signal CK is not applied to the shift register 24. That is, only the shift register 23 is addressed. Therefore, during the period when the control signal CE is "H", the four clock signals CK
and data D1 to D4 are sent out, the shift register 23 transfers the data based on this clock signal CK.
Take in D1 to D4. After sending the data D1 to D4, the control signal CE is set to "L", so accordingly,
First, the signal CED becomes "L", and after one cycle of clock pulse φ, the signal CED becomes "L", so
As shown in FIG. 4, the write signal W becomes "H" in response to the fall of the signal CED, and becomes "L" after one cycle of the clock pulse has elapsed. AND gate 37
Since LISD of "H" is inputted to, when the write signal W becomes "H", the contents D1 to D4 of the shift register 23 are latched into the latch circuit 25 by its output. That is, the data transfer to the latch circuit 25 is completed.
ここで、信号CEDCLは制御信号CEが「H」の
後「H」となり、書込信号Wが「L」となるとき
「L」となるので、データD1〜D4をシフトレジ
スタ23に取込み始めてからラツチ回路25に書
込まれるまでの間、アドレス指定信号LISD〜
IODの状態が変化することはない。 Here, since the signal CEDCL becomes "H" after the control signal CE becomes "H" and becomes "L" when the write signal W becomes "L", the signal CEDCL becomes "L" after the control signal CE becomes "H". Until it is written to the latch circuit 25, the address designation signal LISD~
The state of the IOD never changes.
ところで、シフトレジスタ42は、上述の例の
場合アドレス指定されていないので、信号CED
が「H」となつてもANDゲート45の出力は
「L」となり、この信号によりNMOSトランジス
タ51がオフされるので、シフトレジスタ42の
内容がシリアルデータSOとして送出されること
ない。 By the way, since the shift register 42 is not addressed in the above example, the signal CED
Even if the signal becomes "H", the output of the AND gate 45 becomes "L", and this signal turns off the NMOS transistor 51, so that the contents of the shift register 42 are not sent out as serial data SO.
次に、システムコントローラからアドレスコー
ド「1」とデータD1〜D4を送出したとすると、
同様にしてデコード出力L2Sのみが「H」とな
り、これに応じてアドレス指定信号L2SDが
「H」となつてシフトレジスタ24がアドレス指
定される。データ選択回路32においては、アド
レス指定信号TSDが「L」なので、ANDゲート
33及びORゲート35を介してシフトレジスタ
24に、システムコントローラからの転送データ
D1〜D4が入力され、クロツク信号に基づいてこ
のデータが取込まれる。そて、同様に、書込み信
号WによりデータD1〜D4がラツチ回路26にラ
ツチされる。 Next, suppose address code "1" and data D1 to D4 are sent from the system controller.
Similarly, only the decode output L2S becomes "H", and in response, the address designation signal L2SD becomes "H" and the shift register 24 is addressed. In the data selection circuit 32, since the address designation signal TSD is "L", the transfer data from the system controller is transferred to the shift register 24 via the AND gate 33 and the OR gate 35.
D1-D4 are input and this data is taken in based on the clock signal. Similarly, data D1 to D4 are latched in the latch circuit 26 by the write signal W.
上述においては、データ転送中の動作を説明し
たが、データの転送を行なつていない状態におい
て、クロツク信号CK及び制御信号CFにノイズが
乗つたとする。 In the above, the operation during data transfer has been described, but it is assumed that noise is superimposed on the clock signal CK and the control signal CF while no data is being transferred.
この場合、制御信号CEがノイズにより「H」
となつている期間にクロツク信号CKにノイズが
乗ることは非常に稀であり、このようなケースを
除いては、ANDゲート27により、クロツク信
号CKのシフトレジスタ23及び24への印加が
禁止されるので、誤データはシフトレジスタ23
及び24に取込まれることがなく、依つて、ラツ
チ回路25及び26に誤データがラツチされてし
まうことがない。従つて、PLL回路等の周辺回
路が誤動作することはない。 In this case, the control signal CE becomes “H” due to noise.
It is extremely rare for noise to be added to the clock signal CK during the period when Therefore, the incorrect data is stored in the shift register 23.
and 24, thereby preventing erroneous data from being latched into latch circuits 25 and 26. Therefore, peripheral circuits such as PLL circuits will not malfunction.
次に、2つのシフトレジスタ23及び24に、
各々、データD1〜D4及びD5〜D8を転送する場
合について説明する。 Next, in the two shift registers 23 and 24,
The case where data D1 to D4 and D5 to D8 are respectively transferred will be explained.
この場合、システムコントローラからアドレス
コードC1〜C4として「2」を送出し、制御信号
CEを「H」とした後、この「H」の期間にデー
タD1〜D4とD5〜D8を連続して送出し、且つ、
クロツク信号CKを8つ送出する。 In this case, the system controller sends "2" as the address code C1 to C4, and the control signal
After setting CE to "H", continuously transmit data D1 to D4 and D5 to D8 during this "H" period, and
Sends eight clock signals CK.
すると、デコード出力TSのみが「H」となり、
制御信号CEが「H」になると、アドレス指定信
号TSDが「H」となる。アドレス指定信号TSD
が共に「H」となると、ORゲート28及び29
の出力が「H」となり、ANDゲート30及び3
1を介して、クロツク信号CKがシフトレジスタ
23及び24の双方に印加可能となる。即ち、2
つのシフトレジスタ23及び24がアドレス指定
されることになる。又、データ選択回路32では
ANDゲート34の一方の入力信号が「H」とな
るため、シフトレジスタ23の出力がANDゲー
ト34及びORゲート35を介してシフトレジス
タ24に入力されるようになり、シフトレジスタ
23と24とは縦続接続されることとなる。従つ
て、クロツク信号CKが制御信号CEの「H」の期
間に印加されると、データD1〜D8をクロツク信
号に基づいて順次取込み、その結果、データD1
〜D4がシフトレジスタ23に、そして、データ
D5〜D8がシフトレジスタ24に取込まれる。依
つて、ラツチ回路25にはデータD1〜D4が、ラ
ツチ回路26にはデータD5〜D8がラツチされ
る。例えば、データD1〜D4が分周数データ、デ
ータD5〜D8がバンドデータであるときは、PLL
回路には、1回のアドレス指定で、分周数データ
とバンドデータが転送されることとなる。 Then, only the decoded output TS becomes "H",
When the control signal CE becomes "H", the addressing signal TSD becomes "H". Addressing signal TSD
When both become "H", OR gates 28 and 29
The output of becomes “H” and AND gates 30 and 3
1, the clock signal CK can be applied to both shift registers 23 and 24. That is, 2
Two shift registers 23 and 24 will be addressed. Also, in the data selection circuit 32
Since one input signal of the AND gate 34 becomes "H", the output of the shift register 23 is input to the shift register 24 via the AND gate 34 and the OR gate 35, and the shift registers 23 and 24 are They will be connected in cascade. Therefore, when the clock signal CK is applied during the "H" period of the control signal CE, data D1 to D8 are sequentially taken in based on the clock signal, and as a result, data D1 to D8 are taken in sequentially based on the clock signal.
~D4 is transferred to the shift register 23, and the data
D5 to D8 are taken into the shift register 24. Therefore, the latch circuit 25 latches data D1 to D4, and the latch circuit 26 latches data D5 to D8. For example, when data D1 to D4 are frequency division number data and data D5 to D8 are band data, the PLL
Frequency division number data and band data are transferred to the circuit by one address specification.
更に、次には、PLL回路等の周辺回路から入
力端子41a〜41dを介してデータDT1〜
DT4を取込み、システムコントローラヘシリア
ルデータSOとして転送する場合について説明す
る。 Furthermore, next, data DT1 to DT1 are input from peripheral circuits such as PLL circuits via input terminals 41a to 41d.
The case where DT4 is imported and transferred to the system controller as serial data SO will be explained.
この場合は、第5図に示すように、先ず、シス
テムコントローラからデータを転送する場合と同
様、制御信号が「L」のときにアドレスコード
C1〜C4と4つのクロツク信号CKを送出し、送出
後、制御信号CEを「H」とし、この「H」の期
間にクロツク信号CKのみを4つ送出する。この
とき、アドレスコードC1〜C4としては「3」を
送出する。 In this case, as shown in Fig. 5, first, as in the case of transferring data from the system controller, when the control signal is "L", the address code is
C1 to C4 and four clock signals CK are sent out, and after sending out, the control signal CE is set to "H", and only four clock signals CK are sent out during this "H" period. At this time, "3" is sent as address codes C1 to C4.
この場合、制御信号CEが「L」の期間にシフ
トレジスタ42にアドレスコード(1、1、0、
0)が取込まる、デコード出力OUTのみが「H」
となるが、制御信号CEが「L」のときは信号
CEDが「L」であり、このため、インバータ4
6の出力は「H」となり、ANDゲート47a〜
47d及び48a〜48dは開かれ、シフトレジ
スタ42を構成する各フリツプフロツプは、
各々、データDT1、DT2、DT3、DT4によりセ
ツトあるいはリセツトされる。即ち、データ
DT1〜DT4がシフトレジスタ42に書込まれる。
そして、制御信号CEが「H」となると信号CED
が「H」になると共に、アドレス指定信号
OUTDが「H」となり、このため、ANDゲート
45の出力は「H」に、又、インバータ46の出
力は「L」となり、ANDゲート47a〜47d
及び48a〜48dが閉じられ、データDT1〜
DT4のシフトレジスタ42への書込みが禁止さ
れると共に、NMOSトランジスタ51をオンと
しデータの出力を可能とする。クロツク信号CK
が印加されると、シフトレジスタ42はシフト動
作を開始し、NMOSトランジスタ50をデータ
DT1〜DT4に応じてオンオフさせることにより、
出力端子43からデータDT1〜DT4をシリアル
データSOとしてシステムコントローラへ転送す
る。 In this case, the address code (1, 1, 0,
0) is taken in, only the decode output OUT is “H”
However, when the control signal CE is "L", the signal
CED is “L”, so inverter 4
The output of 6 becomes "H", and the AND gate 47a~
47d and 48a to 48d are open, and each flip-flop constituting the shift register 42 is
Each is set or reset by data DT1, DT2, DT3, and DT4. That is, data
DT1 to DT4 are written to the shift register 42.
Then, when the control signal CE becomes "H", the signal CED
becomes “H” and the address designation signal
OUTD becomes "H", therefore, the output of AND gate 45 becomes "H", and the output of inverter 46 becomes "L", and AND gates 47a to 47d
and 48a to 48d are closed, and data DT1 to
Writing to the shift register 42 of DT4 is prohibited, and the NMOS transistor 51 is turned on to enable data output. clock signal CK
is applied, the shift register 42 starts a shift operation and transfers the NMOS transistor 50 to the data.
By turning on and off according to DT1 to DT4,
The data DT1 to DT4 are transferred from the output terminal 43 to the system controller as serial data SO.
更に、本実施例においては、1回のアドレス指
定で、データ入力用のシフトレジスタ24にシス
テムコントローラからデータD1〜D4を転送し、
同時に、データ出力用のシフトレジスタ42から
システムコントローラヘデータDT1〜DT4を転
送することができる。この場合は、システムコン
トローラからデータD1〜D4を転送する場合と同
様に、第4図に示すように、制御信号CE、クロ
ツク信号CK、シリアルデータSIを送出し、アド
レスコードC1〜C4としては、「4」を送出する。 Furthermore, in this embodiment, data D1 to D4 are transferred from the system controller to the shift register 24 for data input by one address specification,
At the same time, data DT1 to DT4 can be transferred from the data output shift register 42 to the system controller. In this case, as in the case of transferring data D1 to D4 from the system controller, as shown in FIG. 4, the control signal CE, clock signal CK, and serial data SI are sent, and the address codes C1 to C4 are Sends "4".
このようにすれば、シフトレジスタ16にアド
レスコード(0、0、1、0)が取込まれ、デコ
ード出力IOのみが「H」となると共に、制御信
号CEが「L」のときにANDゲート47a〜47
d及び48a〜48dが開かれ、データDT1〜
DT4がシフトレジスタ42に書込まれる。そし
て、制御信号CEが「H」となると、信号CED及
びCEDCLが「H」となり、アドレス信号IODが
「H」となる。このため、シフトレジスタ24に
はクロツク信号CKが印加できるようになると共
に、シフトレジスタ42においてはデータDT1
〜DT4の書込みが禁止され、更に、NMOSトラ
ンジスタ51がオンする。従つて、クロツク信号
CKが印加されると、シフトレジスタ24にはデ
ータD1〜D4が取込まれ、一方、シフトレジスタ
42からはデータD1〜D54が送出されることと
なる。 In this way, the address code (0, 0, 1, 0) is taken into the shift register 16, only the decode output IO becomes "H", and when the control signal CE is "L", the AND gate 47a-47
d and 48a to 48d are opened, and data DT1 to
DT4 is written to shift register 42. Then, when the control signal CE becomes "H", the signals CED and CEDCL become "H", and the address signal IOD becomes "H". Therefore, the clock signal CK can be applied to the shift register 24, and the data DT1 can be applied to the shift register 42.
Writing to ~DT4 is prohibited, and furthermore, the NMOS transistor 51 is turned on. Therefore, the clock signal
When CK is applied, data D1 to D4 are taken into the shift register 24, while data D1 to D54 are sent out from the shift register 42.
(ト) 発明の効果
本発明に依れば、データ転送中以外において、
クロツク信号や制御信号にノイズが乗つても、第
2シフトレジスタに誤データが転送されることは
ほとんどなくなる。(g) Effect of the invention According to the present invention, except during data transfer,
Even if noise is added to the clock signal or control signal, erroneous data is almost never transferred to the second shift register.
更に、第2シフトレジスタへの入力データのシ
リアル転送と、第3シフトレジスタにより並列出
力データのシリアル転出を同時に行なえるので、
システムコントローラ側と周辺回路との間で、デ
ータの入力及び出力を同時に行なえ、従つて、転
送時間が短縮される。 Furthermore, serial transfer of input data to the second shift register and serial transfer of parallel output data to the third shift register can be performed at the same time.
Data input and output can be performed simultaneously between the system controller side and peripheral circuits, thus reducing transfer time.
第1図〜第3図は本発明の一実施例を示すブロ
ツク図、第4図はシステムコントローラから周辺
回路にデータを転送する場合のタイミングチヤー
ト、第5図は周辺回路からシステムコントローラ
へデータを転送する場合のタイミングチヤート、
第6図は従来のデータ転送方式を示すブロツク
図、第7図は従来例の動作を示すタイミングチヤ
ートである。
主な図番の説明、16,23,24,42……
シフトレジスタ、17……デコーダ、25,26
……ラツチ回路、32……データ選択回路。
Figures 1 to 3 are block diagrams showing one embodiment of the present invention, Figure 4 is a timing chart when data is transferred from the system controller to the peripheral circuit, and Figure 5 is a diagram of data transfer from the peripheral circuit to the system controller. Timing chart for transfer,
FIG. 6 is a block diagram showing a conventional data transfer system, and FIG. 7 is a timing chart showing the operation of the conventional example. Explanation of main drawing numbers, 16, 23, 24, 42...
Shift register, 17... Decoder, 25, 26
... Latch circuit, 32 ... Data selection circuit.
Claims (1)
ータをシリアルデータとし、制御信号の第1状態
において、前記アドレスコード及びクロツク信号
を送出し、送出後、前記制御信号を第2状態と
し、該第2状態の期間に前記入力データ及び前記
クロツク信号を送出すると共に、前記クロツク信
号に基づいて前記アドレスコードを取込む第1シ
フトレジスタと、該第1シフトレジスタの出力を
デコードするデコーダと、該デコーダの特定出力
に応じてアドレス指定され前記クロツク信号に基
づいて前記入力データを取込む第2シフトレジス
タと、前記デコーダの前記特定出力に応じてアド
レス指定され前記クロツク信号に基づいてデータ
の転出を行なう第3シフトレジスタと、前記制御
信号が第1状態から第2状態へ変化したことに応
答して前記クロツク信号を前記第2シフトレジス
タへ印加せしめ、前記制御信号が第2状態から第
1状態へ変化したことに応答して前記第2シフト
レジスタへの前記クロツク信号の印加を禁止する
第1制御回路と、前記制御信号が第1状態である
とき並列出力データの第3シフトレジスタへの書
込みを可能とし、前記制御信号が第2状態に変化
した後、前記並列出力データの第3シフトレジス
タへの書込みを禁止し、更に、前記第3シフトレ
ジスタからのデータの転出を可能とする第2制御
回路とを設け、前記第2シフトレジスタへの入力
データのシリアル転送と前記第3レジスタによる
前記並列出力データのシリアル転出を同時に行な
えるようにしたことを特徴とするデータ転送方
式。1 The address code and input data for address specification are serial data, the address code and clock signal are sent in the first state of the control signal, and after sending, the control signal is set to the second state, and the control signal is in the second state. a first shift register that transmits the input data and the clock signal during a period and receives the address code based on the clock signal; a decoder that decodes the output of the first shift register; and a specific output of the decoder. a second shift register that is addressed in response to the specified output of the decoder and receives the input data based on the clock signal; and a third shift register that is addressed in response to the specific output of the decoder and transfers data based on the clock signal. a register, and applying the clock signal to the second shift register in response to the change of the control signal from the first state to the second state, the change of the control signal from the second state to the first state; a first control circuit that inhibits the application of the clock signal to the second shift register in response to the clock signal; and a first control circuit that enables writing of parallel output data to the third shift register when the control signal is in a first state; a second control circuit that inhibits writing of the parallel output data to a third shift register after the control signal changes to a second state, and further enables transfer of data from the third shift register; 1. A data transfer system, wherein serial transfer of input data to said second shift register and serial transfer of said parallel output data by said third register can be performed simultaneously.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19531884A JPS6172440A (en) | 1984-09-18 | 1984-09-18 | Data transfer system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19531884A JPS6172440A (en) | 1984-09-18 | 1984-09-18 | Data transfer system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6172440A JPS6172440A (en) | 1986-04-14 |
| JPH0520017B2 true JPH0520017B2 (en) | 1993-03-18 |
Family
ID=16339167
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19531884A Granted JPS6172440A (en) | 1984-09-18 | 1984-09-18 | Data transfer system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6172440A (en) |
-
1984
- 1984-09-18 JP JP19531884A patent/JPS6172440A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6172440A (en) | 1986-04-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5361371A (en) | Microprocessor with reset execution from an arbitrary address | |
| JPH0331298B2 (en) | ||
| US6542569B2 (en) | Memory device command buffer apparatus and method and memory devices and computer systems using same | |
| JPH0346850B2 (en) | ||
| JPH0764957A (en) | Timer device | |
| JPH0520017B2 (en) | ||
| JPH0337776B2 (en) | ||
| US6301188B1 (en) | Method and apparatus for registering free flow information | |
| JPH0756749B2 (en) | Function selection circuit | |
| JP2009252307A (en) | Semiconductor memory device and system using the semiconductor memory device | |
| CN100524514C (en) | High efficiency register with additional delay in DDR2 mode of operation | |
| JP3737144B2 (en) | Interrupt request circuit and interrupt request processing method | |
| JPS61139990A (en) | Serial access memory | |
| JPH01241913A (en) | Racing preventing circuit | |
| JP2692469B2 (en) | Data controller | |
| US20100290266A1 (en) | Command processing circuit and phase change memory device using the same | |
| JPH04241622A (en) | Microprocessor | |
| JP2669028B2 (en) | Command register circuit | |
| JPH05324119A (en) | Information processing equipment | |
| JP3534915B2 (en) | Parallel input / output port | |
| JPH04295944A (en) | Arithmetic processor | |
| JPH0418634A (en) | Data processor | |
| JPH04243095A (en) | Encoding circuit | |
| KR20080114204A (en) | ROM Counter of Microcontroller | |
| JPS62182937A (en) | Test mode setting circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |