JPH0563755A - Signal transmitter - Google Patents

Signal transmitter

Info

Publication number
JPH0563755A
JPH0563755A JP3244134A JP24413491A JPH0563755A JP H0563755 A JPH0563755 A JP H0563755A JP 3244134 A JP3244134 A JP 3244134A JP 24413491 A JP24413491 A JP 24413491A JP H0563755 A JPH0563755 A JP H0563755A
Authority
JP
Japan
Prior art keywords
data
frame
signal
bit
transmission
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.)
Pending
Application number
JP3244134A
Other languages
Japanese (ja)
Inventor
Takehiko Shimizu
竹彦 清水
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.)
Marelli Corp
Original Assignee
Kansei Corp
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 Kansei Corp filed Critical Kansei Corp
Priority to JP3244134A priority Critical patent/JPH0563755A/en
Publication of JPH0563755A publication Critical patent/JPH0563755A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To change the length of transmission data and to make the data transmission efficient by identifying number of bytes of the transmission data based on bits of a transmission data frame to receive data by number of bytes. CONSTITUTION:A data reception circuit 15a and a clock signal reception circuit 15c compare inputted reception data and a clock signal with a reference voltage respectively and respective output signals are fed to a header detection circuit via filters 15b, 15d. When a header frame is detected, the detection circuit outputs an L level detection signal and the signal is ORed with communication data outputted from a shift register 11 and a header detection signal is sent to a control section from a transmission data output circuit 15e. The control section receives the signal to detect a data length bit and the data length is written in a byte number counter. Thus, the length of the sent data is changed and the data transmission is made efficient.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、制御部と操作表示部
とが分離した例えば自動車に搭載された分離型オートエ
アコン等の自動車用空気調和装置に用いて好適な、前記
制御部と前記操作表示部との間で信号の伝送を行う信号
伝送装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is suitable for use in an air conditioner for an automobile such as a separate type auto air conditioner mounted on an automobile in which a control unit and an operation display unit are separated. The present invention relates to a signal transmission device that transmits a signal to and from a display unit.

【0002】[0002]

【従来の技術】自動車に搭載された、従来の分離型オー
トエアコンおよびその信号伝送方式を、図19〜図23
に基づいて説明する。図19は分離型オートエアコン1
00の全体ブロック図である。この図において、オート
アンプ部101にはマイクロコンピュータが内蔵されて
おり、入力ポートには、外気温センサー、内気センサ
ー、水温センサー、日射センサ,ダクトセンサー等によ
り構成されるセンサー回路102が接続されている。ま
た、オートアンプ部101の入出力ポートにはコントロ
ールパネル部103が接続されている。オートアンプ部
101の出力ポートにはアクチュエータ回路104が接
続されている。このアクチュエータ回路104の駆動部
には、さらにエアーミックスドア等の被駆動部105が
接続されている。
2. Description of the Related Art A conventional separation type automatic air conditioner mounted on an automobile and its signal transmission system are shown in FIGS.
It will be explained based on. FIG. 19 shows a separate type automatic air conditioner
It is a whole block diagram of 00. In this figure, a microcomputer is built in the auto amplifier section 101, and a sensor circuit 102 including an outside air temperature sensor, an inside air sensor, a water temperature sensor, a solar radiation sensor, a duct sensor, etc. is connected to an input port. There is. A control panel unit 103 is connected to the input / output port of the auto amplifier unit 101. An actuator circuit 104 is connected to the output port of the auto amplifier unit 101. A driven part 105 such as an air mix door is further connected to the drive part of the actuator circuit 104.

【0003】図20はオートアンプ部101とコントロ
ールパネル部103との接続関係を示す図である。この
図において、表示部103aは4本のインジケータコン
トロール信号線107等によりオートアンプ部101と
接続されている。表示部103aは温度表示等を行う。
エアコンスイッチ部103bは、「AUTO」,「H
I」,「DOWN」等の9個のパネルスイッチからなる
スイッチ群であり、3本のエアコンスイッチ出力信号線
108a,108b,108cと3本のエアコンスイッ
チ入力信号線109a,109b,109cとによりオ
ートアンプ部101と接続されている。イルミネーショ
ンランプ103cは、エアコンスイッチ部103bを照
す光源である。
FIG. 20 is a diagram showing a connection relationship between the auto amplifier section 101 and the control panel section 103. In this figure, the display section 103a is connected to the auto amplifier section 101 by four indicator control signal lines 107 and the like. The display unit 103a displays a temperature or the like.
The air conditioner switch unit 103b has “AUTO” and “H”
It is a switch group including nine panel switches such as "I" and "DOWN", and is automatically operated by three air conditioner switch output signal lines 108a, 108b, 108c and three air conditioner switch input signal lines 109a, 109b, 109c. It is connected to the amplifier unit 101. The illumination lamp 103c is a light source that illuminates the air conditioner switch unit 103b.

【0004】図21は前記表示部103aの詳細を示す
ブロック図、図22は、オートアンプ部101から表示
部103aへ転送される表示データSIを示すタイミン
グチャートである。図21において、21ビットシフト
レジスタ110は、21段のフリップフロップS0,S
1,S2・・・S20により構成されている。この21
ビットシフトレジスタ110には、図22に示すシフト
クロックSCKの立上がりのタイミングでオートアンプ
部101から表示データSIがシリアルに転送される。
表示バッファレジスタ111は、21段のフリップフロ
ップP0,P1,・・・P20により構成されている。
この表示バッファレジスタ111には、図22に示す
‘H’レベルのラッチ信号LHが供給されるタイミング
で前記21ビットシフトレジスタ110に格納されたそ
れぞれの表示データSIがパラレルに転送される。これ
により表示バッファレジスタ111の表示データが更新
される。アンドゲート112は、前記表示バッファレジ
スタ111の各レジスタS0,S1,S2・・・S20
に格納された表示データを図示していない蛍光表示管ド
ライバに供給するゲートである。アンドゲート112の
一方の入力端子には調光信号BIが入力されている。図
22に示す調光信号BIのパルス幅が可変されると、こ
れに応じて蛍光表示管の明るさが調整される。
FIG. 21 is a block diagram showing details of the display section 103a, and FIG. 22 is a timing chart showing display data SI transferred from the auto amplifier section 101 to the display section 103a. In FIG. 21, a 21-bit shift register 110 includes 21 stages of flip-flops S0 and S.
1, S2 ... S20. This 21
The display data SI is serially transferred from the auto amplifier unit 101 to the bit shift register 110 at the rising timing of the shift clock SCK shown in FIG.
The display buffer register 111 is composed of 21 stages of flip-flops P0, P1, ... P20.
The display data SI stored in the 21-bit shift register 110 is transferred in parallel to the display buffer register 111 at the timing when the latch signal LH of the “H” level shown in FIG. 22 is supplied. As a result, the display data in the display buffer register 111 is updated. The AND gate 112 includes registers S0, S1, S2 ... S20 of the display buffer register 111.
It is a gate for supplying the display data stored in (1) to a fluorescent display tube driver (not shown). The dimming signal BI is input to one input terminal of the AND gate 112. When the pulse width of the dimming signal BI shown in FIG. 22 is changed, the brightness of the fluorescent display tube is adjusted accordingly.

【0005】図23は、オートアンプ部101とエアコ
ンスイッチ部103b間の送受信信号を示す波形図であ
る。 (イ)は、エアコンスイッチ入力信号線109a,10
9b,109cを介してオートアンプ部101からエア
コンスイッチ部103bに常時出力されている信号であ
り、信号A,信号B,信号Cは互に1/3周期の位相差
を有している。 (ロ)は、エアコンスイッチ出力信号線108a,10
8b,108cを介してエアコンスイッチ部103bか
らオートアンプ部101に出力される信号であり、信号
Dは「AUTO」スイッチがオンされた時にエアコンス
イッチ出力信号線108aを介してオートアンプ部10
1に出力される信号である。信号Eは「HI」スイッチ
がオンされた時にエアコンスイッチ出力信号線108b
を介してオートアンプ部101に出力される信号であ
る。また、信号Fは「DOWN」スイッチがオンされた
時にエアコンスイッチ出力信号線108cを介してオー
トアンプ部101に出力される信号である。 以上、説明したように分離型オートエアコンのオートア
ンプ部101とコントロールパネル部103とは多数の
信号線により接続されており、これらの信号線を介して
信号の送受信を行い機能している。
FIG. 23 is a waveform diagram showing a transmission / reception signal between the auto amplifier unit 101 and the air conditioner switch unit 103b. (A) shows the air conditioner switch input signal lines 109a, 10
The signals are constantly output from the auto amplifier unit 101 to the air conditioner switch unit 103b via 9b and 109c, and the signals A, B, and C have a phase difference of 1/3 cycle with each other. (B) is the air conditioner switch output signal lines 108a, 10
A signal D is a signal output from the air conditioner switch unit 103b to the auto amplifier unit 101 via 8b and 108c, and a signal D is supplied to the auto amplifier unit 10 via the air conditioner switch output signal line 108a when the "AUTO" switch is turned on.
This is a signal output to 1. The signal E is the air conditioner switch output signal line 108b when the "HI" switch is turned on.
Is a signal output to the auto amplifier unit 101 via. The signal F is a signal output to the auto amplifier unit 101 via the air conditioner switch output signal line 108c when the "DOWN" switch is turned on. As described above, the auto-amplifier section 101 and the control panel section 103 of the separate type auto air conditioner are connected by a large number of signal lines, and functions by transmitting and receiving signals via these signal lines.

