JP2764858B2 - Data transmission system - Google Patents

Data transmission system

Info

Publication number
JP2764858B2
JP2764858B2 JP7292882A JP29288295A JP2764858B2 JP 2764858 B2 JP2764858 B2 JP 2764858B2 JP 7292882 A JP7292882 A JP 7292882A JP 29288295 A JP29288295 A JP 29288295A JP 2764858 B2 JP2764858 B2 JP 2764858B2
Authority
JP
Japan
Prior art keywords
data
transmission
mode
cim
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
Application number
JP7292882A
Other languages
Japanese (ja)
Other versions
JPH08228197A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP7292882A priority Critical patent/JP2764858B2/en
Publication of JPH08228197A publication Critical patent/JPH08228197A/en
Application granted granted Critical
Publication of JP2764858B2 publication Critical patent/JP2764858B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】本発明は、データ多重伝送シ
ステムに使用する通信端末装置に係り、特に動作モード
が任意に選択でき、一種類の端末装置で構成が可能なデ
ータ伝送システムに関する。 【0002】 【従来の技術】例えば、自動車などには、各種のランプ
やモータなどの電装品、それに自動車制御用の各種のセ
ンサやアクチュエータなどの電気装置が多数配置され、
その数は自動車のエレクトロニクス化に伴なって増加の
一途をたどっている。 【0003】このため、従来のように、これら多数の電
気装置に対してそれぞれ独立に配線を行なっていたので
は、配線が極めて複雑で且つ大規模なものとなってしま
い、コストアップや重量、スペースの増加、或いは相互
干渉の発生など大きな問題を生じる。 【0004】そこで、このような問題点を解決する方法
の一つとして、少ない配線で多数の信号の伝送が可能
な、多重伝送方式による配線の簡略化が提案されてお
り、その例として、本出願人による特願昭57−175
35号の出願(特開昭58−70657号公報参照)を挙
げることができる。 【0005】図1に、このような多重伝送方式による自
動車内集約配線システムの一例を示す。この図1のシス
テムは信号伝送路として光ファイバケーブルOFを用
い、中央制御装置CCU(以下、単にCCUという。な
お、これは Central Control Unitの略)と、複数の端
末処理装置LCU(以下、単にLCUという。なお、こ
れは Local Control Unitの略)との間を光信号チャン
ネルで共通に結合したもので、光ファイバケーブルOF
の分岐点には光分岐コネクタOCが設けてある。 【0006】CCUは自動車のダッシュボードの近傍な
ど適当な場所に設置され、システム全体の制御を行なう
ようになっている。LCUは各種の操作スイッチSW、
メータMなどの表示器、ランプL、センサSなど自動車
内に多数設置してある電気装置の近傍に、所定の数だけ
分散して配置されている。CCU及び各LCUが光ファ
イバケーブルOFと結合する部分には光信号と電気信号
を双方向に変換する光電変換モジュールO/Eが設けら
れている。CCUはマイクロコンピュータを備え、シリ
アルデータによるデータ通信機能を持ち、これ対応して
各LCUには通信処理回路CIM(以下、単にCIMと
いう。なお、これはCimmunication Interface Adaptor
の略)が設けられ、CCUはLCUの一つを順次選択
し、そのLCUとの間でのデータの授受を行ない、これ
を繰り返すことにより1チャンネル光ファイバケーブル
OFを介して多重伝送が可能になり、複雑で大規模な自
動車内配線を簡略化することができる。 【0007】このような自動車内集約配線システムに用
いられるデータ伝送方式の一例を図2に示す。 【0008】この図2はデータ伝送方式のシステム全体
を示すブロック図で、図において、10は中央処理装置
(図1のCCUに相当)、20は信号伝送路(図1の光
ファイバケーブルOFに相当)、30〜32は末端処理
装置(図1のLCUに相当)、40はアナログ・ディジタ
ル変換器(以下、A/Dという)、51〜58は外部負
荷である。なお、この例では、信号伝送路20として電
気信号伝送路を用いた場合について示してあり、従っ
て、中央処理装置10及び端末処理装置30〜32には
光電変換モジュールが不要で、このため、端末処理装置
30〜32の内容は実質的にCIMだけとなっている。 【0009】コンピュータ(マイクロコンピュータ)を
含む中央処理装置10は、伝送路20で各端末処理装置
30〜32と結合され、各種のセンサやランプ、アクチ
ュエータ、モータなどの電気装置からなる外部負荷51
〜58に対するデータの送出と、これらからのデータの
取込みを多重伝送方式によって行なう。このとき、アナ
ログデータを出力するセンサなどの外部負荷57,58
はA/D40を介して端末処理装置32に結合され、デ
ィジタルデータによる伝送動作が行なえるようになって
いる。 【0010】信号伝送路20は双方向性のものなら何で
もよく、電気信号伝送系に限らず光ファイバによる光信
号伝送系など任意のものが用いられ、これによる通信方
式はいわゆる半二重方式(Half Duplex)で、中央処理
装置10から複数の端末処理装置30〜32のうちの一
つに対する呼び掛けに応じ、該端末処理装置の一つと中
央処理装置10との間でのデータの授受が伝送路20を
介して交互に行なわれるようになっている。 【0011】このような半二重方式による多重伝送のた
め、中央処理装置10から送出されるデータには、その
行先を表わすアドレスが付され、伝送路20から受け取
ったデータに付されているアドレスが自らのアドレスで
あると認識した、各端末処理装置のうちの一つだけが応
答するようになっている。 【0012】このように、中央処理装置10からアドレ
スが付されて送出されたデータに応じて、そのアドレス
を理解し、それが自らのものであると判断した端末処理
装置の一つだけがそれに応答して自らのデータを中央処
理装置10に送出することにより、上記した半二重方式
によるデータの伝送動作が得られることになる。 【0013】また、この例では、各端末処理装置30〜
32の機能を特定のものに集約し、これら端末処理装置
30〜32のLSI化(大規模集積回路化)を容易にし
ている。そして、このときの特定の機能としては、上記
したデータ伝送機能、つまり半二重方式による多重伝送
に必要な機能と、各端末処理装置に付随しているA/D
40などの外部機器を制御する機能の2種となってい
る。 【0014】そして、この結果、データ伝送機能の専用
化が可能になり、例えば、自動車内での集約配線システ
ムに適用する場合には、上記した半二重方式とし、必要
な伝送速度やアドレスのビット数などをそれに合わせて
決めるなどのことができる。 【0015】さらに、この多重伝送方式では、上記した
ようにLSI化した端末処理装置の機能をそのまま活か
し、中央処理装置10にも適用可能にしたものであり、
この結果、中央処理装置10としてデータ伝送機能をも
たない汎用のコンピュータ(マイクロコンピュータな
ど)を用い、これに上記したLSI化端末処理装置33
を組合わせるだけで中央処理装置10を構成することが
でき、中央処理装置10のコンピュータに必要なソフト
ウエア面での負荷を軽減させることができると共に、端
末処理装置の汎用性を増加させることができる。 【0016】そして、この結果、上記したLSI化や専
用化をさらに有利に進めることができるようになってい
る。 【0017】このような共用化のため、これらの端末処
理装置30〜32(以下、これらもすべてCIMとい
う)とCIM33は全て同じ構成に作られ、外部からの
モード設定によりDIOモード、ADモード、MPUモ
ードの3種のモードのいずれでも任意に選択して動作し
得るようになっている。 【0018】なお、このDIOモードとは、このCIM
が図2の30〜31として用いられたときに必要な動作
モードであり、以下、同様にADモードとは図2のCI
M32に必要な動作モードで、MPUモードとは図2の
CIM33に必要な動作モードである。 【0019】このようなLSI化されたCIMの一例を
図3に示す。この図3において、61〜84はLSIパ
ッケージの端子ピンで、60はパッケージを表わす。端
子ピン61と62は電源用であり、端子ピン63はリセ
ット信号入力用である。端子ピン64は伝送路20(図
2)に結合され、受信信号RXDが入力される。端子ピ
ン65はクロック入力用であり、例えば、4MHzのク
ロックが供給される。端子ピン66は伝送路20に結合
され、送信信号TXDを出力する働きをするものであ
る。端子ピン67〜70はアドレスデータADDRの入
力用で、4ビット分用意されている。 【0020】なお、このアドレスデータADDRは、デ
ータ伝送時におけるデータの宛先を示すデータである
が、さらに、このCIMでは、このアドレスデータAD
DRによって上記したモード設定を行なうようにしてあ
る。端子ピン71〜84は外部機器との接続用であり、
上記した動作モードに応じてデータの入出力に使用され
てたり、制御信号の伝送用となったりする。 【0021】101制御回路を表わし、この制御回路1
01はシーケンスカウンタ303とシーケンスデコーダ
304を含み、このCIM内で必要とする種々の制御信
号をシーケンスカウンタ303の歩進に伴なって発生
し、このCIMの動作をシーケンシャルに進める働きを
する。 【0022】102は同期回路で、受信信号RXDのス
タートビットに調歩同期したクロックφMとφSを作る働
きをする。104は24ビットのシフトレジスタで、シ
リアルデータの送信や受信、或いはシリアルデータとパ
ラレルデータの間での相互変換などに使用する。105
は14ビットの入出力バッファで、外部負荷とシフトレ
ジスタ104との間でのパラレルデータのやり取りを行
なう働きをする。 【0023】106はA/D制御回路で、外付けのA/
Dコンバータ40(図2)を制御する働きをする。30
6はアドレスデータで、端子ピン67〜70を介して外
部から設定入力されるアドレスデータADDRに応じて
所定の信号を発生し、I/Oバッファ105の各ビット
の入出力方向を決定すると共に、後述する動作モード切
換のための信号を出力する働きをする。 【0024】307はアドレス比較回路で、端子ピン6
7〜70で設定してあるアドレスとシフトレジスタ10
4の所定のビットに格納されたデータとを所定のタイミ
ングで比較し、受信したデータのアドレス判別を行な
う。308はエラー検出回路で、受信したデータに伝送
エラーがあったか否かを調べ、エラーがあったときとア
ドレスが一致しなかったときには、このCIMの動作を
リセットする働きをする。 【0025】次に、端子ピン67〜70によるアドレス
の設定について説明する。既に説明したように、図2の
システムでは、LCU側のCIMにはそれぞれ異なった
アドレスが割当ててあり、このアドレスをもとにして半
二重方式によるデータの多重伝送が行なわれるようにな
っている。 【0026】そして、このアドレスをそれぞれのCIM
に割当てる働きをする入力がコンパレータ307に接続
されている4本の端子ピン67〜70であり、これらの
入力に与えるべきデータADDR0〜ADDR3により当
該CIMのアドレスが指定される。例えば、そのCIM
のアドレスを“10”に指定するためには、アドレスデ
ータADDR0=0,ADDR1=1,ADDR2=0,
ADDR3=1とし、端子ピン67〜70に(101
0)が入力されるようにすればよい。 【0027】なお、このCIMでは、データ“0”は接
地電位、データ“1”は電源電圧Vccによって表わされ
ているから、アドレス“10”に対しては端子ピン67
と69を接地し、端子ピン68と70を電源に接続する
ことになる。 【0028】ところで、このCIMでは、アドレスデー
タADDRがアドレスデコーダ306にも入力され、そ
の出力によりI/Oバッファ105の方向性が制御され
るようになっている。この結果、アドレスを指定する
と、I/Oバッファ105の14本の端子ピン71〜8
4のうちのいずれがデータ出力ポートとなるのかが決定
される。 【0029】そして、このCIMでは、アドレスがその
まま出力ポート数に対応するようになっている。従っ
て、いま、アドレスを“10”と定めれば、I/Oバッ
ファの14本の端子のうち10本が出力ポートとなり、
残りの4本が入力ポートとなるように制御される。 【0030】また、図3では省略してあるが、このアド
レスデコーダ306の出力は制御回路101のシーケン
スデコーダ304及びその他の回路にも与えられ、これ
により、図4に示すように、そのCIMの動作モードが
切換えられるようになっている。すなわち、この例で
は、アドレスを“0”に設定したCIMはMPUモード
で、アドレスを“1”から“D”までの間に設定したC
IMはDIOモードで、そしてアドレスを“E”,
“F”のいずれかに設定したCIMはADモードでそれ
ぞれ動作するようにされる。 【0031】次に、これらの動作モードのそれぞれにお
ける動作について説明する。まず、アドレスを“1”か
ら“D”までのいずれかに設定し、DIOモードに設定
すると、そのCIMは図5の機能ブロック状態となる。 【0032】そこで、伝送路20から入力された受信信
号RXDは同期回路102に供給され、制御回路101
には受信信号RXDのクロック成分に調歩同期したクロ
ックφM,φSが与えられ、これにより、制御回路101
が制御信号を発生し、シフトレジスタ104に受信信号
のデータ部分をシリアルに読込む。 【0033】一方、アドレス比較回路307には、アド
レス“1”から“D”までのうちから予めその端末処理
装置に割り当てられたアドレスの一つが与えられてお
り、このアドレスとシフトレジスタ104の所定のビッ
ト位置に読込まれたデータとがアドレス比較回路307
によって比較され、両者が一致したときだけシフトレジ
スタ104内のデータがI/Oバッファ105に転送さ
れ、外部機器に与えられる。 【0034】また、制御回路101はクロックで歩進す
るカウンタを含み、シーケンシャルな制御信号を発生
し、受信信号RXDによるデータをI/Oバッファ10
5に与えたあと、それにひき続いて今度はI/Oバッフ
ァ105からシフトレジスタ104にデータをパラレル
に取り込み、外部機器から中央処理装置10に伝送すべ
きデータをシフトレジスタ104の中にシリアルデータ
として用意する。 【0035】そして、このデータをシフトレジスタ10
4からシリアルに読み出し、送信信号TXDとして伝送
路20に送出する。このときには、受信信号RXDに付
されていたアドレスがそのまま送信信号TXDに付され
て送出されるから、伝送路20に接続されている他の端
末処理装置に受信されることはなく、一方、中央処理装
置10は自らが送出したアドレスと一致していることに
よりこの送信信号TXDの取り込みを行ない、これによ
り半二重方式による1サイクル分のデータの授受が完了
する。 【0036】こうして中央処理装置10は、次の端末処
理装置に対するデータの送出を行ない、これを繰り返す
ことにより複数の各端末処理装置30〜32との間での
データの授受が周期的に行なわれ、多重伝送が可能にな
る。このときのシフトレジスタ104のデータ内容は図
6のDIOモードに示すようになり、No.0からNo.5ま
での6ビット分は使用せず、No.6からNo.19までの1
4ビットがI/Oバッファ105のデータDIOに割当
てられる。 【0037】そして、No.20からNo.23までの4ビッ
トのアドレスデータADDRに割当てられ、No.24は
スタートビットに割当てられている。なお、DIOデー
タに割当てられているビット数が14となっているの
は、I/Oバッファ105が14ビットのものとなって
いるからである。また、このため、このCIMでは、I
/Oバッファ105に接続可能な外部負荷の最大数が端
子ピン71〜84(図3)までの14となっている。 【0038】このシステムによるデータ伝送の方式は、
調歩同期、双方向、反転二連送方式と呼ばれるもので、
ディジタルデータをNRZ(nonreturn to zero)法に
より伝送するようになっており、その伝送波形は図7に
示すようになっている。すなわち、CCU側のCIMか
らLCU側のCIMにデータを伝送するフレームを受信
フレームを送信フレームとすれば、受信フレームと送信
フレームが共に74ビットで、従って1フレームが14
8ビットとなっている。 【0039】そして、受信フレームと送信フレームと
は、共に同じフレーム構成となっており、最初に25ビ
ットの“0”があり、そのあとに調歩同期のための1ビ
ットの“1”からなるスタートビットが設けられ、それ
に続いて24ビットの受信データRXDは送信データT
XDがNRZ信号形式で伝送され、さらにこれらのデー
タの反転データRXD(バー上付き)又はTXD(バー上
付き)が伝送されるようになっている。なお、この反転
データRXD(バー上付き)又はTXD(バー上付き)を伝
送しているのは、伝送エラーチェックのためである。 【0040】既に説明したように、このシステムでは、
半二重方式により多重伝送が行なわれるから、受信フレ
ームのデータRXDの先頭の4ビットには、CCUがそ
のとき呼び掛けを行なう相手となるLCUのアドレスデ
ータADDRが図6に示すように付され、これに応答し
てそのLCUから送出される送信フレームのデータTX
Dの先頭4ビットには同じアドレスデータADDRが付
されて伝送される。 【0041】なお、LCU側から送信フレームが伝送さ
れるのは、CCU側で呼び掛けたLCUに限られるか
ら、送信データTXDにアドレスが付加されていなくて
もCCU側ではそのデータがいずれのLCUからのもの
であるかは直ちに判断できる。従って、送信フレームの
データTXDには、必ずしもアドレスを付す必要はな
く、データTXDの先頭4ビットを(0000)などL
CUのいずれのアドレスとも一致しないデータとしても
よい。 【0042】次に、アドレスを“E”又は“F”のいず
れか一方に設定すると、そのCIMはADモードとな
り、その機能ブロックは図8に示す状態に切換えられ
る。A/D制御回路106は図2における端末処理装置
32として使用した場合に必要なA/D40の制御機能
を与えるためのもので、アナログ信号発生するセンサな
どの外部負荷57,58からのデータをA/D40によ
ってディジタル化してシフトレジスタ104に取り込む
ために必要な制御機能を与える働きをする。なお、その
他は図5の場合と同じである。 【0043】このCIMがADモードによる動作を行な
うように設定された場合のシフトレジスタ104に格納
されるデータの内容は図6のADモードに示すようにな
り、No.0からNo.7までの8ビットがA/D40を介し
て外部負荷57,58などから取込んだADデータ格納
用で、No.8,No.9の2ビットがADチャンネルデータ
格納用であり、これによりDIOデータ用としてはNo.
10からNo.19の10ビットとなっている。なお、そ
の他はDIOモードのときと同じである。 【0044】また、このときのADチャンネルデータと
は、マルチチャンネルのA/Dを使用した場合のチャン
ネル指定用のデータであり、この実施例ではA/D40
として4チャンネルのものを用いているので、2ビット
を割当てているのである。 【0045】A/D制御回路106は、それ事態に専用
のシーケンスカウンタとシーケンスデコーダをもち、制
御回路101による制御動作とは独立に動作し、クロッ
クによって歩進し、シーケンシャルに制御を進める。そ
して、これにより外付けのA/D40を制御し、最大で
4種類までの外部機器によるアナログデータを順次、周
期的にディジタル変換し、シリアルデータとして取り込
み、A/D制御回路106内に設けられている4チャン
ネルのレジスタに順次書込むように動作する。 【0046】一方、受信フレームの入力が終った時点
(図7の時点t0)でシフトレジスタ104に書込まれ
るデータのフォーマットは図6のADモードとなるた
め、このシフトレジスタ104のQ8とQ9のビットには
2ビットからなるADちデータが格納されている。そこ
で、A/D制御回路106は、このADチャンネルデー
タに基づいて、上記4チャンネルのレジスタに書込んで
ある、ADデータを読出してそれをシフトレジスタ10
4のQ0からQ7ビットに書込む。そして、このあとに続
く送信フレームの送出により、このADデータが送信信
号TXDに含まれCCUに伝送されることになり、AD
モードでの動作が得られることになる。 【0047】ところで、このCIMでは、上記したよう
に受信信号RXDの受信処理とそれに続く送信信号TX
Dの送信処理とは無関係に、常にA/D制御回路106
の中のレジスタにはADデータが用意されている。従っ
て、このCIMでは、どのようなタイミングで自分宛の
受信信号RXDが現われても、直ちにADデータによる
送信信号TXDの伝送を行うことができ、A/D40の
動作により伝送処理が影響を受けることがなく、A/D
変換動作に必要な時間のために伝送速度が低下するなど
の虞れがない。 【0048】なお、このシステムでは、CIMをLSI
化するに際してA/D40を外付けとし、CIMの汎用
化に際してのコストダウンを図るようになっている。つ
まり、図2で説明したように、このシステムではモード
の設定により一種類のCIMをLCU30〜31として
も、LCU32としても、或いはCCU10のCIM3
3としても使用できるようにしている。 【0049】しかして、このとき、A/Dを内蔵させて
しまうと、CIM30,31,33として使用したとき
に無駄なものとなり、しかも、一般に自動車の集約配線
システムに適用した場合には、CIM32として使用さ
れる個数の方が他のCIM30,31,33として使用
される個数より少ないため、CIMの全部にA/Dを内
蔵させることによるメリットがあまりない。そのため、
A/Dを外付けとしているのである。 【0050】しかして、このA/Dの外付けのため、図
8から明らかなように、外付けのA/D40に対して4
本の接続端子が必要になり、LSI化した際に端子ピン
数の増加をもたらす虞れがある。そこで、この例では、
図3に示すような接続構成とし、CIMがADモードに
設定されたときには、I/Oバッファ105の14のポ
ートのうちの4本がA/D40に対する接続端子として
使用されるようにしてある。 【0051】すなわち、このCIMでは、I/Oバッフ
ァ105が14ポートとなっておりこれらは図6から明
らかなように、CIMがDIOモードに設定されたとき
には全部が入出力ポートとして使用される可能性がある
が、ADモードのときには最大でも10ポートしか使用
されず、4ポートはDIOデータの入出力には使用され
ないで余っている。 【0052】そこで、この余った4ポートをADモード
で切換え、A/D40に対する端子ピンとして使用すれ
ば、A/Dを外付けにしても端子ピン数の増加はなく、
LSI化に際して汎用性が増し、コストダウンが可能に
なる。 【0053】次に、このCIMのアドレスを“0”に設
定し、MPUモードに設定した場合について説明する。
このMPUモードとは、図2のCIM33として使用さ
れたときに必要な機能を与えるためのモードで、DIO
モード及びADモードで使用された場合と異なり、CC
U10のマイクロコンピュータ(以下、単にマイコンと
いう)からデータが与えられると、それをシリアルデー
タとして伝送路20に送信し、それに応答して返送され
てくるデータを受信したら、それをパラレルデータとし
てマイコンに転送させるという伝送インターフェース動
作を行なうモードである。 【0054】ところで、これまでの説明では図7に関連
して説明したように、LCU側のCIMからみた説明を
主としていたため、CCU側のCIMからLCU側のC
IMにデータを伝送するフレームを受信フレーム、反対
にLCU側からCCU側に伝送するフレームを送信フレ
ームとしてきたが、以後は図9に示すように、それぞれ
のCIMからみてデータを送出するフレームを送信フレ
ーム、自らがデータを受け入れるときのフレームを受信
フレームとして説明する。 【0055】従って、以後は、或るCIM、例えばCI
M33での送信フレームは他のCIM、例えばCIM3
0では受信フレームとなり、他方、CIM30での送信
フレームはCIM33では受信フレームとなる。 【0056】さて、図10はこのCIMにアドレス
“0”が設定され、CPUモードで動作するように制御
されたときの大まかな機能ブロック図で、この図10か
ら明らかなように、CPUモードではI/Oバッファ1
05(図3)、A/D40は機能を止められ、マイコン
とのは14ビットのデータバスで結ばれる。なお、この
ときの端子ピンはI/Oバッファ105の入出力ポート
と共通に用いられ、端子ピンの増減は全く生じないよう
になっているのはいうまでもない。そして、この14ビ
ット(14本)の入出力のうち8ビットがデータ用であ
り、残り6ビットが制御信号用となっている。 【0057】さて、このCPUモードにおいては、シフ
トレジスタ104のデータ内容が図6のMPUモードに
示すようにQ0からQ23までの24ビットが全てMPU
データとなっており、マイコンは8ビットのデータバス
によってこのシフトレジスタ104にアクセスするよう
になっている。従って、マイコンとシフトレジスタ10
4との間でのデータの授受には、その1サイクル当り3
回のアクセスとなる。 【0058】一方、制御回路101はマイコンからの制
御信号を受け、シフトレジスタ104のQ0〜Q23の全
てのビットにマイコンからのデータが格納されると同時
に送信動作に入り、このデータが格納され終った時刻t
xから図9に示すように送信フレームの伝送を開始す
る。 【0059】こうして送信フレームがCIM33から伝
送されると、それに応じてLCU側のCIM30〜32
の一つが応答し、ひき続いてそのCIMが送信を行うか
ら、時刻txから1フレーム(148ビット)の伝送時
間が経過した時刻tyになると、シフトレジスタ104
の中にはCIM33から呼掛けを行なったCIM(CI
M30〜32のうちの一つ)から伝送されたデータが可
搬性機能され終ることになる。 【0060】そこで、CIM33の制御回路101は、
この時点tyにおいて割込要求IRQを発生し、これに
応じてマイコンがシフトレジスタ104のデータを読取
り、1サイクル分のデータ伝送を終了する。なお、この
ときのCIM相互間でのデータの授受動作は図5に関連
して説明したDIOモードにおける場合と同じであるの
はいうまでもない。 【0061】なお、以上に説明したCIMは、特願昭5
8−40581号、特願昭58−104880号、特願
昭58−106666号、それに特願昭58−1066
67号として本出願人によって出願された発明によるも
のであり、これらの出願にかかる明細書中にさらに詳し
く説明されているものである。 【0062】 【発明が解決しようとする課題】本発明が解決すべく意
図した課題は、上記したデータ伝送システムにおいて、
データ伝送異常時での的確なフェールセーフ状態の維持
にある。従って、本発明の目的は、特に自動車のデータ
通信装置に適用するのに好適なデータ伝送システムを提
供することにある。 【0063】 【0064】 【0065】 【課題を解決するための手段】第1の本発明によれば、
前記目的は、伝送異常発生時には前記データ格納手段か
ら読み出したデータに基づいて前記電気装置の駆動信号
を出力し、且つ、前記データ格納手段への新データの書
込みを禁止すべく、書き込み用クロックを停止するよう
にして達成される。次に、第2の本発明によれば、前記
目的は、伝送異常発生時にその異常状態に応じて、それ
の対応に必要な処理データを格納するテーブルを設ける
ことによって達成される。また、第3の本発明によれ
ば、前記目的は、伝送異常発生時に、前記電気装置の駆
動信号を出力する端子の1個に伝送異常であることを示
す信号を出力することによって達成される。 【0066】 【発明の実施の形態】以下、本発明によるCIM(端末
処理装置)について、図示の実施例によって説明する。
図11は本発明の一実施例で、図において、85,86
は端子ピン、305は異常検出回路、330は自動送信
回路、331はモードデコーダであり、その他は第3図
の従来例と同じである。 【0067】端子ピン85,86は、モードセレクト信
号MSの入力用に増設したものである。異常検出回路3
05は端子ピン64を介して入力される受信信号RXD
を監視し、この受信信号RXDの入力が予め定めてある
所定の期間以上にわたって途切れた場合、これを異常の
発生と判断し、フェイルセーフ制御信号を発生する働き
をする。そして、このフェイルセーフ制御信号はI/O
バッファ105に供給され、その出力ポートの状態を所
定の状態に固定する働きをする。 【0068】自動送信回路330はシーケンスカウンタ
303のカウント数を調べ、それが所定数値となったら
このカウンタ303のカウント出力に所定数をロード
し、シーケンスデコーダ304による制御状態が図9の
時点txにおいて必要とする制御状態となるようにする
働きをする。 【0069】図12はアドレスデータADDR入力用の
4本の端子ピン(図11の67〜70)と、モードセレ
クト信号MS入力用の2本の端子ピン(図11の85,
86)だけを示したもので、この実施例においては、ア
ドレス入力モードセレクト入力とのマトリクスにより所
定の動作モードに対する設定が行なわれるようになって
いる。 【0070】図13はアドレスデータとモードセレクト
信号との組合わせによる動作モード設定の一実施例を示
すマトリクス図表で、4ビットのアドレスデータにより
設定されるアドレス“0”〜“F”と、2ビットのモー
ドセレクト信号MS0,MS1の設定とによりどのような
動作モードの設定が行なわれるかが示されている。 【0071】ここで、それぞれの機能について説明す
る。接続形態とは、このCIM全体での動作モードをい
い、MPU,DIO,ADの各動作モードについては既
に説明したとおりである。 【0072】アドレスを“0”に設定し、モードセレク
ト入力を(0,0)以外に設定したときに得られる接続
形態である(TEST0),(TEST1)とは、LS
I化CIMの製品テストを容易に行なうことができるよ
うにした動作モードで、(TEST0)に設定するとシ
ーケンスカウンタ303が通常時の4倍の速度でカウン
トを進めるようにされ、これによりDIOモードとAD
モードにおけるデータの受信と送信に必要な機能が正常
か否かのテストを短時間で終了させることができる。 【0073】また、(TEST1)に設定すると異常検
出回路305を短い待ち時間で動作させることができ、
その機能が正常か否かを効率良くテストすることができ
る。入出力方向とは、I/Oバッファ105の各端子の
入出力方向の設定のことでアドレスを“1”〜“D”の
中のいずれかに設定したDIOモードにおいては既に説
明したとおり、このアドレスにより決定されるが、アド
レス“0”でモードセレクトが(0,0)のMPUモー
ドではI/Oバッファ105はスルーにされその方向性
は無くなって双方向性となり、データの入力と出力はこ
のCIMが接続されたマイコンによって制御されるよう
になる。 【0074】一方、アドレスが“0”でモードセレクト
が(0,0)以外のとき、つまりテストモードのとき
と、アドレス“E”及び“F”のADモードでは、モー
ドセレクト信号MS0,MS1によってI/Oバッファ1
05の入出力方向が決定されるようになっている。 【0075】フェイルセーフ機能とは、異常検出回路3
05を能動化させ、その結果得られるI/Oバッファ1
05の出力状態の固定機能のことで、その詳しい説明に
ついては後述するが、この実施例では、I/Oバッファ
105の入出力端子のうち、出力方向に設定されている
端子の出力データの状態を、異常が発生したら、その直
前の状態のままに固定する方法(これを現状維持といっ
ている)と、一律にオフしてしまう方法(これをOFF
といっている)とが選択できるようになっている。 【0076】自動送信機能とは、このCIMを小規模デ
ータ伝送システムに用い、CIMだけによる1対1伝送
システムを構成する場合に必要な機能で、その詳細につ
いては、これも後述するが、自動送信回路330を能動
化させるか否かによって、その付与の有無が選択される
ようになっている。 【0077】なお、モードセレクト入力による選択は、
それぞれの機能で同じように作用する。従って、例えば
アドレス“0”でモードセレクトを(1,1)に設定す
れば、そのCIMは、AD(TEST0)モードで動作
し、I/Oバッファ105は入力数、出力数が共に5と
なり、フェイルセーフ機能はOFF方式、そして自動送
信機能は付与されない状態となる。 【0078】従って、この実施例によれば、僅か2本の
端子ピン85,86の増設だけで多くの機能の選択が可
能になり、多機能を備えたCIMのLSI化を容易に行
なうことができる。 【0079】次に、異常検出回路305の詳細と、これ
により得られるフェイルセーフ機能について説明する。
このCIMが用いられる伝送システムにおいては、ただ
1本の光ファイバケーブルなどの信号伝送路によって多
くの信号が伝送されているため、伝送路の断線などによ
る伝送障害が発生すると多数の電気機器の制御状態に影
響が及び、自動車などの安全面で問題を生じる虞れがあ
る。 【0080】そこで、このようなシステムにおいては、
伝送系に障害など異常が発生したときには、それを確実
に検出し、その結果、電気機器など負荷の動作を、制御
が停止した場合にも自動車などの安全性に問題を生じる
虞れがより少ない方向に保持するようにするのが望まし
い。そこで、このために設けられているのが異常検出回
路305と、これによるフェイルセーフ機能である。 【0081】図14は異常検出回路305の一実施例
で、図において、501はタイマー用のカウンタ、50
2は1ビットのレジスタとして働くフリップフロップ、
503〜506はアンドゲート、507はインバータで
ある。なお、331はアドレスデータADDRとモード
セレクト信号MSとのマトリクスにより動作するモード
デコーダを表わしており、その他は図11の実施例と同
じである。 【0082】カウンタ501は適当なクロックをカウン
トし、所定数をカウントするごとにキャリーアウト出力
COを発生する。そして、そのリセット入力Rにはアド
レス比較回路307(図11)の出力であるアドレス一
致信号MYADDRが入力されるようになっている。 【0083】モードデコーダ331は図13に示した組
合わせで切換信号を発生し、所定の部分に供給している
が、このとき、フェイルセーフ機能に関しては図13に
示すように、I/Oバッファ105の出力ポートの状態
を、それまでの状態とは無関係に全てOFFにしてしま
うOFFモードと、それまでの出力状態をそのまま保存
する現状維持モードの2種をもち、OFFモード信号は
アンドゲート503にそして現状維持モード信号はアン
ドゲート504にそれぞれ出力するようになっている。 【0084】また、I/Oバッファ105は、その中に
データを書き込むときには書込用のクロックを入力CK
に供給するようになっている。つまり、シフトレジスタ
104(図11)から所定のビットにデータDを与えた
だけではI/Oバッファ105には何も書き込まれず、
データDを印加した上でクロックを入力CKに供給した
ときだけその中のデータが書き替えられるようになって
いるのである。 【0085】そして、その入力CLRにクロックを入力
してやれば、そのときに書き込まれていたデータDは全
てクリアされ、出力ポートのデータは全て0になり、こ
れらの出力ポートに接続されている電気機などの出力ポ
ートに接続されている電気器機などの負荷は全てOFF
されてしまうことになる。 【0086】次に、この実施例の動作について説明す
る。カウンタ501はクロックにより常時カウント動作
し、信号MYADDRが入力されたときだけリッセトさ
れる。従って、信号MYADDRが入力されないと、ク
ロックの周波数及びカウンタ501のビット数で決まる
所定の周期ごとに、キャリーアウト出力COを発生す
る。 【0087】一方、信号MYADDRはアドレス比較回
路307の出力であり、従って、このCIMがDIOモ
ード、ADモード、それに後述する自動送信モードで使
用されたとき、自分宛のデータを受信するごとに発生す
る。そして、このCIMを用いたデータ伝送システムに
おいては、それが正常な状態にあるかぎり、所定の期間
内に必ず自分宛のデータ伝送が行なわれるものであるこ
とは既に説明したとおりである。 【0088】そこで、いま、カウンタ501のビット数
とそれに入力されるクロックの周波数を適当に選び、こ
のカウンタ501のキャリーアウト出力COが発生する
周期(これをPCOとする)が、上記した自分宛データ
の最大伝送周期(これをPDとする)より所定値だけ大
となるように定めたとする。すなわち、PCO>PDと
なるように定めたとする。 【0089】そうすると、このCIMがLCU30〜3
2として組込まれたデータ伝送システム(図2)における
CCU10や伝送路20の機能が正常に保たれている間
は、上記した所定の周期PD以内の期間で必ず、このC
IMに対するデータの伝送が行なわれ、アドレス比較回
路307から信号MYADDRが発生されることにな
り、この結果、カウンタ501は上記したPCO>PD
の条件のため、そのカウント値がカウントアウトに達す
る前に必ずリセットされてしまい、キャリーアウト出力
COが出力されることはなく、従って、フリップフロッ
プ502はリセットされたままにとどまっている。 【0090】次に、何らかの異常、例えば、このCIM
に対する伝送路20が断線するなどの異常が発生したと
する。そうすると、この異常が発生した時点以降、この
CIMに対するデータの受信は行なえなくなり、今度は
いつまで経っても信号MYADDRは現われなくなって
しまう。 【0091】この結果、カウンタ501は、この異常が
発生した時点の直前に、このCIMに対するデータが受
信された時点でリセットされたあと、リセットが掛けら
れないままでカウント動作だけが進められることにな
る。そこで、カウンタ501は、異常が発生した時点か
ら最大限、上記した周期PCOに対応した期間が経過し
た時点でキャリーアウト出力COを発生し、これにより
フリップフロップ502がセットされる。 【0092】従って、このカウンタ501は、伝送シス
テムに異常がなく、データの受信が正常に行なわれてい
る間は出力COを発生せず、フリップフロップ502を
リセット状態に保つが、伝送システムに何らかの異常が
発生し、このCIMによるデータの受信が不可能になる
と出力COを発生してフリップフロップ502をセット
するように動作することになり、このため、フリップフ
ロップ502の状態により異常の発生を知ることがで
き、異常検出機能が得られることになる。 【0093】つぎに、このフリップフロップ502のQ
出力はアンドゲート503,504のそれぞれの一方の
入力に結合されている。従って、上記のようにして異常
が検出され、フリップフロップ502がセットされる
と、これらのアンドゲート503,504が能動化され
る。 【0094】一方、これらのアンドゲート503,50
4のそれぞれの他方の入力にはモードデコーダ331か
らの現状維持モード信号とOFFモード信号とがそれぞ
れ供給されるようになっている。なお、これら2種のモ
ード信号は図13から明らかなように、両方同時に供給
されることはない。つまり、これらの信号間には、 現状維持モード信号(+)OFFモード信号=1 の関係が与えられている。 【0095】そこで、いま、モードデコーダ331によ
るフェイルセーフ機能の選択が現状維持モードになって
いたとすれば、異常が検出されたフリップフロップ50
2のQ出力が“1”になったとき、アンドゲート50
3,504のうちのアンドゲート504の出力だけが
“1”になる。そこで、この結果、アンドゲート505
の出力は“0”に固定され、クロックWCLOCK(バ
ー上付き)によるI/Oバッファ105のCK入力に対
する書込みクロックの供給が禁止されてしまう。 【0096】従って、このときは、異常が検出されると
その時点以降、I/Oバッファ105に対するデータの
書込み(書替え)が禁止されてしまうことになり、I/
Oバッファ105の出力データの状態は異常検出時点の
直前における状態のままに保持され、現状維持モードに
よるフェイルセーフ機能が得られることになる。 【0097】一方、モードデコーダ331によるフェイ
ルセーフ機能の選択がOFFモードになっていたとすれ
ば、このときには異常が検出されたとき、アンドゲート
503,504のうちのアンドゲート503の出力だけ
が“1”になり、この結果、インバータ507を介して
アンドゲート506が能動化され、クロックWCLOC
K(バー上付き)によるI/Oバッファ105のクリア入
力CLRに供給されるようになる。 【0098】従って、このときには、異常が検出される
と、その直後にI/Oバッファ105のデータは全てク
リアされ、出力データは全て“0”、つまりOFFされ
てしまうことになり、OFFモードによるフェイルセー
フ機能が与えられることになる。 【0099】次に、異常検出回路305の他の一実施例
を図15に示す。この実施例は、カウンタ501の最終
ビットの出力Qnを利用して異常発生の点減表示を行な
わせるようにしたもので、図14の実施例と異なる点
は、アンドゲート508とオアゲート509が追加さ
れ、OFFモードでのフェイルセーフ機能が働いたと
き、カウンタ501の最終ビットの出力Qnを端子ピン
71〜84の一つに取り出すようにした点だけであり、
その他は図14の場合と同じである。 【0100】カウンタ501にはクロックが常時入力さ
れているから、MYADDR信号が供給されなくなって
キャリーアウト出力COを発生し、フリップフロップ5
02をセットした後もこのカウンタ501はカウント動
作を継続しており、従って、その最終ビットの出力Qn
には前記の周期PCOを1サイクルとしたディーティ比
が50%のパルス(矩形波)が連続して得られている。 【0101】そこで、端子ピン71に接続すべき外部負
荷を例えば自動車のルームランプなどの電気機器として
おけば、異常が検出されるとそれまでのルームランプの
点灯消灯と無関係に、ルームランプが点滅を開始するこ
とになり、異常発生の表示を行なわせることができる。 【0102】なお、この図15の実施例でオアゲート5
09を用いているのは、端子ピン71の共用化のため
で、この結果、この実施例では端子ピン71に接続すべ
き外部負荷が上記のルームランプのように機器に限ら
れ、こうしなければ表示機器が活かせなくなっている。 【0103】そこで、異常検出表示出力用の端子ピンを
専用に設け、その端子ピンからアンドゲート508の出
力を直接取り出すようにしてやれば、端子ピンの節約は
得られないものの、使用する上での自由度は高くするこ
とができる。 【0104】ところで、カウンタ501がカウントアッ
プしてキャリーアウト出力COを発生するまでの時間
は、一つのCIMに対するデータ伝送の周期PDに比し
て充分大きくしておく必要があり、このため、上記の周
期PCOとしては例えば100mS以上に選ぶ必要があ
る。 【0105】そこで、例えばクロックの周波数を4MH
zとすれば、カウンタ501のビットは20ビット以上
のものを要することになってしまい、コストアップが著
しくなってしまう。 【0106】一方、図11に示した実施例では、同期回
路102に4ビットのカウンタが含まれており、これに
より4MHzのクロックが分周されて信号φM,φSとな
り、さらにこの信号φM,φSが8ビットのシーケンスカ
ウンタ303でカウントされている。 【0107】そこで、この実施例では、シーケンスカウ
ンタ303のキャリーアウト出力をカウンタ501のク
ロックとして供給するようにし、これによりカウンタ5
01に必要なビット数が8ビットと少なくて済むように
している。 【0108】次に、自動送信機能の詳細について説明す
る。これまでの説明は、このCIMを図2に示すような
データ伝送システムに適用した場合についてのものであ
った。そして、この図2のシステムでは、多数のLCU
相互間でのデータ伝送制御のためにCCUが設けられ、
このCCUに含まれているマイコンなどによりシステム
全体の制御が適切に行なわれるようになっている。 【0109】このため、CCUや各LCUに使用されて
いるCIMは、CCU側でMPUモードに設定された場
合にはマイコンからの制御により1フレーム分ごとのデ
ータTXDの送信を開始し、一方、LCU側でDIOモ
ードに設定された場合にはCCU側から送信されたデー
タTXDが受信データRXDとして入力され、それが確
実に受信完了されたことにより自らの送信データTXD
の伝送を開始するようになっている。 【0110】従って、このCIMを用いた伝送システム
においては、そこで必要とするデータ伝送機能を得るた
め、マイコンなどを備えたCCUが不可欠であり、CI
Mだけで伝送システムを構成することはできない。即
ち、図16のように、マイコンを用いないで2個のCI
Mとだけを1本のOFなどで結合し、CIMをM
PUモードにし、CIMをDIOモードにしたとして
も、このままではいずれのCIMからのデータの送信は
開始しないから、データ伝送機能は発揮されない。この
ことは両方のCIMをMPUモード、或いはDIOモー
ドにしても同じである。 【0111】もっとも、この図16のように構成した場
合でも、何らかの手段を用いていずれかのCIMからデ
ータの送信を行なわせてやれば、それ以後、データ伝送
動作が開始され、交互にデータ伝送が継続されるように
することができる。 【0112】しかしながら、このようにして伝送を開始
させたとしても、このようなデータ伝送系にはノイズな
どによるデータ伝送誤りの発生が不可避であり、この結
果、ひとたび伝送エラーが発生すれば、その時点でデー
タ伝送動作はストップしてしまうことになり、従って安
定したデータ伝送動作は望めない。 【0113】一方、自動車内の配線システムとしては、
多数のLCUを含む比較的大規模なデータ伝送システム
に限らず、2個のLCU相互間での多重伝送が行なえる
だけで充分であるという、比較的小規模なデータ伝送シ
ステムも必要になる場合がある。例えば、操舵輪コラム
の側面に設けたスイッチパネルと、ヘッドランプやホー
ンなどの被制御機器との間の配線システムなどがそれで
ある。従って、このようなシステムに対しては、もしも
可能なら図16に示した小規模なデータ伝送システムの
使用が望ましい。 【0114】しかしながら、この程度の小規模データ伝
送システムに対しても、それを上記したCIMを用いて
構成した場合には、一方のCIMにマイコンなどによる
制御装置を設け、このCIMにCCUとしての機能を付
与したり、或いは2個のLCUに対してさらにCCUを
別に設けたりする必要があり、全体的な規模に比して割
高なシステムとなってしまうという欠点があった。 【0115】自動送信機能はこのような場合に対処する
ためのもので、2個のCIMを伝送路を介して相互に結
合し、LCUの1対1伝送システムとするだけで直ちに
多重データ伝送を安定に行なわせることができ、小規模
データ伝送システムのローコスト化が可能で、自動車内
の集約配線化に有用な改良されたCIMとするためのも
のであり、具体的には図11に示すように自動送信回路
330を設け、この回路を必要に応じて能動化させるよ
うにしたものである。 【0116】さて、この自動送信回路330は、CIM
データ送信動作の開始条件を、他のCIMから送信され
たデータの受信動作終了によるものだけではなく、それ
に加え、電源投入後、所定時間経過したことによるも
の、及び、自らがデータ送信動作を終了したあと所定時
間以内に他のCIMから送信されたデータが受信されな
かったことによるものとを追加する機能をはたすもの
で、図16に示すような1対1伝送システムをこのCI
Mによって構成するためには、一方のCIM、例えばC
IMを自動送信モード(以下、これをアクチブモード
という)に、そして他方のCIM(この場合はCIM
)を自動送信無しモード(以下これをパッシブモード
という)に設定する。 【0117】なお、図13に示すように、この実施例で
は、CIMをアクチブモードに設定するためには、アド
レスを“1”から“D”までのいずれか一つに設定し
(このときには、図13から明らかなようにDIOモー
ドとなる)、さらにモードセレクト入力MS1=1,M
0=0にそれぞれ設定するようになっており、パッシ
ブモードに設定するためには、同じくアドレスを“1”
から“D”までのいずれか一つに設定し、モードセレク
ト入力MS1=0にしてやるようになっている。 【0118】ところで、このアクチブモード及びパッシ
ブモードにおいても、そのデータ伝送動作におけるアド
レスの機能に変りはない。一方、図16に示すような1
対1伝送システムにおいては、CIMとCIMの間
で相互にデータがやり取りされる。従って、このときに
データ伝送を可能にするためには、CIMとCIM
の両方を同じアドレス(アドレス1〜Dの間に限る)に
設定してシステムを構成しなければならない。 【0119】なお、このため、アクチブモードでは同じ
アドレスに対してI/Oバッファの入力ポートと出力ポ
ートを反転させる必要があり、そのように構成してある
が、この点については後述する。 【0120】この実施例による自動送信回路330はゲ
ート回路とインバータ、それにフリップフロップで構成
され、それによりCIMがアクチブモードに設定された
ときには、シーケンスカウンタ303のカウント出力が
S254になったとき、所定のタイミングで信号LOA
D49を発生し、シーケンスカウンタ303にS49を
ロードする働きをするもので、これにより自分宛のデー
タを受信しなくても、一定の時間が経過したときにはデ
ータ送信動作が自動的に開始されるようにしたものであ
る。 【0121】こうして、DIOモードの中で、さらにア
クチブモードとパッシブモードに設定可能にしたCIM
を用い、図16に示すようなLCUの1対1伝送システ
ムを構成すると図17のようになる。ここで、CIM3
4はDIOモードでかつアクチブモードに設定されたC
IMを、そしてCIM35はDIOモードでかつパッシ
ブモードに設定されたCIMをそれぞれ表わす。 【0122】従って、CIM34は図11で示した自動
送信回路330が能動化されている以外は既に説明した
DIOモードにおけるCIMとして動作し、他方、CI
M35は自動送信回路330が能動化されないから、既
に説明したDIOモードにあるCIMと全く同じ動作を
するようになっている。 【0123】次に、図11に示したCIMを用いて構成
した図17を示すような1対1伝送システムの動作につ
いて説明する。なお、上述のように、図17におけるC
IM34,35は、いずれのもその基本的動作はDIO
モードにおけるものとなっている(特にCIM35はD
IOモードと全く同じである)から、以下の説明ではD
IOモードの場合と異なる点についてだけ重点的に行な
う。 【0124】まず、自動車のエンジンキーが操作される
などして伝送システムの電源が投入されると、イニシャ
ライズが行なわれ、シーケンスカウンタ303の出力は
S0(なお、このSはステージの略)にセットされる。
そして、それにひき続いてクロックφMのカウントによ
り、このカウンタ303が歩進してゆく。 【0125】こうしてカウンタ303が歩進を開始して
ゆき、そのカウント出力がS25になると、CIM3
4,35はいずれもアイドル状態になり、その後は受信
信号が入力されてくるのをただ待っているだけの状態に
なってしまう。 【0126】ところで、このシステムでは、図17から
明らかなように、信号伝送路20に結合されているのは
2個のCIM34,35だけであり、従って、これらが
いずれもアイドル状態に入ってしまえば、図16で説明
したように、データ伝送動作はいつまで経っても開始さ
れない。 【0127】しかしながら、この図17では、CIM3
4,35が図11に示す本発明の実施例によるものであ
り、これによりCIM35はアクチブモードに設定され
ている。一方、既に説明したとおり、本発明によるCI
Mでもその基本的な動作は図3のCIMと同じであり、
従って、アイドル状態にあってもCIM34,35のシ
ーケンスカウンタ303はクロックφMのカウントをそ
のまま続けている。 【0128】そこで、図17のシステムにおいて、イニ
シャライズ後にCIM34,35がアイドル状態に入る
と、それ以後、パッシブモードにあるCIM35はその
ままアイドル状態にとどまっているが、CIM34はア
クチブモードに設定されているため、自動送信回路33
0が能動化されており、この結果、シーケンシャルカウ
ンタ303のカウント出力がS254に達した後の所定
のタイミングで信号LODO49が発生し、シーケンシ
ャルカウンタ303の出力にS49がロードされる。 【0129】既に説明したように、このCIM34,3
5においても、図3ないし図8で説明したように、シー
ケンシャルカウンタ303のカウントデータによって伝
送動作が制御されている。従って、CIM34のシーケ
ンスカウンタ303の出力データがS49にされると、
このCIM34の動作はそれまでのアイドル状態からD
UMMY状態にジャンプし、その後、このシーケンシャ
ルカウンタ303の歩進によって25ビットの“0”送
信と、それに続くS74からのデータTXDの送信動作
に入ることになる。 【0130】こうして、ひとたびCIM34からデータ
の送信が開始すれば、このデータがアイドル状態にある
CIM35によって受信され、この結果、CIM34と
35との間でのデータ伝送はDIOモードで交互に1フ
レーム分ずつ行なわれ、2個のCIM34と35とによ
る1対1伝送システムによるデータ伝送が開始すること
になる。従って、このときのCIM34とCIM35の
状態遷移図を示すと図18に示すようになる。 【0131】一方、このようにしてCIM34と35の
間でのデータ伝送動作が開始し、定常的な半二重方式に
よるデータ伝送が行なわれているときに伝送エラーが発
生したとすれば、CIM34と35の両方がアイドル状
態になり、再びデータ伝送動作は停止されてしまう。 【0132】しかしながら、このときにも、CIM34
がアクチブモードにあるため、シーケンスカウンタ30
3のカウント出力がS254になった時点で再びシーケ
ンスカウンタ303にS49がロードされ、自動的にデ
ータ送信が開始される。 【0133】従って、この実施例によるCIMによれ
ば、動作モードをアクチブモードとパッシブモードに選
択した上で図17に示すように1対1伝送システムを構
成するだけで常に安定にデータ伝送を行なうことがで
き、小規模なデータ伝送システムをローコストで構成す
ることができる。 【0134】ここで、本発明の一実施例におけるモード
選択とI/Oバッファ105の入出力ポートの切換えに
ついて説明する。既に説明したように、図11に示した
本発明の一実施例では、DIOモードのときにアクチブ
モードとパッシブモードとに選択設定が可能で、アクチ
ブモードでは自動送信回路330が能動化されるように
なっているが、その他、DIOモードによるデータ伝送
動作やその他の構成は図3のCIMと同じであり、その
ため、DIOモードではI/Oバッファ105のポート
の方向性がアドレスによって決められ、アドレスがその
まま出力ポート数となるようにしてある。 【0135】例えば、DIOモードには4ビットのアド
レスの“1”から“D”が対応しているが、アドレスを
“1”にすれば、I/Oバッファ105の14ビットの
ポートのうち、1ビットが出力ポートで13ビットが入
力ポートとなり、アドレス“D”では13ビットが出力
ポートで1ビットが入力ポートになる。 【0136】一方、これも既に説明したとおり、図17
のような1対1伝送システムでは、両方のCIM34と
35のアドレスを一致させておかなければ、データの伝
送は行なえない。 【0137】しかして、この図17のシステムでは、一
方のCIM、例えばCIM34から送信されたデータは
必ずCIM35によってだけ受信され、他方、CIM3
5が送信したデータはCIM34でしか受信されないか
ら、これら両方のCIM34と35でI/Oバッファ1
05の入力ポート数と出力ポート数とを同じにしたので
は、データ伝送に無駄が生じ、伝送可能なビット数を有
効に利用できなくなってしまう。 【0138】つまり、データ伝送の本質から、このよう
な1対1伝送システムにおける一方のCIMにおける入
力ポートのデータは他方のCIMにおける出力ポートに
よって受信されれなければデータ伝送が行なわれたこと
にならないから、一方のCIMにおける入力ポートの数
は他方のCIMにおける出力ポートの数に等しくし、反
対に一方のCIMの出力ポート数は他方のCIMの入力
ポート数に等しくするのが最も望ましい。 【0139】そこで、この実施例では、アドレスによる
I/Oバッファ105の入出力ポートの切換を、パッシ
ブモードでは図3のCIMと同様に行ない、他方、アク
チブモードに設定されたときには、パッシブモード時と
反対に、アドレス数が入力ポート数に対応して行なわれ
るようにしてある。 【0140】例えば、いま、図17のCIM34と35
がアドレス“1”に設定されていたとすれば、CIM3
5ではI/Oバッファ105の14本のポートのうち、
1本が出力ポート、13本が入力ポートとなるのに対し
て、アクチブモードにあるCIM34では出力ポートが
13本、入力ポートが1本となり、1対1伝送における
データ転送機能を充分に活用することができる。 【0141】なお、既に説明したとおり、本発明のCI
Mがアクチブモードに設定されたときには、電源投入
後、或いはデータの伝送が途切れたあと、シーケンスカ
ウンタ303がS254に歩進してから自動送信動作に
入る。 【0142】そこで、いま、クロックφMによるデータ
の伝送速度を250Kbit/Secとすれば、約1m
Secの待ち時間で自動送信動作に入るようなるが、こ
の時間はシーケンスカウンタ303の最大ビット数とク
ロックの周波数で任意に設定可能なことはいうまでもな
い。 【0143】また、図11の実施例では、シーケンスカ
ウンタ303を利用して自動送信に入るまでの時間を設
定しているため、アクチブモードでの動作に必要な構成
の付加が少なくローコストで済む。 【0144】なお、このアクチブモードとパッシブモー
ドに設定して動作が可能なCIMについては、前掲の特
願昭58−104880号の明細書中にさらに詳しく説
明されているものである。 【0145】 【発明の効果】本発明によれば、データ伝送システムの
伝送異常時にも、常に的確にフェールセーフ状態の維持
が得られるので、自動車などのデータ通信装置に適用し
て、充分な安全性を保持することができる。
DETAILED DESCRIPTION OF THE INVENTION [0001] [0001] The present invention relates to a data multiplex transmission system.
The communication mode used for the system, especially the operation mode
Can be selected arbitrarily and can be configured with one type of terminal device.
Data transmission system. [0002] 2. Description of the Related Art For example, various lamps are used for automobiles and the like.
Electrical components such as motors and motors, as well as various
Many electrical devices such as sensors and actuators are arranged,
The number will increase with the increasing use of electronics in automobiles.
It's going on. For this reason, as in the prior art, these many
Since the wiring was performed independently for each air device,
Is extremely complicated and large-scale wiring.
Cost, weight, space, or mutual
A major problem such as the occurrence of interference occurs. [0004] Therefore, a method for solving such a problem.
As one of them, transmission of many signals is possible with less wiring
The simplification of wiring by the multiplex transmission method has been proposed.
For example, Japanese Patent Application No. 57-175 filed by the present applicant.
No. 35 (see JP-A-58-70657).
I can do it. [0005] FIG. 1 is a block diagram of the multiplex transmission system.
1 shows an example of an integrated wiring system in a vehicle. The system shown in FIG.
System uses optical fiber cable OF as signal transmission path
The central control unit CCU (hereinafter simply referred to as CCU).
This is an abbreviation of Central Control Unit) and multiple ends
End processing unit LCU (hereinafter simply referred to as LCU.
This is an abbreviation of Local Control Unit).
Fiber optic cable OF
Is provided with an optical branching connector OC. [0006] The CCU is located near the dashboard of the car.
Any suitable place to control the entire system
It has become. LCU has various operation switches SW,
Display such as meter M, lamp L, sensor S, automobile
A predetermined number near the electrical devices installed in the
They are distributed. The CCU and each LCU are
Optical signal and electrical signal are connected to the cable
Photoelectric conversion module O / E that converts
Have been. The CCU has a microcomputer and a serial
It has a data communication function using ALDATA,
Each LCU has a communication processing circuit CIM (hereinafter simply referred to as CIM).
Say. In addition, this is the Cimmunication Interface Adapter
) Is provided, and the CCU sequentially selects one of the LCUs
And exchange data with the LCU.
1 channel fiber optic cable by repeating
Multiplex transmission is possible via OF, and complicated and large-scale
The wiring in the vehicle can be simplified. For use in such an integrated wiring system in an automobile.
FIG. 2 shows an example of a data transmission system to be used. FIG. 2 shows the entire system of the data transmission system.
In the figure, reference numeral 10 denotes a central processing unit.
(Corresponding to the CCU in FIG. 1), 20 is a signal transmission path (optical
(Corresponds to fiber cable OF), 30-32 are end-treated
Device (corresponding to the LCU in FIG. 1), 40 is an analog digital
Converters (hereinafter referred to as A / D), 51 to 58 are external negative
It is a load. In this example, the signal transmission path 20 is
The case where the air signal transmission line is used is shown.
The central processing unit 10 and the terminal processing units 30 to 32
No photoelectric conversion module is required, so the terminal processing device
The contents of 30 to 32 are substantially only CIM. Computer (microcomputer)
The central processing unit 10 includes the
Combined with 30-32, various sensors, lamps, activators
External load 51 composed of an electric device such as a heater or a motor
-58 and the data from these
The acquisition is performed by the multiplex transmission method. At this time,
External loads 57, 58 such as sensors that output log data
Is connected to the terminal processor 32 via the A / D 40,
Transmission operation using digital data is now possible
I have. What is the signal transmission path 20 if it is bidirectional?
Not only electrical signal transmission systems, but also optical
Signal transmission system, etc.
The formula is the so-called Half Duplex method, with central processing
One of the plurality of terminal processing devices 30 to 32 from the device 10
One of the terminal processing devices and the middle
Transfer of data with the central processing unit 10 is performed through the transmission path 20.
Are performed alternately. [0011] Multiplex transmission using such a half-duplex system is not possible.
Therefore, the data sent from the central processing unit 10 includes
An address indicating the destination is attached and received from the transmission path 20.
Address attached to the data
Only one of the terminal processors that recognizes
To answer. As described above, the address from the central processing unit 10 is
Address according to the data sent with
Terminal processing that understands and determines that it is its own
Only one of the devices responds and centrally processes its data.
The above half-duplex system is transmitted to the
Thus, a data transmission operation can be obtained. Also, in this example, each of the terminal processing devices 30 to
Thirty-two functions are consolidated into specific ones, and these terminal processing devices
30-32 LSI (Large Scale Integrated Circuit)
ing. And the specific function at this time is
Data transmission function, that is, multiplex transmission by half-duplex system
Functions required for A / D and A / D attached to each terminal processing device
It has two types of functions to control external devices such as
You. As a result, the exclusive use of the data transmission function
For example, integrated wiring systems in automobiles
When applying to a system, use the half-duplex
Transmission speed, address bit number, etc.
You can decide. Further, in this multiplex transmission system,
Utilizes the functions of the terminal processing device that has been made into an LSI as it is
And the central processing unit 10ApplicableAnd
As a result, the central processing unit 10 also has a data transmission function.
General-purpose computers (such as microcomputers)
) And the above-mentioned LSI terminal processing device 33
The central processing unit 10 can be configured only by combining
Software required for the computer of the central processing unit 10
In addition to reducing the load on the wear side,
The versatility of the finishing device can be increased. As a result, as described above, the above-mentioned LSI and specialized
Can be used more advantageously.
You. For such a common use, these terminal processes
Processing devices 30 to 32 (hereinafter, also referred to as CIMs)
U) and CIM 33 are all made in the same configuration,
Depending on the mode settingDIO mode, AD mode, MPU mode
Any of the three modes can be selected and operated
I am getting it. The DIO mode refers to the CIM
Required when used as 30-31 in FIG.
The AD mode is hereinafter referred to as the AD mode.
This is an operation mode required for M32, and the MPU mode
This is an operation mode required for the CIM 33. An example of such an LSI-based CIM is
As shown in FIG. In FIG. 3, reference numerals 61 to 84 denote LSI circuits.
A terminal pin of the package, 60 indicates a package. end
Terminal pins 61 and 62 are for power supply, and terminal pin 63 is for resetting.
It is for inputting a cut signal. The terminal pin 64 is connected to the transmission line 20 (FIG.
2), and the received signal RXD is input. Terminal pin
The clock 65 is for clock input, and is, for example, a 4 MHz clock.
Lock is supplied. Terminal pin 66 is coupled to transmission line 20
And serves to output a transmission signal TXD.
You. Terminal pins 67 to 70 receive address data ADDR.
4 bits for power. The address data ADDR is
Data indicating the destination of data during data transmission
However, in this CIM, the address data AD
Make the above mode setting by DR.
You. Terminal pins 71 to 84 are for connection with an external device,
Used for input / output of data according to the operation mode described above.
Or for transmission of control signals. Reference numeral 101 denotes a control circuit.
01 is a sequence counter 303 and a sequence decoder
304, and various control signals required within this CIM.
Signal is generated as the sequence counter 303 advances.
And work to advance the operation of this CIM sequentially.
I do. Reference numeral 102 denotes a synchronization circuit, which is a synchronous circuit of the received signal RXD.
Clock φ synchronized with start bitMAnd φSWork to make
To Reference numeral 104 denotes a 24-bit shift register.
Transmission and reception of real data, or serial data and
Used for mutual conversion between parallel data. 105
Is a 14-bit input / output buffer.
Exchanges parallel data with the
It works. An A / D control circuit 106 includes an external A / D control circuit.
It functions to control the D converter 40 (FIG. 2). 30
Reference numeral 6 denotes address data, which is externally provided through terminal pins 67 to 70.
According to the address data ADDR set and input from the section
A predetermined signal is generated, and each bit of the I / O buffer 105 is
Determine the input / output direction of the
It functions to output a signal for conversion. Reference numeral 307 denotes an address comparison circuit, which is a terminal pin 6
Address and shift register 10 set in 7 to 70
4 and the data stored in the predetermined bits
To determine the address of the received data.
U. 308 is an error detection circuit, which transmits the received data
Check for errors and determine when
If the dresses do not match, the operation of this CIM
Works to reset. Next, the address by the terminal pins 67 to 70
The setting will be described. As already explained, FIG.
In the system, the CIM on the LCU side has different
Address is assigned, and based on this address,
Multiplex transmission of data by the duplex method is now performed.
ing. This address is stored in each CIM
Connected to comparator 307
Four terminal pins 67-70,
Data ADDR to be given to input0~ ADDRThreeBy this
The address of the CIM is specified. For example, the CIM
To specify the address of “10”, the address
Data ADDR0= 0, ADDR1= 1, ADDRTwo= 0,
ADDRThree= 1, and (101
0) may be input. In this CIM, data "0" is not connected.
Ground potential, data “1” is power supply voltage VccRepresented by
Therefore, for the address “10”, the terminal pin 67
And 69 are grounded, and terminal pins 68 and 70 are connected to the power supply.
Will be. In this CIM, address data is
ADDR is also input to the address decoder 306, and
Controls the directionality of the I / O buffer 105.
It has become so. As a result, specify the address
And 14 terminal pins 71 to 8 of the I / O buffer 105
Determine which of 4 becomes data output port
Is done. In this CIM, the address is
It corresponds to the number of output ports as it is. Follow
Now, if the address is defined as "10", the I / O
10 out of the 14 terminals of the
Control is performed so that the remaining four ports become input ports. Although omitted in FIG. 3, this ad
The output of the address decoder 306 is the sequence of the control circuit 101.
Also provided to the decoder 304 and other circuits.
As a result, as shown in FIG.
It can be switched. That is, in this example
Indicates that the CIM with the address set to “0” is in MPU mode
With C, the address is set between "1" and "D".
IM is in DIO mode, and the address is "E",
CIM set to any of “F” is in AD mode
Each is operated. Next, in each of these operation modes,
Will be described. First, is the address "1"?
To "D" and set to DIO mode
Then, the CIM enters the functional block state of FIG. Therefore, the reception signal input from the transmission path 20 is
The signal RXD is supplied to the synchronization circuit 102 and the control circuit 101
Clock synchronized with the clock component of the received signal RXD
Hook φM, ΦSIs provided, whereby the control circuit 101
Generates a control signal and sends the received signal to the shift register 104.
Is read serially. On the other hand, the address comparison circuit 307
Terminal processing from "1" to "D"
If one of the addresses assigned to the device is given
Address and a predetermined bit of the shift register 104.
The data read at the address position is the address comparison circuit 307
And the shift register only when they match.
The data in the master 104 is transferred to the I / O buffer 105.
And given to external equipment. The control circuit 101 advances by a clock.
Generates sequential control signals
Then, the data based on the reception signal RXD is transferred to the I / O buffer 10.
After giving it to 5, followed by an I / O buffer
Parallel data from shifter 105 to shift register 104
And transmit it from an external device to the central processing unit 10.
Serial data into the shift register 104
Prepare as. Then, this data is transferred to the shift register 10.
Read out serially from 4 and transmit as transmission signal TXD
It is sent to the road 20. At this time, the reception signal RXD
The transmitted address is directly added to the transmission signal TXD.
Transmitted from the other end connected to the transmission line 20.
Is not received by the central processing unit, while
Device 10 matches the address sent by itself.
Then, the transmission signal TXD is taken in.
Data transfer for one cycle is completed by the half duplex method
I do. In this way, the central processing unit 10 executes the next terminal processing.
Send data to the management device and repeat this
In this way, a plurality of terminal processing devices 30 to 32 can communicate with each other.
Data exchange is performed periodically, enabling multiplex transmission.
You. The data contents of the shift register 104 at this time are shown in FIG.
As shown in the DIO mode of No. 6, No. 0 to No. 5
No 6 bits are used, and 1 from No. 6 to No. 19
4 bits are allocated to data DIO of I / O buffer 105
I can Then, the four bits from No. 20 to No. 23
No. 24 is assigned to the address data ADDR of
Assigned to start bit. In addition, DIO Day
The number of bits allocated to the data is 14
Means that the I / O buffer 105 has 14 bits
Because there is. For this reason, in this CIM, I
The maximum number of external loads that can be connected to the / O buffer 105 is
There are fourteen child pins 71 to 84 (FIG. 3). The data transmission method by this system is as follows.
Asynchronous, bi-directional, two-way reverse transmission,
Digital data in NRZ (nonreturn to zero) method
The transmission waveform is shown in FIG.
As shown. That is, CIM side CIM
Received a frame that transmits data to the CIM on the LCU side
If the frame is a transmission frame, the reception frame and the transmission
Both frames are 74 bits, so one frame is 14 bits.
It has 8 bits. Then, the reception frame and the transmission frame
Have the same frame configuration.
There is a bit “0” followed by one bit for start-stop synchronization.
A start bit consisting of a bit "1" is provided.
Then, the 24-bit reception data RXD is the transmission data T
XD is transmitted in NRZ signal format, and these data
Data RXD (bar superscript) orTXD(On the bar
Attached) is transmitted. Note that this inversion
Data RXD (with bar) orTXD(Bar superscript)
The transmission is performed for transmission error checking. As already explained, in this system,
Since multiplex transmission is performed by the half-duplex method, the reception
The CCU is assigned to the first 4 bits of the
Address of the LCU to be called
ADDR is attached as shown in FIG.
TX data of the transmission frame transmitted from the LCU
The same address data ADDR is attached to the first 4 bits of D.
Transmitted. The transmission frame is transmitted from the LCU side.
Is only the LCU called by the CCU?
The address is not added to the transmission data TXD
Also, on the CCU side, the data is from any LCU
Can be immediately determined. Therefore, the transmission frame
It is not necessary to add an address to the data TXD.
And the first 4 bits of data TXD are set to L, such as (0000).
Data that does not match any address of the CU
Good. Next, the address is set to either "E" or "F".
If set to either, the CIM will be in AD mode.
The function block is switched to the state shown in FIG.
You. The A / D control circuit 106 is a terminal processing device in FIG.
A / D40 control function required when used as 32
Sensor that generates an analog signal.
Which data from external loads 57 and 58
Digitized into the shift register 104
To provide the necessary control functions. In addition,
Others are the same as the case of FIG. This CIM operates in the AD mode.
Stored in shift register 104 when set to
The contents of the data to be read are as shown in the AD mode of FIG.
8 bits from No. 0 to No. 7 are transmitted via A / D 40
Data stored from external loads 57, 58, etc.
No. 8 and No. 9 are AD channel data
No. for DIO data.
It is 10 bits from No. 10 to No. 19. In addition,
Others are the same as in the DIO mode. The AD channel data at this time is
Is the channel when using multi-channel A / D.
This is data for specifying the channel, and in this embodiment, A / D40
2 bits
Is assigned. The A / D control circuit 106 is dedicated to the situation.
With a sequence counter and sequence decoder
It operates independently of the control operation by the control circuit 101, and
Step by step and advance control sequentially. So
This controls the external A / D 40,
Analog data from up to four types of external devices
Digitally converted periodically and imported as serial data
Only four channels provided in the A / D control circuit 106.
An operation is performed so as to sequentially write data in the register of the channel. On the other hand, when the input of the received frame is completed
(Time t in FIG. 7)0) Is written to the shift register 104
The data format is the AD mode shown in FIG.
The Q of the shift register 1048And Q9The bits of
Two bits of AD data are stored. There
In this case, the A / D control circuit 106
Write to the above 4 channel registers based on the
A certain AD data is read and it is shifted by the shift register 10.
Q of 40To Q7Write to bits. And after this
By transmitting a transmission frame, this AD data is transmitted
Signal TXD and transmitted to the CCU.
Mode operation can be obtained. By the way, in this CIM, as described above,
Receive signal RXD and the subsequent transmit signal TX
Regardless of the D transmission process, the A / D control circuit 106
The AD data is prepared in the register inside. Follow
In this CIM, at what timing
Even if the reception signal RXD appears, it immediately follows the AD data.
The transmission of the transmission signal TXD can be performed, and the transmission of the A / D 40 can be performed.
The transmission processing is not affected by the operation, and the A / D
Transmission speed decreases due to time required for conversion operation
There is no danger. In this system, the CIM is connected to the LSI
A / D40 is externally attached for the CIM
The cost is reduced when implementing the technology. One
That is, as described with reference to FIG.
Set one type of CIM as LCU 30-31
Or as LCU 32 or CIM3 of CCU10
3 can be used. However, at this time, the A / D
When it is used as CIM30,31,33
And the general wiring of automobiles
When applied to the system, it is used as CIM32.
The number of used is used as other CIM30,31,33
A / D is included in all CIMs
There is not much merit by storing. for that reason,
The A / D is external. However, because of the external connection of the A / D,
As is evident from FIG. 8, 4 for the external A / D 40
Connection terminals are required, and when the LSI
This may lead to an increase in the number. So, in this example,
With the connection configuration as shown in Fig. 3, CIM is in AD mode
When set, 14 ports of the I / O buffer 105
Four of the ports are connection terminals for A / D 40
It is intended to be used. That is, in this CIM, the I / O buffer
The port 105 has 14 ports.
As you can see, when CIM is set to DIO mode
May all be used as input / output ports
However, only 10 ports are used at the maximum in AD mode
No, 4 ports are used for input / output of DIO data.
There is no surplus. Therefore, the remaining four ports are set in the AD mode.
To switch and use it as a terminal pin for A / D40.
For example, even if the A / D is externally connected, the number of terminal pins does not increase.
Increased versatility when implementing LSI, enabling cost reduction
Become. Next, the address of this CIM is set to “0”.
The case where the MPU mode is set and the MPU mode is set will be described.
This MPU mode is used as the CIM 33 in FIG.
Mode to provide the necessary functions when
Mode and the AD mode,
U10 microcomputer (hereinafter simply referred to as microcomputer)
), The serial data
Data to the transmission path 20 and returned in response to it.
When the incoming data is received, it is converted to parallel data.
Transfer interface operation to transfer to microcomputer
This is the mode in which you work. By the way, in the above description, FIG.
As explained above, the explanation from the viewpoint of CIM on the LCU side
Because it was mainly, CIM of CCU side to CCU of LCU side
Frames that transmit data to the IM are received frames, and vice versa
Frame transmitted from the LCU to the CCU
After that, as shown in FIG.
Frame to send data as seen from the CIM
Receives a frame when it accepts data
The description will be made as a frame. Therefore, hereinafter, a certain CIM, for example, CI
The transmission frame in M33 is another CIM, for example, CIM3.
0 indicates a received frame, while transmission on the CIM 30
The frame is a received frame in the CIM 33. FIG. 10 shows the address of this CIM.
Set to “0” and control to operate in CPU mode
This is a rough functional block diagram when
As is clear,CPU modeThen I / O buffer 1
05 (Fig. 3), A / D 40 is stopped functioning,
Are connected by a 14-bit data bus. Note that this
Terminal pins are input / output ports of the I / O buffer 105
It is used commonly with
Needless to say, And this 14
8 bits out of input / output (14) are for data
The remaining 6 bits are for control signals. Now, in this CPU mode, the shift
The data content of the register 104 is changed to the MPU mode in FIG.
Q as shown0To Qtwenty threeAll 24 bits up to MPU
It is data, and the microcomputer is an 8-bit data bus
To access this shift register 104
It has become. Therefore, the microcomputer and the shift register 10
The transfer of data to / from 4 requires 3
Access times. On the other hand, the control circuit 101 controls the microcomputer.
Receiving the control signal,0~ Qtwenty threeAll of
When the data from the microcomputer is stored in all the bits,
At the time t when this data is stored.
xStarts transmission of a transmission frame as shown in FIG.
You. Thus, the transmission frame is transmitted from the CIM 33.
When sent, the CIMs 30-32 on the LCU side
One responds and then the CIM sends
Time txWhen transmitting 1 frame (148 bits) from
Time t when the time has elapsedy, The shift register 104
Some of the CIMs (CIs)
Data transmitted from one of M30-32)
The portability function will end. Therefore, the control circuit 101 of the CIM 33
At this time tyGenerates an interrupt request IRQ at
The microcomputer reads the data of the shift register 104 in response
Thus, data transmission for one cycle is completed. Note that this
Of data exchange between CIMs at the time is related to FIG.
Is the same as in the DIO mode described above.
Needless to say. The CIM described above is disclosed in Japanese Patent Application No.
8-40581, Japanese Patent Application No. 58-104880, Japanese Patent Application
No. 58-106666 and Japanese Patent Application No. 58-1066
According to the invention filed by the present applicant as No. 67,
These are described in more detail in the specifications of these applications.
Is well described. [0062] SUMMARY OF THE INVENTION
The problem illustrated is that in the data transmission system described above,
Maintain accurate fail-safe state when data transmission is abnormal
It is in. Therefore, the object of the present invention is to
Providing a data transmission system suitable for application to communication equipment
To provide. [0063] [0064] [0065] [Means for Solving the Problems]According to the first invention,
The purpose is that the data storage means is used when a transmission error occurs.
A driving signal of the electric device based on the data read from the
And writing new data to the data storage means.
Stop the write clock to prevent
Is achieved. Next, according to a second aspect of the present invention,
The purpose is to determine when a transmission error occurs
A table to store the processing data required for
Achieved by: According to the third aspect of the present invention,
For example, the purpose is to drive the electric device when a transmission error occurs.
Indicates that one of the terminals that output the motion signal has a transmission error.
This is achieved by outputting a signal. [0066] DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a CIM (terminal) according to the present invention will be described.
The processing device will be described with reference to the illustrated embodiment.
FIG. 11 shows an embodiment of the present invention.
Is a terminal pin, 305 is an abnormality detection circuit, 330 is automatic transmission
The circuit 331 is a mode decoder, and the others are FIG.
Is the same as the conventional example. The terminal pins 85 and 86 are connected to the mode select signal
This is an extension for inputting the number MS. Abnormality detection circuit 3
05 is a received signal RXD input through the terminal pin 64
And the input of the received signal RXD is predetermined.
Over a certain periodInterruptedIf this is abnormal
Generates a fail-safe control signal by determining that a failure has occurred.
do. Then, the fail-safe control signal is transmitted to the I / O
Supplied to the buffer 105 and checks the state of its output port.
It works to fix to a fixed state. The automatic transmission circuit 330 is a sequence counter
Check the count number of 303 and when it reaches the specified value
A predetermined number is loaded to the count output of the counter 303.
The control state of the sequence decoder 304 is shown in FIG.
Time txIn the required control state
Work. FIG. 12 is a diagram showing a configuration for inputting address data ADDR.
Four terminal pins (67 to 70 in FIG. 11) and a mode selector
Two terminal pins (85, 85,
86) only, and in this embodiment,
Depending on the matrix with the dress input mode select input,
The setting for the fixed operation mode has been started
I have. FIG. 13 shows address data and mode select.
An example of an operation mode setting in combination with a signal is shown.
In the matrix diagram, the 4-bit address data
Addresses “0” to “F” to be set and 2-bit mode
Deselect signal MS0, MS1What settings and what
It is shown whether the operation mode is set. Here, each function will be described.
You. The connection mode refers to the operation mode of the entire CIM.
The operation modes of MPU, DIO, and AD are already
As described above. The address is set to “0” and the mode select
Connection obtained when the default input is set to other than (0,0)
The forms (TEST0) and (TEST1) are LS
Easy product testing of I-CIM
When (TEST0) is set in the operation mode
Sequence counter 303 counts at 4 times the normal speed
The DIO mode and AD
Function required for data reception and transmission in mode is normal
The test of whether or not the test can be completed in a short time. If (TEST1) is set, abnormal detection is performed.
The output circuit 305 can be operated with a short waiting time,
Can efficiently test whether the function is normal or not.
You. The input / output direction refers to the direction of each terminal of the I / O buffer 105.
Setting of the input / output direction sets the address from "1" to "D".
Already explained in the DIO mode set to one of
As described above, the address is determined by this address.
MPU mode with mode select (0, 0)
Mode, the I / O buffer 105 is made through and its direction
Is lost and becomes bidirectional, and data input and output
To be controlled by the connected microcomputer
become. On the other hand, when the address is "0", the mode is selected.
Is other than (0,0), that is, in test mode
In the AD mode of addresses “E” and “F”,
Deselect signal MS0, MS1I / O buffer 1
05 input / output directions are determined. The fail-safe function means that the abnormality detection circuit 3
05 and the resulting I / O buffer 1
This is a detailed explanation of the output status fixing function of 05.
As will be described later, in this embodiment, the I / O buffer
Of 105 input / output terminals, set in the output direction
If an error occurs, check the status of the terminal output data immediately.
A method of fixing the previous state (this is called maintaining the current state)
) And a method to turn it off uniformly (this is OFF
) Can be selected. The automatic transmission function means that this CIM is
Data transmission system, one-to-one transmission using only CIM
Functions required when configuring the system.
As will be described later, the automatic transmission circuit 330 is activated.
Whether or not to grant is selected depending on whether or not to make it
It has become. The selection by the mode select input is as follows.
Each function works in the same way. So, for example,
Set mode select to (1, 1) at address "0"
If it is, the CIM operates in AD (TEST0) mode
However, the I / O buffer 105 has five inputs and five outputs.
Fail safe function is OFF method and automatic transmission
The communication function is not provided. Therefore, according to this embodiment, only two
Many functions can be selected simply by adding terminal pins 85 and 86
And easily implement a multi-function CIM into an LSI.
Can be. Next, details of the abnormality detection circuit 305 and the details thereof will be described.
The failsafe function obtained by the above will be described.
In a transmission system using this CIM,
Depending on the signal transmission path such as one optical fiber cable,
Signals are being transmitted, the
Transmission failures can affect the control status of many electrical devices.
May affect the safety of automobiles.
You. Therefore, in such a system,
If an error such as a failure occurs in the transmission system, make sure
To control the operation of loads such as electrical equipment.
Also causes safety issues for cars, etc.
It is desirable to hold in a direction where there is less danger.
No. Therefore, an abnormality detection circuit is provided for this purpose.
The path 305 and the fail-safe function by this. FIG. 14 shows an embodiment of the abnormality detection circuit 305.
In the figure, reference numeral 501 denotes a counter for a timer;
2 is a flip-flop acting as a 1-bit register,
503 to 506 are AND gates, 507 is an inverter
is there. 331 is address data ADDR and mode.
Mode of operating by matrix with select signal MS
A decoder is shown, and the rest is the same as the embodiment of FIG.
The same. The counter 501 counts an appropriate clock.
And carry-out output every time the specified number is counted
Generates CO. The reset input R is
Address comparison circuit 307 (FIG. 11).
A match signal MYADDR is input. The mode decoder 331 has the configuration shown in FIG.
A switching signal is generated and supplied to a predetermined part
However, at this time, FIG.
As shown, the state of the output port of the I / O buffer 105
Is turned off irrespective of the previous state.
OFF mode and the output status up to that point are saved as is
OFF mode signal
AND gate 503 and the status quo mode signal
Output to each of the gates 504. The I / O buffer 105 includes therein
When writing data, input the clock for writing.
To be supplied. That is, the shift register
Data D is given to predetermined bits from 104 (FIG. 11)
Does not write anything to the I / O buffer 105,
Clock was supplied to input CK after applying data D
Only when the data in it can be rewritten
It is. Then, a clock is input to the input CLR.
Then, the data D written at that time is all
And the output port data becomes all 0s.
Output ports such as electric machines connected to these output ports
All loads such as electrical equipment connected to the port are OFF
Will be done. Next, the operation of this embodiment will be described.
You. Counter 501 always counts by clock
And reset only when the signal MYADDR is input.
It is. Therefore, if the signal MYADDR is not input, the
Determined by lock frequency and number of bits of counter 501
Generate carry-out output CO every predetermined period
You. On the other hand, the signal MYADDR is used for address comparison.
This is the output of path 307 and therefore this CIM is
Mode, AD mode, and automatic transmission mode described later.
Occurs each time you receive data addressed to you
You. And the data transmission system using this CIM
It is in a normal stateLimit, Predetermined period
The data must be transmitted to itself within
Has already been described. Therefore, the bit number of the counter 501 is now
And the frequency of the clock input to it
Carry-out output CO of the counter 501 is generated.
The period (this is PCO) is the data addressed to the above
Is larger than the maximum transmission cycle (this is PD) by a predetermined value.
It is assumed that it is determined that That is, PCO> PD
Suppose that it is determined to be. Then, this CIM is used for LCUs 30 to 3
2 in the data transmission system (Fig. 2) built in
While the functions of the CCU 10 and the transmission path 20 are normally maintained
Is always within a period within the above-described predetermined cycle PD.
Data transmission to the IM is performed and the address comparison
Signal MYADDR will be generated from path 307.
As a result, the counter 501 indicates that PCO> PD described above.
Count value reaches the count out due to the condition of
Before being reset and carry-out output
CO is not output and therefore the flip-flop
The loop 502 remains reset. Next, some abnormality, for example, this CIM
An error such as disconnection of the transmission line 20 for
I do. Then, after the point of occurrence of this abnormality,
I can no longer receive data for CIM,
The signal MYADDR disappears no matter how long
I will. As a result, the counter 501 indicates that this abnormality has occurred.
Immediately before the time of occurrence, data for this CIM is received.
After being reset when received,
Only the counting operation can proceed without being
You. Therefore, the counter 501 determines whether an abnormality has occurred.
The period corresponding to the above-mentioned cycle PCO has passed
At which point a carry-out output CO is generated,
Flip-flop 502 is set. Therefore, this counter 501 is used for the transmission system.
System is normal and data is being received normally.
Output CO is not generated while the flip-flop 502
Keep the reset state, but there is something wrong with the transmission system
Occurs and data cannot be received by this CIM
And output CO and set flip-flop 502
Will behave like a flip-flop.
It is possible to know the occurrence of an abnormality by the state of the rop 502
In this case, an abnormality detection function can be obtained. Next, Q of this flip-flop 502
The output is one of each of AND gates 503 and 504.
Is tied to the input. Therefore, as described above,
Is detected, and the flip-flop 502 is set.
And these AND gates 503 and 504 are activated
You. On the other hand, these AND gates 503, 50
4 has a mode decoder 331 at its other input.
The status quo mode signal and the OFF mode signal are respectively
And supplied. Note that these two types of models
Mode signals are supplied at the same time, as is clear from FIG.
It will not be done. That is, between these signals Current status mode signal (+)OFF mode signal= 1 The relationship is given. Therefore, now, the mode decoder 331
The fail-safe function selection is changed to the status quo mode.
If so, the flip-flop 50 in which the abnormality is detected
When the Q output of the second gate becomes "1", the AND gate 50
Only the output of AND gate 504 out of 3,504
It becomes “1”. Therefore, as a result, the AND gate 505
Is fixed to “0” and the clock WCLOCK (bar
-Superscript) to the CK input of the I / O buffer 105
Supply of the write clock to be performed is prohibited. Therefore, at this time, when an abnormality is detected,
After that point, data transfer to the I / O buffer 105
Writing (rewriting) is prohibited, and I /
The state of the output data of the O-buffer 105 is
The status is maintained as it was immediately before
Therefore, a fail-safe function can be obtained. On the other hand, the mode decoder 331
The safe mode is set to OFF mode.
If an abnormality is detected at this time,
Only the output of AND gate 503 among 503 and 504
Becomes “1”, and as a result, via the inverter 507
AND gate 506 is activated and clock WCLOC
Clear input of I / O buffer 105 by K (bar superscript)
The force is supplied to the CLR. Therefore, at this time, an abnormality is detected.
Immediately after that, all data in the I / O buffer 105 is cleared.
And the output data is all "0", that is, turned off.
The fail mode in the OFF mode.
Function will be provided. Next, another embodiment of the abnormality detection circuit 305 will be described.
Is shown in FIG. In this embodiment, the counter 501
Bit output QnIs used to display the point at which an error has occurred.
This is different from the embodiment of FIG.
Added AND gate 508 and OR gate 509
And the fail-safe function in OFF mode is activated
Output Q of the last bit of the counter 501nThe terminal pin
It is only the point that it is taken out to one of 71 to 84,
Others are the same as those in FIG. The clock is always input to the counter 501.
The MYADDR signal is no longer supplied
A carry-out output CO is generated and flip-flop 5
This counter 501 continues counting even after 02 is set.
And the output Q of the last bitn
Is the duty ratio of the above cycle PCO as one cycle
Are continuously obtained as pulses (rectangular waves) of 50%. Therefore, an external negative electrode to be connected to the terminal pin 71
Loads as electrical equipment, for example, room lamps for cars
If an abnormality is detected, the room lamp
The room lamp may start flashing regardless of whether it is on or off.
And the display of the occurrence of the abnormality can be performed. The OR gate 5 in the embodiment of FIG.
09 is used because the terminal pin 71 is shared.
As a result, in this embodiment, the connection to the terminal pin 71 should be made.
External load is limited to equipment like the room lamp above
Otherwise, display equipment cannot be used. Therefore, the terminal pin for output of the abnormality detection display is
It is provided exclusively for output of the AND gate 508 from its terminal pin.
If you try to extract the force directly, you can save on terminal pins
Although it cannot be obtained, the degree of freedom in use should be high
Can be. The counter 501 counts up.
Time to generate carry-out output CO
Is smaller than the data transmission period PD for one CIM.
Must be large enough for this purpose.
It is necessary to select a period PCO of, for example, 100 mS or more.
You. Therefore, for example, if the frequency of the clock is 4 MHz
If z, the bit of the counter 501 is 20 bits or more
Costly.
It gets worse. On the other hand, in the embodiment shown in FIG.
The path 102 contains a 4-bit counter, which
The frequency of the 4 MHz clock isM, ΦSTona
And this signal φM, ΦSIs an 8-bit sequence
Counter 303. In this embodiment, the sequence cow
Counter 303 carry-out output to counter 501
To be supplied as a lock so that the counter 5
The number of bits required for 01 is reduced to 8 bits
doing. Next, details of the automatic transmission function will be described.
You. So far, this CIM is shown in FIG.
It applies to data transmission systems.
Was. Then, in the system of FIG.
A CCU is provided for controlling data transmission between each other,
The system is controlled by the microcomputer etc. included in this CCU.
The whole control is appropriately performed. For this reason, it is used for CCU and each LCU.
CIM is set when MPU mode is set on the CCU side.
In this case, the data for each frame is controlled by the microcomputer.
Data TXD transmission, while the LCU side
When set to the mode, the data transmitted from the CCU side
TXD is input as received data RXD,
The transmission data TXD of its own is actually received.
Transmission is started. Therefore, a transmission system using this CIM
In order to obtain the necessary data transmission function
Therefore, a CCU equipped with a microcomputer etc. is indispensable.
A transmission system cannot be constituted by M alone. Immediately
That is, as shown in FIG. 16, two CIs are used without using a microcomputer.
M and only one OF etc. are combined, and CIM becomes M
Assuming PU mode and CIM DIO mode
However, as it is, data transmission from any CIM
Since it does not start, the data transmission function is not exhibited. this
This means that both CIMs must be in MPU mode or DIO mode.
The same goes for However, in the case of the configuration shown in FIG.
In any case, use any means to download data from any CIM.
Data transmission, then data transmission
Operation starts and data transmission continues alternately.
can do. However, transmission is started in this way.
Even so, such data transmission systems are noisy.
It is unavoidable that data transmission errors occur due to
As a result, once a transmission error occurs,
Data transmission operation will be stopped, and
The specified data transmission operation cannot be expected. On the other hand, as a wiring system in an automobile,
Relatively large data transmission system including many LCUs
Multiplex transmission between two LCUs
Is a relatively small data transmission system.
A stem may also be required. For example, a steering wheel column
Switch panel on the side of the
Wiring systems between controlled devices such as
is there. Therefore, for such a system,
If possible, use the small-scale data transmission system shown in FIG.
Use is preferred. However, such small-scale data transmission
For the transmission system, using the CIM described above
When configured, a microcomputer or the like
A control device is provided, and this CIM is provided with the function as a CCU.
Or an additional CCU for two LCUs
Must be provided separately.
There was a disadvantage that the system would be expensive. The automatic transmission function handles such a case.
Two CIMs are interconnected via a transmission path.
And the LCU's one-to-one transmission system can be used immediately
Multiple data transmission can be performed stably and small scale
Low cost data transmission system is possible,
To make an improved CIM useful for integrated wiring
Specifically, as shown in FIG.
330 to activate this circuit as needed.
It is something that has been done. The automatic transmission circuit 330 uses the CIM
The start condition of the data transmission operation is transmitted from another CIM.
Not only due to the end of receiving data
In addition to the above,
And at a predetermined time after the end of the data transmission operation by itself
Data transmitted from another CIM within
A function that adds the function of adding something
Therefore, a one-to-one transmission system as shown in FIG.
M, one CIM, eg, C
IM in automatic transmission mode (hereinafter referred to as active mode)
) And the other CIM (in this case CIM
) Without automatic transmission mode (hereinafter referred to as passive mode)
). Note that, as shown in FIG.
Is required to set the CIM to active mode.
Address from “1” to “D”
(At this time, as apparent from FIG. 13, the DIO mode
Mode) and the mode select input MS1= 1, M
S0= 0, respectively.
To set the address mode, set the address to "1"
To “D” and select the mode
Input MS1= 0. Incidentally, the active mode and the passive mode
In the data transmission operation even in
There is no change in the function of the reply. On the other hand, as shown in FIG.
In a point-to-point transmission system, between CIMs
Exchange data with each other. Therefore, at this time
To enable data transmission, CIM and CIM
To the same address (limited to addresses 1 to D)
You have to set up and configure your system. Note that, in the active mode, the same
The input and output ports of the I / O buffer
Need to be inverted and configured as such
However, this point will be described later. The automatic transmission circuit 330 according to this embodiment is
It consists of a smart circuit, an inverter, and a flip-flop.
The CIM is set to active mode
Sometimes, the count output of the sequence counter 303 is
When S254 is reached, the signal LOA
D49 is generated, and S49 is set in the sequence counter 303.
It acts as a load, which allows you to
Even if no data is received, data will be
Data transmission operation is started automatically.
You. Thus, in the DIO mode, the
CIM that can be set to active mode and passive mode
And a one-to-one LCU transmission system as shown in FIG.
FIG. 17 shows the configuration of the system. Here, CIM3
4 is C in the DIO mode and the active mode is set.
IM and CIM 35 in DIO mode and passive
CIM set to the active mode. Therefore, the CIM 34 is automatically operated as shown in FIG.
Already described except that the transmission circuit 330 is activated
Operates as CIM in DIO mode, while CI
M35, because the automatic transmission circuit 330 is not activated,
Exactly the same operation as CIM in DIO mode described in
It is supposed to. Next, the configuration using the CIM shown in FIG.
Operation of the one-to-one transmission system as shown in FIG.
Will be described. As described above, C in FIG.
The basic operation of each of the IMs 34 and 35 is DIO
Mode (in particular, CIM35 is D
IO mode), so in the following description D
Focus only on the differences from the IO mode.
U. First, the engine key of the automobile is operated.
When the transmission system is turned on for
And the output of the sequence counter 303 is
It is set to S0 (this S is an abbreviation of stage).
Then, following the clock φMBy counting
This counter 303 advances. Thus, the counter 303 starts to advance.
When the count output reaches S25, CIM3
Both 4 and 35 become idle and receive afterwards
Just waiting for a signal to come in
turn into. By the way, in this system, FIG.
As is evident, what is coupled to the signal transmission line 20 is
There are only two CIMs 34, 35, so these are
If both enter the idle state, it will be described with reference to FIG.
As described above, the data transmission operation starts
Not. However, in FIG. 17, CIM3
4 and 35 are according to the embodiment of the present invention shown in FIG.
This sets the CIM 35 to active mode.
ing. On the other hand, as already described,
The basic operation of M is the same as that of CIM in FIG.
Therefore, even in the idle state, the CIM 34 and 35
Sequence counter 303 is clock φMCount
It continues as it is. Therefore, in the system shown in FIG.
CIM34,35 enters idle state after Charize
And thereafter, the CIM 35 in the passive mode
CIM 34 remains idle
Since the active mode is set, the automatic transmission circuit 33
0 has been activated, and as a result
After the count output of the counter 303 reaches S254.
Signal LODO49 is generated at the timing of
S49 is loaded to the output of the counter 303. As described above, this CIM 34,3
5 as well, as described with reference to FIGS.
Transmitted by the count data of the sequential counter 303
The sending operation is controlled. Therefore, the sequence of CIM34
When the output data of the sense counter 303 is set to S49,
The operation of the CIM 34 changes from the idle state up to D
Jump to the UMMY state, and then
25-bit "0" transmission by the increment of the counter 303
Transmission and subsequent transmission operation of data TXD from S74
Will enter. In this way, once the data is
This data is idle once transmission of
Received by CIM 35, which results in CIM 34
Data transmission to and from the D.35 is alternately performed in DIO mode.
Frame, and the two CIMs 34 and 35
Data transmission by the one-to-one transmission system starts
become. Therefore, at this time, CIM34 and CIM35
FIG. 18 shows a state transition diagram. On the other hand, the CIMs 34 and 35
Data transmission operation between the two, and a steady half-duplex system
Transmission error occurs when
If so, both CIMs 34 and 35 are idle
And the data transmission operation is stopped again. However, also at this time, the CIM 34
Is in the active mode, the sequence counter 30
When the count output of No. 3 reaches S254, the
S49 is loaded into the sense counter 303 and automatically
Data transmission starts. Therefore, according to the CIM of this embodiment,
Operating mode, select active mode or passive mode.
After the selection, the one-to-one transmission system is configured as shown in FIG.
Data transmission can always be performed stably.
Small data transmission systems at low cost
Can be Here, the mode in one embodiment of the present invention
For selection and switching of I / O buffer 105 input / output ports
explain about. As already explained, FIG.
In one embodiment of the present invention, when in DIO mode,
Mode and passive mode can be selected and set.
In automatic mode, the automatic transmission circuit 330 is activated.
But data transmission in DIO mode
The operation and other configurations are the same as those of the CIM of FIG.
For,DIOIn the mode, the port of the I / O buffer 105
Direction is determined by the address, and the address is
The number of output ports remains unchanged. For example, in the DIO mode, a 4-bit address
Address “1” to “D” correspond,
If “1”, the 14-bit I / O buffer 105
Of the ports, one bit is an output port and 13 bits are input.
Output port, 13 bits output at address "D"
One bit becomes an input port at the port. On the other hand, as already described, FIG.
In a one-to-one transmission system such as
If you do not match the 35 addresses,
Sending is not possible. In the system shown in FIG.
The data transmitted from the other CIM, for example, CIM 34
Always received only by CIM35, while CIM3
The data sent by 5 is received only by CIM34
I / O buffer 1 in both CIMs 34 and 35
Since the number of input ports and the number of output ports of 05 were the same
Is a waste of data transmission, and the number of bits that can be transmitted is limited.
It cannot be used effectively. That is, from the nature of data transmission,
In one CIM in a simple one-to-one transmission system
Output port data to the output port of the other CIM
If not received, data transmission was performed
The number of input ports on one CIM
Is equal to the number of output ports on the other CIM,
The number of output ports of one CIM is the input of the other CIM.
Most desirably equal to the number of ports. Thus, in this embodiment, the
Switching the input / output port of the I / O buffer 105
In the active mode, the operation is the same as that of the CIM in FIG.
When set to passive mode,
Conversely, the number of addresses is determined by the number of input ports.
It is so. For example, the CIMs 34 and 35 in FIG.
Is set to the address “1”, CIM3
5, among the 14 ports of the I / O buffer 105,
While one is an output port and 13 is an input port
Therefore, the output port of the CIM 34 in the active mode is
Thirteen, one input port for one-to-one transmission
The data transfer function can be fully utilized. As described above, the CI of the present invention
Power on when M is set to active mode
Later, or after data transmission is interrupted,
After the counter 303 advances to S254, the automatic transmission operation starts.
enter. Therefore, the clock φMData by
Transmission speed of 250Kbit/ Sec, about 1m
Automatic transmission starts in the Sec waiting time.
Is the maximum number of bits of the sequence counter 303 and the clock.
It goes without saying that the lock frequency can be set arbitrarily.
No. In the embodiment shown in FIG.
Set the time before starting automatic transmission using the
Configuration required for operation in active mode
And low cost. The active mode and the passive mode
For the CIM that can be set and operated,
Further details are described in the specification of Japanese Patent Application No. 58-104880.
It has been specified. [0145] 【The invention's effect】According to the present invention, the data transmission system
Always maintain a fail-safe state even when transmission is abnormal
Can be applied to data communication devices such as automobiles.
And maintain sufficient safetycan do.

