JPH096502A - Serial data transfer circuit - Google Patents

Serial data transfer circuit

Info

Publication number
JPH096502A
JPH096502A JP7150360A JP15036095A JPH096502A JP H096502 A JPH096502 A JP H096502A JP 7150360 A JP7150360 A JP 7150360A JP 15036095 A JP15036095 A JP 15036095A JP H096502 A JPH096502 A JP H096502A
Authority
JP
Japan
Prior art keywords
microcomputer
amplitude
output
serial
serial data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7150360A
Other languages
Japanese (ja)
Inventor
Shinichi Yamasaki
慎一 山▲さき▼
Noriyuki Ogata
紀之 小片
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP7150360A priority Critical patent/JPH096502A/en
Publication of JPH096502A publication Critical patent/JPH096502A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)

Abstract

PURPOSE: To attain precise signal processing without superposing noises to an integrated circuit or the like for processing video and sound signals even when two microcomputers for serial interfaces are not arranged in the periphery of the integrated circuit or the like. CONSTITUTION: The amplitude of a serial clock CLK and serial data DATA transferred between 1st and 2nd microcomputers 1, 2 can be switched to different amplitude based upon an instruction inputted from a CPU 16 arranged in the 2nd microcomputer 2. When it is necessary to prevent the generation of malfunction in an integrated circuit arranged in the periphery of the microcomputers 1, 2, the amplitude of the seirial clock CLK and serial data DATA can be switched to 2nd small amplitude.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、一方のマイクロコンピ
ュータから他方のマイクロコンピュータへシリアルクロ
ックを転送し、他方のマイクロコンピュータから一方の
マイクロコンピュータへ前記シリアルクロックに同期し
てシリアルデータを転送するシステムに用いて好適なシ
リアルデータ転送回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for transferring a serial clock from one microcomputer to another microcomputer and transferring serial data from the other microcomputer to one microcomputer in synchronization with the serial clock. The present invention relates to a serial data transfer circuit suitable for use in.

【0002】[0002]

【従来の技術】一般に、2つのマイクロコンピュータの
間で、一方から他方のマイクロコンピュータに向けてシ
リアルクロックを転送し、その後、他方から一方のマイ
クロコンピュータへ前記シリアルクロックに同期して所
定ビットのシリアルデータを転送し、一方のマイクロコ
ンピュータ内部で前記所定ビットのシリアルデータに所
定の演算処理を施すシステムがある。このシステムで
は、両マイクロコンピュータ間で転送されるシリアルク
ロック及びシリアルデータの振幅は、両マイクロコンピ
ュータのインターフェースの為の入出力部分に設けられ
たバッファ等の電源電圧に依存し、例えば5ボルト等で
固定であった。
2. Description of the Related Art Generally, a serial clock is transferred from one microcomputer to another microcomputer between two microcomputers, and then a serial of a predetermined bit is transferred from the other microcomputer to one microcomputer in synchronization with the serial clock. There is a system that transfers data and performs predetermined arithmetic processing on the predetermined bit serial data inside one of the microcomputers. In this system, the amplitudes of the serial clock and serial data transferred between both microcomputers depend on the power supply voltage of a buffer or the like provided in the input / output portion for the interface of both microcomputers, and are, for example, 5 volts. It was fixed.

【0003】[0003]

【発明が解決しようとする課題】さて、上記した両マイ
クロコンピュータは単独で使用されることは滅多にな
く、何らかの電子機器の動作制御の為に、プリント基板
上に他の集積回路と共に配置されて使用されるケースが
殆どである。例えば、映像機器やオーディオ機器の場
合、両マイクロコンピュータは、映像又は音声信号処理
用の集積回路と共にプリント基板上に配置されることに
なる。しかしながら、このプリント基板上において、両
マイクロコンピュータの間で、5ボルト程度の振幅を有
するシリアルクロック及びシリアルデータの転送が行わ
れると、シリアルクロック及びシリアルデータの立ち上
がり及び立ち下がりの変化時にノイズが発生する。特
に、両マクロコンピュータの周辺に存在する映像及び音
声信号処理用の集積回路の信号ラインに前記ノイズが重
畳してしまうと、映像及び音声信号処理用の集積回路が
誤った信号処理を実行してしまい、聴視者に正確な情報
を伝えることができない問題があった。
The above-mentioned two microcomputers are rarely used alone, and are arranged on a printed circuit board together with other integrated circuits in order to control the operation of some electronic equipment. Mostly used. For example, in the case of video equipment and audio equipment, both microcomputers are arranged on a printed circuit board together with an integrated circuit for processing video or audio signals. However, when a serial clock and serial data having an amplitude of about 5 volts are transferred between both microcomputers on this printed circuit board, noise occurs when the rising and falling edges of the serial clock and serial data change. To do. In particular, when the noise is superimposed on the signal line of the integrated circuit for video and audio signal processing existing around both macrocomputers, the integrated circuit for video and audio signal processing may perform erroneous signal processing. There is a problem that accurate information cannot be transmitted to the listener.