【0006】[0006]

【発明が解決しようとする課題】以上述べた、従来の分
離型オートエアコンのオートアンプ部とコントロールパ
ネル部間の信号の伝送は、オートアンプ部および表示部
間の4本のインジケータコントロール信号線107とオ
ートアンプ部およびエアコンスイッチ部間の6本のエア
コンスイッチ入出力信号線の合計10本の信号線が必要
であり、信号線の本数が多くなってしまう問題点があ
る。また、伝送された信号の誤りチェックが行われるよ
うなシステムにはなっていないので、通信の信頼性が低
いという問題点がある。
As described above, the signal transmission between the auto amplifier section and the control panel section of the conventional separation type auto air conditioner is performed by four indicator control signal lines 107 between the auto amplifier section and the display section. In addition, a total of 10 signal lines of 6 input / output signal lines of the air conditioner switch between the auto amplifier part and the air conditioner switch part are required, which causes a problem of increasing the number of signal lines. Moreover, since the system is not designed to check the error of the transmitted signal, there is a problem that communication reliability is low.

【0007】この発明は以上述べた問題点に着目してな
されたもので、信号線の本数が少なくてすむと共に、伝
送される信号の誤りチェックが行われるようなシステム
にすることにより通信の信頼性を向上させ、またクロッ
ク同期式シリアルインターフェースが内蔵されているワ
ンチップマイクロコンピュータを利用することにより、
専用ハードウェアを使用せずにソフトウェアだけで対応
でき、しかもソフトウェアに負担がかからず、さらにデ
ータの長さを変えることの出来る信号伝送装置を得るこ
とを目的とする。
The present invention has been made by paying attention to the above-mentioned problems, and it is possible to reduce the number of signal lines and to establish a system in which an error check of a transmitted signal is performed, thereby improving communication reliability. By using a one-chip microcomputer that improves the performance and has a built-in clock synchronous serial interface,
An object of the present invention is to obtain a signal transmission device that can be handled only by software without using dedicated hardware, and that does not impose a burden on software and can change the length of data.

【0008】[0008]

【課題を解決するための手段】この請求項1の発明に係
る信号伝送装置は、送信回路からのNRZ信号列をクロ
ック信号に同期させてシリアルに受信回路に伝送する信
号伝送装置において、前記NRZ信号列が所定ビット数
の‘H’レベルビットおよび所定ビット数の‘L’レベ
ルビットからなるヘッダーフレームと、所定ビット数の
データビットおよび1ビットのパリティビットからなる
複数のデータフレームと、前記データフレームの同順位
ビットのパリティチェックを行うパリティビット列から
なるパリティフレームとから構成され、さらに送信デー
タのバイト数を示す前記データフレームの一部に設けら
れたビットと、該ビットを基に送信データのバイト数を
識別し、該バイト数だけデータを受信した後受信終了処
理を行うデータ処理手段とを具備したものである。
A signal transmission apparatus according to the invention of claim 1 is a signal transmission apparatus for serially transmitting an NRZ signal sequence from a transmission circuit to a reception circuit in synchronism with a clock signal. A header frame in which a signal sequence includes a predetermined number of "H" level bits and a predetermined number of "L" level bits, a plurality of data frames including a predetermined number of data bits and one parity bit, and the data. A parity frame composed of a parity bit string that performs parity check of the same-order bits of the frame, and a bit provided in a part of the data frame that indicates the number of bytes of the transmission data, and the transmission data of the transmission data based on the bit. Data processing means for identifying the number of bytes, receiving the data by the number of bytes, and then performing reception end processing It is equipped with and.

【0009】この請求項2の発明に係る信号伝送装置
は、上記送信回路および上記受信回路がクロック同期式
シリアルインターフェースが内蔵されているワンチップ
マイクロコンピュータから構成され、上記ヘッダーフレ
ームが、15ビット数以上の‘H’レベルビットおよび
1ビットの‘L’レベルビットからなるヘッダーフレー
ムであり、上記データフレームが、7ビット数のデータ
ビットおよび1ビットの奇パリティの垂直パリティビッ
トからなるデータフレームであり、上記パリティフレー
ムが、前記データフレームの同順位ビットのパリティチ
ェックを行うパリティビット列からなる水平パリティフ
レームであり、さらに送信データのバイト数を示す前記
データフレームの先頭に設けられたビットと、該ビット
を基に送信データのバイト数を識別し、該バイト数だけ
データを受信した後水平パリティチェックを行い、さら
にデータラッチを行うデータ処理手段とを具備したもの
である。
According to a second aspect of the present invention, in the signal transmission device, the transmission circuit and the reception circuit are composed of a one-chip microcomputer in which a clock synchronous serial interface is built in, and the header frame is a 15-bit number. It is a header frame composed of the above'H 'level bits and 1'L' level bits, and the above data frame is a data frame composed of 7 bits of data bits and 1 bit of odd parity vertical parity bits. , The parity frame is a horizontal parity frame composed of a parity bit string for performing parity check of the same-order bits of the data frame, and a bit provided at the head of the data frame indicating the number of bytes of transmission data, and the bit. Based on the bytes of the transmitted data A data processing means for identifying the number, performing horizontal parity check after receiving data by the number of bytes, and further performing data latch.

【0010】[0010]

【作用】この請求項1〜2の発明における信号伝送装置
は、伝送するデータの長さを変えることができると共
に、クロック同期式シリアルインターフェースが内蔵さ
れているワンチップマイクロコンピュータを使用するの
で専用のハードウェアーを用いることがなくシリアル・
データ転送を行うに際してソフトウェアーにかかる負担
が低減され、また送信回路からのNRZ信号列をクロッ
ク信号に同期させてシリアルに受信回路に伝送するので
信号線の本数が少なくてすみ、さらに伝送された信号に
対し水平パリティチェック、垂直パリティチェックが行
われるので通信の信頼性が向上する。また、垂直パリテ
ィチェックは奇パリティなのでハードウェアーの故障に
より送信データがオール「1」,オール「0」となるよ
うな状態を容易に発見できる。
In the signal transmission device according to the present invention, the length of data to be transmitted can be changed, and a one-chip microcomputer having a built-in clock synchronous serial interface is used. Serial without hardware
The load on the software during data transfer is reduced, and since the NRZ signal train from the transmission circuit is serially transmitted to the reception circuit in synchronism with the clock signal, the number of signal lines can be reduced and further transmission is possible. Since the signal is subjected to horizontal parity check and vertical parity check, the reliability of communication is improved. Further, since the vertical parity check is an odd parity, it is possible to easily find a state in which the transmission data becomes all "1" and all "0" due to a hardware failure.

【0011】[0011]

