JP2006127231A - Abnormality detection device for memory control circuit - Google Patents

Abnormality detection device for memory control circuit Download PDF

Info

Publication number
JP2006127231A
JP2006127231A JP2004316091A JP2004316091A JP2006127231A JP 2006127231 A JP2006127231 A JP 2006127231A JP 2004316091 A JP2004316091 A JP 2004316091A JP 2004316091 A JP2004316091 A JP 2004316091A JP 2006127231 A JP2006127231 A JP 2006127231A
Authority
JP
Japan
Prior art keywords
data
eeprom
control circuit
memory
memory control
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
JP2004316091A
Other languages
Japanese (ja)
Other versions
JP2006127231A5 (en
Inventor
Keiichi Enomoto
恵一 榎本
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.)
Jidosha Denki Kogyo KK
Original Assignee
Jidosha Denki Kogyo KK
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 Jidosha Denki Kogyo KK filed Critical Jidosha Denki Kogyo KK
Priority to JP2004316091A priority Critical patent/JP2006127231A/en
Publication of JP2006127231A publication Critical patent/JP2006127231A/en
Publication of JP2006127231A5 publication Critical patent/JP2006127231A5/ja
Pending legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide the abnormality detection device of a memory control circuit for monitoring data in actually performing communication between a memory control circuit and a nonvolatile memory, and for detecting the communication abnormality of the memory control circuit. <P>SOLUTION: An MPU 1 is provided with a transmission port for transmitting data constituted of a write command, address information and write data being the target of writing in writing data in an EEPROM 2, and for transmitting data constituted of an erase command and address information in erasing the data of the EEPROM 2 and a reception port for receiving information to be transmitted from the EEPROM 2. The data to be transmitted from the transmission port, and to be received by the EEPROM 2 are received, and when the data are not matched with the data transmitted from the transmission port, it is decided that a communicating status to the EEPROM 2 is abnormal. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、不揮発性メモリとメモリ制御回路との間の異常を検出するメモリ制御回路の異常検出装置に関する。   The present invention relates to an abnormality detection device for a memory control circuit that detects an abnormality between a nonvolatile memory and a memory control circuit.

従来より、EEPROM等の不揮発性メモリに対するデータ書込時やデータ消去時におけるメモリ制御回路と不揮発性メモリとの間の通信異常を検出するものが知られている。   2. Description of the Related Art Conventionally, a device that detects a communication abnormality between a memory control circuit and a nonvolatile memory at the time of data writing to or erasing data from a nonvolatile memory such as an EEPROM is known.

しかしながら、上述した従来の技術では、実際にメモリ制御回路から不揮発性メモリに送信したデータが異常である場合であっても、この異常を検出することが出来ないという問題があった。   However, the above-described conventional technique has a problem that even if the data actually transmitted from the memory control circuit to the nonvolatile memory is abnormal, this abnormality cannot be detected.

そこで、本発明は、上述した実情に鑑みて提案されたものであり、実際にメモリ制御回路と不揮発性メモリとの間で通信を行うときのデータを監視して、メモリ制御回路の通信異常を検出することができるメモリ制御回路の異常検出装置を提供することを目的とする。   Accordingly, the present invention has been proposed in view of the above-described circumstances, and monitors data when communication is actually performed between the memory control circuit and the nonvolatile memory, thereby detecting a communication abnormality in the memory control circuit. An object of the present invention is to provide an abnormality detection device for a memory control circuit that can be detected.