【0004】そこで、本発明は、映像及び音声信号処理
用の集積回路等の周辺にシリアルインターフェースの為
の2つのマイクロコンピュータを配置した場合でも、映
像及び音声信号処理用の集積回路等にノイズが重畳する
ことなく正確な信号処理を実現させることのできるシリ
アルデータ転送回路を提供することを目的とする。
Therefore, according to the present invention, even when two microcomputers for a serial interface are arranged around an integrated circuit for video and audio signal processing, noise is generated in the integrated circuit for video and audio signal processing. An object of the present invention is to provide a serial data transfer circuit that can realize accurate signal processing without superimposing them.

【0005】[0005]

【課題を解決するための手段】本発明は、前記問題点を
解決する為に成されたものであり、その特徴とするとこ
ろは、第1マイクロコンピュータと第2マイクロコンピ
ュータとの間で、前記第1マイクロコンピュータから前
記第2マイクロコンピュータへシリアルクロックを転送
し、該シリアルクロックに同期して前記第2マイクロコ
ンピュータから前記第1マイクロコンピュータへ所定ビ
ットのデータ転送を行うシリアルデータ転送回路におい
て、第1閾値電圧を有し第1振幅又は該第1振幅より小
さい第2振幅で変化するシリアルクロックが印加される
第1入力部と、前記第1閾値電圧より低い第2閾値電圧
を有し前記シリアルクロックが共通印加される第2入力
部と、所定ビットのシリアルデータを前記第1振幅とす
る第1出力部と、所定ビットの前記シリアルデータを前
記第2振幅とする第2出力部と、前記第1及び第2入力
部の出力を切り換えると共に前記第1及び第2出力部の
出力を切り換える制御部と、を前記第2マイクロコンピ
ュータに内蔵すると共に、前記第1閾値電圧を有し前記
第1又は第2出力部から選択出力されたシリアルデータ
が印加される第3入力部と、前記第2閾値電圧を有し前
記第1又は第2出力部から選択出力されたシリアルデー
タが印加される第4入力部と、シリアルクロックを前記
第1振幅とする第3出力部と、前記シリアルクロックを
前記第2振幅とする第4出力部と、前記第1又は第2出
力部の選択出力の振幅を判別しこの判別結果に基づいて
前記第3又は第4出力部からの選択されたシリアルクロ
ックを前記第2マイクロコンピュータに印加させる判別
部と、を前記第1マイクロコンピュータに内蔵し、前記
制御部から、前記シリアルデータを前記第2振幅で前記
第1マイクロコンピュータから前記第2マイクロコンピ
ュータへ転送する指示が発生した時、前記判別部の判別
結果を用いることにより、前記第1マイクロコンピュー
タから前記第2マイクロコンピュータへ前記第2振幅の
シリアルクロックを転送し、該シリアルクロックに同期
して前記第2マイクロコンピュータから前記第1マイク
ロコンピュータへ前記第2振幅のシリアルデータを転送
する点である。
The present invention has been made to solve the above-mentioned problems, and is characterized in that the first microcomputer and the second microcomputer are provided with A serial data transfer circuit for transferring a serial clock from a first microcomputer to the second microcomputer and transferring data of a predetermined bit from the second microcomputer to the first microcomputer in synchronization with the serial clock, A first input section to which a serial clock having a first threshold voltage and varying with a first amplitude or a second amplitude smaller than the first amplitude is applied; and the serial having a second threshold voltage lower than the first threshold voltage A second input section to which a clock is commonly applied; and a first output section that sets a predetermined bit of serial data as the first amplitude A second output unit that sets the constant bit of the serial data to the second amplitude; and a control unit that switches outputs of the first and second input units and switches outputs of the first and second output units. A second input unit which is built in the second microcomputer and which has the first threshold voltage and to which the serial data selectively output from the first or second output unit is applied; and the second threshold voltage. A fourth input section to which the serial data selectively output from the first or second output section is applied, a third output section having a serial clock as the first amplitude, and the serial clock as the second amplitude. The amplitude of the selected output of the fourth output section and the first or second output section is discriminated, and the selected serial clock from the third or fourth output section is sent to the second microcomputer based on the discrimination result. A discriminating unit to be applied to the first microcomputer, and the control unit issues an instruction to transfer the serial data from the first microcomputer to the second microcomputer at the second amplitude. A transfer of the serial clock of the second amplitude from the first microcomputer to the second microcomputer by using the determination result of the determination unit, and from the second microcomputer to the second clock in synchronization with the serial clock. The point is that the serial data of the second amplitude is transferred to one microcomputer.