【実施例】以下、この発明の信号伝送装置の一実施例を
自動車に搭載された分離型オートエアコン等の自動車用
空気調和装置に用いた場合について、図1〜図18を参
照して説明する。図1は、この実施例の信号伝送装置1
の構成を示すブロック図である。この信号伝送装置1に
おける通信方式は、半2重,クロック同期式のポーリン
グ方式であり、使用する伝送符号形式はNRZ形式であ
る。制御部2はクロック同期式シリアルインターフェー
スが内蔵されているワンチップマイクロコンピュータに
より構成されている。制御部2の入力ポートには、図示
していない外気温センサー回路,内気センサー回路,水
温センサー回路,日射センサ回路,ダクトセンサー回路
等が接続されている。また、制御部2の出力ポートには
図示していないアクチュエータ回路が接続されている。
このアクチュエータ回路の駆動部には、さらにエアーミ
ックスドア等の被駆動部が接続されている。一方、この
制御部2にはシリアルデータ用クロック出力端子SCK
とシリアルデータ送信端子TX,シリアルデータ受信端
子PXが設けられている。端子機3はクロック同期式シ
リアルインターフェースが内蔵されているワンチップマ
イクロコンピュータにより構成されており、運転席に設
けられたコントロールパネル部内に設置されている。こ
の端末機3のシリアルデータ用クロック受信端子SCK
は、通信バスBL1を介して前記制御部2のシリアルデ
ータ用クロック出力端子SCKに接続されている。ま
た、シリアルデータ受信端子RXは通信バスBL2を介
して前記制御部2のシリアルデータ送信端子TXに接続
されている。さらに、シリアルデータ送信端子TXは通
信バスBL3を介して制御部2のシリアルデータ受信端
子RXに接続されている。端末機3には、さらにVDD
にプルアップされているアドレス設定端子A0,A1が
設けられている。VDDにプルアップされているアドレ
ス設定端子A0,A1とグランド間にはアドレス設定ス
イッチS0,S1がそれぞれ接続されている。端末機3
にはまた、コントロールパネル部上の表示器およびスイ
ッチ群が接続されている。端末機4はクロック同期式シ
リアルインターフェースが内蔵されているワンチップマ
イクロコンピュータにより構成されており、後部座席に
設けられたコントロールパネル部内に設置されている。
この端末機4のシリアルデータ用クロック受信端子SC
Kは、通信バスBL1を介して前記制御部2のシリアル
データ用クロック出力端子SCKに接続されている。ま
た、シリアルデータ受信端子RXは通信バスBL2を介
して前記制御部2のシリアルデータ送信端子TXに接続
されている。さらに、シリアルデータ送信端子TXは通
信バスBL3を介して制御部2のシリアルデータ受信端
子RXに接続されている。端末機4には、さらにVDD
にプルアップされているアドレス設定端子A0,A1が
設けられている。VDDにプルアップされているアドレ
ス設定端子A0,A1とグランド間にはアドレス設定ス
イッチS00,S11がそれぞれ接続されている。端末
機4にはまた、コントロールパネル部上の表示部および
パネルスイッチ,ロータリースイッチ等のスイッチ群が
接続されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A case in which an embodiment of the signal transmission device of the present invention is used in a vehicle air conditioner such as a separate type auto air conditioner mounted on a vehicle will be described below with reference to FIGS. .. FIG. 1 shows a signal transmission device 1 of this embodiment.
3 is a block diagram showing the configuration of FIG. The communication system in this signal transmission device 1 is a half-duplex, clock-synchronous polling system, and the transmission code format used is the NRZ format. The control unit 2 is composed of a one-chip microcomputer having a built-in clock synchronous serial interface. The input port of the control unit 2 is connected to an outside air temperature sensor circuit, an inside air sensor circuit, a water temperature sensor circuit, a solar radiation sensor circuit, a duct sensor circuit, etc., which are not shown. An actuator circuit (not shown) is connected to the output port of the control unit 2.
The driven part of the actuator circuit is further connected to a driven part such as an air mix door. On the other hand, the control unit 2 has a serial data clock output terminal SCK.
A serial data transmission terminal TX and a serial data reception terminal PX are provided. The terminal machine 3 is composed of a one-chip microcomputer having a clock-synchronous serial interface built therein, and is installed in a control panel section provided in a driver's seat. This terminal 3 has a serial data clock receiving terminal SCK
Is connected to the serial data clock output terminal SCK of the control unit 2 via the communication bus BL1. Further, the serial data receiving terminal RX is connected to the serial data transmitting terminal TX of the control unit 2 via the communication bus BL2. Further, the serial data transmission terminal TX is connected to the serial data reception terminal RX of the control unit 2 via the communication bus BL3. The terminal 3 also has VDD
Address setting terminals A0 and A1 that are pulled up are provided. Address setting switches S0 and S1 are connected between the address setting terminals A0 and A1 which are pulled up to VDD and the ground, respectively. Terminal 3
Further, a display unit and a switch group on the control panel unit are connected to the. The terminal 4 is composed of a one-chip microcomputer having a built-in clock synchronous serial interface, and is installed in a control panel section provided in the rear seat.
Serial data clock receiving terminal SC of this terminal 4
K is connected to the serial data clock output terminal SCK of the control unit 2 via the communication bus BL1. Further, the serial data receiving terminal RX is connected to the serial data transmitting terminal TX of the control unit 2 via the communication bus BL2. Further, the serial data transmission terminal TX is connected to the serial data reception terminal RX of the control unit 2 via the communication bus BL3. The terminal 4 also has VDD
Address setting terminals A0 and A1 that are pulled up are provided. Address setting switches S00 and S11 are connected between the address setting terminals A0 and A1 which are pulled up to VDD and the ground, respectively. The terminal unit 4 is also connected to a display unit on the control panel unit and a switch group such as panel switches and rotary switches.

【0012】図2は、前記端末機の機能ブロック図であ
る。コントロールパネル部上のスイッチ群MSWは、ス
イッチマトリックス制御端子MA0〜MA4とスイッチ
マトリックス入力端子SW0〜SW3に接続され、ロー
タリースイッチ群RSWはロータリースイッチ入力端子
RS0〜RS5に接続されている。ここで、スイッチ群
MSWは、「AUTO」,「HI」,「DOWN」等を
選定操作するためのエアコンスイッチである。また、ロ
ータリースイッチ群RSWは温度選定用のスイッチであ
る。SWマトリックス回路5は、SWマトリックス入力
端子SW0〜SW3からSWマトリックス信号を入力
し、このSWマトリックス信号に対して二連照合を行い
スイッチ部でのチャタリングを排除し、その後デコード
し、スイッチマトリックス回路5に設けられた該当する
SWデータラッチ(図示せず)を反転させる。
FIG. 2 is a functional block diagram of the terminal. The switch group MSW on the control panel unit is connected to the switch matrix control terminals MA0 to MA4 and the switch matrix input terminals SW0 to SW3, and the rotary switch group RSW is connected to the rotary switch input terminals RS0 to RS5. Here, the switch group MSW is an air conditioner switch for selecting and operating "AUTO", "HI", "DOWN", and the like. The rotary switch group RSW is a switch for temperature selection. The SW matrix circuit 5 inputs the SW matrix signal from the SW matrix input terminals SW0 to SW3, performs double collation on the SW matrix signal to eliminate chattering in the switch unit, and then decodes the SW matrix signal to obtain the switch matrix circuit 5 The corresponding SW data latch (not shown) provided in the above is inverted.

【0013】ここで、スイッチ群MSWに対する入力回
路を図3に示す。この図において、SWマトリックス入
力端子SW0の入力回路5aは、シュミットトリガイン
バータにより構成されており、ディジタルフィルタDF
1を介してSWマトリックス回路5に接続されている。
SWマトリックス入力端子SW1の入力回路5bは、シ
ュミットトリガインバータにより構成されており、同様
にディジタルフィルタDF1を介してSWマトリックス
回路5に接続されている。SWマトリックス入力端子S
W2,SW3,の入力回路5c,5dも同様であり、シ
ュミットトリガインバータにより構成されて、ディジタ
ルフィルタDF1を介してスイッチマトリックス回路5
に接続されている。
An input circuit for the switch group MSW is shown in FIG. In this figure, the input circuit 5a of the SW matrix input terminal SW0 is composed of a Schmitt trigger inverter, and the digital filter DF
1 to the SW matrix circuit 5.
The input circuit 5b of the SW matrix input terminal SW1 is composed of a Schmitt trigger inverter and similarly connected to the SW matrix circuit 5 via the digital filter DF1. SW matrix input terminal S
The same applies to the input circuits 5c and 5d for W2 and SW3, which are composed of Schmitt trigger inverters and are connected to the switch matrix circuit 5 via the digital filter DF1.
It is connected to the.

【0014】図2に戻り、タイミング発生回路6は、ス
イッチマトリックスタイミング信号SWT,VFT(蛍
光表示管)駆動信号VDS,出力調光信号OCSを出力
すると共に、SWマトリックス制御端子MA0〜MA4
を介してスイッチ群MSWへ、図4に示すSWマトリッ
クス制御信号を出力する。ヘッダー検知回路7は、受信
データのヘッダーを検知しヘッダー検出信号HDSを出
力する回路である。エラーチェック回路8は、受信デー
タのアドレスチェック,垂直パリティチェックおよび送
信時の垂直パリティの付加を行う回路である。水平パリ
ティチェック回路9は、受信データの水平パリティチェ
ックおよび送信データの水平パリティの付加を行う。送
信データセレクタ回路10は、送信時のデータをフレー
ム毎に選択して次に述べる通信用シフトレジスタ回路1
1に送る回路である。2連照合回路10aは、ロータリ
ースイッチ群RSWから入力されるロータリースイッチ
入力信号に対し2連照合を行い、ロータリースイッチで
のチャタリング除去する。
Returning to FIG. 2, the timing generation circuit 6 outputs the switch matrix timing signals SWT, VFT (fluorescent display tube) drive signal VDS, the output dimming signal OCS, and the SW matrix control terminals MA0 to MA4.
The SW matrix control signal shown in FIG. 4 is output to the switch group MSW via. The header detection circuit 7 is a circuit that detects a header of received data and outputs a header detection signal HDS. The error check circuit 8 is a circuit that performs address check of received data, vertical parity check, and addition of vertical parity at the time of transmission. The horizontal parity check circuit 9 performs horizontal parity check of received data and addition of horizontal parity of transmitted data. The transmission data selector circuit 10 selects data at the time of transmission for each frame and shifts the communication shift register circuit 1 described below.
It is a circuit to send to 1. The double matching circuit 10a performs double matching on the rotary switch input signal input from the rotary switch group RSW and removes chattering at the rotary switch.