本発明は、不揮発性メモリに対するデータの書込及び消去を制御する不揮発性メモリのメモリ制御回路の異常を検出する異常検出装置であって、不揮発性メモリに対するデータ書込時には、書込コマンド、アドレス情報及び書込対象となる書込データからなる送信データを送信すると共に、不揮発性メモリのデータ消去時には、消去コマンド及びアドレス情報からなる送信データを送信する送信手段と、不揮発性メモリから送信された情報を受信する受信手段とを備え、異常検出手段により、送信手段から送信して不揮発性メモリに受信される送信データを受信して、この送信データと送信手段から送信した送信データとが一致している場合には、不揮発性メモリに対する通信状態が正常であると判定し、一致していない場合には、不揮発性メモリに対する通信状態が異常であると判定することによって、上述の課題を解決する。   The present invention relates to an abnormality detection device for detecting an abnormality in a memory control circuit of a nonvolatile memory that controls writing and erasing of data to and from the nonvolatile memory. Transmitting data composed of information and write data to be written and transmitting data transmitted from the non-volatile memory and transmitting means for transmitting transmission data composed of the erase command and address information when erasing the data in the non-volatile memory Receiving means for receiving information, and receiving the transmission data transmitted from the transmission means and received in the nonvolatile memory by the abnormality detection means, and the transmission data and the transmission data transmitted from the transmission means match. If it is determined that the communication status for the non-volatile memory is normal, By determining the communication state is abnormal for Mori, to solve the problems described above.

本発明に係るメモリ制御回路の異常検出装置によれば、送信手段から送信して不揮発性メモリに受信されるデータを受信して、このデータと送信手段から送信したデータとが一致していない場合には、不揮発性メモリに対する通信状態が異常であると判定するので、実際にメモリ制御回路と不揮発性メモリとの間で通信を行うときのデータを監視して、メモリ制御回路の異常を検出することができる。   According to the abnormality detection device for a memory control circuit according to the present invention, when data transmitted from the transmission means and received by the nonvolatile memory is received, and the data transmitted from the transmission means does not match Since it is determined that the communication state with respect to the non-volatile memory is abnormal, the data when the communication is actually performed between the memory control circuit and the non-volatile memory is monitored to detect an abnormality of the memory control circuit. be able to.

以下、本発明の実施の形態について図面を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

本発明に係るメモリ制御回路の異常検出装置は、例えば図1及び図2に示すように構成されたMPU1と不揮発性メモリであるEEPROM2とが接続されたメモリシステムに適用される。   The abnormality detection device for a memory control circuit according to the present invention is applied to a memory system in which an MPU 1 configured as shown in FIGS. 1 and 2, for example, and an EEPROM 2 which is a nonvolatile memory are connected.

このメモリシステムは、用途の一例を挙げると、例えばディーゼルエンジンによって走行する車両に搭載され、ディーゼルエンジン車両から排出される排気ガス中のNOxを水と窒素に分解する尿素SCR触媒用尿素水の尿素濃度を検出する検出回路(図示せず)と接続され、尿素濃度の検出値をMPU1によって入力してEEPROM2に記憶制御し、排気ガス浄化システムを実現するものである。したがって、このメモリシステムは、車両の電源が投入されている時には、確実にEEPROM2に記憶した情報の更新を実現すると共に、車両の電源が切断された場合であっても、確実にEEPROM2に各種情報を保持する必要がある。   For example, this memory system is mounted on a vehicle that is driven by a diesel engine, and urea water for urea SCR catalyst that decomposes NOx in exhaust gas discharged from the diesel engine vehicle into water and nitrogen. It is connected to a detection circuit (not shown) for detecting the concentration, and the detected value of the urea concentration is inputted by the MPU 1 and is stored and controlled in the EEPROM 2 to realize an exhaust gas purification system. Therefore, this memory system reliably updates the information stored in the EEPROM 2 when the vehicle is powered on, and ensures that various information is reliably stored in the EEPROM 2 even when the vehicle is powered off. Need to hold.

MPU1は、クロック信号ポート、受信ポート(受信手段)及び送信ポート(送信手段)が設けられている。一方、EEPROM2は、MPU1のクロック信号ポートと接続されたクロック信号ポート、MPU1の送信ポートと接続された受信ポート及びMPU1の受信ポートと接続された送信ポートが設けられている。   The MPU 1 is provided with a clock signal port, a reception port (reception unit), and a transmission port (transmission unit). On the other hand, the EEPROM 2 is provided with a clock signal port connected to the clock signal port of the MPU 1, a reception port connected to the transmission port of the MPU 1, and a transmission port connected to the reception port of the MPU 1.

