[go: up one dir, main page]

JPH06267282A - Flash ROM writing circuit for automobile control device - Google Patents

Flash ROM writing circuit for automobile control device

Info

Publication number
JPH06267282A
JPH06267282A JP5534593A JP5534593A JPH06267282A JP H06267282 A JPH06267282 A JP H06267282A JP 5534593 A JP5534593 A JP 5534593A JP 5534593 A JP5534593 A JP 5534593A JP H06267282 A JPH06267282 A JP H06267282A
Authority
JP
Japan
Prior art keywords
write
voltage
writing
control device
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5534593A
Other languages
Japanese (ja)
Inventor
Takashi Hasunuma
蓮沼  隆
Kenji Tabuchi
憲司 田渕
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
Hitachi Astemo Ltd
Original Assignee
Hitachi Automotive Engineering Co Ltd
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 Automotive Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Automotive Engineering Co Ltd
Priority to JP5534593A priority Critical patent/JPH06267282A/en
Publication of JPH06267282A publication Critical patent/JPH06267282A/en
Pending legal-status Critical Current

Links

Landscapes

  • Semiconductor Memories (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)
  • Read Only Memory (AREA)

Abstract

(57)【要約】 【構成】被書き込み装置で書き込み電圧のモニタ回路を
設け、書き込み電圧異常による書き込み情報の不確実性
(書き込みが十分でなく、書き込み値が変わってしまう
こと)をなくす。また被書き込み装置が正常に動作して
いるかのモニタ回路を設けることにより、被書き込み装
置が暴走により誤って書き込むのを防止する。 【効果】被書き込み装置で書き込み電圧をモニタし、書
き込み電圧異常による書き込み情報の不確実性(書き込
みが十分でなく、書き込み値が変わってしまうこと)を
なくすことができる。また被書き込み装置が正常に動作
しているかモニタすることにより、被書き込み装置が暴
走により誤って書き込むのを防止できる。
(57) [Summary] [Structure] A write voltage monitor circuit is provided in the write target device to eliminate the uncertainty of write information due to an abnormal write voltage (writing is not sufficient and the write value changes). Further, by providing a monitor circuit for checking whether the writing target device is operating normally, it is possible to prevent the writing target device from erroneously writing due to runaway. [Effect] It is possible to monitor the write voltage by the write target device and eliminate the uncertainty of the write information due to an abnormal write voltage (writing is not sufficient and the write value changes). Further, by monitoring whether the written device is operating normally, it is possible to prevent the written device from writing by mistake due to runaway.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は自動車用制御装置のメモ
リにFROMを用いた書き込み回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a writing circuit using a FROM as a memory of an automobile control device.

【0002】[0002]

【従来の技術】従来の技術としては、EPROM(紫外
線による消去,電気的書き込み可能なリードオンリーメ
モリ)又はマスクROM(書換できないリードオンリー
メモリ)を使用していた。
2. Description of the Related Art EPROMs (read-only memories that can be erased and electrically written by ultraviolet rays) or mask ROMs (read-only memories that cannot be rewritten) have been used as conventional techniques.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術では、電
気的に消去はできなかった。また装置に組み付けた状態
での書き込みは不可能であった。
In the above-mentioned prior art, it was impossible to electrically erase. In addition, it was impossible to write in the state of being assembled in the device.

【0004】またFROMの書換は、自己のプログラム
又はデータを一括消去後、書換を行うため、誤消去,誤
書換をすると暴走する危険性があった。
Further, in the rewriting of the FROM, there is a risk of runaway if erroneous erasing or erroneous rewriting, because the rewriting is performed after erasing the program or data of its own at once.

【0005】[0005]

【課題を解決するための手段】本実施例では、装置に組
み込んだ状態での書き込みを可能とし、誤書き込みによ
る暴走を防止するため、書き込み電圧のモニタにより書
き込みが確実に出来るようにし、又被書き込み装置が正
常に動作しているかをモニタし正常でなければ書き込み
を行わない。
In this embodiment, writing can be performed in a state where it is incorporated in the device, and in order to prevent runaway due to erroneous writing, writing can be surely performed by monitoring the writing voltage, and writing is performed. Monitor whether the writing device is operating normally, and if it is not writing, do not write.