【0015】ロータリースイッチ群RSWに対する入力
回路を図5に示す。この図において、ロータリースイッ
チ入力端子RS0,RS1,RS2,RS3,RS4,
RS5の入力回路10b,10c,10d,10e,1
0f,10gは、シュミットトリガインバータにより構
成され、これら入力回路の出力は2連照合回路10aに
加えられる。図2に戻り、通信用シフトレジスタ回路1
1は、送信時パラレル/シリアル変換,受信時シリアル
/パラレル変換を行う7bitのシフトレジスタであ
る。ここで、端末機3,4における通信用シフトレジス
タ回路11の周辺の回路構成を図6に示す。この図にお
いて、15aはコンパレータを含むシリアルデータ受信
回路、15bはディジタルフィルタ、15cは通信用ク
ロック信号受信回路、15dはディジタルフィルタ、1
5eは制御部2へ送信されるデータの送信データ出力回
路であり、シフトレジスタ11からの送信データとタイ
ミング発生回路2(12)からの送信イネーブル信号
(送信開始でHレベル)を入力するアンドゲート、該送
信イネーブル信号の反転信号とヘッダー検知回路7から
のヘッダー検知信号(ヘッダ検知でLレベル、エラー発
生又は受信終了でHレベル)を入力するアンドゲート、
及び2つのアンドゲート出力を入力するオアゲート、並
びにMOSFETからなる。シリアルデータ受信回路1
5aおよび通信用クロック信号受信回路15cは、シリ
アルデータ受信端子RXから入力される受信データ及び
シリアルデータ用クロック入力端子SCKから入力され
る通信用クロック信号SCKをそれぞれ基準電圧と比較
し、波形整形を行う。波形整形された受信データと通信
用クロック信号SCKはディジタルフィルタ15b,1
5dによりノイズ除去の処理が行われ、ヘッダー検知回
路7に供給される。ヘッダーフレームが検出されると、
ヘッダー検知回路7は‘L’レベルのヘッダーフレーム
検知信号HDSを出力する。このヘッダーフレーム検知
信号HDSと通信用シフトレジスタ11の出力する送信
データとの間で論理和演算処理が行われ、送信データ出
力回路15eから通信バスBL3にヘッダーフレームを
検出したことを示す‘L’レベルのヘッダー検出信号が
出力され、制御部2に送出される。またアドレスエラ
ー,パリティエラー等の受信エラーが検出されたときに
は、シリアルデータ送信端子TXは即座にハイインピー
ダンスとなり受信エラー信号が制御部2に送出され、ま
た正常に受信が終了した場合は図8に示すフレーム28
〜フレーム32を送信した後ハイインピーダンスとなり
正常受信完了信号が制御部2に送出される。なお、端末
機が複数ある場合にはヘッダフレームが制御部2から出
力された直後にはすべての端末機からヘッダー検出信号
が制御部2へ送出されることになるが、指定されたアド
レス以外の端末機はアドレスエラーとなるので、指定さ
れたアドレス以外の端末機のシリアルデータ送信端子T
Xはすべて即座にハイインピーダンスとなり、指定され
た端末機のシリアルデータ送信端末TXからのみヘッダ
ーフレームを検出したことを示すヘッダー検出信号が出
力され、制御部2に送出される。シリアルデータ送信端
子TXから送出されるヘッダー検出信号は、図7に示す
ように、制御回路から送られてきたデータのヘッダーフ
レームが検出されると2bit目で‘L’レベルとな
り、受信データのアドレスエラー,パリティエラーが検
出されると即座に‘H’レベルになる。したがって、制
御部2は通信バスBL3上に出力されるヘッダー検出信
号の‘H’レベルから‘L’レベルへの変化、および
‘L’レベルから‘H’レベルの変化をモニターするこ
とにより端末機の受信状態を把握することが出来る。以
上述べたシリアルデータ送信端子TXから出力されるヘ
ッダー検出信号等の送信データは、図12に示すように
通信用クロック信号SCKに立ち下がりに同期して通信
バスBL3に出力され制御部2に送出される。
An input circuit for the rotary switch group RSW is shown in FIG. In this figure, rotary switch input terminals RS0, RS1, RS2, RS3, RS4
RS5 input circuits 10b, 10c, 10d, 10e, 1
0f and 10g are composed of Schmitt trigger inverters, and the outputs of these input circuits are added to the double collation circuit 10a. Returning to FIG. 2, the shift register circuit for communication 1
Reference numeral 1 is a 7-bit shift register that performs parallel / serial conversion during transmission and serial / parallel conversion during reception. Here, a circuit configuration around the communication shift register circuit 11 in the terminals 3 and 4 is shown in FIG. In the figure, 15a is a serial data receiving circuit including a comparator, 15b is a digital filter, 15c is a communication clock signal receiving circuit, 15d is a digital filter,
Reference numeral 5e is a transmission data output circuit for transmitting data to the control unit 2, and an AND gate for inputting transmission data from the shift register 11 and a transmission enable signal (H level at the start of transmission) from the timing generation circuit 2 (12). An AND gate for inputting the inverted signal of the transmission enable signal and the header detection signal from the header detection circuit 7 (L level at header detection, H level at error occurrence or reception end)
And an OR gate for inputting two AND gate outputs, and a MOSFET. Serial data receiving circuit 1
5a and the communication clock signal reception circuit 15c compare the reception data input from the serial data reception terminal RX and the communication clock signal SCK input from the serial data clock input terminal SCK with a reference voltage, respectively, to perform waveform shaping. To do. The waveform-shaped received data and the communication clock signal SCK are digital filters 15b, 1
Noise removal processing is performed by 5d and the noise is supplied to the header detection circuit 7. When a header frame is detected,
The header detection circuit 7 outputs the header frame detection signal HDS of'L 'level. "L" indicating that the logical sum operation processing is performed between the header frame detection signal HDS and the transmission data output from the communication shift register 11 and the header frame is detected from the transmission data output circuit 15e to the communication bus BL3. A level header detection signal is output and sent to the control unit 2. Further, when a reception error such as an address error or a parity error is detected, the serial data transmission terminal TX immediately becomes high impedance, a reception error signal is sent to the control unit 2, and when the reception is normally completed, FIG. Frame 28
~ After the frame 32 is transmitted, the impedance becomes high impedance and the normal reception completion signal is sent to the control unit 2. When there are a plurality of terminals, the header detection signal is sent from all the terminals to the control unit 2 immediately after the header frame is output from the control unit 2. Since the terminal causes an address error, the serial data transmission terminal T of the terminal other than the designated address
All Xs immediately become high impedance, and a header detection signal indicating that the header frame has been detected is output only from the serial data transmission terminal TX of the designated terminal and is sent to the control unit 2. As shown in FIG. 7, when the header frame of the data sent from the control circuit is detected, the header detection signal sent from the serial data transmission terminal TX becomes'L 'level at the 2nd bit, and the address of the received data is shown. When an error or parity error is detected, it immediately becomes'H 'level. Therefore, the control unit 2 monitors the change of the header detection signal output from the communication bus BL3 from the'H 'level to the'L' level and the change of the'L 'level to the'H' level. It is possible to grasp the reception status of. The transmission data such as the header detection signal output from the serial data transmission terminal TX described above is output to the communication bus BL3 in synchronization with the fall of the communication clock signal SCK as shown in FIG. To be done.

