JP2612433B2 - Automotive data transmission system - Google Patents

Automotive data transmission system

Info

Publication number
JP2612433B2
JP2612433B2 JP7292847A JP29284795A JP2612433B2 JP 2612433 B2 JP2612433 B2 JP 2612433B2 JP 7292847 A JP7292847 A JP 7292847A JP 29284795 A JP29284795 A JP 29284795A JP 2612433 B2 JP2612433 B2 JP 2612433B2
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
JP7292847A
Other languages
Japanese (ja)
Other versions
JPH08237278A (en
Inventor
文夫 浜野
茂 於保
健 平山
明 長谷川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP7292847A priority Critical patent/JP2612433B2/en
Publication of JPH08237278A publication Critical patent/JPH08237278A/en
Application granted granted Critical
Publication of JP2612433B2 publication Critical patent/JP2612433B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】本発明は、多重データ伝送シ
ステムに使用する通信処理回路に係り、特に自動車内集
約配線システムに好適な自動車用データ伝送システムに
関する。 【0002】 【従来の技術】例えば自動車には各種のランプやモータ
などの伝送品、それに自動車制御用の各種のセンサやア
クチュエータなどの電気装置が多数配置され、その数は
自動車のエレクトロニクス化に伴なって増加の一途をた
どっている。 【0003】このため、従来のように、これら多数の電
気装置に対してそれぞれ独立に配線を行っていたので
は、配線が極めて複雑で、かつ大規模なものとなってし
まい、コストアップや重量、スペースの増加、或いは相
互干渉の発生など大きな問題を生じる。 【0004】そこで、このような問題点を解決する方法
の一つとして、少ない配線で多数の信号の伝送が可能な
多重伝送方式による配線の簡略化が提案されており、そ
の一例として本出願人による特願昭57−17535号
の出願(特開昭58−70657号公報参照)がある。 【0005】図1に、このような多重伝送方式により自
動車内集約配線システムの一例を示す。この図1のシス
テムは信号伝送路として光ファイバケーブルOFを用
い、中央制御装置CCU(以下、単にCCUという。な
お、これはCentral Control Unitの略)と複数の端末処
理装置LCU(以下、単にLCUという。なお、これはL
ocal Control Unitの略)との間を光信号チャンネルで共
通に結合したもので、光ファイバケーブルOFの分岐点
には光分岐コネクタOCが設けてある。 【0006】CCUは自動車のダッシュボードの近傍な
ど適当な場所に設置され、システム全体の制御を行なう
ようになっている。LCUは各種の操作スイッチSW、
メータMなどの表示器、ランプL、センサSなど自動車
内に多数設置してある電気装置の近傍に、所定の数だけ
分散して配置されている。CCU及び各LCUが光ファ
イバケーブルOFと結合する部分には光信号と電気信号
を双方向に変換する光電変換モジュールO/Eが設けら
れている。 【0007】CCUはマイクロコンピュータを備え、シ
リアルデータによるデータ通信機能を持ち、これに対応
して各LCUには通信処理回路CIM(以下、単にCI
Mという。なお、これはCommunication Interface Adap
torの略)が設けられ、CCUはLCUの一つを順次選択
し、そのLCUとの間でのデータの授受を行ない、これ
を繰り返えすことにより1チャンネルの光ファイバケー
ブルOFを介しての多重伝送が可能になり、複雑で大規
模な自動車内配線を簡略化することができる。 【0008】図2は、このような伝送システムの一例に
ついて更に詳しく説明するためのブロック構成図で、1
0は中央処理装置(第1図のCCUに相当)、20は信号
伝送路(図1の光ファイバケーブルOFに相当)、30〜
32は端末処理装置(図1のLCUに相当)、40はA/
D、51〜58は外部負荷である。なお、この例では、
信号伝送路20として電気信号伝送路を用いた場合につ
いて示してあり、従って、中央処理装置10及び端末処
理装置30〜32には光電変換モジュールが不要で、こ
のため、端末処理装置30〜32の内容は実質的にCI
Mだけとなっている。 【0009】コンピュータ(マイクロコンピュータ)を含
む中央処理装置10は、伝送路20により各端末処理装
置30〜32と結合され、各種のセンサやランプ、アク
チュエータ、モータなどの電気装置からなる外部負荷5
1〜58に対するデータの送出と、これらからのデータ
の取込みを多重伝送方式によって行なう。このとき、ア
ナログデータを出力するセンサなどの外部負荷57,5
8はA/D40を介して端末処理装置32に結合され、
ディジタルデータによる伝送動作が行なえるようになっ
ている。 【0010】信号伝送路20は双方向性のものなら何で
もよく、電気信号伝送系に限らず光ファイバによる光信
号伝送系など任意のものが用いられ、これによる通信方
式はいわゆる半二重方式(Half Duplex)で、中央処理装
置10から複数の端末処理装置30〜32のうちの一つ
に対する呼び掛けに応じ、該端末処理装置の一つと中央
処理装置10との間でのデータの授受が伝送路20を介
して交互に行なわれるようになっている。 【0011】このような半二重方式による多重伝送のた
め、中央処理装置10から送出されるデータには、その
行先を表わすアドレスが付され、伝送路20から受け取
ったデータに付されているアドレスが自らのアドレスで
あると認識した、各端末処理装置のうち一つだけが応答
するようになっている。 【0012】このように、中央処理装置10からアドレ
スが付されて送出されたデータに応じて、そのアドレス
を理解し、それが自らのものであると判断した端末処理
装置の一つだけがそれに応答して自らのデータを中央処
理装置10に送出することにより、上記した半二重方式
によるデータの伝送動作が得られることになる。 【0013】また、このシステムでは、中央処理装置1
0をマイクロコンピュータと、シリアルデータによるデ
ータ通信機能を有するCIM33とで構成し、このCI
M33を介して上記した半二重方式によるデータ伝送動
作を行なうようにし、これによりマイクロコンピュータ
としてデータ伝送機能をもたない汎用のものが使用でき
るようになっている。 【0014】 【発明が解決しようとする課題】上記従来技術では、自
動車用のデータ伝送システムにおける中央処理装置及び
端末処理装置の入出力部に位置する通信処理回路の具体
的な構成の開示について配慮がされているとは言えず、
通信処理回路のLSIモジュール化を図る点で問題が有
った。本発明の目的は、LSIモジュールのチップ化に
必要な通信処理回路の具体的構成を開示し、自動車用の
システムとして充分な小型化が図れるようにした自動車
用データ伝送システムを提供するにある。 【0015】 【0016】 【0017】 【課題を解決するための手段】この目的を達成するた
め、本発明は、通信制御プログラムに従って端末処理装
置との間のデータ送受信を制御する通信制御用コンピュ
ータと、この通信制御用コンピュータと接続され、前記
端末処理装置からの受信データと前記端末処理装置への
送信データを一時格納するレジスタを有する第1の通信
処理回路とを備えた中央処理装置と、前記第1の通信処
理回路からの受信データと、前記端末処理装置に接続さ
れた外部負荷の状態を示すデータを一時格納するレジス
タと、該レジスタと前記外部負荷の間に接続されたI/
Oバッファとを備えた第2の通信処理回路と、前記第1
の通信処理回路と第2の通信処理回路とをデータ伝送可
能に接続した通信線とで自動車用データ伝送システムを
構成した点を特徴とするものである。 【0018】 【発明の実施の形態】以下、本発明について、図示の実
施例によって詳細に説明する。図3は本発明の一実施例
における基本的構成を示す概略機能ブロック図で、シー
ケンシャルに全体の動作制御を行なうための制御回路1
01、伝送路20から入力される受信信号RXDにより
調歩同期方式によりクロックの同期を取る同期回路10
2、外部から4ビットのデータとして予じめ与えられる
アドレスデータADDR03により動作モードの選択
と、入力データのアドレス比較とを行なうアドレス比較
回路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として使用されたときに必要と
する機能を与えるための動作モードで、このときにはア
ドレスデータADDAを“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によって
比較され、両者が一致したときだけシフトレジスタ10
4内のデータがI/Oバッファ105に転送され、外部
機器に与えられる。 【0025】また、制御回路101はクロックで歩進す
るカウンタを含み、シーケンシャルな制御信号を発生
し、受信信号RXDによるデータをI/Oバッファ10
5に与えたあと、それにひき続いて今度はI/Oバッフ
ァ105からシフトレジスタ104にデータをパラレル
に取り込み、外部機器から中央処理装置10に伝送すべ
きデータをシフトレジスタ104の中にシリアルデータ
として用意する。 【0026】そして、このデータをシフトレジスタ10
4からシリアルに読み出し、送信信号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の入出力切換選択用のアドレスデコー
ダ、307はアドレス比較用の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に示すようになり、N
o.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のアドレスデー
タADDRが図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により当該CI
Mのアドレスが指定される。 【0038】例えば、そのCIMのアドレスを“10”
に指定するためには、アドレスデータADDR0=0、
ADDR1=1、ADDR2=0、ADDR3=1、と
し、入力20〜23に(1010)が入力されるようにすれ
ばよい。なお、この実施例では、データ“0”は接地電
位、データ“1”は電源電圧Vccによって表わされてい
るから、アドレス“10”に対しては入力20,22を接
地し、入力21,23を電源に接続することになる。 【0039】ところで、この実施例では、アドレス入力
0〜23がアドレスデコーダ306にも入力され、その
出力によりI/Oバッファ105の方向性が制御される
ようになっている。この結果、アドレスを指定すると、
I/Oバッファ105の14本の端子のうちのいずれが
データ出力ポートとなるのかが決定される。 【0040】そして、この実施例では、アドレスがその
まま出力ポート数に対応するようになっている。従っ
て、いま、アドレスを“10”と定めれば、I/Oバッ
ファの14本の端子のうち10本が出力ポートとなり、
残りの4本が入力ポートとなるように制御される。 【0041】また、図6では省略してあるが、このアド
レスデコーダ306の出力は制御回路101のシーケン
スデコーダ304にも与えられ、これにより図4で既に
説明したように、このCIMの動作モードが切換えられ
るようになっている。すなわち、この実施例では、アド
レスを“0”に設定したCIMはMPUモードで、アド
レスを“1”から“D”までの間に設定したCIMはD
IOモードで、そしてアドレスを“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は同期回路30
2からスタートビットの立上り検出タイミングを表わす
信号を受け、特定のカウント値、例えばカウント0の状
態にセットされ、その後、クロックφS又はφMによって
カウントされる。従って、そのカウント出力によりCI
M全体の制御手順を定めることができ、カウント値をみ
ることにより、任意のタイミングにおけるCIMの動作
がどのステップにあるのかを知ることができる。 【0045】そこで、このカウンタ303のカウント出
力をシーケンスデコーダ304に供給し、このCIMの
動作に必要な制御信号、例えば、RXMODO,TXM
ODE,READ,SHIFTなど内部で必要とする全
ての制御信号をシーケンスデコーダ304で発生させる
ようにしている。つまり、この実施例は、クロック
φS,φMによるシーケンス制御方式となっているもので
あり、従って、カウンタ303の出力をデコードしてや
れば、必要な制御が全て行なえることになるのである。 【0046】次に、伝送されて来るデータRXDがその
CIM向けのデータであるか否か、つまりCCUからの
受信フレームの伝送による呼び掛けが自らに対するもの
であるか否かの判定動作について説明する。既に説明し
たように、コンパレータ307の一方の入力には、入力
0〜23からのアドレスデータが与えられており、他方
の入力には、シフトレジスタ104のQ20ビットからQ
23ビットまでのデータが与えられるようになっている。 【0047】そして、このコンパレータ307は、両方
の入力データが一致したときだけ、一致信号MYADD
Rを出力する。そこで、シフトレジスタ104に受信デ
ータRXDが入力され、そのQ20ビットからQ23ビット
までの部分にデータRXDの先頭に付されているアドレ
スデータ(図7参照)が格納されたタイミングでコンパレ
ータ307の出力信号MYADDRを調べ、そのときに
この信号MYADDRが“1”になっていたらそのデー
タRXDは自分宛のもので、CCUからの呼び掛けは自
分に対するものであることが判る。 【0048】このため、エラー検出回路308は制御信
号COMPMODEを供給し、上記した所定のタイミン
グで信号MYADDRを取り込み、それが“0”になっ
ていたときには出力INITIALを発生させ、これに
よりシーケンスカウンタ303をカウント0にセット
し、CIM全体の動作を元に戻して次のデータ伝送が入
力されるのに備える。 【0049】一方、信号MYADDRが“1”になって
いたときには、エラー検出回路308によるINITI
ALの発生がないから、そのままCIMの動作はシーケ
ンスカウンタ303のそのときのカウント値にしたがっ
てそのまま続行される。 【0050】次に、伝送エラー検出動作について説明す
る。この実施例では、既に図8で説明したように反転二
連送方式によるデータ伝送が採用されており、これによ
り伝送エラーの検出が行なえるようになっている。 【0051】そして、このため、シフトレジスタ104
の最初のQ0ビットと最後のQ24ビットからエクスクル
ーシプオアゲート311にデータが与えられ、このゲー
ト311の出力が信号ERROR(バー上付き)としてエ
ラー検出回路308に与えられるようになっている。 【0052】シーケンスデコーダ304は、スタートビ
ットに続く受信信号RXDとRXD(バー上付き)(図8)
の伝送期間中、制御信号RXMODEを出力して複合ゲ
ート310の下側のゲートを開き、これにより伝送路2
0からのデータをシリアル信号SIとしてシフトレジス
タ104に入力する。このとき複合ゲート310にはノ
アゲートが含まれているため、伝送路20から供給され
てくるデータは反転されてシフトレジスタ104に入力
される。 【0053】そこで、受信フレーム(図8)のスタートビ
ットに続く24ビット分のデータがシフトレジスタ10
4に入力された時点では、このシフトレジスタ104の
0ビットからQ23ビットまでの部分には受信信号RX
Dの反転データ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ビットずつシリアルに書込まれて
いるときの各ビットタイミングでは、シフトレジスタ1
04のQ24ビットとQ0ビットには受信信号RXDと反
転信号RXD(バー上付き)の同じビットのデータが常に
対応して書込まれることになる。 【0056】ところで、上記したように、エクスクルー
シブオアゲート311の2つの入力には、シフトレジス
タ104のQ0ビットとQ24ビットのデータが入力され
ている。従って、受信信号RXDと反転信号RXD(バ
ー上付き)の伝送中にエラーが発生しなかったとすれ
ば、反転信号RXD(バー上付き)の伝送期間中、エクス
クルーシブオアゲート311の出力は常に“1”になる
筈である。何故ならば、受信信号RXDとその反転信号
RXD(バー上付き)の対応する各ビットでは必ず“1”
と“0”が反転している筈であり、この結果、ゲート3
11の入力は必ず不一致を示し、そうならないのは伝送
にエラーがあったときだけとなるからである。 【0057】そこで、エラー検出回路308は反転信号
RXD(バー上付き)が伝送されている24ビットの期間
中、信号ERROR(バー上付き)を監視し、それが
“0”レベルになった時点で信号INITIALを発生
するようにすれば、エラー検出動作が得られる。 【0058】なお、このようなデータ伝送システムにお
ける伝送エラーの処理方式としては、伝送エラーを検出
したらそれを修復して正しいデータを得るようにするも
のも知られているが、この実施例では、伝送エラーが検
出されたらその時点でそのフレームのデータ受信動作を
キャンセルし、次のフレームのデータ受信に備える方式
となっており、これにより構成の簡略化を図っている。 【0059】次に、この図6の実施例のDIOモードに
おけるデータ伝送の全体的な動作を図9のタイミングチ
ャートによって説明する。φM,φSはカウンタ302か
に出力される二相のクロックで、同期回路301内に含
まれているクロック発振器による内部クロックにもとづ
いて発生されている。 【0060】一方、RESET(バー上付き)は、外部か
らこのCIMに供給される信号で、マイクロコンピュー
タなどのリセット信号と同じであり、図2におけるシス
テム内の全てのCIMごとに供給されるようになってお
り、電源投入時など必要なときに外部のリセット回路か
ら供給され、伝送システム全体のイニシャライズを行な
う。 【0061】イニシャライズが終るとシーケンスカウン
タ303はカウント値が0に設定され、そこからクロッ
クφMにより歩進してゆく。そしてカウント値が25に
なるとIDLE信号とRXENA(バー上付き)信号が発
生し、CIMはアイドル状態になってシーケンスカウン
タ303のカウント値によるシーケンシャルな制御は停
止され、トライステートバッファ313が開いて信号受
信可能状態となる。 【0062】なお、このとき、イニシャライズ後、シー
ケンスカウンタ303のカウント値が25になるまでは
信号受信可能な状態にしないようにしているのは、同期
回路301による調歩同期のためであり、受信信号RX
Dが24ビットなので最小限25ビットの“0”期間を
与える必要があるためである。 【0063】こうしてアイドル状態に入るとシーケンス
カウンタ302はクロックφS,φMのカウントにより歩
進を続けるが、シーケンスデコーダ304は制御信号I
DLEとINITIALを発生したままにとどまり、受
信信号が入力されるのをただ待っている状態となる。な
お、このために図8に示すように各受信フレームと送信
フレームの先頭には25ビットの“0”が付加してある
のである。 【0064】こうしてアイドル状態に入り、その中でい
ま、時刻t0で受信信号RXDが入力されたとする。そ
うすると、この信号RXDの先頭には1ビットのスター
トビットが付されている。そこで、このスタートビット
を同期回路301が検出し、内部クロックのビット同期
を取る。従って、これ以後、1フレーム分の伝送動作が
完了するまでのデータRXD,RXD(バー上付き)とク
ロックφMとφSとの同期は内部クロックの安定度によっ
て保たれ、調歩同期機能が得られることになる。 【0065】スタートビットが検出されるとシーケンス
カウンタ303はカウント出力0(以下、このカウンタ
303の出力データはSを付し、例えば、この場合には
S0で表わす)に設定され、これによりシーケンスデコ
ーダ304は制御信号IDLEを止め、制御信号RXM
ODEを発生する。また、これと並行してシフトレジス
タ104にはシフトパルスSHIFTがクロックφM
同期して供給される。 【0066】この結果、スタートビットに続く48ビッ
トの受信信号RXDと反転信号RXD(バー上付き)(図
8)が伝送路20から複合ゲート310を通ってシリア
ルデータとしてシフトレジスタ104に順次1ビットず
つシフトしながら書込まれてゆく。 【0067】このとき、最初の24ビットの受信信号R
XDは、複合ゲート310によって反転されたデータR
XD(バー上付き)としてシフトレジスタ104に順次シ
リアルに書込まれるので、スタートビットに続く24ビ
ットの期間、つまりシーケンスカウンタ303がS1か
らS24に達した時点では、シフトレジスタ105のQ
0ビットからQ23までのビットに受信信号RXDが反転
されたデータRXD(バー上付き)が書込まれることにな
る。 【0068】ここで次のS25のクロックφMの立上り
で制御信号COMPMODE(バー上付き)が出力され、
エラー検出回路308が機能する。そしてこの状態で続
いて反転信号RXD(バー上付き)が入力され始め、この
結果、今度は反転信号RXD(バー上付き)が反転された
データRXDがシフトレジスタ105のQ0ビットから
シリアルに書込まれてゆく。 【0069】これによりS1からS24でシフトレジス
タ104に書込まれたデータRXD(バー上付き)はその
先頭のビットからシフトレジスタ104のQ24ビット位
置を通り、シーケンスカウンタ303がS25からS4
8になるまでの間に順次、1ビットずつオーバーフロー
されてゆく。 【0070】一方、これと並行してシフトレジスタ10
4のQ24ビット位置を通って反転信号RXD(バー上付
き)によるデータRXDがその先頭ビットから順次、シ
リアルに書込まれてゆき、この間にエクスクルーシブオ
アゲート311とエラー検出回路308による伝送エラ
ーの検出が、既に説明したようにして行なわれてゆく。 【0071】従って、シーケンスカウンタ303がS4
8になった時点では、シフトレジスタ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が制御信号WRITES
TBを発生する。 【0075】なお、この結果、S48の時点ではINI
TIAL信号とWRITESTB信号のいずれか一方が
発生され、伝送エラー及びアドレス不一致のいずれも生
じなかったときには前者が、そして伝送エラー及びアド
レス不一致のいずれか一方でも発生したときには後者が
それぞれ出力されることになる。 【0076】さて、S48の時点で制御信号WRITE
STBが出力されると、そのときのシフトレジスタ10
4のデータがパラレルにI/Oバッファ105に書込ま
れ、この結果、受信したデータRXDによってCCUか
らもたされたデータがI/Oバッファ105の出力ポー
トから外部負荷51〜56のいずれかに供給される。 【0077】なお、このときには、DIOモードで動作
しているのであるから、図7で説明したようにQ6ビッ
トからQ19ビットまでの最大14ビットがデータRXD
として伝送可能であり、かつ、そのうちの何ビットがI
/Oバッファ105の出力ポートとなっているかはアド
レスによって決められていることは既に説明したとおり
である。 【0078】こうしてS48に達すると受信フレームの
処理は全て終り、次のS49から送信フレームの処理に
入る(図8)。まず、S49からS72までは何の処理
も行なわない。これはCCU側にあるCIMの調歩同期
のためで、上記した受信フレームの処理におけるIDL
Eの前に設定した期間での動作と同じ目的のためのもの
である。 【0079】S73に入るとシーケンスデコーダ304
から制御信号PSが出力され、これによりシフトレジス
タ104はパラレルデータの読込み動作となり、I/O
バッファ105の入力ポートに外部負荷51〜56のい
ずれかから与えられているデータを並列に入力する。 【0080】このとき読込まれるデータのビット数は、
14ビットのI/Oバッファ105のポートのうち、受
信フレームの処理で出力ポートとして使われたビットを
引いた残りのビット数となる。例えば、前述のように、
このCIMのアドレスを10に設定したときには、出力
ポートの数は10となるから、こりときには、入力ポー
トは4ビットとなる。 【0081】シフトレジスタ104に対するパラレルデ
ータの書込みには、信号PSと共にシフトクロックSH
IFTを1ビット分必要とするため、S73のクロック
φSにより信号SPを立上げたあと、S74のクロック
φSに同期したシフトパルスSHIFTを制御信号TX
MODEの立上り前に供給する。 【0082】また、このとき、図8から明らかなよう
に、送信データTXDの前にスタートビットを付加し、
さらにデータTXDの先頭4ビットにはアドレスを付加
しなければならない。このため、図6では省略してある
が、信号PSが発生している期間中だけシフトレジスタ
104のQ24ビットにはデータ“1”を表わす信号が、
そしてQ20ビットからQ23ビットの部分には入力20
3からアドレスデータがそれぞれ供給されるようにな
っいる。 【0083】こうしてS49からS73までのDUMM
Y状態により調歩同期に必要な25ビット分のデータ
“0”送出期間が設定されたあと、S74に入ると制御
信号TXMODEが立上り、これによりTX(送信)状
態になる。 【0084】この信号TXMODEの発生により複合ゲ
ート310の上側のアンドゲートが能動化され、さらに
アンドゲート312が能動化される。これによりシフト
レジスタ104のQ24ビットのデータ、つまりスタート
ビットとなるデータ“1”がアンドゲート312を通っ
て伝送路20に送り出される。 【0085】そして、それに続くS75以降のクロック
φMに同期して発生するシフトクロックSHIFTによ
りシフトレジスタ104の内容は1ビットずつ後段にシ
フトされ、Q24ビットからアンドゲート312を通って
伝送路20に送り出され、これにより送信フレーム(図
8)のスタートビットを含む送信信号TXDの伝送が行
なわれる。 【0086】一方、このようにシフトレジスタ104か
らのデータ読出しと並行して、そのQ23ビットのセルか
ら読出されたデータは複合ゲート310を通って反転さ
れ、シフトレジスタ104のシリアル入力に供給されて
いる。この結果、S75以降、シフトレジスタ104の
0ビットからQ23ビットまでに書込まれていた送信デ
ータTXDは、シフトクロックSHIFTによって1ビ
ットずつ伝送路20に送り出されると共に、反転されて
シリアルデータSIとしてシフトレジスタ104のQ0
ビットから順次書込まれてゆくことになる。 【0087】従って、制御信号PSが発生している期間
中にシフトレジスタ104のQ0ビットからQ23ビット
のセルに書込まれた送信データTXDが全て読出し完了
した時点では、このQ0ビットからQ23ビットのセルに
はそれまでの送信データTXDに代って、反転データT
XD(バー上付き)が格納されていることになる。 【0088】そこで、この送信データTXDの読出しが
完了した時点以降は、それにひき続いて今度はシフトレ
ジスタ104から反転データTXD(バー上付き)の読出
しが開始し、図6のように反転データTXD(バー上付
き)が送信データTXDに続いて伝送路20に送出され
ることになる。 【0089】こうしてS122に到ると、シフトレジス
タ104のQ23ビットからQ0ビットまでの反転データ
は前部読出し完了するので制御信号TXMODEは立下
り、シフトクロックSHIFTの供給も停止されて送信
状態を終る。そして、S122に続く継ぐのクロックφ
Mにより制御信号INITIDLが発生し、シーケンス
カウンタ303はS0に設定され、CIMはアイドル
(IDLE)以前の信号受信準備状態に戻る。 【0090】従って、この実施例によれば、調歩同期、
双方向、反転二連送方式による半二重方式の多重通信を
CCUとCLUとの間で確実に行なうために、LCU側
で必要とするDIOモードでの動作機能を有するCIM
を得ることができる。 【0091】次に、この実施例によるCIMのADモー
ドにおける動作について説明する。前述したように、C
IMを介して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ビットのデータをシフトレジスタ
0ビットから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(これをS
6という)までで1サイクルの制御が完了し、A/D4
0の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にも供給され、レジスタ321の対応
するチャンネルの8ビットを選択する。 【0103】続いて、A/D40はシリアルデータAD
SIとして入力したチャンネル選択データに応じてそれ
に対応したアナログ入力チャンネルを選択し、そのアナ
ログデータをディジタルデータに変換してから8ビット
のシリアルデータADSOとしてシフトレジスタ320
のシリアル入力に供給し、このシフトレジスタ320に
格納する。 【0104】その後、このシフトレジスタ320に格納
された8ビットのディジタル変換されたデータADは、
所定のタイミングでパラレルに読出され、カウンタ32
5の出力データによって予め選択されているレジスタ3
21の所定のチャンネルの8ビットに移され、1サイク
ルの制御動作を終了する。 【0105】こうして、例えばカウンタ325の出力デ
ータが(0,0)となっていたとすれば、A/D40の
チャンネル0のアナログデータがディジタル化され、レ
ジスタ321のチャンネル0の8ビットに格納されたあ
と、カウンタ323はS0にリセットされ、次のサイク
ルの動作に進み、カウンタ325はインクリメントされ
てその出力データは(0,1)となり、今度はチャンネ
ル1のアナログデータがディジタル化されてレジスタ3
21のチャンネル1の8ビットに収容される。 【0106】従って、この実施例によれば、A/D制御
回路106によるA/D40からのデータ取込動作が、
シーケンスカウンタ303とシーケンスデコーダ304
によるデータ伝送処理とタイミング的に独立して行なわ
れ、レジスタ321の各チャンネルのデータは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チャンネルデータはS
48で信号WRITESTBが発生した時点で読出さ
れ、これによりゲート322の4つのチャンネルのうち
の一つが選択される。 【0109】この結果、S73(図9)で信号PSとS
HIFTが発生した時点で、レジスタ321の4つのチ
ャンネルのうち、シフトレジスタ104のQ8,Q9の2
つのビットで選ばれたチャンネルのADデータだけが読
出され、それがシフトレジスタ104のQ0ビットから
7ビットまでの8ビット部分に書込まれる。そして、
これがS74以降の送信状態で送信信号TXDに含ま
れ、CCUに伝送されることになる。 【0110】ところで、この実施例では、上記したよう
に受信信号RXDの受信処理と、それに続く送信信号T
XDの送信処理とは無関係に、常にレジスタ321の中
にはADデータが用意されている。従って、この実施例
では、どのようなタイミングで、自分宛の受信信号RX
Dが現われても、直ちにADデータによる送信信号TX
Dの伝送を行なうことができ、A/D40の動作により
伝送処理が影響を受けることがなく、A/D変換動作に
必要な時間のために伝送速度が低下するなどの虞れがな
い。 【0111】なお、この実施例では、CIMをLSI化
するに際してA/D40を外付けとし、CIMの汎用化
に際してのコストダウンを図るようになっている。つま
り、図2で説明したように、この実施例では、モードの
設定により一種類のCIMをLCU30〜31のCIM
としても、LCU32のCIMとしても、或いはCCU
10のCIM33としても使用できるようにしている。 【0112】しかして、このとき、A/Dを内蔵させて
しまうとCIM30,31,33として使用したときに
無駄なものとなり、しかも、一般に自動車の集約配線シ
ステムに適用した場合には、CIM32として使用され
る個数の方が、他のCIM30,31,33として使用
される個数より少ないため、CIMの全部にA/Dを内
蔵させることによるメリットがあまりない。そのため、
A/Dを外付けとしているのである。 【0113】しかして、このA/Dの外付けのため、図
11から明らかなように、外付けのA/D40に対して
4本の接続端子が必要になり、LSI化した際に端子ピ
ン数の増加をもたらす虞れがある。そこて、本発明の一
実施例では、CIMが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に示したCIM
33として使用されたときに必要な機能を与えるための
モードで、DIOモード、及びADモードで使用された
場合と異なり、CCU10のマイコンかにデータが与え
られると、それを所定のLCUのCIM30〜31のい
ずれかに対して送信し、それに対応して返送されてくる
データを受信したら、そのデータをマイコンに転送させ
るという伝送インターフェース動作を行なうものであ
る。 【0118】ところで、これまでの説明では、図8に関
連して説明したように、LCU側のCIMからみた説明
を主としていたため、CCU側のCIMからLCU側の
CIMにデータを伝送するフレームを受信フレーム、反
対にLCU側からCCU側に伝送するフレームを送信フ
レームとしたきたが、以後はそれぞれのCIMからみて
データを送出するフレームを送信フレーム、自らがデー
タが受け入れるときのフレームを受信フレームとして説
明する。 【0119】従って、以後は、或るCIM、例えばCI
M33での送信フレームは他のCIM、例えばCIM3
0では受信フレームとなり、他方、CIM30での送信
フレームはCIM33では受信フレームとなる。 【0120】さて、図12は本発明の実施例によるCI
Mにアドレス“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に示すように、Q
0からQ23までの24ビットが全てMPUデータとなっ
ており、マイコンは8ビットのデータバスによって、こ
のシフトレジスタ104にアクセスするようになってい
る。 【0124】一方、制御回路101はマイコンからの制
御信号を受け、シフトレジスタ104のQ0〜Q23の全
てのビットにマイコンからのデータが格納されると同時
に送信動作に入り、このデータが格納され終った時刻t
xから、図13に示すように送信フレームの伝送を開始
する。 【0125】こうして送信フレームがCIM33から伝
送されると、それに応じてLCU側のCIM30〜32
の一つが応答し、ひき続きそのCIMが送信を行なうか
ら、時刻txから1フレーム(148ビット)の伝送時間
が経過した時刻txになると、シフトレジスタ104の
中にはCIM33から呼び掛けを行なったCIM(CI
M30〜32のうちの一つ)から伝送されたデータが格
納され終ることになる。 【0126】そごて、CIM33の制御回路101は、
この時点tyにおいて割込要求IRQ(バー上付き)を発
生し、これに応じてマイコンがシフトレジスタ104の
データを読取り、1サイクル分のデータ伝送を終了す
る。なお、このときのCIM相互間でのデータの授受動
作は、図5に関連して説明したDIIモードにおける場
合と同じであるのはいうまでもない。 【0127】次に、図14はCIM33、つまりMPU
モードに設定されたときのCIMの一実施例を示す機能
ブロック図で、MPUモードにおいて必要とする機能に
対応したブロックだけを示したものであり、図において
400,402は8ビットのスイッチ、404は8ビッ
トのデータラッチであり、その他は第6図の実施例と同
じである。 【0128】このMPUモードでは、シフトレジスタ1
04のQ0ビットからQ23ビットまでが8ビットの入出
力ピンを介してマイコンのデータバスに接続され、相互
にデータの授受を行なうようになっており、このため、
シフトレジスタ104のQ0〜Q23のビットを3つのグ
ループ、Q0〜Q7(Reg3),Q8〜Q15(Reg
2),Q16〜Q23(Reg1)に分割したものとして扱
い、時分割で順次にアクセスするようにしている。 【0129】そこで、このため、8ビットのスイッチ4
00と402を用い、マイコンから与えられるレジスタ
セレクト信号RS0,RS1の組合せによりスイッチ4
00の制御信号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モードにこのC
IMを設定するためにだけ使用され、図6におけるコン
パレータ307は動作しないようににっている。 【0132】次に、このMPUモードでは、CIM33
の入出力端子ピン1〜6がマイコンに対する制御信号の
伝送路となっており、これによりマイコンからはCIM
の制御回路101に対してクロックE、チップセレクト
信号CS(バー上付き)、リードライト信号RW、それに
上述のレジスタセレクト信号RS0,RS1が与えら
れ、一方、このCIMからは割込要求信号IRQ(バー
上付き)がマイコンに出力されるようになっている。 【0133】図15,図16はこれらの信号の処理回路
の一実施例で、図14では省略してあるが、制御回路1
01の一部に含まれており、まず、クロックEが図15
の回路に供給され、内部クロックCLOCKと共に処理
されて2相のクロックEH,ELが発生される。そし
て、これらのクロックEH,ELとマイコンからの信号
RW,CS(バー上付き),RS0,RS1が図16の回
路で処理され、信号STB0〜3,RESD0〜1が発
生される。なお、信号MPUはCIMがMPUモードに
設定されると“1”になる信号である。 【0134】さらに、この図16の回路による信号処理
タイミングを示したのが図17,図18で、これらの図
のうち、図17は信号READ0〜3の発生タイミング
を、それに図18は信号STB0〜3の発生タイミング
を、それぞれ示したものである。 【0135】なお、これらの図において、信号RED0
〜3のうちのいずれが発生するか、及び信号STB0〜
3のうちいずれが発生するかは、信号RS0とRS1の
組合せで決まるようになっており、これにより上述した
シフトレジスタ104のグループReg1,Reg2,
Reg3の選択が行なわれる。 【0136】ところで、これらの信号READ0〜3,
STB0〜3のうちの信号READ0とSTB0とは、
上記したシフトレジスタ104のグループ選択には使用
されず、後述する割込要求信号IRQ(バー上付き)の発
生に使用される。従って、信号RS0とRS1による選
択状態を示すと図19のようになる。 【0137】次に、図20は割込要求信号IRQ(バー
上付き)の発生回路の一実施例で、同じく図14の制御
回路101の中に含まれ、このCIM33がデータ受信
完了してシフトレジスタ104の中に受信データの格納
を終ったときに発生する信号WRITE STB(図9)
と、信号READ0とによって信号IRQを発生する回
路と、入出力端子ピン7〜14によってマイコンのデー
タバスに接続されているデータ線D0〜D7のいずれか
一つ、例えばデータ線D0からの信号DATAと信号S
TB0から信号MASK1を作る回路とで構成されてお
り、その動作は図21,図22のタイミングチャートに
示されている。 【0138】そして、これらの図のうち、図18は信号
DATAがSTB0の発生タイミングで“0”となって
いたときの動作を、また図19は信号DATAが“1”
になっていたときの動作をそれぞれ示したものである。
なお、図20の回路で、信号DATAとSTB0が供給
されているフリップフロップをReg0という。従っ
て、この図20の回路では、Reg0に“1”が書込ま
れていると割込要求信号IRQ(バー上付き)にマスクが
掛けられることになる。 【0139】次に、図14の実施例、つまり本発明によ
るCIMの一実施例がMPUモードに設定された状態に
おけるデータ伝送の全体的な動作を図20のタイミング
チャートによって説明する。 【0140】本発明の実施例においては、CIM30〜
33のいずれも、その動作がシーケンスカウンタ303
のカウント出力により制御され、従って、このシーケン
スカウンタ303のカウント出力を所定値に設定してや
れば、任意の動作状態に転位させることができること
は、既に図6,図9などに関連して説明したとおりであ
り、このことはCIMがどのようなモードに設定されて
いても変りはない。 【0141】ところで、図14に示すようにMPUモー
ドに設定されたCIM33がデータ伝送すべく組合わさ
れるCIMは、図2から明らかなように、DIOモード
又はADモードに設定されているCIM30〜32とな
っている。そして、このCIMは、DIOモード及びA
Dモードに設定されていたときには、図9で説明したよ
うに、他のCIMからのデータを受信したとき、それに
ひき続いて自らのデータの送信を行ない、1フレーム分
のデータ授受動作を行なうもので、いわばパッシブな動
作しか行なわない。 【0142】これに対して、CIM33のようにMPU
モードに設定されているものでは、マイコンからのデー
タがシフトレジスタ104に書込まれたら自らデータ送
信を開始する、いわばアクチブな動作を必要とする。そ
こで、この実施例では、このアクチブなデータ送信開始
のため、シフトレジスタ104のグループ選択のための
信号STB1〜3のうちの信号STB3を使用するよう
にしている。 【0143】これは、シフトレジスタ104に対するマ
イコンによる送信データの書込みがReg1,Reg
2,Reg3の順に行なわれ、このため、信号STB3
が発生した時点でマイコンからシフトレジスタ104に
対するデータの書込みが丁度終了し、シフトレジスタ1
04には今回伝送すべきデータが全て格納し終るからで
ある。 【0144】そこで、図23に戻り、いま、或る時点で
CCU10(図2)のマイコンにLCUのいずれかに対
して伝送すべきデータが用意されたとする。そうする
と、このマイコンは入出力端子ピン1〜6を介して信号
CS(バー上付き),RW,RS0,RS1をCIM33
の中の制御回路101に供給し、図15ないし図19で
説明したように信号STB0〜3を発生させ(図23左
端上部)、データバスから順次、8ビットずつのデータ
をシフトレジスタ104のReg1,Reg2,Reg
3に書込ませる。 【0145】一方、制御回路101は、この信号STB
3の発生をとらえ、シーケンスカウンタ303に“4
9”をロードする。この信号STB3によるシーケンス
カウンタ303の出力データを“49”にするための回
路の一実施例を図24に、この回路の動作を示すタイミ
ングチャートを図25に示す。 【0146】こうしてシーケンスカウンタ303がS4
9にされると、この時点tx(図13)で送信フレーム
の処理が開始する。このS49からS122までの送信
フレームの処理は第8図で説明したDIOモードの場合
とほぼ同じであるが、このMPUモードではシフトレジ
スタ104には既に伝送すべきデータが書込まれている
から、S49からS73までの間は何もせず、ただシフ
トレジスタ104のQ24にスタートビット用の“1”を
書き込むだけである点がDIOモードのときと異なるだ
けである。 【0147】こうしてS122に達すると信号INIT
IALが発生し、その後、S0からS24までの最少時
間を含むアイドル状態に入る。つまり、MPUモードで
は、DIOモードのときと異なり、他のCIMからデー
タが受信されるのを待つのではなく、マイコンからシフ
トレジスタ104にデータの書込みが終了したらシーケ
ンスカウンタ303にデータ49を強制的にロードし、
これにより自動的に送信フレームの処理に入るようにし
ているのである。 【0148】こうしてCCU10のCIM33から送信
フレームの伝送が開始すれば、既に図9で説明したよう
に、この送信データTXDがLCU側のCIM30〜3
2によって受信データRXDとして受信処理され、その
うちのアドレスの一致したCIMによって折り返しデー
タが伝送されてくるから、今度はそれが受信データRX
DとしてCIM33に受信されるようになる。 【0149】このときの受信フレームの処理も、図9に
おけるDIOモードの場合とほぼ同じで、ただMPUモ
ードでは、アドレスの一致状態をみない点が異なるだけ
である。そして、S0からS48になり、シフトレジス
タ104の中に受信データが格納し終り、かつエラーが
検出されなかった場合には、S48のクロックφSによ
り信号WRITE STBが立上ると、これにより図2
0から図22で説明したように割込要求信号IRQ(バ
ー上付き)が発生し、その後のクロックφMにより信号
INITIALが発生してこのCIM33はアイドル状
態に入り、次に信号STB3が発生するまでアイドル状
態を保つ。 【0150】こうして割込要求信号IRQ(バー上付き)
が発生されると、CCU10内のマイコンはこの信号I
RQ(バー上付き)により割込処理ルーチンにジャンプ
し、シフトレジスタ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”になり、その後、信号WRI
TE STBが発生した時点でも割込要求信号IRQ
(バー上付き)はマイコンに供給されず、これによりマイ
コンは必要に応じて所定の期間中、他の処理を優先して
行なうことができる。なお、このマスクの解除は、図2
0から明かなとおり、信号STB0の発生時点でデータ
バスD0を“0”にし、Reg0に“0”を書き込めば
よい。 【0153】一方、CCU10のマイコンは、こうして
IRQ(バー上付き)のマスクを行なっていたときには、
図20の信号IRQを調べ、それが“1”になっていた
らデータ受信が完了していたことになるのでシフトレジ
スタ104からデータの取込みを行ない、それが“0”
になっていたらデータの受信完了を待つ。なお、信号I
RQ(バー上付き)はデータの取込みを行なうときに発生
する信号READ0により解除されることは図20から
明らかである。 【0154】従って、この実施例によれば、CCUのマ
イコンはデータをCIM33に転送したあと、そのまま
他の処理動作に入ることができるから、無駄な待ち時間
が不要になってその処理能力を充分に活かしたシステム
とすることができ、かつ、このとき、CIM33のデー
タ受信が完了しても、それより優先順位の高い他の処理
動作に対してはマスクを働かせることができ、これによ
り優先順位の高い処理動作が中断される虞れも生じない
ようにできる。 【0155】ここで、図2のように、MPUモードにあ
るCIM33と、DIOモード(又はADモード)に設
定されたCIM30〜32との組合わせによるデータ伝
送動作を状態遷移図で示すと、図26のようになる。 【0156】 【発明の効果】本発明によれば、レジスタとI/Oバッ
ファとを含む点が明確に限定され、この結果、LSIモ
ジュールとしが容易にチップ化が可能になるだけではな
く、レジスタに一旦データを格納した後、I/Oバッフ
ァにデータを移してから外部負荷にデータを与えるよう
にできるので、この間に、必要に応じてデータのチェッ
クが可能入力なり、従って誤ったデータがいきなり外部
負荷に出力されてしまう虞れがなく、自動車内でのノイ
ズレベルの高いところでも、常に確実に高い信頼性を保
つことができる。
DETAILED DESCRIPTION OF THE INVENTION [0001] TECHNICAL FIELD The present invention relates to a multiplex data transmission system.
Related to the communication processing circuit used for the system, especially
About automotive data transmission system suitable for wiring system
Related. [0002] 2. Description of the Related Art For example, various lamps and motors are used in automobiles.
Transmission products, as well as various sensors and antennas for vehicle control.
Many electric devices such as actuators are arranged, and the number is
Increasingly increasing as automobiles become more electronic
I'm going. For this reason, as in the prior art, these many
Because the wiring was done independently for each air device
Has become extremely complex and large-scale
Increase, cost, weight, space, or
A major problem such as mutual interference occurs. [0004] Therefore, a method for solving such a problem.
One of them is that many signals can be transmitted with few wires
The simplification of wiring by the multiplex transmission method has been proposed.
For example, Japanese Patent Application No. 57-17535 filed by the present applicant
(See JP-A-58-70657). FIG. 1 shows a multiplex transmission system of this type.
1 shows an example of an integrated wiring system in a vehicle. The system shown in FIG.
System uses optical fiber cable OF as signal transmission path
The central control unit CCU (hereinafter simply referred to as CCU).
This is an abbreviation of Central Control Unit) and multiple terminal
Processing unit LCU (hereinafter simply referred to as LCU.
ocal Control Unit) on the optical signal channel.
At the branch point of the optical fiber cable OF
Is provided with an optical branching connector OC. [0006] The CCU is located near the dashboard of the car.
Any suitable place to control the entire system
It has become. LCU has various operation switches SW,
Display such as meter M, lamp L, sensor S, automobile
A predetermined number near the electrical devices installed in the
They are distributed. The CCU and each LCU are
Optical signal and electrical signal are connected to the cable
Photoelectric conversion module O / E that converts
Have been. [0007] The CCU has a microcomputer,
Has a data communication function with real data and supports it
Each LCU has a communication processing circuit CIM (hereinafter simply referred to as CI).
It is called M. This is Communication Interface Adap
(abbreviation of tor) is provided, and the CCU sequentially selects one of the LCUs
And exchange data with the LCU.
By repeating the above, one channel optical fiber cable
Multiplex transmission via BLE OF is possible,
Simple vehicle wiring can be simplified. FIG. 2 shows an example of such a transmission system.
FIG.
0 is a central processing unit (corresponding to the CCU in FIG. 1), 20 is a signal
Transmission line (corresponding to the optical fiber cable OF in FIG. 1), 30 to
32 is a terminal processor (corresponding to the LCU in FIG. 1), 40 is A /
D and 51 to 58 are external loads. In this example,
When the electric signal transmission line is used as the signal transmission line 20,
Therefore, the central processing unit 10 and the terminal
A photoelectric conversion module is not required for
Therefore, the contents of the terminal processing devices 30 to 32 are substantially CI
M only. Including computer (microcomputer)
The central processing unit 10 transmits each terminal processing
30 to 32, and various sensors, lamps,
External load 5 composed of electric devices such as tutors and motors
Transmission of data to 1 to 58 and data from them
Is performed by the multiplex transmission method. At this time,
External loads 57, 5 such as sensors that output analog data
8 is coupled to the terminal processor 32 via the A / D 40,
Digital data transmission can now be performed.
ing. What is the signal transmission path 20 if it is bidirectional?
Not only electrical signal transmission systems, but also optical
Signal transmission system, etc.
The system is a so-called half-duplex system (central processing unit).
Device 10 to one of a plurality of terminal processing devices 30 to 32
One of the terminal processing devices and the central
The transfer of data with the processing device 10 is performed via the transmission line 20.
Are performed alternately. [0011] Multiplex transmission using such a half-duplex system is not possible.
Therefore, the data sent from the central processing unit 10 includes
An address indicating the destination is attached and received from the transmission path 20.
Address attached to the data
Only one of the terminal processing units that recognizes that there is a response
It is supposed to. As described above, the address from the central processing unit 10 is
Address according to the data sent with
Terminal processing that understands and determines that it is its own
Only one of the devices responds and centrally processes its data.
The above half-duplex system is transmitted to the
Thus, a data transmission operation can be obtained. In this system, the central processing unit 1
0 to the microcomputer and data by serial data.
And a CIM 33 having a data communication function.
Data transmission operation by the above half-duplex method via M33
Work, which allows the microcomputer
General-purpose devices without data transmission function can be used
It has become so. [0014] [Problems to be solved by the invention]In the above prior art,
A central processing unit in a data transmission system for a vehicle; and
Specifics of the communication processing circuit located at the input / output unit of the terminal processing device
Does not take into account disclosure of the general structure,
There is a problem in making the communication processing circuit an LSI module
Was. The purpose of the present invention is to make LSI modules into chips.
Disclose the specific configuration of the necessary communication processing circuit,
Sufficient miniaturization for the systemCar
Data transmission system. [0015] [0016] [0017] SUMMARY OF THE INVENTION In order to achieve this object,
Therefore, the present inventionTerminal processing equipment according to the communication control program
Communication control computer that controls data transmission to and from the
Connected to the communication control computer and the communication control computer.
The data received from the terminal processing device and the
First communication having a register for temporarily storing transmission data
A central processing unit having a processing circuit;
Data received from the processing circuit and connected to the terminal processing device.
To temporarily store data indicating the status of the external load
And an I / O connected between the register and the external load.
A second communication processing circuit having an O buffer;
Data transmission between the first communication processing circuit and the second communication processing circuit
Data transmission system for automobiles with communication lines
ComposedIt is characterized by points. [0018] BRIEF DESCRIPTION OF THE DRAWINGS FIG.
This will be described in detail with reference to examples. FIG. 3 shows one embodiment of the present invention.
Is a schematic functional block diagram showing the basic configuration of
Control circuit 1 for performing overall operation control
01, according to the received signal RXD input from the transmission path 20
Synchronous circuit 10 for synchronizing clocks by start-stop synchronization
2. Provided in advance as 4-bit data from outside
Address data ADDR0~ThreeSelection of operation mode by
And address comparison of input data
The circuit 103 serially captures and transmits input data.
Shift register 104 to control data input / output.
I / O buffer 105 for performing on the parallel
Controls A / D 40 and enables analog data transmission
A / D control circuit 106 for
A clock generator 107 for generating necessary clocks
And a state where it is configured as an LSI. Address for address comparison circuit 103
The data input is 4 bits as described above, and these 4 bits
By selecting the data ADDR to be given,
Mode, AD mode, and MPU mode
To operate in one of the operation modes,
Switching of the internal function is performed. First, in the DIO mode, the CIM
Used as terminal processing devices 30 to 31 described in 2
This is an operation mode that provides the functions needed when
To do this, the address data ADDR is changed from "1" to
What is necessary is just to set to any address of "D". Next, the AD mode refers to the terminal shown in FIG.
Needed when used as CIM for processor 32
Operating mode that can provide
Indicates whether the address data ADDR is "E" or "F".
You can set a crab. And the MPU mode is
Needed when used as CIM 33 in FIG.
Operating mode to provide the function
Set the dress data ADDA to “0”.
You. The relationship between the above address setting and the operation mode is shown in the figure.
The result is as shown in FIG. Therefore, according to this embodiment, FIG.
Such a transmission system is composed of only one kind of CIM.
And the generalization of CIM becomes possible,
It is possible to fully obtain the advantages of the dedicated product and LSI.
You can do it. Next, in each of these operation modes,
The operation of one embodiment of the present invention will be described sequentially. FIG.
The CIM according to the embodiment of the present invention shown in FIG.
Or if set to any of "D", the function
The block is in the state shown in FIG.
The received signal RXD is supplied to the synchronization circuit 102 and
Synchronize clocks from lock generator 107 and control
Asynchronous with circuit 101 for clock component of received signal RXD
Is supplied to the control circuit 101.
Generates a control signal and sends the received signal to the shift register 104.
Is read serially. On the other hand, the address comparison circuit 103
Terminal processing from "1" to "D"
The address assigned to the device is given.
Address and a predetermined bit position of the shift register 104
The read data and the address comparison circuit 103
Are compared and the shift register 10
4 is transferred to the I / O buffer 105 and
Given to equipment. The control circuit 101 advances by a clock.
Generates sequential control signals
Then, the data based on the reception signal RXD is transferred to the I / O buffer 10.
After giving it to 5, followed by an I / O buffer
Parallel data from shifter 105 to shift register 104
And transmit it from an external device to the central processing unit 10.
Serial data into the shift register 104
Prepare as. Then, this data is transferred to the shift register 10.
Read out serially from 4 and transmit as transmission signal TXD
It is sent to the road 20. At this time, the received signal RXD
The transmitted address is added to the transmission signal TXD as it is and transmitted.
Therefore, the central processing unit 10 transmits the address transmitted by itself.
The transmission signal TXD
1 cycle by half duplex method
Transfer of the minute data is completed. In this way, the central processing unit 10 executes the next terminal processing.
Send data to the management device and repeat this
In this way, a plurality of terminal processing devices 30 to 32 can communicate with each other.
Data exchange is performed periodically, enabling multiplex transmission.
You. FIG. 6 shows the DIO mode shown in FIG.
A block diagram illustrating one embodiment of a CIM in further detail.
5, the same or equivalent parts as those in FIG.
In FIG. 6, reference numeral 301 denotes a reception signal RXD
A synchronous circuit for generating a start-stop synchronized clock,
302 is a two-phase clock φSAnd φMA counter that generates
303 is a counter for sequential control, and 304 is a counter for sequential control.
Counter that generates various control signals from the output of
Cans decoder, 305 is an abnormality detector, 306 is an I / O
Address decoding for input / output switching selection of buffer 105
307 is a 4-bit comparator for address comparison.
308, an error detection circuit, and 310, two AND gates.
Gate and one NOR gate, 311
Exclusive OR gate for error detection, 312
AND gate for data transmission, 313, 314 try
It is a state buffer. Note that the shift register 104
Is 25 bits (24 bits + 1 bit) and I / O buffer
The key 105 has 14 ports (14 bits). First, when the DIO mode is selected,
The A / D control circuit 106 does not operate, and the shift
The data content of the register 104 is as shown in FIG.
o 6 bits from 0 to No. 5 are not used.
The 14 bits up to No. 19 are the data of the I / O buffer 105.
Data DIO. And No.20 to No.23
Up to 4 bits are allocated to address data ADDR
No. 24 is assigned to the start bit. What
Note that the number of bits allocated to DIO data is 14
Is that the I / O buffer 105 has 14 bits.
It is because it has become something. Also, because of this,
In the CIM according to the embodiment, connection to the I / O buffer 105 is possible.
The maximum number of active external loads is 14. The data transmission method according to this embodiment is
This is called a step-synchronous, bi-directional, inverted duplex transmission method.
Digital data by NRZ (nonreturn to zero) method
The transmission waveform is shown in FIG.
It has become. That is, from the CIM on the CCU side to the LCU side
A frame for transmitting data to the CIM of the received frame,
Conversely, a frame transmitted from the LCU to the CCU is transmitted.
If it is a frame, both the received frame and the transmitted frame
74 bits, so one frame is 148 bits
ing. Then, the reception frame and the transmission frame
Have the same frame configuration.
There is a bit “0” followed by one bit for start-stop synchronization.
A start bit consisting of a bit "1" is provided.
Followed by 24-bit reception data RXD or transmission data
TXD is transmitted in NRZ signal format, and
Data RXD (bar superscript) or TXD (bar
(Superscript) is transmitted. In addition, this anti
Transfer data RXD (with bar) or TXD (with bar)
The transmission is performed for transmission error checking. As described above, in this embodiment, a half
Since multiplex transmission is performed by the duplex method, the reception frame
The first four bits of the data RXD of the
Address data of the LCU to be called
ADDR is added as shown in FIG.
TXD data TXD transmitted from the LCU
The same address data ADDR is appended to the first 4 bits of
Transmitted. The transmission frame is transmitted from the LCU side.
Is only the LCU called by the CCU?
The address is not added to the transmission data TXD
Also, on the CCU side, the data is from any LCU
Can be immediately determined. Therefore, the transmission frame
It is not necessary to add an address to the data TXD,
The first 4 bits of data TXD are
Data that does not match any address may be used. Here, returning to FIG. 6, the address of the CIM is
explain about. As described above, in this embodiment,
Is a different 4-bit CIM for the LCU.
Address is assigned, and based on this address,
Multiplex transmission of data by the duplex method is now performed.
ing. This address is stored in each CIM
Connected to comparator 307
4 inputs 20~ 2ThreeAnd these inputs
Data to be given ADDR0~ ADDR1By the CI
The address of M is specified. For example, if the address of the CIM is "10"
Address data ADDR.0= 0,
ADDR1= 1, ADDRTwo= 0, ADDRThree= 1, and
And input 20~ 2ThreeSo that (1010) is entered in
I just need. In this embodiment, data "0" is not
And data "1" is the power supply voltage VccRepresented by
Input for address "10".0, 2TwoConnect
Ground, input 21, 2ThreeTo the power supply. By the way, in this embodiment, the address input
20~ 2ThreeIs also input to the address decoder 306, and the
The direction of the I / O buffer 105 is controlled by the output.
It has become. As a result, if you specify an address,
Which of the 14 terminals of the I / O buffer 105
It is determined whether it will be a data output port. In this embodiment, the address is
It corresponds to the number of output ports as it is. Follow
Now, if the address is defined as "10", the I / O
10 out of the 14 terminals of the
Control is performed so that the remaining four ports become input ports. Although not shown in FIG. 6, this ad
The output of the address decoder 306 is the sequence of the control circuit 101.
Also provided to the decoder 304, which in FIG.
As described, the operation mode of this CIM is switched.
It has become so. That is, in this embodiment,
CIM with address set to “0” is in MPU mode,
CIM with the address set between “1” and “D” is DIM
In IO mode and address is either "E" or "F"
The CIMs set in the mode operate in AD mode
To be. Next, the control circuit 101 and the synchronous circuit 102
The function will be described. In this embodiment, FIG.
As already explained, the start-stop synchronization method is adopted.
As a result, both received and transmitted frames
Before transmission, 25-bit "0" must be
Inserted, and then as one start bit
“1” data is inserted (FIG. 8). Therefore, the synchronization circuit 301 determines the maximum value of the received frame.
Start bit following the first existing 25-bit "0"
Of the internal clock is synchronized.
Therefore, until the next received frame appears,
Operated by internal clock bit-synchronized with the timing of
Will be carried out. The counter 302 is synchronized
Two-phase clock from the internal clock synchronized on
Hook φSAnd φMTo produce This makes the clock φSAnd φM
Is phase-synchronized with the received data RXD
It will be. The sequence counter 303 is a synchronous circuit 30
2 indicates the start bit rising detection timing
Receiving the signal, the specific count value, for example, the state of count 0
State, and then the clock φSOr φMBy
Be counted. Therefore, the output of the count
The control procedure for the entire M can be determined, and the count
Operation of the CIM at an arbitrary timing
Can be found in which step is. Therefore, the counter 303
To the sequence decoder 304, and the CIM
Control signals required for operation, for example, RXMODO, TXM
ODE, READ, SHIFT, etc.
All control signals are generated by the sequence decoder 304
Like that. In other words, this embodiment uses the clock
φS, ΦMIs a sequence control method by
Yes, therefore, decoding the output of counter 303
Then, all necessary controls can be performed. Next, the transmitted data RXD is
Whether it is data for CIM, that is, from CCU
The challenge by transmitting the received frame is to itself
The operation for determining whether or not is the case will be described. Already explained
As described above, one input of the comparator 307 has an input
20~ 2ThreeAddress data from the
Of the shift register 10420Bit to Q
twenty threeUp to bits of data are provided. The comparator 307 has both
MYADD only when the input data of
Output R. Therefore, the received data is stored in the shift register 104.
RXD is input and its Q20Bit to Qtwenty threebit
Up to the address prefixed to the data RXD
At the time the data (see Fig. 7) is stored.
The output signal MYADDR of the data 307 is checked.
If this signal MYADDR is "1", the data
The RXD is for you and the call from the CCU is
It turns out that it is for minutes. For this reason, the error detection circuit 308
No. COMPMODE is supplied and the specified timing
Captures the signal MYADDR and turns it to “0”.
INITIAL is generated when the
Sets the sequence counter 303 to count 0
Then, the operation of the entire CIM is restored and the next data transmission is entered.
Prepare to be empowered. On the other hand, when the signal MYADDR becomes "1"
The INITI is detected by the error detection circuit 308.
Since there is no occurrence of AL, the operation of CIM
According to the count value of the current counter 303 at that time.
And continue as it is. Next, the transmission error detecting operation will be described.
You. In this embodiment, as described with reference to FIG.
Data transmission by the continuous transmission method is adopted.
Transmission errors can be detected. For this reason, the shift register 104
First Q of0Bit and last Qtwenty fourExcle from a bit
The data is supplied to the ship OR gate 311 and this gate
311 is output as signal ERROR (bar superscript).
To the error detection circuit 308. The sequence decoder 304 has a start
RXD and RXD (bar superscript) following the packet (Fig. 8)
During the transmission period, the control signal RXMODE is output to output the composite signal.
The lower gate of the gate 310 is opened, whereby the transmission line 2 is opened.
Shift register using data from 0 as serial signal SI
Input to the data 104. At this time, the composite gate 310
Is supplied from the transmission line 20 because the
Incoming data is inverted and input to the shift register 104
Is done. Therefore, the start frame of the received frame (FIG. 8) is
The 24-bit data following the bit is stored in the shift register 10.
4 is input to the shift register 104
Q0Bit to Qtwenty threeReceived signal RX
D inverted data RXD (bar superscript) is written
Become. Next, as is apparent from FIG.
After the received signal RXD is transmitted,
The 24-bit inverted signal RXD (with bar superimposed) is transmitted
When it comes, it is inverted by the composite gate 310 and the data
RXD, shift register as serial signal SI
Input to 104 is started. As a result, Q of shift register 1040To
The first bit of the inverted signal RXD (with superscript bar) is inverted
At the input timing, the reception
The inverted data of the first bit of the transmission signal RXD is the shift register.
Q of data 104twenty fourBit 2 of the inverted signal RXD
The data of the first bit is Q0At the timing written to
The data of the second bit of the reception signal RXD is Qtwenty fourBit
In the end, the inverted signal RXD is shifted.
Serially written to the register 104 one bit at a time.
At each bit timing, the shift register 1
04 Qtwenty fourBit and Q0The bits are opposite to the received signal RXD.
Data of the same bit of the inverted signal RXD (superscript bar) is always
It will be written correspondingly. By the way, as described above, the exclusive
The shift register is connected to the two inputs of the Shiv OR gate 311.
Q of data 1040Bit and Qtwenty fourBit data is input
ing. Therefore, the reception signal RXD and the inverted signal RXD (bar
-If no error occurred during transmission of (Superscript)
During transmission of the inverted signal RXD
The output of the exclusive OR gate 311 is always "1"
It should be. Because the received signal RXD and its inverted signal
The corresponding bit of RXD (bar superscript) must be "1"
And “0” should be inverted, and as a result, the gate 3
Input of 11 always indicates mismatch, otherwise it is transmission
This is because only when there is an error in. Therefore, the error detection circuit 308 outputs the inverted signal
24-bit period during which RXD (bar superscript) is transmitted
During, monitor the signal ERROR (bar superscript),
Generates a signal INITIAL when it reaches “0” level
Then, an error detection operation can be obtained. Note that such a data transmission system is
Transmission error detection method detects transmission errors
And then repair it to get the right data
In this embodiment, transmission errors are detected.
When it is issued, the data reception operation of that frame is
Method to cancel and prepare for receiving data of the next frame
Thus, the configuration is simplified. Next, in the DIO mode of the embodiment of FIG.
The overall operation of data transmission in FIG.
This will be explained by the chart. φM, ΦSIs the counter 302
The two-phase clock output to the synchronization circuit 301
Based on the internal clock generated by the
Have been generated. On the other hand, RESET (with bar)
Signals supplied to the CIM
2 is the same as the reset signal of the
Is supplied for every CIM in the system.
External reset circuit when necessary, such as when power is turned on.
To initialize the entire transmission system.
U. When initialization is completed, a sequence count
The counter 303 sets the count value to 0, and
ΦMBy step by step. And the count value becomes 25
The IDLE signal and RXENA signal
And the CIM enters the idle state and
The sequential control based on the count value of the
Is stopped, and the tri-state buffer 313 opens to receive a signal.
It will be in a reliable state. At this time, after initialization, the
Until the count value of the cans counter 303 reaches 25
The reason that the signal is not receivable is the synchronization
This is for start-stop synchronization by the circuit 301, and the reception signal RX
Since D is 24 bits, a minimum 25-bit “0” period
Because it is necessary to give. When entering the idle state, the sequence
The counter 302 has a clock φS, ΦMStep by count
While the sequence decoder 304 outputs the control signal I
DLE and INITIAL remain generated and received
It is in a state of simply waiting for a signal to be input. What
For this purpose, as shown in FIG.
25-bit “0” is added at the beginning of the frame
It is. In this way, the system enters the idle state,
Well, time t0It is assumed that the received signal RXD is input at. So
Then, a one-bit star is placed at the head of this signal RXD.
Tobit is attached. So this start bit
Is detected by the synchronization circuit 301, and bit synchronization of the internal clock is performed.
I take the. Therefore, after that, the transmission operation for one frame is performed.
Data RXD, RXD (bar superscript) and
Lock φMAnd φSSynchronization with the internal clock depends on the stability of the internal clock.
The start-stop synchronization function is obtained. Sequence when a start bit is detected
The counter 303 has a count output of 0 (hereinafter, this counter
The output data of 303 is denoted by S, for example, in this case,
(Represented by S0).
The decoder 304 stops the control signal IDLE and outputs the control signal RXM
ODE is generated. Also, in parallel with this,
The shift pulse SHIFT is supplied to theMTo
Supplied synchronously. As a result, the 48 bits following the start bit
Signal RXD and inverted signal RXD (bar superscript)
8) Syria from transmission line 20 through composite gate 310
1 bit in the shift register 104 sequentially
It is written while shifting. At this time, the first 24-bit reception signal R
XD is the data R inverted by the composite gate 310.
XD (bar superscript) is sequentially stored in the shift register 104.
Since it is written in real, 24 bits following the start bit
Period, that is, whether the sequence counter 303 is S1 or not.
At the point when the shift register 105 reaches S24,
0Bit to Qtwenty threeRXD is inverted for bits up to
Data RXD (with bar superimposed) will be written.
You. Here, the clock φ of the next S25MRising
Outputs the control signal COMPMODE (with bar above),
The error detection circuit 308 functions. And continue in this state
Input of the inverted signal RXD (with superscript bar)
As a result, this time, the inversion signal RXD (bar superscript) was inverted.
The data RXD is equal to the Q of the shift register 105.0From a bit
It is written in serial. As a result, the shift register is shifted from S1 to S24.
Data RXD (bar superscript) written to the data 104
From the first bit to Q of shift register 104twenty fourBit position
And the sequence counter 303 determines from S25 to S4
Overflows one bit at a time until it reaches 8.
It is being done. On the other hand, in parallel with this, the shift register 10
Q of 4twenty fourInvert signal RXD through bit position (bar superscript
RXD) in sequence from the first bit.
It is written in real time, during this time exclusive
Transmission error by the gate 311 and the error detection circuit 308
Detection is performed as described above. Accordingly, the sequence counter 303 determines that S4
At the time when the value of the shift register 104 becomes0Bit
To Qtwenty threeUp to the bit, the same data as the received signal RXD
Data RXD is written as it is. Therefore, at the timing of S48, the
By examining the output signal MYADDR of the
The above-mentioned address is confirmed, and the data
Data RXD is for itself,
Whether or not the call from the CCU is addressed to you
Is determined. It is to be noted that the sequence counter 303 determines in S25
A transmission error is detected during a period between
Or, if an address mismatch is detected, an error detection circuit
308 is a control signal INITIAL when S48 is reached.
At this point, the sequence counter 303
Is returned to the state of 25 bits before idle,
All receiving operations for received frames are canceled,
Prepare for the next signal input. By the way, the sequence counter 303 determines in S25
No transmission error is detected during the period from
When no mismatch of the dress is detected, that is, S48
When the error detection circuit 308 becomes INITIAL,
When no signal is generated, when S48 is reached
At this point, the sequence decoder 304 outputs the control signal WRITES.
Generate TB. As a result, at the time of S48, INI
Either the TIAL signal or the WRITESTB signal
Occurs, and both transmission errors and address mismatches occur.
If not, the former, and transmission errors and
If one of the two
Each will be output. Now, at the time of S48, the control signal WRITE
When STB is output, the shift register 10 at that time is output.
4 data is written to the I / O buffer 105 in parallel.
As a result, depending on the received data RXD,
The received data is output to the output port of the I / O buffer 105.
From the external load 51 to any one of the external loads 51 to 56. In this case, the operation is performed in the DIO mode.
Therefore, as described with reference to FIG.6Bit
To Q19Up to 14 bits are the data RXD
And how many of the bits are I
Whether the output port of the / O buffer 105 is
As already explained,
It is. When the processing reaches S48, the reception frame
All the processing is completed, and the next S49 starts to process the transmission frame.
(Fig. 8). First, what processing is performed from S49 to S72
Also do not. This is the start-stop synchronization of the CIM on the CCU side
IDL in the processing of the received frame described above.
For the same purpose as the operation during the period set before E
It is. In S73, the sequence decoder 304
Outputs a control signal PS.
The data 104 is a parallel data reading operation, and the I / O
External loads 51-56 are connected to the input port of the buffer 105.
Input the data given in parallel. The number of bits of the data read at this time is
Out of the ports of the 14-bit I / O buffer 105,
The bits used as output ports in the processing of
This is the number of remaining bits subtracted. For example, as mentioned above,
When this CIM address is set to 10, output
Since the number of ports is 10, the input ports
The number of bits is 4 bits. The parallel data for the shift register 104
The data is written in the shift clock SH together with the signal PS.
Since one bit of IFT is required, the clock of S73 is used.
φSAfter the signal SP is started by the clock of S74,
φSThe shift pulse SHIFT synchronized with the control signal TX
Supplied before the rise of MODE. At this time, as is apparent from FIG.
, A start bit is added before the transmission data TXD,
Further, an address is added to the first 4 bits of data TXD
Must. Therefore, it is omitted in FIG.
Is a shift register only while the signal PS is being generated.
104 Qtwenty fourA signal representing data "1" is in the bit,
And Q20Bit to Qtwenty threeInput 2 in the bit part0~
2ThreeAddress data is supplied from
I have. Thus, the DUMM from S49 to S73
25-bit data required for start-stop synchronization depending on the Y state
After the “0” transmission period is set, the control is performed when entering S74.
The signal TXMODE rises, which causes a TX (transmit) state.
Be in a state. The generation of this signal TXMODE causes the composite
The upper AND gate of the gate 310 is activated, and
The AND gate 312 is activated. Shift by this
Q of register 104twenty fourBit data, start
Bit data “1” passes through the AND gate 312.
And sent out to the transmission line 20. Then, the subsequent clocks after S75
φMShift clock SHIFT generated in synchronization with
The contents of the shift register 104 are shifted one bit at a time.
Qtwenty fourFrom bit through AND gate 312
It is sent out to the transmission line 20, and the transmission frame (FIG.
8) Transmission of the transmission signal TXD including the start bit is performed.
Be done. On the other hand, the shift register 104
In parallel with the data reading,twenty threeIs it a cell of bits
The data read out is inverted through composite gate 310.
Supplied to the serial input of the shift register 104
I have. As a result, after S75, the shift register 104
Q0Bit to Qtwenty threeThe transmission data written up to the bit
TXD is one bit by the shift clock SHIFT.
Are sent out to the transmission line 20 one by one,
Q of shift register 104 as serial data SI0
The data is sequentially written from the bit. Therefore, the period during which the control signal PS is generated
Inside of the shift register 104 Q0Bit to Qtwenty threebit
All the transmission data TXD written in the cells of
At the time of this0Bit to Qtwenty threeBit of cells
Is the inverted data T instead of the previous transmission data TXD.
XD (bar superscript) is stored. Therefore, the reading of the transmission data TXD is
After the completion, the shift
Read inverted data TXD (with bar superimposed) from register 104
Starts, and the inverted data TXD (bar superscript)
Is transmitted to the transmission line 20 following the transmission data TXD.
Will be. When the process reaches S122, the shift register
Q of data 104twenty threeBit to Q0Inverted data up to bit
Is completed, the control signal TXMODE falls.
Transmission of the shift clock SHIFT is also stopped.
End the state. Then, the clock φ that follows S122
MGenerates the control signal INITIDL, and the sequence
Counter 303 is set to S0 and CIM is idle
(IDLE) Return to the previous signal reception preparation state. Therefore, according to this embodiment, start-stop synchronization,
Half-duplex multiplex communication using bidirectional, inverted double transmission
To ensure the connection between CCU and CLU, the LCU side
CIM with DIO mode operation function required by
Can be obtained. Next, the AD mode of the CIM according to this embodiment will be described.
The operation in the mode will be described. As mentioned above, C
Electrical equipment to exchange data with CCU via IM
The device is not capable of outputting analog signals such as various sensors.
Part loads 57 and 58 (FIG. 2).
The embodiment includes an A / D control circuit 106,
Also has the function of controlling the A / D 40
I have. Then, the operation mode of the CIM at this time is the AD mode.
Mode. And, as already explained,
In the embodiment, input 20~ 2ThreeAddress data to be given to
Therefore, the operation mode has been set.
The address data corresponding to the AD mode is shown in FIG.
Thus, "E" and "F" are shown. Therefore, the CIM according to this embodiment is
When set to “E” or “F”, the function block
The locked state is as shown in FIG. And like this
The data stored in the shift register 104 when set
The contents of the data are as shown in Fig. 7 and are from No. 0 to No. 7.
8 bits via the A / D 40 are connected to external loads 57 and 58
No. 8 and No. 9 for storing AD data imported from
Two bits are for storing AD channel data.
No. 10 to No. 19 for DIO data
Bit. Others are in DIO mode.
Same as when. The AD channel data at this time is
Is the channel when using multi-channel AD.
This is the data for designating the A / D 40 in this embodiment.
2 bits
Is assigned. FIG. 11 shows the embodiment of FIG. 10 in more detail.
FIG. 11 is a block diagram showing the details.
Is a shift register, 312 is a register, 322 is a game register.
, 323 is an A / D control counter, and 324 is an A / D control counter.
Control signal generation circuit, 325 is for A / D channel selection
It is a counter of. Others are described in the case of FIG.
It is the same as the place. The shift register 320 has 8 bits.
Then, take in serially from external A / D40 and
Data (external load 57, 58, etc.)
A / D conversion of analog data)
Readout and A / D40 channel
2 bits provided from the counter 325 for designating
Receive the channel selection data of
It functions to read out serially and supply it to the A / D 40. The register 321 is a 32-bit register.
/ D40 is 8 bits and 4 channels.
Use as 8-bit 4-channel register
Data taken from A / D40 in 8 bits
Is stored for each channel. The gate 322 also corresponds to the register 321.
32 bits (8 bits, 4 channels)
Q of shift register 104 for data transmission8Bit and Q9
AD channel data read from bit cell
7) is controlled by the channel of the register 321.
Select one, and shift the 8-bit data to the shift register
Q0Bit to Q7AD data (Fig. 7)
It works as writing. The counter 323 has a clock φMCount
And the entire operation of the A / D control circuit 106 is
It acts as a control that is both official and cyclic.
You. The A / D control signal generation circuit 324 includes a counter 323
Including a decoder and a logic circuit for decoding the output of
Various control signals necessary for the operation of the entire D control circuit 106
It works to happen. Next, the operation of the entire A / D control circuit 106 will be described.
The work will be described. In this embodiment, the counter 323
Sequentially corresponding to each of the count outputs
The control proceeds, the number of steps is 27, and the count output is 0.
(This is called S0) and the count output 26 (this is S0)
6), one cycle of control is completed, and A / D4
Data of one channel of 0 is taken into register 321
It is. First, when the control of one cycle starts, the signal
Signal INC causes a channel selection counter 325 to
This causes the output data of the counter 325 to be decremented.
The data is (0,0) → (0,0,
1) → (1,0) → (1,1) → (0,0)
You. The output data of this counter 325 is shifted
Register 320 is written in parallel to the first two bit positions
And then read out as serial data ADSI
/ D40. In parallel with this,
The output data of the data 325 passes through a decoder (not shown).
Is also supplied to the register 32,
8 bits of the channel to be selected. Subsequently, A / D 40 is the serial data AD
It depends on the channel selection data input as SI
Select the analog input channel corresponding to the
8 bits after converting log data to digital data
Shift register 320 as serial data ADSO of
Of the shift register 320.
Store. Thereafter, the data is stored in shift register 320.
The converted 8-bit digitally converted data AD is
The data is read out in parallel at a predetermined timing,
Register 3 previously selected by the output data of
Transferred to 8 bits of 21 predetermined channels,
The control operation of the controller ends. Thus, for example, the output data of the counter 325
If the data is (0,0), the A / D40
Channel 0 analog data is digitized and
The data stored in the 8 bits of channel 0 of the
, The counter 323 is reset to S0 and the next cycle
The counter 325 is incremented.
The output data is (0,1), this time the channel
The analog data of register 1 is digitized and
21 bits of channel 1 are accommodated in 8 bits. Therefore, according to this embodiment, the A / D control
The operation of fetching data from the A / D 40 by the circuit 106 is as follows.
Sequence counter 303 and sequence decoder 304
Performed independently of data transmission process by timing
The data of each channel of the register 321 is 4 cycles.
Is refreshed once per AD control operation of the
Input to four channels of A / D40 in the register 321
Analog data is stored for each channel.
And always prepared as 8-bit digital data
Will be. Therefore, the reception signal RXD is now transmitted from the transmission path.
Is input, and the address data attached to
Assume that it was for CIM. In this case,
As described above, the address data is “E” or
"F". Then, the input of the received frame is completed.
At the time (S48 in FIG. 9), the data is written into the shift register 104.
The data format used is the AD mode shown in FIG.
Therefore, the Q of the shift register 1048Bit and Q9
The AD channel data consisting of 2 bits is stored in the bit.
Has been delivered. Therefore, this AD channel data is
Read when signal WRITESTB occurs at 48
Which allows the gate 322
Is selected. As a result, the signals PS and S are output in S73 (FIG. 9).
At the time when HIFT occurs, the four
Of the channels, Q of shift register 1048, Q92
Only the AD data of the channel selected by
And it is the Q of shift register 1040From a bit
Q7Written to the 8-bit part up to the bit. And
This is included in the transmission signal TXD in the transmission state after S74.
And transmitted to the CCU. In this embodiment, as described above,
The reception processing of the reception signal RXD and the transmission signal T
Regardless of the XD transmission processing, it is always stored in the register 321.
Is provided with AD data. Therefore, this embodiment
Then, at what timing,
Even if D appears, the transmission signal TX by AD data immediately
D can be transmitted, and the operation of A / D 40
A / D conversion operation without affecting transmission processing
There is no danger that the transmission speed will decrease due to the necessary time.
No. In this embodiment, the CIM is implemented as an LSI.
A / D40 is external and CIM is used for general purpose
In this case, the cost is reduced. Toes
Therefore, as described with reference to FIG.
One type of CIM is set by the CIM of LCU30-31
As the CIM of the LCU 32 or the CCU
It can be used as 10 CIMs 33. However, at this time, the A / D
When used as CIM 30, 31, 33
It is wasteful and, in general, the centralized wiring
When applied to the stem, it is used as CIM32.
Use as the other CIM30,31,33
A / D is included in all CIMs
There is not much merit by storing. for that reason,
The A / D is external. However, since this A / D is external,
As is clear from 11, for the external A / D40
Four connection terminals are required, and the terminal
This may increase the number of components. Then, one of the present invention
In the embodiment, when the CIM is set to the AD mode,
Is four of the 14 ports of the I / O buffer 105
Is switched as a connection terminal for the A / D 40.
It is. That is, in the embodiment of the present invention, the I / O bus
The buffer 105 has 14 ports, which are shown in FIG.
As can be seen, the CIM is set to DIO mode
May be used as input / output ports
However, there are at most 10 ports in AD mode.
No. 4 ports No. 11 to No. 14 shown in FIG.
Is not used for input / output of DIO data
You. Therefore, the remaining four ports are set in the AD mode.
To switch and use it as a terminal pin for A / D40.
For example, even if the A / D is externally connected, the number of terminal pins does not increase.
Increased versatility when implementing LSI, enabling cost reduction
Become. Next, the MPU module of the CIM according to this embodiment will be described.
The operation in the mode will be described. Clear from FIG.
Thus, the CIM according to this embodiment is switched to the MPU mode.
To change the address, the address ADDR0~ ADDRThreeTo
Address set to “0”, that is, input 20~ 2ThreeAll
It may be maintained at the ground potential and set to (0000). This MPU mode is the CIM shown in FIG.
33 to provide the necessary functions when used as
Mode, used in DIO mode and AD mode
Unlike the case, data is given to the microcomputer of CCU10.
When it is received, it is transferred to the CIM 30-31 of the predetermined LCU.
Sent for any of them and returned accordingly
After receiving the data, transfer the data to the microcomputer.
To perform the transmission interface operation.
You. Incidentally, in the description so far, FIG.
As explained above, the explanation from the viewpoint of CIM on the LCU side
Was mainly used, so CIM on the CCU side
A frame that transmits data to the CIM is a received frame,
On the other hand, a frame transmitted from the LCU to the CCU
I've made it a frame, but from the point of view of each CIM
The frame that sends data is the transmission frame, and the data
The frame when the data is accepted by the
I will tell. Therefore, after that, a certain CIM, for example, CI
The transmission frame in M33 is another CIM, for example, CIM3.
0 indicates a received frame, while transmission on the CIM 30
The frame is a received frame in the CIM 33. FIG. 12 shows the CI according to the embodiment of the present invention.
Address “0” is set in M, and the CPU operates in the CPU mode.
Is a rough functional block diagram when it is controlled to
3 shows a state of the CIM 33 in FIG. As described above, in this embodiment,
Indicates that three CIMs with the same configuration
Mode, that is, CPU mode, DIO mode, AD mode
It can fulfill the function in any state of
Therefore, the state shown in FIG. 12 corresponds to the state in the CPU mode.
The CIM according to this embodiment represents a functional block.
It shows that the configuration is different from that of FIG.
Not. As is apparent from FIG.
The I / O buffer 105 (FIG. 3) and the A / D 40
Function stopped, 14-bit data between microcomputer
It is tied by bus. Note that the terminal pins at this time are
Shared with the input / output port of the
Needless to say, there is no increase or decrease in
Nor. And the input / output of these 14 bits (14)
8 bits are for data and the remaining 6 bits are for control signals.
No. Now, in this CPU mode, the shift
As shown in FIG.
0To Qtwenty threeAll 24 bits up to become MPU data
The microcomputer uses an 8-bit data bus to
The shift register 104 is accessed.
You. On the other hand, the control circuit 101 controls the microcomputer.
Receiving the control signal,0~ Qtwenty threeAll of
When the data from the microcomputer is stored in all the bits,
At the time t when this data is stored.
xStarts transmission of a transmission frame as shown in FIG.
I do. Thus, the transmission frame is transmitted from the CIM 33.
When sent, the CIMs 30-32 on the LCU side
One responds and then the CIM sends
Time txFrom one frame (148 bits) transmission time
Time t has elapsedx, The shift register 104
Some CIM (CI
M30-32) is the case.
Will be delivered. The control circuit 101 of the CIM 33
At this time tyIssues an interrupt request IRQ (with bar above)
And the microcomputer responds accordingly to the shift register 104
Read data and end data transfer for one cycle
You. In this case, data transfer between CIMs
The operation is performed in the DII mode described with reference to FIG.
It goes without saying that it is the same as the case. FIG. 14 shows the CIM 33, that is, the MPU.
Function showing one embodiment of CIM when set to mode
Functions required in MPU mode in the block diagram
Only corresponding blocks are shown.
400 and 402 are 8-bit switches, and 404 is an 8-bit switch.
The other is the same as the embodiment of FIG.
The same. In this MPU mode, shift register 1
04 Q0Bit to Qtwenty three8-bit input / output up to bit
Connected to the microcomputer's data bus via
Data is sent to and received from
Q of shift register 1040~ Qtwenty threeBits of three groups
Loop, Q0~ Q7(Reg3), Q8~ QFifteen(Reg
2), Q16~ Qtwenty three(Reg1)
No, they are accessed sequentially in a time-division manner. Therefore, for this reason, the 8-bit switch 4
Register given from microcomputer using 00 and 402
Switch 4 according to the combination of select signals RS0 and RS1
00 and the control signal of the switch 402.
Control signals STB1-3, and input / output terminal pins 7-14
Connect to Reg1, Reg2, and Reg3 sequentially
And the microcomputer is accessed three times by 8 bits
Transfer of data between the shift register 104 and the
It has become. Then, in this case, the shift
When writing data to the register 104, the microcomputer
Data read time from the shift register 104
To compensate for the difference between the
Switch 404 is provided to temporarily store data from the microcomputer.
After writing, write. In the MPU mode, data reception
Address at the beginning of 24-bit data
Is not performed in the CIM 33. Follow
And input 20~ 2ThreeThe address (0000) given to
The address decoder 306 sets this CPU mode to MPU mode.
Used only to configure IM and
The parator 307 is not operated. Next, in the MPU mode, the CIM 33
Input / output terminal pins 1 to 6
It is a transmission path, which allows the microcomputer to send CIM
Clock E and chip select
Signal CS (with bar), read / write signal RW, and
Given the above register select signals RS0 and RS1,
On the other hand, an interrupt request signal IRQ (bar
(Superscript) is output to the microcomputer. FIGS. 15 and 16 show processing circuits for these signals.
In one embodiment, which is omitted in FIG.
01, first, the clock E is
And processed together with the internal clock CLOCK
As a result, two-phase clocks EH and EL are generated. Soshi
And these clocks EH and EL and signals from the microcomputer
RW, CS (with bar above), RS0, RS1 are the times of FIG.
Signal STB0-3 and RESD0-1
Be born. In addition, the signal MPU sets the CIM to the MPU mode.
This signal becomes "1" when set. Further, the signal processing by the circuit of FIG.
FIGS. 17 and 18 show the timing.
FIG. 17 shows the generation timings of the signals READ0 to READ3.
FIG. 18 shows the generation timing of the signals STB0 to STB3.
Are respectively shown. In these figures, signal RED0
To 3 occur and the signals STB0 to STB0
3 is determined by whether signals RS0 and RS1
The combination is determined by the
Group Reg1, Reg2 of shift register 104
Reg3 is selected. By the way, these signals READ0 to READ3,
The signals READ0 and STB0 of STB0 to STB3 are
Used for group selection of shift register 104
However, an interrupt request signal IRQ (bar superscript) described later is issued.
Used raw. Therefore, selection by signals RS0 and RS1 is performed.
FIG. 19 shows the selected state. Next, FIG. 20 shows an interrupt request signal IRQ (bar
FIG. 14 shows an embodiment of the generation circuit of FIG.
The CIM 33 is included in the circuit 101 and receives data.
When completed, store received data in shift register 104
WRITE STB (FIG. 9)
And the time when the signal IRQ is generated by the signal READ0.
And the input / output terminal pins 7-14.
One of the data lines D0 to D7 connected to the tabus
One, for example, the signal DATA from the data line D0 and the signal S
And a circuit for generating a signal MASK1 from TB0.
The operation is shown in the timing charts of FIGS.
It is shown. FIG. 18 shows a signal among these figures.
DATA becomes "0" at the generation timing of STB0.
FIG. 19 shows the operation when the signal DATA is "1".
It shows the operation when the state is changed to.
In the circuit of FIG. 20, the signals DATA and STB0 are supplied.
The flip-flop set is called Reg0. Follow
Therefore, in the circuit of FIG. 20, "1" is written in Reg0.
The interrupt request signal IRQ (bar superscript)
Will be hung. Next, the embodiment shown in FIG.
CIM is set to MPU mode
The overall operation of data transmission in the timing of FIG.
This will be described with reference to a chart. In the embodiment of the present invention, the CIM 30
The operation of each of the sequence counters 303 is
Controlled by the count output of
When the count output of the counter 303 is set to a predetermined value,
If it can be transposed to any operating state
Is as described in connection with FIGS.
This means that whatever mode the CIM is set to
There is no change. By the way, as shown in FIG.
CIM33 set to the password is combined to transmit data.
As shown in FIG.
Or CIM30-32 set to AD mode.
ing. And this CIM is in DIO mode and A
When it was set to D mode, it was explained in FIG.
When data from another CIM is received,
Continue to transmit its own data for one frame
Data transfer operation, so to speak, a passive operation.
Only work is done. On the other hand, MPU like CIM33
If the mode is set to
When the data is written to the shift register 104,
It requires an active action to start communication, so to speak. So
In this embodiment, the active data transmission starts
For the group selection of the shift register 104
Use the signal STB3 among the signals STB1 to 3
I have to. This corresponds to the mask for the shift register 104.
Writing of transmission data by icons is Reg1, Reg
2 and Reg3 in this order, so that the signal STB3
When the error occurs, the microcomputer
Writing of the data to the shift register 1 is completed.
04 stores all data to be transmitted this time.
is there. Then, returning to FIG. 23, at a certain point in time,
The microcomputer of CCU10 (Fig. 2)
It is assumed that data to be transmitted is prepared. Do so
And this microcomputer sends signals via input / output terminal pins 1 to 6.
CS (with bar above), RW, RS0, RS1 are CIM33
To the control circuit 101 in FIG.
Signals STB0 to STB3 are generated as described (FIG. 23, left).
8 bits of data sequentially from the data bus
To Reg1, Reg2, Reg of the shift register 104
Write in 3. On the other hand, the control circuit 101 outputs the signal STB
3, the sequence counter 303 stores “4”.
9 "is loaded. Sequence by this signal STB3
Time for setting the output data of the counter 303 to “49”
FIG. 24 shows an embodiment of the circuit, and FIG.
FIG. 25 shows the operating chart. Thus, the sequence counter 303 sets S4
9, the time tx(Figure 13)
Processing is started. Transmission from S49 to S122
Frame processing is in the case of DIO mode described in FIG.
This is almost the same as the shift register in this MPU mode.
The data to be transmitted is already written in the star 104
From S49 to S73, do nothing, just shift
Q of register 104twenty four"1" for the start bit
It is different from DIO mode only in writing.
It is. When the processing reaches S122, the signal INIT is output.
IAL occurs, and then the minimum time from S0 to S24
Enter idle state including pause. In other words, in MPU mode
Is different from the DIO mode,
Instead of waiting for the data to be received,
When writing of data to the
Data 49 is forcibly loaded into the
This will automatically start sending frames
-ing Thus, transmission from CIM 33 of CCU 10
When the transmission of the frame starts, as described with reference to FIG.
The transmission data TXD is transmitted to the CIMs 30 to 3 on the LCU side.
2 is received as reception data RXD,
Return data by CIM whose address matches
Data is transmitted, this time it is the received data RX
D is received by the CIM 33. The processing of the received frame at this time is also shown in FIG.
MPU mode is almost the same as DIO mode in
The only difference is that the address
It is. Then, from S0 to S48, the shift register
Data has been stored in the
If not detected, the clock φS of S48
When the signal WRITE STB rises, this causes
0 to the interrupt request signal IRQ (bar) as described in FIG.
-Superscript) occurs, and the signal is generated by the subsequent clock φM.
INITIAL occurs and this CIM 33 is idle
State and idle until the next signal STB3 is generated.
Keep state. In this manner, the interrupt request signal IRQ (with a bar above)
Is generated, the microcomputer in the CCU 10 receives this signal I
Jump to interrupt processing routine by RQ (bar superscript)
And fetches the received data from the shift register 104.
Now. At this time, the data from the shift register 104
For the capture, a switch 400 is used, as shown in FIGS.
The signals READ1 to 3 are sequentially supplied from the circuit described in step 16.
Shift shift via 8-bit data buses D0-D7.
Row of Reg1, Reg2, Reg3 of the register 104
What is done is as already explained.
You. By the way, in this embodiment, FIG.
As described, this signal IRQ (bar superscript)
The CCU10 microcomputer is configured to
By writing “1” to g0 (FIG. 20),
The signal IRQ (bar superscript) can be masked. Therefore, as shown in FIG.
Time of occurrence txAt the point of time when the signal STB0 occurs (see FIG.
Set the data bus D0 to “1” according to (lower left)
For example, the signal MASK becomes “1”, and then the signal WRI
Even when TESTB is generated, the interrupt request signal IRQ
(Bar superscript) is not supplied to the microcomputer,
The computer gives priority to other processing during the prescribed period as necessary.
Can do it. The release of the mask is performed as shown in FIG.
As is apparent from 0, data is generated at the time of occurrence of signal STB0.
If the bus D0 is set to “0” and “0” is written to Reg0,
Good. On the other hand, the microcomputer of the CCU 10
When performing IRQ (bar superscript) mask,
The signal IRQ shown in FIG. 20 was checked, and it was "1".
Data reception has been completed.
The data is taken in from the master 104, and it is set to "0".
If so, wait for the data reception to be completed. The signal I
RQ (bar superscript) occurs when data is taken in
From the signal READ0 that is released from FIG.
it is obvious. Therefore, according to this embodiment, the CCU
After transferring the data to CIM33,
Useless waiting time because other processing operations can be started
System that makes full use of its processing capacity by eliminating the need for
And at this time, the data of CIM 33
Data reception is completed, but other processes with higher priority
The mask can be activated for movement,
There is no danger that processing operations with higher priority will be interrupted
I can do it. [0155] Here, as shown in FIG.
CIM33 and DIO mode (or AD mode)
Data transmission by combination with specified CIMs 30-32
FIG. 26 shows the transmission operation in a state transition diagram. [0156] 【The invention's effect】According to the present invention, the register and the I / O
Are clearly limited, and as a result,
It is not only easy to make chips
After storing data in a register, I / O buffer
Transfer the data to the external loader
During this time, data can be checked as needed.
Input is possible, so that incorrect data can be
There is no danger of being output to the load,
High reliability at all times.
You can.

【図面の簡単な説明】 【図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モードとD
IOモードの組合わせによるデータ伝送動作を表わす状
態遷移図である。 【符号の説明】 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 shows the CPU mode and D in one embodiment of the present invention.
FIG. 10 is a state transition diagram illustrating a data transmission operation by a combination of IO modes. 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

───────────────────────────────────────────────────── フロントページの続き (72)発明者 長谷川 明 茨城県勝田市大字高場2520番地 株式会 社 日立製作所 佐和工場内 (56)参考文献 特開 昭58−97997(JP,A) 特開 昭56−21229(JP,A) 特開 昭58−112170(JP,A) 特開 昭54−19316(JP,A) 特開 昭51−32242(JP,A) 特開 昭58−136149(JP,A) 特開 昭57−147392(JP,A) 特許2502491(JP,B2)   ────────────────────────────────────────────────── ─── Continuation of front page    (72) Inventor Akira Hasegawa               Katsuta, Ibaraki Pref.               Hitachi, Ltd. Sawa Plant                (56) References JP-A-58-97997 (JP, A)                 JP-A-56-21229 (JP, A)                 JP-A-58-112170 (JP, A)                 JP-A-54-19316 (JP, A)                 JP-A-51-32242 (JP, A)                 JP-A-58-136149 (JP, A)                 JP-A-57-147392 (JP, A)                 Patent 2502491 (JP, B2)

Claims (1)

(57)【特許請求の範囲】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バッファに対する通信デー
タの書き込みは、伝 送エラーとアドレス不一致が無いこ
との確認後に実行されるように構成されて いることを特
徴とする自動車用データ伝送システム。
(57) [the claims] 1. A communication control computer that controls data transmission and reception between the terminal processing unit in accordance with a communication control program, is connected to the communication control computer, said end end process instrumentation
A first communication processing circuit having a register for temporarily storing transmission data and received data from location to the terminal apparatus
A central processing unit comprising: a reception data from the first communication processing circuit; and the terminal
A register for temporarily storing data indicating a state of the external load connected to the processing device ; and a register between the register and the external load.
A second communication processing circuit having an I / O buffer connected to the first communication processing circuit, and a communication line connecting the first communication processing circuit and the second communication processing circuit so as to be capable of data transmission. Automotive data transmission system. 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 executes the terminal processing.
A data transmission system for a vehicle, wherein data indicating a state of an external load connected to the device 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 processor <br/> receives the communication data, the second communication processing circuit of the terminal apparatus which has received the communication data, the data indicating the state of an external load connected to the end end processor And transmitting the data back to the first communication processing circuit via the communication line . 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. Between the terminal processing unit according to the communication control program
A communication control computer for controlling data transmission and reception ;
Is connected to the communication control computer, said end end process instrumentation
Data received from the terminal and data transmitted to the terminal processing device.
Communication processing circuit having a register for temporarily storing data
A central processing unit comprising: a first communication processing circuit;
Received data and external data connected to the terminal processing device.
Equipped with a register to temporarily store data indicating the load status
A second communication processing circuit, and said first communication processing circuit and the second communication processing circuit Day was
System with a communication line connected to enable data transmission
Te, the second communication processing circuit, said second register in the communication processing circuit and the external load
An I / O buffer connected therebetween, and an address data temporarily stored in a predetermined bit of the register.
Address comparison for comparing the over data and known address data
And the register in synchronization with a clock generated at a predetermined cycle.
Latch timing of communication data to the I / O bus
Control to control the delivery timing of the communication data to the Ffa
Control circuit, wherein the register temporarily stores the encoded communication data.
Was paid, the I / O bus Ffa has a known address data
Address data temporarily stored in the register matches
When the communication data following the address data is
Automotive data transmission system characterized by being configured to take received from. 7. 7. The I / O buffer according to claim 6, wherein the I / O buffer outputs communication data stored in the register to an external load.
Bei a function of, and a function of inputting data from the external load to register
Data transmission system for automobiles
M 8. 2. The circuit according to claim 1, wherein the register and the I / O buffer are an LSI module.
It is characterized in that it is built on the same chip as the Le
Automotive data transmission system. 9. 2. The communication data according to claim 1, wherein the communication data from the register to the I / O buffer is stored.
Data writing is, this heat transmission errors and address mismatch there is no
Is configured to be executed after confirmation
Automotive data transmission system.
JP7292847A 1995-11-10 1995-11-10 Automotive data transmission system Expired - Lifetime JP2612433B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7292847A JP2612433B2 (en) 1995-11-10 1995-11-10 Automotive data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7292847A JP2612433B2 (en) 1995-11-10 1995-11-10 Automotive data transmission system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP58169361A Division JP2502491B2 (en) 1983-09-16 1983-09-16 Communication processing circuit

Publications (2)

Publication Number Publication Date
JPH08237278A JPH08237278A (en) 1996-09-13
JP2612433B2 true JP2612433B2 (en) 1997-05-21

Family

ID=17787142

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7292847A Expired - Lifetime JP2612433B2 (en) 1995-11-10 1995-11-10 Automotive data transmission system

Country Status (1)

Country Link
JP (1) JP2612433B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4756340B2 (en) * 2005-10-13 2011-08-24 株式会社デンソー Communication system and method, and distributed control system and method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2502491B2 (en) 1983-09-16 1996-05-29 株式会社日立製作所 Communication processing circuit

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5524626B2 (en) * 1974-09-13 1980-06-30
US4097695A (en) * 1977-07-11 1978-06-27 Grace Alan G V Asynchronous addressable multiplex system
JPS5621229A (en) * 1979-07-30 1981-02-27 Fujitsu Ltd Information collection system
JPS57147392A (en) * 1981-03-06 1982-09-11 Sumitomo Electric Ind Ltd Multiplex transmitting system of car
JPS5897997A (en) * 1981-12-07 1983-06-10 Toshiba Corp Control data distributing and collecting device
JPS6029990B2 (en) * 1981-12-25 1985-07-13 富士通株式会社 Data collection method
JPS58136149A (en) * 1982-02-08 1983-08-13 Hitachi Ltd Terminal processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2502491B2 (en) 1983-09-16 1996-05-29 株式会社日立製作所 Communication processing circuit

Also Published As

Publication number Publication date
JPH08237278A (en) 1996-09-13

Similar Documents

Publication Publication Date Title
US5113410A (en) Data transmission system
US5896418A (en) Data transmission system having a communication control computer for controlling communication between a communication interface module and terminal devices
JP2863653B2 (en) Microcomputer with built-in communication device
US3916380A (en) Multi-computer multiple data path hardware exchange system
JP2000013414A (en) Intra-device supervisory and control system
JPS5951186B2 (en) Control device
US5224124A (en) Data transmission system
JP2612433B2 (en) Automotive data transmission system
CA1237793A (en) Terminal for data transmission system
JP4737049B2 (en) Communication system and electronic control device
JPH0381862A (en) Equipment and method for communication of vehicle-mounted network
JP2502491B2 (en) Communication processing circuit
JP3459075B2 (en) Synchronous serial bus method
JP2612433C (en)
US8427955B2 (en) Method and apparatus for transferring data
JP2534836B2 (en) Data transmission system
JP2764858B2 (en) Data transmission system
JPH0787482B2 (en) Data transmission system
JPH0315866B2 (en)
JPH0512892B2 (en)
JPH05204849A (en) Synchronous serial bus system
JPS61218243A (en) Aggregated wiring system
JPH0534861B2 (en)
JP4075280B2 (en) Test method for transmitter / receiver circuit and transmitter / receiver circuit with test circuit
JP3974370B2 (en) Master-slave communication method and system