【0006】[0006]

【作用】被書き込み装置で書き込み電圧をモニタするの
は、書き込み電圧異常による書き込み情報の不確実性
(書き込みが十分でなく、書き込み値が変わってしまう
こと)をなくすためである。また被書き込み装置が正常
に動作しているかモニタするのは、被書き込み装置が暴
走により誤って書き込むのを防止するためである。
The reason why the write voltage is monitored by the write target device is to eliminate the uncertainty of the write information (the write value is changed and the write value is changed) due to the write voltage abnormality. Further, the reason why the written device is operating normally is to prevent the written device from writing by mistake due to runaway.

【0007】[0007]

【実施例】以下本発明の一実施例を示す。図1は、請求
項1と2の実施例である。
EXAMPLE An example of the present invention will be described below. FIG. 1 shows an embodiment of claims 1 and 2.

【0008】1は制御装置のマイクロコンピュータ(以
下CPU)である。2はFROMである。1と2は7の
アドレスバス、8のデータバスで接続されている。3は
書き込み許可回路Aである。CPUから制御信号13,
14が入力される。制御信号13は、通常時HIGH,
書き込み時LOW、制御信号14は、通常時LOW,書
き込み時HIGHに設定する。3からは、電圧切り替え
信号11と書換許可信号18が出力される。信号11
は、4の電圧切り換え回路へ入力され、5の書換電源と
9のVCC(ロジック用電源)を切り換える。出力電圧
は、FROMのVPP端子に入力される。信号18は、
2のFROMへの書き込み許可信号となる。12と10
は書込電源のモニタ入力でありA/D変換器により電圧
をモニタする。外部にコンパレータを設け、比較電圧と
比較しロジックレベルに変換後CPUに取り込んでもよ
い。又2つの信号の内12だけでもかまわない。6は、
書き込み用の装置を示す、CPUとの間はSCI(シリ
アルコミュニケーション・インターフェース)で接続す
る例であるが、他の情報伝達手段でもなんら問題はな
い。
Reference numeral 1 is a microcomputer (hereinafter referred to as CPU) of the control device. 2 is a FROM. 1 and 2 are connected by 7 address buses and 8 data buses. Reference numeral 3 is a write enable circuit A. Control signal from CPU 13,
14 is input. The control signal 13 is normally HIGH,
The write operation is set to LOW, and the control signal 14 is set to normal operation LOW and write operation HIGH. From 3, the voltage switching signal 11 and the rewrite permission signal 18 are output. Signal 11
Is input to the voltage switching circuit 4 to switch between the rewriting power source 5 and the VCC (logic power source). The output voltage is input to the VPP terminal of the FROM. Signal 18 is
It becomes a write enable signal to the 2nd FROM. 12 and 10
Is a monitor input of the writing power source, and the voltage is monitored by the A / D converter. An external comparator may be provided and compared with the comparison voltage to be converted into a logic level and then taken into the CPU. Also, only 12 of the two signals may be used. 6 is
This is an example of connecting to the CPU, which indicates a writing device, by SCI (serial communication interface), but there is no problem with other information transmitting means.

【0009】図2は、書き込み許可回路Aの詳細回路例
である。13,14がリセット時にハイ・インピーダン
ス状態になった場合、書き込み許可回路が誤出力しない
ように、RA,RBによりプルアップ,プルダウンして
いる。また書き込みモードにならない様に設定してい
る。
FIG. 2 is a detailed circuit example of the write enable circuit A. When 13 and 14 are in a high impedance state at reset, RA and RB are pulled up and pulled down so that the write enable circuit does not erroneously output. In addition, it is set so as not to enter the write mode.