【図面の簡単な説明】 【図1】自動車内集約配線システムの一例を示す説明図
である。 【図2】CIMを用いたデータ伝送システムの一例を示
す説明図である。 【図3】CIMの従来例を示すブロック図である。 【図4】アドレスによるモードの切換えを示す説明図で
ある。 【図5】DIOモードにおける機能ブロック図である。 【図6】データ内容の一例を示す説明図である。 【図7】伝送波形の説明図である。 【図8】ADモードにおける機能ブロック図である。 【図9】伝送波形の説明図である。 【図10】MPUモードにおける機能ブロック図であ
る。 【図11】本発明における端末処理装置の一実施例を示
すブロック図である。 【図12】本発明の一実施例におけるモードセレクト入
力の説明図である。 【図13】本発明におけるアドレス入力とモードセレク
ト入力によるマトリクス選択の一実施例を示す説明図で
ある。 【図14】本発明における異常検出回路の一実施例を示
すブロック図である。 【図15】本発明による異常検出回路の他の一実施例を
示すブロック図である。 【図16】小規模データ伝送システムの概念図である。 【図17】本発明による端末処理装置を用いた1対1伝
送システムの一実施例を示す概念図である。 【図18】本発明による端末処理装置を用いた1対1伝
送システムの動作説明図である。 【符号の説明】 60 CIMパッケージ 61〜84 端子ピン 101 制御回路 102 同期回路 104 シフトレジスタ 105 I/Oバッファ 106 A/D制御回路 303 シーケンスカウンタ 304 シーケンスデコーダ 305 異常検出回路 306 アドレスデコーダ 307 アドレス比較回路 308 エラー検出回路 330 自動送信回路 331 モードデコーダ
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is an explanatory diagram showing an example of an integrated wiring system in a vehicle. FIG. 2 is an explanatory diagram illustrating an example of a data transmission system using a CIM. FIG. 3 is a block diagram showing a conventional example of a CIM. FIG. 4 is an explanatory diagram showing mode switching by an address. FIG. 5 is a functional block diagram in a DIO mode. FIG. 6 is an explanatory diagram showing an example of data content. FIG. 7 is an explanatory diagram of a transmission waveform. FIG. 8 is a functional block diagram in an AD mode. FIG. 9 is an explanatory diagram of a transmission waveform. FIG. 10 is a functional block diagram in an MPU mode. FIG. 11 is a block diagram showing one embodiment of a terminal processing device according to the present invention. FIG. 12 is an explanatory diagram of a mode select input in one embodiment of the present invention. FIG. 13 is an explanatory diagram showing one embodiment of matrix selection by address input and mode select input in the present invention. FIG. 14 is a block diagram showing one embodiment of an abnormality detection circuit according to the present invention. FIG. 15 is a block diagram showing another embodiment of the abnormality detection circuit according to the present invention. FIG. 16 is a conceptual diagram of a small-scale data transmission system. FIG. 17 is a conceptual diagram showing one embodiment of a one-to-one transmission system using a terminal processing device according to the present invention. FIG. 18 is an explanatory diagram of an operation of a one-to-one transmission system using the terminal processing device according to the present invention. [Description of Signs] 60 CIM package 61 to 84 Terminal pin 101 Control circuit 102 Synchronization circuit 104 Shift register 105 I / O buffer 106 A / D control circuit 303 Sequence counter 304 Sequence decoder 305 Abnormality detection circuit 306 Address decoder 307 Address comparison circuit 308 Error detection circuit 330 Automatic transmission circuit 331 Mode decoder

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI H04L 29/12 H04L 11/00 340 H04Q 9/00 311 13/00 317 (72)発明者 長谷川 明 茨城県勝田市大字高場2520番地 株式会 社 日立製作所 佐和工場内 (56)参考文献 特開 昭57−25034(JP,A) 特開 昭57−92948(JP,A) 特開 昭58−70567(JP,A) 特開 昭58−86698(JP,A) 特開 昭58−136149(JP,A) 特開 昭58−149834(JP,A) 米国特許4471456(US,A) IEE PROCEEDINGS P art.E COMPUTERS & DIGITAL TECHNIQUES VOl.129,No.6,Novem ber 1982,STEVENAGE G B,N.Preston et al ”Multiprocessor i nplementation of t he logic function of a multiplexed w iring system for a utomotives” pp.223− 228 33rd IEEE VEHICULA R TECHNOLOGY CONFE RENCE,25−27 May 1983,I EEE New York,USA,H irayama T.et al”Fi ber optic multiple xed wiring system usig a custom desi gned LSI”pp.35−40 (58)調査した分野(Int.Cl.6,DB名) H04L 12/28 H04L 12/44 G04Q 9/00 311 INSPEC(DIALOG) JICSTファイル(JOIS) WPI(DIALOG)──────────────────────────────────────────────────の Continuation of the front page (51) Int.Cl. 6 Identification symbol FI H04L 29/12 H04L 11/00 340 H04Q 9/00 311 13/00 317 (72) Inventor Akira Hasegawa Daiji Koba, Katsuta City, Ibaraki Prefecture No. 2520 Co., Ltd. Hitachi, Ltd. Sawa Plant (56) References JP-A-57-25034 (JP, A) JP-A-57-92948 (JP, A) JP-A-58-70567 (JP, A) JP-A-58-86698 (JP, A) JP-A-58-136149 (JP, A) JP-A-58-149834 (JP, A) U.S. Pat. No. 4,471,456 (US, A) IEEE PROCEEDINGS Part. E COMPUTERS & DIGITAL TECHNIQUES VOL. 129, no. 6, November 1982, STEVENAGE GB, N.M. Preston et al, "Multiprocessor implementation of the logical function of a multiplexed wiring system for automobiles" pp. 223-228 33rd IEEE VEHICULAR R TECHNOLOGY CONFERENCE, 25-27 May 1983, IEEE New York, USA, Hirayama T .; et al, Fiber Optic Multiplexed Wiring System Usig a Custom Designed LSI "pp. 35-40 (58) Field surveyed (Int. Cl. 6 , DB name) H04L 12/28 H04L 12/44 G04Q 9/00 311 INSPEC (DIALOG) JICST file (JOIS) WPI (DIALOG)

