JP2534836B2 - Data transmission system - Google Patents

Data transmission system

Info

Publication number
JP2534836B2
JP2534836B2 JP6226435A JP22643594A JP2534836B2 JP 2534836 B2 JP2534836 B2 JP 2534836B2 JP 6226435 A JP6226435 A JP 6226435A JP 22643594 A JP22643594 A JP 22643594A JP 2534836 B2 JP2534836 B2 JP 2534836B2
Authority
JP
Japan
Prior art keywords
data
signal
transmission
bit
shift register
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
JP6226435A
Other languages
Japanese (ja)
Other versions
JPH07202986A (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 JP6226435A priority Critical patent/JP2534836B2/en
Publication of JPH07202986A publication Critical patent/JPH07202986A/en
Application granted granted Critical
Publication of JP2534836B2 publication Critical patent/JP2534836B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、データの伝送方式に係
り、特に自動車内などでの多重伝送による集約配線シス
テムに好適なデータ伝送方式に関する。 【0002】 【従来の技術】例えば、自動車には各種のランプやモー
タなどの電装品、それに自動車制御用の各種のセンサや
アクチュエータなどの電気装置が多数配置され、その数
は自動車のエレクトロニクス化に伴なって増加の一途を
たどっている。このため、従来のように、これら多数の
電気装置に対して、それぞれ独立に配線を行なっていた
のでは、配線が極めて複雑になり、かつ大規模なものと
なってしまい、コストアップや重量、スペースの増加、
或いは相互干渉の発生など大きな問題を生じる。 【0003】そこで、このような問題点を解決する方法
の一例として、少ない配線で多数の信号の伝送が可能な
多重伝送方式による配線の簡略化システムが、例えば特
開昭57−17535号公報ににり提案されている。図
1に、このような多重伝送方式による自動車内集約配線
システムの一例を示す。 【0004】この図1のシステムは、信号伝送路として
光ファイバケーブルOFを用い、中央制御装置CCU
(以下、単にCCUという。なお、これは Central Cont
rol Unitの略)と、複数の端末処理装置LCU(以下、
単にLCUという。なお、これは Local Control Unit
の略)の間を光信号チャンネルで共通に結合したもの
で、光ファイバケーブルOFの分岐点に光分岐コネクタ
OCが設けてある。 【0005】CCUは自動車のダッシュボードの近傍な
ど適当な場所に設置され、システム全体の制御を行なう
ようになっている。LCUは、各種の操作スイッチS
W、メータMなどの表示器、ランプL、センサSなど自
動車内に多数設置してある電気装置の近傍に、所定の数
だけ分散して配置されている。CCU及び各LCUが光
ファイバケーブルOFと結合する部分には、光信号と電
気信号を双方向に変換する光電変換モジュールO/Eが
設けられている。 【0006】CCUはマイクロコンピュータを備え、シ
リアルデータによるデータ通信機能を持ち、これに対応
して各LCUには通信処理回路CIM(以下、単にCI
Mという。なお、これは Communication Interface Mod
uleの略)が設けられ、CCUはLCUの一つを順次選択
し、そのLCUとの間でのデータの授受を行ない、これ
を繰り返すことにより1チャンネルの光ファイバケーブ
ルOFを介しての多重伝送が可能になり、複雑で大規模
な自動車内配線を簡略化することができる。 【0007】 【発明が解決しようとする課題】ところで、自動車内に
は、アナログ信号を出力するセンサなどの外部負荷が設
置してあるが、上記したシステムにおいては、このよう
な外部負荷からのアナログ信号の取り込みについては特
に配慮がされておらず、例えば、このようなアナログ信
号の取り込みについては、別途、CCUの入出力回路を
介して、CCUの制御の下で実行されており、このた
め、このようなアナログ信号を発生する外部負荷からC
CUまでの配線が長くなってしまう場合を生じ、集約配
線システムの利点が損なわれてしまうという問題があっ
た。 【0008】本発明は、上記事情に鑑みてなされたもの
で、アナログ信号を出力するセンサなどの外部負荷につ
いては、その設置位置に近いLCUでアナログ信号の取
り込みが行なえ、そのLCUは、CCUからの呼び掛け
に応じて任意に送信することができるようにしたデータ
伝送システムを提供することにある。 【0009】 【課題を解決するための手段】上記目的は、LCUにア
ナログ−ディジタル変換器と、アナログ−ディジタル変
換器制御手段とを設け、該アナログ−ディジタル変換器
制御手段はシフトレジスタを備え、CCUからの呼び掛
けとは独立したタイミングで上記アナログ−ディジタル
変換器を制御し、上記シフトレジスタへディジタルデー
タを格納する処理を実行させるように構成されており、
このシフトレジスタに格納されたディジタルデータが、
CCUからの呼び掛けに応じて逐次、LCUから送信さ
れて行くようにして達成される。 【0010】 【作用】アナログ−ディジタル変換器制御手段は、CC
Uからの呼び掛けとは独立したタイミングで、常にシフ
トレジスタにディジタルデータが格納されて行くように
働く。 【0011】この結果、どのようなタイミングでCCU
からの呼び掛けがあっても直ちに応答が可能になり、伝
送処理が影響を受けることが無くなるので、LCUにア
ナログ信号を取り込むことができる。 【0012】 【実施例】以下、本発明によるデータ伝送システムの実
施例を図面について説明する。図2は、本発明の一実施
例を示す全体ブロック構成図で、10は中央処理装置
(図1のCCUに相当)、20は信号伝送路(図1の光フ
ァイバケーブルOFに相当)、30〜32は端末処理装
置(図1のLCUに相当)、40はA/D(アナログ−デ
ィジタル変換器)、51〜58は外部負荷である。な
お、この実施例では、信号伝送路20として電気信号伝
送路を用いた場合について示してあり、従って、中央処
理装置10及び端末処理装置30〜32には光電変換モ
ジュールが不要で、このため、端末処理装置30〜32
の内容は、実質的にはCIMだけとなっている。 【0013】コンピュータ(マイクロコンピュータ)を含
む中央処理装置10は、伝送路20で各端末処理装置3
0〜32と結合され、各種のセンサやランプ、アクチュ
エータ、モータなどの電気装置からなる外部負荷51〜
58に対する制御データの送出と、これからのデータの
取込みを多重伝送方式によって行なう。このとき、アナ
ログデータを出力するセンサなどの外部負荷57、58
はA/D40を介して端末処理装置32に結合され、デ
ィジタルデータによる伝送動作が行なえるようになって
いる。 【0014】信号伝送路20は双方向性のものなら何で
もよく、電気信号伝送系に限らず光ファイバによる光信
号伝送系など任意のものが用いられ、これによる通信方
式はいわゆる半二重方式(Half Duplex)で、中央処理装
置10から複数の端末処理装置30〜32のうちの一つ
に対する呼び掛けに応じ、該端末処理装置の一つと中央
処理装置10との間でのデータの授受が伝送路20を介
して交互に行なわれるようになっている。 【0015】このような半二重方式による多重伝送のた
め、中央処理装置10から送出されるデータには、その
行先を表わすアドレスが付され、伝送路20から受け取
ったデータに付されているアドレスが自らのアドレスで
あると認識した、各端末処理装置のうちの一つだけが応
答するようになっている。 【0016】このように、中央処理装置10からアドレ
スが付されて送出されたデータに応じて、そのアドレス
を理解し、それが自らのものであると判断した端末処理
装置の一つだけがそれに応答して、自らのデータを中央
処理装置10に送出することにより、上記した半二重方
式によるデータの伝送動作が得られることになる。 【0017】また、この実施例では、各端末処理装置3
0〜32の機能を特定のものに集約し、これら端末処理
装置30〜32のLSI化(大規模集積回路化)を容易に
している。そして、このときの特定の機能としては、上
記したデータ伝送機能、つまり半二重方式による多重伝
送に必要な機能と、各端末処理装置に付随しているA/
D40などの外部機器を制御する機能の2種となってい
る。 【0018】そして、この結果、データ伝送機能の専用
化が可能になり、例えば、自動車内での集約配線システ
ムに適用する場合には、上記した半二重方式とし、必要
な伝送速度やアドレスのビット数などをそれに合わせて
決めるなどのことができる。 【0019】さらに、この多重伝送方式では、上記した
ようにLSI化した端末処理装置の機能をそのまま活か
し、中央処理装置10にも適用可能にしたものであり、
この結果、中央処理装置10として、データ伝送機能を
もたない汎用のコンピュータ(マイクロコンピュータな
ど)を用い、これに上記したLSI化端末処理装置33
を組合わせるだけで中央処理装置10を構成することが
でき、中央処理装置10のコンピュータに必要なソフト
ウエア面での負荷を軽減させることができると共に、端
末処理装置の汎用性を増すことができる。なお、この場
合、中央処理装置側に組合わされた端末処理装置33で
は、それが持つ機能の一部については何ら活かされない
ままとなるが、これはやむを得ない。 【0020】次に、図3は、各端末処理装置30〜32
の一実施例を大まかなブロック構成で示したもので、伝
送路20から入力された受信信号RXDは同期回路10
2に供給され、クロック発生器107からのクロックの
同期を取り、制御回路101に受信信号RXDのクロッ
ク成分に調歩同期したクロックが与えられ、これによ
り、制御回路101が制御信号を発生し、シフトレジス
タ104に受信信号のデータ部分をシリアルに読込む。 【0021】一方、アドレス比較回路103には、予め
その端末処理装置に割り当てられたアドレスが与えられ
ており、このアドレスとシフトレジスタ104の所定の
ビット位置に読込まれたデータとがアドレス比較回路1
03によって比較され、両者が一致したときだけシフト
レジスタ104内のデータがI/Oバッファ105に転
送され、外部機器に与えられる。 【0022】また、制御回路101はクロックで歩進す
るカウンタを含み、シーケンシャルな制御信号を発生
し、受信信号RXDによるデータをI/Oバッファ10
5に与えたあと、それにひき続いて、今度はI/Oバッ
ファ105からシフトレジスタ104にデータをパラレ
ルに取り込み、外部機器から中央処理装置10に伝送す
べきデータをシフトレジスタ104の中にシリアルデー
タとして用意する。そして、このデータをシフトレジス
タ104からシリアルに読み出し、送信信号TXDとし
て伝送路20に送出する。 【0023】このときには、受信信号RXDに付されて
いたアドレスがそのまま送信信号TXDに付されて送出
されるから、中央処理装置10は自らが送出したアドレ
スと一致していることにより、この送信信号TXDの取
り込みを行ない、これにより半二重方式による1サイク
ル分のデータの授受が完了する。こうして中央処理装置
10は、次の端末処理装置に対するデータの送出を行な
い、これを繰り返すことにより複数の各端末処理装置3
0〜32との間でのデータの授受が周期的に行なわれ、
多重伝送が可能になる。 【0024】A/D制御回路106は、図3における端
末処理装置32として使用した場合に必要なA/D40
の制御機能を与えるためのもので、本発明の特徴であ
る、アナログ−ディジタル変換器制御手段を構成するも
のであり、アナログ信号を発生するセンサなどの外部負
荷57、58からのデータをA/D40によってディジ
タル化してシフトレジスタ104に取り込むために必要
な制御機能を与える働きをする。なお、その詳細につい
ては後述する。 【0025】次に図4は、端末処理装置30〜33の一
実施例を示すブロック図で、図3と同一もしくは同等の
部分には同じ符号を付してあり、この図4において、3
01は受信信号RXDに調歩同期したクロックを発生さ
せるための同期回路、302は2相のクロックφS とφ
M を発生するカウンタ、303はシーケンシャル制御用
のカウンタ、304はカウンタ303の出力から種々の
制御信号を作り出すシーケンスデコーダ、305は異常
検出器、306はI/Oバッファ105の入出力切換選
択用のアドレスデコーダ、307はアドレス比較用の4
ビットのコンパレータ、308はエラー検出用のエクス
クルーシブオアゲート、312はデータ伝送用のアンド
ゲート、313、314はトライステートバッファ、3
20は8ビットのシフトレジスタ、321は32ビット
のレジスタ、322は32チャンネルのゲート、323
はA/D制御用のカウンタ、324はA/D制御用信号
発生回路、325はA/Dのチャンネル選択用のカウン
タである。なお、シフトレジスタ104は25ビット
(24ビット+1ビット)で、I/Oバッファ105は1
4ポート(14ビット)のものである。 【0026】この端末処理装置30〜33(以下、これ
らをCIMという)は複数の動作モードの一つを選択し
て動作するようになっており、図2のCIM30〜31
として用いられるときにはDIO(Digital Input Outpu
t:ディジタル インプット アウトプットの略)モード
が、また、図2のCIMとして持ちる場合にはADモー
ドが、そして図2のCIM33に用いた場合にはMPU
モードが、それぞれ選択される。なお、このモード選択
については後述する。 【0027】まず、これらのCIMがDIOモードに選
択された場合には、A/D制御回路106は動作せず、
このときのシフトレジスタ104のデータ内容は図5に
示すようになり、No.0からNo.5までの6ビット分は使
用せず、No.6からNo.19までの14ビットがI/Oバ
ッファ105のデータDIOに割当てられる。 【0028】そして、No.20からNo.23までの4ビッ
トがアドレスデータADDRに割当てられ、No.24は
スタートビットに割当てられている。なお、DIOデー
タに割当てられているビット数が14となっているの
は、I/Oバッファ105が14ビットのものとなって
いるからである。また、このため、この実施例によるC
IMでは、I/Oバッファ105に接続可能な外部負荷
の最大数が14となっている。 【0029】この実施例によるデータ伝送の方式は、調
歩同期、双方向、反転二連送方式と呼ばれるもので、デ
ィジタルデータをNRZ(nonreturn to zero)法により
伝送するようになっており、その伝送波形は、図6に示
すようになっている。すなわち、CCU側のCIMから
LCU側のCIMにデータを伝送するフレームを受信フ
レーム、反対にLCU側からCCU側に伝送するフレー
ムを送信フレームとすれば、受信フレームと送信フレー
ムが共に74ビットで、従って1フレームと送信フレー
ムとは共に同じフレーム構成となっており、最初に25
ビットの“0”があり、そのあとに調歩同期のための1
ビットの“1”からなるスタートビットが設けられ、そ
れに続いて24ビットの受信データRXD又は送信デー
タTXDがNRZ信号形式で伝送され、さらにこれらの
データの反転データ(RXD)又は(TXD)が伝送される
ようになっている。ここで、この反転データ(RXD)又
は(TXD)を伝送しているのは、伝送エラーチェックの
ためである。 【0030】なお、このような反転データについては、
図面では、文字や記号の上にバーを付して表わしている
が、この明細書内では、括弧を付して表記している。す
なわち、データRDXの反転データは、上記したよう
に、(RDX)で表わされる。 【0031】既に説明したように、この実施例では、半
二重方式により多重伝送が行なわれるから、受信フレー
ムのデータRXDの先頭の4ビットには、CCUがその
とき呼び掛けを行なう相手となるLCUのアドレスデー
タADDRが、図5に示すように付され、これに応答し
てそのLCUから送出される送信フレームのデータTX
Dの先頭4ビットには同じアドレスデータADDRが付
されて伝送される。 【0032】なお、LCU側から送信フレームが伝送さ
れるのは、CCU側で呼び掛けたLCUに限られるか
ら、送信データTXDにアドレスが付加されていなくて
も、CCU側では、そのデータがいずれのLCUからの
ものであるかは直ちに判断できる。従って、送信フレー
ムのデータTXDには必ずしもアドレスを付す必要はな
く、データTXDの先頭4ビットを(0000)などLC
Uのいずれのアドレスとも一致しないデータとしてもよ
い。 【0033】ここで、図4に戻り、CIMのアドレスに
ついて説明する。既に説明したように、この実施例で
は、LCU側のCIMにはそれぞれ異なった4ビットの
アドレスが割当ててあり、このアドレスをもとにして半
二重方式によるデータの多重伝送が行なわれるようにな
っている。 【0034】そして、このアドレスをそれぞれのCIM
に割当てる働きをする入力がコンパレータ307に接続
されている4本の入力20〜23であり、これらの入力に
与えるべきデータADDR0〜ADDR3により当該CI
Mのアドレスが指定される。例えば、そのCIMのアド
レスを“10”に指定するためには、アドレスデータA
DDR0=0、ADDR1=1、ADDR2=0、ADD
3=1とし、入力20〜23に(1010)が入力される
ようにすればよい。なお、この実施例では、データ
“0”は接地電位、データ“1”は電源電圧Vccによっ
て表わされているから、アドレス“10”に対しては入
力20、22を接地し、入力21、23を電源に接続するこ
とになる。 【0035】ところで、この実施例では、アドレス入力
0〜23がアドレスデコーダ306にも入力され、その
出力によりI/Oバッファ105の方向性が制御される
ようになっている。この結果、アドレスを指定すると、
I/Oバッファ105の14本の端子のうちのいずれが
データ出力ポートとなるのかが決定される。そして、こ
の実施例では、アドレスがそのまま出力ポート数に対応
するようにしてあり、従って、いま、アドレスを“1
0”と定めれば、I/Oバッファの14本の端子のうち
10本が出力ポートとなり、残りの4本が入力ポートと
なるように制御される。 【0036】また、図4では省略してあるが、このアド
レスデコーダ306の出力は、制御回路101のシーケ
ンスデコーダ304にも与えられ、これにより、図7に
示すように、このCIMの動作モードが切換られるよう
になっている。すなわち、この実施例では、アドレス
“0”に設定したCIMはMPUモードで、アドレスを
“1”から“D”までの間に設定したCIMはDIOモ
ードで、そしてアドレスを“E”、“F”のいずれかに
設定したCIMはADモードでそれぞれ動作するように
される。 【0037】次に、制御回路101と同期回路102の
機能について説明する。この実施例では、図6に関連し
て既に説明したように、調歩同期方式が採用されてお
り、このため、受信フレーム、送信フレーム共にデータ
伝送に際して、その開始前に必ず25ビット“0”が挿
入され、この後で1ビットのスタートビットとして
“1”データが挿入されている。 【0038】そこで同期回路301は受信フレームの最
初に存在する25ビットの“0”に続くスタートビット
の立上りを検出し、内部クロックのビット同期を取る。
従って、次の受信フレームが現われるまでは、このとき
のタイミングにビット同期した内部クロックにより動作
が遂行されてゆくことになる。 【0039】カウンタ302は同期回路302で同期が
取られた内部クロックから2相のクロックφS とφM
作り出す。これによりクロックφS とφM は、その後入
力されてくる受信データRXDに位相同期したものとな
る。 【0040】シーケンスカウンタ303は、同期回路3
02からスタートビットの立上り検出タイミングを表わ
す信号を受け、特定のカウント値、例えばカウント値0
の状態にセットされ、その後、クロックφS 又はφM
よってカウントされる。従って、そのカウント出力によ
りCIM全体の制御手順を定めることができ、カウント
値をみることにより、任意のタイミングにおけるCIM
の動作がどのステップにあるのかを知ることができる。 【0041】そこで、このカウンタ303のカウント出
力をシーケンスデコーダ304に供給し、このCIMの
動作に必要な、例えばRXMODO、TXMODE、R
EAD、SHIFTなど内部で必要とする全ての制御信
号をシーケンスデコーダ304で発生させるようにして
いる。つまり、この実施例は、クロックφS 、φM によ
るシーケンス制御方式となっているものであり、従っ
て、カウンタ303の出力をデコードしてやれば、必要
な制御が全て行なえることになるのである。 【0042】次に、伝送されて来るデータRXDがその
CIM向けのデータであるか否か、つまりCCUからの
受信フレームの伝送による呼び掛けが自らに対するもの
であるか否かの判定動作について説明する。 【0043】既に説明したように、コンパレータ307
の一方の入力には、入力20〜23からのアドレスデータ
が与えられており、他方の入力には、シフトレジスタ1
04のQ20ビットからQ23ビットまでのデータが与えら
れるようになっている。そして、このコンパレータ30
7は、両方の入力データが一致したときだけ、一致信号
MYADDRを出力する。そこで、シフトレジスタ10
4に受信データRXDが入力され、そのQ20ビットから
23ビットまでの部分に、データRXDの先頭に付され
ているアドレスデータ(図5参照)が格納されたタイミン
グで、コンパレータ307の出力信号MYADDRを調
べ、そのときに、この信号MYADDRが“1”になっ
ていたらそのデータRXDは自分宛のもので、CCUか
らの呼び掛けは自分に対するものであることが判る。 【0044】このため、エラー検出回路308に制御信
号COMPMODEを供給し、上記した所定のタイミン
グで信号MYADDRを取込み、それが“0”になって
いたときには出力INITIALを発生させ、これによ
りシーケンスカウンタ303をカウント0にセットし、
CIM全体の動作を元に戻して次のデータ伝送が入力さ
れるのに備える。一方、信号MYADDRが“1”にな
っていたときには、エラー検出回路308によるINI
TIALの発生がないから、そのままCIMの動作はシ
ーケンスカウンタ303のそのときのカウント値にした
がってそのまま続行される。 【0045】次に、伝送エラー検出動作について説明す
る。この実施例では、既に図6で示したように、反転二
連送方式によるデータ伝送が採用されており、これによ
り伝送エラーの検出が行なえるようになっている。そし
て、このため、シフトレジスタ104の最初のQ0 ビッ
トと最後のQ24ビットからエクスクルーシブオアゲート
311にデータが与えられ、このゲート311の出力が
信号(ERROR)としてエラー検出回路308に与えら
れるようになっている。 【0046】シーケンスデコーダ304は、スタートビ
ットに続く受信信号RXDと(RXD)(図6)の伝送期間
中、制御信号RXMODEを出力して複合ゲート310
の下側のゲートを開き、これにより伝送路20からのデ
ータをシリアル信号SIとしてシフトレジスタ104に
入力する。このとき複合ゲート310にはノアゲートが
含まれているため、伝送路20から供給されてくるデー
タは反転されてシフトレジスタ104に入力される。 【0047】そこで、受信フレーム(図6)のスタートビ
ットに続く24ビット分のデータがシフトレジスタ10
4に入力された時点では、このシフトレジスタ104の
0ビットからQ23ビットまでの部分には、受信信号R
XDの反転データ(RXD)が書込まれることになる。 【0048】次に、図6から明らかなように、24ビッ
トの受信信号RXDが伝送されたあと、それにひき続い
て24ビットの反転信号(RXD)が伝送されてくると、
それが複合ゲート310で反転されてデータRXDとな
り、シリアル信号SIとしてシフトレジスタ104に入
力され始める。 【0049】この結果、シフトレジスタ104のQ0
反転信号(RXD)の先頭ビットが反転されて入力された
タイミングでは、その前に書込まれていた受信信号RX
Dの先頭ビットの反転データがシフトレジスタ104の
24ビットに移され、反転信号(RXD)の2番目のビッ
トのデータがQ0 に書込まれたタイミングでは、受信信
号RXDの2番目のビットのデータがQ24のビットに移
されることになり、結局、反転信号(RXD)がシフトレ
ジスタ104に1ビットづつシリアルに書込まれている
ときの各ビットタイミングでは、シフトレジスタ104
のQ24ビットとQ0 ビットには、受信信号RXDと反転
信号(RXD)の同じビットのデータが常に対応して書込
まれることになる。 【0050】ところで、上記したように、エクスクルー
シブオアゲート311の2つの入力には、シフトレジス
タ104のQ0 ビットとQ24ビットのデータが入力され
ている。従って、受信信号RXDと反転信号(RXD)の
伝送中にエラーが発生しなかったとすれば、反転信号R
XDの伝送期間中、エクスクルーシブオアゲート311
の出力は常に“1”になる筈である。何故ならば、受信
信号RXDとその反転信号(RXD)の対応する各ビット
では、必ず“1”と“0”が反転している筈であり、こ
の結果、ゲート311の入力は必ず不一致を示し、そう
ならないのは伝送にエラーがあったときだけとなるから
である。 【0051】そこで、エラー検出回路308は、反転信
号(RXD)が伝送されている24ビットの期間中、信号
(ERROR)を監視し、それが“0”レベルになった時
点で信号INITIALを発生するようにすれば、エラ
ー検出動作が得られることになる。なお、このようなデ
ータ伝送システムにおける伝送エラーの処理方式として
は、伝送エラーを検出したらそれを修復して正しいデー
タを得るようにするものも知られているが、この実施例
では、伝送エラーが検出されたらその時点でそのフレー
ムのデータ受信動作をキャンセルし、次のフレームのデ
ータ受信に備える方式となっており、これにより構成の
簡略化を図っている。 【0052】次に、この図4の実施例の、DIOモード
におけるデータ伝送の全体的な動作を、図8のタイミン
グチャートによって説明する。図中、φS 、φM はカウ
ンタ302から出力される二相のクロックで、同期回路
301内に含まれているクロック発振器による内部クロ
ックにもとづいて発生されている。 【0053】一方、(RESET)は、外部からこのCI
Mに供給される信号で、マイクロコンピュータなどのリ
セット信号と同じであり、図2における全てのCIMご
とに供給されるようになっており、電源投入時など必要
なときに外部のリセット回路から供給され、伝送システ
ム全体のイニシャライズを行なう。 【0054】イニシャライズが終るとシーケンスカウン
タ303はカウント値が0に設定され、そこからクロッ
クφM により歩進してゆく。そしてカウント値が25に
なるまでは何の動作も行なわず、カウント値が25にな
るとIDLE信号と(RXENA)信号が発生し、CIM
はアイドル状態になってシーケンスカウンタ303のカ
ウント値によるシーケンシャルな制御は停止され、トラ
イステートバッファ313が開いて信号受信可能状態と
なる。 【0055】なお、このとき、イニシャライズ後、シー
ケンスカウンタ303のカウント値が25になるまでは
信号受信可能状態にしないようにしているのは、同期回
路301による調歩同期のためであり、受信信号RXD
が24ビットなので最少限25ビットの“0”期間を与
える必要があるためである。 【0056】こうしてアイドル状態に入ると、シーケン
スカウンタ303はクロックφS、φM のカウントによ
り歩進を続けるが、シーケンスデコーダ304は制御信
号IDLEとINITIALを発生したままたとどま
り、受信信号が入力されるのをただ待っている状態とな
る。なお、このために図6に示すように、各受信フレー
ムと送信フレームの先頭には25ビットの“0”が付加
してあるのである。 【0057】こうしてアイドル状態に入り、その中でい
ま、時刻t0 で受信信号RXDが入力されたとする。そ
うすると、この信号RXDの先頭には1ビットのスター
トビットが付されている。そこで、このスタートビット
を同期回路301が検出し、内部クロックのビット同期
を取る。従って、これ以後、1フレーム分の伝送動作が
完了するまでのデータRXD、RXDと、クロック
φM、φS との同期は、内部クロックの安定度によって
保たれ、調歩同期機能が得られることになる。 【0058】スタートビットが検出されると、シーケン
スカウンタ303はカウント出力0(以下、このカウン
タ303の出力データはSを付し、例えば、この場合に
はS0で表わす)に設定され、これによりシーケンスデ
コーダ304は制御信号IDLEを止め、制御信号RX
MODEを発生する。また、これと並行して、シフトレ
ジスタ104にはシフトパルスSHIFTがクロックφ
M に同期して供給される。 【0059】この結果、スタートビットに続く48ビッ
トの受信信号RXDと、反転信号(RXD)(図6)が、伝
送路20から複合ゲート310を通って、シリアルデー
タとして、シフトレジスタ104に順次1ビットづつシ
フトしながら書込まれてゆく。このとき、最初の24ビ
ットの受信信号RXDは複合ゲート310によって反転
されたデータ(RXD)として、シフトレジスタ104に
順次シリアルに書込まれるので、スタートビットに続く
24ビットの期間、つまりシーケンスカウンタ303が
S1からS24に達した時点では、シフトレジスタ10
5のQ0 ビットからQ23までのビットに、受信信号RX
Dが反転されたデータ(RXD)が書込まれることにな
る。 【0060】ここで、次のS25のクロックφM の立上
りで、制御信号(COMPMODE)が出力され、エラー
検出回路308が機能する。そして、この状態で、続い
て反転信号(RXD)が入力され始め、この結果、今度
は、反転信号(RXD)が反転されたデータRXDが、シ
フトレジスタ105のQ0 ビットからシリアルに書込ま
れてゆく。 【0061】これにより、S1からS24で、シフトレ
ジスタ104に書込まれたデータ(RXD)は、その先頭
のビットからシフトレジスタ104のQ24ビット位置を
通り、シーケンスカウンタ303がS25からS48に
なるまでの間に順次、1ビットづつオーバーフローされ
てゆく。一方、これと並行して、シフトレジスタ104
のQ0 ビット位置を通って、反転信号(RXD)によるデ
ータRXDが、その先頭ビットから順次、シリアルに書
込まれてゆき、この間にエクスクルーシブアゲート31
1とエラー検出回路308による伝送エラーの検出が、
既に説明したように行なわれてゆく。 【0062】従って、シーケンスカウンタ303がS4
8になった時点では、シフトレジスタ104のQ0 ビッ
トからQ23ビットまでには、受信信号RXDと同じデー
タRXDがそのまま書込まれた状態になる。そこで、こ
のS48のタイミングで、コンパレータ307の出力信
号MYADDRを調べることにより、前述したアドレス
の確認が行なわれ、いま受信したデータRXDが自分宛
のものであるか否か、つまり、このときのCCUからの
呼び掛けが自分宛のものであるか否かの判断が行なわれ
る。 【0063】なお、シーケンスカウンタ303がS25
からS48の間にある期間中に伝送エラーが検出され、
或いはアドレスの不一致が検出されると、エラー検出回
路308はS48になった時点で制御信号INITIA
Lを発生し、この時点でシーケンスカウンタ303はS
0に設定され、アイドル前25ビットの状態に戻り、こ
の受信フレームに対する受信動作は全てキャンセルさ
れ、次の信号の入力に備える。 【0064】さて、シーケンスカウンタ303がS25
からS48にある間に伝送エラーが検出されず、かつア
ドレスの不一致も検出されなかったとき、つまりS48
になった時点でエラー検出回路308がINITIAL
信号を発生しなかったときには、このS48になった時
点で、シーケンスデコーダ304が制御信号WRITE
STBを発生する。なお、この結果、S48の時点で
は、INITIAL信号とWRITESTB信号のいず
れか一方が発生され、伝送エラー及びアドレス不一致の
いずれも生じなかったときには前者が、そして伝送エラ
ー及びアドレス不一致のいずれか一方でも発生したとき
には後者が、それぞれ出力されることになる。 【0065】こうして、S48の時点で、制御信号WR
ITESTBが出力されると、そのときのシフトレジス
タ104のデータがパラレルにI/Oバッファ105に
書込まれ、この結果、受信したデータRXDによってC
CUからもたらされたデータが、I/Oバッファ105
の出力ポートから外部負荷51〜56のいずれかに供給
される。なお、このときには、DIOモードで動作して
いるのであるから、そのQ6 ビットからQ19ビットまで
の最大14ビットがデータRXDとして伝送可能であ
り、かつ、そのうちの何ビットがI/Oバッファ105
の出力ポートとなっているかは、アドレスによって決め
られていることは、既に図5で説明したとおりである。 【0066】こうしてS48に達すると受信フレームの
処理は全て終り、次のS49から送信フレームの処理に
入る(図6)。まず、S49からS72までは何の処理も
行なわない。これは、CCU側にあるCIMの調歩同期
のためで、上記した受信フレームの処理におけるIDL
Eの前に設定した期間での動作と同じ目的のためのもの
である。 【0067】S73に入ると、シーケンスデコーダ30
4から制御信号PSが出力され、これによりシフトレジ
スタ104はパラレルデータの読込み動作となり、I/
Oバッファ105の入力ポートに、外部負荷51〜56
のいずれかから与えられているデータを並列に入力す
る。このとき読込まれるデータのビット数は、14ビッ
トのI/Oバッファ105のポートのうち、受信フレー
ムの処理で出力ポートとして使われたビットを引いた残
りのビット数となる。例えば、前述のように、このCI
Mのアドレスを10に設定したときには、出力ポートの
数は10となるから、このときには入力ポートは4ビッ
トとなる。 【0068】シフトレジスタ104に対するパラレルデ
ータの書込みには、信号PSと共にシフトクロックSH
IFTを1ビット分必要とするため、S73のクロック
φSにより信号SPを立上げたあと、S74のクロック
φS に同期したシフトパルスSHIFTを、制御信号T
XMODEの立上り前に供給する。 【0069】また、このとき、図6から明らかなよう
に、送信データTXDの前にスタートビットを付加し、
さらにデータTXDの先頭4ビットにはアドレスを付加
しなければならない。このため、図4では省略してある
が、信号PSが発生している期間中だけ、シフトレジス
タ104のQ24ビットには、データ“1”を表わす信号
が、そしてQ20ビットからQ23ビットの部分には入力2
0〜23からアドレスデータが、それぞれ供給されるよう
になっている。 【0070】こうしてS49からS73までのDUMM
Y状態により、調歩同期に必要な25ビット分のデータ
“0”送出期間が設定されたあと、S74に入ると制御
信号TXMODEが立上り、これによりTX(送信)状態
になる。この信号TXMODEの発生により複合ゲート
310の上側のアンドゲートが能動化され、さらにアン
ドゲート312が能動化される。 【0071】これにより、シフトレジスタ104のQ24
ビットのデータ、つまりスタートビットとなるデータ
“1”がアンドゲート312を通って伝送路20に送り
出される。そして、それに続くS75以降のクロックφ
M に同期して発生するシフトクロックSHIFTによ
り、シフトレジスタ104の内容は1ビットづつ後段に
シフトされ、Q24ビットから順にアンドゲート312を
通って伝送路20に送り出され、これにより送信フレー
ム(図6)のスタートビットを含む送信信号TXDの伝送
が行なわれる。 【0072】一方、このようなシフトレジスタ104か
らのデータ読出処理と並行して、そのQ23ビットのセル
から読出されたデータは、複合ゲート310を通って反
転され、シフトレジスタ104のシリアル入力に供給さ
れている。この結果、S75以降、シフトレジスタ10
4のQ0 ビットからQ23ビットまでに書込まれていた送
信データTXDは、シフトクロックSHIFTによって
1ビットづつ伝送路20に送り出されると共に、反転さ
れてシリアルデータSIとしてシフトレジスタ104の
0 ビットから順次書込まれてゆくことになる。 【0073】従って、制御信号PSが発生している期間
中に、シフトレジスタ104のQ0ビットからQ23ビッ
トのセルに書込まれた送信データTXDが全て読出し完
了した時点では、このQ0 ビットからQ23ビットまでの
セルには、それまでの送信データTXDに代って、反転
データ(TXD)が格納されていることになる。 【0074】そこで、この送信データ(TXD)の読出し
が完了した時点以降は、それにひき続いて、今度はシフ
トレジスタ104から反転データ(TXD)の読出しが開
始し、図6に示すように、反転データ(TXD)が送信デ
ータTXDに続いて伝送路20に送出されることにな
る。 【0075】こうしてS122に到ると、シフトレジス
タ104のQ23ビットからQ0 ビットまでの反転データ
は、全部読出し完了するので、制御信号TXMODEは
立下り、シフトクロックSHIFTの供給も停止されて
送信状態を終る。そして、S122に続く次のクロック
φM により制御信号INITIALが発生し、シーケン
スカウンタ303はS0に設定され、CIMはアイドル
(IDLE)以前の信号受信準備状態に戻る。 【0076】従って、この実施例によれば、調歩同期、
双方向、反転二連送方式による半二重方式の多重通信
を、CCUとLCUとの間で確実に行なうことができ、
伝送路を集約配線化することができる。 【0077】次に、この実施例によるCIMのADモー
ドにおける動作について説明する。前述したように、C
IMを介してCCUとデータの授受を行なうべき電気装
置としては、各種のセンサなどアナログ信号を出力する
外部負荷57、58(図2)があり、そのため、本発明の
実施例においては、A/D制御回路106を含み、外付
けのA/D40を制御する機能をも有するものとなって
いる。そして、このときのCIMの動作モードがADモ
ードである。 【0078】さて、これも既に説明したように、この実
施例では、入力20〜23に与えるべきアドレスデータに
よって動作モードの設定が行なわれるようになってお
り、ADモードに対応するアドレスデータは、図7に示
すように、“E”と“F”となっている。 【0079】次に、このCIMが、ADモードによる動
作を行なうように設定された場合のシフトレジスタ10
4に格納されるデータの内容は、図5に示すようにな
り、No.0からNo.7までの8ビットが、A/D40を介
して外部負荷57、58などから取込んだADデータ格
納用で、No.8、No.9の2ビットがADチャンネルデー
タ格納用であり、これによりDIOデータ用としては、
No.10からNo.19の10ビットとなっており、その他
はDIOモードのときと同じである。 【0080】なお、ここで、ADチャンネルデータと
は、マルチチャンネルのA/Dを使用した場合のチャン
ネル指定用のデータであり、この実施例では、A/D4
0として4チャンネルのものを用いているので、2ビッ
トを割当てているものである。 【0081】シフトレジスタ320は8ビットのもの
で、外付けのA/D40からシリアルで取込んだディジ
タルデータ(外部負荷57、58などから与えられたア
ナログデータをA/D変換したもの)を格納してパラレ
ル読出しを可能にすると共に、A/D40のチャンネル
を指定するためのカウンタ325から与えられる2ビッ
トのチャンネル選択データをパラレルに受入れ、それを
シリアルに読出してA/D40に供給する働きをする。 【0082】レジスタ321は32ビットのもので、A
/D40が8ビットで4チャンネルのものなので、それ
に合わせて、8ビット4チャンネルのレジスタとして用
いられ、A/D40から8ビットで取込まれたデータ
を、各チャンネルごとに収容する。 【0083】ゲート322もレジスタ321に対応して
32ビット(8ビット4チャンネル)となっており、デー
タ伝送用のシフトレジスタ104のQ8 ビットとQ9
ットのセルから読出したADチャンネルデータ(図5)に
よって制御され、レジスタ321のチャンネルの1つを
選択し、その8ビットのデータを、シフトレジスタQ0
ビットからQ7 ビットのセルに、ADデータ(図5)とし
て書込む働きをする。 【0084】カウンタ323は、クロックφM のカウン
トにより歩進し、A/D制御回路106全体の動作をシ
ーケンスシャルに、しかもサイクリックに制御する働き
をする。A/D制御用信号発生回路324は、カウンタ
323の出力をデコードするデコーダと論理回路を含
み、A/D制御回路106全体の動作に必要な各種の制
御信号を発生する働きをする。 【0085】次に、このA/D制御回路106全体の動
作について説明する。この実施例では、カウンタ323
のカウント出力のそれぞれに対応してシーケンシャルに
制御が進み、そのステップ数は27で、カウント出力0
(これをS0という)からカウント出力26(これをS2
6という)までで1サイクルの制御が完了し、A/D4
0の1チャンネル分のデータがレジスタ321に取込ま
れる。 【0086】まず、1サイクルの制御が開始すると、信
号INCによりチャンネル選択用のカウンタ325がイ
ンクリメントされ、これによりカウンタ325の出力デ
ータは、1サイクルごとに順次、(0、0)→(0、1)→
(1、1)→(0、0)と変化する。 【0087】このカウンタ325の出力データは、シフ
トレジスタ320の先頭2ビット位置にパラレルに書込
まれ、ついでシリアルデータADSIとして読出されて
A/D40に供給される。また、これと並行して、カウ
ンタ325の出力データは、デコーダ(図示していない)
を介してレジスタ321にも供給され、レジスタ321
の対応するチャンネルの8ビットを選択する。 【0088】続いて、A/D40は、シリアルデータA
DSIとして入力したチャンネル選択データに応じて、
それに対応したアナログ入力チャンネルを選択し、その
アナログデータをディジタルデータに変換してから、8
ビットのシリアルデータADSOとしてシフトレジスタ
320に格納する。 【0089】その後、このシフトレジスタ320に格納
された8ビットのディジタル変換されたデータADは、
所定のタイミングでパラレルに読出され、カウンタ32
5の出力データによって予め選択されているレジスタ3
21の所定のチャンネルの8ビットに移され、1サイク
ルの制御動作を終了する。 【0090】こうして、例えばカウンタ325の出力デ
ータが(0、0)となっていたとすれば、A/D40のチ
ャンネル0のアナログデータがディジタル化され、レジ
スタ321のチャンネル0の8ビットに格納されたあ
と、カウンタ323はS0にリセットされ、次にサイク
ルの動作に進み、カウンタ325はインクリメントされ
てその出力データは(0、1)となり、今度はチャンネル
1のアナログデータがディジタル化されてレジスタ32
1のチャンネル1の8ビットに収納される。 【0091】従って、この実施例によれば、A/D制御
回路106によるA/D40からのデータ取込動作が、
シーケンスカウンタ303とシーケンスデコーダ304
によるデータ伝送処理とタイミング的に独立して行なわ
れ、レジスタ321の各チャンネルのデータは4サイク
ルのAD制御動作に1回の割合でリフレッシュされ、レ
ジスタ321にはA/D40の4つのチャンネルに入力
されているアナログデータが、それぞれのチャンネルご
とに8ビットのディジタルデータとして常に用意されて
いることになる。 【0092】そこで、いま、伝送路から受信信号RXD
が入力され、それに付されているアドレスデータがこの
CIMに対するものであったとする。なお、このときの
アドレスデータは、既に説明したように、“E”又は
“F”である。そうすると、受信フレームの入力が終っ
た時点(図8のS48)でシフトレジスタ104に書込ま
れるデータのフォーマットは、図5のADモードとなっ
ているため、このシフトレジスタ104のQ8 ビットQ
9 ビットには、2ビットからなるADチャンネルデータ
が格納されている。 【0093】そこで、このADチャンネルデータは、S
48で信号WRITESTBが発生した時点で読出さ
れ、これによりゲート322の4つのチャンネルのうち
の一つが選択される。この結果、S73(図8)で、信号
PSとSHIFTが発生した時点で、レジスタ321の
4つのチャンネルのうち、シフトレジスタ104のQ
8 、Q9 の2つのビットで選ばれたチャンネルのADデ
ータだけが読出され、それがシフトレジスタ104のQ
>0 ビットからQ7 ビットまでの8ビット部分に書込ま
れ、これがS74以降の送信状態で送信信号TXDに含
まれ、CCUに伝送されることになる。 【0094】ところで、この実施例では、上記したよう
に、受信信号RXDの受信処理とそれに続く送信信号T
XDの送信処理とは無関係に、常にレジスタ321の中
にはADデータが用意されている。従って、この実施例
によれば、どのようなタイミングで自分宛の受信信号R
XDが現われても、直ちにADデータによる送信信号T
XDの伝送を行なうことができ、A/D40の動作によ
り伝送処理が影響を受けることがなく、A/D変換動作
に必要な時間のために伝送速度が低下するなどの虞れが
ない。 【0095】なお、この実施例では、CIMをLSI化
するに際して、A/D40を外付けとし、CIMの汎用
化に際してコストダウンを図るようになっている。つま
り、図2で説明したように、この実施例では、モードの
設定により一種類のCIMをLCU30〜31として
も、LCU32としても、或いはCCU10のCIM3
3としても使用できるようにしている。 【0096】しかして、このとき、A/Dを内蔵させて
しまうと、CIM30、31、33として使用したとき
に無駄なものとなり、しかも、一般に自動車の集約配線
システムに適用した場合には、CIM32として使用さ
れる個数の方が他のCIM30、31、33として使用
される個数より少ないため、CIMの全部にA/Dを内
蔵させることによるメリットがあまりない。そのため、
A/Dを外付けとしているのである。 【0097】ところで、このA/Dの外付けのため、図
4から明らかなように、外付けのA/D40に対して4
本の接続端子が必要になり、LSI化した際に端子ピン
数の増加をもたらす虞れがある。 【0098】そこで、本発明の一実施例では、CIMが
ADモードに設定されたときには、I/Oバッファ10
5の14のポートのうちの4本がA/D40に対する接
続端子として切換られるようにしてある。すなわち、本
発明の実施例では、I/Oバッファ105が14ポート
となっており、これらは図5から明らかなように、CI
MがDIOモードに設定されたときには全部が入出力ポ
ートとして使用される可能性があるが、ADモードのと
きには最大でも10ポートしか使用されず、4ポートは
DIOデータの入出力には使用されないで余っている。
そこで、この余った4ポートをADモードで切換え、A
/D40に対する端子ピンとして使用すれば、A/Dを
外付けにしても端子ピン数の増加はなく、LSI化に際
して汎用性が増し、コストダウンが可能になる。 【0099】次に、この実施例によるCIMの、MPU
モードにおける動作について説明する。図7から明らか
なように、この実施例によるCIMを、MPUモードに
切換設定するためには、そのアドレスADDR0〜AD
DR3によるアドレス設定を“0”、つまり入力22
3を全て接地電位に保ち、(0000)としてやればよ
い。 【0100】このMPUモードとは、図2に示したCI
M33として使用されたときに必要な機能を与えるため
のモードで、DIOモード及びADモードで使用された
場合と異なり、CCU10のマイクロコンピュータ(以
下、単にマイコンという)からデータが与えられると、
それを所定のLCUのCIM30〜31のいずれかに対
して送信し、それに応答して返送されてくるデータを受
信したら、そのデータをマイコンに転送させるという伝
送インターフェース動作を行なうものである。 【0101】ところで、これまでの説明では、図6に関
連して説明したように、LCU側のCIMからみた説明
を主としていたため、CCU側のCIMからLCU側の
CIMにデータを伝送するフレームを受信フレーム、反
対にLCU側からCCU側に伝送するフレームを送信フ
レームとしてきたが、以後は、それぞれのCIMからみ
てデータを送出するフレームを送信フレーム、自らがデ
ータを受け入れるときのフレームを受信フレームとして
説明する。従って、以後は、或るCIM、例えばCIM
33での送信フレームは、他のCIM、例えばCIM3
0では受信フレームとなり、他方、CIM30での送信
フレームは、CIM33では受信フレームとなる。 【0102】さて、図9は、本発明の実施例によるCI
Mにアドレス“0”が設定され、CPUモードで動作す
るように制御されたときの大まかな機能ブロック図で、
図2におけるCIM33の状態を表わしている。なお、
既に説明したとおり、この実施例では、アドレスの設定
により同一構成のCIMが3種のモード、つまりCPU
モード、DIOモード、ADモードのいずれの状態での
機能をもはたすことができるものであり、従って、この
図9の状態は、CPUモードでの機能ブロックを表わす
もので、この実施例によるCIMの構成が図3の場合と
異なったものとなることを表わすものではない。 【0103】この図9から明らかなように、CPUモー
ドでは、I/Oバッファ105(図3)とA/D40は機
能を止められ、マイコンとは14ビットのデータバスで
結ばれる。なお、このときの端子ピンはI/Oバッファ
105の入出力ポートと共通に用いられ、端子ピンの増
減は全く生じないようになっているのはいうまでもな
い。そして、この14ビット(14本)の入出力のうち8
ビットがデータ用であり、残り6ビットが制御信号用と
なっている。 【0104】まず、このCPUモードにおいては、シフ
トレジスタ104のデータ内容が、図5に示すように、
0 からQ23までの24ビットが全てMPUデータとな
っており、マイコンは8ビットのデータバスによって、
このシフトレジスタ104にアクセスするようになって
いる。一方、制御回路101はマイコンからの制御信号
を受け、シフトレジスタ104のQ0 〜Q23の全てのビ
ットに、マイコンからのデータが格納されると同時に送
信動作に入り、このデータが格納され終った時刻tX
ら、図10に示すように、送信フレームの伝送を開始す
る。 【0105】こうして送信フレームがCIM33から伝
送されると、それに応じてLCU側のCIM30〜32
の一つが応答し、ひき続いてそのCIMが送信を開始す
るから、時刻tX から1フレーム(148ビット)の伝送
時間が経過した時刻tY になると、シフトレジスタ10
4の中には、CIM33から呼掛けを行なったCIM
(CIM30〜32のうちの一つ)から伝送されたデータ
が格納され終ることになる。 【0106】そこで、CIM33の制御回路101は、
この時点tY において割込要求(IRQ)を発生し、これ
に応じてマイコンがシフトレジスタ104のデータを読
取り、1サイクル分のデータ伝送を終了する。なお、こ
のときのCIM相互間でのデータの授受動作は、図3に
関連して説明したDIOモードにおける場合と同じであ
るのはいうまでもない。 【0107】次に、図11は、CIM33、つまりMP
Uモードに設定されたときのCIMの一実施例を示す機
能ブロック図で、MPUモードにおいて必要とする機能
に対応したブロックだけを示したものであり、この図1
1において、400、402は8ビットのスイッチ、4
04は8ビットのデータラッチであり、その他は図4の
実施例と同じである。 【0108】このMPUモードでは、シフトレジスタ1
04のQ0 ビットからQ23ビットまでが8ビットの入出
力ピンを介してマイコンのデータバスに接続され、相互
にデータの授受を行なうようになっており、このため、
シフトレジスタ104のQ0〜Q23のビットを3つのグ
ループ、Q0〜Q7(Reg3)、Q8〜Q15(Reg2)、
16〜Q23(Reg1)に分割したものとして扱い、時分
割で順次にアクセスするようにしている。 【0109】そこで、このため、8ビットのスイッチ4
00と402を用い、マイコンから与えられるレジスタ
セレクト信号RS0、RS1の組合わせにより、スイッ
チ400の制御信号READ1〜3と、スイッチ402
の制御信号STB1〜3を作り、入出力端子ピン7〜1
4をReg1からReg2、そしてReg3へと順次接
続するようにし、8ビットづつ3回のアクセスにより、
マイコンとシフトレジスタ104との間でのデータの授
受を行なうようになっている。そして、この場合、マイ
コンからシフトレジスタ104に対するデータの書込み
時では、マイコンからのデータの読出し時間と、シフト
レジスタ104に対するデータの書込時間との違いを補
償するため、ラッチ404が設けられ、マイコンからの
データを一旦、ラッチしてから書込むようになってい
る。 【0110】また、このMPUモードでは、データ受信
時での24ビットのデータの先頭に付されているアドレ
スの照合は、このCIM33の中では行なわない。従っ
て、入力20〜23に与えられたアドレス(0000)は、
アドレスデコーダ306によって、MPUモードに、こ
のCIMを設定するためにだけ使用され、図4における
コンパレータ307は動作しないようになっている。 【0111】次に、このMPUモードでは、CIM33
の入出力端子ピン1〜6がマイコンに対する制御信号の
伝送路となっており、これにより、マイコンからは、C
IMの制御回路101に対して、クロックE、チップセ
レクト信号(CS)、リードライト信号RW,それに上述
のレジスタセレクト信号RS0、RS1が与えられ、一
方、このCIMからは、割込要求信号(IRQ)がマイコ
ンに出力されるようになっている。 【0112】図12、図13は、これらの信号の処理回
路の一実施例で、図11では省略してあるが、制御回路
101の一部に含まれているものであり、まず、クロッ
クEは図12の回路に供給され、内部クロックCLOC
Kと共に処理されて2相のクロックEH、ELが発生さ
れる。そして、これらのクロックEH、ELと、マイコ
ンからの信号RW、CS、RS0、RS1が図12の回
路で処理され、信号STB0〜3、READ0〜1が発
生される。なお、信号MPUは、CIMがMPUモード
に設定されると“1”になる信号である。 【0113】さらに、この図13の回路による信号処理
タイミングを示したのが図14、図15で、これらの図
のうち、図14は信号READ0〜3の発生タイミング
を、それに図15は信号STB0〜3の発生タイミング
を、それぞれ示したものである。なお、これらの図にお
いて、信号READ0〜3のうちのいずれが発生する
か、及び信号STB0〜3のうつのいずれが発生するか
は、信号RS0とRS1の組合わせで決まるようになっ
ており、これにより上述したシフトレジスタ104のグ
ループReg1、Reg2、Reg3の選択が行なわれ
る。 【0114】ところで、これらの信号READ0〜3、
STB0〜3のうちの信号READ0とSTB0とは、
上記したシフトレジスタ104のグループ選択には使用
されず、後述する割込要求信号(IRQ)の発生に使用さ
れる。従って、信号RS0とRS1による選択状態を示
すと図16のようになる。 【0115】次に、図17は割込要求信号(IRQ)の発
生回路の一実施例で、同じく図11の制御回路101の
中に含まれ、このCIM33がデータ受信完了して、シ
フトレジスタ104の中に受信データの格納を終ったと
きに発生する信号WRITESTB(図8)と信号REA
D0とによって信号(IRQ)を発生する回路と、入出力
端子ピン7〜14によってマイコンのデータバスに接続
されているデータ線D0〜D7のいずれか一つ、例えば
データ線D0からの信号DATAと信号STB0から信
号MASK1を作る回路とで構成されており、その動作
は図18、図19のタイミングチャートに示されてい
る。 【0116】そして、これらのうち、図18は信号DA
TAがSTB0の発生タイミングで“0”となっていた
ときの動作を、また図19は信号DATAが“1”にな
っていたときの動作をそれぞれ示したものである。な
お、図17の回路で、信号DATAとSTB0が供給さ
れているフリップフロップをReg0という。従って、
この図17の回路では、Reg0に“1”が書込まれて
いると割込要求信号(IRQ)にマスクが掛けられること
になる。 【0117】次に、図11の実施例、つまり本発明によ
るCIMの一実施例がMPUモードに設定された状態に
おけるデータ伝送の全体的な動作を、図20のタイミン
グチャートによって説明する。本発明の実施例において
は、CIM30〜33のいずれも、その動作がシーケン
スカウンタ303のカウント出力により制御され、従っ
て、このシーケンスカウンタ303のカウント出力を所
定値に設定してやれば、任意の動作状態に転位させるこ
とができることは、既に図4、図8などに関連して説明
したとおりであり、このことはCIMがどのようなモー
ドに設定されていても変りはない。 【0118】ところで、図11に示すように、MPUモ
ードに設定されたCIMは、図2から明らかなように、
DIOモード又はADモードに設定されているCIM3
0〜32となっている。そして、このCIMは、DIO
モード及びADモードに設定されていたときには、図8
で説明したように、他のCIMからのデータを受信した
とき、それにひき続いて自らのデータの送信を行ない、
1フレーム分のデータ授受動作を行なうもので、いわば
パッシブな動作しか行なわない。 【0119】これに対して、CIM33のようにMPU
モードに設定されているものでは、マイコンからのデー
タがシフトレジスタ104に書込まれたら自らデータ送
信を開始する、いわばアクチブな動作を必要とする。 【0120】そこで、この実施例では、このアクチブな
データ送信開始のため、シフトレジスタ104のグルー
プ選択のための信号STB1〜3のうちの、信号STB
3を使用するようにしている。これは、シフトレジスタ
104に対するマイコンによる送信データの書込みがR
eg1、Reg2、Reg3の順に行なわれ、このた
め、信号STB3が発生した時点でマイコンからシフト
レジスタ104に対するデータが全て格納し終るからで
ある。 【0121】そこで、図20に戻り、いま、或る時点で
CCU10(図2)のマイコンに、LCUのいずれかに対
して伝送すべきデータが用意されたとする。そうする
と、このマイコンは、入出力端子ピン1〜6を介して、
信号(CS)、RW、RS0、RS1をCIM33の中の
制御回路101に供給し、図12〜図16で説明したよ
うに、信号STB0〜3を発生させ(図20の左端上
部)、データバスから順次、8ビットづつのデータをシ
フトレジスタ104のReg1、Reg2、Reg3に
書込ませる。 【0122】一方、制御回路101は、この信号STB
3の発生をとらえ、シーケンスカウンタ303に“4
9”をロードする。この信号STB3によるシーケンス
カウンタ303の出力データを“49”にするための回
路の一実施例を図21に、この回路の動作を表わすタイ
ミングチャートを図22にそれぞれ示す。 【0123】こうして、シーケンスカウンタ303がS
49にされると、この時点tX(図10)で送信フレーム
の処理が開始する。このS49からS122までの送信
フレームの処理は、図8で説明したDIOモードの場合
とほぼ同じであるが、このMPUモードでは、シフトレ
ジスタ104には既に伝送すべきデータが書込まれてい
るから、S49からS73までの間では何もせず、ただ
シフトレジスタ104のQ24にスタートビット用の
“1”を書き込むだけである点が、DIOモードのとき
と異なるだけである。 【0124】こうしてS122に達すると信号INIT
IALが発生し、その後、S0からS24までの最少時
間を含むアイドル状態に入る。つまり、MPUモードで
は、DIOモードのときと異なり、他のCIMからデー
タが受信されるのを待つのではなく、マイコンからシフ
トレジスタ104にデータの書込みが終了したらシーケ
ンスカウンタ303にデータ49を強制的にロードし、
これにより自動的に送信フレームの処理に入るようにし
ているのである。 【0125】さて、こうして、CCU10のCIM33
から送信フレームの伝送が開始すれば、既に図8で説明
したように、この送信データTXDがLCU側のCIM
30〜32によって受信データRXDとして受信処理さ
れ、そのうちのアドレスの位置したCIMにょって折り
返しデータが伝送されてくるから、今度はそれが受信デ
ータRXDとしてCIM33に受信されるようになる。 【0126】このときの受信フレームの処理も、図8に
おけるDIOモードの場合とほぼ同じで、ただMPUモ
ードでは、アドレスの一致状態をみない点が異なるだけ
である。そして、S0からS48になり、シフトレジス
タ104の中に受信データが格納し終り、かつエラーが
検出されなかった場合には、S48のクロックφS によ
り信号WRITE STBが立上ると、これにより図1
7から図19で説明したように割込要求信号(IRQ)が
発生し、その後のクロックφM により信号INITIA
Lが発生して、このZCIM33はアイドル状態に入
り、次に信号STB3が発生するまでアイドル状態を保
つ。 【0127】こうして割込要求信号(IRQ)が発生され
ると、CCU10内のマイコンは、この信号IRQによ
り割込処理ルーチンにジャンプし、シフトレジスタ10
4から受信データの取込みを行なう。このときのシフト
レジスタ104からの受信データの取込みは、スイッチ
400を用い、これに、図12及び図13で説明した回
路から信号READ1〜3を順次供給し、8ビットのデ
ータバスD0〜D7を介してシフトレジスタ104のR
eg1、Reg2、Reg3の順に行なわれるものであ
ることは、既に説明したとおりである。 【0128】ところで、この実施例では、既に図17で
説明したように、この信号(IRQ)はマスク可能に構成
されており、CCU10のマイコンはReg0(図17)
に“1”を書き込んでおくことにより、この信号(IR
Q)をマスクすることができる。 【0129】従って、図20のように、信号STB3の
発生時点tX の前の信号STB0の発生時点(図20の
左下)に合わせてデータバスD0を“1”にしておけ
ば、信号MASKが“1”になり、その後、信号WRI
TE STBが発生した時点でも割込要求信号(IRQ)
はマイコンに供給されず、これによりマイコンは必要に
応じて所定の期間中、他の処理を優先して行なうことが
できる。 【0130】なお、このマスクの解除は、図17から明
らかなとおり、信号STB0の発生時点でデータバスD
0を“0”にし、Reg0に“0”を書き込めばよい。 【0131】一方、CCU10のマイコンは、こうして
信号(IRQ)のマスクを行なっていたときには、図17
の信号IRQを調べ、それが“1”になっていたらデー
タ受信が完了していたことになるので、シフトレジスタ
104からデータの取込みを行ない、それが“0”にな
っていたらデータの受信完了を待つ。なお、信号(IR
Q)は、データの取込みを行なうときに発生する信号R
EAD0により解除されることは、図17から明らかで
ある。 【0132】ここで図2のように、MPUモードに設定
されたCIM33と、DIOモード(又はADモード)に
設定されたCIM30〜32との組合わせによるデータ
伝送動作を状態遷移図で示すと図23のようになる。 【0133】次に、CCU10のマイコンによる伝送制
御について説明する。CCUのマイコンは、各LCUの
負荷のうち、各種のスイッチやセンサなどからデータを
取り込み、それに応じて各LCUの負荷のうちの各種の
ランプやアクチュエータなどを制御するためのデータ
を、それぞれのLCUに送り出す働きをするが、さらに
伝送システムに電源が投入されたときの起動時における
処理と、データ伝送が定常状態にあるときでの各LCU
のCIMの動作の監視を行なう。 【0134】図24はCCU10の一実施例で、500
はセントラル・プロセッシング・ユニット(CPUとい
う)、502はプログラム格納用のリード・オンリ・メ
モリ(ROMという)、504はデータ格納用のランダム
・アクセス・メモリ(RAMという)、506はペリフェ
ラル・インターフェース・アダプタ(PIAという)であ
り、その他、CPUモードに設定されたCIM33や光
電変換モジュールO/E、それに光ファイバケーブルO
Fからなる双方向伝送路20などは、図1及び図2で説
明したとおりである。 【0135】次に、この図24の実施例の動作を、図2
5のフローチャートによって説明する。自動車のエンジ
ンキースイッチがオンされるなどして、データ伝送シス
テム全体に対する動作用の電源が投入され、伝送動作が
起動すると、このフローに従った処理が開始し、最初の
ステップS1(以下、ステップを省略して単にS1、S
2などと記す)に進む。 【0136】S1では、予め用意してあるシステム起動
用フラグをセットする。S2では、システム起動後、各
LCUに対するCCUからのデータの伝送が一巡したか
否かを調べ、結果がNO、つまり、起動後、まだCCU
からデータの伝送、即ち呼び掛けを受けていないLCU
が残っている間はS3に向い、そうでないときにはS9
に向う。 【0137】S3では、システム起動後、CCUからの
データ伝送が一度でも行なわれたか否かを調べ、最初の
伝送か否かを判断する。そして、結果がYESのときに
はS4に、NOのときにはS10に、それぞれ進む。S
4では、予め作成してROM502に格納してある特定
の制御データを、これも予め定めておいた特定のLCU
に対して送信する。このときの特定の制御データとして
は、それを受信すべき特定のLCUにおける負荷の制御
状態が、システム起動時に相応しいものとなるようなデ
ータに定めておく。例えば、そのLCUの負荷がランプ
であったら、とにかくそれを消すためのデータとなるよ
うにしておくのである。このS4の処理を終ったらS5
に進む。 【0138】S5では、LCUのいずれか一つからデー
タが伝送されてきたか否かを調べ、結果がNOのときに
はS6に進み、結果がYESとなったら、S8にジャン
プする。なお、LCUからCCUに伝送されるデータ
は、LCUに結合されている負荷のうちのスイッチやセ
ンサなどからの、それらの動作状態を表わすデータとな
っているので、これをモニタデータと呼ぶ。 【0139】S6では、S5での判断結果が続けて2
回、NOとなったか否かを判断し、結果がYESとなっ
たらS7に進み、結果がNOの間はS3の判断に戻る。
S7では、異常発生の警告処理を行ない、このとき続け
て2回、モニタデータを送信してこなかったLCUに、
故障などによる異常が発生したことをDIS508に表
示させ、その後、S8に進む。 【0140】S8では、CCUから次にデータを送信す
べきLCUを、次の番のものに定める処理を行なう。こ
のため、S4でシステム起動後、CCUから最初にデー
タを送出すべき特定のLCUを第1番とし、それ以外の
LCUに対して予め番号を付しておき、順次指定し得る
ようにしておく必要があるのはいうまでもない。そし
て、S8の後はS2の処理に戻る。 【0141】一方、S2での結果がYESになったとき
にはS9に進み、このS9の後とS3での結果がNOに
なったときにはS10に進むが、まず、S9では、シス
テム起動フラグをクリアするための処理が行なわれる。
そして、S10では、各LCUから受信したモニタデー
タに基づいて作成した、それぞれのLCU向けの制御デ
ータを、対応するLCUに送信するための処理を行な
う。 【0142】なお、前述のS4と、このS10における
送信処理は、マイコンのCPU500からCIM33の
シフトレジスタ104に対する24ビットのデータの書
込が完了し、信号STB3が発生したことにより自動的
に開始することは、既に説明したとおりである。 【0143】一方、CPU500などからなるマイコン
が、S1ないしS10にしたがった動作を行なっている
とき、これに組合わされているCIM33がデータを受
信すると、割込要求信号(IRQ)が発生し、既に図20
で説明したように、マイコンの処理は、CIM33から
のデータ取込みのための割込処理にジャンプする。そし
て、図26に示すように、この割込処理の中で、CIM
33を介して各LCUから受信したモニタデータに基づ
いて、その都度、新たに制御データのうち必要なものを
DIS508に表示させる処理を行なう。 【0144】こうして、割込処理の中で作成されたデー
タが、図25のS10の処理において、対応するLCU
に向けて送信されることになるのである。なお、割込要
求信号(IRQ)をマスクしていたときには、マスク解除
時での状態に応じた動作となることは既に説明したとお
りである。 【0145】次に、これら図25、図26の処理が行な
われた結果について説明する。まず、S2、S3、S4
の各処理の存在により、電源投入後、最初のデータ伝送
動作は、特定のLCUに対する特定の制御データの送出
となる。この結果、この特定のLCUに設けられている
負荷は、電源投入時での不定なデータによる異常な制御
状態から、直ちに、特定の制御データによる充分に妥当
な制御状態にされる。 【0146】一方、こうして電源投入後に1回でもモニ
タデータが受信されれば、それに基づいた制御データの
作成が可能になるため、それ以後、特定のLCU以外の
LCUにはS10でのデータ伝送により、かなり妥当な
制御データが送られることになり、このことはデータ伝
送回数が増加するにつれて強調され、データ伝送回数が
LCUの個数に近くなれば定常状態とほとんど変らな
い、ほぼ完全な制御状態を得ることができる。 【0147】従って、この実施例によれば、電源投入時
などに負荷の制御状態が異常になるのを最少限に抑え、
実用上ほとんど問題にならない制御を行なうことができ
る。 【0148】次に、この実施例によれば、図25のS
5、S6、S7の処理の存在により、CCUが或るLC
Uに対してデータを伝送した際、そのLCUからのモニ
タデータが受信できなかった場合には、CCUから再び
同じLCUに対するデータの送信動作が繰り返され、こ
れに応答してモニタデータが受信されれば、偶発的な事
情による一時的な異常としてそのまま次のLCUに対す
るデータ伝送に移行するが、2回続けてモニタデータが
受信されなかったときには、そのLCUに故障などによ
る異常が発生したものと判断され、それがDIS508
に表示されることになる。 【0149】従って、この実施例によれば、データ伝送
動作中、全てのLCUのデータ応答動作に対する監視が
行なわれ、しかも異常発生に際しては、それが一時的な
ものか否かの確認も自動的に行なわれることになり、常
に正常に異常発生の表示が行なえることになる。 【0150】なお、この図25の実施例では、S6での
判断が2回続けて受信不能か否かとなっているが、この
ときの回数は2回に限らず、2回以上なら何回でもよ
い。例えば、ノイズ環境が不良で、一時的なデータ伝送
誤り発生の確率の高い場合は3回、4回、或いは5回と
し、反対に、良好な環境のもとに設置され、偶発的なデ
ータ伝送誤り発生の確率が低い場合には、上記実施例に
示すように、2回でも充分過ぎる場合もあるのはいうま
でもない。 【0151】ところで、図25の実施例では、電源投入
後、最初にCCUからLCUに伝送されるデータが、特
定の一つのLCUに対してだけ予め用意してある特定の
制御データとなり、その他のLCUに対してはモニタデ
ータに基づいてその都度作成された制御データとなる
が、全てのLCUに対応して、それぞれ特定の制御デー
タを用意しておき、それぞれのLCUに対する第1回目
の伝送に対しては、それぞれのLCUごとに対応する特
定の制御データが送信されるようにしてもよい。 【0152】次に、図27は、CCU10の他の一実施
例で、データ伝送系に含まれる負荷の数が多くなり、L
CUの中に複数個のCIMを必要とした場合などに適し
た実施例について示したものであり、図において51
0、512、514はO/E(光電変換モジュール)、
20a、20b、20cはOFによる信号伝送路、30
a、30b、31a、31bはDIOモード又はADモ
ードに設定されたCIMであり、その他は図24の実施
例と同じである。 【0153】O/E510、512、514はPIA5
06により選択制御され、複数本のOF20a、20
b、20cのうちの1本をCIM33の信号伝送路T
X、RXと結合させる働きをする。各LCUには、それ
ぞれ複数個のCIM30a、31a、30b、31bを
含み、それぞれ独立しているOF20a、20b、20
cによってCCUに結合している。 【0154】なお、CPU500としてはHD4680
2として知られているICが、そしてPIA506には
HD46821として知られているICが、それぞれ用
いられ、このうちHD46802にはROMとRAMが
ビルトインされているため、これらを外付けとして設け
る必要はない。 【0155】この実施例によれば、CPU500などか
らなるマイコンが、PIA506を介してO/E512
〜514を選択制御し、CIM33によりデータ伝送を
行なうべきLCUを指定することができるから、それぞ
れのLCUごとに同じアドレスを付したCIMを設ける
ことができ、LCU側のCIMの数をアドレスの数より
充分に多くすることができ、データ伝送システムの機能
を容易に拡大することができる。 【0156】本発明によれば、どのようなタイミングで
中央処理装置からの呼び掛けがあっても、直ちにアナロ
グ信号を発生する外部負荷からの信号の取り込みが可能
になるので、伝送処理が影響を受ける虞れが無く、ディ
ジタルデータと同様に処理することができる。 また、本
発明によれば、端末処理装置にアナログ−ディジタル変
換機能を持たせることができるので、同一の伝送系でア
ナログ信号を出力する負荷の信号とディジタルの双方の
データの伝送が可能になり、集約配線システムの利点を
充分に活かすことができる。
Detailed Description of the Invention [0001] BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission system.
In particular, the integrated wiring system is
The present invention relates to a data transmission method suitable for a system. [0002] 2. Description of the Related Art For example, various lamps and motors are used in automobiles.
Electrical components, various sensors for vehicle control,
A large number of electric devices such as actuators are arranged,
Will continue to increase as automobiles become more electronic
I am following. Therefore, many of these
Wiring was performed independently for each electric device
Wiring becomes extremely complicated and large.
And increased cost, weight and space,
Alternatively, a big problem such as mutual interference occurs. Therefore, a method for solving such a problem
As an example, it is possible to transmit many signals with few wires.
For example, a system for simplifying wiring by the multiplex transmission system is
It is proposed in Japanese Laid-Open Patent Publication No. 57-17535. Figure
1 、 Integrated wiring in the car by such multiplex transmission system
An example of a system is shown. The system shown in FIG. 1 is used as a signal transmission line.
Central control unit CCU using optical fiber cable OF
(Hereafter, simply referred to as CCU. This is Central Cont
rol Unit) and multiple terminal processing units LCU (hereinafter,
Simply called LCU. This is the Local Control Unit
Abbreviations) are commonly connected by optical signal channels
At the branch point of the optical fiber cable OF
OC is provided. The CCU is located near the car dashboard.
Installed at an appropriate place to control the entire system
It has become. LCU is various operation switches S
W, indicator such as meter M, lamp L, sensor S, etc.
A certain number of devices near the electric devices installed in the vehicle.
Only distributed. CCU and each LCU are optical
The optical signal and the electric power are connected to the part that is connected to the fiber cable OF.
The photoelectric conversion module O / E that converts air signals in both directions
It is provided. The CCU is equipped with a microcomputer and
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 Mod
(abbreviation of ule) is provided and the CCU selects one of the LCUs sequentially
, And exchanges data with that LCU.
1-channel optical fiber cable
It becomes possible to perform multiplex transmission via the OF, which is complicated and large-scale.
Wiring inside a car can be simplified. [0007] [Problems to be Solved by the Invention]
Is an external load such as a sensor that outputs an analog signal.
However, in the system described above,
For analog signal acquisition from an external load
Is not taken into consideration.
For importing the number, use the CCU input / output circuit separately.
Is running under the control of the CCU,
Therefore, an external load that generates such an analog signal is
In some cases, the wiring to the CU becomes long, and
There is a problem that the advantage of the line system is lost.
Was. The present invention has been made in view of the above circumstances.
To connect to an external load such as a sensor that outputs an analog signal.
In addition, the LCU close to the installation location collects analog signals.
The LCU can call in, and the LCU calls from the CCU.
Data that can be arbitrarily sent according to
To provide a transmission system. [0009] [Means for Solving the Problems] The above-mentioned purpose is applied to the LCU.
Analog-digital converter and analog-digital converter
And an analog-digital converter provided with the converter control means.
The control means is equipped with a shift register, and an interrogation from the CCU is made.
The above analog-digital at a timing independent of
It controls the converter and sends digital data to the shift register.
Is configured to execute the process of storing the data,
The digital data stored in this shift register is
Sequentially transmitted from LCU in response to calls from CCU
It will be achieved as you go. [0010] The analog-digital converter control means is a CC
The timing is independent of the call from U, and the shift is always
So that digital data is stored in the register
work. As a result, at what timing the CCU
Even if there is a call from the
Since the transmission process will not be affected, the LCU will not be affected.
Can capture analog signals. [0012] Embodiments of the data transmission system according to the present invention will be described below.
Examples will be described with reference to the drawings. FIG. 2 illustrates one embodiment of the present invention.
An example of the whole block configuration is shown, and 10 is a central processing unit.
(Corresponding to CCU in FIG. 1), 20 is a signal transmission line (optical fiber in FIG. 1)
(Corresponding to the fiber cable OF), 30 to 32 are terminal processing devices
(Corresponding to the LCU in FIG. 1), 40 is an A / D (analog-data
Digital converters) 51 to 58 are external loads. What
In this embodiment, the electric signal transmission is used as the signal transmission line 20.
The case of using the route is shown, and
The photoelectric conversion module 10 and the terminal processors 30 to 32 are photoelectric conversion modules.
Module is unnecessary, and therefore, the terminal processing devices 30 to 32
The content of is substantially only CIM. Including a computer (microcomputer)
The central processing unit 10 uses the transmission line 20 for each terminal processing unit 3
Combined with 0-32, various sensors, lamps, actuators
External load 51 consisting of electric devices such as data and motors
Of control data to 58 and
The acquisition is performed by the multiplex transmission method. At this time, Ana
External loads 57, 58 such as sensors that output log data
Is connected to the terminal processing device 32 via the A / D 40,
Being able to perform transmission operations using digital data
There is. If the signal transmission line 20 is bidirectional,
Not only the electrical signal transmission system,
Any communication system such as a signal transmission system is used.
The system is a so-called half-duplex system (central processing unit).
One of the plurality of terminal processing devices 30 to 32 from the device 10
One of the terminal processing devices and the central
Data is exchanged with the processing device 10 via the transmission line 20.
Are performed alternately. [0015] Multiplex transmission by such a half-duplex system
Therefore, the data sent from the central processing unit 10
An address indicating the destination is attached and received from the transmission path 20.
The address attached to the collected data is your own address
Only one of the terminal processing devices that
I'm supposed to answer. In this way, the address from the central processing unit 10 is
Address depending on the data sent with the address
Terminal processing that understands and determines that it is their own
Only one of the devices responds by centralizing its own data
By sending to the processing device 10, the above-mentioned half-duplex type
A data transmission operation according to the formula will be obtained. Further, in this embodiment, each terminal processing device 3
The functions of 0 to 32 are aggregated into a specific one, and these terminal processes are performed.
Easy to make devices 30-32 into LSI (large-scale integrated circuit)
are doing. And as a specific function at this time,
The data transmission function described, that is, multiplex transmission by half-duplex method
Functions required for sending and A / attached to each terminal processing unit
It has two types of functions to control external devices such as the D40.
You. As a result, the data transmission function is exclusively used.
Is becoming possible. For example, an integrated wiring system in a car
If you want to apply the
According to the appropriate transmission speed and the number of bits of the address
You can decide. Furthermore, in this multiplex transmission system,
To utilize the functions of the terminal processing device that has been implemented as an LSI
However, it is also applicable to the central processing unit 10,
As a result, the central processing unit 10 has a data transmission function.
A general-purpose computer that does not have
Etc., and the LSI terminal processing device 33 described above
The central processing unit 10 can be configured only by combining
Software required for the computer of the central processing unit 10
The load on the wear side can be reduced and the edge
The versatility of the end treatment device can be increased. In addition, this place
In the case of the terminal processing unit 33 that is combined with the central processing unit side,
Does not take advantage of some of the features it has
It remains, but this is unavoidable. Next, FIG. 3 shows each of the terminal processing devices 30 to 32.
An example of the above is shown in a rough block configuration.
The reception signal RXD input from the transmission path 20 is supplied to the synchronization circuit 10
2 of the clock from the clock generator 107
The control circuit 101 is synchronized and the reception signal RXD is clocked.
A clock that is start-stop synchronized to the black component is given.
The control circuit 101 generates a control signal, and the shift register
The data portion of the received signal is serially read into the data 104. On the other hand, the address comparison circuit 103 is previously provided with
Given the address assigned to the terminal processor
This address and the predetermined value of the shift register 104
The data read in the bit position is the address comparison circuit 1
Compared by 03, shift only when both match
The data in the register 104 is transferred to the I / O buffer 105.
It is sent and given to an external device. Further, the control circuit 101 advances by a clock.
Generates sequential control signals, including a counter
Then, the data by the received signal RXD is transferred to the I / O buffer 10
After giving it to 5, then I / O buffer
Parallel data from the file 105 to the shift register 104
To the central processing unit 10 from an external device.
Data in the shift register 104
Prepare as data. And this data is shift register
Serially read from the data 104 and used as the transmission signal TXD
And transmits it to the transmission line 20. At this time, if the received signal RXD is added,
The original address is sent as it is to the transmission signal TXD.
Therefore, the central processing unit 10 transmits the address transmitted by itself.
The transmission signal TXD
This makes it possible to perform one cycle by half-duplex method.
The transfer of the data for one minute is completed. Thus the central processing unit
10 sends data to the next terminal processing device.
By repeating this, each of the plurality of terminal processing devices 3
Data is exchanged between 0 and 32 periodically,
Multiplex transmission becomes possible. The A / D control circuit 106 is the end of FIG.
A / D40 required when used as the end treatment device 32
It is a feature of the present invention to provide a control function of
The analog-to-digital converter control means.
Therefore, an external negative signal such as a sensor that generates an analog signal
Digitize data from loads 57 and 58 by A / D 40
Necessary in order to convert the data into the shift register 104
Functions to provide various control functions. In addition, about the details
Will be described later. Next, FIG. 4 shows one of the terminal processing devices 30 to 33.
3 is a block diagram showing an embodiment, which is the same as or equivalent to FIG.
The parts are given the same reference numerals, and in FIG.
01 generates a clock that is start-stop synchronized with the received signal RXD.
Synchronous circuit for switching, 302 is a two-phase clock φS And φ
M Generating counter, 303 is for sequential control
Counter, 304 indicates various values from the output of the counter 303.
Sequence decoder that produces control signal, 305 is abnormal
Detector, 306 is input / output switching selection of I / O buffer 105
Address decoder for selection, 307 is 4 for address comparison
Bit comparator, 308 is an error detection
The crucible OR gate 312 is an AND for data transmission.
Gates 313, 314 are tri-state buffers, 3
20 is an 8-bit shift register, 321 is a 32-bit
Register 322, 32 channel gate, 323
Is a counter for A / D control, 324 is a signal for A / D control
Generator circuit 325 is a counter for A / D channel selection
It is The shift register 104 has 25 bits
(24 bits + 1 bit), the I / O buffer 105 is 1
It has 4 ports (14 bits). The terminal processing devices 30 to 33 (hereinafter,
Are referred to as CIM) and select one of several operating modes
The CIMs 30 to 31 shown in FIG.
When used as DIO (Digital Input Outpu
t: Digital input output) mode
However, if the CIM of FIG.
, And MPU when used in the CIM 33 of FIG.
Each mode is selected. This mode selection
Will be described later. First, these CIMs are selected for the DIO mode.
If selected, the A / D control circuit 106 does not operate,
The data contents of the shift register 104 at this time are shown in FIG.
As shown in the figure, 6 bits from No. 0 to No. 5 are used.
14 bits of No. 6 to No. 19 are not used for I / O
It is assigned to the data DIO of the buffer 105. 4 bits from No. 20 to No. 23
No. 24 is assigned to address data ADDR.
It is assigned to the start bit. In addition, DIO day
The number of bits allocated to the data is 14
I / O buffer 105 has 14 bits
Because there is. Also, for this reason, C according to this embodiment
In IM, external load connectable to I / O buffer 105
The maximum number 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.6.
It is supposed to be. That is, from the CIM on the CCU side
A frame for transmitting data to the CIM on the LCU side is received.
Frame, conversely the frame transmitted from the LCU side to the CCU side
If the frame is a transmission frame, the reception frame and the transmission frame are
Both frames are 74 bits, so one frame and transmit frame
Both have the same frame structure as the
There is a bit "0", then 1 for start / stop synchronization
A start bit consisting of a bit "1" is provided.
This is followed by 24-bit reception data RXD or transmission data.
Data TXD is transmitted in the NRZ signal format, and
Inverted data (RXD) or (TXD) of data is transmitted
It has become. Here, this inverted data (RXD) or
Is transmitting (TXD) because of the transmission error check
This is because. Regarding such inversion data,
In the drawing, a bar is added above the letters and symbols.
However, in this specification, parentheses are added. You
That is, the inverted data of the data RDX is as described above.
Is represented by (RDX). As described above, in this embodiment, the 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
Data ADDR is added as shown in FIG.
Data TX of the transmission frame transmitted from the LCU
The same address data ADDR is added to the first 4 bits of D.
And transmitted. The transmission frame is transmitted from the LCU side.
Is it limited to the LCU called on the CCU side?
, The address is not added to the transmission data TXD
However, on the CCU side, the data from which LCU
Whether it is a thing or not can be judged immediately. Therefore, the transmission frame
It is not necessary to attach an address to the data TXD of the system.
The first 4 bits of data TXD are LC such as (0000).
It may be data that does not match any address of U
Yes. Now, returning to FIG. 4, the CIM address is
explain about. As already mentioned, in this example
Is a different 4-bit CIM for the LCU.
An address is assigned, and based on this address, half
Multiplex transmission of data by the duplex system
ing. Then, this address is assigned to each CIM.
Input that functions to assign to
4 inputs that are 20~ 23And these inputs
Data to be given ADDR0~ ADDR3By the CI
The address of M is specified. For example, add the CIM
To specify the address as "10", the address data A
DDR0= 0, ADDR1= 1, ADDR2= 0, ADD
R3= 1 and input 20~ 23(1010) is input to
You can do it like this. In this example, the data
"0" is the ground potential, data "1" is the power supply voltage VccBy
Since it is displayed as
Power 20Two2Ground and input 21Two3Can be connected to a power source
Becomes By the way, in this embodiment, address input
20~ 23Is 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 the address,
Which of the 14 terminals of the I / O buffer 105
It is determined whether it will be a data output port. And this
In the example, the address directly corresponds to the number of output ports
Therefore, the address is now "1".
If set to 0 ", of the 14 terminals of the I / O buffer
10 are output ports and the remaining 4 are input ports
Controlled to be. Although not shown in FIG. 4, this ad
The output of the response decoder 306 is the sequence of the control circuit 101.
7 is also given to the decoder 304.
As shown, the operation mode of this CIM can be switched.
It has become. That is, in this example, the address
CIM set to "0" is in MPU mode
The CIM set between "1" and "D" is the DIO module.
Mode, and the address is either "E" or "F"
Set the CIM to work in AD mode respectively
Is done. Next, the control circuit 101 and the synchronization circuit 102
The function will be described. This example relates to FIG.
As already explained, the start-stop synchronization method is adopted.
Therefore, for both received frames and transmitted frames,
When transmitting, be sure to insert 25 bits "0" before the start.
Is entered and after this as a 1-bit start bit
"1" data is inserted. Therefore, the synchronizing circuit 301 determines the maximum number of received frames.
Start bit following the first existing 25-bit "0"
Detects the rising edge of and synchronizes the internal clock bit.
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 by the synchronizing circuit 302.
Two-phase clock φ from the taken internal clockS And φM To
produce. This makes the clock φS And φM Then enter
It is assumed that the received data RXD is phase-synchronized.
You. The sequence counter 303 is the synchronization circuit 3
02 shows the start bit rising detection timing
Signal, a specific count value, for example, count value 0
Set to the state ofS Or φM To
Therefore, it is counted. Therefore, according to the count output
The control procedure for the entire CIM can be defined and counted
CIM at any timing by checking the value
You can know in which step the operation of is. Therefore, the count output of this counter 303
To the sequence decoder 304, and the CIM
Required for operation, for example RXMODO, TXMODE, R
All control signals required internally such as EAD and SHIFT
Signal is generated by the sequence decoder 304.
There is. That is, in this embodiment, the clock φS , ΦM By
The sequence control method is
Necessary to decode the output of the counter 303.
That is, all control is possible. 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 of determining whether or not is described. As described above, the comparator 307
Input 2 to one input of0~ 23Address data from
Is given to the other input and the shift register 1
04 Q20Bit to Qtwenty threeGiven up to bits of data
It is supposed to be. And this comparator 30
7 is a match signal only when both input data match
Outputs MYADDR. Therefore, the shift register 10
Received data RXD is input to 4 and its Q20From a bit
Qtwenty threeThe part up to the bit is added to the beginning of the data RXD
Timing data (see Fig. 5) stored
Control the output signal MYADDR of the comparator 307.
At that time, this signal MYADDR becomes "1".
If so, the data RXD is for you, CCU?
It turns out that these calls are for themselves. Therefore, the error detection circuit 308 receives a control signal.
No. COMPMODE is supplied and the specified timing
Take in the signal MYADDR and it becomes "0"
Output, INITIAL is generated and
Sequence counter 303 to count 0,
The operation of the entire CIM is restored and the next data transmission is input.
Be prepared for On the other hand, the signal MYADDR becomes "1".
The error detection circuit 308
Since TIAL does not occur, the operation of CIM remains unchanged.
-Set the count value of the Kens counter 303 at that time
After that, it continues. Next, the transmission error detection operation will be described.
You. In this embodiment, as already shown in FIG.
Data transmission by the continuous transmission method is adopted.
The transmission error can be detected. Soshi
Therefore, the first Q of the shift register 104 is0 Bit
To and the last Qtwenty fourBit to Exclusive OR Gate
Data is given to 311 and the output of this gate 311 is
It is given to the error detection circuit 308 as a signal (ERROR).
It is supposed to be. The sequence decoder 304 has a start
Transmission period of received signals RXD and (RXD) (Fig. 6) following
And outputs a control signal RXMODE to output the composite gate 310.
Open the lower gate of the
Data to the shift register 104 as a serial signal SI.
input. At this time, the NOR gate is in the composite gate 310.
Since it is included, the data supplied from the transmission line 20
Data is inverted and input to the shift register 104. Therefore, the start frame of the reception frame (FIG. 6) is
The 24-bit data following the bit is stored in the shift register 10.
4 is input to this shift register 104
Q0Bit to Qtwenty threeReceived signal R
The inverted data (RXD) of XD will be written. Next, as is clear from FIG.
After the received signal RXD is transmitted,
When a 24-bit inverted signal (RXD) is transmitted,
It is inverted by the composite gate 310 and becomes the data RXD.
Input to the shift register 104 as a serial signal SI.
Begins to be forced. As a result, the Q of the shift register 1040 To
The first bit of the inverted signal (RXD) is inverted and input
At the timing, the reception signal RX that was written before that
The inverted data of the first bit of D is stored in the shift register 104.
Qtwenty four2nd bit of inverted signal (RXD)
Data is Q0 At the timing written in
No. RXD second bit data is Qtwenty fourMove to a bit of
In the end, the inverted signal (RXD) shifts
Serially written in the register 104 bit by bit
At each bit timing when, the shift register 104
Q oftwenty fourBit and Q0 Inverts the received signal RXD in bits
Data of the same bit of signal (RXD) is always written in correspondence
Will be rare. By the way, as described above,
The shift register is connected to the two inputs of the Shiv OR gate 311.
Q of data 1040 Bit and Qtwenty fourBit data is input
ing. Therefore, the received signal RXD and the inverted signal (RXD)
If no error occurred during transmission, the inverted signal R
Exclusive OR gate 311 during XD transmission
The output of should always be "1". Because the reception
Corresponding bits of signal RXD and its inverted signal (RXD)
Then, "1" and "0" should be always reversed.
As a result, the input of the gate 311 always shows a mismatch, so
It doesn't happen only when there is an error in transmission
Is. Therefore, the error detection circuit 308 outputs the inverted signal.
Signal (RXD) is being transmitted during the 24-bit period
(ERROR) is monitored and when it becomes "0" level
If the signal INITIAL is generated at the point
-Detection operation can be obtained. In addition, such a data
As a transmission error processing method in a data transmission system
When it detects a transmission error, it fixes it and
It is also known to obtain the data
Now, when a transmission error is detected, the frame
The data reception operation of the system is canceled and the next frame
It is a system to prepare for data reception.
For simplification. Next, the DIO mode of the embodiment shown in FIG.
The overall operation of data transmission in
It will be explained by a chart. Φ in the figureS , ΦM Is cow
The two-phase clock output from the input circuit 302
Internal clock generated by the clock oscillator included in 301
It is being generated based on the clock. On the other hand, (RESET) is the CI from the outside.
A signal supplied to M, which is used by microcomputers
It is the same as the set signal, and all CIMs in
And is required when power is turned on.
The external reset circuit supplies the
Initialize the entire system. After initialization, the sequence counter
The counter 303 sets the count value to 0, and
ΦM By step by step. And the count value becomes 25
No action is taken until the count value reaches 25.
Then IDLE signal and (RXENA) signal are generated, and CIM
Becomes idle and the sequence counter 303
Sequential control by the und value is stopped,
The state buffer 313 opens and the signal can be received.
Become. At this time, after initialization, the
Until the count value of the cans counter 303 reaches 25
It is the synchronization time that is set so that the signal cannot be received.
This is because of the start-stop synchronization by the path 301, and the received signal RXD
Since it is 24 bits, a minimum of 25 bits "0" period is given.
This is because it is necessary to obtain it. In this way, when entering the idle state, the sequence
Counter 303 is clock φS, ΦM By the count of
However, the sequence decoder 304 uses the control signal.
No. IDLE and INITIAL remained generated
Waiting for the incoming signal to be input.
You. For this reason, as shown in FIG.
25-bit “0” is added to the beginning of the frame and transmission frame
It is done. Thus, the idle state is entered and
Well, time t0 It 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 and clock until completion
φM, ΦS Synchronization with the internal clock stability
Therefore, the start-stop synchronization function can be obtained. When the start bit is detected, the sequence
Counter 303 outputs count output 0 (hereinafter, this count
The output data of the data 303 is attached with S. For example, in this case,
Is represented by S0), which causes the sequence
The coder 304 stops the control signal IDLE and turns off the control signal RX.
Generate MODE. In parallel with this, shift shift
The shift pulse SHIFT is supplied to the register 104 as the clock φ.
M It is supplied in synchronization with. As a result, 48 bits following the start bit
Received signal RXD and inverted signal (RXD) (Fig. 6)
From the route 20 through the compound gate 310,
The shift register 104 sequentially shifts one bit at a time.
While writing, it is written. At this time, the first 24
Received signal RXD is inverted by the composite gate 310.
The converted data (RXD) to the shift register 104.
Since it is written serially, it follows the start bit
The 24-bit period, that is, the sequence counter 303
At the time when S1 to S24 are reached, the shift register 10
Q of 50 Bit to Qtwenty threeReceived signal RX for bits up to
Data (RXD) with D inverted will be written.
You. Here, the clock φ of the next S25M Rise
The control signal (COMPMODE) is output and an error
The detection circuit 308 functions. And in this state, continue
Then, the inverted signal (RXD) starts to be input. As a result, this time
Is the data RXD in which the inverted signal (RXD) is inverted,
Q of shift register 1050 Write from bit to serial
I'm going down. As a result, in steps S1 to S24, the shift
The data (RXD) written in register 104 is the beginning
Bits of the shift register 104 to Qtwenty fourBit position
Yes, the sequence counter 303 changes from S25 to S48.
One bit at a time until it overflows
Go on. Meanwhile, in parallel with this, the shift register 104
Q of0 Through the bit position, the data by the inverted signal (RXD)
The data RXD is written serially from the first bit.
It gets in, and during this time the exclusive agate 31
1 and the error detection circuit 308 detects a transmission error,
It will be carried out as described above. Therefore, the sequence counter 303 sets S4.
At the time when the value of the shift register 104 becomes0 Bit
To Qtwenty threeUp to the bit, the same data as the received signal RXD
The RXD will be written as it is. So this
At the timing of S48 of, the output signal of the comparator 307 is
By checking the number MYADDR, the above-mentioned address
Is confirmed, and the data RXD just received is addressed to myself.
Or not, that is, from the CCU at this time
A determination is made whether the call is for you
You. The sequence counter 303 sets the S25
A transmission error is detected during a period between
Alternatively, if an address mismatch is detected, the error detection
When the path 308 reaches S48, the control signal INITIA
L is generated, and the sequence counter 303 outputs S at this point.
It is set to 0 and returns to the 25-bit state before idle.
All reception operations for the reception frame of
To prepare for the input of the next signal. Now, the sequence counter 303 is set to 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 WRITE.
Generate STB. As a result, at the time of S48,
Is either the INITIAL signal or the WRITESTB signal
Either of them will be generated, and transmission error and address mismatch will occur.
When neither occurs, the former, and then the transmission error
-Or address mismatch, either
The latter will be output respectively. Thus, at the time of S48, the control signal WR
When ITESTB is output, the shift register at that time
Data from the data 104 to the I / O buffer 105 in parallel
Written and, as a result, received data RXD by C
The data provided by the CU is the I / O buffer 105.
Is supplied to any of the external loads 51 to 56 from the output port of
Is done. In addition, at this time, operating in DIO mode
Because it is, that Q6 Bit to Q19Up to a bit
Up to 14 bits can be transmitted as data RXD
And how many of those bits are in the I / O buffer 105
Is determined by the address
What has been done is as already explained in FIG. When S48 is reached in this way, the received frame
All the processing is completed, and the next S49 starts to process the transmission frame.
Enter (Fig. 6). First of all, no processing from S49 to S72
Do not do. This is the start-stop synchronization of CIM on the CCU side.
IDL in the processing of the received frame described above.
For the same purpose as the operation in the period set before E
Is. Upon entering S73, the sequence decoder 30
4 outputs the control signal PS, which causes the shift register
The star 104 operates to read parallel data, and the I / O
The external load 51 to 56 is connected to the input port of the O buffer 105.
Input the data given from either of
You. The number of bits of data read at this time is 14 bits.
Out of the ports of the I / O buffer 105
Left after subtracting the bits used as output ports
This is the number of bits. For example, as described above, this CI
When the address of M is set to 10, the output port
Since the number is 10, the input port is 4 bits at this time.
It becomes A parallel device 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,
φS The shift pulse SHIFT synchronized with the control signal T
Supplied before the start of XMODE. At this time, as is clear 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.
However, only during the period when the signal PS is generated, the shift register
Q of data 104twenty fourThe bit is a signal representing data "1"
But then Q20Bit to Qtwenty threeInput 2 in the bit part
0~ 23Address data is supplied from each
It has become. Thus, the DUMM from S49 to S73
25 bits of 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.
Signal TXMODE rises, which causes TX (transmission) state
become. The generation of this signal TXMODE causes the composite gate
The AND gate above 310 is activated and
The gate 312 is activated. As a result, the Q of the shift register 104 istwenty four
Bit data, that is, the data that becomes the start bit
“1” is sent to the transmission line 20 through the AND gate 312.
Will be issued. Then, the subsequent clock φ after S75
M Shift clock SHIFT generated in synchronization with
Therefore, the contents of the shift register 104 are transferred to the subsequent stage bit by bit.
Shifted, Qtwenty fourAND gate 312 from bit to bit
Is transmitted to the transmission line 20 through which the transmission frame is transmitted.
Transmission of transmission signal TXD including start bit of system (Fig. 6)
Is performed. On the other hand, if such a shift register 104
In parallel with the data reading process fromtwenty threeBit cell
The data read from the device passes through the composite gate 310 and is returned.
And is fed to the serial input of shift register 104.
Have been. As a result, after S75, the shift register 10
Q of 40 Bit to Qtwenty threeTransmission that was written by bit
The transmission data TXD is generated by the shift clock SHIFT.
It is sent to the transmission line 20 bit by bit and inverted.
Of the shift register 104 as serial data SI.
Q0 The data is sequentially written from the bit. Therefore, the period during which the control signal PS is generated
Inside the shift register 104 Q0Bit to Qtwenty threeBit
All the transmission data TXD written in the cell
At the time of completion, this Q0 Bit to Qtwenty threeUp to a bit
Inverts the transmission data TXD up to that point in the cell
This means that the data (TXD) is stored. Therefore, the transmission data (TXD) is read.
After the completion of the
Readout of inverted data (TXD) from the register 104 is started.
Then, as shown in FIG. 6, the inverted data (TXD) is transmitted.
Data will be sent to the transmission line 20 after the TXD.
You. In this way, when S122 is reached, the shift register
Q of data 104twenty threeBit to Q0 Inverted data up to bit
Has been completely read, the control signal TXMODE is
Falling, supply of shift clock SHIFT is also stopped
The transmission status ends. And the next clock following S122
φM Control signal INITIAL is generated by
Counter 303 is set to S0, CIM is idle
(IDLE) Return to the previous signal reception preparation state. Therefore, according to this embodiment, start-stop synchronization,
Half-duplex multiplex communication by bidirectional, two-way reverse transmission
Can be reliably performed between the CCU and the LCU,
The transmission lines can be integrated wiring. 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
For output, it outputs analog signals from various sensors.
There are external loads 57, 58 (FIG. 2), which is why
The embodiment includes an A / D control circuit 106,
Also has the function of controlling the A / D 40
There is. Then, the CIM operation mode at this time is the AD mode.
It is a card. Now, as described above, this actual
In the example, input 20~ 23Address data to be given to
Therefore, the operation mode is set.
The address data corresponding to the AD mode is shown in Fig. 7.
As can be seen, they are "E" and "F". Next, this CIM operates in the AD mode.
Shift register 10 when set to perform work
The contents of the data stored in 4 are as shown in FIG.
8 bits from No. 0 to No. 7 are transmitted via A / D40.
Then, the AD data case acquired from the external load 57, 58, etc.
For payment, 2 bits of No. 8 and No. 9 are AD channel data.
Data storage, so that for DIO data,
It is 10 bits from No. 10 to No. 19, and other
Is the same as in the DIO mode. Here, the AD channel data and
Is a channel when using multi-channel A / D.
This is data for specifying the channel, and in this embodiment, A / D4
Since it uses 4 channels as 0, 2 bits
Are assigned. The shift register 320 has 8 bits
Then, the Digi captured serially from the external A / D40
Tal data (data from external loads 57, 58, etc.)
A / D conversion of analog data is stored)
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 of 32 bits and is
/ 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-bit (8-bit 4-channel)
Q of shift register 104 for data transmission8 Bit and Q9 B
The AD channel data (Fig. 5) read from the cell
Controlled by one of the channels of register 321
Select the 8-bit data, shift register Q0
Bit to Q7 Set the AD data (Fig. 5) in the bit cell
Function to write. The counter 323 has a clock φ.M The coun
The A / D control circuit 106 as a whole.
-Sequential and cyclic control
do. The A / D control signal generation circuit 324 is a counter.
It includes a decoder and a logic circuit for decoding the output of H.323.
Only the various controls required for the operation of the A / D control circuit 106 as a whole.
It functions to generate control signals. Next, the operation of the entire A / D control circuit 106 will be described.
Describe the work. 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) count output 26 (this is S2
6 cycle), 1 cycle of control is completed, and A / D4
Data of one channel of 0 is taken into register 321
Be done. First, when the control of one cycle is started,
Signal INC causes a channel selection counter 325 to
The counter 325 output is
The data is (0,0) → (0,1) →
It changes from (1, 1) to (0, 0). The output data of the counter 325 is a shift
Write to the top 2 bit positions of the register 320 in parallel
Rarely, then read as serial data ADSI
It is supplied to the A / D 40. In parallel with this, cow
The output data of the input terminal 325 is a decoder (not shown).
Is also supplied to the register 321 via the register 321.
8 bits of the corresponding channel of are selected. Subsequently, the A / D 40 outputs the serial data A
Depending on the channel selection data input as DSI,
Select the corresponding analog input channel and
8 after converting analog data to digital data
Shift register as bit serial data ADSO
Store in 320. After that, the data is stored in this 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,
End the control operation of the module. Thus, for example, the output data of the counter 325 is
If the data is (0,0), the A / D40
Analog data of channel 0 is digitized and
Stored in the 8 bits of channel 0 of
Then, the counter 323 is reset to S0, and the next cycle
The counter 325 is incremented.
Output data becomes (0, 1), and this time the channel
The analog data of 1 is digitized to register 32
It is stored in 8 bits of channel 1 of 1. Therefore, according to this embodiment, A / D control
The data acquisition operation from the A / D 40 by the circuit 106 is
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 there. Therefore, now, the received signal RXD from the transmission line is
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 reception frame is completed.
At the point of time (S48 in FIG. 8).
The format of the data is the AD mode shown in Fig. 5.
Therefore, the Q of this shift register 1048 Bit Q
9 AD channel data consisting of 2 bits
Is stored. Therefore, this AD channel data is S
Read when signal WRITESTB occurs at 48
Which allows the gate 322
Is selected. As a result, in S73 (FIG. 8), the signal
When PS and SHIFT occur, register 321
Of the four channels, the Q of the shift register 104
8 , Q9 The AD data of the channel selected by the two bits of
Data of the shift register 104 is read out.
>0 Bit to Q7 Write to the 8-bit part up to the bit
This is included in the transmission signal TXD in the transmission state after S74.
In rare cases, it will be transmitted to the CCU. By the way, in this embodiment, as described above
The reception processing of the reception signal RXD and the subsequent transmission signal T
Regardless of the XD transmission process, always in the register 321
Is prepared with AD data. Therefore, this embodiment
According to this, at what timing the received signal R addressed to itself
Even if XD appears, the transmission signal T by AD data is immediately transmitted.
XD transmission can be performed and the operation of A / D 40
A / D conversion operation without affecting transmission processing
There is a risk that the transmission speed will decrease due to the time required for
Absent. In this embodiment, the CIM is made into an LSI.
When using the A / D40 as an external device
When it comes to commercialization, it is designed to reduce costs. Tsuma
Therefore, as described with reference to FIG.
Depending on the setting, one type of CIM is set as LCU30-31
, LCU32, or CIM3 of CCU10
It can be used as 3. At this time, however, by incorporating the A / D
If you use it as a CIM 30, 31, 33
Wasteful and, in general, integrated wiring for automobiles
When applied to the system, it is used as CIM32.
The number that is used is used as the other CIM 30, 31, 33
A / D is included in all CIMs
There is not much merit to store it. for that reason,
The A / D is externally attached. By the way, since this A / D is attached externally,
As is clear from 4, 4 for external A / D40
Book connection terminals are required, and terminal pins when integrated into an LSI
This may lead to an increase in the number. Therefore, in one embodiment of the present invention, the CIM is
When the AD mode is set, the I / O buffer 10
4 out of 14 ports of 5 connect to A / D40
It can be switched as a continuous terminal. I.e. the book
In the embodiment of the invention, the I / O buffer 105 has 14 ports.
And these are, as is clear from FIG.
When M is set to DIO mode
There is a possibility that it will be used as a
At most, only 10 ports are used and 4 ports
It is not used for inputting / outputting DIO data and remains.
Therefore, switch the remaining 4 ports in AD mode,
If used as a terminal pin for / D40, A / D
Even if externally attached, the number of terminal pins does not increase,
As a result, versatility increases and cost reduction becomes possible. Next, the MPU of the CIM according to this embodiment
The operation in the mode will be described. Clear from Figure 7
As described above, the CIM according to this embodiment is set to the MPU mode.
To switch and set, the address ADDR0 to ADD
Address setting by DR3 is "0", that is, input 22~
23Keep all of them at the ground potential and set it to (0000)
Yes. The MPU mode is the CI shown in FIG.
To give necessary functions when used as M33
Used in DIO mode and AD mode
Unlike the case, the CCU10 microcomputer (below
When data is given from (below, simply called a microcomputer),
Pair it with any of the CIMs 30-31 of a given LCU.
And send the data, and receive the data returned in response.
If you receive it, you can transfer the data to the microcomputer.
It performs a transmission interface operation. By the way, in the above description, referring to FIG.
As I explained in a row, the explanation as seen from the CIM on the LCU side
Was mainly used, so CIM on the CCU side
The frame that transmits data to the CIM is the received frame
On the other hand, a frame transmitted from the LCU to the CCU
I've called it Laem, but after that, from the perspective of each CIM
A frame that sends data by sending
Frame when accepting data as received frame
explain. Therefore, after that, a CIM, for example, CIM
The transmission frame at 33 is sent to another CIM, for example CIM3.
0 indicates a received frame, while CIM30 transmits
The frame is a received frame in the CIM 33. Now, FIG. 9 shows a CI according to an 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. In addition,
As described above, in this embodiment, the address setting
CIM with the same configuration has three modes, that is, CPU
Mode, DIO mode, AD mode
It is possible to add a function, and
The state of FIG. 9 represents the functional blocks in CPU mode.
The configuration of the CIM according to this embodiment is different from that of FIG.
It does not mean that it is different. As is apparent from FIG. 9, the CPU mode is
I / O buffer 105 (Fig. 3) and A / D 40
The function is stopped, and the microcomputer is a 14-bit data bus.
Tied together. The terminal pin at this time is the I / O buffer.
It is commonly used as the I / O port of the 105 and has more terminal pins.
Needless to say, the reduction does not occur at all.
Yes. And 8 of the 14-bit (14) input / output
Bits are for data, and the remaining 6 bits are for control signals
Has become. First, in this CPU mode, shift
The data contents of the register 104 are, as shown in FIG.
Q0 To Qtwenty threeThe 24 bits up to are all MPU data.
The microcomputer uses an 8-bit data bus to
I came to access this shift register 104
There is. On the other hand, the control circuit 101 is a control signal from the microcomputer.
Of the shift register 1040 ~ Qtwenty threeAll of the
Data from the microcomputer is stored in the
Time t at which this data is stored after the receiving operation is startedX Or
Then, as shown in FIG. 10, transmission of the transmission frame is started.
You. Thus, the transmission frame is transmitted from the CIM 33.
When sent, CIMs 30-32 on the LCU side will be sent accordingly.
One of them responds, and then the CIM starts sending.
Therefore, time tX From 1 frame (148 bits)
Time t when time has passedY Then, the shift register 10
CIM that interrogated from CIM33 in 4
Data transmitted from (one of CIMs 30-32)
Will be stored and will end. Therefore, the control circuit 101 of the CIM 33 is
At this time tY Generated an interrupt request (IRQ) at
The microcomputer reads the data in the shift register 104 according to
Then, the data transmission for one cycle is completed. In addition, this
Figure 3 shows the data transfer operation between CIMs at
Same as in the related DIO mode
Needless to say, Next, FIG. 11 shows CIM 33, that is, MP.
Machine showing an embodiment of CIM when set to U mode
Function block diagram, functions required in MPU mode
Only the blocks corresponding to are shown in FIG.
1, 1, 400 and 402 are 8-bit switches, 4
04 is an 8-bit data latch, and the others are shown in FIG.
Same as the embodiment. In this MPU mode, the shift register 1
04 Q0 Bit to Qtwenty three8-bit input / output up to bit
Connected to the data bus of the microcomputer via the force pin
Data is sent to and received from
Q of shift register 1040~ Qtwenty threeBits of three groups
Loop, Q0~ Q7(Reg3), Q8~ QFifteen(Reg2),
Q16~ Qtwenty threeTreated as divided into (Reg1), hours and minutes
I try to access them in sequence. Therefore, for this reason, the 8-bit switch 4
Register given from microcomputer using 00 and 402
The combination of select signals RS0 and RS1 makes the switch
Switch 400 control signals READ1 to READ3 and switch 402
I / O terminal pins 7-1
4 is sequentially connected from Reg1 to Reg2, and then to Reg3
So that it will continue for 3 times with 8 bits each.
Data transfer between the microcomputer and shift register 104
It is designed to receive money. And in this case my
Writing data from the controller to the shift register 104
Depending on the time, the data read time from the microcomputer and the shift
Compensate for the difference with the data writing time to register 104
A latch 404 is provided to compensate
Data is latched and then written
You. In this MPU mode, data reception
Address added at the beginning of 24-bit data at the time
Is not performed in the CIM 33. Follow
And input 20~ 23The address (0000) given to
The address decoder 306 enables the MPU mode
Used only to set the CIM of
The comparator 307 does not operate. Next, in this MPU mode, CIM33
Input / output terminal pins 1 to 6
It is a transmission line, which allows C
For the IM control circuit 101, the clock E and the chip set are
Rect signal (CS), read / write signal RW, and the above
Register select signals RS0 and RS1 of
However, from this CIM, the interrupt request signal (IRQ) is
Output. 12 and 13 show the processing times of these signals.
Although not shown in FIG. 11, the control circuit
It is included as a part of 101.
The clock E is supplied to the circuit of FIG.
Two-phase clocks EH and EL are generated by being processed together with K.
Be done. And these clocks EH, EL and myco
The signals RW, CS, RS0, RS1 from the
Signal STB0-3, READ0-1 are processed
Be born As for the signal MPU, CIM is in MPU mode.
This signal becomes "1" when set to. Further, signal processing by the circuit of FIG.
The timing is shown in FIGS. 14 and 15, and these figures are shown.
Of these, FIG. 14 shows the generation timing of the signals READ0-3.
In addition, FIG. 15 shows the generation timing of the signals STB0 to STB3.
Are respectively shown. In addition, in these figures
And any of the signals READ0-3 are generated.
And which of the signals STB0 to STB 3 occurs.
Is determined by the combination of the signals RS0 and RS1.
As a result, the shift register 104 described above is
Loops Reg1, Reg2, Reg3 are selected.
You. By the way, these signals READ0-3,
The signals READ0 and STB0 of STB0 to 3 are
Used for group selection of shift register 104
Not used to generate the interrupt request signal (IRQ) described later.
Be done. Therefore, the selection state by the signals RS0 and RS1 is shown.
The result is as shown in FIG. Next, FIG. 17 shows the generation of an interrupt request signal (IRQ).
In an embodiment of the raw circuit, the control circuit 101 of FIG.
This CIM33 is included in the
When the storage of the received data is completed in the soft register 104
Signal WRITESTB (Fig. 8) and signal REA
A circuit that generates a signal (IRQ) with D0, and input / output
Connect to microcomputer data bus with terminal pins 7-14
One of the data lines D0 to D7, for example,
The signal DATA from the data line D0 and the signal STB0 from the signal line
No. MASK1 circuit and its operation
Are shown in the timing charts of FIGS. 18 and 19.
You. Of these, FIG. 18 shows the signal DA.
TA was "0" at the timing of STB0.
19 and the signal DATA becomes "1" in FIG.
It shows the operation of each of the above. What
In the circuit of FIG. 17, the signals DATA and STB0 are supplied.
The flip-flop that is provided is called Reg0. Therefore,
In the circuit of FIG. 17, "1" is written in Reg0.
The interrupt request signal (IRQ) is masked if
become. Next, according to the embodiment of FIG. 11, that is, the present invention,
CIM is set to MPU mode
The overall operation of data transmission in
It will be explained by a chart. In the embodiment of the present invention
The operation of all CIMs 30 to 33 is sequential.
Controlled by the count output of the counter 303,
The sequence counter 303 count output
If you set it to a constant value, you can shift it to an arbitrary operating state.
What can be done has already been explained with reference to FIG. 4 and FIG.
This is what the CIM is doing.
Even if it is set to mode, it does not change. By the way, as shown in FIG.
The CIM set in the mode is as shown in FIG.
CIM3 set to DIO mode or AD mode
It is 0 to 32. And this CIM is DIO
When the mode and the AD mode have been set, FIG.
Received data from another CIM as described in
Then, after that, it sends its own data,
This is a data transfer operation for one frame.
Only passive operation is performed. On the other hand, like the CIM 33, the MPU
If the mode is set to
When the data is written to the shift register 104,
It requires active movement, so to speak, to start communication. Therefore, in this embodiment, this active
To start data transmission, the glue of the shift register 104
Signal STB among signals STB1 to STB1 to 3 for selecting
I am trying to use 3. This is a shift register
Writing the transmission data to the 104 by the microcomputer is R
This is done in the order of eg1, Reg2, Reg3.
Therefore, the microcomputer shifts when the signal STB3 is generated.
Because all the data for register 104 is stored
is there. Then, returning to FIG. 20, at some point,
The CCU10 (Fig. 2) is connected to either LCU
It is assumed that data to be transmitted is prepared. Do so
And, this microcomputer, via the input and output terminal pins 1 to 6,
Signal (CS), RW, RS0, RS1 in CIM33
It is supplied to the control circuit 101 and described with reference to FIGS.
As shown in FIG. 20, the signals STB0 to 3 are generated.
Part), and data from the data bus in sequence of 8 bits each
Registers Reg1, Reg2, Reg3 of the shift register 104
Write it down. On the other hand, the control circuit 101 sends 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”
An example of a circuit is shown in FIG.
The mining chart is shown in FIG. 22, respectively. In this way, the sequence counter 303 sets the S
When set to 49, at this time tX(Figure 10) Send frame
Processing is started. Transmission from S49 to S122
The frame processing is in the case of the DIO mode described in FIG.
This is almost the same as
Data to be transmitted has already been written in the register 104.
Therefore, nothing is done between S49 and S73, just
Q of shift register 104twenty fourFor start bit
The point that only writing "1" is in DIO mode
Is only different. When S122 is reached in this way, the signal INIT
When IAL occurs and then the minimum time from S0 to S24
Entering the idle state including the interval. In other words, in MPU mode
Is different from the DIO mode,
Shift from the microcomputer 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 Now, in this way, CIM33 of CCU10
If the transmission of the transmission frame starts from, already explained in FIG.
As described above, this transmission data TXD is the CIM on the LCU side.
Received data RXD is processed by 30 to 32.
And fold according to the CIM where the address is located
Return data is transmitted, so this time it is received data.
The data is received by the CIM 33 as the data RXD. 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
Is. Then, from S0 to S48, the shift register
Data has been stored in the
If not detected, the clock φ of S48S By
When the signal WRITE STB rises, the signal shown in FIG.
7 to 19, the interrupt request signal (IRQ) is
Occurrence and subsequent clock φM Signal INITIA
L occurs and this ZCIM33 enters the idle state.
The idle state until the next signal STB3 is generated.
One. Thus, the interrupt request signal (IRQ) is generated.
Then, the microcomputer in the CCU 10 receives this signal IRQ.
Jump to the interrupt processing routine and shift register 10
The received data is fetched from 4. Shift at this time
A switch is used to fetch the received data from the register 104.
400 is used, and the number of times described in FIGS.
The signals READ1 to READ3 are sequentially supplied from the channel, and the 8-bit
R of the shift register 104 via the data bus D0 to D7
It is performed in the order of eg1, Reg2, Reg3.
This is as already explained. By the way, in this embodiment, in FIG.
As explained, this signal (IRQ) is maskable
The CCU10 microcomputer is Reg0 (Fig. 17)
By writing "1" to this signal (IR
Q) can be masked. Therefore, as shown in FIG. 20, the signal STB3
Occurrence time tX Before the generation of the signal STB0 (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
Interrupt request signal (IRQ) even when TESTB occurs
Is not supplied to the microcomputer, which makes the microcomputer necessary.
Accordingly, other processes may be prioritized during the predetermined period.
it can. It should be noted that this mask release is apparent from FIG.
As is clear, when the signal STB0 is generated, the data bus D
It is sufficient to set 0 to “0” and write “0” to Reg0. On the other hand, the microcomputer of the CCU 10
When masking the signal (IRQ),
Check the signal IRQ of the
Since the data reception has been completed, the shift register
Data is fetched from 104 and it becomes "0".
If so, wait for completion of data reception. The signal (IR
Q) is a signal R generated when data is taken in
It is clear from FIG. 17 that it is canceled by EAD0.
is there. Here, as shown in FIG. 2, the MPU mode is set.
To the CIM33 that was set and DIO mode (or AD mode)
Data in combination with the set CIMs 30-32
The state transition diagram of the transmission operation is shown in FIG. Next, the transmission control by the microcomputer of CCU10 is performed.
I will explain about you. CCU microcomputer is
Data from loads such as various switches and sensors
Ingest, and accordingly various types of load on each LCU
Data for controlling lamps and actuators
To send to each LCU,
At start-up when the transmission system is powered on
Processing and each LCU when data transmission is in steady state
CIM operation is monitored. FIG. 24 shows an embodiment of the CCU 10, which is 500
Is the central processing unit (CPU
), 502 is a read-only memory for storing programs.
Memory (called ROM), 504 is random for data storage
・ Access memory (RAM), 506 is a peripheral
Is a Ral interface adapter (called PIA)
In addition, the CIM33 and the light set to CPU mode
Electrical conversion module O / E and optical fiber cable O
The bidirectional transmission line 20 including F is described in FIGS.
As you have revealed. Next, the operation of the embodiment shown in FIG. 24 will be described with reference to FIG.
It will be described with reference to the flowchart of FIG. Car engine
Data transmission system
The power supply for operation of the entire system is turned on and transmission operation is
When started, the process according to this flow starts and the first
Step S1 (Hereinafter, steps will be omitted and simply S1, S
2). At S1, system startup prepared in advance is started.
Flag for use. In S2, after starting the system,
Has the data transmission from the CCU to the LCU made one round?
Check whether or not the result is NO, that is, CCU is still running after startup
Data transmission from the LCU, that is, an LCU that has not been challenged
To S3 while remains, otherwise S9
Head to. At S3, after the system is activated, the CCU
Check whether data transmission has been done even once, and
Determine whether to transmit. And when the result is YES
Goes to S4, and if NO goes to S10. S
In the case of No. 4, a specific value created in advance and stored in the ROM 502
Control data for this specific LCU, which is also predetermined
Send to. As specific control data at this time
Controls the load on the particular LCU that should receive it
Make sure that the status is appropriate when the system starts up.
Data. For example, if the LCU load is a lamp
If so, it will be the data to erase it anyway
Leave it to me. After finishing the process of S4, S5
Proceed to. At S5, the data from any one of the LCUs is
Data is transmitted, and when the result is NO,
Proceeds to S6, and if the result is YES, jump to S8
To Data transmitted from LCU to CCU
Is a switch or a part of the load coupled to the LCU.
Data from the sensors, etc., indicating their operating status.
Therefore, this is called monitor data. At S6, the judgment result at S5 continues to be 2
Judgment whether or not the result is NO, and the result is YES
Then, the process proceeds to S7, and if the result is NO, the process returns to the determination of S3.
In S7, warning processing of the occurrence of abnormality is performed, and at this time,
To the LCU that did not send the monitor data twice,
The fact that an abnormality has occurred due to a failure is displayed on DIS508.
After that, the process proceeds to S8. At S8, the next data is transmitted from the CCU.
The LCU to be used is determined as the next LCU. This
Therefore, after starting the system in S4, the first data from CCU
The specific LCU that should send the
Numbers can be attached to LCUs in advance and can be specified sequentially
Needless to say, it is necessary to do so. Soshi
After S8, the process returns to S2. On the other hand, when the result in S2 is YES
To S9, the result after S9 and S3 is NO.
When it becomes, it proceeds to S10, but first, in S9, the system
A process for clearing the system start flag is performed.
Then, in S10, the monitor data received from each LCU is
Control data for each LCU created based on
Data to the corresponding LCU.
U In S4 and S10 described above,
The transmission process is performed from the CPU 500 of the microcomputer to the CIM 33.
Writing 24-bit data to the shift register 104
Automatically when the signal STB3 is generated
Starting with is as described above. On the other hand, a microcomputer including a CPU 500 and the like
Is operating according to S1 to S10
At this time, the CIM33 associated with this receives the data.
Then, an interrupt request signal (IRQ) is generated, and already
As described above, the processing of the microcomputer is performed from the CIM33.
Jump to the interrupt processing for data acquisition. Soshi
Then, as shown in FIG. 26, the CIM
Based on the monitor data received from each LCU via 33
Each time, the required control data is newly added.
Processing for displaying on the DIS 508 is performed. Thus, the data created in the interrupt process
Is the corresponding LCU in the processing of S10 of FIG.
Will be sent to. In addition, interrupt required
If the request signal (IRQ) was masked, unmask it
It has already been explained that the operation depends on the state at the time.
It is Ri. Next, the processing of FIGS. 25 and 26 is performed.
The results obtained will be explained. First, S2, S3, S4
The first data transmission after the power is turned on due to the existence of each processing of
The operation is to send specific control data to a specific LCU.
Becomes As a result, this particular LCU is provided
The load is abnormally controlled by undefined data when the power is turned on.
Immediately from the state, fully valid with specific control data
It will be in a controlled state. On the other hand, after the power is turned on, the monitor can
Data is received, the control data based on it is received.
Since it can be created, after that, except for a specific LCU
Due to the data transmission in S10, it is quite reasonable for LCU
Control data will be sent, which means data transmission
It is emphasized as the number of transmissions increases, and the number of data transmissions
If it is close to the number of LCU, it is almost the same as the steady state.
It is possible to obtain almost complete control. Therefore, according to this embodiment, when the power is turned on.
To minimize the abnormal load control status, etc.,
It is possible to perform controls that are practically not a problem.
You. Next, according to this embodiment, S in FIG.
Due to the existence of the processing of 5, S6 and S7, the CCU has a certain LC.
When data is transmitted to U, the monitor from that LCU
If the data cannot be received, the CCU
The operation of transmitting data to the same LCU is repeated, and
If monitor data is received in response, it is an accidental event.
Directly to the next LCU as a temporary abnormality due to emotion
However, the monitor data is transmitted twice in a row.
If it is not received, the LCU may have a malfunction.
It is determined that an abnormality has occurred, which is DIS508.
Will be displayed in. Therefore, according to this embodiment, data transmission
During operation, monitoring for data response operation of all LCUs
It is carried out, and when an abnormality occurs, it is temporary
It will be automatically confirmed whether it is a thing or not,
The abnormal occurrence can be displayed normally. Incidentally, in the embodiment of FIG. 25, in S6
Judgment is twice whether or not reception is possible in succession.
The number of times is not limited to 2 times, but any number of times is possible
Yes. For example, in a noisy environment, temporary data transmission
If the probability of error occurrence is high, 3 times, 4 times, or 5 times
On the contrary, it is installed in a good environment and
If the probability of data transmission error occurrence is low,
As you can see, there are times when even two times is sufficient.
not. By the way, in the embodiment of FIG. 25, the power is turned on.
After that, the data transmitted first from the CCU to the LCU is
Specific for one specific LCU
It becomes the control data, and monitor data for other LCUs.
Control data created each time based on the data
However, for each LCU, a specific control data
First prepared for each LCU
For the transmission of the
The fixed control data may be transmitted. Next, FIG. 27 shows another embodiment of the CCU 10.
In the example, the number of loads included in the data transmission system increases and L
Suitable when multiple CIMs are needed in a CU
FIG.
0, 512, 514 are O / E (photoelectric conversion module),
20a, 20b, 20c are signal transmission lines by OF, 30
a, 30b, 31a, 31b are in DIO mode or AD mode.
It is the CIM set in the mode, and the other is the implementation of FIG.
Same as the example. O / E 510, 512, 514 are PIA5
The selection of the OF's 20a, 20
One of b and 20c is a signal transmission line T of the CIM 33.
It works to combine with X and RX. For each LCU
Each of a plurality of CIMs 30a, 31a, 30b, 31b
OF, 20a, 20b, 20
bound to CCU by c. As the CPU 500, HD4680 is used.
2 is known as IC, and PIA506 has
For each IC known as HD46821
Of these, HD46802 has ROM and RAM
Since these are built-in, these are provided as external
You don't have to. According to this embodiment, the CPU 500 or the like
Consisting of O / E512 via PIA506
~ 514 are selected and controlled, and data transmission is performed by CIM33.
Since you can specify the LCU to be performed, each
Provide a CIM with the same address for each LCU
And the number of CIMs on the LCU side than the number of addresses
The function of the data transmission system can be sufficiently large
Can be easily expanded. According to the invention,At what timing
Even if there is a call from the central processing unit, the analog
Capable of capturing signals from external loads that generate
Therefore, there is no risk that the transmission process will be affected, and
It can be processed in the same way as digital data. Also books
According to the invention, the terminal processing device is provided with an analog-digital converter.
Since it is possible to have a conversion function, the same transmission system can be used.
Output both analog and digital signals of the load
Data transmission becomes possible, and the advantages of the integrated wiring system
Make good use ofbe able to.

【図面の簡単な説明】 【図1】自動車内集約配線システムの一例を示す説明図
である。 【図2】本発明によるデータ伝送システムの一実施例を
示すブロック構成図である。 【図3】各端末処理装置の一実施例を示すブロック図で
ある。 【図4】図3の実施例をさらに詳細にしたブロック図で
ある。 【図5】データ内容の一実施例を示す説明図である。 【図6】伝送波形の一実施例を示す説明図である。 【図7】モード選択の一実施例を示す説明図である。 【図8】DIOモードにおける本発明の一実施例の動作
を説明するためのフローチャートである。 【図9】本発明による端末処理装置の一実施例をCPU
モードに設定して示した機能ブロック図である。 【図10】CPUモードにおける伝送波形の一実施例を
示す説明図である。 【図11】図9の実施例をさらに詳細に説明した機能ブ
ロック図である。 【図12】信号処理回路の一実施例を示すブロック図で
ある。 【図13】信号処理回路の一実施例を示すブロック図で
ある。 【図14】信号処理回路の一実施例の動作説明用のタイ
ミングチャートである。 【図15】信号処理回路の一実施例の動作説明用のタイ
ミングチャートである。 【図16】レジスタセレクト信号による選択動作を示す
ブロック図である。 【図17】割込要求信号発生回路の一実施例を示すブロ
ック図である。 【図18】割込要求信号発生回路の一実施例の動作説明
用のタイミングチャートである。 【図19】割込要求信号発生回路の一実施例の動作説明
用のタイミングチャートである。 【図20】CPUモードでの動作を説明するためのタイ
ミングチャートである。 【図21】カウンタをセットするための回路の一実施例
を示すブロック図である。 【図22】カウンタをセットするための回路の一実施例
の動作説明用のタイミングチャートである。 【図23】CPUモードとDIOモードの組合わせによ
るデータ伝送動作を表わす状態遷移図である。 【図24】中央処理装置の一実施例を示すブロック図で
ある。 【図25】中央処理装置の動作を説明するためのフロー
チャートである。 【図26】中央処理装置の動作を説明するためのフロー
チャートである。 【図27】中央処理装置の他の一実施例を示すブロック
図である。 【符号の説明】 10 中央処理装置 20 信号伝送路 30〜32 端末処理装置 33 通信制御装置 40 A/D(アナログ・ディジタル変換器) 51〜58 外部負荷 101 制御回路 102 同期回路 103 アドレス比較回路 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 カウンタ 500 CPU 502 ROM 504 RAM 506 PIA 508 表示装置
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 showing an embodiment of a data transmission system according to the present invention. FIG. 3 is a block diagram showing an embodiment of each terminal processing device. FIG. 4 is a block diagram showing the embodiment of FIG. 3 in more detail. FIG. 5 is an explanatory diagram showing an example of data contents. FIG. 6 is an explanatory diagram showing an example of a transmission waveform. FIG. 7 is an explanatory diagram showing an example of mode selection. FIG. 8 is a flowchart for explaining the operation of the embodiment of the present invention in the DIO mode. FIG. 9 is a CPU of an embodiment of the terminal processing device according to the present invention.
It is the functional block diagram which set and showed the mode. FIG. 10 is an explanatory diagram showing an example of transmission waveforms in a CPU mode. FIG. 11 is a functional block diagram explaining the embodiment of FIG. 9 in more detail. FIG. 12 is a block diagram showing an embodiment of a signal processing circuit. FIG. 13 is a block diagram showing an embodiment of a signal processing circuit. FIG. 14 is a timing chart for explaining the operation of one embodiment of the signal processing circuit. FIG. 15 is a timing chart for explaining the operation of one embodiment of the signal processing circuit. FIG. 16 is a block diagram showing a selection operation by a register select signal. FIG. 17 is a block diagram showing an embodiment of an interrupt request signal generation circuit. FIG. 18 is a timing chart for explaining the operation of one embodiment of the interrupt request signal generation circuit. FIG. 19 is a timing chart for explaining the operation of one embodiment of the interrupt request signal generation circuit. FIG. 20 is a timing chart for explaining the operation in the CPU mode. FIG. 21 is a block diagram showing an embodiment of a circuit for setting a counter. FIG. 22 is a timing chart for explaining the operation of the embodiment of the circuit for setting the counter. FIG. 23 is a state transition diagram showing a data transmission operation by a combination of the CPU mode and the DIO mode. FIG. 24 is a block diagram showing an embodiment of a central processing unit. FIG. 25 is a flow chart for explaining the operation of the central processing unit. FIG. 26 is a flow chart for explaining the operation of the central processing unit. FIG. 27 is a block diagram showing another embodiment of the central processing unit. [Explanation of Codes] 10 Central Processing Unit 20 Signal Transmission Lines 30 to 32 Terminal Processing Unit 33 Communication Control Unit 40 A / D (Analog to Digital Converter) 51 to 58 External Load 101 Control Circuit 102 Synchronous Circuit 103 Address Comparison 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 Composite 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 500 CPU 502 ROM 504 RAM 506 PIA 508 display

───────────────────────────────────────────────────── フロントページの続き (72)発明者 長谷川 明 茨城県勝田市大字高場2520番 株式会社 日立製作所 佐和工場内 (56)参考文献 特開 昭56−159799(JP,A)   ────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Akira Hasegawa               No. 2520 Takaba, Katsuda City, Ibaraki Prefecture Co., Ltd.                 Hitachi Sawa Factory                (56) References JP-A-56-159799 (JP, A)

Claims (1)

(57)【特許請求の範囲】 .中央処理装置と端末処理装置とを備え、上記中央処
理装置からの呼び掛けに応じて中央処理装置と端末処理
装置相互間でのフレーム単位でのデータ授受が開始され
るようにしたデータ伝送システムにおいて、 上記端末処理装置にデータ授受用のシフトレジスタと、
アナログ−ディジタル変換器と、アナログ−ディジタル
変換器制御手段を設けると共に、 該アナログ−ディジタル変換器制御手段に上記アナログ
−ディジタル変換器の出力データ格納用のシフトレジス
タを設け、 上記アナログ−ディジタル変換器制御手段は、上記中央
処理装置からの呼び掛けとは独立したタイミングで上記
アナログ−ディジタル変換器を制御し、上記出力データ
格納用シフトレジスタへディジタルデータを格納する処
理を実行するように構成され、 上記端末処理装置は、上記中央処理装置からの呼び掛け
に応じて、その都度、上記データ授受用シフトレジスタ
に格納されたデータと上記出力データ格納用シフトレジ
スタに格納されたディジタルデータを上記フレーム単位
のデータとして 端末処理装置から送信させて行く処理を
実行するように構成されていることを特徴とするデータ
伝送システム。2.請求項1の発明において、 上記データ授受用シフトレジスタと上記出力データ格納
用シフトレジスタが同一のシフトレジスタで構成されて
いることを特徴とするデータ伝送システム。
(57) [Claims] 1 . In a data transmission system comprising a central processing unit and a terminal processing unit, in which data transmission / reception in a frame unit between the central processing unit and the terminal processing unit is started in response to a call from the central processing unit, A shift register for exchanging data with the terminal processing device ,
An analog-digital converter and an analog-digital converter control means are provided, and the analog-digital converter control means has the above-mentioned analog.
-Shift register for storing output data of digital converter
And the analog-to-digital converter control means is
Above at a timing independent of the call from the processor
Controls the analog-digital converter and outputs the above output data.
A process for storing digital data in the storage shift register
The terminal processing unit is configured to execute the processing from the central processing unit.
Depending on each case, the above-mentioned data transfer shift register
And the shift register for storing the above output data
The digital data stored in the
Process that is sent from the terminal processing device as the data of
A data transmission system, wherein the data transmission system is configured to perform . 2. In the invention of claim 1, the data transfer shift register and the output data storage
Shift register is composed of the same shift register
A data transmission system characterized in that
JP6226435A 1994-09-21 1994-09-21 Data transmission system Expired - Lifetime JP2534836B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6226435A JP2534836B2 (en) 1994-09-21 1994-09-21 Data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6226435A JP2534836B2 (en) 1994-09-21 1994-09-21 Data transmission system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP3353080A Division JPH0787482B2 (en) 1991-12-18 1991-12-18 Data transmission system

Publications (2)

Publication Number Publication Date
JPH07202986A JPH07202986A (en) 1995-08-04
JP2534836B2 true JP2534836B2 (en) 1996-09-18

Family

ID=16845073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6226435A Expired - Lifetime JP2534836B2 (en) 1994-09-21 1994-09-21 Data transmission system

Country Status (1)

Country Link
JP (1) JP2534836B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56159799A (en) * 1980-05-14 1981-12-09 Hitachi Ltd Serial signal oscillation type measuring instrument

Also Published As

Publication number Publication date
JPH07202986A (en) 1995-08-04

Similar Documents

Publication Publication Date Title
KR920007480B1 (en) Data transmitting system
US5896418A (en) Data transmission system having a communication control computer for controlling communication between a communication interface module and terminal devices
EP0797881B1 (en) Communications network, a dual mode data transfer system therefor
US5224124A (en) Data transmission system
WO1996019058A9 (en) Communications network, a dual mode data transfer system therefor
JP2534836B2 (en) Data transmission system
JP2500801B2 (en) Terminal processing device
JP2502491B2 (en) Communication processing circuit
JP2612433B2 (en) Automotive data transmission system
JPH0787482B2 (en) Data transmission system
JP2764858B2 (en) Data transmission system
JPH0315866B2 (en)
JP2612433C (en)
JP2764857B2 (en) Circuit elements for communication processing
JPH0512892B2 (en)
JPH0534861B2 (en)
US20050192790A1 (en) Serial communication system and serial communication local terminal
JPH059840B2 (en)
EP4054081A1 (en) Ad converter and semiconductor device including the same
JPS61218243A (en) Aggregated wiring system
JP3488250B2 (en) Serial data communication method
JPH0693659B2 (en) Multiplex communication system for automobile
JPS60167539A (en) Signal transmitter
JPH09238152A (en) Data transmitter
JPH04262442A (en) Serial communication controller for input/output device