【0006】[0006]

【作用】本発明によれば、第1及び第2マイクロコンピ
ュータの間において、転送されるシリアルクロック及び
シリアルデータの振幅を、第2マイクロコンピュータ内
部に設けられた制御部からの指示に基づき、異なる振幅
に切り換えることができる。よって、第1及び第2マイ
クロコンピュータの周辺に配置された集積回路の誤動作
を防止する必要がある時には、前記シリアルクロック及
び前記シリアルデータの振幅を小さい第2振幅とでき
る。
According to the present invention, the amplitudes of the serial clock and the serial data transferred between the first and second microcomputers are different based on the instruction from the control unit provided inside the second microcomputer. Amplitude can be switched. Therefore, when it is necessary to prevent the malfunction of the integrated circuits arranged around the first and second microcomputers, the amplitude of the serial clock and the serial data can be set to the small second amplitude.

【0007】[0007]

【実施例】本発明の詳細を図面に従って具体的に説明す
る。図1は本発明のシリアルデータ転送回路を示す図で
ある。図1において、(1)は第1マイクロコンピュー
タ、(2)は第2マイクロコンピュータであり、第1及
び第2マイクロコンピュータ(1)(2)は、シリアル
クロックCLK転送の為のクロック出力端子(3)及び
クロック入力端子(4)の間にクロックライン(5)を
介して接続され、且つ、シリアルデータDATA転送の
為のデータ出力端子(6)及びデータ入力端子(7)の
間にデータライン(8)を介して接続されている。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. FIG. 1 is a diagram showing a serial data transfer circuit of the present invention. In FIG. 1, (1) is a first microcomputer, (2) is a second microcomputer, and the first and second microcomputers (1) and (2) are clock output terminals for serial clock CLK transfer ( 3) and a clock input terminal (4) via a clock line (5), and a data line between a data output terminal (6) and a data input terminal (7) for serial data DATA transfer. It is connected via (8).

【0008】さて、第2マイクロコンピュータ(2)内
部において、(9)は第1閾値電圧Vth1を有するバ
ッファ(第1入力部)であり、第1閾値電圧Vth1
は、第2マイクロコンピュータ(2)の電源を5ボルト
とすると、1/2の2.5ボルトとする。また、バッフ
ァ(9)の入力はクロック入力端子(4)と接続されて
いる。(10)はコンパレータ(第2入力部)であり、
+(非反転入力)端子はクロック入力端子(4)と接続
され、−(反転入力)端子は電源Vdd及び接地の間に
直列接続された抵抗(11)(12)の接続点と接続さ
れて基準電圧が印加される。この基準電圧が第2閾値電
圧であり、例えば1ボルトに設定される。ANDゲート
(13)(14)及びORゲート(15)はマルチプレ
クサを構成し、ANDゲート(13)の一方の入力には
バッファ(9)の出力が接続され、ANDゲート(1
4)の一方の入力にはコンパレータ(10)の出力が接
続される。(16)は第2マイクロコンピュータ(2)
の動作を制御するCPUであり、ANDゲート(13)
(14)を相補的に開閉する為の制御信号eを出力す
る。即ち、バッファ(9)出力をORゲート(15)か
ら切換出力する時、制御信号eは論理「1」となり、反
対にコンパレータ(10)出力をORゲート(15)か
ら切換出力する時、制御信号eは論理「0」となる。こ
こで、クロック入力端子(4)に印加されてくるシリア
ルクロックの振幅が異なっている場合でも、ORゲート
(15)から出力される振幅は、バッファ(9)及びコ
ンパレータ(10)の電源が同一である為に、同一振幅
(5ボルト)となる。
In the inside of the second microcomputer (2), reference numeral (9) is a buffer (first input section) having the first threshold voltage Vth1 and the first threshold voltage Vth1.
When the power supply of the second microcomputer (2) is 5 volts, it is 1/2, which is 2.5 volts. The input of the buffer (9) is connected to the clock input terminal (4). (10) is a comparator (second input section),
The + (non-inverting input) terminal is connected to the clock input terminal (4), and the- (inverting input) terminal is connected to the connection point of the resistors (11) and (12) connected in series between the power supply Vdd and the ground. A reference voltage is applied. This reference voltage is the second threshold voltage and is set to, for example, 1 volt. The AND gates (13) and (14) and the OR gate (15) form a multiplexer. The output of the buffer (9) is connected to one input of the AND gate (13) and the AND gate (1
The output of the comparator (10) is connected to one input of 4). (16) is the second microcomputer (2)
Which is a CPU for controlling the operation of the AND gate (13)
A control signal e for complementary opening and closing of (14) is output. That is, when the output of the buffer (9) is switched from the OR gate (15), the control signal e becomes logic "1", and conversely, when the output of the comparator (10) is switched from the OR gate (15) and output. e becomes logical "0". Here, even when the amplitudes of the serial clocks applied to the clock input terminal (4) are different, the amplitude output from the OR gate (15) is the same for the buffer (9) and the comparator (10). Therefore, the amplitude is the same (5 volts).