Claims (1)

(57)【特許請求の範囲】 1.データ伝送処理装置と端末処理装置との間でデータ
の授受を行ない、端末処理装置が受信データに基づいて
電気装置を制御する信号を出力するデータ伝送システム
において、 前記端末処理装置は、 受信したデータを格納するデータ格納手段と、 データの伝送が正常に行なわれているとき前記データ格
納手段のデータを更新する手段と、 この受信データに基づいて電気装置の駆動信号を出力す
る出力手段とを備え、 更に、伝送異常発生時には前記データ格納手段から読み
出したデータに基づいて前記電気装置の駆動信号を出力
し、且つ、前記データ格納手段への新データの書込みを
禁止すべく、書き込み用クロックを停止することを特徴
とするデータ伝送システム。 2.データ伝送処理装置と端末処理装置との間でデータ
の授受を行ない、端末処理装置が受信データに基づいて
電気装置を制御する信号を出力するデータ伝送システム
において、 前記端末処理装置は、 受信したデータを格納するデータ格納手段と、 データの伝送が正常に行なわれているとき前記データ格
納手段のデータを更新する手段と、 この受信データに基づいて電気装置の駆動信号を出力す
る出力手段とを備え、 更に、伝送異常発生時にその異常状態に応じて、 i) 前記データ格納手段から読み出したデータに基づい
て前記電気装置の駆動信号を出力するか、 ii) 予め決められた所定のデータに基づいて前記電気装
置の駆動信号を出力するかを選択する選択手段を有し、
この選択手段は、フェールセーフモード決定手 段(モー
ドデコーダ331)の選択モードに対応して、前記i)又
はii)の出力 に必要な処理データを格納するテーブルで
構成されていることを特徴とするデータ伝送システム。 3.データ伝送処理装置と端末処理装置との間でデータ
の授受を行ない、端末処理装置が受信データに基づいて
電気装置を制御する信号を出力するデータ伝送システム
において、 前記端末処理装置は、 受信したデータを格納する格納手段と、 データの伝送が正常に行なわれているとき前記データ格
納手段のデータを更新する手段と、 この受信データに基づいて電気装置の駆動信号を出力す
る出力手段とを備え、 更に、前記出力手段は、 伝送異常発生時に前記電気装置の駆動信号を出力する端
子の1個に伝送異常であることを示す信号を出力するこ
とを特徴とするデータ伝送システム。
(57) [Claims] In a data transmission system for exchanging data between a data transmission processing device and a terminal processing device, and outputting a signal for controlling the electric device based on the received data, the terminal processing device may include: Data storage means for storing data, data updating means for updating data in the data storage means when data transmission is normally performed, and output means for outputting a drive signal of the electric device based on the received data. Further, when a transmission error occurs, a drive signal of the electric device is output based on the data read from the data storage means.
And writing new data to the data storage means.
A data transmission system in which a write clock is stopped so as to prohibit it . 2. In a data transmission system for exchanging data between a data transmission processing device and a terminal processing device, and outputting a signal for controlling the electric device based on the received data, the terminal processing device may include: Data storage means for storing data, data updating means for updating data in the data storage means when data transmission is normally performed, and output means for outputting a drive signal of the electric device based on the received data. Further, when a transmission error occurs, depending on the abnormal state, i) outputting a drive signal of the electric device based on data read from the data storage means, or ii) based on predetermined data predetermined have a selection means for selecting whether to output the drive signal of the electrical device,
The selection means, the fail-safe mode determination hand stage (Meaux
Corresponding to the selection mode of the decoder 331).
Is a table that stores the processing data required for the output of ii).
A data transmission system characterized by being constituted . 3. In a data transmission system for exchanging data between a data transmission processing device and a terminal processing device, and outputting a signal for controlling the electric device based on the received data, the terminal processing device may include: Storage means for storing data; means for updating data in the data storage means when data transmission is normally performed; and output means for outputting a drive signal for an electric device based on the received data. Further, the output means outputs a signal indicating a transmission abnormality to one of the terminals for outputting a drive signal of the electric device when a transmission abnormality occurs.
JP7292882A 1995-11-10 1995-11-10 Data transmission system Expired - Lifetime JP2764858B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7292882A JP2764858B2 (en) 1995-11-10 1995-11-10 Data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7292882A JP2764858B2 (en) 1995-11-10 1995-11-10 Data transmission system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP58173244A Division JP2500801B2 (en) 1983-09-21 1983-09-21 Terminal processing device