【0016】図2に戻り、タイミング発生回路12は、
通信機能に関係する各タイミング信号を発生する。受信
データラッチ回路13は、受信データを水平パリティチ
ェック終了まで一時的にラッチする回路である。VFT
ドライバ回路14は、コントロールパネル部上に設けら
れる図示していない蛍光表示管の駆動回路である。クロ
ック発生回路16は、基準クロック信号を発生する回路
である。表示データラッチ回路17は、入力されるラッ
チ信号を基に表示データをラッチする回路である。
Returning to FIG. 2, the timing generation circuit 12 is
Each timing signal related to the communication function is generated. The reception data latch circuit 13 is a circuit for temporarily latching reception data until the end of the horizontal parity check. VFT
The driver circuit 14 is a drive circuit for a fluorescent display tube (not shown) provided on the control panel section. The clock generation circuit 16 is a circuit that generates a reference clock signal. The display data latch circuit 17 is a circuit that latches display data based on an input latch signal.

【0017】図8は、制御部2と端末機3,4間の送受
信データの通信フォーマットを示す図である。この図に
おいて、18は15bit以上の‘H’レベルの連続と
1bitの‘L’レベルのパルス列からなるヘッダーフ
レーム、19〜27は8bitからなるフレームであ
る。19aは2bitよりなるアドレスビット、19b
は5bitよりなるデータ長ビットであり、制御部から
端末機に送信するデータのバイト数がバイナリィコード
で書きこまれている。この書き込みは制御が行う。19
cは1bitの垂直パリティビットである。20aはフ
レーム20の7bitよりなるデータビット、20bは
垂直パリティビットである。21aはフレーム21の7
bitよりなるデータビット、21bは垂直パリティビ
ットである。22aはフレーム22の7bitよりなる
データビット、22bは垂直パリティビットである。2
3aはフレーム23の7bitよりなるデータビット、
23bは垂直パリティビットである。24aはフレーム
24の7bitよりなるデータビット、24bは垂直パ
リティビットである。25aはフレーム25の7bit
よりなるデータビット、25bは垂直パリティビットで
ある。26aはフレーム26の7bitよりなるデータ
ビット、26bは垂直パリティビットである。27a
は、7bitよりなる水平パリティフレーム、27bは
フレーム27の垂直パリティビットである。以上18〜
27までの各フレームは、制御部2から送信され端末機
3あるいは端末機4が受信する、受信データのフレーム
である。また、28〜32はそれぞれ1フレームを示
し、端末機3あるいは端末機4から制御部2に送られる
送信データである。28aは2bitよりなるアドレス
ビットであり、どの端末機から送信されたかを識別する
ためのビットである。28bは5bitよりなるデータ
長ビットであり、端末機から制御部2へ送信するデータ
のバイト数がバイナリィコードで書き込まれている。こ
の書き込みは端末機が行う。29a,30a,31a
は、スイッチ群MSWとロータリースイッチ群RSWの
押下情報あるいは回転情報を示すデータビット、28
c,29b,30b,31b,32bは垂直パリティビ
ットである。
FIG. 8 is a diagram showing a communication format of transmission / reception data between the control unit 2 and the terminals 3 and 4. In this figure, 18 is a header frame composed of 15-bit or more continuous "H" level and 1-bit "L" level pulse train, and 19 to 27 are frames composed of 8 bits. 19a is an address bit consisting of 2 bits, 19b
Is a data length bit consisting of 5 bits, and the number of bytes of data transmitted from the control unit to the terminal is written in a binary code. This writing is controlled. 19
c is a 1-bit vertical parity bit. 20a is a data bit consisting of 7 bits of the frame 20, and 20b is a vertical parity bit. 21a is 7 of the frame 21
A data bit composed of a bit and 21b is a vertical parity bit. Reference numeral 22a is a 7-bit data bit of the frame 22, and 22b is a vertical parity bit. Two
3a is a data bit consisting of 7 bits of the frame 23,
23b is a vertical parity bit. 24 a is a data bit consisting of 7 bits of the frame 24, and 24 b is a vertical parity bit. 25a is 7 bits of the frame 25
Data bit, and 25b is a vertical parity bit. 26a is a data bit consisting of 7 bits of the frame 26, and 26b is a vertical parity bit. 27a
Is a horizontal parity frame composed of 7 bits, and 27 b is a vertical parity bit of the frame 27. 18-
Each frame up to 27 is a frame of received data transmitted from the control unit 2 and received by the terminal 3 or the terminal 4. 28 to 32 each represent one frame, which is transmission data sent from the terminal 3 or 4 to the control unit 2. 28a is an address bit composed of 2 bits, and is a bit for identifying from which terminal device the data is transmitted. 28b is a data length bit consisting of 5 bits, and the number of bytes of data transmitted from the terminal to the control unit 2 is written in a binary code. This writing is done by the terminal. 29a, 30a, 31a
Is a data bit indicating push-down information or rotation information of the switch group MSW and the rotary switch group RSW, 28
Reference numerals c, 29b, 30b, 31b and 32b are vertical parity bits.

【0018】図9は、受信データラッチ回路13内のフ
レーム19からフレーム27までの受信データの割り当
てを示す図である。この実施例では、L0〜L4までに
データのバイト数がバイナリィコードで書き込まれ、こ
の場合送信されるデータはD1〜D7までの7バイトで
あるから「11100」が書き込まれている。
FIG. 9 is a diagram showing allocation of received data from frame 19 to frame 27 in the received data latch circuit 13. In this embodiment, the number of bytes of data is written in a binary code from L0 to L4. In this case, since the data transmitted is 7 bytes from D1 to D7, "11100" is written.

【0019】図10は、制御部2に送信されたフレーム
28からフレーム32により構成される送信データの割
り当てを示す図である。L0〜L4までにデータのバイ
ト数がバイナリィコードで書き込まれ、この場合送信さ
れるデータはD1〜D3までの3バイトであるから「1
1000」が書き込まれている。
FIG. 10 is a diagram showing allocation of transmission data composed of the frames 28 to 32 transmitted to the control unit 2. The number of bytes of data is written in a binary code from L0 to L4. In this case, the data to be transmitted is 3 bytes from D1 to D3.
1000 "is written.

【0020】図11は端末機3,4におけるシリアルデ
ータの入力するタイミングを示すタイミングチャートで
ある。この図において、シリアルデータ受信端子RXに
供給されるデータのサンプリングはシリアルデータ用ク
ロック入力端子SCKに供給される通信用クロック信号
SCKの立上がりに同期して行われ、端末機に取り込ま
れる。
FIG. 11 is a timing chart showing the timing of inputting serial data in the terminals 3 and 4. In this figure, sampling of the data supplied to the serial data receiving terminal RX is performed in synchronization with the rising of the communication clock signal SCK supplied to the serial data clock input terminal SCK, and is taken into the terminal.

【0021】図12は端末機3,4から送出される送信
データのタイミングを示すタイミングチャートである。
この図において、シリアルデータ送信端子TXから送出
されるデータはシリアルデータ用クロック入力端子SC
Kに供給される通信用クロック信号SCKの立下がりに
同期して行われる。
FIG. 12 is a timing chart showing the timing of the transmission data transmitted from the terminals 3 and 4.
In this figure, the data transmitted from the serial data transmission terminal TX is the serial data clock input terminal SC.
This is performed in synchronization with the fall of the communication clock signal SCK supplied to K.

【0022】図13、端末機3,4における受信データ
のエラー検出方式を示す図である。この図において、5
1は図8に示すフレーム19の垂直パリティビット、5
2は同様にフレーム20の垂直パリティビット、53は
フレーム21の垂直パリティビット、53はフレーム2
1の垂直パリティビット、54はフレーム22の垂直パ
リティビット、55はフレーム23の垂直パリティビッ
ト、56はフレーム24の垂直パリティビット、57は
フレーム25の垂直パリティビット、58はフレーム2
6の垂直パリティビット、59はフレーム27の垂直パ
リティビットである。60は図8に示すフレーム27の
水平パリティフレームである。この受信データのエラー
検出方式では垂直パリティおよび水平パリティは共に奇
パリティチェックとし、アドレスエラー,垂直パリティ
エラー,水平パリティエラー検出する。この場合、51
〜59(VP0〜VP8)のそれぞれの垂直パリティビ
ットVPmは、次に示す演算式を基に求められる。
FIG. 13 is a diagram showing an error detection method of received data in the terminals 3 and 4. In this figure, 5
1 is the vertical parity bit of frame 19 shown in FIG.
Similarly, 2 is the vertical parity bit of frame 20, 53 is the vertical parity bit of frame 21, and 53 is the frame 2
1 vertical parity bit, 54 vertical parity bit of frame 22, 55 vertical parity bit of frame 23, 56 vertical parity bit of frame 24, 57 vertical parity bit of frame 25, 58 vertical parity bit of frame 25
6 is a vertical parity bit, and 59 is a vertical parity bit of the frame 27. Reference numeral 60 is a horizontal parity frame of the frame 27 shown in FIG. In this error detection method of received data, both the vertical parity and the horizontal parity are odd parity checks, and the address error, the vertical parity error, and the horizontal parity error are detected. In this case, 51
Each vertical parity bit VPm of ˜59 (VP0 to VP8) is obtained based on the following arithmetic expression.

