JPH0965456A - Voltage level conversion circuit for multiplex communication path for automobile - Google Patents

Voltage level conversion circuit for multiplex communication path for automobile

Info

Publication number
JPH0965456A
JPH0965456A JP7214415A JP21441595A JPH0965456A JP H0965456 A JPH0965456 A JP H0965456A JP 7214415 A JP7214415 A JP 7214415A JP 21441595 A JP21441595 A JP 21441595A JP H0965456 A JPH0965456 A JP H0965456A
Authority
JP
Japan
Prior art keywords
signal
reception
circuit
communication path
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7214415A
Other languages
Japanese (ja)
Inventor
Kouzou Katougi
工三 加藤木
Masahiro Adachi
正博 足立
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 JP7214415A priority Critical patent/JPH0965456A/en
Publication of JPH0965456A publication Critical patent/JPH0965456A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control By Computers (AREA)
  • Logic Circuits (AREA)
  • Dc Digital Transmission (AREA)
  • Selective Calling Equipment (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To attain voltage conversion in an accurate timing by inhibiting the reception of a communication path of an opposite party so that the output signal of a voltage level conversion circuit connecting to communication paths with different voltage levels is not returned to an original reception signal side. SOLUTION: A CPU 101 of an engine controller 100 uses an I/O 103 to diagnose sensors and actuators and receives an instruction signal from a tester 201 to provide the output of count and diagnosis results. A voltage level conversion circuit 110 is provided between communication paths of different voltage levels, and a reception inhibit circuit 113 stops signal reception and start of a communication path occupancy time timer 116 while a signal from the opposite party stays on the communication paths and a reception permission circuit 114 inhibits a signal output while its own signal stays on the communication paths. Thus, the reception of its own transmission signal is avoided and complicated software processing for signal discrimination is not required and the processing is simplified.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はマイクロコンピュータの
動作状態を示すデータを読み出す通信路に関し、特に電
圧レベルの異なるマイクロコンピュータ回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication path for reading out data indicating an operating state of a microcomputer, and more particularly to a microcomputer circuit having different voltage levels.

【0002】[0002]

【従来の技術】マイクロコンピュータの動作状態を検出
するには、マイクロコンピュータのデータバス上の所定
アドレスに対応したデータをモニタする方法が従来用い
られてきた。しかし、マイクロコンピュータのワンチッ
プ化によってデータバスは外部に出力されない構成が多
くなり、動作状態を検出することが困難になっている。
このようなモニタ装置の例として、特開昭58−107998号
公報がある。
2. Description of the Related Art In order to detect the operating state of a microcomputer, a method of monitoring data corresponding to a predetermined address on a data bus of the microcomputer has been conventionally used. However, due to the one-chip microcomputer, there are many configurations in which the data bus is not output to the outside, which makes it difficult to detect the operating state.
As an example of such a monitor device, there is JP-A-58-107998.

【0003】そこでモニタを特定のアドレスに限定し、
シリアル信号によってデータをモニタする手段がとられ
てきた。シリアル信号は送信信号と受信信号が分離され
ており、そのままでは一つのマイクロコンピュータに対
して一つのモニタ装置しか対応できない問題がある。
Therefore, the monitor is limited to a specific address,
Means have been taken to monitor the data by serial signals. Since the transmission signal and the reception signal are separated from each other in the serial signal, there is a problem that only one monitor device can correspond to one microcomputer as it is.

【0004】そこで、送信信号と受信信号とを多重化
し、複数のマイクロコンピュータのシリアル信号を一つ
の通信路で通信する方法が従来とられてきた。
Therefore, a method has conventionally been used in which a transmission signal and a reception signal are multiplexed and serial signals of a plurality of microcomputers are communicated through a single communication path.

【0005】[0005]

【発明が解決しようとする課題】図1は多重化によって
複数のマイクロコンピュータ間の通信を行う接続を示し
たもので、すべてのマイクロコンピュータ回路のシリア
ル信号は同一の電圧レベルで動作することを前提として
いる。
FIG. 1 shows a connection for communication between a plurality of microcomputers by multiplexing, and it is premised that serial signals of all microcomputer circuits operate at the same voltage level. I am trying.

【0006】従って、信号レベルが異なるマイクロコン
ピュータ回路とは接続ができない。例えば、0およびV
B(12V)をロジックレベルとする信号レベルでは、
約50%にしきい値がある。図2に示すように、0およ
びVcc(5V)を信号レベルとする回路と接続した場
合、5Vをハイレベルとして出力しても、VBの50%
(6V)以下のためローレベルと受信されてしまい、通
信が成立しない。
Therefore, it cannot be connected to a microcomputer circuit having a different signal level. For example, 0 and V
At the signal level where B (12V) is the logic level,
There is a threshold at about 50%. As shown in FIG. 2, when connected to a circuit in which 0 and Vcc (5V) are signal levels, even if 5V is output as a high level, 50% of VB is output.
Since it is (6V) or less, it is received as a low level and communication is not established.

【0007】本発明では、こうした異なる電圧レベルや
信号レベルの通信路を接続する手段を提供することを課
題とする。
An object of the present invention is to provide a means for connecting communication paths of such different voltage levels and signal levels.

【0008】[0008]

【課題を解決するための手段】図3に示すように、片方
のマイクロコンピュータ回路がシリアル信号を出力して
いる間、出力された信号を優先し、相手側の通信路を禁
止するように構成する。この状態で信号レベルを相手側
に合わせるように、出力回路の電圧を変換する。
As shown in FIG. 3, while one microcomputer circuit is outputting a serial signal, the output signal is prioritized and the communication path of the other side is prohibited. To do. In this state, the voltage of the output circuit is converted so that the signal level is adjusted to the other side.

【0009】[0009]

【作用】相手側の通信路の受信を禁止することにより、
電圧変換回路は電圧変換された出力信号が元の受信信号
側に戻らないので正確なタイミングで電圧変換できる。
[Operation] By prohibiting the reception of the communication path on the other side,
The voltage converting circuit does not return the voltage-converted output signal to the original reception signal side, so that the voltage conversion can be performed at accurate timing.

【0010】[0010]

【実施例】図4に本発明の一実施例を示す。FIG. 4 shows an embodiment of the present invention.

【0011】エンジン制御装置100は、マイクロコン
ピュータ101,動作状態を出力するシリアルインタフ
ェースSCI102を有している。通信路の信号を所定
のしきい値でハイ,ローレベルを決定するコンパレータ
を通して受信信号RXに接続されている。TX信号はイ
ンバータを通してトランジスタに接続され、オープンコ
レクタで通信路に接続される。
The engine control device 100 has a microcomputer 101 and a serial interface SCI 102 for outputting the operating state. The signal on the communication path is connected to the reception signal RX through a comparator that determines high and low levels at a predetermined threshold value. The TX signal is connected to the transistor through the inverter and is connected to the communication path with the open collector.

【0012】マイクロコンピュータ101は自動車用エ
ンジン制御に使われ、I/O103を用いて入力センサ
やスイッチ,出力アクチュエータの自己診断を行ってい
る。また、エンジンのクランク軸の回転に対応したパル
スを計数し、エンジン回転数を計測している。
The microcomputer 101 is used for automobile engine control, and uses the I / O 103 to perform self-diagnosis of input sensors, switches, and output actuators. Also, the number of pulses corresponding to the rotation of the crankshaft of the engine is counted to measure the engine speed.

【0013】これらの診断結果や計数値はマイクロコン
ピュータ内のRAMに格納され、テスタ201からの特
定の命令信号を受信することで外部に計数値や診断結果
などの動作状態を出力する。
The diagnostic result and the count value are stored in the RAM in the microcomputer, and by receiving a specific command signal from the tester 201, the operating state such as the count value and the diagnostic result is output to the outside.

【0014】互いのマイクロコンピュータ回路からの通
信路間には電圧レベル変換回路110を用意し、電圧の変
換を行う。
A voltage level conversion circuit 110 is provided between the communication paths from the microcomputer circuits to convert the voltage.

【0015】電圧変換回路は受信回路111,信号遅延
回路112,受信禁止回路113,受信許可回路11
4,出力回路115,通信路占有時間タイマ116から
なっている。
The voltage conversion circuit includes a reception circuit 111, a signal delay circuit 112, a reception prohibition circuit 113, and a reception permission circuit 11.
4, an output circuit 115, and a communication path occupation time timer 116.

【0016】受信回路は通信路の電圧レベルにあわせた
しきい値でハイ,ローを決定する。信号遅延回路は相手
側のシリアル信号をまわりこんで受信することを防止す
るために、受信禁止回路が禁止状態になる遅延時間を補
償する。
The receiving circuit determines high and low with a threshold value according to the voltage level of the communication path. The signal delay circuit compensates for the delay time in which the reception prohibition circuit is in the prohibition state in order to prevent the serial signal of the other side from being received around.

【0017】受信禁止回路は相手側のシリアル信号が通
信路上にある間、信号の受信と通信路占有時間タイマの
起動を停止する。
The reception prohibition circuit stops signal reception and activation of the communication channel occupation time timer while the other party's serial signal is on the communication channel.

【0018】受信許可回路は自分自身のシリアル信号が
通信路上にある間、信号出力を許可する。
The reception permission circuit permits signal output while its own serial signal is on the communication path.

【0019】出力回路は受信許可回路出力をオープンコ
レクタで相手側の通信路に接続する。
The output circuit connects the output of the reception permission circuit with the open collector to the communication path of the other party.

【0020】通信路占有時間タイマはシリアル信号のス
タートビットからストップビットまでの時間を示す信号
を出力するワンショットであり、その反転出力は相手側
の受信禁止となる。
The communication path occupation time timer is a one-shot that outputs a signal indicating the time from the start bit to the stop bit of the serial signal, and its inverted output prohibits reception on the other side.

【0021】シリアル信号はスタートビット,データ8
ビット,ストップビットから構成され、スタートビット
の立ち下がりから10ビット分の時間で1バイト分のデ
ータを送り出す。ストップビットはデータ送出の最後に
ハイレベルを送る。よって、マイクロコンピュータ回路
は10ビット分の間、通信路を占有することになる。1
0ビット目はハイであるから、9ビット分以上10ビッ
ト未満の間、相手側を受信禁止すればよい。
The serial signal is a start bit and data 8
It consists of bits and stop bits, and sends out 1 byte of data within 10 bits from the fall of the start bit. The stop bit sends high level at the end of data transmission. Therefore, the microcomputer circuit occupies the communication path for 10 bits. 1
Since the 0th bit is high, it is only necessary to prohibit reception on the other side for 9 bits or more and less than 10 bits.

【0022】よって、通信路の占有期間中は相手側の受
信を禁止することにより、送信出力1が受信回路2を通
してまた出力回路2に戻ってくることを防止できる。
Therefore, by prohibiting the receiving side from receiving while the communication path is occupied, it is possible to prevent the transmission output 1 from returning to the output circuit 2 through the receiving circuit 2.

【0023】例えば、ボーレートを7812bps とした
とき、1ビットは125μsであるので、1125μs
(9ビット分)から1250μs(10ビット分)未満
のワンショットとする。
For example, when the baud rate is 7812 bps, 1 bit is 125 μs, so 1125 μs
One shot from (9 bits) to less than 1250 μs (10 bits).

【0024】テスタが自動車用自己診断装置のGST
(Generic Scan Tool )の場合、10410bps であ
り、864μsから960μsのマスク時間を設定す
る。
The tester is GST, a self-diagnosis device for automobiles.
In the case of (Generic Scan Tool), it is 10410 bps, and the mask time of 864 μs to 960 μs is set.

【0025】図5では、受信回路をヒステリシス付きの
インバータ10とし、信号遅延回路はCR積分回路によ
り2μs程度のディレイをかける。
In FIG. 5, the receiving circuit is the inverter 10 with hysteresis, and the signal delay circuit delays about 2 μs by the CR integrating circuit.

【0026】受信禁止回路はAND11とし、ワンショ
ット02の反転出力がローの間、受信が禁止される。
The reception prohibition circuit is AND11, and reception is prohibited while the inverted output of the one-shot 02 is low.

【0027】受信許可回路はAND12とし、ワンショ
ット01の出力がハイの間、受信が可能になる。
The reception enable circuit is AND12, and reception is possible while the output of the one shot 01 is high.

【0028】出力回路はトランジスタとし、AND12
の出力を反転してオープンコレクタは相手側の電圧レベ
ルVccまたはVBに抵抗を介して通信路に接続され
る。
The output circuit is a transistor, and AND12
The output is inverted and the open collector is connected to the voltage level Vcc or VB of the other side through a resistor in the communication path.

【0029】通信占有時間タイマはワンショット01と
し、受信禁止回路出力の最初の立ち上がりから所定幅の
パルスを出力する。反転出力は相手側の受信禁止回路A
ND21に接続され、パルスがローの間、反対側の受信
を禁止する。
The communication occupation time timer is set to one shot 01, and a pulse of a predetermined width is output from the first rising edge of the reception prohibition circuit output. The inverted output is the reception prohibition circuit A on the other side.
Connected to ND21 to inhibit reception on the other side while the pulse is low.

【0030】同様の構成でインバータ20,AND2
1,AND22,ワンショット02,出力回路32より
電圧変換回路を構成する。
Inverter 20, AND2 having the same configuration
1, the AND 22, the one-shot 02, and the output circuit 32 constitute a voltage conversion circuit.

【0031】これらの構成により、図6に示すようにエ
ンジン制御装置からテスタ201へ信号を伝送する時、
ワンショット01がパルスを発生し、AND21を受信
禁止とするので、出力回路トランジスタ32はオフ状態
を保ち、テスタへの通信信号がエンジン制御装置へ戻る
ことはない。
With these configurations, when a signal is transmitted from the engine control device to the tester 201 as shown in FIG.
Since the one-shot 01 generates a pulse and prohibits the reception of the AND 21, the output circuit transistor 32 is kept in the off state, and the communication signal to the tester does not return to the engine control device.

【0032】逆にテスタが先に信号を出した場合も同様
にエンジン制御装置側が受信禁止となる。
On the contrary, when the tester outputs a signal first, the engine control unit also prohibits reception.

【0033】[0033]

【発明の効果】シリアル信号の多重化による送信信号の
受信防止にも本発明を使うことができる。
INDUSTRIAL APPLICABILITY The present invention can be used to prevent reception of a transmission signal by multiplexing a serial signal.

【0034】従来、送信信号はそのまま受信端子に返し
ていたため、外部通信路からの信号か、自分自身の信号
かを判別する手段として複雑なソフトウェア処理を行っ
ていた。すなわち、送信割込みから受信割込みまでの時
間測定や送信データと受信データの比較などの処理を行
っていた。
Conventionally, since the transmitted signal is returned to the receiving terminal as it is, complicated software processing is performed as a means for discriminating between the signal from the external communication path and the own signal. That is, processing such as time measurement from the transmission interrupt to the reception interrupt and comparison between the transmission data and the reception data are performed.

【0035】しかし、図7に示すように、送信信号の立
ち下がりでワンショットパルスを発生させ、ローレベル
の間は受信信号をマスクすれば送信信号を受信すること
がない。よって複雑なソフトウェア処理を行う必要がな
く、処理の簡便化の効果がある。
However, as shown in FIG. 7, if the one-shot pulse is generated at the trailing edge of the transmission signal and the reception signal is masked during the low level, the transmission signal is not received. Therefore, there is no need to perform complicated software processing, and there is an effect of simplifying the processing.

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

【図1】従来の問題点の説明図。FIG. 1 is an explanatory diagram of a conventional problem.

【図2】従来の問題点の説明図。FIG. 2 is an explanatory diagram of conventional problems.

【図3】本発明の原理の説明図。FIG. 3 is an explanatory diagram of the principle of the present invention.

【図4】本発明の一実施例のブロック図。FIG. 4 is a block diagram of an embodiment of the present invention.

【図5】本発明の第二実施例のブロック図。FIG. 5 is a block diagram of a second embodiment of the present invention.

【図6】本発明のタイミングチャート。FIG. 6 is a timing chart of the present invention.

【図7】本発明の第三実施例のブロック図。FIG. 7 is a block diagram of a third embodiment of the present invention.

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

100…エンジン制御装置、101…マイクロコンピュ
ータ、102…SCI、103…I/O、110…電圧
レベル変換回路、111…受信回路、112…信号遅延
回路、113…受信禁止回路、114…受信許可回路、
115…出力回路、116…通信路占有時間タイマ、2
01…テスタ。
100 ... Engine control device, 101 ... Microcomputer, 102 ... SCI, 103 ... I / O, 110 ... Voltage level conversion circuit, 111 ... Reception circuit, 112 ... Signal delay circuit, 113 ... Reception prohibition circuit, 114 ... Reception permission circuit ,
115 ... Output circuit, 116 ... Communication channel occupation time timer, 2
01 ... Tester.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04L 25/02 H03K 19/00 101A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Office reference number FI technical display location H04L 25/02 H03K 19/00 101A

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】内燃機関の動作状態を検知するセンサと、
動作状態に基づいて制御量を制御するアクチュエータ
と、動作状態に応じた自己診断手段を備えたマイクロコ
ンピュータ回路と、シリアル通信回路を用いて動作状態
や自己診断結果を外部に出力する通信回路と、複数の通
信を同時に行う自動車用多重通信路と、前記多重通信路
の信号電圧レベルが異なる通信路を接続するための電圧
変換回路とを備えたことを特徴とする自動車用多重通信
路の電圧レベル変換回路。
1. A sensor for detecting an operating state of an internal combustion engine,
An actuator for controlling the controlled variable based on the operating state, a microcomputer circuit having a self-diagnosis means according to the operating state, a communication circuit for outputting the operating state and the self-diagnosis result to the outside using a serial communication circuit, A voltage level of a multiplex communication path for an automobile, comprising: a multiplex communication path for an automobile that simultaneously performs a plurality of communications; and a voltage conversion circuit for connecting communication paths having different signal voltage levels of the multiplex communication path. Conversion circuit.
JP7214415A 1995-08-23 1995-08-23 Voltage level conversion circuit for multiplex communication path for automobile Pending JPH0965456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7214415A JPH0965456A (en) 1995-08-23 1995-08-23 Voltage level conversion circuit for multiplex communication path for automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7214415A JPH0965456A (en) 1995-08-23 1995-08-23 Voltage level conversion circuit for multiplex communication path for automobile

Publications (1)

Publication Number Publication Date
JPH0965456A true JPH0965456A (en) 1997-03-07

Family

ID=16655418

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7214415A Pending JPH0965456A (en) 1995-08-23 1995-08-23 Voltage level conversion circuit for multiplex communication path for automobile

Country Status (1)

Country Link
JP (1) JPH0965456A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7248061B2 (en) 2004-09-14 2007-07-24 Denso Corporation Transmission device for transmitting a signal through a transmission line between circuits blocks having different power supply systems

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7248061B2 (en) 2004-09-14 2007-07-24 Denso Corporation Transmission device for transmitting a signal through a transmission line between circuits blocks having different power supply systems

Similar Documents

Publication Publication Date Title
US6396282B1 (en) Process for testing the ground contact of parts of a networked system
US4864568A (en) Communication control system
RU2199186C2 (en) Bus system for message transmission
US5436837A (en) System for controlling a motor vehicle
US4718389A (en) Apparatus for the control of repetitive events dependent on operating parameters of internal combustion engines
US5086407A (en) Data processor integrated circuit with selectable multiplexed/non-multiplexed address and data modes of operation
JP4449029B2 (en) Electronic control device for automobile and output driver circuit used therefor
CA1199700A (en) Information transmitting apparatus
US7299098B2 (en) Method and device for programming a control unit
KR900006877B1 (en) Ignition timing control device for internal combustion engine
KR100499168B1 (en) Method of checking the operability of a computing unit
US5892927A (en) Bus delay compensation circuitry
US8165740B2 (en) Method and device for bidirectional single-wire data transmission
EP1712424B1 (en) Vehicle control apparatus
US5452308A (en) Method for monitoring symmetrical two-wire bus lines and two-wire bus interfaces and device for carrying out the method
EP0568804B1 (en) Communication control apparatus
JPH0965456A (en) Voltage level conversion circuit for multiplex communication path for automobile
JPH07500227A (en) “VAN” system with additional access protocols for open circuit conditions
US5948073A (en) Multiplexing bus controller with input conditioning
JP2007142694A (en) Lin communication apparatus and lin communication control method
JP3916024B2 (en) Data destruction prevention method in multiplex communication device
JPH10107629A (en) Signal processing unit and system provided with it
JP2775662B2 (en) Vehicle data transmission system
KR100245708B1 (en) Immobilizer system
JP3255957B2 (en) Automotive electronic control unit