Publications (2)

Publication Number Publication Date
JPH08228197A JPH08228197A (en) 1996-09-03
JP2764858B2 true JP2764858B2 (en) 1998-06-11

Family

ID=17787605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7292882A Expired - Lifetime JP2764858B2 (en) 1995-11-10 1995-11-10 Data transmission system

Country Status (1)

Country Link
JP (1) JP2764858B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7158536B2 (en) * 2004-01-28 2007-01-02 Rambus Inc. Adaptive-allocation of I/O bandwidth using a configurable interconnect topology
DE102004054016A1 (en) * 2004-11-09 2006-05-11 Robert Bosch Gmbh Control unit for controlling and / or regulating at least one vehicle function
JP7411355B2 (en) * 2019-08-30 2024-01-11 マツダ株式会社 In-vehicle network system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4471456A (en) 1980-04-14 1984-09-11 Sperry Corporation Multifunction network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4471456A (en) 1980-04-14 1984-09-11 Sperry Corporation Multifunction network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
33rd IEEE VEHICULAR TECHNOLOGY CONFERENCE,25−27 May 1983,IEEE New York,USA,Hirayama T.et al"Fiber optic multiplexed wiring system usig a custom designed LSI"pp.35−40
IEE PROCEEDINGS Part.E COMPUTERS & DIGITAL TECHNIQUES VOl.129,No.6,November 1982,STEVENAGE GB,N.Preston et al "Multiprocessor inplementation of the logic function of a multiplexed wiring system for automotives" pp.223−228