【0023】[0023]

【数1】 [Equation 1]

【0024】一方、60(HP0〜HP6)のそれぞれ
の水平パリティビットHPmは、次に示す演算式を基に
求められる。
On the other hand, the horizontal parity bits HPm of 60 (HP0 to HP6) are calculated based on the following arithmetic expressions.

【0025】[0025]

【数2】 [Equation 2]

【0026】図14は、制御部2における送信されてき
たデータに対するエラー検出方式を示す図である。この
図において、61は図8に示すフレーム28の垂直パリ
ティビット、62は同様にフレーム29の垂直パリティ
ビット、63はフレーム30の垂直パリティビット、6
4はフレーム31の垂直パリティビット、65はフレー
ム32の垂直パリティビットである。66は図8に示す
フレーム32の水平パリティフレームである。このエラ
ー検出方式では垂直パリティおよび水平パリティは共に
奇パリティチェックとし、アドレスエラー,垂直パリテ
ィエラー,水平パリティエラーを検出する。この場合、
61〜65(VP0〜VP4)のそれぞれの垂直パリテ
ィビットVPmは、次に示す演算式を基に求められる。
FIG. 14 is a diagram showing an error detection method for the transmitted data in the control unit 2. In this figure, 61 is a vertical parity bit of the frame 28 shown in FIG. 8, 62 is a vertical parity bit of the frame 29, 63 is a vertical parity bit of the frame 30, and 6 is a vertical parity bit of the frame 30.
Reference numeral 4 is a vertical parity bit of the frame 31, and 65 is a vertical parity bit of the frame 32. 66 is a horizontal parity frame of the frame 32 shown in FIG. In this error detection method, both vertical parity and horizontal parity are odd parity checks, and address errors, vertical parity errors, and horizontal parity errors are detected. in this case,
The vertical parity bits VPm of each of 61 to 65 (VP0 to VP4) are obtained based on the following arithmetic expression.

【0027】[0027]

【数3】 [Equation 3]

【0028】一方、66(HP0〜HP6)のそれぞれ
の水平パリティビットHPmは、次に示す演算式を基に
求められる。
On the other hand, each horizontal parity bit HPm of 66 (HP0 to HP6) is obtained based on the following arithmetic expression.

【0029】[0029]

【数4】 [Equation 4]

【0030】図15は、スイッチマトリックス回路5に
おけるSWマトリックス信号を基に2連照合を行い、押
下されたスイッチを検出する際のタイミングチャートで
ある。
FIG. 15 is a timing chart at the time of detecting a pressed switch by performing a double collation based on the SW matrix signal in the switch matrix circuit 5.

【0031】図16は、ロータリースイッチ入力信号に
対し2連照合を行う際のタイミングチャートである。
FIG. 16 is a timing chart when performing double matching on the rotary switch input signal.

【0032】次に、図17,図18を参照して、この実
施例における信号伝送装置1の動作について説明する。
図17は、制御部2の動作を説明するためのふとーチャ
ート、図18は端末機の動作を説明するためのフローチ
ャートである。この信号伝送装置1において電源が投入
されると、制御部2および端末機3,4は図17,図1
8に示すフローチャートにしたがって動作を開始する。
まずステップST1において、制御部2では転送クロッ
ク,転送クロックレートの内部設定等のイニシャライズ
が行われる。続くステップST2では、図8に示す送信
データの作成が行われる。すなわち、図8のデータビッ
ト20a,21a,22a,23a,24a,25a,
26aに対し送信先アドレスのアドレスビット19a,
データ長ビット19bの設定、垂直パリティビット19
c,20b,21b,22b,23b,24b,25
b,26b,27bの付加、フレーム27に示す水平パ
リティフレーム27aの付加等である。ステップST3
では、ステップST2で作成したデータが端末機へ送信
される。つづくステップST41では、端末機から送ら
れてくるヘッダー検出信号,データ長ビット,データフ
レーム,正常受信完了信号等が受信可能な状態となる。
一方、端末機は、図18のステップST11において制
御部2から送られてくるヘッダーフレームを検出すると
ステップST12に進み、端末機から制御部2へヘッダ
ーフレームを検出した事を示すヘッダー検出信号を出力
する。制御部2では、このヘッドー検出信号を検出し端
末機において受信が開始されたことを知る。ステップS
T13では、アドレスビット19aにより指定されるア
ドレスが、図1に示すアドレス設定スイッチS0,S1
あるいはS00,S11により予め自らに対し設定され
たアドレスと一致するか否かが端末機において判断され
る。アドレスが一致するとステップST141に進み、
バイト数カウンタBCに図8の19bに示すデータ長が
書き込むと共に、データを受信する。受信したデータ
は、受信データラッチ回路13(図2参照)に図9に示
すような割り当てで格納される。このデータを受信する
過程において、ステップST142,ステップST14
3によりバイト数カウンタ値から通信用クロック信号毎
に「−1」の減算が行われる。一方、ステップST13
においてアドレスが一致しないと判断されたときは、ス
テップST15に進みアドレスエラーとしてシリアルデ
ータ送信端子TXをハイインピーダンスにしヘッダー検
出信号をオフにして、ステップST11に戻り、ヘッダ
ーフレームの検出待機の状態となる。ステップST16
では、次に送られてくるデータフレームを水平パリティ
フレームとして、受信データに対し水平パリティチェッ
ク,垂直パリティチェックが行われる。このパリティチ
ェックは
Next, with reference to FIGS. 17 and 18, the operation of the signal transmission device 1 in this embodiment will be described.
FIG. 17 is a flowchart for explaining the operation of the controller 2, and FIG. 18 is a flowchart for explaining the operation of the terminal. When the power is turned on in the signal transmission device 1, the control unit 2 and the terminals 3 and 4 are operated as shown in FIGS.
The operation is started according to the flowchart shown in FIG.
First, in step ST1, the control unit 2 initializes the transfer clock and the transfer clock rate internally. In the subsequent step ST2, the transmission data shown in FIG. 8 is created. That is, the data bits 20a, 21a, 22a, 23a, 24a, 25a of FIG.
26a, address bits 19a of the destination address,
Data length bit 19b setting, vertical parity bit 19
c, 20b, 21b, 22b, 23b, 24b, 25
b, 26b, 27b, horizontal parity frame 27a shown in frame 27, and so on. Step ST3
Then, the data created in step ST2 is transmitted to the terminal. In the subsequent step ST41, the header detection signal, the data length bit, the data frame, the normal reception completion signal, etc. sent from the terminal are ready to be received.
On the other hand, when the terminal detects the header frame sent from the control unit 2 in step ST11 of FIG. 18, the terminal proceeds to step ST12 and outputs a header detection signal indicating that the header frame is detected from the terminal to the control unit 2. To do. The control unit 2 detects the head detection signal and knows that the terminal has started reception. Step S
At T13, the address designated by the address bit 19a is the address setting switch S0, S1 shown in FIG.
Alternatively, in S00 and S11, it is determined in the terminal whether or not the address matches the address previously set for itself. If the addresses match, the process proceeds to step ST141,
The data length shown in 19b of FIG. 8 is written in the byte number counter BC, and the data is received. The received data is stored in the received data latch circuit 13 (see FIG. 2) with the allocation shown in FIG. In the process of receiving this data, steps ST142 and ST14
By "3", "-1" is subtracted from the byte number counter value for each communication clock signal. On the other hand, step ST13
When it is determined that the addresses do not match in step ST15, as an address error, the serial data transmission terminal TX is set to high impedance to turn off the header detection signal, and the process returns to step ST11 to wait for header frame detection. .. Step ST16
Then, the horizontal parity check and the vertical parity check are performed on the received data by using the data frame sent next as the horizontal parity frame. This parity check

【数1】,[Equation 1],