このようなメモリシステムは、MPU1内にクロック信号を生成するクロック回路、クロック信号状態を監視するクロック監視回路などを備えている。このメモリシステムは、MPU1内のクロック回路で発生させたクロック信号をクロック信号ポートから、EEPROM2のクロック信号ポートに出力し、このクロック信号に従った動作周波数でEEPROM2がデータ書込動作及び消去動作を行う。   Such a memory system includes a clock circuit that generates a clock signal in the MPU 1, a clock monitoring circuit that monitors a clock signal state, and the like. This memory system outputs the clock signal generated by the clock circuit in the MPU 1 from the clock signal port to the clock signal port of the EEPROM 2, and the EEPROM 2 performs the data writing operation and the erasing operation at the operating frequency according to this clock signal. Do.

また、このメモリシステムは、EEPROM2にデータの書込動作をさせる場合には、MPU1の送信ポートからEEPROM2にコマンド、アドレス情報及び書込対象となるデータを送信する。これにより、EEPROM2は、受信ポートによって受信したコマンドに従って、受信したアドレスに書込対象となるデータを保存する。また、このメモリシステムは、EEPROM2にデータの消去動作をさせる場合には、MPU1の送信ポートからEEPROM2にコマンド、アドレス情報を送信する。これにより、EEPROM2は、受信ポートによって受信したコマンドに従って、受信したアドレスに対応する値を「1」に設定して消去動作をする。   In addition, in the case where the data writing operation is performed in the EEPROM 2, the memory system transmits commands, address information, and data to be written from the transmission port of the MPU 1 to the EEPROM 2. Thereby, the EEPROM 2 stores the data to be written at the received address in accordance with the command received by the receiving port. Further, this memory system transmits commands and address information to the EEPROM 2 from the transmission port of the MPU 1 when the EEPROM 2 is caused to erase data. Thereby, the EEPROM 2 performs the erasing operation by setting the value corresponding to the received address to “1” in accordance with the command received by the receiving port.

更に、MPU1は、EEPROM2にデータの書込動作又は消去動作をさせるに際して、EEPROM2に送信したデータを受信ポートによって自己受信する。ここで、MPU1の受信ポートは、EEPROM2からのデータを受信する受信ポートと、MPU1から送信したデータを自己受信する受信ポートとを共用化している。   Further, when the MPU 1 causes the EEPROM 2 to perform a data writing operation or an erasing operation, the data transmitted to the EEPROM 2 is received by the receiving port. Here, the receiving port of the MPU 1 shares the receiving port that receives data from the EEPROM 2 and the receiving port that self-receives data transmitted from the MPU 1.

このようにMPU1から送信したデータを自己受信できるのは、EEPROM2からデータ送信を行わない期間では、EEPROM2の送信ポートが高インピーダンス状態となっているために、MPU1から送信したデータを受信ポートで受信できることによる。   In this way, the data transmitted from the MPU 1 can be received by itself because the transmission port of the EEPROM 2 is in a high impedance state during the period when the data transmission from the EEPROM 2 is not performed. It depends on what you can do.

そして、MPU1は、送信したデータと、自己受信したデータとを比較して、一致している場合にはEEPROM2との間の通常処理が正常であると判定し、一致していない場合には、EEPROM2との間の通常処理が異常であると判定する通信監視回路(異常検出手段)を備えている。   Then, the MPU 1 compares the transmitted data with the self-received data and determines that the normal processing with the EEPROM 2 is normal if they match, and if they do not match, A communication monitoring circuit (abnormality detection means) that determines that normal processing with the EEPROM 2 is abnormal is provided.