Also Published As

Publication number Publication date
JPH08228197A (en) 1996-09-03

Similar Documents

Publication Publication Date Title
KR920007480B1 (en) Data transmitting system
US5896418A (en) Data transmission system having a communication control computer for controlling communication between a communication interface module and terminal devices
JP2000013414A (en) Intra-device supervisory and control system
US5224124A (en) Data transmission system
JP2500801B2 (en) Terminal processing device
JP2764858B2 (en) Data transmission system
EP1006024B1 (en) Communication system
US5765019A (en) Microcomputer with built-in serial input-output circuit and collision detection circuit responsive to common input-output line being occupied
JP2764857B2 (en) Circuit elements for communication processing
JP3716796B2 (en) Fault diagnosis device for vehicles
JP2502491B2 (en) Communication processing circuit
JP3940843B2 (en) Serial communication system and local terminal for serial communication
JPH0787482B2 (en) Data transmission system
JPH1127297A (en) Intensive wiring system
JPS61218243A (en) Aggregated wiring system
JPS5870657A (en) Multiple signal transmission system for car
JP2612433B2 (en) Automotive data transmission system
JP2534836B2 (en) Data transmission system
JPH07135686A (en) Multiplex data transmitter
JP3172120B2 (en) Vehicle electronic control unit test system
JPH0512892B2 (en)
JP2699969B2 (en) Vehicle communication device
JPH0534861B2 (en)
JP2612433C (en)
JPH0466437B2 (en)