JP3532128B2 - Serial transmission / reception circuit and system thereof - Google Patents

Serial transmission / reception circuit and system thereof

Info

Publication number
JP3532128B2
JP3532128B2 JP25014099A JP25014099A JP3532128B2 JP 3532128 B2 JP3532128 B2 JP 3532128B2 JP 25014099 A JP25014099 A JP 25014099A JP 25014099 A JP25014099 A JP 25014099A JP 3532128 B2 JP3532128 B2 JP 3532128B2
Authority
JP
Japan
Prior art keywords
serial
transmission
timer
counter
reception 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.)
Expired - Lifetime
Application number
JP25014099A
Other languages
Japanese (ja)
Other versions
JP2001077800A (en
Inventor
雄大 坂井
章雄 岡原
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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP25014099A priority Critical patent/JP3532128B2/en
Publication of JP2001077800A publication Critical patent/JP2001077800A/en
Application granted granted Critical
Publication of JP3532128B2 publication Critical patent/JP3532128B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、シリアル伝送送受
信回路に関し、特に、シリアルクロック信号線に混入し
たノイズ等による誤動作から復帰できるようにしたシリ
アル伝送送受信回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial transmission / reception circuit, and more particularly to a serial transmission / reception circuit capable of recovering from malfunction due to noise mixed in a serial clock signal line.

【0002】[0002]

【従来の技術】マイコンを用いて処理対象を制御する際
に、一本の伝送線を用いてデータを一度に1ビットづつ
シリアルに伝送するシリアル伝送方式が使われている。
図1に、その具体的一例として、リニアソレノイド駆動
ICの例を示す。図1の具体例では、マイコン1でIC
2を制御してソレノイド3に供給する出力電流を設定す
るものである。ここで、マイコン1は出力電流を設定す
シリアル入力信号SINとともにシリアルクロック信号
SCLKをIC2に送信する。IC2では、シリアルク
ロック信号SCLKに同期してシリアル入力信号SIN
を処理し、ソレノイド3への出力電流を設定する。この
設定がなされると、IC2は、例えば、ダイアグ情報と
してシリアル出力信号SOUTをマイコン1に送り返え
している。
2. Description of the Related Art When controlling an object to be processed using a microcomputer, a serial transmission system is used in which data is serially transmitted one bit at a time using one transmission line.
FIG. 1 shows an example of a linear solenoid drive IC as a specific example. In the specific example shown in FIG.
2 is set to set the output current supplied to the solenoid 3. Here, the microcomputer 1 transmits the serial clock signal SCLK to the IC 2 together with the serial input signal SIN for setting the output current. In IC2, the serial input signal SIN is synchronized with the serial clock signal SCLK.
Is set and the output current to the solenoid 3 is set. When this setting is made, the IC 2 sends back the serial output signal SOUT to the microcomputer 1 as diagnostic information, for example.

【0003】図2に、図1におけるインターフェイス部
であるIC2の概略ブロック構成を示す。IC2は、シ
フトレジスタ4、処理回路5、シフトレジスタ6、カウ
ンタ7及びNOR回路8で構成されている。シフトレジ
スタ4には、マイコン1からシリアル入力信号SINと
ともにシリアルクロック信号SCLKが送信される。そ
して、シフトレジスタ4は、シリアルに処理回路5にシ
リアル入力信号SINを伝送する。処理回路5は、シリ
アル入力信号SINに従ってソレノイド3(図2では図
示なし)への出力電流を設定する。処理回路5は、シフ
トレジスタ6にダイアグ情報を送り、シフトレジスタ6
は、マイコン1からのシリアルクロック信号SCLKに
同期してこのダイアグ情報のシリアル出力信号SOUT
をマイコン1に伝送する。
FIG. 2 shows a schematic block configuration of the IC 2 which is the interface section in FIG. The IC 2 is composed of a shift register 4, a processing circuit 5, a shift register 6, a counter 7 and a NOR circuit 8. The serial clock signal SCLK is transmitted from the microcomputer 1 to the shift register 4 together with the serial input signal SIN. Then, the shift register 4 serially transmits the serial input signal SIN to the processing circuit 5. The processing circuit 5 sets the output current to the solenoid 3 (not shown in FIG. 2) according to the serial input signal SIN. The processing circuit 5 sends the diagnostic information to the shift register 6, and the shift register 6
Is a serial output signal SOUT of this diagnostic information in synchronization with the serial clock signal SCLK from the microcomputer 1.
Is transmitted to the microcomputer 1.

【0004】以上の構成によるシリアル伝送送受信回路
の動作を、図3に示したタイミングチャートを参照して
説明する。マイコン1からシフトレジスタ4に伝送され
るシリアル入力信号SINのデータ長は16ビットであ
るとする。シフトレジスタ4には、マイコン1からのシ
リアルクロック信号SCLKに同期してシリアル入力信
号SINが1ビットづつ入力される。そのとき、カウン
タ7にもマイコン1からシリアルクロック信号SCLK
が入力されているので、カウンタ7は、シリアルクロッ
ク信号SCLKのカウントを開始する。
The operation of the serial transmission / reception circuit having the above configuration will be described with reference to the timing chart shown in FIG. It is assumed that the serial input signal SIN transmitted from the microcomputer 1 to the shift register 4 has a data length of 16 bits. The serial input signal SIN is input to the shift register 4 bit by bit in synchronization with the serial clock signal SCLK from the microcomputer 1. At that time, the counter 7 also sends the serial clock signal SCLK from the microcomputer 1.
Has been input, the counter 7 starts counting the serial clock signal SCLK.

【0005】図3のAに示されるように、シリアル入力
信号SINのデータ長は16ビットであるので、カウン
タ7は、16個のパルスをカウントできたとき、正常伝
送ができたことになる。そこで、カウンタ7は、シリア
ルクロック信号SCLKの最終ビットである16個目ま
でカウントすると、カウンタ7からLOAD信号が出力
される。そのLOAD信号はOR回路を介してシフトレ
ジスタ6に供給され、シフトレジスタ6をその時点でク
リアするようになっている。
As shown in FIG. 3A, since the data length of the serial input signal SIN is 16 bits, when the counter 7 can count 16 pulses, it means that the normal transmission is possible. Therefore, when the counter 7 counts up to the 16th bit, which is the last bit of the serial clock signal SCLK, the counter 7 outputs a LOAD signal. The LOAD signal is supplied to the shift register 6 via the OR circuit, and the shift register 6 is cleared at that time.

【0006】[0006]

【発明が解決しようとする課題】ところで、図2のシリ
アル伝送送受信回路において、例えば、シリアルクロッ
ク信号SCLKにノイズが重畳されることにより、シリ
アルクロック信号SCLKの16個目のパルスが欠落し
てしまうことがある。図3のAに示されるように、カウ
ンタ7がマイコン1からのシリアルクロック信号SCL
Kを16個全てカウントできれば、シリアル伝送が正常
に行われたことになるので、シリアルクロック信号SC
LKの16個目のパルスが欠落してしまうと、カウンタ
7はLOAD信号を出力できない。そのため、シフトレ
ジスタ6もクリアすることができない。そうすると、図
3のBに示すように、シフトレジスタ6がクリアされ
ず、シリアル出力信号SOUTが矢印aの如くに保持さ
れたままの状態となる。これは、カウンタ7が前のシリ
アル伝送受信の16個目の信号を待っている状態であ
り、次のシリアル伝送受信に移行できないことを意味す
る。なお、通常、シフトレジスタの出力は信号がないと
きハイ固定になっているので、シフトレジスタの出力が
ローレベルを維持すると、次のシリアル伝送に移行でき
ない。
By the way, in the serial transmission / reception circuit of FIG. 2, for example, noise is superimposed on the serial clock signal SCLK, so that the 16th pulse of the serial clock signal SCLK is lost. Sometimes. As shown in A of FIG. 3, the counter 7 outputs the serial clock signal SCL from the microcomputer 1.
If all 16 Ks can be counted, it means that the serial transmission is normally performed. Therefore, the serial clock signal SC
If the 16th pulse of LK is missing, the counter 7 cannot output the LOAD signal. Therefore, the shift register 6 cannot be cleared either. Then, as shown in FIG. 3B, the shift register 6 is not cleared, and the serial output signal SOUT remains held as indicated by the arrow a. This means that the counter 7 is waiting for the 16th signal of the previous serial transmission and reception, and cannot shift to the next serial transmission and reception. Since the output of the shift register is normally fixed to high when there is no signal, if the output of the shift register maintains the low level, the next serial transmission cannot be started.

【0007】以上では、ノイズの影響によりシリアルク
ロック信号SCLKの16個目のパルスが欠落した場合
を説明したが、シリアルクロック信号SCLKの16個
のうちの途中のパルスが欠落した場合も、前述と同様
に、カウンタ7は、最終ビットまでカウントできず、L
OAD信号を出力できないから、この場合もシフトレジ
スタ6はクリアされず、次のシリアル伝送受信に移行で
きない。
In the above description, the case where the 16th pulse of the serial clock signal SCLK is lost due to the influence of noise has been described. Similarly, the counter 7 cannot count up to the last bit,
Since the OAD signal cannot be output, the shift register 6 is not cleared even in this case and the next serial transmission reception cannot be performed.

【0008】そこで、これらの場合に、シリアル伝送送
受信回路の誤動作を復帰するには、シフトレジスタ6を
クリアするか、またはカウンタ7をクリアしなければな
らない。これらの処置をソフトウエアで行うことも可能
であるが、他の処理の実行もあるので、頻繁に行うこと
ができない。したがって、本発明は、ノイズの影響でシ
リアルクロック信号SCLKのパルスが欠落しても、そ
の誤動作から簡単に復帰できるようにしたシリアル伝送
送受信回路を提供することを目的とする。
Therefore, in these cases, in order to recover the malfunction of the serial transmission / reception circuit, the shift register 6 or the counter 7 must be cleared. Although these measures can be performed by software, they cannot be frequently performed because other processes are executed. Therefore, it is an object of the present invention to provide a serial transmission / reception circuit capable of easily recovering from the malfunction even if the pulse of the serial clock signal SCLK is missing due to the influence of noise.

【0009】[0009]

【課題を解決するための手段】そこで、本発明は、上記
目的を達成するために、シリアルクロックと共に受信さ
れるシリアルデータに基づいて処理回路で所定の処理を
行ない、該処理回路からシリアルデータを送信するシリ
アル伝送送受信回路において、前記処理回路から伝送線
へ送信されるシリアルデータを格納する記憶手段と、前
記シリアルクロックの所定数を計数するカウンタ手段
と、前記カウンタ手段が所定数を計数したとき出力する
信号により前記記憶手段をクリアする手段と、前記カウ
ンタ手段が計数を開始したときタイマ動作を開始するタ
イマ手段とを備え、前記タイマ手段は、前記タイマ動作
の開始から所定時間経過後に前記カウンタ手段から前記
信号を出力させるようにしたそして、前記タイマ手段
は、前記受信されるシリアルデータの伝送の間隔よりは
短く、前記受信されるシリアルデータの伝送時間より長
い前記所定時間経過後にクリア信号を発生し、前記カウ
ンタ手段をクリアするようにし、或いは、1つ目の前記
シリアルクロックを検知してタイマ動作を開始するよう
にした。
SUMMARY OF THE INVENTION In order to achieve the above object, therefore, the present invention is directed to receiving with a serial clock.
Perform predetermined processing in the processing circuit based on the serial data
The serial circuit for transmitting serial data from the processing circuit.
In the transmission / reception circuit, the transmission line from the processing circuit
Storage means for storing serial data transmitted to
Counter means for counting a predetermined number of serial clocks
And outputs when the counter means counts a predetermined number.
Means for clearing the storage means by a signal,
Start timer operation when the input means starts counting.
Imager means, and the timer means operates the timer.
After a predetermined time has elapsed from the start of the
I tried to output a signal . And the timer means
Is more than the interval of transmission of the received serial data
Shorter than the transmission time of the received serial data
A clear signal is generated after the predetermined time has elapsed, and the
Clear the input means, or the first
Start the timer operation by detecting the serial clock
I chose

【0010】また、本発明では、シリアルクロックと共
に受信されるシリアルデータに基づいて処理回路で所定
の処理を行ない、該処理回路からシリアルデータを送信
するシリアル伝送送受信回路において、前記処理回路か
ら伝送線へ送信されるシリアルデータを格納する記憶手
段と、前記シリアルクロックの所定数を計数するカウン
タ手段と、前記カウンタ手段が所定数を計数したとき出
力する信号により前記記憶手段をクリアする手段と、前
記シリアルクロックを検知してタイマ動作を開始するタ
イマ手段とを備え、前記タイマ手段が、当該送受信回路
に内蔵された発振器が出力する基準クロックに基づいて
前記タイマ動作を行ない、前記タイマ動作の開始から所
定時間経過後に前記カウンタ手段から前記信号を出力さ
せることとした。更に、本発明では、シリアル伝送送受
信回路と、シリアルクロックと共に前記シリアル伝送送
受信回路にシリアルデータを送信し、該シリアル伝送送
受信回路からシリアルデータを受信するマイコンとを備
えるシリアル伝送送受信システムとし、前記シリアル伝
送送受信回路が、受信されるシリアルデータに基づいて
所定の処理をする処理回路と、前記処理回路から伝送線
へ送信されるシリアルデータを格納する記憶手段と、前
記シリアルクロックの所定数を計数するカウンタ手段
と、前記カウンタ手段が所定数を計数したとき出力する
信号により前記記憶手段をクリアする手段と、前記カウ
ンタ手段が計数を開始したときタイマ動作を開始し、前
記タイマ動作の開始から所定時間経過後に前記カウンタ
手段から前記信号を出力させるタイマ手段とを有するこ
ととした。
Further , according to the present invention, a serial clock is also used.
Predetermined by the processing circuit based on the serial data received by
Process and transmit serial data from the processing circuit
Serial transmission / reception circuit
Storage device that stores the serial data transmitted from the
And a counter for counting a predetermined number of the serial clocks.
Output when the counter means and the counter means count a predetermined number.
Means for clearing the storage means by a signal applied,
A timer that detects the serial clock and starts the timer operation.
And a timer circuit for transmitting / receiving the transmission / reception circuit.
Based on the reference clock output by the oscillator built into the
Performing the timer operation, and starting from the start of the timer operation
After the elapse of a fixed time, the counter means outputs the signal.
I decided to let it. Further, according to the present invention, serial transmission / reception
Signal transmission circuit together with the serial clock.
Send serial data to the receiving circuit and send the serial transmission
Equipped with a microcomputer that receives serial data from the receiving circuit
Serial transmission / reception system
Based on the serial data received, the transmitter / receiver circuit
A processing circuit that performs predetermined processing and a transmission line from the processing circuit
Storage means for storing serial data transmitted to
Counter means for counting a predetermined number of serial clocks
And outputs when the counter means counts a predetermined number.
Means for clearing the storage means by a signal,
Start timer operation when the input means starts counting,
The counter is activated after a lapse of a predetermined time from the start of the timer operation.
Means for outputting the signal from the means.
And

【0011】[0011]

【発明の実施の形態】以下、図4及び図5を参照して、
本発明の実施形態について説明する。図4に示したシリ
アル伝送送受信回路の基本構成は、図2に示した送受信
回路と同様であるので、図4において、図2と同じ部分
には同じ符号を付した。本実施形態によるシリアル伝送
送受信回路は、マイコン1とIC2とが接続され、IC
2は、シフトレジスタ4、処理回路5、シフトレジスタ
6、カウンタ7及びNOR回路8で基本的に構成されて
いる。ここで、図4に示した本実施形態では、タイマ9
がシリアル伝送送受信回路のカウンタ7に接続されてい
る点で、図2で示した従来のシリアル伝送送受信回路と
異なっている。
BEST MODE FOR CARRYING OUT THE INVENTION Referring to FIGS. 4 and 5,
An embodiment of the present invention will be described. Since the basic configuration of the serial transmission / reception circuit shown in FIG. 4 is similar to that of the transmission / reception circuit shown in FIG. 2, the same parts as those in FIG. 2 are denoted by the same reference numerals. In the serial transmission / reception circuit according to the present embodiment, the microcomputer 1 and the IC 2 are connected,
2 is basically composed of a shift register 4, a processing circuit 5, a shift register 6, a counter 7 and a NOR circuit 8. Here, in the present embodiment shown in FIG.
Is connected to the counter 7 of the serial transmission / reception circuit, which is different from the conventional serial transmission / reception circuit shown in FIG.

【0012】ここでは、本実施形態によるシリアル伝送
送受信回路におけるデータ送受信の基本動作は、図2に
示したシリアル伝送送受信回路と同様である。そこで、
タイマ9を接続した本実施形態によるシリアル伝送送受
信回路の動作について、図5のタイムチャートを参照し
て説明する。図5のAは、シリアル伝送送受信回路にノ
イズの影響がないときの正常な伝送状態を示している。
このときも、シリアル入力信号のデータ長は、16ビッ
トとする。
Here, the basic operation of data transmission / reception in the serial transmission / reception circuit according to the present embodiment is the same as that of the serial transmission / reception circuit shown in FIG. Therefore,
The operation of the serial transmission / reception circuit according to the present embodiment to which the timer 9 is connected will be described with reference to the time chart of FIG. A of FIG. 5 shows a normal transmission state when there is no influence of noise on the serial transmission / reception circuit.
Also at this time, the data length of the serial input signal is 16 bits.

【0013】マイコン1から送られたシリアルクロック
信号SCLKがシフトレジスタ4に入力されると、カウ
ンタ7は、カウントを開始する。このとき、タイマ9は
1つ目のシリアルクロック信号SCLKを検知し、タイ
マ9がタイマ動作を開始する。このタイマ9は、IC2
に内蔵された基準クロックに基づくものであり、伝送頻
度の間隔より短いが、シリアル入力信号のデータ長より
は十分長い所定の時間Tに、カウンタ7をクリアする信
号を発生する。
When the serial clock signal SCLK sent from the microcomputer 1 is input to the shift register 4, the counter 7 starts counting. At this time, the timer 9 detects the first serial clock signal SCLK, and the timer 9 starts the timer operation. This timer 9 is IC2
A signal for clearing the counter 7 is generated at a predetermined time T, which is based on a reference clock incorporated in the input terminal and is shorter than the transmission frequency interval but sufficiently longer than the data length of the serial input signal.

【0014】ここで、カウンタ7がシリアルクロック信
号SCLKの最終ビット、つまり、16個までカウント
すると、マイコン1から送信されたシリアル入力信号S
INはシフトレジスタ4に全て入力されたことになり、
そこで、カウンタ7は、LOAD信号を発する。そし
て、カウンタ7から出力されたLOAD信号でシフトレ
ジスタ6をクリアする。その後、次回のシリアル伝送に
備えて待機する。
Here, when the counter 7 counts up to the last bit of the serial clock signal SCLK, that is, 16 bits, the serial input signal S transmitted from the microcomputer 1
IN is all input to the shift register 4,
Therefore, the counter 7 issues a LOAD signal. Then, the shift register 6 is cleared by the LOAD signal output from the counter 7. After that, it waits for the next serial transmission.

【0015】なお、正常伝送時であっても、タイマ9は
所定時間T後に、カウンタ7をクリアすることになるた
め、この所定時間T内にカウンタ7からLOAD信号が
出力されたときには、タイマ動作を停止するように設定
しておいてもよい。一方、ノイズの影響を受けてシリア
ルクロック信号SCLKの最後のパルスが欠落してしま
った場合について、図4のシリアル伝送送受信回路の動
作について説明する。図3のBで示した同様に、図5の
Bにそのタイムチャートを示す。
Even during normal transmission, the timer 9 clears the counter 7 after the predetermined time T. Therefore, when the LOAD signal is output from the counter 7 within the predetermined time T, the timer operates. May be set to stop. On the other hand, the operation of the serial transmission / reception circuit of FIG. 4 will be described in the case where the last pulse of the serial clock signal SCLK is missing due to the influence of noise. Similarly to the case shown in FIG. 3B, the time chart is shown in FIG. 5B.

【0016】マイコン1から送信されたシリアルクロッ
ク信号SCLKの最終ビットが欠落すると、カウンタ7
は最終ビットまでカウントできない。そのため、図5の
Bにおける矢印bで示される最終ビットとなる筈の時点
では、カウンタ7がLOAD信号を送出することができ
ず、シフトレジスタ6をクリアすることができない。と
ころが、タイマ9が、シリアルクロック信号SCLKの
最初のビットが到来したときにタイマ動作を開始してい
る。そして、矢印bの時点でカウンタ7がLOAD信号
を送出できなくても、タイマ9は、最初のビットの到来
した時点からT時間後に、クリア信号をカウンタ7に送
出する。そうすると、図5のBに示す矢印cの時点で、
カウンタ7は強制的にクリアされることになり、このと
き、カウンタ7はLOAD信号を送出する。
When the last bit of the serial clock signal SCLK transmitted from the microcomputer 1 is missing, the counter 7
Cannot count to the last bit. Therefore, the counter 7 cannot send the LOAD signal and the shift register 6 cannot be cleared at the time when the final bit is indicated by the arrow b in FIG. 5B. However, the timer 9 starts the timer operation when the first bit of the serial clock signal SCLK arrives. Then, even if the counter 7 cannot send the LOAD signal at the time point of the arrow b, the timer 9 sends the clear signal to the counter 7 after T time from the time point when the first bit arrives. Then, at the time of arrow c shown in B of FIG.
The counter 7 is forcibly cleared, and at this time, the counter 7 sends out a LOAD signal.

【0017】また、ノイズの影響を受けて、シリアルク
ロック信号SCLKにパルスが挿入された場合、シリア
ルクロック信号SCLKの最初のパルスでタイマ9のタ
イマ動作が開始され、カウンタ7が16カウントする
と、LOAD信号が送出される。そして、一旦シフトレ
ジスタ6をクリアするが、シリアルクロック信号SCL
Kのパルスとしてはノイズパルス分だけ残ることにな
る。そこで、次にカウンタ7がこの残ったパルスをカウ
ントを開始するが、この時、既にタイマ9はタイマ動作
を開始されている。そうすると、元々残ったパルス数で
はカウンタ7をカウントアップできないので、タイマ9
は、所定時間T後にカウンタ7をクリアし、再度シフト
レジスタ6を強制的にクリアするLOAD信号を送出す
ることになる。
When a pulse is inserted into the serial clock signal SCLK under the influence of noise, the timer operation of the timer 9 is started by the first pulse of the serial clock signal SCLK, and when the counter 7 counts 16 times, LOAD is set. The signal is sent out. Then, the shift register 6 is cleared once, but the serial clock signal SCL
As the K pulse, only the noise pulse remains. Then, the counter 7 then starts counting the remaining pulses, but at this time, the timer 9 has already started the timer operation. Then, since the counter 7 cannot be counted up with the number of pulses originally left, the timer 9
Will clear the counter 7 after a predetermined time T and again send the LOAD signal to forcibly clear the shift register 6.

【0018】なお、図1に例示したリニアソレノイド駆
動IC2のようなパワー系の回路には、通常、スイッチ
素子を駆動するためのチャージポンプを備えており、こ
のための発振器が内蔵されているので、前記タイマ9に
関して、特別に基準信号を用意しなくても、この発振器
を利用することによりIC内に簡単に構成することがで
きる。
A power system circuit such as the linear solenoid drive IC 2 illustrated in FIG. 1 is usually provided with a charge pump for driving a switch element, and an oscillator for this purpose is built in. With respect to the timer 9, it is possible to easily configure it in the IC by using this oscillator without preparing a special reference signal.

【0019】したがって、マイコン1から送出されるシ
リアルクロック信号SCLKがノイズの影響を受け、そ
のビット数が変化しても、タイマ9の動作により確実に
シフトレジスタ6をクリアするこができるので、誤動作
状態から正常動作状態に復帰させることができ、シリア
ル伝送の信頼性を向上できる。
Therefore, even if the serial clock signal SCLK sent from the microcomputer 1 is affected by noise and the number of bits thereof changes, the shift register 6 can be surely cleared by the operation of the timer 9, so that a malfunction occurs. The normal state can be restored from the state, and the reliability of serial transmission can be improved.

【0020】[0020]

【発明の効果】本発明によれば、ノイズの影響でシリア
ルクロック信号SCLKのパルスが欠落しても、その誤
動作から簡単に復帰できるシリアル伝送送受信回路を構
成できる。
According to the present invention, even if the pulse of the serial clock signal SCLK is lost due to the influence of noise, it is possible to configure a serial transmission / reception circuit that can easily recover from the malfunction.

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

【図1】シリアル伝送送受信回路を用いた具体例を示
す。
FIG. 1 shows a specific example using a serial transmission / reception circuit.

【図2】従来技術によるシリアル伝送送受信回路におけ
る概略ブロック図を示す。
FIG. 2 is a schematic block diagram of a serial transmission / reception circuit according to the related art.

【図3】従来技術によるシリアル伝送送受信回路におけ
る動作を説明するタイムチャートである。
FIG. 3 is a time chart explaining an operation in a serial transmission / reception circuit according to a conventional technique.

【図4】本発明によるシリアル伝送送受信回路における
概略ブロック図を示す。
FIG. 4 shows a schematic block diagram of a serial transmission / reception circuit according to the present invention.

【図5】本発明によるシリアル伝送送受信回路における
動作を説明するタイムチャートである。
FIG. 5 is a time chart explaining the operation of the serial transmission / reception circuit according to the present invention.

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

1…マイコン 2…IC 4、6…シフトレジスタ 5…処理回路 7…カウンタ 8…NOR回路 9…タイマ 1 ... Microcomputer 2 ... IC 4, 6 ... Shift register 5 ... Processing circuit 7 ... Counter 8 ... NOR circuit 9 ... Timer

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平7−129485(JP,A) 特開 平6−334693(JP,A) 特開 平10−336262(JP,A) 実開 昭62−10547(JP,U) (58)調査した分野(Int.Cl.7,DB名) H04L 7/00 - 7/04 H04L 25/02 H04L 25/38 - 25/40 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-7-129485 (JP, A) JP-A-6-334693 (JP, A) JP-A-10-336262 (JP, A) Actual development Sho-62- 10547 (JP, U) (58) Fields investigated (Int.Cl. 7 , DB name) H04L 7 /00-7/04 H04L 25/02 H04L 25/38-25/40

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 シリアルクロックと共に受信されるシリ
アルデータに基づいて処理回路で所定の処理を行ない、
該処理回路からシリアルデータを送信するシリアル伝送
送受信回路において、 前記処理回路から伝送線へ送信される シリアルデータを
格納する記憶手段と、前記 シリアルクロックの所定数を計数するカウンタ手段
と、前記カウンタ手段が所定数を計数したとき出力する 信号
により前記記憶手段をクリアする手段と、 前記カウンタ手段が計数を開始したときタイマ動作を開
始するタイマ手段と、 を有し、前記タイマ手段は、前記タイマ動作開始から
所定時間経過後に前記カウンタ手段から前記信号を出力
させることを特徴とするシリアル伝送送受信回路。
1. A serial received with a serial clock.
Perform predetermined processing in the processing circuit based on the aldata,
Serial transmission for transmitting serial data from the processing circuit
In receiving circuit, a storage means for storing the serial data transmitted to the transmission line from said processing circuit, a counter means for counting a predetermined number of the serial clock, the signal output when said counter means has counted a predetermined number Means for clearing the storage means, and timer means for starting a timer operation when the counter means starts counting, wherein the timer means is configured to operate from the counter means after a predetermined time has elapsed from the start of the timer operation. Output the signal
A serial transmission / reception circuit characterized in that
【請求項2】 前記タイマ手段は、前記受信されるシリ
アルデータの伝送の間隔よりは短く、前記受信される
リアルデータの伝送時間より長い前記所定時間経過後に
クリア信号を発生し、前記カウンタ手段をクリアするこ
とを特徴とする請求項1に記載のシリアル伝送送受信回
路。
Wherein said timer means is shorter than the interval of the transmission of serial <br/> al data received; after lapse of the longer than the transmission time of the sheet <br/> real data the received predetermined time The serial transmission / reception circuit according to claim 1, wherein a clear signal is generated to clear the counter means.
【請求項3】 前記タイマ手段は、1つ目の前記シリア
ルクロックを検知してタイマ動作を開始するものである
ことを特徴とする請求項1に記載のシリアル伝送送受信
回路。
3. The serial transmission / reception circuit according to claim 1, wherein the timer means detects the first serial clock and starts a timer operation.
【請求項4】 シリアルクロックと共に受信されるシリ
アルデータに基づいて処理回路で所定の処理を行ない、
該処理回路からシリアルデータを送信するシリアル伝送
送受信回路において、 前記処理回路から伝送線へ送信される シリアルデータを
格納する記憶手段と、前記シリアルクロックの所定数を計数するカウンタ手段
と、 前記カウンタ手段が所定数を計数したとき出力する信号
により前記記憶手段をクリアする手段と、 前記シリアルクロックを検知してタイマ動作を開始する
タイマ手段と、 を有し、前記タイマ手段は、当該送受信回路に内蔵され
発振器が出力する基準クロックに基づいて前記タイマ
動作を行ない、前記タイマ動作の開始から所定時間経過
後に前記カウンタ手段から前記信号を出力させることを
特徴とするシリアル伝送送受信回路。
4. A serial received with a serial clock.
Perform predetermined processing in the processing circuit based on the aldata,
Serial transmission for transmitting serial data from the processing circuit
In the transmission / reception circuit, storage means for storing serial data transmitted from the processing circuit to the transmission line, and counter means for counting a predetermined number of the serial clocks.
And a signal output when the counter means counts a predetermined number
Said means for clearing the memory means, wherein comprises a timer means for starting a timer operation by detecting the serial clock, and said timer means is incorporated in the transmission and reception circuit by
Oscillator is the timer operation line stomach based on the reference clock output, predetermined time elapses from the start of the timer operation
A serial transmission / reception circuit characterized in that the counter means outputs the signal later .
【請求項5】 シリアル伝送送受信回路と、 シリアルクロックと共に前記シリアル伝送送受信回路に
シリアルデータを送信し、該シリアル伝送送受信回路か
らシリアルデータを受信するマイコンとを備えるシリア
ル伝送送受信システムであって、 前記シリアル伝送送受信回路が、 受信されるシリアルデータに基づいて所定の処理をする
処理回路と、 前記処理回路から伝送線へ送信されるシリアルデータを
格納する記憶手段と、 前記シリアルクロックの所定数を計数するカウンタ手段
と、 前記カウンタ手段が所定数を計数したとき出力する信号
により前記記憶手段をクリアする手段と、 前記カウンタ手段が計数を開始したときタイマ動作を開
始し、前記タイマ動作の開始から所定時間経過後に前記
カウンタ手段から前記信号を出力させるタイマ手段とを
有することを特徴とするシリアル伝送送受信システム。
5. A serial transmission / reception circuit, and the serial transmission / reception circuit together with a serial clock.
Sends serial data and sends it to the serial transmission / reception circuit.
Syria with a microcomputer that receives serial data from
A serial transmission / reception system, wherein the serial transmission / reception circuit performs predetermined processing based on received serial data.
The processing circuit and the serial data transmitted from the processing circuit to the transmission line.
Storage means for storing and counter means for counting a predetermined number of the serial clocks
And a signal output when the counter means counts a predetermined number
Means for clearing the storage means and the timer operation when the counter means starts counting.
And after a predetermined time has passed from the start of the timer operation,
Timer means for outputting the signal from the counter means
A serial transmission / reception system characterized by having.
JP25014099A 1999-09-03 1999-09-03 Serial transmission / reception circuit and system thereof Expired - Lifetime JP3532128B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25014099A JP3532128B2 (en) 1999-09-03 1999-09-03 Serial transmission / reception circuit and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25014099A JP3532128B2 (en) 1999-09-03 1999-09-03 Serial transmission / reception circuit and system thereof

Publications (2)

Publication Number Publication Date
JP2001077800A JP2001077800A (en) 2001-03-23
JP3532128B2 true JP3532128B2 (en) 2004-05-31

Family

ID=17203424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25014099A Expired - Lifetime JP3532128B2 (en) 1999-09-03 1999-09-03 Serial transmission / reception circuit and system thereof

Country Status (1)

Country Link
JP (1) JP3532128B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4508072B2 (en) * 2005-10-18 2010-07-21 株式会社デンソー Serial communication circuit and A / D conversion system
JP5160100B2 (en) * 2007-02-08 2013-03-13 シャープ株式会社 Data communication malfunction prevention device, electronic apparatus, data communication malfunction prevention device control method, data communication malfunction prevention device control program, and recording medium recording the program
JP2009077353A (en) 2007-09-25 2009-04-09 Renesas Technology Corp Parallel data output control circuit and semiconductor device

Also Published As

Publication number Publication date
JP2001077800A (en) 2001-03-23

Similar Documents

Publication Publication Date Title
US6275526B1 (en) Serial data communication between integrated circuits
WO2017065923A1 (en) Methods to avoid i2c void message in i3c
US7340023B1 (en) Auto baud system and method and single pin communication interface
US8948209B2 (en) Transmission over an 12C bus
AU718652B2 (en) Method for resetting processor, and watchdog
US5311172A (en) Communication control system
JP3566630B2 (en) Card system, IC card and card reader / writer used for it
CN113282531A (en) Two-port serial data receiving and transmitting circuit and method based on pulse triggering
JP3532128B2 (en) Serial transmission / reception circuit and system thereof
EP0461878B1 (en) Non-contact IC card and signal processing method thereof
KR101975224B1 (en) Apparatus and method for receiving signals in a vehicle
US5228129A (en) Synchronous communication interface for reducing the effect of data processor latency
CN114677954B (en) Signal selection circuit and LED driving chip
US7664478B2 (en) DC offset cancel control method and transmitter/receiver
US6880027B1 (en) System and method of evaluating universal serial bus function
JPH0591146A (en) Serial data transfer device
JP2005084792A (en) Data communication unit
JPH11177538A (en) Data transmission system
JP2024130680A (en) Communication Equipment
EP0285335A2 (en) Data communication system and method
JPH0621999A (en) Serial communication equipment
JP3609701B2 (en) Error data notification method and notification system in unidirectional serial data communication system
JPS63228837A (en) Data transmission/reception system
JPH1117581A (en) Transmitter-receiver
JP2544860B2 (en) Signal transmission method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20031218

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040203

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040302

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3532128

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090312

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090312

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100312

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110312

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110312

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130312

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130312

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140312

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140312

Year of fee payment: 10

EXPY Cancellation because of completion of term