【数2】に示す演算を基に行われる。水平パリティチェ
ック,垂直パリティチェックにおいてエラーが検知され
なければステップST17に進み表示データを更新す
る。ステップST18では、端末機から制御部2へデー
タ(図8のフレーム28〜32)を送信する。一方、制
御部2では、端末機から送られてくるデータの受信が行
われると共に、データ長ビットを検出し、バイト数カウ
ンタBCにデータ長を書きこむ。この場合は送られてく
るデータのバイト数は3であるから「11000」が書
きこまれる。つづく、ステップST42,ステップST
43において、バイト数カウンタ値から通信用クロック
毎に「−1」の減算が行われる。制御部2のデータラッ
チ回路荷は図10に示すように受信データがラッチされ
る。ステップST5に進むと、受信データに対し水平パ
リティチェック,垂直パリティチェック等が行われる。
このパリティチェックは
It is performed on the basis of the calculation shown in Equation 2. If no error is detected in the horizontal parity check and vertical parity check, the process proceeds to step ST17 and the display data is updated. In step ST18, the terminal device transmits data (frames 28 to 32 in FIG. 8) to the control unit 2. On the other hand, the control unit 2 receives the data sent from the terminal, detects the data length bit, and writes the data length in the byte number counter BC. In this case, since the number of bytes of the data sent is 3, "11000" is written. Continue, Step ST42, Step ST
At 43, "-1" is subtracted from the byte number counter value for each communication clock. The data latch circuit of the control unit 2 latches the received data as shown in FIG. In step ST5, the received data is subjected to horizontal parity check, vertical parity check, and the like.
This parity check

【数3】,[Equation 3],

【数4】に示す演算を基に行われる。水平パリティチェ
ック,垂直パリティチェックにおいてエラーが検知され
なければステップST6に進み、受信データを有効とし
てステップST2に戻る。一方、ステップST5におい
て、エラーが検知されるとステップST7に進み、受信
データを無効として破棄し、ステップST2に戻る。一
方、端末機では、ステップST19に進み正常受信完了
信号を制御部2へ送出する。制御部2は、端末機から送
られてきた正常受信完了信号により受信が正常に完了し
たことを知る。一方、端末機のステップST16におい
てパリティエラーが検出されると、ステップST20に
進む。ステップST20では、端末機は受信エラー信号
を制御部2に送出し、ステップST11に戻る。端末機
から送出された受信エラー信号により、制御部2は受信
エラーが発生したことを知り、これにより同一端末機へ
のデータの再送を行う。なお、データを制御部2に送信
中に制御部2から送られてくるデータのヘッダーフレー
ムを検出したときは、端末機3,4は直ちに送信を中止
して受信を開始する。
It is performed on the basis of the calculation shown in Equation 4. If no error is detected in the horizontal parity check and vertical parity check, the process proceeds to step ST6, validates the received data, and returns to step ST2. On the other hand, if an error is detected in step ST5, the process proceeds to step ST7, the received data is invalidated and discarded, and the process returns to step ST2. On the other hand, in the terminal, the process proceeds to step ST19 and the normal reception completion signal is sent to the control unit 2. The control unit 2 knows that the reception is normally completed by the normal reception completion signal sent from the terminal. On the other hand, if a parity error is detected in step ST16 of the terminal, the process proceeds to step ST20. In step ST20, the terminal sends a reception error signal to the control unit 2 and returns to step ST11. Based on the reception error signal sent from the terminal, the control unit 2 knows that a reception error has occurred, and accordingly retransmits the data to the same terminal. When the header frame of the data sent from the control unit 2 is detected during the transmission of the data to the control unit 2, the terminals 3 and 4 immediately stop the transmission and start the reception.

【0033】[0033]

【発明の効果】以上のように、この請求項1〜2の発明
によれば、送信されるデータの長さを変えることが出来
るので、送られる情報量が少ない倍医には相応のバイト
数の信号を伝送することが出来、通信に要する時間を短
縮でき、データの伝送を効率よく行うことが出来る。ま
たクロック同期式シリアルインターフェースが内蔵され
ているワンチップマイクロコンピュータを使用するの
で、専用のハードウェアーを用いる必要がなく経済的で
あり、また、NRZ信号列をクロック信号に同期させて
シリアルに受信回路に伝送するので信号線の本数が少な
くてすみ、さらに伝送された信号に対し水平パリティチ
ェック,垂直パリティチェックが行われるので通信の信
頼性が向上する。また、垂直パリティチェックは奇パリ
ティであるのでハードウェアーの故障により送信データ
がオール「1」,オール「0」となるような状態を容易
に発見できる。さらに、クロック同期式シリアルインタ
ーフェースが内蔵されているワンチップマイクロコンピ
ュータを使用するので、シリアル・データ転送を行うに
際してソフトウェアーにかかる負担が低減され。
As described above, according to the inventions of claims 1 and 2, since the length of data to be transmitted can be changed, the number of bytes is appropriate for a doctor having a small amount of information to be transmitted. Signal can be transmitted, the time required for communication can be shortened, and data can be transmitted efficiently. In addition, since a one-chip microcomputer with a built-in clock-synchronous serial interface is used, it is economical without the need to use dedicated hardware, and the NRZ signal string is synchronized with the clock signal to serially receive a circuit. Since the number of signal lines is small, the horizontal parity check and the vertical parity check are performed on the transmitted signal, so that the communication reliability is improved. Further, since the vertical parity check is an odd parity, it is possible to easily find a state in which the transmission data becomes all "1" and all "0" due to a hardware failure. Furthermore, since a one-chip microcomputer with a built-in clock-synchronous serial interface is used, the load on the software for serial data transfer is reduced.

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

【図1】この発明の一実施例の信号伝送装置の構成を示
すブロック図である。
FIG. 1 is a block diagram showing a configuration of a signal transmission device according to an embodiment of the present invention.

【図2】この発明の一実施例の信号伝送装置における端
末機の機能ブロック図である。
FIG. 2 is a functional block diagram of a terminal in the signal transmission device according to the embodiment of the present invention.

【図3】スイッチ群MSWに対する入力回路を示す電気
回路図である。
FIG. 3 is an electric circuit diagram showing an input circuit for a switch group MSW.

【図4】SWマトリックス制御信号を示す波形図であ
る。
FIG. 4 is a waveform diagram showing a SW matrix control signal.

【図5】ロータリースイッチ群RSWに対する入力回路
の構成を示す電気回路図である。
FIG. 5 is an electric circuit diagram showing a configuration of an input circuit for a rotary switch group RSW.

【図6】通信用シフトレジスタ回路周辺の回路構成を示
す電気回路図である。
FIG. 6 is an electric circuit diagram showing a circuit configuration around a communication shift register circuit.

【図7】送信データ出力回路の出力説明するためのタイ
ミングチャートである。
FIG. 7 is a timing chart for explaining the output of the transmission data output circuit.

【図8】制御部と端末機間の送受信データの通信フォー
マットを示す図である。
FIG. 8 is a diagram showing a communication format of transmission / reception data between a control unit and a terminal.

【図9】受信データラッチ回路内にラッチした受信デー
タの割り当てを示す図である。
FIG. 9 is a diagram showing allocation of reception data latched in a reception data latch circuit.

【図10】制御部に送信された送信データの割り当てを
示す図である。
FIG. 10 is a diagram showing allocation of transmission data transmitted to a control unit.

【図11】受信データのサンプリングされるタイミング
を示すタイミングチャートである。
FIG. 11 is a timing chart showing a timing at which received data is sampled.

【図12】データの送出されるタイミングを示すタイミ
ングチャートである。
FIG. 12 is a timing chart showing the timing of data transmission.

【図13】端末機における受信データのエラー検出方式
を示す図である。
FIG. 13 is a diagram illustrating an error detection method of received data in a terminal.

【図14】制御部における送信されてきたデータに対す
るエラー検出方式を示す図である。
FIG. 14 is a diagram showing an error detection method for transmitted data in a control unit.

【図15】スイッチマトリックス回路における2連照合
および押下されたスイッチを検出する際のタイミングチ
ャートである。
FIG. 15 is a timing chart at the time of double-checking and detecting a pressed switch in the switch matrix circuit.

【図16】ロータリースイッチ入力信号に対し2連照合
を行う際のタイミングチャートである。
FIG. 16 is a timing chart when performing a double collation on a rotary switch input signal.

【図17】制御部の動作を説明するためのフローチャー
トである。
FIG. 17 is a flowchart for explaining the operation of the control unit.

【図18】端末機の動作を説明するためのフローチャー
トである。
FIG. 18 is a flowchart illustrating an operation of the terminal.

【図19】従来の分離型オートエアコンの全体ブロック
図である。
FIG. 19 is an overall block diagram of a conventional separation type automatic air conditioner.

【図20】オートアンプ部とコントロールパネル部との
接続関係を示す図である。
FIG. 20 is a diagram showing a connection relationship between an auto amplifier section and a control panel section.

【図21】表示部の詳細を示すブロック図である。FIG. 21 is a block diagram showing details of a display unit.

【図22】オートアンプ部から表示部へ転送される表示
データを示すタイミングチャートである
FIG. 22 is a timing chart showing display data transferred from the auto amplifier section to the display section.

