JPH0863204A - Power circuit of nonvolatile memory - Google Patents

Power circuit of nonvolatile memory

Info

Publication number
JPH0863204A
JPH0863204A JP19925394A JP19925394A JPH0863204A JP H0863204 A JPH0863204 A JP H0863204A JP 19925394 A JP19925394 A JP 19925394A JP 19925394 A JP19925394 A JP 19925394A JP H0863204 A JPH0863204 A JP H0863204A
Authority
JP
Japan
Prior art keywords
eeprom
capacitor
data
voltage
cpu
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
JP19925394A
Other languages
Japanese (ja)
Inventor
Kiyoshi Tsurumaki
潔 弦巻
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 Automotive Systems Engineering Co Ltd
Original Assignee
Hitachi Automotive Engineering Co Ltd
Hitachi Ltd
Hitachi Car Engineering Co 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, Hitachi Car Engineering Co Ltd filed Critical Hitachi Automotive Engineering Co Ltd
Priority to JP19925394A priority Critical patent/JPH0863204A/en
Publication of JPH0863204A publication Critical patent/JPH0863204A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control By Computers (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

PURPOSE: To prevent data from being miswritten by providing the power source of an EEPROM with a voltage holding circuit which consists of a capacitor and a diode and has enough capacity to places the EEPROM in operation only the capacitor in a writing time. CONSTITUTION: An SV power circuit 1 supplies the battery voltage, inputted from a battery 6 through a switch 7, as a voltage Vcc to a CPU 2, etc. The EEPROM 5 is a nonvolatile memory in which data can be written from the CPU 2 through a signal line 9 and can stores the data written from the CPU 2 even after the device is powered OFF with the switch 7 OFF. The capacitor 4 has enough capacity to supply the current consumed by the EEPROM 5 only by the capacitor 4 in the writing time of the EEPROM 5. The diode 3 when supplied with the voltage Vcc from a 5V power circuit 1 supplies an operating voltage to the EEPROM to charge the capacitor 4, and prevents electric charges from leaking from the capacitor 4 when the device is powered OFF.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、エンジンの電子制御装
置に係り、特に電気的にデータの消去及び書き込みが可
能な不揮発性メモリを内蔵した装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic control device for an engine, and more particularly to a device having a non-volatile memory capable of electrically erasing and writing data.

【0002】[0002]

【従来の技術】従来、特開昭60−211504号公報にあるよ
うに電気的にデータの消去及び書き込みが可能な不揮発
性メモリ(以下EEPROM)を内蔵し、外部装置と通信によ
りその不揮発性メモリにデータの書き込みを行う装置が
発明されている。
2. Description of the Related Art Conventionally, as disclosed in JP-A-60-212150, a nonvolatile memory (hereinafter referred to as an EEPROM) capable of electrically erasing and writing data is built in, and the nonvolatile memory is communicated with an external device. There has been invented a device for writing data into a memory.

【0003】[0003]

【発明が解決しようとする課題】ある種類のEEPROMはデ
ータの書き込みに10ms程度の書き込み時間が必要で
あり、書き込み時間中に電源が切れるとデータの書き込
みが正確に行えず書き込んだつもりのデータが書き込ま
れていないことが起こる可能性があった。
A certain type of EEPROM requires a write time of about 10 ms to write data, and if the power is turned off during the write time, the data cannot be written correctly and the intended data is written. It could happen that it was not written.

【0004】[0004]

【課題を解決するための手段】それを防ぐためには、EE
PROMの電源ピンに、書き込み時間中に装置の電源が切れ
ても、書き込み時間中はEEPROMの動作電圧を保持できる
ように電圧を保持するコンデンサとダイオードからなる
電圧保持回路を設ければよい。
[Means for solving the problem] To prevent it, EE
A voltage holding circuit composed of a capacitor and a diode for holding the voltage may be provided on the power supply pin of the PROM so that the operating voltage of the EEPROM can be held during the writing time even if the device is powered off during the writing time.

【0005】[0005]

【作用】上記構成により、装置に電源が供給されている
ときはダイオードをとうして流れる電流によりEEPROMを
動作させると共に上記コンデンサを充電する。装置の電
源が切れた後もそのコンデンサにより、EEPROMにその書
き込み時間以上電源供給することにより、データ書き込
み時間中のタイミングで装置の電源が切れても正常にデ
ータを書き込むことができる。
With the above construction, when the power is supplied to the device, the EEPROM is operated by the current flowing through the diode and the capacitor is charged. Even after the power of the device is turned off, the capacitor supplies power to the EEPROM for more than the writing time, so that the data can be written normally even when the power of the device is turned off at the timing during the data writing time.

【0006】[0006]

【実施例】以下、本発明の一実施例を図面を用いて説明
する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0007】図1は本発明の構成を示す回路図である。
1は5V電源回路であり、バッテリー6から、スイッチ
7を介して入力されるバッテリー電圧をCPU2やここ
には図示しないI/O LSI等に5Vの電圧VCCを
供給する。EEPROM5 はCPU2から信号線9を通してデータ
を書き込み可能な不揮発性メモリで、CPU2から書き
込まれたデータをスイッチ7がOFFとなり、装置の電
源が切れた後も記憶しておくことができる。コンデンサ
4はEEPROM5 の書き込み時間10msの間はEEPROM5 の
消費電流をコンデンサ4のみで供給できる容量を持つ。
ダイオード3は5V電源回路1からVCCが供給されて
いるときはEEPROM5 に動作電圧を供給すると共に、コン
デンサ4を充電する電流を供給する。そして、装置の電
源が切れVCCが低下したとき、コンデンサ4の電荷が
VCC8側に漏れるのを防ぐものである。
FIG. 1 is a circuit diagram showing the configuration of the present invention.
Reference numeral 1 denotes a 5V power supply circuit, which supplies a battery voltage input from a battery 6 through a switch 7 to a CPU 2 or an I / O LSI (not shown) or the like with a voltage VCC of 5V. The EEPROM 5 is a non-volatile memory in which data can be written from the CPU 2 through the signal line 9, and the data written from the CPU 2 can be stored even after the switch 7 is turned off and the device is powered off. The capacitor 4 has such a capacity that the consumption current of the EEPROM 5 can be supplied only by the capacitor 4 while the writing time of the EEPROM 5 is 10 ms.
The diode 3 supplies an operating voltage to the EEPROM 5 and a current for charging the capacitor 4 when VCC is supplied from the 5V power supply circuit 1. Then, when the power of the device is turned off and the VCC drops, the charge of the capacitor 4 is prevented from leaking to the VCC8 side.

【0008】図2にEEPROM5 への書き込みのタイミング
チャートを示す。
FIG. 2 shows a timing chart of writing to the EEPROM 5.

【0009】CPU2はCS信号9aをHIとしてEEPR
OM5 をアクティブとする。そして、CLOCK信号9b
に同期して、CPU2から書き込み動作を指定するコマ
ンドとデータを書き込むアドレスそして書き込むデータ
をEEPROMのDi信号9cに送信する。そして、送信終了
後CS信号9aをLOとするとEEPROM5 は書き込み動作
に入り、最大10msの書き込み時間経過後書き込みが
終了する。この書き込み時間10msの間はEEPROM5 に
電源を供給しておく必要がある。
CPU 2 sets CS signal 9a as HI
Activate OM5. Then, the CLOCK signal 9b
In synchronism with the above, the CPU 2 transmits a command designating a write operation, an address for writing data, and the data to be written to the Di signal 9c of the EEPROM. When the CS signal 9a is set to LO after the end of transmission, the EEPROM 5 starts the write operation, and the write is completed after the write time of 10 ms at the maximum has elapsed. It is necessary to supply power to the EEPROM 5 during this writing time of 10 ms.

【0010】図4にコンデンサ4及びダイオード3がな
い従来の回路の、EEPROM5 の書き込み時間中にスイッチ
7がOFFされた場合のタイミングチャートを示す。
FIG. 4 shows a timing chart of the conventional circuit without the capacitor 4 and the diode 3 when the switch 7 is turned off during the writing time of the EEPROM 5.

【0011】スイッチOFFから10ms以内でVCC
8はEEPROMの動作電圧以下に低下し、書き込んだつもり
のデータが記憶されなくなる恐れがある。
VCC within 10 ms after the switch is turned off
The value of 8 drops below the operating voltage of the EEPROM, and the data intended to be written may not be stored.

【0012】次に図4に図1の回路でEEPROMの書き込み
時間中にスイッチ7がOFFされた場合のタイミングチ
ャートを示す。
Next, FIG. 4 shows a timing chart when the switch 7 is turned off during the writing time of the EEPROM in the circuit of FIG.

【0013】スイッチ7OFF後数msでCPU2の電
源ラインVCC8の電圧は低下するがEEPROM5 の電源ラ
イン10の電圧はコンデンサ4に充電されていた電圧に
より書き込み時間10ms以上EEPROM5 の動作電圧以上
に保たれる。従って、データの書き込みは正常に行われ
たことになる。
The voltage of the power supply line VCC8 of the CPU 2 drops a few ms after the switch 7 is turned off, but the voltage of the power supply line 10 of the EEPROM 5 is maintained at the write voltage of 10 ms or more due to the voltage charged in the capacitor 4 or more. . Therefore, the writing of data has been normally performed.

【0014】[0014]

【発明の効果】EEPROM5 の電源ライン10にコンデンサ
4とダイオード3からなる電圧保持回路を設けることに
より、装置の電源OFFががEEPROMの書き込み時間中に
発生してもデータの書き込みは正常に行われ、データの
誤書き込みを防ぐことが出来る。
By providing the voltage holding circuit composed of the capacitor 4 and the diode 3 on the power supply line 10 of the EEPROM 5, data can be normally written even if the power supply of the device is turned off during the writing time of the EEPROM. , It is possible to prevent erroneous writing of data.

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

【図1】本発明実施例装置の電源回路図である。FIG. 1 is a power supply circuit diagram of an apparatus according to an embodiment of the present invention.

【図2】EEPROMの書き込みタイミングチャート図であ
る。
FIG. 2 is a writing timing chart of EEPROM.

【図3】本発明の回路のスイッチOFF時の電源電圧波
形図である。
FIG. 3 is a power supply voltage waveform diagram when the switch of the circuit of the present invention is OFF.

【図4】従来の回路のスイッチOFF時の電源電圧波形
図である。
FIG. 4 is a waveform diagram of a power supply voltage when a switch of a conventional circuit is turned off.

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

1…5V電源回路、2…CPU、3…ダイオード、4…
コンデンサ、5…EEPROM、6…バツテリー、7…スイッ
チ、9…信号線。
1 ... 5V power supply circuit, 2 ... CPU, 3 ... diode, 4 ...
Capacitor, 5 ... EEPROM, 6 ... Battery, 7 ... Switch, 9 ... Signal line.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】電気的にデータの消去及び書き込みが可能
である不揮発性メモリを実装した電子制御装置におい
て、上記不揮発性メモリの電源にその不揮発性メモリの
書き込み時間はそのコンデンサだけでその不揮発性メモ
リを動作させることが可能な容量のコンデンサとダイオ
ードからなる電圧保持回路をもつことを特徴とする不揮
発性メモリの電源回路。
1. An electronic control device having a non-volatile memory capable of electrically erasing and writing data, wherein the power supply of the non-volatile memory requires only the capacitor for the write time of the non-volatile memory. A power supply circuit for a non-volatile memory, having a voltage holding circuit composed of a capacitor having a capacity capable of operating a memory and a diode.
JP19925394A 1994-08-24 1994-08-24 Power circuit of nonvolatile memory Pending JPH0863204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19925394A JPH0863204A (en) 1994-08-24 1994-08-24 Power circuit of nonvolatile memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19925394A JPH0863204A (en) 1994-08-24 1994-08-24 Power circuit of nonvolatile memory

Publications (1)

Publication Number Publication Date
JPH0863204A true JPH0863204A (en) 1996-03-08

Family

ID=16404716

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19925394A Pending JPH0863204A (en) 1994-08-24 1994-08-24 Power circuit of nonvolatile memory

Country Status (1)

Country Link
JP (1) JPH0863204A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559398A (en) * 2019-09-10 2021-03-26 铠侠股份有限公司 Memory system and power supply circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559398A (en) * 2019-09-10 2021-03-26 铠侠股份有限公司 Memory system and power supply circuit
CN112559398B (en) * 2019-09-10 2024-04-05 铠侠股份有限公司 Memory system and power supply circuit

Similar Documents

Publication Publication Date Title
JPH0736141B2 (en) Low power portable information device
JPH0863204A (en) Power circuit of nonvolatile memory
JP4590543B2 (en) Game machine
JPH10134558A (en) Power source feed circuit of semiconductor memory application device
JP2007156864A (en) Data retention unit
EP1293985A1 (en) Data backup device and step-up/step-down power supply
JP2001341595A (en) Power source control device
JPH0511930A (en) Disk cache device
JPH09213088A (en) Engine controller
JPH06203584A (en) Non-volatile semiconductor memory
JP2568530B2 (en) Electronic device having IC unit
JP2007071079A (en) Electronic control unit for vehicle
JPS5930284A (en) Chip selection controlling circuit
JPH0150926B2 (en)
JP2001075875A (en) Electronic equipment
JPH01158314A (en) Electronic measuring instrument
JPH039415A (en) Memory cartridge
JPS62260427A (en) Nonvolatile counter device
JPH0228856A (en) Computer system
JPH01266695A (en) Power source control circuit for memory card
JPS6077640A (en) Charging device
JPH0256619A (en) Memory card
JPH0683497A (en) Power source control circuit of micrcomputer
JP2002042479A (en) Semiconductor memory
JPH0668318A (en) Card with reloadable memory