このようなメモリシステムは、MPU1の異常検出処理の処理手順を図3に示すように、MPU1によってEEPROM2との間での通信を開始すると、コマンド、アドレスや書込データのデータ送信を行うと共に(ステップS1)、受信ポートによってデータの自己受信を行う(ステップS2)。   In such a memory system, as shown in FIG. 3, the MPU 1 starts the communication with the EEPROM 2 as shown in FIG. Step S1), the data is received by the receiving port (step S2).

そして、MPU1は、ステップS1で送信したデータと、ステップS2で自己受信したデータとを比較して、一致しているか否かを判定し、一致している場合にはEEPROM2との間の通常処理が正常に行われていると判定し、一致していない場合には、EEPROM2との間の通常処理に異常が発生していると判定する。   Then, the MPU 1 compares the data transmitted in step S1 with the data received in step S2, and determines whether or not they match. If they match, normal processing with the EEPROM 2 is performed. Is determined to be normal, and if they do not match, it is determined that an abnormality has occurred in normal processing with the EEPROM 2.

以上説明したように、本発明を適用したメモリシステムによれば、MPU1から送信してEEPROM2に受信されるデータをMPU1によって受信して、このデータと送信したデータとが一致している場合には、EEPROM2に対する通信状態が正常であると判定し、一致していない場合には、EEPROM2に対する通信状態が異常であると判定することができるので、実際にMPU1(メモリ制御回路)とEEPROM2(不揮発性メモリ)との間で通信を行うときのデータを監視して、MPU1の異常を検出することができる。   As described above, according to the memory system to which the present invention is applied, when the data transmitted from the MPU 1 and received by the EEPROM 2 is received by the MPU 1 and this data and the transmitted data match. When the communication state with respect to the EEPROM 2 is determined to be normal, and when they do not match, it can be determined that the communication state with respect to the EEPROM 2 is abnormal, the MPU1 (memory control circuit) and the EEPROM2 (nonvolatile) The data at the time of communication with the memory) can be monitored to detect an abnormality of the MPU 1.

また、このメモリシステムによれば、EEPROM2から送信されたデータを受信する受信ポートと、EEPROM2に受信されるデータを自己受信する受信ポートとを共用化したので、データ比較を行う監視回路を作動させるのみで、通常処理の異常を検出することができる。   Further, according to this memory system, since the reception port for receiving the data transmitted from the EEPROM 2 and the reception port for receiving the data received by the EEPROM 2 are shared, the monitoring circuit for comparing the data is operated. It is possible to detect abnormalities in normal processing only with this.

なお、上述の実施の形態は本発明の一例である。このため、本発明は、上述の実施形態に限定されることはなく、この実施の形態以外であっても、本発明に係る技術的思想を逸脱しない範囲であれば、設計等に応じて種々の変更が可能であることは勿論である。   The above-described embodiment is an example of the present invention. For this reason, the present invention is not limited to the above-described embodiment, and various modifications can be made depending on the design and the like as long as the technical idea according to the present invention is not deviated from this embodiment. Of course, it is possible to change.

本発明を適用したメモリシステムの構成を示すブロック図である。It is a block diagram which shows the structure of the memory system to which this invention is applied. 本発明を適用したメモリシステムの具体的な接続構成を示す回路図である。It is a circuit diagram which shows the concrete connection structure of the memory system to which this invention is applied. 本発明を適用したメモリシステムによる異常検出処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the abnormality detection process by the memory system to which this invention is applied.

符号の説明Explanation of symbols

1 MPU
2 EEPROM
1 MPU
2 EEPROM

Claims (2)