【0009】(17)はバッファ(第1出力部)であ
り、出力を第1振幅(5ボルト)とする増幅率を有す
る。また、(18)もバッファであり、出力を第2振幅
(2ボルト)とする増幅率を有する。これらのバッファ
(17)(18)の入力にはCPU(16)の指示に応
じて発生する所定ビットのシリアルデータが印加され
る。(19)はバッファ(17)(18)出力を切り換
えてデータ出力端子(6)から出力させる切換部であ
り、CPU(16)から発生する制御信号fは制御信号
eに同期して同一論理値となる信号であり、制御信号f
が論理「1」となると、切換部(19)はバッファ(1
7)の出力側に切り替わり、制御信号fが論理「0」に
なると、切換部(19)はバッファ(18)の出力側に
切り替わる。
Reference numeral (17) is a buffer (first output section), which has an amplification factor for making the output the first amplitude (5 volts). Further, (18) is also a buffer and has an amplification factor for making the output the second amplitude (2 volts). Serial data of a predetermined bit generated in response to an instruction from the CPU (16) is applied to the inputs of these buffers (17) and (18). Reference numeral (19) is a switching unit for switching the outputs of the buffers (17) and (18) to output from the data output terminal (6). The control signal f generated from the CPU (16) is synchronized with the control signal e and has the same logical value. And the control signal f
Becomes logical "1", the switching unit (19) causes the buffer (1
When the control signal f becomes the logic "0", the switching section (19) switches to the output side of the buffer (18).

【0010】一方、第1マイクロコンピュータ(1)内
部において、(20)はシリアルクロック発生回路であ
り、クロック信号aが印加されることにより8周期のシ
リアルクロックbを発生するものである。(21)はラ
ッチクロック発生回路であり、クロック信号aの立ち下
がりを受けてラッチクロックcを発生するものである。
(22)は前記第1閾値電圧を有するバッファ(第3入
力部)であり、その入力はデータ入力端子と接続されて
いる。(23)は前記第2閾値電圧を有するコンパレー
タ(第4入力部)であり、+端子はデータ入力端子
(7)と接続され、−端子は電源Vdd及び接地の間に
直列接続された抵抗(24)(25)の接続点と接続さ
れている。(26)はラッチ回路(判別部)であり、L
端子はバッファ(22)の出力と接続され、C端子には
ラッチクロックcが印加される。ANDゲート(27)
(28)及びORゲート(29)はマルチプレクサ(選
択部)を構成し、ANDゲート(27)の一方の入力は
バッファ(22)の出力と接続され、ANDゲート(2
8)の一方の入力はコンパレータ(23)の出力と接続
されている。更にANDゲート(27)の他方の入力に
はラッチ回路(26)のQ端子出力が直接印加され、A
NDゲート(28)の他方の入力にはラッチ回路(2
6)のQ端子出力が反転されて印加される。即ち、AN
Dゲート(27)(28)はラッチ回路(26)の出力
に応じて相補的にゲートを開閉する。
On the other hand, inside the first microcomputer (1), reference numeral (20) is a serial clock generating circuit, which generates a serial clock b of 8 cycles by applying the clock signal a. Reference numeral (21) is a latch clock generation circuit, which generates a latch clock c in response to the fall of the clock signal a.
(22) is a buffer (third input section) having the first threshold voltage, the input of which is connected to the data input terminal. (23) is a comparator (fourth input section) having the second threshold voltage, the + terminal is connected to the data input terminal (7), and the-terminal is a resistor (in series) connected between the power supply Vdd and the ground. 24) It is connected to the connection point of (25). (26) is a latch circuit (discrimination unit),
The terminal is connected to the output of the buffer (22), and the latch clock c is applied to the C terminal. AND gate (27)
(28) and the OR gate (29) form a multiplexer (selection unit), one input of the AND gate (27) is connected to the output of the buffer (22), and the AND gate (2
One input of 8) is connected to the output of the comparator (23). Furthermore, the Q terminal output of the latch circuit (26) is directly applied to the other input of the AND gate (27), and A
The other input of the ND gate (28) has a latch circuit (2
The Q terminal output of 6) is inverted and applied. That is, AN
The D gates (27) and (28) complementarily open and close the gates according to the output of the latch circuit (26).