【図23】オートアンプ部とエアコンスイッチ部間の送
受信信号を示す波形図である。
FIG. 23 is a waveform diagram showing a transmission / reception signal between the auto amplifier unit and the air conditioner switch unit.

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

1 信号伝送装置 2 制御部 3 端末機 4 端末機 5 SWマトリックス回路 6 タイミング発生回路 7 ヘッダー検知回路 8 エラーチェック回路 9 水平パリティチェック回路 10 送信データセレクタ回路 11 通信用シフトレジスタ回路 12 タイミング発生回路 13 受信データラッチ回路 14 VFTドライバ回路 15a シリアルデータ受信回路 15b ディジタルフィルタ 15c 通信用クロック信号受信回路 15d ディジタルフィルタ 15e 送信データ出力回路 16 クロック発生回路 17 表示データラッチ回路 18 ヘッダーフレーム 19〜27 端末機が受信する受信データのフレーム 19a アドレスビット 19b データ長ビット 20a,22a,23a,24a,25a,26a デ
ータビット 19c,20b,21b,22b,23b,24b,2
5b,26b,27b垂直パリティビット 27a 水平パリティビット 28〜32 端末機から送信する送信データのフレーム 28a アドレスビット 28b データ長ビット 29a,30a,31a データビット 28c,29b,30b,31b,32b 垂直パリテ
ィビット 32a 水平パリティビット BL1 通信バス BL2 通信バス S0 アドレス設定スイッチ S1 アドレス設定スイッチ S11 アドレス設定スイッチ S00 アドレス設定スイッチ
1 Signal Transmission Device 2 Control Unit 3 Terminal Device 4 Terminal Device 5 SW Matrix Circuit 6 Timing Generation Circuit 7 Header Detection Circuit 8 Error Check Circuit 9 Horizontal Parity Check Circuit 10 Transmission Data Selector Circuit 11 Communication Shift Register Circuit 12 Timing Generation Circuit 13 Reception data latch circuit 14 VFT driver circuit 15a Serial data reception circuit 15b Digital filter 15c Communication clock signal reception circuit 15d Digital filter 15e Transmission data output circuit 16 Clock generation circuit 17 Display data latch circuit 18 Header frame 19-27 Terminal receives Received data frame 19a Address bit 19b Data length bit 20a, 22a, 23a, 24a, 25a, 26a Data bit 19c, 20b, 21b, 2 2b, 23b, 24b, 2
5b, 26b, 27b Vertical parity bit 27a Horizontal parity bit 28 to 32 Frame of transmission data transmitted from terminal 28a Address bit 28b Data length bit 29a, 30a, 31a Data bit 28c, 29b, 30b, 31b, 32b Vertical parity bit 32a Horizontal parity bit BL1 communication bus BL2 communication bus S0 address setting switch S1 address setting switch S11 address setting switch S00 address setting switch

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 送信回路からのNRZ信号列をクロック
信号に同期させてシリアルに受信回路に伝送する信号伝
送装置において、前記NRZ信号列が所定ビット数の
‘H’レベルビットおよび所定ビット数の‘L’レベル
ビットからなるヘッダーフレームと、所定ビット数のデ
ータビットおよび1ビットのパリティビットからなる複
数のデータフレームと、前記データフレームの同順位ビ
ットのパリティチェックを行うパリティビット列からな
るパリティフレームとから構成され、さらに送信データ
のバイト数を示す前記データフレームの一部に設けられ
たビットと、該ビットを基に送信データのバイト数を識
別し、該バイト数だけデータを受信した後受信終了処理
を行うデータ処理手段とを具備することを特徴するす信
号伝送装置。
1. A signal transmission device for serially transmitting an NRZ signal sequence from a transmission circuit to a reception circuit in synchronization with a clock signal, wherein the NRZ signal sequence has a predetermined number of'H 'level bits and a predetermined number of bits. A header frame made up of'L 'level bits, a plurality of data frames made up of a predetermined number of data bits and 1 parity bit, and a parity frame made up of a parity bit string for performing a parity check of the same-order bits of the data frame. And a bit provided in a part of the data frame that indicates the number of bytes of the transmission data, and the number of bytes of the transmission data is identified based on the bit, and reception is completed after receiving the data by the number of bytes. A signal transmission device comprising: a data processing unit that performs processing.
【請求項2】 上記送信回路および上記受信回路がクロ
ック同期式シリアルインターフェースが内蔵されている
ワンチップマイクロコンピュータから構成され、上記ヘ
ッダーフレームが、15ビット数以上の‘H’レベルビ
ットおよび1ビットの‘L’レベルビットからなるヘッ
ダーフレームであり、上記データフレームが、7ビット
数のデータビットおよび1ビットの奇パリティの垂直パ
リティビットからなるデータフレームであり、上記パリ
ティフレームが、前記データフレームの同順位ビットの
パリティチェックを行うパリティビット列からなる水平
パリティフレームであり、さらに送信データのバイト数
を示す前記データフレームの先頭に設けられたビット
と、該ビットを基に送信データのバイト数を識別し、該
バイト数だけデータを受信した後水平パリティチェック
を行い、さらにデータラッチを行うデータ処理手段とを
具備することを特徴とする請求項1記載の信号伝送装
置。
2. The transmission circuit and the reception circuit are composed of a one-chip microcomputer in which a clock synchronous serial interface is built in, and the header frame is made up of 15 or more'H 'level bits and 1 bit. It is a header frame consisting of'L 'level bits, the data frame is a data frame consisting of 7 bits of data bits and 1 parity vertical parity bit of odd parity, and the parity frame is the same as the data frame. It is a horizontal parity frame consisting of a parity bit string that performs a parity check of the order bits, and further identifies the bit provided at the beginning of the data frame indicating the number of bytes of transmission data and the number of bytes of transmission data based on the bit. , Receive data for the number of bytes Horizontal parity check is performed, further the signal transmission apparatus according to claim 1, characterized by comprising a data processing means for performing data latch after.
JP3244134A 1991-08-30 1991-08-30 Signal transmitter Pending JPH0563755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3244134A JPH0563755A (en) 1991-08-30 1991-08-30 Signal transmitter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3244134A JPH0563755A (en) 1991-08-30 1991-08-30 Signal transmitter

Publications (1)

Publication Number Publication Date
JPH0563755A true JPH0563755A (en) 1993-03-12

Family

ID=17114271

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3244134A Pending JPH0563755A (en) 1991-08-30 1991-08-30 Signal transmitter

Country Status (1)

Country Link
JP (1) JPH0563755A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6011688A (en) * 1997-06-04 2000-01-04 Hewlett Packard Co. Compact apparatus for cooling a plurality of circuit packs arranged with a cage
JP2010528509A (en) * 2007-05-25 2010-08-19 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Data transmission method between master device and slave device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6011688A (en) * 1997-06-04 2000-01-04 Hewlett Packard Co. Compact apparatus for cooling a plurality of circuit packs arranged with a cage
JP2010528509A (en) * 2007-05-25 2010-08-19 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Data transmission method between master device and slave device

Similar Documents

Publication Publication Date Title
EP0580189B1 (en) Collective wiring system for an automobile and control method for the wiring system
US4852043A (en) Daisy-chain bus system with truncation circuitry for failsoft bypass of defective sub-bus subsystem
JPH06205072A (en) Signal processor
JP3256107B2 (en) Multi-protocol data bus system
ITMI981784A1 (en) DATA TRANSMISSION DEVICE
US7870318B2 (en) Asynchronous serial communication method and asynchronous serial communication device
KR100347407B1 (en) Multiprotocol data bus system
CA1228168A (en) I/o scanner for an industrial control
JPH0563755A (en) Signal transmitter
JP2938033B2 (en) Transmitter for half-duplex communication
US6185651B1 (en) SCSI bus extender utilizing tagged queuing in a multi-initiator environment
JPH0563754A (en) Signal transmitter
JPH0563753A (en) Signal transmitter
US5765019A (en) Microcomputer with built-in serial input-output circuit and collision detection circuit responsive to common input-output line being occupied
JPS6065645A (en) Terminal processing device
JPH08221174A (en) Key input processing circuit
EP0829095B1 (en) Method and apparatus for reducing latency time on an interface by overlapping transmitted packets
CN106647341B (en) A kind of vehicle-carrying display screen independently lights method and apparatus
JPH04287150A (en) Synchronous serial bus system
JPS6028024B2 (en) Input/output interface device
KR0143684B1 (en) An interface for supporting ic protocol
JP3139291B2 (en) Display control means and display panel driving device
JPH1174893A (en) Data communication equipment and its communication method
JPH05265948A (en) Four-line type synchronizing serial communication system
JP2925546B2 (en) Vehicle decentering detection device