JP2612433C - - Google Patents

Info

Publication number
JP2612433C
JP2612433C JP2612433C JP 2612433 C JP2612433 C JP 2612433C JP 2612433 C JP2612433 C JP 2612433C
Authority
JP
Japan
Prior art keywords
data
communication
register
address
signal
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
Other languages
Japanese (ja)
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
Publication date

Links

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】本発明は、多重データ伝送システムに使用す る通信処理回路に係り、特に自動車内集約配線システムに好適な自動車用データ
伝送システムに関する。 【0002】 【従来の技術】例えば自動車には各種のランプやモータなどの伝送品、それに自
動車制御用の各種のセンサやアクチュエータなどの電気装置が多数配置され、そ
の数は自動車のエレクトロニクス化に伴なって増加の一途をたどっている。 【0003】このため、従来のように、これら多数の電気装置に対してそれぞれ
独立に配線を行っていたのでは、配線が極めて複雑で、かつ大規模なものとなっ
てしまい、コストアッブや重量、スペースの増加、或いは相互干渉の発生など大
きな問題を生じる。 【0004】そこで、このような問題点を解決する方法の一つとして、少ない配
線で多数の信号の伝送が可能な多重伝送方式による配線の簡略化が提案されてお
り、その一例として本出願人による特願昭57−17535号の出願(特開昭5
8−70657号公報参照)がある。 【0005】図1に、このような多重伝送方式により自動車内集約配線システム
の一例を示す。 この図1のシステムは信号伝送路として光ファイバケーブルOFを用い、中央
制御装置CCU(以下、単にCCUという。なお、これはCentral Control Unit
の略)と複数の端末処理装置LCU(以下、単にLCUという。なお、これはLo
cal Control Unitの略)との間を光信号チャンネルで共通に結合したもので、光
ファイバケーブルOFの分岐点には光分岐コネクタOCが設けてある。 【0006】CCUは自動車のダッシュボードの近傍など適当な場所に設置され
、システム全体の制御を行なうようになっている。 LCUは各種の操作スイッチSW、メータMなどの表示器、ランプL、 センサSなど自動車内に多数設置してある電気装置の近傍に、所定の数だけ分散
して配置されている。 CCU及び各LCUが光ファイバケーブルOFと結合する部分には光信号と電
気信号を双方向に変換する光電変換モジュールO/Eが設けられている。 【0007】CCUはマイクロコンピュータを備え、シリアルデータによるデー
タ通信機能を持ち、これに対応して各LCUには通信処理回路CIM(以下、単
にCIMという。なお、これはCommunication Interface Adaptorの略)が設け
られ、CCUはLCUの一つを順次選択し、そのLCUとの間でのデータの授受
を行ない、これを繰り返えすことにより1チャンネルの光ファイバケーブルOF
を介しての多重伝送が可能になり、複雑で大規模な自動車内配線を簡略化するこ
とができる。 【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】また、このシステムでは、中央処理装置10をマイクロコンピュー
タと、シリアルデータによるデータ通信機能を有するCIM33 とで構成し、このC
IM33を介して上記した半二重方式によるデータ伝送動作を行なうようにし、
これによりマイクロコンピュータとしてデータ伝送機能をもたない汎用のものが
使用できるようになっている。 【0014】 【発明が解決しようとする課題】上記従来技術では、自動車用のデータ伝送シス
テムにおける中央処理装置及び端末処理装置の入出力部に位置する通信処理回路
の具体的な構成の開示について配慮がされているとは言えず、通信処理回路のL
SIモジュール化を図る点で問題が有った。本発明の目的は、LSIモジュール
のチップ化に必要な通信処理回路の具体的構成を開示し、自動車用のシステムと
して充分な小型化が図れるようにした自動車用データ伝送システムを提供するに
ある。 【0015】 【0016】 【0017】 【課題を解決するための手段】この目的を達成するため、本発明は、通信制御プ
ログラムに従って端末処理装置との間のデータ送受信を制御する通信制御用コン
ピュータと、この通信制御用コンピュータと接続され、前記端末処理装置からの
受信データと前記端末処理装置への送信データを一時格納するレジスタを有する
備えた第1の通信処理回路とを備えた中央処理装置と、前記第1の通信処理回路
からの受信データと、前記端末処理装置に接続された外部負荷の状態を示すデー
タを一時格納するレジスタと、該レジスタと前記外部負荷の間に接続されたI/
Oバッファとを備えた第2の通信処理回路と、前記第1の通信処理回路と第2の
通信処理回路とをデータ伝送可能に接続した通信線とで自動車用データ伝送シス
テムを構成した点を特徴とするものである。 【0018】 【発明の実施の形態】以下、本発明について、図示の実施例によって詳細に説明
する。図3は本発明の一実施例における基本的構成を示す概略機能ブロック図で
、シーケンシャルに全体の動作制御を行なうための制御回路101、伝送路20
から入力される受信信号RXDにより調歩同 期方式によりクロックの同期を取る同期回路102、外部から4ビットのデータ
として予じめ与えられるアドレスデータADDR0〜3により動作モードの選択と
、入力データのアドレス比較とを行なうアドレス比較回路103、入力データの
取込みと送出をシリアルに行なうためのシフトレジスタ104、データの入出力
をパラレルに行なうためのI/Oバッファ105、外付けのA/D40を制御し
アナログデータの伝送を可能にするためのA/D制御回路106、それに、全体
の動作に必要なクロックを発生するためのクロック発生器107などから構成さ
れ、LSI化されている状態を示す。 【0019】アドレス比較回路103に対するアドレスデータ入力は上述のよう
に4ビットで、この4ビットで与えるべきデータADDRを選択することにより
DIOモードと、ADモード、それにMPUモードの3種の動作モードのうちの
一つの動作モードで動作するように、内部機能の切換えが行なわれる。 【0020】まず、DIOモードとは、このCIMが図2で説明した端末処理装
置30〜31として使用されたときに必要とする機能を与える動作モードであり
、このためには、アドレスデータADDRを“1”ないし“D”のいずれかのア
ドレスに設定してやればよい。 【0021】次に、ADモードとは、図2における端末処理装置32のCIMと
して使用されたときに必要とする機能を与えることができる動作モードで、この
ためにはアドレスデータADDR“E”又は“F”のいずれかに設定してやれば
よい。 そして、MPUモードとは、図2におけるCIM33として使用されたときに
必要とする機能を与えるための動作モードで、このときにはアドレスデータAD
DAを“0”に設定するようにしてある。 以上のアドレス設定と動作モードの関係を図で表わせば図4のとおり になる。 【0022】従って、この実施例によれば、図2に示すような伝送システムを、
ただ一種類のCIMによって構成することができ、CIMの汎用化が可能になる
ため、その専用品化、LSI化による利点を充分に得ることができることになる
。 【0023】次に、これら動作モードのそれぞれにおける本発明の一実施例の動
作について順次説明する。 図3に示す本発明の一実施例によるCIMがアドレス“1”ないし“D”の中
のいずれかに設定されると、その機能ブロックは図5に示す状態になり、伝送路
20から入力された受信信号RXDは同期回路102に供給され、クロック発生器
107からのクロックの同期を取り、制御回路101に受信信号RXDのクロッ
ク成分に調歩同期したクロックが与えられ、これにより、制御回路101が制御
信号を発生し、シフトレジスタ104に受信信号のデータ部分をシリアルに読込
む。 【0024】一方、アドレス比較回路103には、アドレス“1”から“D”ま
でのうちから予めその端末処理装置に割り当てられたアドレスが与えられており
、このアドレスとシフトレジスタ104の所定のビット位置に読込まれたデータ
とがアドレス比較回路103によって比較され、両者が一致したときだけシフト
レジスタ104内のデータがI/Oバッファ105に転送され、外部機器に与え
られる。 【0025】また、制御回路101はクロックで歩進するカウンタを含み、シー
ケンシャルな制御信号を発生し、受信信号RXDによるデータをI/Oバッファ
105に与えたあと、それにひき続いて今度はI/Oバッファ105からシフト
レジスタ104にデータをパラレルに取り込み、外部機器から中央処理装置10
に伝送すべきデータをシフトレジスタ104の中にシリアルデータとして用意す
る。 【0026】そして、このデータをシフトレジスタ104からシリアルに読み出
し、送信信号TXDとして伝送路20に送出する。 【0027】このときには、受信信号RXDに付されていたアドレスがそのまま
送信信号TXDに付されて送出されるから、中央処理装置10は自らが送出した
アドレスと一致していることによりこの送信信号TXDの取り込みを行ない、これ
により半二重方式による1サイクル分のデータの授受が完了する。 【0028】こうして中央処理装置10は、次の端末処理装置に対するデータの
送出を行ない、これを繰り返すことにより複数の各端末処理装置30〜32との
間でのデータの授受が周期的に行なわれ、多重伝送が可能になる。 【0029】次に図6は、図5に示したDIOモードにあるCIMの一実施例を
さらに詳細に示すブロック図で、図5と同一、もしくは同等の部分には同じ符号
を付してあり、この図6において、301は受信信号RXDに調歩同期したクロ
ックを発生させるための同期回路、302は2相のクロックφSとφMを発生する
カウンタ、303はシーケンシャル制御用のカウンタ、304はカウンタ303
の出力から種々の制御信号を作り出すシーケンスデコーダ、305は異常検出器
、306はI/Oバッファ105の入出力切換選択用のアドレスデコーダ、30
7はアドレス比較用の4ビットのコンパレータ、308はエラー検出回路、310
は2個のアンドゲートと1個のノアゲートからなる複合ゲート、311はエラー
検出用のエクスクルーシブオアゲート、312はデータ送出用のアンドゲート、
313,314はトライステートバッファである。なお、シフトレジスタ104
は25ビット(24ビット+1ビット)で、I/Oバッファ105は14ポート
(14ビット)のものである。 【0030】まずDIOモードに選択された場合には、A/D制御回路 106は動作せず、このときのシフトレジスタ104のデータ内容は図7に示す
ようになり、No.0からNo.5までの6ビット分は使用せず、No.6からNo.19ま
での14ビットがI/Oバッファ105のデータDIOに割当てられる。そして
No.20からNo.23までの4ビットがアドレスデータADDRに割当てられ、No
.24 はスタートビットに割当てられている。なお、DIOデータに割当てら
れているビット数が14となっているのは、I/Oバッファ105が14ビット
のものとなっているからである。また、このため、この実施例によるCIMでは
、I/Oバッファ105に接続可能な外部負荷の最大数は14となっている。 【0031】この実施例によるデータ伝送の方式は、調歩同期、双方向、反転二
連送方式と呼ばれるもので、ディジタルデータをNRZ(nonreturn to zero)法
により伝送するようになっており、その伝送波形は図8に示すようになっている
。 【0032】すなわち、CCU側のCIMからLCU側のCIMにデータを伝送
するフレームを受信フレーム、反対にLCU側からCCU側に伝送するフレーム
を送信フレームとすれば、受信フレームと送信フレームが共に74ビットで、従
って1フレームが148ビットとなっている。 【0033】そして、受信フレームと送信フレームとは、共に同じフレーム構成
となっており、最初に25ビットの“0”があり、そのあとに調歩同期のための
1ビットの“1”からなるスタートビットが設けられ、それに続いて24ビット
の受信データRXD又は送信データTXDがNRZ信号形式で伝送され、さらに
これらのデータの反転データRXD(バー上付き)又はTXD(バー上付き)が伝送
されるようになっている。なお、この反転データRXD(バー上付き)又はTXD
(バー上付き)を伝送しているのは、伝送エラーチェックのためである。 【0034】既に説明したように、この実施例では、半二重方式により 多重伝送が行なわれるから、受信フレームのデータRXDの先頭の4ビットには
、CCUがそのとき呼び掛けを行なう相手となるLCUのアドレスデータADD
Rが図7に示すように付され、これに応答してそのLCUから送出される送信フ
レームのデータTXDの先頭4ビットには同じアドレスデータADDRが付され
て伝送される。 【0035】なお、LCU側から送信フレームが伝送されるのは、CCU側で呼び
掛けたLCUに限られるから、送信データTXDにアドレスが付加されていなく
てもCCU側ではそのデータがいずれのLCUからのものであるかは直ちに判断
できる。従って、送信フレームのデータTXDには必ずしもアドレスを付す必要は
なく、データTXDの先頭4ビットを(0000)などLCUのいずれのアドレ
スとも一致しないデータとしてもよい。 【0036】ここで、図6に戻り、CIMのアドレスについて説明する。既に説
明したように、この実施例では、LCU側のCIMにはそれぞれ異なった4ビッ
トのアドレスが割当ててあり、このアドレスをもとにして半二重方式によるデー
タの多重伝送が行なわれるようになっている。 【0037】そして、このアドレスをそれぞれのCIMに割当てる働きをする入
力がコンパレータ307に接続されている4本の入力20〜23であり、これらの
入力に与えるべきデータADDR0〜ADDR1により当該CIMのアドレスが指
定される。 【0038】例えば、そのCIMのアドレスを“10”に指定するためには、ア
ドレスデータADDR0=0、ADDR1=1、ADDR2=0、ADDR3=1、
とし、入力20〜23に(1010)が入力されるようにすればよい。なお、この
実施例では、データ“0”は接地電位、データ“1“は電源電圧Vccによって表
わされているから、アドレス“10”に対しては入力20,22を接地し、入力2
1,23を電源に接続すること になる。 【0039】ところで、この実施例では、アドレス入力20〜23がアドレスデコ
ーダ306にも入力され、その出力によりI/Oバッファ105の方向性が制御さ
れるようになっている。この結果、アドレスを指定すると、I/Oバッファ10
5の14本の端子のうちのいずれかがデータ出力ポートとなるのかが決定される
。 【0040】そして、この実施例では、アドレスがそのまま出力ポート数に対応
するようになっている。 従って、いま、アドレスを“10”と定めれば、I/Oバッファの14本の端
子のうち10本が出力ポートとなり、残りの4本が入力ポートとなるように制御
される。 【0041】また、図6では省略してあるが、このアドレスデコーダ306の出
力は制御回路101のシーケンスデコーダ304にも与えられ、これにより図4
で既に説明したように、このCIMの動作モードが切換えられるようになってい
る。すなわち、この実施例では、アドレスを“0”に設定したCIMはMPUモ
ードで、アドレスを“1”から“D”までの間に設定したCTMはDIOモード
で、そしてアドレスを“E”,“F”のいずれかに設定したCIMはADモード
でそれぞれ動作するようにされる。 【0042】次に、制御回路101と同期回路102の機能について説明する。
この実施例では、図8に関連して既に説明したように、調歩同期方式が採用され
ており、このため、受信フレーム、送信フレーム共にデータ伝送に際して、その
介し前に必ず25ビットの“0”が挿入され、その後で1ビットのスタートビッ
トとして“1”データが挿入されている(図8)。 【0043】そこで同期回路301は受信フレームの最初に存在する 25ビットの“0“に続くスタートビットの立上りを検出し、内部クロックのビ
ット同期を取る。従って、次の受信フレームが現われるまでは、このときのタイ
ミングにビット同期した内部クロックにより動作が遂行されてゆくことになる。
カウンタ302は同期回路302で同期が取られた内部クロックから2相のクロ
ックφSとφMを作り出す。これによりクロックφSとφMはその後入力されてくる
受信データRXDに位相同期したものとなる。 【0044】シーケンスカウンタ303は同期回路302からスタートビットの
立上り検出タイミングを表わす信号を受け、特定のカウント値、例えばカウント
0の状態にセットされ、その後、クロックφS又はφMによってカウントされる。
従って、そのカウント出力によりCIM全体の制御手順を定めることができ、カ
ウント値をみることにより、任意のタイミングにおけるCIMの動作がどのステ
ップにあるのかを知ることができる。 【0045】そこで、このカウンタ303のカウント出力をシーケンスデコーダ
304に供給し、このCIMの動作に必要な制御信号、例えば、RXMODO,
TXMODE,READ,SHIFTなど内部で必要とする全ての制御信号をシ
ーケンスデコーダ304で発生させるようにしている。つまり、この実施例は、
クロックφS,φMによるシーケンス制御方式となっているものであり、従って、
カウンタ303の出力をデコードしてやれば、必要な制御が全て行なえることに
なるのである。 【0046】次に、伝送されて来るデータRXDがそのCIM向けのデータであ
るか否か、つまりCCUからの受信フレームの伝送による呼び掛けが自らに対す
るものであるか否かの判定動作について説明する。既に説明したように、コンパ
レータ307の一方の入力には、入力20〜23からのアドレスデータが与えられ
ており、他方の入力には、シフト レジスタ104のQ20ビットからQ23ビットまでのデータが与えられるようにな
っている。 【0047】そして、このコンパレータ307は、両方の入力データが一致した
ときだけ、一致信号MYADDRを出力する。そこで、シフトレジスタ104に
受信データRXDが入力され、そのQ20ビットからQ23ビットまでの部分にデー
タRXDの先頭に付されているアドレスデータ(図7参照)が格納されたタイミン
グでコンパレータ307の出力信号MYADDRを調べ、そのときにこの信号M
YADDRが“1”になっていたらそのデータRXDは自分宛のもので、CCU
からの呼び掛けは自分に対するものであることが判る。 【0048】このため、エラー検出回路308は制御信号COMPMODEを供給し、上
記した所定のタイミングで信号MYADDRを取り込み、それが“0”になって
いたときには出力TNITIALを発生させ、これによりシーケンスカウンタ3
03をカウント0にセットし、CIM全体の動作を元に戻して次のデータ伝送が
入力されるのに備える。 【0049】一方、信号MYADDRが“1”になっていたときには、エラー検
出回路308によるINITTALの発生がないから、そのままCIMの動作は
シーケンスカウンタ303のそのときのカウント値にしたがってそのまま続行さ
れる。 【0050】次に、伝送エラー検出動作について説明する。この実施例では、既
に図8で説明したように反転二連送方式によるデータ伝送が採用されており、こ
れにより伝送エラーの検出が行なえるようになっている。 【0051】そして、このため、シフトレジスタ104の最初のQ0ビットと最
後のQ24ビットからエクスタルーシプオアゲート311にデータが与えられ、こ
のゲート311の出力が信号ERROR(バー上付き) としてエラー検出回路308に与えられるようになっている。 【0052】シーケンスデコーダ304は、スタートビットに続く受信信号RX
DとRXD(バー上付き)(図8)の伝送期間中、制御信号RXMODEを出力し
て複合ゲート310の下側のゲートを開き、これにより伝送路20からのデータ
をシリアル信号SIとしてシフトレジスタ104に入力する。このとき複合ゲー
ト310にはノアゲートが含まれているため、伝送路20から供給されてくるデ
ータは反転されてシフトレジスタ104に入力される。 【0053】そこで、受信フレーム(図8)のスタートビットに続く24ビット
分のデータがシフトレジスタ104に入力された時点では、このシフトレジスタ
104のQ0ビットからQ23ビットまでの部分には受信信号RXDの反転データ
RXD(バー上付き)が書込まれることになる。 【0054】次に、図8から明らかなように、24ビットの受信信号RXDが伝
送されたあと、それにひき続いて24ビットの反転信号RXD(バー上付き)が伝送
されてくると、それが複合ゲート310で反転されてデータRXDとなり、シリ
アル信号SIとしてシフトレジスタ104に入力され始める。 【0055】この結果、シフトレジスタ104のQ0に反転信号RXD(バー上付
き)の先頭ビットが反転されて入力されたタイミングでは、その前に書込まれて
いた受信信号RXDの先頭ビットの反転データがシフトレジスタ104のQ24
ットに移され、反転信号RXDの2番目のビットのデータがQ0に書込まれたタ
イミングでは受信信号RXDの2番目のビットのデータがQ24のビットに移され
ることになり、結局、反転信号RXDがシフトレジスタ104に1ビットずつシ
リアルに書込まれているときの各ビットタイミングでは、シフトレジスタ104
のQ24ビットとQ0ビットには受信信号RXDと反転信号RXD(バー上付き)の 同じビットのデータが常に対応して書込まれることになる。 【0056】ところで、上記したように、エクスクルーシブオアゲート311の
2つの入力には、シフトレジスタ104のQ0ビットとQ24ビットのデータが入
力されている。従って、受信信号RXDと反転信号RXD(バー上付き)の伝送中
にエラーが発生しなかったとすれば、反転信号RXD(バー上付き)の伝送期間中
、エクスクルーシブオアゲート311の出力は常に“1”になる筈である。伺故
ならば、受信信号RXDとその反転信号RXD(バー上付き)の対応する各ビットで
は必ず“1”と“0”が反転している筈であり、この結果、ゲート311の入力
は必ず不一致を示し、そうならないのは伝送にエラーがあったときだけとなるか
らである。 【0057】そこで、エラー検出回路308は反転信号RXD(バー上付き)が伝
送されている24ビットの期間中、信号ERROR(バー上付き)を監視し、それ
が“0”レベルになった時点で信号INITIALを発生するようにすれば、エ
ラー検出動作が得られる。 【0058】なお、このようなデータ伝送システムにおける伝送エラーの処理方
式としては、伝送エラーを検出したらそれを修復して正しいデータを得るように
するものも知られているが、この実施例では、伝送エラーが検出されたらその時
点でそのフレームのデータ受信動作をキャンセルし、次のフレームのデータ受信
に備える方式となっており、これにより構成の簡略化を図っている。 【0059】次に、この図6の実施例のDIOモードにおけるデータ伝送の全体
的な動作を図9のタイミングチャートによって説明する。φM,φSはカウンタ3
02かに出力される二相のクロックで、同期回路301内に含まれているクロック
発振器による内部クロックにもとづいて発生されている。 【0060】一方、RESET(バー上付き)は、外部からこのCIMに供給され
る信号で、マイクロコンピュータなどのリセット信号と同じであり、図2におけ
るシステム内の全てのCTMごとに供給されるようになっており、電源投入時な
ど必要なときに外部のリセット回路から供給され、伝送システム全体のイニシャ
ライズを行なう。 【0061】イニシャライズが終るとシーケンスカウンタ303はカウント値が
0に設定され、そこからクロックφMにより歩進してゆく。そしてカウント値が
25になるとIDLE信号とRXENA(バー上付き)信号が発生し、CIMはア
イドル状態になってシーケンスカウンタ303のカウント値によるシーケンシャル
な制御は停止され、トライステートバッファ313が開いて信号受信可能状態と
なる。 【0062】なお、このとき、イニシャライズ後、シーケンスカウンタ303の
カウント値が25になるまでは信号受信可能な状態にしないようにしているのは
、同期回路301による調歩同期のためであり、受信信号RXDが24ビットな
ので最小限25ビットの“0”期間を与える必要があるためである。 【0063】こうしてアイドル状態に入るとシーケンスカウンタ302はクロッ
クφS,φMのカウントにより歩進を続けるが、シーケンスデコーダ304は制御
信号IDLEとINITIALを発生したままにとどまり、受信信号が入力され
るのをただ待っている状熊となる。なお、このために図8に示すように各受信フ
レームと送信フレームの先頭には25ビットの“0”が付加してあるのである。 【0064】こうしてアイドル状態に入り、その中でいま、時刻t0で受信信号
RXDが入力されたとする。そうすると、この信号RXDの先頭には1ビットの
スタートビットが付されている。そこで、このスタートビットを同期回路301
が検出し、内部クロックのビット同期を取る。 従って、これ以後、1フレーム分の伝送動作が完了するまでのデータRXD,R
XD(バー上付き)とクロックφMとφSとの同期は内部クロックの安定度によって
保たれ、調歩同期機能が得られることになる。 【0065】スタートビットが検出されるとシーケンスカウンタ303はカウン
ト出力0(以下、このカウンタ303の出力データはSを付し、例えば、この場
合にはS0で表わす)に設定され、これによりシーケンスデコーダ304は制御
信号IDLEを止め、制御信号RXMODEを発生する。また、これと並行して
シフトレジスタ104にはシフトパルスSHIFTがクロックφMに同期して供
給される。 【0066】この結果、スタートビットに続く48ビットの受信信号RXDと反
転信号RXD(バー上付き)(図8)が伝送路20から複合ゲート310を通って
シリアルデータとしてシフトレジスタ104に順次1ビットずつシフトしながら
書込まれてゆく。 【0067】このとき、最初の24ビットの受信信号RXDは、複合ゲート31
0によって反転されたデータRXD(バー上付き)としてシフトレジスタ104に
順次シリアルに書込まれるので、スタートビットに続く24ビットの期間、つま
りシーケンスカウンタ303がS1からS24に達した時点では、シフトレジスタ
105のQ0ビットからQ23までのビットに受信信号RXDが反転されたデータ
RXD(バー上付き)が書込まれることになる。 【0068】ここで次のS25のクロックφMの立上りで制御信号COMPMO
DE(バー上付き)が出力され、エラー検出回路308が機能する。そしてこの状
態で続いて反転信号RXD(バー上付き)が入力され始め、この結果、今度は反転
信号RXD(バー上付き)が反転されたデータRXDがシフトレジスタ105のQ
0ビットからシリアルに書込まれてゆく。 【0069】これによりS1からS24でシフトレジスタ104に書込まれたデ
ータRXD(バー上付き)はその先頭のビットからシフトレジスタ104のQ24
ット位置を通り、シーケンスカウンタ303がS25からS48になるまでの間
に順次、1ビットずつオーバーフローされてゆく。 【0070】一方、これと並行してシフトレジスタ104のQ24ビット位置を通
って反転信号RXD(バー上付き)によるデータRXDがその先頭ビットから順次
、シリアルに書込まれてゆき、この間にエクスクルーシブオアゲート311とエ
ラー検出回路308による伝送エラーの検出が、既に説明したようにして行なわ
れてゆく。 【0071】従って、シーケンスカウンタ303がS48になった時点では、シ
フトレジスタ104のQ0ビットからQ23ビットまでには、受信信号RXDと同
じデータRXDがそのまま書込まれた状熊になる。 【0072】そこで、このS48のタイミングでコンパレータ307の出力信号
MYADDRを調べることにより前述したアドレスの確認が行なわれ、いま受信
したデータRXDが自分宛のものであるか否か、つまり、このときのCCUから
の呼び掛けが自分宛のものであるか否かの判断が行なわれる。 【0073】なお、シーケンスカウンタ303がS25からS48の間にある期
間中に伝送エラーが検出され、或いはアドレスの不一致が検出されるとエラー検
出回路308はS48になった時点で制御信号INITIALを発生し、この時
点でシーケンスカウンタ303はS0に設定され、アイドル前25ビットの状態
に戻り、この受信フレームに対する受信動作は全てキャンセルされ、次の信号の
入力に備える。 【0074】さて、シーケンスカウンタ303がS25からS48にある間に伝
送エラーが検出されず、かつアドレスの不一致も検出されなか ったとき、つまりS48になった時点でエラー検出回路308がINITIAL
信号を発生しなかったときには、このS48になった時点でシーケンスデコーダ
304が制御信号WRITESTBを発生する。 【0075】なお、この結果、S48の時点ではINITIAL信号とWRIT
ESTB信号のいずれか一方が発生され、伝送エラー及びアドレス不一致のいず
れも生じなかったときには前者が、そして伝送エラー及びアドレス不一致のいず
れか一方でも発生したときには後者がそれぞれ出力されることになる。 【0076】さて、S48の時点で制御信号WRTTESTBが出力されると、
そのときのシフトレジスタ104のデータがパラレルにI/Oバッファ105に
書込まれ、この結果、受信したデータRXDによってCCUからもたされたデー
タがI/Oバッファ105の出力ポートから外部負荷51〜56のいずれかに供
給される。 【0077】なお、このときには、DIOモードで動作しているのであるから、
図7で説明したようにQ6ビットからQ19ビットまでの最大14ビットがデータ
RXDとして伝送可能であり、かつ、そのうちの何ビットがI/Oバッファ10
5の出力ポートとなっているかはアドレスによって決められていることは既に説
明したとおりである。 【0078】こうしてS48に達すると受信フレームの処理は全て終り、次のS
49から送信フレームの処理に入る(図8)。まず、S49からS72までは何
の処理も行なわない。これはCCU側にあるCIMの調歩同期のためで、上記し
た受信フレームの処理におけるIDLEの前に設定した期間での動作と同じ目的
のためのものである。 【0079】S73に入るとシーケンスデコーダ304から制御信号PSが出力
され、これによりシフトレジスタ104はパラレルデータの読込み動作となり、
I/Oバッファ105の入力ポートに外部負荷51 〜56のいずれかから与えられているデータを並列に入力する。 【0080】このとき読込まれるデータのビット数は、14ビットのI/Oバッ
ファ105のポートのうち、受信フレームの処理で出力ポートとして使われたビ
ットを引いた残りのビット数となる。例えば、前述のように、このCIMのアド
レスを10に設定したときには、出力ポートの数は10となるから、こりときに
は、入力ポートは4ビットとなる。 【0081】シフトレジスタ104に対するパラレルデータの書込みには、信号
PSと共にシフトクロックSHIFTを1ビット分必要とするため、S73のク
ロックφSにより信号SPを立上げたあと、S74のクロックφSに同期したシフ
トパルスSHIFTを制御信号TXMODEの立上り前に供給する。 【0082】また、このとき、図8から明らかなように、送信データTXDの前
にスタートビットを付加し、さらにデータTXDの先頭4ビットにはアドレスを
付加しなければならない。このため、図6では省略してあるが、信号PSが発生
している期間中だけシフトレジスタ104のQ24ビットにはデータ“1”を表わ
す信号が、そしてQ20ビットからQ23ビットの部分には入力20〜23からアドレ
スデータがそれぞれ供給されるようになっいる。 【0083】こうしてS49からS73までのDUMMY状態により調歩同期に
必要な25ビット分のデータ“0”送出期間が設定されたあと、S74に入ると
制御信号TXMODEが立上り、これによりTX(送信)状熊になる。 【0084】この信号TXMODEの発生により複合ゲート310の上側のアン
ドゲートが能動化され、さらにアンドゲート312が能動化される。これにより
シフトレジスタ104のQ24ビットのデータ、つまりスタートビットとなるデー
タ“1”がアンドゲート312を通って伝送 路20に送り出される。 【0085】そして、それに続くS75以降のクロックφMに同期して発生する
シフトクロックSHIFTによりシフトレジスタ104の内容は1ビットずつ後
段にシフトされ、Q24ビットからアンドゲート312を通って伝送路20に送り
出され、これにより送信フレーム(図8)のスタートビットを含む送信信号TX
Dの伝送が行なわれる。 【0086】一方、このようにシフトレジスタ104からのデータ読出しと並行
して、そのQ23ビットのセルから読出されたデータは複合ゲート310を通って
反転され、シフトレジスタ104のシリアル入力に供給されている。この結果、
S75以降、シフトレジスタ104のQ0ビットからQ23ビットまでに書込まれ
ていた送信データTXDは、シフトクロックSHIFTによって1ビットずつ伝
送路20に送り出されると共に、反転されてシリアルデータSIとしてシフトレ
ジスタ104のQ0ビットから順次書込まれてゆくことになる。 【0087】従って、制御信号PSが発生している期間中にシフトレジスタ10
4のQ0ビットからQ23ビットのセルに書込まれた送信データTXDが全て読出
し完了した時点では、このQ0ビットからQ23ビットのセルにはそれまでの送信
データTXDに代って、反転データTXD(バー上付き)が格納されていることに
なる。 【0088】そこで、この送信データTXDの読出しが完了した時点以降は、そ
れにひき続いて今度はシフトレジスタ104から反転データTXD(バー上付き)
の読出しが開始し、図6のように反転データTXD(バー上付き)が送信データT
XDに続いて伝送路20に送出されることになる。 【0089】こうしてS122に到ると、シフトレジスタ104のQ23ビットか
らQ0ビットまでの反転データは前部読出し完了するので制御 信号TXMODEは立下り、シフトクロックSHIFTの供給も停止されて送信
状熊を終る。そして、S122に続く継ぐのクロックφMにより制御信号INI
TIDLが発生し、シーケンスカウンタ303はS0に設定され、CIMはアイ
ドル(IDLE)以前の信号受信準備状態に戻る。 【0090】従って、この実施例によれば、調歩同期、双方向、反転二連送方式
による半二重方式の多重通信をCCUとCLUとの間で確実に行なうために、L
CU側で必要とするDIOモードでの動作機能を有するCIMを得ることができ
る。 【0091】次に、この実施例によるCIMのADモードにおける動作について
説明する。前述したように、CIMを介してCCUとデータの授受を行なうべき
電気装置としては各種のセンサなどアナログ信号を出力する外部負荷57,58
(図2)があり、そのため、本発明の実施例においては、A/D制御回路106
を含み、外付けのA/D40を制御する機能をも有するものとなっている。そし
て、このときのCIMの動作モードがADモードである。 【0092】そして、これも既に説明したように、この実施例では入力20〜23
に与えるべきアドレスデータによって動作モードの設定が行なわれるようになっ
ており、ADモードに対応するアドレスデータは、図4に示すように“E”と“
F”となっている。 【0093】そこで、この実施例によるCIMが、アドレス“E”又は“F”に
設定されると、その機能ブロック状態は図10に示すようになる。そして、この
ように設定された場合のシフトレジスタ104に格納されるデータの内容は図7
に示すようになり、No.0からNo.7までの8ビットがA/D40を介して外部負
荷57,58などから取込んだADデータ格納用で、No.8,No.9の2ビットが
ADチャンネルデータ格納 用であり、これによりDIOデータ用としてはNo.10からNo.19の10ビット
となっている。なお、その他はDIOモードのときと同じである。 【0094】また、このときのADチャンネルデータとは、マルチチャンネルの
ADを使用した場合のチャンネル指定用のデータであり、この実施例では、A/
D40として4チャンネルのものを用いているので、2ビットを割当てているの
である。 【0095】次に、図11は図10の実施例をさらに詳細に示したブロック図で
、この図11において、320はシフトレジスタ、312はレジスタ、322は
ゲート、323はA/D制御用のカウンタ、324はA/D制御用信号発生回路
、325はA/Dチャンネル選択用のカウンタである。なお、その他は図6の場
合で説明したところと同じである。 【0096】シフトレジスタ320は8ビットのもので、外付けのA/D40か
らシリアルで取込んでディジタルデータ(外部負荷57,58などから与えられ
たアナログデータをA/D変換したもの)を格納してパラレル読出しを可能にす
ると共に、A/D40のチャンネルを指定するためのカウンタ325から与えら
れる2ビットのチャンネル選択データをパラレルに受入れ、それをシリアルに読
出してA/D40に供給する働きをする。 【0097】レジスタ321は32ビットのもので、A/D40が8ビットで4
チャンネルのものなので、それに合わせて、8ビット4チャンネルのレジスタと
して用いられ、A/D40から8ビットで取込まれたデータを、各チャンネルご
とに収容する。 【0098】ゲート322も、レジスタ321に対応して32ビット(8ビット
、4チャンネル)となっており、データ伝送用のシフトレジスタ104のQ8ビッ
トとQ9ビットのセルから読出したADチャンネルデ ータ(図7)によって制御され、レジスタ321のチャンネルの1つを選択し、
その8ビットのデータをシフトレジスタQ0ビットからQ7ビットのセルに、AD
データ(図7)として書込む働きをする。 【0099】カウンタ323はクロックφMのカウントにより歩進し、A/D制
御回路106全体の動作をシーケンシャル、しかもサイクリックに制御する働き
をする。A/D制御用信号発生回路324はカウンタ323の出力をデコードす
るデコーダと論理回路を含み、A/D制御回路106全体の動作に必要な各種の
制御信号を発生する働きをする。 【0100】次に、このA/D制御回路106全体の動作について説明する。こ
の実施例では、カウンタ323のカウント出力のそれぞれに対応してシーケンシ
ャルに制御が進み、そのステップ数は27で、カウント出力0(これをS0とい
う)からカウント出力26(これをS6という)までで1サイクルの制御が完了
し、A/D40の1チャンネル分のデータがレジスタ321に取込まれる。 【0101】まず、1サイクルの制御が開始すると、信号INCによりチャンネ
ル選択用のカウンタ325がインクリメントされ、これによりカウンタ325の
出力データは、1サイクルごとに順次、(0,0)→(0,1)→(1,0)→
(1,1)→(0,0)と変化する。 【0102】このカウンタ325の出力データはシフトレジスタ320は先頭2
ビット位置にパラレルに書込まれ、ついでシリアルデータADSIとして読出されて
A/D40に供給される。また、これと並行して、カウンタ325の出力データ
はデコーダ(図示してない)を介してレジスタ32にも供給され、レジスタ32
1の対応するチャンネルの8ビットを選択する。 【0103】続いて、A/D40はシリアルデータADSIとして入力したチャ
ンネル選択データに応じてそれに対応したアナログ入力チャン ネルを選択し、そのアナログデータをディジタルデータに変換してから8ビット
のシリアルデータADSOとしてシフトレジスタ320のシリアル入力に供給し
、このシフトレジスタ320に格納する。 【0104】その後、このシフトレジスタ320に格納された8ビットのディジ
タル変換されたデータADは、所定のタイミングでパラレルに読出され、カウン
タ325の出力データによって予め選択されているレジスタ321の所定のチャ
ンネルの8ビットに移され、1サイタルの制御動作を終了する。 【0105】こうして、例えばカウンタ325の出力データが(0,0)となっ
ていたとすれば、A/D40のチャンネル0のアナログデータがディジタル化さ
れ、レジスタ321のチャンネル0の8ビットに格納されたあと、カウンタ32
3はS0にリセットされ、次のサイクルの動作に進み、カウンタ325はインタ
リメントされてその出力データは(0,1)となり、今度はチャンネル1のアナ
ログデータがディジタル化されてレジスタ321のチャンネル1の8ビットに収
容される。 【0106】従って、この実施例によれば、A/D制御回路106によるA/D
40からのデータ取込動作が、シーケンスカウンタ303とシーケンスデコーダ
304によるデータ伝送処理とタイミング的に独立して行なわれ、レジスタ32
1の各チャンネルのデータは4サイクルのAD制御動作に1回の割合でリフレッ
シュされ、レジスタ321にはA/D40の4つのチャンネルに入力されている
アナログデータが、それぞれのチャンネルごとに8ビットのディジタルデータと
して常に用意されていることになる。 【0107】そこで、いま、伝送路から受信信号RXDが入力され、それに付さ
れているアドレスデータがこのCIMに対するものであったとする。なお、この
ときのアドレスデータは、既に説明したように、“E” 又は“F”である。 【0108】そうすると、受信フレームの入力が終った時点(図9のS48)で
シフトレジスタ104に書込まれるデータリフォーマットは図7のADモードと
なっているため、このシフトレジスタ104のQ8ビットとQ9ビットには2ビッ
トからなるADチャンネルデータが格納されている。そこで、このADチャンネ
ルデータはS48で信号WRITESTBが発生した時点で読出され、これによ
りゲート322の4つのチャンネルのうちの一つが選択される。 【0109】この結果、S73(図9)で信号PSとSHIFTが発生した時点
で、レジスタ321の4つのチャンネルのうち、シフトレジスタ104のQ8
9の2つのビットで選ばれたチャンネルのADデータだけが読出され、それが
シフトレジスタ104のQ0ビットからQ7ビットまでの8ビット部分に書込まれ
る。そして、これがS74以降の送信状態で送信信号TXDに含まれ、CCUに
伝送されることになる。 【0110】ところで、この実施例では、上記したように受信信号RXDの受信処
理と、それに続く送信信号TXDの送信処理とは無関係に、常にレジスタ321
の中にはADデータが用意されている。従って、この実施例では、どのようなタ
イミングで、自分宛の受信信号RXDが現われても、直ちにADデータによる送
信信号TXDの伝送を行なうことができ、A/D40の動作により伝送処理が影
響を受けることがなく、A/D変換動作に必要な時間のために伝送速度が低下す
るなどの虞れがない。 【0111】なお、この実施例では、CIMをLSI化するに際してA/D40
を外付けとし、CIMの汎用化に際してのコストダウンを図るようになっている
。つまり、図2で説明したように、この実施例では、モードの設定により一種類
のCIMをLCU30〜31のCIMとして も、LCU32のCIMとしても、或いはCCU10のCIM33としても使用
できるようにしている。 【0112】しかして、このとき、A/Dを内蔵させてしまうとCIM30,31,
33として使用したときに無駄なものとなり、しかも、一般に自動車の集約配線
システムに適用した場合には、CIM32として使用される個数の方が、他のC
IM30,31,33として使用される個数より少ないため、CIMの全部にA
/Dを内蔵させることによるメリットがあまりない。そのため、A/Dを外付け
としているのである。 【0113】しかして、このA/Dの外付けのため、図11から明らかなように
、外付けのA/D40に対して4本の接続端子が必要になり、LSI化した際に
端子ピン数の増加をもたらす虞れがある。そこで、本発明の一実施例では、CI
MがADモードに設定されたときには、I/Oバッファ105の14のポートの
うちの4本がA/D40に対する接続端子として切換えられるようにしてある。 【0114】すなわち、本発明の実施例では、I/Oバッファ105が14ポー
トとなっており、これらは図7から明らかなように、CIMがDIOモードに設
定されたときには全部が入出力ポートとして使用される可能性があるが、ADモ
ードのときには最大でも10ポートしか使用されず、図11に示すNo.11〜No.
14の4ポートはDIOデータの入出力には使用されないで余っている。 【0115】そこで、この余った4ポートをADモードで切換え、A/D40に
対する端子ピンとして使用すれば、A/Dを外付けにしても端子ピン数の増加は
なく、LSI化に際して汎用性が増し、コストダウンが可能になる。 【0116】次に、この実施例によるCIMのMPUモードにおける動作につい
て説明する。図4から明らかなように、この実施例によるCIM をMPUモードに切換設定するためには、アドレスADDR0〜ADDR3によるアド
レス設定を“0”、つまり入力20〜23を全て接地電位に保ち、(0000)と
してやればよい。 【0117】このMPUモードとは図2に示したCIM33として使用されたと
きに必要な機能を与えるためのモードで、DIOモード、及びADモードで使用
された場合と異なり、CCU10のマイコンかにデータが与えられると、それを
所定のLCUのCIM30〜31のいずれかに対して送信し、それに対応して返
送されてくるデータを受信したら、そのデータをマイコンに転送させるという伝
送インターフェース動作を行なうものである。 【0118】ところで、これまでの説明では、図8に関連して説明したように、
LCU側のCIMからみた説明を主としていたため、CCU側のCIMからLC
U側のCIMにデータを伝送するフレームを受信フレーム、反対にLCU側から
CCU側に伝送するフレームを送信フレームとしてきたが、以後はそれぞれのC
IMからみてデータを送出するフレームを送信フレーム、自らがデータが受け入
れるときのフレームを受信フレームとして説明する。 【0119】従って、以後は、或るCIM、例えばCIM33での送信フレーム
は他のCIM、例えばCIM30では受信フレームとなり、他方、CIM30で
の送信フレームはCIM33では受信フレームとなる。 【0120】さて、図12は本発明の実施例によるCIMにアドレス“0”が設
定され、CPUモードで動作するように制御されたときの大まかな機能ブロック
図で、図2におけるCIM33の状態を表わしている。 【0121】なお、既に説明したとおり、この実施例ではアドレスの設定により
同一構成のCIMが3種のモード、つまり、CPUモード、 DIOモード、ADモードのいずれの状態での機能をもはたすことができるもの
であり、従って、この図12の状熊はCPUモードでの機能ブロックを表わすも
ので、この実施例によるCIMの構成が図3の場合と異なったものとなることを
表わすものではない。 【0122】この図12から明らかなように、CPUモードではI/Oバッファ
105(図3)とA/D40は機能を止められ、マイコンとの間は14ビットの
データバスで結ばれる。なお、このときの端子ピンはI/Oバッファ105の入
出力ポートと共通に用いられ、端子ピンの増減は全く生じないようになっている
のはいうまでもない。そして、この14ビット(14本)の入出力のうち8ビッ
トがデータ用であり、残り6ビットが制御信号用となっている。 【0123】さて、このCPUモードにおいては、シフトレジスタ104のデータ
内容が図7に示すように、Q0からQ23までの24ビットが全てMPUデータと
なっており、マイコンは8ビットのデータバスによって、このシフトレジスタ1
04にアクセスするようになっている。 【0124】一方、制御回路101はマイコンからの制御信号を受け、シフトレ
ジスタ104のQ0〜Q23の全てのビットにマイコンからのデータが格納される
と同時に送信動作に入り、このデータが格納され終った時刻txから、図13に
示すように送信フレームの伝送を開始する。 【0125】こうして送信フレームがCIM33から伝送されると、それに応じ
てLCU側のCIM30〜32の一つが応答し、ひき続きそのCIMが送信を行
なうから、時刻txから1フレーム(148ビット)の伝送時間が経過した時刻
xになると、シフトレジスタ104の中にはCIM33から呼び掛けを行なっ
たCIM(CIM30〜32のうちの一つ)から伝送されたデータが格納され終
ることになる。 【0126】そごて、CIM33の制御回路101は、この時点tyに おいて割込要求IRQ(バー上付き)を発生し、これに応じてマイコンがシフトレ
ジスタ104のデータを読取り、1サイグル分のデータ伝送を終了する。なお、
このときのCIM相互間でのデータの授受動作は、図5に関連して説明したDI
Iモードにおける場合と同じであるのはいうまでもない。 【0127】次に、図14はCIM33、つまりMPUモードに設定されたとき
のCIMの一実施例を示す機能ブロック図で、MPUモードにおいて必要とする
機能に対応したプロッグだけを示したものであり、図において400,402は
8ビットのスイッチ、404は8ビットのデータラッチであり、その他は図6の
実施例と同じである。 【0128】このMPUモードでは、シフトレジスタ104のQ0ビットからQ2
3ビットまでが8ビットの入出力ピンを介してマイコンのデータバスに接続され
、相互にデータの授受を行なうようになっており、このため、シフトレジスタ1
04のQ0〜Q23のビットを3つのグループ、Q0〜Q7(Reg3),Q8〜Q15
(Reg2),Q16〜Q23(Reg1)に分割したものとして扱い、時分割で順
次にアクセスするようにしている。 【0129】そこで、このため、8ビットのスイッチ400と402を用い、マ
イコンから与えられるレジスタセレクト信号RS0,RS1の組合せによりスイ
ッチ400の制御信号READ1〜3と、スイッチ402の制御信号STB1〜
3を作り、入出力端子ピン7〜14をReg1からReg2、そしてReg3と順次
接続するようにし、8ビットずつ3回のアクセスによりマイコンとシフトレジス
タ104との間でのデータの授受を行なうようになっている。 【0130】そして、この場合、マイコンからシフトレジスタ104に対するデ
ータの書込み時では、マイコンからのデータの読出し時間と、 シフトレジスタ104に対するデータの書込時間との違いを補償するため、ラッ
チ404が設けられ、マイコンからのデータを一旦、ラッチしてから書込むよう
になっている。 【0131】また、このMPUモードでは、データ受信時での24ビットのデー
タの先頭に付されているアドレスの照合は、このCIM33の中では行なわない
。従って、入力20〜23に与えられたアドレス(0000)はアドレスデコーダ306
によってMPUモードにこのCIMを設定するためにだけ使用され、図6におけ
るコンパレータ307は動作しないようになっている。 【0132】次に、このMPUモードでは、CIM33の入出力端子ピン1〜6
がマイコンに対する制御信号の伝送路となっており、これによりマイコンからは
CIMの制御回路101に対してクロックE、チップセレタト信号CS(バー上
付き)、リードライト信号RW、それに上述のレジスタセレクト信号RS0,R
S1が与えられ、一方、このCIMからは割込要求信号IRQ(バー上付き)がマ
イコンに出力されるようになっている。 【0133】図15,図16はこれらの信号の処理回路の一実施例で、図14で
は省略してあるが、制御回路101の一部に含まれており、まず、クロックEが
図15の回路に供給され、内部クロックCLOCKと共に処理されて2相のクロ
ックEH,ELが発生される。そして、これらのクロックEH,ELとマイコン
からの信号RW,CS(バー上付き),RS0,RS1が図16の回路で処理さ
れ、信号STB0〜3,RESD0〜1が発生される。なお、信号MPUはCI
MがMPUモードに設定されると“1”になる信号である。 【0134】さらに、この図16の回路による信号処理タイミングを示したのが
図17,図18で、これらの図のうち、図17は信号READ0 〜 3の発生タイミングを、それに図18は信号STB0〜3の発生タイミングを、
それぞれ示したものである。 【0135】なお、これらの図において、信号RED0〜3のうちのいずれが発
生するか、及び信号STB0〜3のうちいずれが発生するかは、信号RS0とR
S1の組合せで決まるようになっており、これにより上述したシフトレジスタ1
04のグループReg1,Reg2,Reg3の選択が行なわれる。 【0136】ところで、これらの信号READ0〜3,STB0〜3のうちの信
号READ0とSTB0とは、上記したシフトレジスタ104のグループ選択に
は使用されず、後述する割込要求信号IRQ(バー上付き)の発生に使用される。
従って、信号RS0とRS1による選択状態を示すと図19のようになる。 【0137】次に、図20は割込要求信号TRQ(バー上付き)の発生回路の一実
施例で、同じく図14の制御回路101の中に含まれ、このCIM33がデータ
受信完了してシフトレジスタ104の中に受信データの格納を終ったときに発生
する信号WRITE STB(図9)と、信号READ0とによって信号IRQを
発生する回路と、入出力端子ピン7〜14によってマイコンのデータバスに接続
されているデータ線D0〜D7のいずれか一つ、例えばデータ線D0からの信号
DATAと信号STB0から信号MASK1を作る回路とで構成されており、そ
の動作は図21,図22のタイミングチャートに示されている。 【0138】そして、これらの図のうち、図18は信号DATAがSTB0の発生タ
イミングで“0”となっていたときの動作を、また図19は信号DATAが“1
”になっていたときの動作をそれぞれ示したものである。なお、図20の回路で
、信号DATAとSTB0が供給されているフリップフロップをReg0という
。従って、この図20の回路では、 Reg0に“1”が書込まれていると割込要求信号IRQ(バー上付き)にマスク
が掛けられることになる。 【0139】次に、図14の実施例、つまり本発明によるCIMの一実施例がM
PUモードに設定された状態におけるデータ伝送の全体的な動作を図20のタイ
ミングチャートによって説明する。 【0140】本発明の実施例においては、CIM30〜33のいずれも、その動
作がシーケンスカウンタ303のカウント出力により制御され、従って、このシ
ーケンスカウンタ303のカウント出力を所定値に設定してやれば、任意の動作
状態に転位させることができることは、既に図6,図9などに関連して説明した
とおりであり、このことはCIMがどのようなモードに設定されていても変りは
ない。 【0141】ところで、図14に示すようにMPUモードに設定されたCIM3
3がデータ伝送すべく組合わされるCIMは、図2から明らかなように、DIO
モード又はADモードに設定されているCIM30〜32となっている。そして
、このCIMは、DIOモード及びADモードに設定されていたときには、図9
で説明したように、他のCIMからのデータを受信したとき、それにひき続いて
自らのデータの送信を行ない、1フレーム分のデータ授受動作を行なうもので、
いわばパッシブな動作しか行なわない。 【0142】これに対して、CIM33のようにMPUモードに設定されている
ものでは、マイコンからのデータがシフトレジスタ104に書込まれたら自らデ
ータ送信を開始する、いわばアタチブな動作を必要とする。そこで、この実施例
では、このアクチブなデータ送信開始のため、シフトレジスタ104のグループ
選択のための信号STB1〜3のうちの信号STB3を使用するようにしている
。 【0143】これは、シフトレジスタ104に対するマイコンによる送 信データの書込みがReg1,Reg2,Reg3の順に行なわれ、このため、
信号STB3が発生した時点でマイコンからシフトレジスタ104に対するデー
タの書込みが丁度終了し、シフトレジスタ104には今回伝送すべきデータが全
て格納し終るからである。 【0144】そこで、図23に戻り、いま、或る時点でCCU10(図2)のマ
イコンにLCUのいずれかに対して伝送すべきデータが用意されたとする。そう
すると、このマイコンは入出力端子ピン1〜6を介して信号CS(バー上付き),
RW,RS0,RS1をCIM33の中の制御回路101に供給し、図15ない
し図19で説明したように信号STB0〜3を発生させ(図23左端上部)、データ
バスから順次、8ビットずつのデータをシフトレジスタ104のReg1,Re
g2,Reg3に書込ませる。 【0145】一方、制御回路101は、この信号STB3の発生をとらえ、シー
ケンスカウンタ303に“49”をロードする。この信号STB3によるシーケンス
カウンタ303の出力データを“49”にするための回路の一実施例を図24に
、この回路の動作を示すタイミングチャートを図25に示す。 【0146】こうしてシーケンスカウンタ303がS49にされると、この時点
x(図13)で送信フレームの処理が開始する。このS49からS122まで
の送信フレームの処理は図8で説明したDIOモードの場合とほぼ同じであるが
、このMPUモードではシフトレジスタ104には既に伝送すべきデータが書込
まれているから、S49からS73までの間は何もせず、ただシフトレジスタ1
04のQ24にスタートビット用の“1”を書き込むだけである点がDIOモード
のときと異なるだけである。 【0147】こうしてS122に達すると信号INITIALが発生し、 その後、S0からS24までの最少時間を含むアイドル状態に入る。つまり、M
PUモードでは、DIOモードのときと異なり、他のCIMからデータが受信さ
れるのを待つのではなく、マイコンからシフトレジスタ104にデータの書込み
が終了したらシーケンスカウンタ303にデータ49を強制的にロードし、これ
により自動的に送信フレームの処理に入るようにしているのである。 【0148】こうしてCCU10のCIM33から送信フレームの伝送が開始す
れば、既に図9で説明したように、この送信データTXDがLCU側のCTM3
0〜32によって受信データRXDとして受信処理され、そのうちのアドレスの
一致したCIMによって折り返しデータが伝送されてくるから、今度はそれが受
信データRXDとしてCIM33に受信されるようになる。 【0149】このときの受信フレームの処理も、図9におけるDIOモードの場
合とほぼ同じで、ただMPUモードでは、アドレスの一致状態をみない点が異な
るだけである。そして、S0からS48になり、シフトレジスタ104の中に受
信データが格納し終り、かつエラーが検出されなかった場合には、S48のクロ
ックφSにより信号WRITESTBが立上ると、これにより図20から図22
で説明したように割込要求信号IRQ(バー上付き)が発生し、その後のクロック
φMにより信号INITIALが発生してこのCIM33はアイドル状態に入り
、次に信号STB3が発生するまでアイドル状態を保つ。 【0150】こうして割込要求信号IRQ(バー上付き)が発生されると、CCU
10内のマイコンはこの信号IRQ(バー上付き)により割込処理ルーチンにジャ
ンプし、シフトレジスタ104から受信データの取込みを行なう。このときのシ
フトレジスタ104からのデータの取込みは、スイッチ400を用い、これに図
15及び図16で説明した回路から信 号READ1〜3を順次供給し、8ビットのデータバスD0〜D7を介してシフ
トレジスタ104のReg1,Reg2,Reg3の順に行なわれるものである
ことは、既に説明したとおりである。 【0151】ところで、この実施例では、既に図20で説明したように、この信
号IRQ(バー上付き)はマスク可能に構成されており、CCU10のマイコンはRe
g0(図20)に“1”を書き込んでおくことにより信号IRQ(バー上付き)を
マスタすることができる。 【0152】従って、図23のように、信号STB3の発生時点txの前の信号
STB0の発生時点(図23の左下)に合わせてデータバスD0を“1”にして
おけば、信号MASKが“1”になり、その後、信号WRITE STBが発生
した時点でも割込要求信号IRQ(バー上付き)はマイコンに供給されず、これに
よりマイコンは必要に応じて所定の期間中、他の処理を優先して行なうことがで
きる。なお、このマスクの解除は、図20から明かなとおり、信号STB0の発
生時点でデータバスD0を“0”にし、Reg0に“0”を書き込めばよい。 【0153】一方、CCU10のマイコンは、こうしてIRQ(バー上付き)のマ
スクを行なっていたときには、図20の信号IRQを調べ、それが“1”になっ
ていたらデータ受信が完了していたことになるのでシフトレジスタ104からデ
ータの取込みを行ない、それが“0”になっていたらデータの受信完了を待つ。
なお、信号IRQ(バー上付き)はデータの取込みを行なうときに発生する信号R
EAD0により解除されることは図20から明らかである。 【0154】従って、この実施例によれば、CCUのマイコンはデータをCIM
33に転送したあと、そのまま他の処理動作に入ることができるから、無駄な待
ち時間が不要になってその処理能力を充分に活かしたシステムとすることができ
、かつ、このとき、CIM33のデータ受信 が完了しても、それより優先順位の高い他の処理動作に対してはマスクを働かせ
ることができ、これにより優先順位の高い処理動作が中断される虞れも生じない
ようにできる。 【0155】ここで、図2のように、MPUモードにあるCIM33と、DIO
モード(又はADモード)に設定されたCIM30〜32との組合わせによるデ
ータ伝送動作を状態遷移図で示すと、図26のようになる。 【0156】 【発明の効果】本発明によれば、通信回路がレジスタとI/Oバッファとを含む
のでこの結果、LSIモジュールとし容易にチップ化が可能になるだけではな
く、レジスタに一旦データを格納した後、I/Oバッファにデータを移してから
外部負荷にデータを与えるようにできるので、この間に、必要に応じてデータの
チェックが可能入力なり、従って誤ったデータがいきなり外部負荷に出力されて
しまう虞れがなく、自動車内でのノズルレベルの高いところでも、常に確実に高
い信頼性を保つことができる。
DETAILED DESCRIPTION OF THE INVENTION [0001] BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiplex data transmission system. Vehicle data that is particularly suitable for integrated wiring systems in vehicles
Related to transmission systems. [0002] 2. Description of the Related Art For example, automobiles have various transmission products such as lamps and motors, and
Numerous electrical devices such as various sensors and actuators for vehicle control are arranged.
The number is increasing steadily as automobiles become more electronic. [0003] Therefore, as in the prior art, each of these many electrical devices has
Wiring would be extremely complicated and large-scale if wiring was performed independently.
Cost increase, weight and space increase, or mutual interference
Problems arise. Therefore, as one of the methods for solving such a problem, a small distribution is required.
It has been proposed to simplify wiring by a multiplex transmission method that can transmit a large number of signals over a wire.
As an example, Japanese Patent Application No. 57-17535 filed by the present applicant (Japanese Patent Application
No. 8-70657). FIG. 1 shows an integrated wiring system in an automobile using such a multiplex transmission system.
An example is shown below.   The system of FIG. 1 uses an optical fiber cable OF as a signal transmission path,
Control unit CCU (hereinafter simply referred to as CCU. This is a Central Control Unit)
) And a plurality of terminal processing units LCU (hereinafter simply referred to as LCU.
cal Control Unit), which is commonly connected with an optical signal channel.
An optical branch connector OC is provided at a branch point of the fiber cable OF. [0006] The CCU is installed in an appropriate place such as near the dashboard of a car.
, And controls the entire system.   LCU includes various operation switches SW, indicators such as meters M, lamps L, Distributed by a predetermined number in the vicinity of electrical devices such as sensors S installed in a large number of vehicles
It is arranged.   An optical signal and an electrical signal are connected to a portion where the CCU and each LCU are connected to the optical fiber cable OF.
A photoelectric conversion module O / E that converts air signals into two directions is provided. [0007] The CCU has a microcomputer, and stores data by serial data.
In response to this, each LCU has a communication processing circuit CIM (hereinafter simply referred to as “CIM”).
Called CIM. Note that this is an abbreviation for Communication Interface Adapter)
The CCU sequentially selects one of the LCUs and exchanges data with that LCU
And repeat this to obtain a one-channel optical fiber cable OF
Multiplex transmission over the vehicle, simplifying complex and large-scale vehicle wiring.
Can be. FIG. 2 illustrates an example of such a transmission system in more detail.
10 is a block diagram of a central processing unit (corresponding to the CCU in FIG. 1),
Is a signal transmission line (corresponding to the optical fiber cable OF in FIG. 1), and 30 to 32 are terminal processing devices.
(Corresponding to the LCU in FIG. 1), 40 is an A / D, and 51 to 58 are external loads. In addition,
In this example, a case where an electric signal transmission line is used as the signal transmission line 20 will be described.
Therefore, the central processing unit 10 and the terminal processing units 30 to 32 have photoelectric conversion modules.
Module is unnecessary, and the contents of the terminal processing devices 30 to 32 are substantially CIM.
It has become. A central processing unit 10 including a computer (microcomputer) includes:
Various sensors and lamps are connected to each of the terminal processing devices 30 to 32 by the transmission line 20.
, Actuators, motors and other external devices 51-58
Data transmission and data fetching are performed by a multiplex transmission system.
At this time, analog data is output. External loads 57 and 58 such as sensors to be connected to the terminal processor 32 via the A / D 40.
Thus, a transmission operation using digital data can be performed. The signal transmission line 20 may be anything as long as it is bidirectional, and may be an electric signal transmission system.
Not limited to this, any type of optical fiber transmission system such as an optical fiber is used.
The communication system is a so-called half-duplex system (Half Duplex).
In response to a call to one of the terminal processing devices 30 to 32, the terminal processing device
Of data between one of them and the central processing unit 10 alternately via the transmission line 20
Is being done. For multiplex transmission in such a half-duplex system, the central processing unit 10
The data transmitted from the transmission line 20 is provided with an address indicating the destination.
Recognized that the address attached to the received data is its own address,
Only one of the terminal processors responds. As described above, an address is sent from the central processing unit 10 and transmitted.
The end that understands the address according to the data and determines that it is its own
Only one of the end processors sends its data to the central processor 10 in response
By doing so, it is possible to obtain the above-described half-duplex data transmission operation.
Become. In this system, the central processing unit 10 is provided with a microcomputer.
And a CIM 33 having a data communication function using serial data.
The data transmission operation according to the half-duplex method described above is performed via the IM 33,
This allows a general-purpose microcomputer without a data transmission function as a microcomputer
It can be used. [0014] In the above prior art, a data transmission system for an automobile is used.
Communication processing circuit located at the input / output unit of the central processing unit and the terminal processing unit in the system
No consideration is given to the disclosure of the specific configuration of the communication processing circuit.
There was a problem in making the SI module. An object of the present invention is to provide an LSI module.
Disclose the specific configuration of the communication processing circuit required for the chip of the vehicle system and
To provide an automotive data transmission system that can be made sufficiently compact
is there. [0015] [0016] [0017] In order to achieve this object, the present invention provides a communication control program.
Communication control module for controlling data transmission to and from the terminal processing device according to the program.
Computer and the communication control computer, and are connected to the terminal processing device.
A register for temporarily storing reception data and transmission data to the terminal processing device
A central processing unit having a first communication processing circuit provided with the first communication processing circuit;
Data indicating the state of the external load connected to the terminal processing device.
And a I / O connected between the register and the external load.
A second communication processing circuit including an O buffer; a first communication processing circuit;
A data transmission system for vehicles is connected to a communication processing circuit and a communication line connected to enable data transmission.
The feature is that the system is configured. [0018] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail with reference to the illustrated embodiments.
I do. FIG. 3 is a schematic functional block diagram showing a basic configuration in one embodiment of the present invention.
, A control circuit 101 for sequentially controlling the entire operation, and a transmission line 20
Start-up with received signal RXD input from Circuit 102 for synchronizing clocks according to synchronization method, 4-bit data from outside
ADDR given in advance as0-3Select the operation mode
, An address comparison circuit 103 for comparing the address of the input data,
Shift register 104 for serially fetching and sending, data input / output
Buffer 105 and an external A / D 40 for performing the
A / D control circuit 106 for enabling transmission of analog data, and
And a clock generator 107 for generating a clock necessary for the operation of
Indicates that the LSI has been implemented. The address data input to the address comparison circuit 103 is as described above.
By selecting the data ADDR to be given by these 4 bits,
DIO mode, AD mode, and MPU mode
The internal functions are switched so as to operate in one operation mode. First, the DIO mode means that the CIM is a terminal processing device described in FIG.
This is an operation mode for providing functions required when used as devices 30-31.
For this purpose, the address data ADDR is set to any one of "1" to "D".
Just set it to a dress. Next, the AD mode refers to the CIM of the terminal processor 32 in FIG.
This operation mode can provide the necessary functions when used as
To do so, set the address data ADDR to either "E" or "F".
Good.   And the MPU mode means that when used as the CIM 33 in FIG.
An operation mode for providing a required function. In this case, the address data AD
DA is set to "0".   FIG. 4 shows the relationship between the address setting and the operation mode as shown in FIG. become. Therefore, according to this embodiment, a transmission system as shown in FIG.
It can be configured with only one type of CIM, and generalization of CIM becomes possible.
Therefore, it is possible to sufficiently obtain the advantages of the dedicated product and the LSI.
. Next, the operation of the embodiment of the present invention in each of these operation modes will be described.
The work will be described sequentially.   The CIM according to the embodiment of the present invention shown in FIG.
Is set to any of the above, the functional block is in the state shown in FIG.
The reception signal RXD input from the control circuit 20 is supplied to a synchronization circuit 102, and a clock generator
The control circuit 101 synchronizes the clock from the receiving signal RXD.
A clock synchronized with the start component is given to the clock component, whereby the control circuit 101
Generates a signal and serially reads the data portion of the received signal into shift register 104
No. On the other hand, the address comparison circuit 103 stores addresses “1” to “D”.
The address assigned to the terminal processor in advance is given.
, This address and the data read into the predetermined bit position of the shift register 104
Are compared by the address comparison circuit 103, and only when both match,
The data in the register 104 is transferred to the I / O buffer 105 and given to an external device.
Can be The control circuit 101 includes a counter that increments by a clock,
Generates a sequential control signal and transfers the data based on the received signal RXD to the I / O buffer.
105, then shift from I / O buffer 105
The data is fetched in parallel to the register 104 and the central processing unit 10
Is prepared as serial data in the shift register 104.
You. Then, this data is read out serially from the shift register 104.
Then, the signal is transmitted to the transmission line 20 as a transmission signal TXD. At this time, the address given to the received signal RXD is
The central processing unit 10 transmits the transmission signal TXD because it is transmitted by itself.
The transmission signal TXD is fetched because the address matches the address.
Thus, the transfer of data for one cycle by the half-duplex method is completed. Thus, the central processing unit 10 transmits data to the next terminal processing unit.
The transmission is performed, and by repeating this, the communication with each of the plurality of terminal processing devices 30 to 32 is performed.
Data transmission and reception are performed periodically, and multiplex transmission becomes possible. FIG. 6 shows an embodiment of the CIM in the DIO mode shown in FIG.
In the block diagram shown in more detail, the same reference numerals are used for the same or equivalent parts as in FIG.
In FIG. 6, reference numeral 301 denotes a clock synchronized with the reception signal RXD.
A synchronization circuit 302 for generating clocks 302 generates two-phase clocks φS and φM.
Counter, 303 is a counter for sequential control, 304 is a counter 303
305 is a sequence decoder that produces various control signals from the output of
, 306 are address decoders for input / output switching selection of the I / O buffer 105;
7 is a 4-bit comparator for address comparison, 308 is an error detection circuit, 310
Is a composite gate consisting of two AND gates and one NOR gate, 311 is an error
Exclusive OR gate for detection, AND gate 312 for data transmission,
313 and 314 are tri-state buffers. Note that the shift register 104
Is 25 bits (24 bits + 1 bit), and the I / O buffer 105 has 14 ports
(14 bits). First, when the DIO mode is selected, the A / D control circuit 106 does not operate, and the data contents of the shift register 104 at this time are shown in FIG.
The 6 bits from No. 0 to No. 5 are not used, and No. 6 to No. 19 are used.
Are allocated to the data DIO of the I / O buffer 105. And
Four bits from No. 20 to No. 23 are allocated to the address data ADDR,
.24 is assigned to the start bit. In addition, it is assigned to DIO data.
The number of bits stored is 14 because the I / O buffer 105 has 14 bits.
It is because of that. For this reason, in the CIM according to this embodiment,
, The maximum number of external loads that can be connected to the I / O buffer 105 is 14. The data transmission method according to this embodiment includes start-stop synchronization, bidirectional
Digital data is transmitted continuously using the NRZ (nonreturn to zero) method.
, And the transmission waveform is as shown in FIG.
. That is, data is transmitted from the CIM on the CCU side to the CIM on the LCU side.
Frame transmitted from the LCU to the CCU.
Is a transmission frame, both the reception frame and the transmission frame are 74 bits, and
Therefore, one frame has 148 bits. The reception frame and the transmission frame have the same frame configuration.
The first is a 25-bit "0", followed by a start-stop synchronization.
A start bit consisting of 1 bit “1” is provided, followed by 24 bits
Is transmitted in the form of an NRZ signal, and
The inverted data RXD (with bar) or TXD (with bar) of these data is transmitted.
It is supposed to be. It should be noted that this inverted data RXD (bar superscript) or TXD
The transmission of (bar superscript) is for transmission error checking. As described above, in this embodiment, the half-duplex system is used. Since multiplex transmission is performed, the first four bits of data RXD of the received frame are
, Address data ADD of the LCU with which the CCU will then make a call
R is attached as shown in FIG. 7, and in response to this, the transmission message transmitted from the LCU is sent.
The same address data ADDR is added to the first four bits of the frame data TXD.
Transmitted. The transmission of the transmission frame from the LCU is performed by the CCU.
Since the address is limited to the multiplied LCU, no address is added to the transmission data TXD
However, the CCU immediately determines which LCU the data is from
it can. Therefore, it is not always necessary to assign an address to the data TXD of the transmission frame.
And the first 4 bits of the data TXD are set to any address of the LCU such as (0000).
The data may not match the data. Here, returning to FIG. 6, the address of the CIM will be described. Already explained
As described above, in this embodiment, the CIM on the LCU side has four different bits.
Address is assigned, and based on this address, data in half-duplex format is used.
Multiplex transmission of data. Then, an input serving to assign this address to each CIM is provided.
4 inputs 2 whose forces are connected to a comparator 3070~ 2ThreeAnd these
Data ADDR to be given to input0~ ADDR1Indicates the address of the CIM
Is determined. For example, to specify the address of the CIM as "10",
Dress data ADDR0= 0, ADDR1= 1, ADDRTwo= 0, ADDRThree= 1,
And input 20~ 2Three(1010) may be input to the. Note that this
In the embodiment, data “0” is represented by the ground potential, and data “1” is represented by the power supply voltage Vcc.
Input, address 2 is input for address "10".0, 2TwoTo ground and input 2
1, 2ThreeTo connect to the power supply become. In this embodiment, the address input 20~ 2ThreeIs address deco
The direction of the I / O buffer 105 is controlled by the output.
It is supposed to be. As a result, when the address is specified, the I / O buffer 10
5. It is determined whether any of the 14 terminals becomes a data output port.
. In this embodiment, the address directly corresponds to the number of output ports.
It is supposed to.   Therefore, if the address is defined as “10”, the 14 ends of the I / O buffer
Control so that 10 of the children are output ports and the remaining 4 are input ports
Is done. Although omitted in FIG. 6, the output of the address decoder 306 is
The power is also provided to the sequence decoder 304 of the control circuit 101, which
As described above, the operation mode of the CIM can be switched.
You. That is, in this embodiment, the CIM whose address is set to “0” is
CTM with address set between “1” and “D” in DIO mode
CIM with address set to either "E" or "F" is AD mode
, Respectively. Next, the functions of the control circuit 101 and the synchronization circuit 102 will be described.
In this embodiment, the start-stop synchronization method is employed as described above with reference to FIG.
Therefore, when data is transmitted for both received and transmitted frames,
25 bits of “0” are always inserted before the start bit, and then 1 bit of the start bit is inserted.
"1" data is inserted as the default (FIG. 8). Therefore, the synchronization circuit 301 exists at the beginning of the received frame. The rise of the start bit following the 25-bit “0” is detected, and the internal clock
Synchronization. Therefore, until the next received frame appears,
The operation is performed by an internal clock that is bit-synchronized with the clocking.
The counter 302 is a two-phase clock from the internal clock synchronized by the synchronization circuit 302.
Hook φSAnd φMTo produce This makes the clock φSAnd φMIs then entered
The phase is synchronized with the reception data RXD. The sequence counter 303 outputs the start bit
Receiving a signal indicating the rise detection timing, a specific count value, for example, a count
0, then the clock φSOr φMCounted by.
Therefore, the control procedure of the entire CIM can be determined by the count output, and
By checking the count value, the CIM operation at an arbitrary timing
You can know if it is in the tap. Therefore, the count output of the counter 303 is output to a sequence decoder.
304, and control signals necessary for the operation of the CIM, for example, RXMODO,
All control signals required internally such as TXMODE, READ, SHIFT
It is generated by the sequence decoder 304. In other words, this embodiment
Clock φS, ΦMIs a sequence control method by
By decoding the output of the counter 303, all necessary controls can be performed.
It becomes. Next, the transmitted data RXD is data for the CIM.
Whether the call by transmitting the received frame from the CCU
The operation of determining whether or not the above is the case will be described. As already explained,
One input of the lator 307 is input 20~ 2ThreeGiven the address data from
And the other input has a shift Q of register 10420Bit to Qtwenty threeData up to the bit
ing. The comparator 307 determines that both input data match.
Only when is the match signal MYADDR output. Therefore, the shift register 104
Received data RXD is input and its Q20Bit to Qtwenty threeData up to the bit
The timing at which the address data (see FIG. 7) added to the head of the data RXD is stored.
The output signal MYADDR of the comparator 307 is checked by the
If YADDR is "1", the data RXD is addressed to itself and CCU
It turns out that the call from is to himself. Therefore, the error detection circuit 308 supplies the control signal COMPMODE,
The signal MYADDR is fetched at the predetermined timing described above and becomes “0”.
TNITIAL is generated when the sequence counter 3
03 is set to count 0, the operation of the entire CIM is restored, and the next data transmission is started.
Prepare to be entered. On the other hand, when the signal MYADDR is "1", error detection is performed.
Since no INITIAL is generated by the output circuit 308, the operation of the CIM
It continues according to the count value of the sequence counter 303 at that time.
It is. Next, the transmission error detecting operation will be described. In this embodiment,
As described in FIG. 8, the data transmission by the inverted double transmission system is adopted.
As a result, transmission errors can be detected. For this reason, the first Q of the shift register 1040Bit and
Later Qtwenty fourThe data is supplied from the bit to the externship OR gate 311,
Output of the gate 311 is a signal ERROR (bar superscript) To the error detection circuit 308. The sequence decoder 304 receives the reception signal RX following the start bit.
During the transmission period of D and RXD (with bar superimposed) (FIG. 8), the control signal RXMODE is output.
To open the lower gate of the composite gate 310, thereby
Is input to the shift register 104 as a serial signal SI. At this time,
Since the data 310 includes a NOR gate, the data supplied from the transmission
The data is inverted and input to the shift register 104. Therefore, 24 bits following the start bit of the received frame (FIG. 8)
At the time when the minute data is input to the shift register 104, the shift register
104 Q0Bit to Qtwenty threeInverted data of the received signal RXD
RXD (bar superscript) will be written. Next, as is apparent from FIG. 8, the reception signal RXD of 24 bits is transmitted.
After being sent, a 24-bit inverted signal RXD (bar superscript) is transmitted following it
Then, it is inverted by the composite gate 310 to become data RXD,
It starts to be input to the shift register 104 as the signal SI. As a result, Q of shift register 1040Signal RXD (bar superscript)
At the timing when the first bit is inverted and input,
The inverted data of the first bit of the received signal RXDtwenty fourBi
The data of the second bit of the inverted signal RXD is0Tag written in
In the imaging, the data of the second bit of the reception signal RXD is Qtwenty fourMoved to a bit of
As a result, the inverted signal RXD is transmitted to the shift register 104 one bit at a time.
At each bit timing when data is actually written, the shift register 104
Q oftwenty fourBit and Q0The bits of the reception signal RXD and the inversion signal RXD (bar superscript) The same bit data is always written correspondingly. As described above, the exclusive OR gate 311
The two inputs include the Q of shift register 1040Bit and Qtwenty fourBit data
It is empowered. Therefore, during transmission of the reception signal RXD and the inversion signal RXD (bar superscript)
If no error occurs during the transmission of the inverted signal RXD (with bar superimposed)
The output of the exclusive OR gate 311 should always be "1". Accident
Then, with each corresponding bit of the reception signal RXD and its inverted signal RXD (bar superscript),
Must always be “1” and “0” inverted. As a result, the input of the gate 311
Always indicates a mismatch, and does not occur only if there is an error in transmission
It is. Therefore, the error detection circuit 308 transmits the inverted signal RXD (bar superscript).
During the 24 bits being sent, monitor the signal ERROR (bar superscript)
If the signal INITIAL is generated when the signal becomes "0" level,
Error detection operation is obtained. A method of handling a transmission error in such a data transmission system
As a formula, if a transmission error is detected, repair it and obtain the correct data.
However, in this embodiment, when a transmission error is detected,
At that point, cancels the data reception operation for that frame, and receives the data for the next frame.
In order to simplify the configuration. Next, the entire data transmission in the DIO mode of the embodiment of FIG.
The typical operation will be described with reference to the timing chart of FIG. φM, ΦSIs counter 3
02, which is a two-phase clock output in the synchronization circuit 301
It is generated based on an internal clock by an oscillator. On the other hand, RESET (bar superscript) is supplied to this CIM from outside.
This is the same as the reset signal of a microcomputer, etc.
Is supplied for every CTM in the system.
When necessary, it is supplied from an external reset circuit to initialize the entire transmission system.
Perform the rise. When the initialization is completed, the sequence counter 303
0 and the clock φMBy step by step. And the count value
When it reaches 25, the IDLE signal and RXENA (bar superscript) signal are generated, and the CIM
In the idle state, sequential by the count value of the sequence counter 303
Control is stopped, and the tri-state buffer 313 is opened to change to a signal receivable state.
Become. At this time, after initialization, the sequence counter 303
Until the count value reaches 25, the signal is not ready to be received.
, For the start-stop synchronization by the synchronization circuit 301, and the reception signal RXD has 24 bits.
Therefore, it is necessary to provide at least a 25-bit "0" period. When entering the idle state, the sequence counter 302
ΦS, ΦM, But the sequence decoder 304 controls
The signal IDLE and INITIAL remain generated and the received signal is input.
It's a bear just waiting to run. Note that, as shown in FIG.
A 25-bit "0" is added to the head of the frame and the transmission frame. In this way, the system enters the idle state.0With received signal
It is assumed that RXD is input. Then, at the head of this signal RXD, one bit
A start bit is attached. Therefore, this start bit is used for the synchronization circuit 301.
Detect and synchronize the bit of the internal clock. Therefore, after this, the data RXD, R until the transmission operation for one frame is completed is completed.
XD (with bar) and clock φMAnd φSSynchronization with the internal clock depends on the stability of the internal clock.
As a result, a start-stop synchronization function is obtained. When the start bit is detected, the sequence counter 303 counts down.
Output 0 (hereinafter, the output data of the counter 303 is denoted by S, for example,
In this case, it is set to S0).
The signal IDLE is stopped, and the control signal RXMODE is generated. In parallel with this
The shift register 104 receives a shift pulse SHIFT by a clock φ.MSynchronized with
Be paid. As a result, the received signal RXD of 48 bits following the start bit is inverted.
The inverted signal RXD (with bar superimposed) (FIG. 8) passes through the composite gate 310 from the transmission line 20.
While shifting one bit at a time into the shift register 104 as serial data
It is written. At this time, the first 24-bit reception signal RXD is supplied to the composite gate 31.
In the shift register 104 as data RXD (bar superscript) inverted by 0
Since the data is sequentially written serially, during the 24-bit period following the start bit,
When the sequence counter 303 reaches S24 from S1, the shift register
105 Q0Bit to Qtwenty threeData in which the received signal RXD is inverted to the bits up to
RXD (bar superscript) will be written. Here, the clock φ of the next S25MControl signal COMPMO at the rising edge of
DE (bar superscript) is output, and the error detection circuit 308 functions. And this state
Signal RXD (bar superscript) starts to be input, and as a result,
The data RXD obtained by inverting the signal RXD (with superscript bar) is
0Serially written from bit. As a result, the data written to the shift register 104 in S1 to S24
Data RXD (superscript on the bar) indicates the Q of the shift register 104 from the first bit.twenty fourBi
Between the time when the sequence counter 303 goes from S25 to S48
, Sequentially overflowing one bit at a time. On the other hand, in parallel with this,twenty fourThrough bit position
Therefore, the data RXD based on the inverted signal RXD (superscript bar) is sequentially transmitted from the first bit.
Is written serially, during which exclusive OR gate 311 and
The detection of the transmission error by the error detection circuit 308 is performed as described above.
Going on. Therefore, when the sequence counter 303 reaches S48, the sequence
Q of shift register 1040Bit to Qtwenty threeUp to the same bit as the received signal RXD
The same data RXD is written as it is. Therefore, the output signal of the comparator 307 is output at the timing of S48.
By checking MYADDR, the above-mentioned address is confirmed, and it is received now.
Whether the received data RXD is addressed to itself, that is, from the CCU at this time.
Is determined whether or not the call is addressed to oneself. The period when the sequence counter 303 is between S25 and S48
If a transmission error is detected during this time, or an address mismatch is detected, error detection is performed.
The output circuit 308 generates a control signal INITIAL at S48,
At this point, the sequence counter 303 is set to S0, and the state of 25 bits before idle is set.
And all the receiving operations for this received frame are canceled and the next signal
Prepare for input. Now, while the sequence counter 303 is in the state from S25 to S48, the transmission is performed.
No transmission error was detected and no address mismatch was detected When the error detection circuit 308 has reached INITIAL
When a signal is not generated, the sequence decoder
304 generates a control signal WRITESTB. As a result, at the time of S48, the INITIAL signal and the WRITE signal
Either of the ESTB signal is generated and transmission error and address mismatch do not occur.
If none of the above occur, the former, and either transmission errors or address mismatches
When one of them occurs, the latter is output. When the control signal WRTTESTB is output at the time of S48,
The data of the shift register 104 at that time is transferred to the I / O buffer 105 in parallel.
Written, and as a result, the data given from the CCU by the received data RXD.
From the output port of the I / O buffer 105 to any of the external loads 51 to 56.
Be paid. At this time, since the camera is operating in the DIO mode,
As described with reference to FIG.6Bit to Q19Up to 14 bits are data
RXD, and how many bits of the I / O buffer 10
It has already been explained that the output port 5 is determined by the address.
It is as stated. When the process reaches S48, the processing of the received frame is completed, and the next S is executed.
From 49, processing for a transmission frame is started (FIG. 8). First, what is from S49 to S72
Is not performed. This is for start-stop synchronization of the CIM on the CCU side.
Same purpose as the operation in the period set before IDLE in the processing of received frames
Is for At S73, the control signal PS is output from the sequence decoder 304.
As a result, the shift register 104 performs a parallel data reading operation,
External load 51 is applied to the input port of I / O buffer 105. To 56 are input in parallel. At this time, the number of bits of the data read is a 14-bit I / O buffer.
Out of the ports of the camera 105 used as the output port in the processing of the received frame.
This is the number of bits remaining after subtracting the number of bits. For example, as described above, this CIM ad
When the number of ports is set to 10, the number of output ports becomes 10,
Means that the input port is 4 bits. When writing parallel data to the shift register 104, a signal
Since one bit of the shift clock SHIFT is required together with the PS, the clock of S73 is required.
Lock φSAfter the signal SP rises, the clock φ of S74SShifts synchronized to
The pulse SHIFT is supplied before the rise of the control signal TXMODE. At this time, as is clear from FIG. 8, the transmission data TXD
, A start bit is added, and an address is added to the first four bits of the data TXD.
Must be added. Therefore, although omitted in FIG. 6, the signal PS is generated.
Q of the shift register 104 only during thetwenty fourBits represent data "1"
Signal and Q20Bit to Qtwenty threeInput 2 in the bit part0~ 2ThreeAddress from
Data is supplied. In this manner, start-stop synchronization is performed by the DUMMY state from S49 to S73.
After the necessary 25-bit data “0” transmission period is set,
The control signal TXMODE rises, thereby becoming a TX (transmission) state bearer. The generation of this signal TXMODE causes the upper gate of composite gate 310 to be turned off.
The gate is activated, and the AND gate 312 is activated. This
Q of shift register 104twenty fourBit data, that is,
"1" is transmitted through AND gate 312 It is sent to the road 20. Then, the subsequent clock φ from S75MOccurs in sync with
The contents of the shift register 104 are shifted one bit later by the shift clock SHIFT.
Shifted to the next step, Qtwenty fourFrom the bit to the transmission line 20 through the AND gate 312
The transmission signal TX including the start bit of the transmission frame (FIG. 8)
D transmission is performed. On the other hand, in parallel with the data read from shift register 104,
And that Qtwenty threeThe data read from the bit cell passes through composite gate 310
It is inverted and supplied to the serial input of the shift register 104. As a result,
After S75, the Q of the shift register 1040Bit to Qtwenty threeWritten by a bit
The transmitted data TXD is transmitted one bit at a time by the shift clock SHIFT.
The data is sent out to the transmission path 20, and is inverted and shifted as serial data SI.
Q of the register 1040The data is sequentially written from the bit. Therefore, during the period when the control signal PS is generated, the shift register 10
Q of 40Bit to Qtwenty threeAll transmission data TXD written in bit cell is read
When completed, this Q0Bit to Qtwenty threeBit cell transmitted up to then
Inverted data TXD (bar superscript) is stored instead of data TXD.
Become. Therefore, after reading of the transmission data TXD is completed,
Following this, inverted data TXD from the shift register 104 (bar superscript)
Of the transmission data TD as shown in FIG.
The data is transmitted to the transmission line 20 following the XD. When the process reaches S122, the Q of the shift register 104twenty threeBit
La Q0Inverted data up to the bit is controlled because the front reading is completed The signal TXMODE falls and the supply of the shift clock SHIFT is also stopped and transmitted.
End the bear. Then, the clock φ that follows S122MControl signal INI
TIDL occurs, the sequence counter 303 is set to S0, and the CIM
It returns to the signal reception preparation state before the dollar (IDLE). Therefore, according to this embodiment, the start-stop synchronization, bidirectional, inverted double transmission system
In order to reliably perform half-duplex multiplex communication between the CCU and the CLU,
It is possible to obtain a CIM that has the DIO mode operation function required by the CU.
You. Next, the operation of the CIM according to the present embodiment in the AD mode will be described.
explain. As mentioned above, data should be exchanged with CCU via CIM
External loads 57 and 58 for outputting analog signals such as various sensors as electric devices.
(FIG. 2), and therefore, in the embodiment of the present invention, the A / D control circuit 106
, And also has a function of controlling the external A / D 40. Soshi
The operation mode of the CIM at this time is the AD mode. As described above, in this embodiment, the input 20~ 2Three
The operation mode is set according to the address data to be given to the
The address data corresponding to the AD mode includes “E” and “E” as shown in FIG.
F ". Therefore, the CIM according to this embodiment is added to the address “E” or “F”.
Once set, the functional block state is as shown in FIG. And this
The contents of the data stored in the shift register 104 when the settings are made as shown in FIG.
The 8 bits from No. 0 to No. 7 are externally negative via the A / D 40.
No.8 and No.9 2 bits for storing AD data taken from loads 57, 58, etc.
AD channel data storage 10 bits for DIO data from No. 10 to No. 19
It has become. The rest is the same as in the DIO mode. The AD channel data at this time is a multi-channel data.
This is data for channel designation when AD is used. In this embodiment, A /
Since D40 uses 4 channels, 2 bits are allocated.
It is. FIG. 11 is a block diagram showing the embodiment of FIG. 10 in more detail.
11, 320 is a shift register, 312 is a register, and 322 is
A gate 323 is an A / D control counter, and 324 is an A / D control signal generation circuit.
, 325 are A / D channel selection counters. The others are the places shown in FIG.
This is the same as described above. The shift register 320 is an 8-bit shift register and has an external A / D 40
Digital data (provided from external loads 57, 58, etc.)
A / D converted analog data) to enable parallel reading
And a counter 325 for specifying the channel of the A / D 40.
2 bit channel selection data received in parallel and read it serially
Out and supply it to the A / D 40. The register 321 has 32 bits, and the A / D 40 has 8 bits and 4 bits.
It's a channel, so it's an 8-bit 4-channel register
The data captured by the A / D 40 in 8 bits is used for each channel.
And housed in. The gate 322 also has 32 bits (8 bits) corresponding to the register 321.
, 4 channels), and Q of the shift register 104 for data transmission.8Bit
And Q9AD channel data read from bit cell Data (FIG. 7), selects one of the channels of register 321 and
The 8-bit data is transferred to the shift register Q0Bit to Q7AD cell in bit cell
It functions to write as data (FIG. 7). The counter 323 has a clock φMA / D system
Function to control the operation of the entire control circuit 106 sequentially and cyclically
do. A / D control signal generation circuit 324 decodes the output of counter 323.
Including various decoders and logic circuits necessary for the operation of the entire A / D control circuit 106.
It serves to generate control signals. Next, the operation of the entire A / D control circuit 106 will be described. This
In the embodiment, the sequence corresponds to each of the count outputs of the counter 323.
The control proceeds to the next step, the number of steps is 27, and the count output is 0 (this is called S0).
) To the count output 26 (this is called S6), one cycle of control is completed.
Then, data for one channel of the A / D 40 is taken into the register 321. First, when control of one cycle starts, the channel is controlled by the signal INC.
The counter 325 for selecting the counter is incremented.
The output data is (0,0) → (0,1) → (1,0) →
(1,1) → (0,0). The output data of the counter 325 is stored in the shift register 320 at the top 2
It is written in parallel to the bit position and then read out as serial data ADSI.
It is supplied to the A / D 40. In parallel with this, the output data of the counter 325 is
Is also supplied to a register 32 via a decoder (not shown).
1. Select 8 bits of the corresponding channel. Subsequently, A / D 40 is a channel input as serial data ADSI.
Analog input channel corresponding to the channel selection data 8 bits after converting the analog data to digital data
Is supplied to the serial input of the shift register 320 as the serial data ADSO.
Are stored in the shift register 320. Thereafter, the 8-bit digital data stored in shift register 320 is read.
The data AD that has undergone the total conversion is read out in parallel at a predetermined timing, and
A predetermined channel of the register 321 selected in advance by the output data of the
The control is transferred to the 8 bits of the channel, and the control operation of one cycle is completed. Thus, for example, the output data of the counter 325 becomes (0, 0).
The analog data of channel 0 of the A / D 40 is digitized.
After being stored in the 8 bits of channel 0 of the register 321, the counter 32
3 is reset to S0, the operation proceeds to the next cycle, and the counter 325 sets the
And the output data becomes (0, 1).
The log data is digitized and stored in the 8-bit channel 1 of the register 321.
Is accepted. Therefore, according to this embodiment, the A / D control circuit 106
The data fetch operation from 40 is performed by the sequence counter 303 and the sequence decoder
The processing is performed independently of the data transmission processing by the timing 304,
The data of each channel is refreshed once every four cycles of the AD control operation.
And the register 321 is input to four channels of the A / D 40.
Analog data is converted to 8-bit digital data for each channel.
Will always be available. Therefore, the received signal RXD is now input from the transmission path, and is attached to it.
It is assumed that the address data stored is for this CIM. Note that this
The address data at the time is "E" as described above. Or "F". Then, at the time when the input of the received frame is completed (S48 in FIG. 9).
The data reformatted in the shift register 104 is the same as the AD mode shown in FIG.
Therefore, the Q of the shift register 1048Bit and Q9Two bits
AD data is stored. So, this AD channel
The data is read at the time when the signal WRITESTB is generated in S48.
One of the four channels of the gate 322 is selected. As a result, when the signals PS and SHIFT are generated in S73 (FIG. 9)
Thus, of the four channels of the register 321, Q of the shift register 1048,
Q9Only the AD data of the channel selected by the two bits of
Q of shift register 1040Bit to Q7Written to the 8-bit part up to the bit
You. Then, this is included in the transmission signal TXD in the transmission state after S74, and
Will be transmitted. In this embodiment, the reception processing of the reception signal RXD is performed as described above.
Irrespective of the process and the subsequent transmission processing of the transmission signal TXD,
Contains AD data. Therefore, in this embodiment,
Even if a reception signal RXD addressed to itself appears at the time of the
Transmission signal TXD, and the transmission processing is affected by the operation of the A / D 40.
The transmission rate is reduced due to the time required for the A / D conversion operation without being affected.
There is no danger of being lost. In this embodiment, when the CIM is formed into an LSI, the A / D 40
Externally, to reduce the cost of general-purpose CIM
. That is, as described with reference to FIG. 2, in this embodiment, one type
CIM of LCU30-31 as CIM of LCU30-31 Also used as CIM of LCU32 or CIM33 of CCU10
I can do it. However, at this time, if the A / D is built in, the CIMs 30, 31,
When it is used as 33, it becomes useless and, in general, the centralized wiring of automobiles
When applied to the system, the number used as the CIM 32 is
Since the number of IMs 30, 31, and 33 is smaller than the number used,
There is not much merit by incorporating / D. Therefore, external A / D
That is. However, due to the external connection of the A / D, as shown in FIG.
, Four connection terminals are required for the external A / D 40.
There is a possibility that the number of terminal pins may increase. Therefore, in one embodiment of the present invention, CI
When M is set to the AD mode, 14 ports of the I / O buffer 105
Four of them are switched as connection terminals for the A / D 40. That is, in the embodiment of the present invention, the I / O buffer 105 has 14 ports.
These are, as is clear from FIG. 7, the CIM is set to the DIO mode.
When set, all ports may be used as input / output ports.
At the time of loading, only 10 ports are used at the maximum, and No. 11 to No. shown in FIG.
Fourteen 14 ports are not used for inputting / outputting DIO data and are left. Therefore, the remaining four ports are switched in the AD mode, and are switched to the A / D 40.
If it is used as a terminal pin, the number of terminal pins will not increase even if the A / D is connected externally.
In addition, the versatility is increased when implementing the LSI, and the cost can be reduced. Next, the operation of the CIM according to this embodiment in the MPU mode will be described.
Will be explained. As is clear from FIG. 4, the CIM according to this embodiment is To switch to MPU mode, the address ADDR0~ ADDRThreeAd by
Address setting to “0”, that is, input 20~ 2ThreeAre kept at the ground potential, and (0000) and
Do it. This MPU mode means that the MPU 33 is used as the CIM 33 shown in FIG.
Used in DIO mode and AD mode to give necessary functions
When the data is given to the microcomputer of CCU10,
Transmit to any of the CIMs 30-31 of a given LCU and return
When receiving the transmitted data, a message is sent to transfer the data to the microcomputer.
A transmission interface operation is performed. In the above description, as described with reference to FIG.
The explanation was mainly from the point of view of the CIM on the LCU side.
A frame for transmitting data to the U side CIM is a received frame, and conversely, from the LCU side
Although the frame to be transmitted to the CCU side has been used as the transmission frame,
A transmission frame is a frame that sends data as seen from the IM, and the data is received by itself.
The frame at the time of receiving is described as a received frame. Therefore, after that, the transmission frame in a certain CIM, for example, CIM33
Is a received frame in another CIM, for example, CIM30, while
Is a received frame in the CIM 33. FIG. 12 shows an example in which an address “0” is set in the CIM according to the embodiment of the present invention.
Rough functional blocks when controlled to operate in CPU mode
The figure shows the state of the CIM 33 in FIG. As described above, in this embodiment, the setting of the address
CIM of the same configuration has three modes, namely, CPU mode, A device that can function in either DIO mode or AD mode
Therefore, the state in FIG. 12 represents a functional block in the CPU mode.
Therefore, it is noted that the configuration of the CIM according to this embodiment is different from that of FIG.
It does not represent. As is apparent from FIG. 12, in the CPU mode, the I / O buffer
105 (FIG. 3) and A / D 40 have their functions stopped, and a 14-bit
Connected by data bus. At this time, the terminal pins are connected to the input / output of the I / O buffer 105.
Used in common with the output port, so that there is no increase or decrease in terminal pins
Needless to say. Then, 8 bits of the 14-bit (14) input / output
Are for data, and the remaining 6 bits are for control signals. In this CPU mode, the data in the shift register 104
As shown in FIG.0To Qtwenty threeUp to 24 bits are all MPU data
The microcomputer uses an 8-bit data bus to control the shift register 1
04 is accessed. On the other hand, the control circuit 101 receives a control signal from the microcomputer and receives a shift signal.
Q of the register 1040~ Qtwenty threeData from microcomputer is stored in all bits of
At the same time, the transmission operation is started, and the time t when this data is stored is finished.xFrom FIG. 13
As shown, transmission of a transmission frame is started. When the transmission frame is transmitted from the CIM 33 in this manner,
One of the CIMs 30 to 32 on the LCU side responds, and the CIM continues to transmit.
At time txTime when one frame (148 bits) transmission time has elapsed since
tx, The shift register 104 calls from the CIM 33
The data transmitted from the CIM (one of the CIMs 30 to 32) is stored and terminated.
Will be. The control circuit 101 of the CIM 33 determines at this time tyTo Generates an interrupt request IRQ (with bar superimposed), and the microcomputer responds accordingly.
The data in the register 104 is read, and the data transmission for one siggle is completed. In addition,
At this time, the data transfer operation between the CIMs is performed in accordance with the DI described with reference to FIG.
Needless to say, this is the same as in the I mode. Next, FIG. 14 shows a case where the CIM 33 is set, that is, the MPU mode is set.
Is a functional block diagram showing one embodiment of the CIM, which is required in the MPU mode.
Only the prog corresponding to the function is shown.
An 8-bit switch, 404 is an 8-bit data latch, and the others are shown in FIG.
This is the same as the embodiment. In this MPU mode, Q of shift register 1040Bit to QTwo
ThreeUp to bits are connected to the microcomputer data bus via 8-bit input / output pins.
, Exchange data with each other.
04 Q0~ Qtwenty threeBits of three groups, Q0~ Q7(Reg3), Q8~ Q15
(Reg2), Q16~ Qtwenty three(Reg1)
The next access is. For this reason, the 8-bit switches 400 and 402 are used to
Switch by the combination of register select signals RS0 and RS1 given from the
Control signals READ1 to 3 of the switch 400 and control signals STB1 to STB1 of the switch 402.
3 and input / output terminal pins 7 to 14 in order from Reg1 to Reg2, and then to Reg3.
Connect to microcomputer and shift register by accessing 8 bits 3 times
Data is exchanged with the data 104. In this case, data from the microcomputer to the shift register 104 is stored.
When writing data, the data read time from the microcomputer and the In order to compensate for the difference from the time for writing data to the shift register 104,
Switch 404 is provided so that data from the microcomputer is temporarily latched and then written.
It has become. In the MPU mode, 24-bit data at the time of data reception is used.
The collation of the address added to the head of the data is not performed in the CIM 33.
. Therefore, input 20~ 2ThreeIs given to the address decoder 306.
Used only to set this CIM to MPU mode by
The comparator 307 does not operate. Next, in this MPU mode, the input / output terminal pins 1-6 of the CIM 33
Is a control signal transmission path to the microcomputer, which allows the microcomputer to
The clock E and the chip select signal CS (on the bar) are sent to the CIM control circuit 101.
), The read / write signal RW, and the register select signals RS0, R
S1 is provided, while an interrupt request signal IRQ (superscript on the bar) is generated from this CIM.
Output to the icon. FIGS. 15 and 16 show an embodiment of a processing circuit for these signals.
Is omitted, but is included in a part of the control circuit 101, and first, the clock E is
It is supplied to the circuit shown in FIG. 15 and is processed together with the internal clock CLOCK to generate a two-phase clock.
The locks EH and EL are generated. And these clocks EH, EL and microcomputer
RW, CS (bar superscript), RS0, and RS1 are processed by the circuit of FIG.
Then, signals STB0 to STB3 and RESD0 to STSD1 are generated. The signal MPU is CI
This signal is "1" when M is set to the MPU mode. Further, the timing of signal processing by the circuit of FIG. 16 is shown.
17 and FIG. 18, among these figures, FIG. 17 shows signals READ0 to READ0. 3, and FIG. 18 shows the generation timing of the signals STB0 to STB3.
Each is shown. In these figures, any of signals RED0 to RED3 is generated.
Is generated, and which of the signals STB0 to STB3 is generated depends on the signals RS0 and R0.
The shift register 1 is determined by the combination of S1 and S1.
04, the groups Reg1, Reg2, Reg3 are selected. By the way, of these signals READ0 to STB3 and STB0 to STB3,
The signals READ0 and STB0 are used to select the group of the shift register 104 described above.
Are not used, but are used to generate an interrupt request signal IRQ (bar superscript) described later.
Therefore, FIG. 19 shows a selection state by the signals RS0 and RS1. FIG. 20 is a circuit diagram of a circuit for generating an interrupt request signal TRQ (with superscript bar).
In the embodiment, the CIM 33 is also included in the control circuit 101 of FIG.
Occurs when reception is completed and storage of received data in shift register 104 is completed.
The signal IRQ is generated by the signal WRITE STB (FIG. 9) and the signal READ0.
Generated circuit and connected to microcomputer data bus by input / output terminal pins 7-14
Signal from any one of the data lines D0 to D7, for example, the data line D0.
It is composed of DATA and a circuit for generating a signal MASK1 from the signal STB0.
Is shown in the timing charts of FIGS. 21 and 22. Of these figures, FIG. 18 shows that the signal DATA is the generation of STB0.
FIG. 19 shows the operation when the signal DATA is "1".
The operation of the circuit shown in FIG. 20 is shown.
, The flip-flop to which the signals DATA and STB0 are supplied is referred to as Reg0.
. Therefore, in the circuit of FIG. If "1" is written to Reg0, the interrupt request signal IRQ (bar superscript) is masked.
Will be multiplied. Next, the embodiment of FIG. 14, that is, one embodiment of the CIM according to the present invention is M
The overall operation of data transmission in the state set in the PU mode is shown in FIG.
This will be described with reference to a mining chart. In the embodiment of the present invention, all of the CIMs 30 to 33 operate in the same manner.
The operation is controlled by the count output of the sequence counter 303.
If the count output of the sequence counter 303 is set to a predetermined value,
The ability to transpose to the state has already been described with reference to FIGS.
This is true no matter what mode the CIM is set to.
Absent. By the way, as shown in FIG. 14, CIM3 set to MPU mode
3 are combined to transmit data, as is apparent from FIG.
CIMs 30 to 32 set in the mode or the AD mode. And
When the CIM is set in the DIO mode and the AD mode,
As explained in the above, when data from another CIM is received,
It transmits its own data and performs data transfer operation for one frame.
In other words, it only performs passive operations. On the other hand, the MPU mode is set as in CIM33.
When data from the microcomputer is written into the shift register 104,
Initiate data transmission, so to speak, requires an action that is athletic. Therefore, this embodiment
In order to start the active data transmission, the group of the shift register 104
The signal STB3 among the signals STB1-3 for selection is used.
. This is because the transmission to the shift register 104 by the microcomputer is performed. The writing of the communication data is performed in the order of Reg1, Reg2, Reg3.
When the signal STB3 is generated, data from the microcomputer to the shift register 104 is output.
Data has just been written, and the shift register 104 contains all the data to be transmitted this time.
This is because they are stored. Therefore, returning to FIG. 23, the CCU 10 (FIG. 2)
It is assumed that data to be transmitted to one of the LCUs is prepared in the icon. so
Then, the microcomputer uses the input / output terminal pins 1 to 6 to output a signal CS (with a bar),
RW, RS0, and RS1 are supplied to the control circuit 101 in the CIM 33, and FIG.
Then, the signals STB0 to STB3 are generated as described with reference to FIG.
The data of 8 bits are sequentially transferred from the bus to Reg1 and Re of the shift register 104, respectively.
g2, Reg3. On the other hand, control circuit 101 catches the generation of signal STB3, and
"49" is loaded into the can counter 303. Sequence by this signal STB3
FIG. 24 shows an embodiment of a circuit for setting the output data of the counter 303 to "49".
FIG. 25 is a timing chart showing the operation of this circuit. When the sequence counter 303 is set to S49 in this way,
txThe processing of the transmission frame starts in (FIG. 13). From S49 to S122
Is substantially the same as that in the case of the DIO mode described with reference to FIG.
In this MPU mode, data to be transmitted is already written in the shift register 104.
No operation is performed between S49 and S73.
04 Qtwenty fourThe point that only "1" for the start bit is written in DIO mode
It is just different from the time. When the signal reaches S122, a signal INITIAL is generated. Thereafter, the apparatus enters an idle state including the minimum time from S0 to S24. That is, M
In PU mode, unlike in DIO mode, data is received from another CIM.
Instead of waiting for data to be written, write data from the microcomputer to the shift register 104.
Is completed, the data 49 is forcibly loaded into the sequence counter 303, and
Thus, the processing of the transmission frame is automatically started. Thus, transmission of a transmission frame from the CIM 33 of the CCU 10 starts.
Then, as already described with reference to FIG. 9, the transmission data TXD is
The received data is received as RXD by 0 to 32, and the address of
Return data is transmitted by the matching CIM.
The CIM 33 receives the received data RXD. The processing of the received frame at this time is also performed in the case of the DIO mode in FIG.
The difference is that the MPU mode does not check the address match state.
It just works. Then, from S0 to S48, the received data is stored in the shift register 104.
If the communication data has been stored and no error is detected, the process proceeds to S48.
When signal WRITESTB rises due to clock φS, this causes
As described in the above, the interrupt request signal IRQ (bar superscript) is generated and the subsequent clock
The signal INITIAL is generated by φM, and this CIM 33 enters the idle state.
And the idle state is maintained until the next signal STB3 is generated. When interrupt request signal IRQ (bar superscript) is generated in this way, CCU
The microcomputer in 10 jumps to the interrupt processing routine by this signal IRQ (bar superscript).
Fetches received data from the shift register 104. At this time
The data is taken in from the shift register 104 using the switch 400,
15 and FIG. READ1 to READ3 are sequentially supplied, and are shifted through 8-bit data buses D0 to D7.
Are performed in the order of Reg1, Reg2, Reg3 of the register 104.
This is as described above. In this embodiment, as described with reference to FIG.
The signal IRQ (with bar) is configured to be maskable, and the microcomputer of CCU10 is
By writing "1" in g0 (FIG. 20), the signal IRQ (bar superscript)
Can be master. Therefore, as shown in FIG. 23, the point in time t when the signal STB3 is generated.xSignal before
The data bus D0 is set to “1” in accordance with the time of occurrence of STB0 (lower left of FIG. 23).
In this case, the signal MASK becomes “1” and then the signal WRITE STB is generated.
At this point, the interrupt request signal IRQ (with bar superimposed) is not supplied to the microcomputer.
The microcomputer can give priority to other processing during a predetermined period if necessary.
Wear. It should be noted that the release of the mask is, as is apparent from FIG. 20, the generation of the signal STB0.
It is sufficient to set the data bus D0 to "0" at the time of birth and write "0" to Reg0. On the other hand, the microcomputer of the CCU 10 has a
When the disk is performing a screening, the signal IRQ shown in FIG. 20 is checked and it becomes "1".
If it is, it means that data reception has been completed.
The data is fetched, and if it is "0", the reception of data is completed.
It should be noted that the signal IRQ (with superscript bar) is a signal RQ generated when data is taken in.
The release by EAD0 is apparent from FIG. Therefore, according to this embodiment, the microcomputer of the CCU transmits the data to the CIM.
33, the process can proceed to another processing operation.
Time is not required, and a system that fully utilizes the processing capacity can be created.
, And at this time, data reception of the CIM 33 Is completed, the mask is activated for other processing operations with higher priority.
And there is no possibility that the processing operation having a higher priority is interrupted.
I can do it. Here, as shown in FIG. 2, the CIM 33 in the MPU mode and the DIO
Data in combination with the CIM 30-32 set in the mode (or AD mode).
FIG. 26 shows the data transmission operation in a state transition diagram. [0156] According to the present invention,Communication circuitIncluding registers and I / O buffers
BecauseAs a result, the LSI modulehandIt is not only easy to make chips
After storing the data in the register once, move the data to the I / O buffer,
Data can be provided to external loads, during which time data can be
Check possible input, so wrong data is suddenly output to external load
There is no danger that it will always be high even when the nozzle level is high in a car.
Reliability can be maintained.