【0011】(30)はバッファ(第3出力部)であ
り、シリアルクロックbを第1振幅とする増幅率を有す
るものである。(31)はバッファ(第4出力部)であ
り、シリアルクロックbを第2振幅とする増幅率を有す
るものである。(32)は切換部であり、バッファ(3
0)(31)の何れか一方の出力を切り換えてクロック
出力端子(3)から出力させるものである。この切換部
(32)の切り換えはラッチ回路(26)のQ端子出力
によって行われる。即ち、ラッチ回路(26)の出力が
論理「1」の時、バッファ(30)の出力が選択され、
ラッチ回路(26)の出力が論理「0」の時、バッファ
(31)の出力が選択される。
Reference numeral (30) is a buffer (third output section) having an amplification factor with the serial clock b as the first amplitude. Reference numeral (31) is a buffer (fourth output unit), which has an amplification factor with the serial clock b as the second amplitude. (32) is a switching unit, and the buffer (3
One of the outputs 0) and (31) is switched to be output from the clock output terminal (3). The switching of the switching unit (32) is performed by the output of the Q terminal of the latch circuit (26). That is, when the output of the latch circuit (26) is logic "1", the output of the buffer (30) is selected,
When the output of the latch circuit (26) is logic "0", the output of the buffer (31) is selected.

【0012】以上の如く構成された図1の動作を図2の
タイムチャートを基に説明する。まず、映像機器やオー
ディオ機器内部のプリント基板上に、音声又は映像信号
処理用の集積回路と共に第1及び第2マイクロコンピュ
ータ(1)(2)を配置した場合、第1及び第2マイク
ロコンピュータ(1)(2)間で転送されるシリアルク
ロックCLK及びシリアルデータDATAの変化時に生
じるノイズが問題となる。そこで、第1及び第2マイク
ロコンピュータ(1)(2)間のシリアルクロックCL
K及びシリアルデータDATAの振幅を小さくして(第
2振幅)転送を行わなければならない。この場合、CP
U(16)に第2振幅で転送動作を行う為のプログラム
を予め設定しておく。そして、第1及び第2マイクロコ
ンピュータ(1)(2)が起動され、CPU(16)か
ら論理「0」の制御信号e及びfが発生する。すると、
コンパレータ(10)及びバッファ(18)の出力が選
択される。そして、第2マイクロコンピュータ(2)内
部においてバッファ(18)及び切換部(19)を介し
てシリアルデータがデータ出力端子(6)から導出され
ようとするが、まだ第1マイクロコンピュータ(1)か
らのシリアルクロックCLKが第2マイクロコンピュー
タ(2)に転送されていない為に、シリアルデータは不
確定の状態にある。ここで、シリアルデータは不確定の
状態の時、その振幅におけるハイレベルの状態を継続す
るものとする。尚、バッファ(18)の出力は論理
「1」が2ボルト、論理「0」が0ボルトとなる振幅が
2ボルトの出力であるが、上記した様に、この時点では
2ボルトのまま変化することはない。この状態のシリア
ルデータDATAがデータ入力端子(7)を介して第1
マイクロコンピュータ(1)内部のバッファ(22)に
印加されると、該バッファ(22)の第1閾値電圧
(2.5ボルト)にシリアルデータDATAの論理
「1」レベルが達しない為、バッファ(22)の出力は
ローレベルとなる。
The operation of FIG. 1 configured as above will be described with reference to the time chart of FIG. First, when the first and second microcomputers (1) and (2) are arranged together with an integrated circuit for processing audio or video signals on a printed circuit board inside a video device or an audio device, the first and second microcomputers ( Noise that occurs when the serial clock CLK and the serial data DATA transferred between 1) and 2) change is a problem. Therefore, the serial clock CL between the first and second microcomputers (1) and (2)
It is necessary to reduce the amplitudes of K and the serial data DATA (second amplitude) for transfer. In this case, CP
A program for performing the transfer operation at the second amplitude is set in U (16) in advance. Then, the first and second microcomputers (1) and (2) are activated, and the control signals e and f of logic "0" are generated from the CPU (16). Then
The outputs of the comparator (10) and the buffer (18) are selected. Then, the serial data is going to be derived from the data output terminal (6) via the buffer (18) and the switching unit (19) inside the second microcomputer (2), but the serial data is still output from the first microcomputer (1). Since the serial clock CLK of is not transferred to the second microcomputer (2), the serial data is in an indeterminate state. Here, when the serial data is in an uncertain state, it is assumed that the high level state of the amplitude continues. The output of the buffer (18) is an output of 2 volt in which the logic "1" is 2 volt and the logic "0" is 0 volt, but as described above, it changes to 2 volt at this point. There is no such thing. The serial data DATA in this state is transferred to the first via the data input terminal (7).
When applied to the buffer (22) inside the microcomputer (1), the logic "1" level of the serial data DATA does not reach the first threshold voltage (2.5 volts) of the buffer (22). The output of 22) becomes low level.