【0010】図3は、請求項1と3の実施例である。1
6の書き込み許可回路Bの入力信号15は、交番信号で
ある。16には、RESET2の信号により図4に示す16の
詳細回路のリセット信号となる。RESET1は、CPUから
のLOWアクティブ信号である。RESET0は、制御装置の
システムリセット信号であり、LOWアクティブ信号で
ある。図4の詳細回路におけるカウンタ1,フリップフ
ロップF/F1は、15の交番電圧信号の周波数が高い
場合の異常検出回路。カウンタ2,フリップフロップF
/F2は、15の交番電圧信号の周波数が低い場合の異
常検出回路を示す。エッジ検出回路は、15の交番電圧
信号からエッジ部分をとりだす回路であり、カウンタ1
のクロック入力,カウンタ2のリセット信号となる。ク
ロックジェネレータは、カウンタ1のリセット信号,カ
ウンタ2のクロック信号となる。動作については、図7
により後述する。
FIG. 3 shows an embodiment of claims 1 and 3. 1
The input signal 15 of the write enable circuit B of No. 6 is an alternating signal. In FIG. 16, the RESET2 signal becomes the reset signal of the detailed circuit of 16 shown in FIG. RESET1 is a LOW active signal from the CPU. RESET0 is a system reset signal of the control device and is a LOW active signal. The counter 1 and the flip-flop F / F1 in the detailed circuit of FIG. 4 are abnormality detection circuits when the frequency of the alternating voltage signal of 15 is high. Counter 2, flip-flop F
/ F2 indicates an abnormality detection circuit when the frequency of the alternating voltage signal 15 is low. The edge detection circuit is a circuit for extracting an edge portion from the alternating voltage signal of 15, and the counter 1
Clock input and a reset signal for the counter 2. The clock generator serves as a reset signal for the counter 1 and a clock signal for the counter 2. For the operation, see FIG.
Will be described later.

【0011】図5は、請求項2のFROMが、CPUに
内蔵されている場合を示す。17は、FROM内蔵のC
PUである。書き込み許可回路Aは、図4で示した書き
込み許可回路Bでも、なんら問題はない。
FIG. 5 shows a case where the FROM of claim 2 is built in a CPU. 17 is a C with a built-in FROM
It is PU. The write permission circuit A is the same as the write permission circuit B shown in FIG. 4, but there is no problem.

【0012】図6は、書き込み許可回路Aの動作のチャ
ート図を示す。制御電源オン後、書換を行う場合、13
の信号をLOW,14の信号をHIGHに設定する。C
PUが異常の場合、この信号がハイ・インピーダンス又
は、ロジックが合わないため書き込み許可にならない。
FIG. 6 shows a chart of the operation of the write enable circuit A. When rewriting after turning on the control power, 13
Is set to LOW, and the signal of 14 is set to HIGH. C
When PU is abnormal, this signal is high impedance or the write is not permitted because the logic does not match.

【0013】図7は、図4の書き込み許可回路Bの動作
波形を示す。Aのエッジ検出パルスの周波数よりもCK
1のパルスの周波数を低く設定しておく。
FIG. 7 shows operation waveforms of the write enable circuit B of FIG. CK is higher than the frequency of the A edge detection pulse
The frequency of pulse 1 is set low.

【0014】正常時は、エッジ検出パルスAをカウンタ
1がカウントアップしていく。異常H判定値NHより低
いカウント値でCK1が入力されカウンタ1はリセット
される。このためカウンタ1の出力Q1は、LOWのま
まである。
Under normal conditions, the counter 1 counts up the edge detection pulse A. CK1 is input with a count value lower than the abnormal H determination value NH, and the counter 1 is reset. Therefore, the output Q1 of the counter 1 remains LOW.

【0015】H異常時、エッジ検出パルスAの周波数が
高くなると、カウンタ1のカウント値は、異常H判定値
NHを越える。このためカウンタ1の出力Q1は、HI
GHとなる。F/F1はカウンタ1の出力Q1によりF
/F1をLOWからHIGHに変化させる。この信号に
より書換許可信号11は、LOWとなり不許可となる。
When the frequency of the edge detection pulse A increases during the H abnormality, the count value of the counter 1 exceeds the abnormality H determination value NH. Therefore, the output Q1 of the counter 1 is HI
It becomes GH. F / F1 is F by the output Q1 of counter 1.
/ F1 is changed from LOW to HIGH. With this signal, the rewrite permission signal 11 becomes LOW, which is not permitted.