不揮発性メモリに対するデータの書込及び消去を制御する不揮発性メモリのメモリ制御回路の異常を検出する異常検出装置であって、
前記不揮発性メモリに対するデータ書込時には、書込コマンド、アドレス情報及び書込対象となる書込データからなる送信データを送信すると共に、前記不揮発性メモリのデータ消去時には、消去コマンド及びアドレス情報からなる送信データを送信する送信手段と、
前記不揮発性メモリから送信された情報を受信する受信手段と、
前記送信手段から送信して前記不揮発性メモリに受信される送信データを受信して、この送信データと前記送信手段から送信した送信データとが一致している場合には、前記不揮発性メモリに対する通信状態が正常であると判定し、一致していない場合には、前記不揮発性メモリに対する通信状態が異常であると判定する異常検出手段と
を備えることを特徴とするメモリ制御回路の異常検出装置。
An abnormality detection device for detecting an abnormality in a memory control circuit of a nonvolatile memory that controls writing and erasing of data with respect to the nonvolatile memory,
At the time of data writing to the nonvolatile memory, transmission data including a write command, address information and write data to be written is transmitted, and at the time of erasing data from the nonvolatile memory, it includes an erase command and address information. A transmission means for transmitting transmission data;
Receiving means for receiving information transmitted from the nonvolatile memory;
When transmission data transmitted from the transmission means and received by the non-volatile memory is received, and the transmission data matches the transmission data transmitted from the transmission means, communication to the non-volatile memory is performed. An abnormality detection device for a memory control circuit, comprising: an abnormality detection unit that determines that the state is normal and determines that the communication state with respect to the nonvolatile memory is abnormal when the states do not match.
前記受信手段を構成する受信ポートと、前記送信手段から送信して前記不揮発性メモリに受信される送信データを受信する前記異常検出手段の受信ポートとを共用化したことを特徴とする請求項1に記載のメモリ制御回路の異常検出装置。   2. The receiving port constituting the receiving means and the receiving port of the abnormality detecting means for receiving transmission data transmitted from the transmitting means and received by the nonvolatile memory are shared. An abnormality detection device for a memory control circuit according to claim 1.
JP2004316091A 2004-10-29 2004-10-29 Abnormality detection device for memory control circuit Pending JP2006127231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004316091A JP2006127231A (en) 2004-10-29 2004-10-29 Abnormality detection device for memory control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004316091A JP2006127231A (en) 2004-10-29 2004-10-29 Abnormality detection device for memory control circuit

Publications (2)

Publication Number Publication Date
JP2006127231A true JP2006127231A (en) 2006-05-18
JP2006127231A5 JP2006127231A5 (en) 2006-12-21

Family

ID=36721920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004316091A Pending JP2006127231A (en) 2004-10-29 2004-10-29 Abnormality detection device for memory control circuit

Country Status (1)

Country Link
JP (1) JP2006127231A (en)

Similar Documents

Publication Publication Date Title
WO2014091666A1 (en) Onboard electronic control device
US11433718B2 (en) Upgrading method and apparatus for tire pressure monitoring module and tire pressure sensor
JP4367513B2 (en) Electronic control unit
JP2008155736A (en) Electronic control device
US20020062480A1 (en) Program updating system having communication function
JP2009266017A (en) Storage device and method of starting the storage device
JP2006127231A (en) Abnormality detection device for memory control circuit
US20140245046A1 (en) Communication node
JP2001295694A (en) Rewrite system for vehicle control device
JP2006172314A (en) Data writing device for non-volatile memory
JPH08178976A (en) Power breakage detector
JP2010098477A (en) Electronic control device and method for controlling the electronic control device
JP2011123569A (en) Processor
JP2008254518A (en) On-vehicle communication device
US20220060867A1 (en) Wireless sensor device, host device, and method of controlling low-power operation of wireless sensor device
JP5867350B2 (en) Electronic control device for vehicle
JP2006127232A (en) Controller for nonvolatile memory
JPH07119537A (en) Control device
JP2005297652A (en) Communication device of on-vehicle electronic control device
JP4960545B2 (en) MEMORY WRITE DEVICE, MEMORY WRITE METHOD, AND RECORDING MEDIUM CONTAINING MEMORY WRITE PROGRAM
JP2006276947A (en) Power supply control device and power supply control method
JPH11203173A (en) Watch dog timer circuit
JP2008257415A (en) Controller having program write function
JP2007022362A (en) Program rewriting system for electronic control unit
JP3297097B2 (en) Remote control system

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061101

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061207

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20071204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090522

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090527

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20091002