【0013】さて、クロック信号aの立ち下がりに同期
してラッチクロックcが発生すると、バッファ(22)
の出力がラッチ回路(26)にラッチされ、ラッチ回路
(26)の出力はローレベルとなってANDゲート(2
8)がゲートを開く。即ち、シリアルデータDATAは
コンパレータ(23)で基準電圧の1ボルトと比較され
て出力され、ANDゲート(28)を介してORゲート
(29)から出力されることになる。一方、ラッチ回路
(26)のローレベル出力により切換部(32)はバッ
ファ(31)側に切り換えられている。従って、シリア
ルクロックbはバッファ(31)により0〜2ボルトの
間で変化する2ボルトの振幅を有するシリアルクロック
CLKとされ、クロック出力端子(3)からクロック入
力端子(4)に印加される。このシリアルクロックCL
Kは、コンパレータ(10)により基準電圧(1ボル
ト)と比較され、ゲートを開いているANDゲート(1
4)を介してORゲート(15)から5ボルトの振幅の
シリアルクロックとして第2マイクロコンピュータ
(2)内部に取り込まれる。第2マイクロコンピュータ
(2)内部では、ORゲート(15)から出力されたシ
リアルクロックに同期して8ビットのシリアルデータを
発生する。このシリアルデータはバッファ(18)で2
ボルトの振幅とされ、切換部(19)を介してデータ出
力端子(6)からシリアルデータDATA(d0〜d
7)として出力されてデータ入力端子(7)を介して第
1マイクロコンピュータ(1)内部のコンパレータ(2
3)で1ボルトの基準電圧と比較される。ANDゲート
(28)がゲートを開いている為、コンパレータ(2
3)の出力がORゲート(29)から5ボルトの振幅で
出力され、第1マイクロコンピュータ(1)内部で所定
の演算処理を施される。
When the latch clock c is generated in synchronization with the fall of the clock signal a, the buffer (22)
Is latched by the latch circuit (26), the output of the latch circuit (26) becomes low level, and the AND gate (2
8) opens the gate. That is, the serial data DATA is output after being compared with the reference voltage of 1 volt by the comparator (23) and output from the OR gate (29) via the AND gate (28). On the other hand, the switching unit (32) is switched to the buffer (31) side by the low level output of the latch circuit (26). Therefore, the serial clock b is made into a serial clock CLK having an amplitude of 2 volts which varies between 0 and 2 volts by the buffer (31) and is applied from the clock output terminal (3) to the clock input terminal (4). This serial clock CL
K is compared with a reference voltage (1 volt) by a comparator (10) to open the AND gate (1
It is taken into the inside of the second microcomputer (2) from the OR gate (15) via 4) as a serial clock having an amplitude of 5 volts. Inside the second microcomputer (2), 8-bit serial data is generated in synchronization with the serial clock output from the OR gate (15). This serial data is 2 in the buffer (18)
The amplitude of the volt is set to the serial data DATA (d0 to d) from the data output terminal (6) through the switching unit (19).
7) and the comparator (2) inside the first microcomputer (1) is output via the data input terminal (7).
In 3) it is compared with a reference voltage of 1 volt. Since the AND gate (28) opens the gate, the comparator (2
The output of 3) is output from the OR gate (29) with an amplitude of 5 volts, and is subjected to predetermined arithmetic processing inside the first microcomputer (1).

【0014】以上より、第1及び第2マイクロコンピュ
ータ(1)間において、シリアルクロックCLK及びシ
リアルデータDATAの転送を行う場合に、両マイクロ
コンピュータ(1)(2)を外部接続するライン(5)
(8)でのシリアルデータCLK及びシリアルデータD
ATAの振幅を小さくできる為、周辺に存在する集積回
路へのノイズの重畳を防止でき、これより周辺の集積回
路における誤動作を防止できる。
From the above, when the serial clock CLK and the serial data DATA are transferred between the first and second microcomputers (1), the line (5) for externally connecting the both microcomputers (1) and (2).
Serial data CLK and serial data D in (8)
Since the amplitude of the ATA can be reduced, it is possible to prevent noise from being superposed on the peripheral integrated circuits, and thus to prevent malfunction in the peripheral integrated circuits.