【図面の簡単な説明】 【図1】自動車内集約配線システムの一例を示す説明図である。 【図2】データ伝送方式の一例を示すブロック構成図である。 【図3】本発明による通信処理回路の一実施例を基本的な機能構成として示した
概略ブロック図である。 【図4】アドレスによる動作モード切換の説明図である。 【図5】DIOモードにおける本発明の一実施例を示す機能ブロック図である。 【図6】DIOモードにおける本発明の一実施例をさらに詳細に示したブロック
図である。 【図7】本発明におけるデータ内容の一実施例を示す説明図である。 【図8】本発明における伝送波形の一実施例を示す説明図である。 【図9】DIOモードにおける本発明の一実施例の動作を説明するためのタイミ
ングチャートである。 【図10】ADモードにおける本発明の一実施例を示す機能ブロック図である。 【図11】ADモードにおける本発明の一実施例をさらに詳細に示したブロック
図である。 【図12】MPUモードにおける本発明の一実施例を示す機能ブロック図である
。 【図13】本発明のMPUモードにおける伝送波形の一実施例を示す説明図であ
る。 【図14】MPUモードにおける本発明の一実施例をさらに詳細に示したブロッ
ク図である。 【図15】本発明における信号処理回路の一実施例を示すブロック図である。 【図16】本発明における信号処理回路の一実施例を示すブロック図である。 【図17】本発明の一実施例の動作を説明するためのタイミングチャートである
。 【図18】本発明の一実施例の動作を説明するためのタイミングチャートである
。 【図19】本発明におけるレジスタセレクト信号による選択動作を示す説明図で
ある。 【図20】本発明における割込要求信号発生回路の一実施例を示すブロック図で
ある。 【図21】本発明における割込要求信号発生回路の一実施例の動作を説明するた
めのタイミングチャートである。 【図22】本発明における割込要求信号発生回路の一実施例の動作を説明するた
めのタイミングチャートである。 【図23】本発明の一実施例におけるMPUモードでの動作を説明するためのタ
イミングチャートである。 【図24】カウンタをセットするための回路の一実施例を示すブロック図である
。 【図25】カウンタをセットするための回路の一実施例の動作を説明するための
タイミングチャートである。 【図26】本発明の一実施例におけるCPUモードとDIOモードの組合わせに
よるデータ伝送動作を表わす状態遷移図である。 【符号の説明】 10 中央処理装置 20 信号伝送路 30〜32 端末処理装置 33 通信制御装置 40 A/D(アナログ・ディジタル変換器) 51〜58 外部負荷 101 制御回路 104 シフトレジスタ 105 I/Oバッファ 106 A/D制御回路 107 クロック発生器 301 同期回路 302 カウンタ 303 シーケンスカウンタ 304 シーケンスデコーダ 305 異常検出器 306 アドレスデコーダ 307 コンパレータ 308 エラー検出回路 310 複合ゲート 311 エクスクルーシブオアゲート 312 アンドゲート 320 シフトレジスタ 321 レジスタ 322 ゲート 323 カウンタ 324 A/D制御用信号発生回路 325 カウンタ
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 a block diagram illustrating an example of a data transmission method. FIG. 3 is a schematic block diagram showing one embodiment of a communication processing circuit according to the present invention as a basic functional configuration. FIG. 4 is an explanatory diagram of operation mode switching by an address. FIG. 5 is a functional block diagram showing an embodiment of the present invention in a DIO mode. FIG. 6 is a block diagram illustrating one embodiment of the present invention in DIO mode in more detail. FIG. 7 is an explanatory diagram showing one embodiment of data contents in the present invention. FIG. 8 is an explanatory diagram showing one embodiment of a transmission waveform in the present invention. FIG. 9 is a timing chart for explaining the operation of one embodiment of the present invention in the DIO mode. FIG. 10 is a functional block diagram showing an embodiment of the present invention in an AD mode. FIG. 11 is a block diagram showing one embodiment of the present invention in the AD mode in further detail. FIG. 12 is a functional block diagram showing one embodiment of the present invention in the MPU mode. FIG. 13 is an explanatory diagram showing one embodiment of a transmission waveform in the MPU mode of the present invention. FIG. 14 is a block diagram showing an embodiment of the present invention in the MPU mode in further detail. FIG. 15 is a block diagram showing one embodiment of a signal processing circuit according to the present invention. FIG. 16 is a block diagram showing one embodiment of a signal processing circuit according to the present invention. FIG. 17 is a timing chart for explaining the operation of one embodiment of the present invention. FIG. 18 is a timing chart for explaining the operation of one embodiment of the present invention. FIG. 19 is an explanatory diagram showing a selecting operation by a register select signal in the present invention. FIG. 20 is a block diagram showing an embodiment of an interrupt request signal generation circuit according to the present invention. FIG. 21 is a timing chart for explaining the operation of an embodiment of an interrupt request signal generation circuit according to the present invention. FIG. 22 is a timing chart for explaining the operation of an embodiment of an interrupt request signal generation circuit according to the present invention. FIG. 23 is a timing chart for explaining an operation in the MPU mode in one embodiment of the present invention. FIG. 24 is a block diagram showing one embodiment of a circuit for setting a counter. FIG. 25 is a timing chart for explaining the operation of one embodiment of a circuit for setting a counter. FIG. 26 is a state transition diagram illustrating a data transmission operation by a combination of a CPU mode and a DIO mode in one embodiment of the present invention. DESCRIPTION OF SYMBOLS 10 Central processing unit 20 Signal transmission path 30 to 32 Terminal processing unit 33 Communication control unit 40 A / D (analog-digital converter) 51 to 58 External load 101 Control circuit 104 Shift register 105 I / O buffer 106 A / D control circuit 107 Clock generator 301 Synchronous circuit 302 Counter 303 Sequence counter 304 Sequence decoder 305 Abnormality detector 306 Address decoder 307 Comparator 308 Error detection circuit 310 Complex gate 311 Exclusive OR gate 312 AND gate 320 Shift register 321 Register 322 Gate 323 Counter 324 A / D control signal generation circuit 325 Counter