【0016】L異常時、エッジ検出パルスAの周波数が
低くなると、カウンタ2のカウント値は、異常L判定値
NLを越える。このためカウンタ2の出力Q2は、HI
GHとなる。F/F2はカウンタ2の出力Q2によりF
/F2をLOWからHIGHに変化させる。この信号に
より書換許可信号11は、LOWとなり不許可となる。
図3の実施例では、H異常,L異常をNORゲートによ
り出力している。これにより、15の交番電圧の繰り返
し周波数の正常,異常を検出し書換の許可信号としてい
る。
When the frequency of the edge detection pulse A becomes low during the L abnormality, the count value of the counter 2 exceeds the abnormal L determination value NL. Therefore, the output Q2 of the counter 2 is HI
It becomes GH. F / F2 is F by the output Q2 of the counter 2.
/ F2 is changed from LOW to HIGH. With this signal, the rewrite permission signal 11 becomes LOW, which is not permitted.
In the embodiment of FIG. 3, an H abnormality and an L abnormality are output by the NOR gate. As a result, normality / abnormality of the repetition frequency of 15 alternating voltages is detected and used as a rewriting permission signal.

【0017】[0017]

【発明の効果】本発明によれば、被書き込み装置で書き
込み電圧をモニタすることによって、書き込み電圧異常
による書き込み情報の不確実性(書き込みが十分でな
く、書き込み値が変わってしまうこと)をなくすことが
できる。また被書き込み装置が正常に動作しているかモ
ニタすることにより、被書き込み装置が暴走により誤っ
て書き込むのを防止できるものである。
According to the present invention, by monitoring the write voltage by the device to be written, the uncertainty of the write information due to the abnormal write voltage (writing is not sufficient and the write value changes) is eliminated. be able to. Further, by monitoring whether the written device is operating normally, it is possible to prevent the written device from erroneously writing due to runaway.

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

【図1】本発明の実施例、請求項1と2のブロック図で
ある。
1 is a block diagram of an embodiment of the present invention, claims 1 and 2. FIG.

【図2】書き込み許可回路Aの詳細図である。FIG. 2 is a detailed diagram of a write enable circuit A.

【図3】本発明の実施例、請求項1と3のブロック図で
ある。
FIG. 3 is a block diagram of an embodiment of the present invention, claims 1 and 3.

【図4】書き込み許可回路Bの詳細図である。FIG. 4 is a detailed diagram of a write enable circuit B.

【図5】FROM内蔵CPUの場合の実施例、請求項1
と2のブロック図である。
FIG. 5 is an embodiment in the case of a CPU with a built-in FROM;
2 is a block diagram of FIG.

【図6】書き込み許可回路Aのタイミイングチャートで
ある。
FIG. 6 is a timing chart of a write enable circuit A.

【図7】書き込み許可回路Bのタイミイングチャートで
ある。
FIG. 7 is a timing chart of a write enable circuit B.

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