【0015】また、周辺の集積回路へのノイズ等の影響
を考慮する必要がないシステムの場合、或いは、周辺か
らのノイズの影響があり、シリアルクロックCLK及び
シリアルデータDATAの振幅を大きくしなければ前記
ノイズの影響を無視できない場合等では、クロックライ
ン(5)及びデータライン(8)を通って転送されるシ
リアルクロックCLK及びシリアルデータDATAの振
幅は5ボルトとする必要がある。この場合、CPU(1
6)から出力される制御信号e及びfをハイレベルとす
ればよい。こうすることにより、上記した動作と同様に
動作し、5ボルトの振幅のシリアルクロックCLK及び
シリアルデータDATA(D0〜D7)が得られる。
In the case of a system in which it is not necessary to consider the influence of noise or the like on the peripheral integrated circuits, or because of the influence of noise from the periphery, the amplitudes of the serial clock CLK and the serial data DATA must be increased. When the influence of the noise cannot be ignored, the amplitude of the serial clock CLK and the serial data DATA transferred through the clock line (5) and the data line (8) needs to be 5 volts. In this case, CPU (1
The control signals e and f output from 6) may be set to the high level. By doing so, the same operation as described above is performed, and the serial clock CLK and the serial data DATA (D0 to D7) having an amplitude of 5 volts can be obtained.

【0016】[0016]

【発明の効果】本発明によれば、第1及び第2マイクロ
コンピュータ間において、シリアルクロック及びシリア
ルデータの転送を行う場合に、両マイクロコンピュータ
間でインターフェースの為にを外部接続されるライン上
に重畳されるシリアルクロック及びシリアルデータの振
幅を切り換えて大きくしたり或いは小さくしたりでき
る。これにより、第1及び第2マイクロコンピュータの
周辺に存在する集積回路の特性に応じて、シリアルクロ
ック及びシリアルデータの振幅を切り換えればよく、特
に、周辺の集積回路がノイズの影響を受けやすい場合に
は、振幅を小さくすることにより周辺に存在する集積回
路へのノイズの重畳を防止でき、これより周辺の集積回
路における誤動作を防止できる利点が得られる。
According to the present invention, when the serial clock and the serial data are transferred between the first and second microcomputers, they are connected to the externally connected line for the purpose of interface between the two microcomputers. The amplitude of the serial clock and the serial data to be superimposed can be switched to increase or decrease. As a result, the amplitudes of the serial clock and the serial data may be switched according to the characteristics of the integrated circuits existing around the first and second microcomputers, and especially when the peripheral integrated circuits are easily affected by noise. In addition, by reducing the amplitude, it is possible to prevent noise from being superposed on the integrated circuits existing in the periphery, and to obtain an advantage that malfunctions in the peripheral integrated circuits can be prevented.

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

【図1】本発明のシリアルデータ転送回路を示す図であ
る。
FIG. 1 is a diagram showing a serial data transfer circuit of the present invention.

【図2】図1のタイムチャートである。FIG. 2 is a time chart of FIG.

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