Claims (1)

【特許請求の範囲】 1.通信制御プログラムに従って端末処理装置との間のデータ送受信を制御する
通信制御用コンピュータと、この通信制御用コンピュータと接続され、前記端末
処理装置からの受信データと前記端末処理装置への送信データを一時格納する
データに共通の一個のレジスタを有する第1の通信処理回路とを備えた中央処理
装置と、 前記第1の通信処理回路からの受信データと、前記端末処理装置に接続された
外部負荷の状態を示すデータを一時格納する両データに共通の一個のレジスタと
、該レジスタと前記外部負荷の間に接続されたI/Oバッファとを備えた第2の
通信処理回路と、 前記第1の通信処理回路と第2の通信処理回路とをデータ伝送可能に接続した
通信線とからなることを特徴とする自動車用データ伝送システム。 2.特許請求の範囲第1項において、 前記通信制御用コンピュータは、前記第1の通信処理回路のレジスタに端末処
理装置からの受信データが確立したとき、付属する記憶装置にそのデータを記憶
することを特徴とする自動車用データ伝送システム。 3.特許請求の範囲第1項において、 前記通信制御用コンピュータは、プログラムされた順番で端末処理装置にデー
タを送信し、 送信データを受け取った端末処理装置は、その端末処理装置に接続されている
外部負荷の状態を示すデータを前記通信制御用コンピュータに返信することを特
徴とする自動車用データ伝送システム。 4.特許請求の範囲第1項において、 前記第2の通信処理回路は、 自らのアドレスを記憶しており、 前記通信線に存在するアドレス付き通信データのアドレスと自らのアドレスを
比較して、一致した端末処理装置のみがその通信データを受け取り、 通信データを受信した端末処理装置の前記第2の通信処理回路は、当該端末処
理装置に接続された外部負荷の状態を示すデータを、 前記通信線を介して前記第1の通信処理回路に送り返すことを特徴とする自動
車用データ伝送システム。 5.特許請求の範囲第1項1乃至第4項において、 前記通信データは、 アドレスデータの後に送信データと受信データとが続き、1フレームとして形
成されている ことを特徴とする自動車用データ伝送システム。 6.通信制御プログラムに従って端末処理装置との間のデータ送受信を制御する
通信制御用コンピュータと、この通信制御用コンピュータと接続され、前記端末
処理装置からの受信データと、前記端末処理装置への送信データを一時格納する
レジスタを有する第1の通信処理回路とを備えた中央処理装置と、前記第1の通
信処理回路からの受信データと、前記端末処理装置に接続された外部負荷の状態
を示すデータを一時格納するレジスタを備えた第2の通信処理回路と、 前記第1の通信処理回路と第2の通信処理回路とのデータ伝送可能に接続した
通信線とを有するシステムにおいて、 前記第2の通信処理回路は、送受信データに共通の一個のレジスタと、 前記第2の通信処理回路内のレジスタと前記外部負荷の間に接続されたI/O
バッファと、 前記レジスタの所定ビットに一時格納されたアドレスデータと既知のアドレス
データとを比較するアドレス比較器と、 所定の周期で発生するクロックに同期して、前記レジスタへの通信データのラ
ッチタイミングと、前記I/Oバッファへの通信データの受渡しタイミングを制
御する制御回路とを備え、 前記レジスタは、符号化された通信データを一時的に格納し、前記I/Oバッ
ファは、既知のアドレスデータとレジスタに一時格納されたアドレスデータとが
一致したとき、アドレスデータに引き続く通信データをレジスタから受け取るよ
うに構成されていることを特徴とする自動車用データ伝送システム。 7.特許請求の範囲第6項において、 前記I/Oバッファは、 前記レジスタに格納された通信データを外部負荷へ出力する機能と、 外部負荷からのデータをレジスタに入力する機能とを備えていることを特徴と
する自動車用データ伝送システム。 8.特許請求の範囲第1項において、 前記レジスタと前記I/Oバッファが、LSIモジュールとして同一のチップ
に内蔵されていることを特徴とする自動車用データ伝送システム。 9.特許請求の範囲第1項において、 前記レジスタから前記I/Oバッファに対する通信データの書き込みは、伝送
エラーとアドレス不一致が無いことの確認後に実行されるように構成されている
ことを特徴とする自動車用データ伝送システム。
[Claims] 1. A communication control computer for controlling transmission and reception of data to and from the terminal processing device in accordance with the communication control program; and a communication control computer connected to the communication control computer for temporarily receiving data from the terminal processing device and transmitting data to the terminal processing device. Both to store
A central processing unit including a first communication processing circuit having a single register common to data; receiving data from the first communication processing circuit; and a state of an external load connected to the terminal processing device. A second communication processing circuit including one register common to both data for temporarily storing data to be indicated and an I / O buffer connected between the register and the external load; and the first communication processing. A data transmission system for a vehicle, comprising a communication line connecting a circuit and a second communication processing circuit so that data can be transmitted. 2. 2. The communication control computer according to claim 1, wherein when the reception data from the terminal processing device is established in a register of the first communication processing circuit, the communication control computer stores the data in an attached storage device. Characteristic automotive data transmission system. 3. 2. The communication control computer according to claim 1, wherein the communication control computer transmits data to the terminal processing device in a programmed order, and the terminal processing device that has received the transmission data transmits an external device connected to the terminal processing device. A data transmission system for a vehicle, wherein data indicating a load state is returned to the communication control computer. 4. In Claim 1, the second communication processing circuit stores its own address, compares the address of communication data with an address present on the communication line with its own address, and finds a match. Only the terminal processing device receives the communication data, and the second communication processing circuit of the terminal processing device that has received the communication data transmits data indicating a state of an external load connected to the terminal processing device to the communication line. A data transmission system for an automobile, wherein the data is transmitted back to the first communication processing circuit via the first communication processing circuit. 5. The vehicle data transmission system according to any one of claims 1 to 4, wherein the communication data is formed as one frame in which address data is followed by transmission data and reception data. 6. A communication control computer that controls data transmission and reception with the terminal processing device according to the communication control program, and is connected to the communication control computer, and receives data from the terminal processing device and transmits data to the terminal processing device. A central processing unit having a first communication processing circuit having a register for temporarily storing the data, receiving data from the first communication processing circuit, and data indicating a state of an external load connected to the terminal processing device; In a system, comprising: a second communication processing circuit having a register for temporarily storing data; and a communication line connected to the first communication processing circuit and the second communication processing circuit so that data can be transmitted. The processing circuit includes one register common to transmission / reception data, and an I / O connected between the register in the second communication processing circuit and the external load.
A buffer, an address comparator for comparing address data temporarily stored in a predetermined bit of the register with known address data, and a timing for latching communication data to the register in synchronization with a clock generated in a predetermined cycle. And a control circuit for controlling the timing of transferring communication data to the I / O buffer. The register temporarily stores encoded communication data, and the I / O buffer stores a known address. A data transmission system for a vehicle, wherein when data matches address data temporarily stored in a register, communication data following the address data is received from the register. 7. 7. The I / O buffer according to claim 6, wherein the I / O buffer has a function of outputting communication data stored in the register to an external load, and a function of inputting data from an external load to the register. An automotive data transmission system characterized by the following. 8. The vehicle data transmission system according to claim 1, wherein the register and the I / O buffer are built in the same chip as an LSI module. 9. The vehicle according to claim 1, wherein writing of communication data from the register to the I / O buffer is performed after confirming that there is no transmission error and no address mismatch. Data transmission system.

Family

ID=

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
EP0797881A1 (en) Communications network, a dual mode data transfer system therefor
JP2500801B2 (en) Terminal processing device
JP2502491B2 (en) Communication processing circuit
JP2612433C (en)
JP2612433B2 (en) Automotive data transmission system
JP3459075B2 (en) Synchronous serial bus method
JPH0315866B2 (en)
JP3021855B2 (en) Serial data transfer device
US8427955B2 (en) Method and apparatus for transferring data
JPH0512892B2 (en)
JP2534836B2 (en) Data transmission system
JPH0534861B2 (en)
JPH0787482B2 (en) Data transmission system
JP3488250B2 (en) Serial data communication method
JP4075280B2 (en) Test method for transmitter / receiver circuit and transmitter / receiver circuit with test circuit
KR100427764B1 (en) Apparatus for Interface between Devices of different Data Bus
JP3701762B2 (en) Data transfer system
KR100200567B1 (en) Matching method between tdna and processor of tnif
JPS60167539A (en) Signal transmitter
JPH059840B2 (en)
JPS6260860B2 (en)