1…CPU、2…FROM、3…書き込み許可回路A、
4…電圧切り換え回路、5…書き込み電源、6…書き込
み装置、7…アドレスバス、8…データバス、9…VC
C(ロジック電源)、10…書換電源電圧モニタ1、1
1…電圧切り換え信号出力、12…書換電源電圧モニタ
2、13…制御信号、14…制御信号、15…交番電圧
信号、16…書き込み許可回路B、17…FROM内蔵
CPU、18…書換許可信号。
1 ... CPU, 2 ... FROM, 3 ... Write permission circuit A,
4 ... Voltage switching circuit, 5 ... Write power supply, 6 ... Writing device, 7 ... Address bus, 8 ... Data bus, 9 ... VC
C (logic power supply), 10 ... Rewriting power supply voltage monitor 1, 1
DESCRIPTION OF SYMBOLS 1 ... Voltage switching signal output, 12 ... Rewriting power supply voltage monitor 2, 13 ... Control signal, 14 ... Control signal, 15 ... Alternate voltage signal, 16 ... Write permission circuit B, 17 ... FROM built-in CPU, 18 ... Rewriting permission signal.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 田渕 憲司 茨城県勝田市大字高場2520番地 株式会社 日立製作所自動車機器事業部内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kenji Tabuchi 2520 Takaba, Takata, Katsuta City, Ibaraki Prefecture Hitachi, Ltd. Automotive Equipment Division

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】自動車用制御装置のプログラム及びデータ
を記憶するリードオンリーメモリ(以下ROM)にフラ
ッシュメモリ(電気的消去,電気的書き込み可能なリー
ドオンリーメモリ以下FROM)を用いた回路におい
て、その装置に加わえる書換電圧をモニタし、モニタし
た電圧が正常であれば、書換を開始する事を特徴とする
自動車用制御装置のフラッシュROM書き込み回路。
1. A circuit using a flash memory (electrically erasable and electrically writable read-only memory hereafter FROM) as a read-only memory (hereinafter ROM) for storing programs and data of an automobile control device. A flash ROM writing circuit for a vehicle control device, which monitors the rewriting voltage applied to and starts rewriting if the monitored voltage is normal.
【請求項2】被書換制御装置の2つの出力信号の内、1
つがHIGH電圧、もう1つがLOW電圧であれば書換を
行うことを特徴とする自動車用制御装置のフラッシュR
OM書き込み回路。
2. One of the two output signals of the rewrite control device
If one is a HIGH voltage and the other is a LOW voltage, rewriting is performed, and the flash R of the vehicle controller is characterized.
OM write circuit.
【請求項3】被書換装置の1つの出力信号が一定周期で
HIGH電圧,LOW電圧を出力(以下交番電圧信号)
している時のみ書換を行うことを特徴とする自動車用制
御装置のフラッシュROM書き込み回路。
3. An output signal of the rewrite device outputs a HIGH voltage and a LOW voltage at a constant cycle (hereinafter referred to as an alternating voltage signal).
A flash ROM writing circuit for an automobile control device, which is rewritten only when the flash ROM is in operation.
JP5534593A 1993-03-16 1993-03-16 Flash ROM writing circuit for automobile control device Pending JPH06267282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5534593A JPH06267282A (en) 1993-03-16 1993-03-16 Flash ROM writing circuit for automobile control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5534593A JPH06267282A (en) 1993-03-16 1993-03-16 Flash ROM writing circuit for automobile control device

Publications (1)

Publication Number Publication Date
JPH06267282A true JPH06267282A (en) 1994-09-22

Family

ID=12995926

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5534593A Pending JPH06267282A (en) 1993-03-16 1993-03-16 Flash ROM writing circuit for automobile control device

Country Status (1)

Country Link
JP (1) JPH06267282A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007067913A (en) * 2005-08-31 2007-03-15 Toyota Motor Corp Signal receiving device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007067913A (en) * 2005-08-31 2007-03-15 Toyota Motor Corp Signal receiving device

Similar Documents

Publication Publication Date Title
US4916662A (en) IC card including high input voltage detection and suppression
JP2577120Y2 (en) Prohibition circuit of excessive pulse application
US5495593A (en) Microcontroller device having remotely programmable EPROM and method for programming
KR101110994B1 (en) Method and apparatus for protecting an integrated circuit from erroneous operation
JP2597153B2 (en) Write protector
US9092322B2 (en) Processor system and control method thereof
JPH08278895A (en) Data processing device
KR100296199B1 (en) Memory card
US8913435B2 (en) Method and device for programming data into non-volatile memories
US6883075B2 (en) Microcontroller having embedded non-volatile memory with read protection
EP0488281B1 (en) Test mode setting arrangement for use in microcomputer
EP0370493A2 (en) Electric circuit device with an improved cartridge connection circuit
JPH06267282A (en) Flash ROM writing circuit for automobile control device
US6813191B2 (en) Microcomputer with nonvolatile memory protected against false erasing or writing
US5355336A (en) Memory device and a method for prohibiting writing to the memory device
US5062078A (en) Nonvolatile semiconductor memory device operable in different write modes
JPH0822422A (en) Memory device
KR100972307B1 (en) Method and apparatus for detecting unused state of semiconductor circuit
JP2002539542A (en) Microcontroller with write enable bit
JPH09213088A (en) Engine control device
JP3924945B2 (en) Electronic control unit
JP2000137644A (en) Memory control circuit
JP3112277B2 (en) Memory card
JP2897687B2 (en) Flash memory data eraser
JP2554117B2 (en) Vehicle data processor