(1) 第1マイクロコンピュータ (2) 第2マイクロコンピュータ (9)(17)(18)(22)(30)(31) バ
ッファ (10)(23) コンパレータ (16) CPU (19)(32) 切換部 (26) ラッチ回路 (27)(28) ANDゲート (29) ORゲート
(1) First microcomputer (2) Second microcomputer (9) (17) (18) (22) (30) (31) Buffer (10) (23) Comparator (16) CPU (19) (32) Switching unit (26) Latch circuit (27) (28) AND gate (29) OR gate

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 第1マイクロコンピュータと第2マイク
ロコンピュータとの間で、前記第1マイクロコンピュー
タから前記第2マイクロコンピュータへシリアルクロッ
クを転送し、該シリアルクロックに同期して前記第2マ
イクロコンピュータから前記第1マイクロコンピュータ
へ所定ビットのデータ転送を行うシリアルデータ転送回
路において、 第1閾値電圧を有し第1振幅又は該第1振幅より小さい
第2振幅で変化するシリアルクロックが印加される第1
入力部と、前記第1閾値電圧より低い第2閾値電圧を有
し前記シリアルクロックが共通印加される第2入力部
と、所定ビットのシリアルデータを前記第1振幅とする
第1出力部と、所定ビットの前記シリアルデータを前記
第2振幅とする第2出力部と、前記第1及び第2入力部
の出力を切り換えると共に前記第1及び第2出力部の出
力を切り換える制御部と、を前記第2マイクロコンピュ
ータに内蔵すると共に、 前記第1閾値電圧を有し前記第1又は第2出力部から選
択出力されたシリアルデータが印加される第3入力部
と、前記第2閾値電圧を有し前記第1又は第2出力部か
ら選択出力されたシリアルデータが印加される第4入力
部と、シリアルクロックを前記第1振幅とする第3出力
部と、前記シリアルクロックを前記第2振幅とする第4
出力部と、前記第1又は第2出力部の選択出力の振幅を
判別しこの判別結果に基づいて前記第3又は第4出力部
からの選択されたシリアルクロックを前記第2マイクロ
コンピュータに印加させる判別部と、を前記第1マイク
ロコンピュータに内蔵し、 前記制御部から、前記シリアルデータを前記第2振幅で
前記第1マイクロコンピュータから前記第2マイクロコ
ンピュータへ転送する指示が発生した時、前記判別部の
判別結果を用いることにより、前記第1マイクロコンピ
ュータから前記第2マイクロコンピュータへ前記第2振
幅のシリアルクロックを転送し、該シリアルクロックに
同期して前記第2マイクロコンピュータから前記第1マ
イクロコンピュータへ前記第2振幅のシリアルデータを
転送することを特徴とするシリアルデータ転送回路。
1. A serial clock is transferred from the first microcomputer to the second microcomputer between a first microcomputer and a second microcomputer, and is synchronized with the serial clock from the second microcomputer. A serial data transfer circuit for transferring data of a predetermined bit to the first microcomputer, wherein a serial clock having a first threshold voltage and varying with a first amplitude or a second amplitude smaller than the first amplitude is applied.
An input unit, a second input unit having a second threshold voltage lower than the first threshold voltage, to which the serial clock is commonly applied, and a first output unit having a predetermined amplitude of serial data of a predetermined bit, A second output section that sets the predetermined amplitude of the serial data to the second amplitude; and a control section that switches the outputs of the first and second input sections and the outputs of the first and second output sections. It has a second threshold voltage, and a third input section which is built in the second microcomputer and which has the first threshold voltage and to which the serial data selectively output from the first or second output section is applied. A fourth input section to which the serial data selectively output from the first or second output section is applied, a third output section having a serial clock as the first amplitude, and the serial clock as the second amplitude. First Four
The output section and the amplitude of the selected output of the first or second output section are discriminated, and the selected serial clock from the third or fourth output section is applied to the second microcomputer based on the discrimination result. A discriminating unit, which is built in the first microcomputer, and the discriminating unit is operated when the control unit issues an instruction to transfer the serial data with the second amplitude from the first microcomputer to the second microcomputer. The serial clock having the second amplitude is transferred from the first microcomputer to the second microcomputer by using the determination result of the section, and the second microcomputer transfers the serial clock to the first microcomputer in synchronization with the serial clock. Serial data transfer characterized in that the serial data of the second amplitude is transferred to circuit.
【請求項2】 前記第3及び第4入力部の出力を前記判
別部の判別出力により選択し同一振幅で出力する選択部
を、前記第1マイクロコンピュータ内部に備えたことを
特徴とする請求項1記載のシリアルデータ転送回路。
2. A selection unit for selecting the outputs of the third and fourth input units according to the discrimination output of the discrimination unit and outputting the same amplitude is provided inside the first microcomputer. 1. The serial data transfer circuit described in 1.
JP7150360A 1995-06-16 1995-06-16 Serial data transfer circuit Pending JPH096502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7150360A JPH096502A (en) 1995-06-16 1995-06-16 Serial data transfer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7150360A JPH096502A (en) 1995-06-16 1995-06-16 Serial data transfer circuit

Publications (1)

Publication Number Publication Date
JPH096502A true JPH096502A (en) 1997-01-10

Family

ID=15495296

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7150360A Pending JPH096502A (en) 1995-06-16 1995-06-16 Serial data transfer circuit

Country Status (1)

Country Link
JP (1) JPH096502A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010064497A (en) * 1999-12-29 2001-07-09 박종섭 Serial digital sound data interface apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010064497A (en) * 1999-12-29 2001-07-09 박종섭 Serial digital sound data interface apparatus

Similar Documents

Publication Publication Date Title
CN101636913B (en) Low power serdes architecture using serial i/o burst gating
AU2003233131A1 (en) Electronic circuit with asynchronously operating components
US7068565B2 (en) Clock control in sequential circuit for low-power operation and circuit conversion to low-power sequential circuit
TW437169B (en) Reset circuit for flip-flop
JPH096502A (en) Serial data transfer circuit
JP2005234976A (en) Storage device
US5576709A (en) Delay circuit using a digital memory
JP2003141062A (en) IIC bus control system
JP3714316B2 (en) Input/output buffer and integrated circuit
JPH10200586A (en) Data signal transmission method and signal input circuit for semiconductor device
JP3344564B2 (en) Bidirectional serial bus repeater
JPH07154234A (en) Signal input / output switching device
JP3239108B2 (en) Module selection control device
JP2598580Y2 (en) IC test equipment
US5903233A (en) Extended binary apparatus and method
JPH05268020A (en) Clock switching circuit
JPH0348507A (en) Electronic volume device
JP3425580B2 (en) Test signal generation circuit for semiconductor integrated circuit
JPH04130818A (en) Input circuit
JPH03254469A (en) Connection circuit for disk controller and data separator
JPH02884B2 (en)
JP2000090043A (en) Peripheral equipment detecting method of computer
JPH09146980A (en) Logical delay simulation method
JPH02195719A (en) Integrated circuit
JPH03228428A (en) Output circuit