JP2005338963A - Electronic device - Google Patents

Electronic device Download PDF

Info

Publication number
JP2005338963A
JP2005338963A JP2004153842A JP2004153842A JP2005338963A JP 2005338963 A JP2005338963 A JP 2005338963A JP 2004153842 A JP2004153842 A JP 2004153842A JP 2004153842 A JP2004153842 A JP 2004153842A JP 2005338963 A JP2005338963 A JP 2005338963A
Authority
JP
Japan
Prior art keywords
reset
eeprom
cpu
clock signal
master device
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.)
Withdrawn
Application number
JP2004153842A
Other languages
Japanese (ja)
Inventor
Kazuya Hamaguchi
和也 濱口
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2004153842A priority Critical patent/JP2005338963A/en
Publication of JP2005338963A publication Critical patent/JP2005338963A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electronic device that prevents malfunctioning of a slave device connected to an I2C bus, even if a master device has been reset during operation. <P>SOLUTION: The electronic device 1 includes a CPU 2, an EEPROM 3, the I2C bus via which which the CPU 2 and the EEPROM 3 are connected together, and a reset IC 4 that supplies reset signals to the CPU 2. The electronic device has a first diode 5 that sets a clock signal line 7 of the I2C bus at low level when an active rest signal is inputted to the CPU 2. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、2線式シリアルバスで接続されたマスタデバイスとスレーブデバイスとを備えた電子機器に関するものである。   The present invention relates to an electronic apparatus including a master device and a slave device connected by a two-wire serial bus.

従来から、マスタデバイスとスレーブデバイスとが2線式シリアルバス(以下、I2Cバスと称する)で接続された電子機器が用いられている。マスタデバイスとスレーブデバイスとをI2Cバスで接続した一般的な電子機器の構成を図3に示す。   Conventionally, an electronic device in which a master device and a slave device are connected by a two-wire serial bus (hereinafter referred to as an I2C bus) has been used. FIG. 3 shows a configuration of a general electronic device in which a master device and a slave device are connected by an I2C bus.

図3に示す電子機器51では、マスタデバイスとして用いられているCPU52と、スレーブデバイスとして用いられているEEPROM53とが、SCL54およびSDA55にて接続されている。SCL54はクロック信号を送る信号線であり、SDA55は、データやアドレス等を送る信号線である。SCL54は、CPU52の双方向ポートに接続されており、SDA55は、CPU52の双方向ポートに接続されている。   In the electronic device 51 shown in FIG. 3, a CPU 52 used as a master device and an EEPROM 53 used as a slave device are connected by an SCL 54 and an SDA 55. The SCL 54 is a signal line for sending a clock signal, and the SDA 55 is a signal line for sending data, an address and the like. The SCL 54 is connected to the bidirectional port of the CPU 52, and the SDA 55 is connected to the bidirectional port of the CPU 52.

I2Cバスを用いてEEPROM53にデータを書き込む際には、図4に示すように、まず、SCL54がハイの状態で、SDA55がハイからローに変化することによって、EEPROM53がスタートコマンドを認識する。そして、CPU52は、SCL54のクロック信号に同期して、SDA55にてデバイスコードやアドレス、書き込みデータをEEPROM53に転送する。EEPROM53は、エンドコマンドを認識するまで書き込みデータを蓄積しておく。   When data is written to the EEPROM 53 using the I2C bus, as shown in FIG. 4, first, the S53 changes from high to low while the SCL 54 is high, so that the EEPROM 53 recognizes the start command. Then, the CPU 52 transfers the device code, address, and write data to the EEPROM 53 through the SDA 55 in synchronization with the clock signal of the SCL 54. The EEPROM 53 accumulates write data until an end command is recognized.

各データの転送が終了すると、SCL54がハイの状態で、SDA55がローからハイへと変化する。EEPROM55は、この変化をエンドコマンドとして認識し、蓄積した書き込みデータをメモリセルへと記録するようになっている。   When the transfer of each data is completed, the SDA 55 changes from low to high while the SCL 54 is high. The EEPROM 55 recognizes this change as an end command, and records the accumulated write data in the memory cell.

また、CPU52にはリセットIC56が接続されている。リセットIC56は、電源ON時や電源OFF時といった、電源電圧がある一定の電圧よりも低い場合に、CPU52をローの状態にするものである。リセットIC56は、電源ON時には電圧が安定するまでCPU52の動作を停止させるようになっており、電源OFF時には、CPU52が正常に動作する電圧の範囲を超える前にCPU52の動作を停止させるようになっている。これにより、CPU52が誤動作することを防止することとしている。   Further, a reset IC 56 is connected to the CPU 52. The reset IC 56 sets the CPU 52 to a low state when the power supply voltage is lower than a certain voltage, such as when the power is turned on or when the power is turned off. The reset IC 56 stops the operation of the CPU 52 until the voltage is stabilized when the power is turned on. When the power is turned off, the reset IC 56 stops the operation of the CPU 52 before exceeding the voltage range where the CPU 52 operates normally. ing. This prevents the CPU 52 from malfunctioning.

なお、マスタとしてマイクロコントローラを用い、スレーブとしてEEPROMを用いて、これらマイクロコントローラとEEPROMとがI2Cバスによって接続されたマスタ・スレーブ装置を有するシリアルバスデータシステムが、例えば特許文献1に開示されている。
特表平11−502643号公報(平成11年(1999)3月2日公表)
For example, Patent Document 1 discloses a serial bus data system having a master / slave device in which a microcontroller is used as a master and an EEPROM is used as a slave, and the microcontroller and the EEPROM are connected by an I2C bus. .
Japanese National Patent Publication No. 11-502643 (published March 2, 1999)

しかしながら、上記図3に示す構成では、何らかの異常によって電源がOFFされた際に、記録が正常に行われない場合がある。具体的には、CPU52がEEPROM53に対してデータを転送している途中で電源が切れてしまった場合には、電源電圧が徐々に低下するとともに、リセットIC56はCPU52の動作を停止するためにリセット信号を出力する。   However, in the configuration shown in FIG. 3, when the power is turned off due to some abnormality, recording may not be performed normally. Specifically, when the power is cut off while the CPU 52 is transferring data to the EEPROM 53, the power supply voltage gradually decreases and the reset IC 56 is reset to stop the operation of the CPU 52. Output a signal.

電源がOFFされると、エンドコマンドが入力されていないため、書き込み動作そのものがなかったこととなり、通常はそのまま終了することとなる。しかしながら、CPU52はリセット信号を入力することにより各ポートが初期状態に戻る。一般に、各ポートは初期状態では入力状態になるように設定されている。従って、各ポートは、リセットによって入力状態となり、ハイインピーダンスとなる。このため、図5に示すように、SCL54およびSDA55は、リセット後にプルアップ抵抗による電圧(リップル電圧)が発生する。   When the power is turned off, no end command is input, so that there is no write operation itself, and the process is normally terminated as it is. However, the CPU 52 returns each port to the initial state by inputting the reset signal. Generally, each port is set to be in an input state in the initial state. Therefore, each port becomes an input state by reset and becomes high impedance. For this reason, as shown in FIG. 5, SCL 54 and SDA 55 generate a voltage (ripple voltage) due to a pull-up resistor after reset.

この場合、SCL54およびSDA55は、ほぼ同時にハイとなるものの、EEPROM53の特性によっては(特にEEPROM53が高精度の場合には)、この状態をエンドコマンドと認識してしまうことがある。これにより、EEPROM53は、転送途中のデータ、すなわち書き込みが全て終了していない状態のデータをメモリセルへ記録することを開始してしまう。   In this case, although the SCL 54 and the SDA 55 become high almost simultaneously, depending on the characteristics of the EEPROM 53 (especially when the EEPROM 53 is highly accurate), this state may be recognized as an end command. As a result, the EEPROM 53 starts recording data in the middle of transfer, that is, data that has not been completely written to the memory cell.

記録を開始してしまうと、上述のように電源電圧は徐々に低下しているため、記録が途中で終了してしまったり、誤ったデータを記録してしまったりする恐れがある。その結果、EEPROMのデータを破壊してしまうという問題を生じる。   When recording is started, the power supply voltage gradually decreases as described above, so that recording may end in the middle or incorrect data may be recorded. As a result, there arises a problem that the data in the EEPROM is destroyed.

ここで、複写機等の画像形成装置を例に挙げて具体的に説明する。画像形成装置は、コピー枚数や装置の情報など基本的な情報を記憶しておく第1EEPROMと、感光体ドラムの回転数や直前の画像調整値を記憶しておく第2EEPROMとを備えている。また、これら第1EEPROMおよび第2EEPROMは、I2Cバスの同一ライン上に設けられており、マスタデバイスであるCPUによって制御されている。   Here, an image forming apparatus such as a copying machine will be specifically described as an example. The image forming apparatus includes a first EEPROM that stores basic information such as the number of copies and apparatus information, and a second EEPROM that stores the number of rotations of the photosensitive drum and the previous image adjustment value. The first EEPROM and the second EEPROM are provided on the same line of the I2C bus, and are controlled by the CPU as the master device.

上記の画像形成装置では、例えば、第2EEPROMに情報を書き込んでいる途中に電源がOFFされた場合、CPUは優先度の低い第2EEPROMの書き込み動作を中断し、電源が落ちきる前に優先度の高い第1EEPROMへの情報の書き込みを開始する。   In the above-described image forming apparatus, for example, when the power is turned off while information is being written to the second EEPROM, the CPU interrupts the writing operation of the second EEPROM having a lower priority, and the priority is changed before the power is turned off. Start writing information to the high first EEPROM.

この場合、第2EEPROMは、エンドコマンドの待ち状態のまま待機していることになる。第1EEPROMへの情報の記録が終了した後は、通常はエンドコマンドなしで、第2EEPROMへの書き込みそのものをなかったことにして画像形成装置は停止することとなる。しかしながら、第2EEPROMがリセット後のリップル電圧をエンドコマンドとして誤って認識してしまうと、誤動作により書き込み途中の情報を記録してしまう恐れがある。その結果、第2EEPROMのデータを破壊してしまうこととなる。   In this case, the second EEPROM stands by in the end command waiting state. After the recording of information to the first EEPROM is completed, the image forming apparatus is stopped because there is usually no end command and no writing to the second EEPROM. However, if the second EEPROM erroneously recognizes the ripple voltage after reset as an end command, there is a possibility that information in the middle of writing may be recorded due to a malfunction. As a result, the data in the second EEPROM is destroyed.

また、I2Cバスの同一ライン上に複数のEEPROMが設けられている場合で、SCLのみ共用してSDAを独立させた場合に、上記と同様の割り込み処理が入ると、第1EEPROMへの書き込み用のクロック信号が第2EEPROMにも入ってしまう。この場合、第2EEPROMは、第1EEPROMのクロック信号に同期して、動いていない第2EEPROMのデータを書き込んでしまう。第2EEPROMが、その後のリセット動作によりエンドコマンドを認識してしまった場合には、誤動作により誤ったデータを記録してしまう。その結果、第2EEPROMのデータを破壊してしまうこととなる。   In addition, when a plurality of EEPROMs are provided on the same line of the I2C bus and only the SCL is shared and the SDA is made independent, if an interrupt process similar to the above is entered, the writing for writing to the first EEPROM is performed. The clock signal also enters the second EEPROM. In this case, the second EEPROM writes the data of the second EEPROM that is not moving in synchronization with the clock signal of the first EEPROM. If the second EEPROM recognizes the end command by a subsequent reset operation, erroneous data is recorded due to a malfunction. As a result, the data in the second EEPROM is destroyed.

また、上記特許文献1には、エラーの認識および除去のための方法について記載されている。しかしながら、特許文献1では、リセットされた後にスタート条件を認識しないことによるエラーを除去するためのものである。すなわち、リセットの後にSDAの電位を検査してエラーを認識し除去する方法であり、電源電圧降下に伴うリセット等、データ転送中(特にマスタデバイスからスレーブデバイスへのデータ転送中)のリセットによる影響については考慮されていない。   Patent Document 1 describes a method for error recognition and removal. However, Patent Document 1 is for removing an error caused by not recognizing the start condition after being reset. In other words, it is a method of recognizing and removing an error by inspecting the potential of SDA after reset, and the effect of reset during data transfer (particularly during data transfer from the master device to the slave device) such as reset due to power supply voltage drop Is not considered.

本発明は、上記の問題点に鑑みてなされたものであり、その目的は、動作中(特にマスタデバイスからスレーブデバイスへのデータ転送中)にマスタデバイスがリセットされた場合であっても、I2Cバスに接続されたスレーブデバイスの誤動作を防止した電子機器を提供することにある。   The present invention has been made in view of the above-described problems, and the purpose thereof is I2C even when the master device is reset during operation (particularly during data transfer from the master device to the slave device). An object of the present invention is to provide an electronic device that prevents malfunction of a slave device connected to a bus.

本発明に係る電子機器は、上記課題を解決するために、マスタデバイスと、スレーブデバイスと、該マスタデバイスおよびスレーブデバイスを接続する2線式シリアルバスと、マスタデバイスにリセット信号を供給するリセットデバイスとを備えた電子機器において、上記マスタデバイスにアクティブなリセット信号が供給された場合に、2線式シリアルバスのクロック信号線をローレベルにする回路を備えていることを特徴としている。   In order to solve the above problems, an electronic device according to the present invention includes a master device, a slave device, a two-wire serial bus that connects the master device and the slave device, and a reset device that supplies a reset signal to the master device. Is provided with a circuit for setting the clock signal line of the two-wire serial bus to a low level when an active reset signal is supplied to the master device.

上記の構成によれば、マスタデバイスおよびスレーブデバイスが2線式シリアルバス(I2Cバス)で接続されている。I2Cバスは、クロック信号を転送するクロック信号線と、データやアドレスを転送するデータ・アドレス信号線とからなっている。また、マスタデバイスはリセットデバイスと接続されており、リセットデバイスはマスタデバイスにリセット信号を供給するようになっている。   According to the above configuration, the master device and the slave device are connected by the two-wire serial bus (I2C bus). The I2C bus includes a clock signal line for transferring a clock signal and a data address signal line for transferring data and addresses. The master device is connected to a reset device, and the reset device supplies a reset signal to the master device.

また、マスタデバイスにアクティブなリセット信号が供給された場合に、クロック信号線をローレベルにする回路を備えている。このため、例えデータ転送中に電源がOFFとなりマスタデバイスがリセットされたとしても、クロック信号線がハイになることがない。すなわち、マスタデバイスはアクティブなリセット信号を入力すると、クロック信号線をローレベルにするため、スレーブデバイスがエンドコマンドを誤って認識することを回避できる。その結果、スレーブデバイスの不完全な処理や誤動作を防止することができる。   In addition, a circuit for setting the clock signal line to a low level when an active reset signal is supplied to the master device is provided. Therefore, even if the power is turned off and the master device is reset during data transfer, the clock signal line does not go high. That is, when the active reset signal is input to the master device, the clock signal line is set to the low level, so that the slave device can be prevented from erroneously recognizing the end command. As a result, incomplete processing or malfunction of the slave device can be prevented.

本発明に係る電子機器では、上記回路は、クロック信号線とリセットデバイスとを接続するダイオードであることが好ましい。回路は、クロック信号線の電荷を引き込むことによりクロック信号線をローレベルにすることができる。従って、上記の構成によれば、ダイオードを用いることにより、電荷がクロック信号線からリセットデバイスに向かう方向にのみ移動するように制御することができる。これにより、アクティブなリセット信号が出力された場合のみクロック信号線をローレベルにすることが可能となる。また、クロック信号線とリセットデバイスとを接続しているため、リセットデバイスを2個設ける必要がなく1個で構成することができる。さらに、リセットデバイスは汎用で広く使用されているものである。このため、簡易な構成で確実にクロック信号線をローレベルにすることができる。   In the electronic apparatus according to the present invention, the circuit is preferably a diode that connects the clock signal line and the reset device. The circuit can set the clock signal line to a low level by drawing the charge of the clock signal line. Therefore, according to the above configuration, by using the diode, the charge can be controlled to move only in the direction from the clock signal line toward the reset device. As a result, the clock signal line can be set to a low level only when an active reset signal is output. Further, since the clock signal line and the reset device are connected, it is not necessary to provide two reset devices, and a single device can be configured. Further, the reset device is general-purpose and widely used. For this reason, the clock signal line can be reliably set to the low level with a simple configuration.

本発明に係る電子機器では、上記スレーブデバイスがEEPROMであってもよい。スレーブデバイスがEEPROMである場合には、マスタデバイスから転送されたデータをEEPROMに記録することとなる。上記の構成とすることにより、マスタデバイスからEEPROMへのデータ転送中にリセットされた場合であっても、EEPROMが不完全なデータを記録してしまうことを防止することができる。   In the electronic apparatus according to the present invention, the slave device may be an EEPROM. When the slave device is an EEPROM, the data transferred from the master device is recorded in the EEPROM. With the above-described configuration, even when the data is reset during data transfer from the master device to the EEPROM, it is possible to prevent the EEPROM from recording incomplete data.

本発明に係る電子機器では、上記スレーブデバイスを複数備えていてもよい。スレーブデバイスを複数備えていても、マスタデバイスがリセットされた場合に、各スレーブデバイスとマスタデバイスとを接続するI2Cバスのクロック信号線をローレベルにするようになっているため、各スレーブデバイスの不完全な処理や誤動作を防止することができる。   The electronic apparatus according to the present invention may include a plurality of the slave devices. Even if a plurality of slave devices are provided, when the master device is reset, the clock signal line of the I2C bus connecting each slave device and the master device is set to a low level. Incomplete processing and malfunction can be prevented.

また、上記複数のスレーブデバイスのうち少なくとも1つがEEPROMであってもよい。この場合、マスタデバイスからEEPROMへのデータ転送中にリセットされた場合であっても、EEPROMが不完全なデータを記録してしまうことを防止することができる。   Further, at least one of the plurality of slave devices may be an EEPROM. In this case, even if the reset is performed during the data transfer from the master device to the EEPROM, it is possible to prevent the EEPROM from recording incomplete data.

本発明に係る電子機器では、上記マスタデバイスがリセットされた場合に、クロック信号線をローレベルにするようになっていることが好ましい。上記の構成によれば、マスタデバイスがリセットされると同時にクロック信号線をローレベルにするため、スレーブデバイスがエンドコマンドを誤って認識することを回避できる。その結果、スレーブデバイスの不完全な処理や誤動作を防止することができる。   In the electronic apparatus according to the present invention, it is preferable that the clock signal line is set to a low level when the master device is reset. According to the above configuration, since the clock signal line is set to the low level at the same time as the master device is reset, it is possible to prevent the slave device from erroneously recognizing the end command. As a result, incomplete processing or malfunction of the slave device can be prevented.

本発明に係る電子機器では、上記リセットデバイスは、マスタデバイスに対して2つの異なるリセット信号を供給し、マスタデバイスは、一方のリセット信号を入力するとクロック信号線をローレベルにし、他方のリセット信号を入力するとマスタデバイスをリセットするようになっていることが好ましい。   In the electronic apparatus according to the present invention, the reset device supplies two different reset signals to the master device. When the master device inputs one reset signal, the master device sets the clock signal line to a low level and the other reset signal. It is preferable that the master device is reset when the is input.

上記の構成によれば、リセットデバイスが2つの異なるリセット信号を供給するようになっており、マスタデバイスは、入力したリセット信号に応じてクロック信号線をローレベルにする、またはマスタデバイス自身をリセットするようになっている。このため、クロック信号線をローレベルにするタイミングやマスタデバイスをリセットするタイミング等の条件を各々設定することが可能となり、確実にクロック信号線をローレベルにすることができる。その結果、スレーブデバイスの不完全な処理や誤動作を確実に防止することができる。   According to the above configuration, the reset device supplies two different reset signals, and the master device sets the clock signal line to the low level or resets the master device itself according to the input reset signal. It is supposed to be. Therefore, it is possible to set conditions such as a timing for setting the clock signal line to the low level and a timing for resetting the master device, and the clock signal line can be reliably set to the low level. As a result, incomplete processing or malfunction of the slave device can be reliably prevented.

本発明に係る電子機器では、上記クロック信号線をローレベルにする開始電圧が、マスタデバイスをリセットする電圧よりも高いことが好ましい。回路は、ある電圧となった場合に、クロック信号線をローレベルにすることを開始する。すなわち、回路は、ある電圧となった場合に、クロック信号線の電荷を引き込むようになっている。また、リセットデバイスは、電源電圧を検知しており、ある検知電圧となった場合にアクティブなリセット信号を出力するようになっている。   In the electronic device according to the present invention, it is preferable that a start voltage for setting the clock signal line to a low level is higher than a voltage for resetting the master device. When the voltage reaches a certain voltage, the circuit starts to set the clock signal line to a low level. That is, the circuit draws the charge of the clock signal line when a certain voltage is reached. The reset device detects a power supply voltage, and outputs an active reset signal when a certain detection voltage is reached.

従って、上記の構成とすることにより、電源電圧が低下した際に、マスタデバイスがリセットされる前にクロック信号線をローレベルにすることが可能となる。このため、より確実にクロック信号線をローレベルにすることができる。その結果、スレーブデバイスの不完全な処理や誤動作をより確実に防止することができる。   Therefore, with the above configuration, when the power supply voltage is lowered, the clock signal line can be set to a low level before the master device is reset. For this reason, the clock signal line can be set to the low level more reliably. As a result, incomplete processing or malfunction of the slave device can be prevented more reliably.

本発明に係る電子機器は、以上のように、マスタデバイスにアクティブなリセット信号が供給された場合に、2線式シリアルバスのクロック信号線をローレベルにする回路を備えている。これにより、マスタデバイスはアクティブなリセット信号を入力すると、クロック信号線をローレベルにするため、スレーブデバイスがエンドコマンドを誤って認識することを回避できる。その結果、スレーブデバイスの不完全な処理や誤動作を防止することができるという効果を奏する。   As described above, the electronic apparatus according to the present invention includes a circuit for setting the clock signal line of the two-wire serial bus to a low level when an active reset signal is supplied to the master device. As a result, when the master device inputs an active reset signal, the clock signal line is set to the low level, so that the slave device can be prevented from erroneously recognizing the end command. As a result, it is possible to prevent incomplete processing and malfunction of the slave device.

本発明の実施の一形態について図1および図2に基づいて説明すると以下の通りである。図1は、本実施の形態における電子機器の概略構成を示すブロック図である。図1に示すように、電子機器1は、CPU(マスタデバイス)2、EEPROM(スレーブデバイス)3、リセットIC(リセットデバイス)4、第1ダイオード(回路、ダイオード)5、第2ダイオード6を備えている。   An embodiment of the present invention will be described with reference to FIGS. 1 and 2 as follows. FIG. 1 is a block diagram illustrating a schematic configuration of an electronic device according to the present embodiment. As shown in FIG. 1, the electronic device 1 includes a CPU (master device) 2, an EEPROM (slave device) 3, a reset IC (reset device) 4, a first diode (circuit, diode) 5, and a second diode 6. ing.

CPU2は、所定のデータをEEPROM3に記録する際の制御を行うものであり、いわゆるマスタデバイスである。CPU2は、この制御の他に電子機器1の各動作を制御するものであってもよい。本発明では、マスタデバイスとしてCPU2を用いているが、これに限定されるものではなく、例えば、CPU2に制御された入出力(I/O)制御用のICを用いることもできる。   The CPU 2 performs control when recording predetermined data in the EEPROM 3 and is a so-called master device. The CPU 2 may control each operation of the electronic device 1 in addition to this control. In the present invention, the CPU 2 is used as a master device. However, the present invention is not limited to this. For example, an IC for input / output (I / O) control controlled by the CPU 2 can also be used.

EEPROM3は、所定のデータを記録するためのメモリであり、いわゆるスレーブデバイスである。本発明では、スレーブデバイスとしてEEPROM3を用いているが、これに限定されるものではなく、D/A変換回路等の他のICを用いることもできる。   The EEPROM 3 is a memory for recording predetermined data, and is a so-called slave device. In the present invention, the EEPROM 3 is used as a slave device. However, the present invention is not limited to this, and other ICs such as a D / A conversion circuit can also be used.

リセットIC4は、電源電圧を検知し、電源電圧がある規定電圧以下になるとローレベルのリセット信号を出力する汎用のICである。すなわち、リセットIC4は、規定電圧以下になると端子をローにするようになっており、電子機器1の起動時や停止時に、CPU2が確実に動作するように、あるいは不確定な動作をしないようにするためのものである。   The reset IC 4 is a general-purpose IC that detects a power supply voltage and outputs a low-level reset signal when the power supply voltage falls below a predetermined voltage. That is, the reset IC 4 is set to low when the voltage is lower than the specified voltage, so that the CPU 2 operates reliably or does not perform indefinite operations when the electronic device 1 is started or stopped. Is to do.

CPU2およびEEPROM3は、2線式シリアルバス(以下、I2Cバスと称する)によって電気的に接続されている。すなわち、CPU2およびEEPROM3は、2本の信号線7・8によって電気的に接続されている。CPU2は、2つの入出力可能な双方向ポートとを有しており、2本の信号線7・8は、各双方向ポートに接続されている。一方の双方向ポートに接続されている信号線は、クロック信号を転送するためのクロック信号線(SCL)7である。すなわち、CPU2は、SCL7を介してEEPROM3に対してクロック信号を転送するようになっている。   The CPU 2 and the EEPROM 3 are electrically connected by a two-wire serial bus (hereinafter referred to as I2C bus). That is, the CPU 2 and the EEPROM 3 are electrically connected by the two signal lines 7 and 8. The CPU 2 has two input / output bidirectional ports, and the two signal lines 7 and 8 are connected to the bidirectional ports. A signal line connected to one of the bidirectional ports is a clock signal line (SCL) 7 for transferring a clock signal. That is, the CPU 2 transfers a clock signal to the EEPROM 3 via the SCL 7.

SCL7を接続するポートとして双方向ポートを用いる場合には、電源OFF字に双方向ポートがハイインピーダンスになる。このため、SCL7にはプルアップ抵抗9が接続されている。なお、SCL7を接続するポートとしては、双方向ポートに限定されるものではなく、出力専用ポートであってもよい。   When a bidirectional port is used as a port to which the SCL 7 is connected, the bidirectional port becomes high impedance when the power is turned off. For this reason, a pull-up resistor 9 is connected to SCL7. Note that the port to which the SCL 7 is connected is not limited to a bidirectional port, and may be an output-only port.

また、他方の双方向ポートに接続されている信号線は、デバイスコード、アドレスおよび書き込みデータを転送するためのデータ・アドレス信号線(SDA)8である。すなわち、CPU2は、SDA8を介してEEPROM3に対してデバイスコード、アドレスおよび書き込みデータを転送するようになっている。一方、EEPROM3は、デバイスコード、アドレスおよび書き込みデータを各々受信する毎に、ステータスビットである肯定応答信号(ACK)や否定応答信号(NACK)をCPUに対して転送するようになっている。このように、SDAは双方向でのやり取りに利用されるため、プルアップ抵抗10が接続されている。   A signal line connected to the other bidirectional port is a data address signal line (SDA) 8 for transferring a device code, an address, and write data. That is, the CPU 2 transfers the device code, address, and write data to the EEPROM 3 via the SDA 8. On the other hand, each time the EEPROM 3 receives a device code, an address, and write data, the EEPROM 3 transfers an acknowledgment signal (ACK) or a negative acknowledgment signal (NACK) as status bits to the CPU. In this way, since SDA is used for bidirectional exchange, the pull-up resistor 10 is connected.

デバイスコードとは、8ビットのデータであり、例えば、同一ライン上に複数のEEPROMを接続した場合に、どのEEPROMを指定するのかについてのデータや、書き込みまたは読み出しを指定するデータ等が含まれている。また、アドレスとは、8ビットのデータであり、書き込みを開始するアドレスを指定するためのものである。また、書き込みデータとは、EEPROM3に記録する8ビットのデータである。ACKは、上記各データを受信した際に、正常動作が可能な場合に出力される1ビットのステータスデータであり、NACKは何らかのエラーが発生して、正常動作が不可能な場合に出力される1ビットのステータスデータである。   The device code is 8-bit data, and includes, for example, data indicating which EEPROM is specified when a plurality of EEPROMs are connected on the same line, data specifying writing or reading, and the like. Yes. The address is 8-bit data for designating an address at which writing is to be started. The write data is 8-bit data recorded in the EEPROM 3. ACK is 1-bit status data that is output when normal operation is possible when each of the above data is received, and NACK is output when normal operation is impossible due to some error. 1-bit status data.

このように、I2Cバスでは、データの転送単位は8ビットとなっており、CPU2から8ビットのデータを送った後に、EEPROM3から1ビットのステータス(ACL/NACK)が送られるため、合計9クロックサイクルで1伝送単位となっている。   In this way, in the I2C bus, the data transfer unit is 8 bits, and after sending 8-bit data from the CPU 2, the 1-bit status (ACL / NACK) is sent from the EEPROM 3, so a total of 9 clocks One transmission unit per cycle.

また、SCL7は第1ダイオード5を介してリセットIC4に電気的に接続されており、CPU2は第2ダイオード6を介してリセットIC4に電気的に接続されている。リセットIC4は、電源電圧が規定電圧以下であると判断した場合に、リセット端子をローにするようになっている。このため、SCL7やCPU2は、リセットIC4に電気的に接続されていることで、リセット時には電圧がローレベルに下がる。また、SCL7やCPU2とリセットIC4との間にダイオードを設けることで、電荷をリセットIC4に引き込むことが可能となり、容易に電圧をローにすることができる。この具体的な説明については後述する。   The SCL 7 is electrically connected to the reset IC 4 via the first diode 5, and the CPU 2 is electrically connected to the reset IC 4 via the second diode 6. The reset IC 4 makes the reset terminal low when it is determined that the power supply voltage is equal to or lower than the specified voltage. For this reason, the SCL 7 and the CPU 2 are electrically connected to the reset IC 4 so that the voltage drops to a low level at the time of reset. Further, by providing a diode between the SCL 7 or the CPU 2 and the reset IC 4, it becomes possible to draw charges into the reset IC 4, and the voltage can be easily lowered. This specific description will be described later.

上記構成を有する電子機器1が、EEPROM3にデータを書き込む工程、および動作中にリセットが発生した場合であってもEEPROM3の誤動作を防止する工程について、以下に説明する。図2は、EEPROM3にデータを書き込む際のタイミングチャートである。   A process of writing data to the EEPROM 3 by the electronic apparatus 1 having the above configuration and a process of preventing malfunction of the EEPROM 3 even when a reset occurs during operation will be described below. FIG. 2 is a timing chart when data is written to the EEPROM 3.

図2に示すように、SCL7がハイの状態でSDA8がハイからローに変化することによって、EEPROM3がスタートコマンドを認識する。そして、CPU2は、クロック信号のハイのタイミングに同期してデバイスコードを出力する。そして、EEPROM3は、デバイスコードを入力すると、CPU2に対してACKまたはNACKを出力する。   As shown in FIG. 2, the EEPROM 3 recognizes the start command when the SDA 8 changes from high to low while the SCL 7 is high. Then, the CPU 2 outputs a device code in synchronization with the high timing of the clock signal. Then, when the device code is input, the EEPROM 3 outputs ACK or NACK to the CPU 2.

CPU2は、EEPROM3からACKまたはNACKを入力すると、次に、クロック信号のハイのタイミングに同期してアドレスを出力する。EEPROM3は、アドレスを入力すると、CPU2に対してACKまたはNACKを出力する。   When the ACK or NACK is input from the EEPROM 3, the CPU 2 next outputs an address in synchronization with the high timing of the clock signal. When the address is input, the EEPROM 3 outputs ACK or NACK to the CPU 2.

そして、CPU2は、EEPROM3からACKまたはNACKを入力すると、次に、クロック信号のハイのタイミングに同期して書き込みデータを出力する。なお、書き込みデータは、8ビット単位を1バイトとして、最大16バイトを連続して出力することもできる。EEPROM3は、書き込みデータを入力すると、1バイト毎にCPU2に対してACKまたはNACKを出力する。そして、EEPROM3は、入力した書き込みデータを一時的に蓄積する。   When CPU 2 receives ACK or NACK from EEPROM 3, CPU 2 next outputs write data in synchronization with the high timing of the clock signal. Note that the write data can be output continuously up to 16 bytes, with the 8-bit unit as 1 byte. When the write data is input, the EEPROM 3 outputs ACK or NACK to the CPU 2 for each byte. Then, the EEPROM 3 temporarily stores the input write data.

その後、通常の動作では、SCL7がハイの状態で、SDA8がローからハイに変化することによって、EEPROM3はエンドコマンドを認識する。EEPROM3は、エンドコマンドを認識すると、蓄積しておいた書き込みデータを所定のアドレスに記録するようになっている。しかしながら、動作中に何らかの原因によって電子機器1の電源がOFFとなった場合には、これとは異なる動作を行う。   Thereafter, in a normal operation, the EEPROM 3 recognizes the end command by changing the SDA 8 from low to high while the SCL 7 is high. When the EEPROM 3 recognizes the end command, it stores the stored write data at a predetermined address. However, when the power of the electronic device 1 is turned off for some reason during the operation, an operation different from this is performed.

ここで、動作中に何らかの原因によって電子機器1の電源がOFFとなった場合について説明する。   Here, a case where the power of the electronic device 1 is turned off for some reason during the operation will be described.

上述のようにしてデバイスコードおよびアドレスを転送した後の書き込みデータを転送する間に電源がOFFになると、図2に示すように電源電圧は徐々に低下する。そして、電源電圧が低下し、ある電圧以下になった場合にリセットIC4はCPU2に対してアクティブローのリセット信号を出力する。   When the power is turned off while the write data after the device code and address are transferred as described above, the power supply voltage gradually decreases as shown in FIG. The reset IC 4 outputs an active-low reset signal to the CPU 2 when the power supply voltage decreases to a certain voltage or lower.

CPU2がローレベルのリセット信号を入力すると、CPU2の各ポートは初期状態となる。この場合、SCL7およびSDA8は、ハイインピーダンスとなる。これに対して、リセットIC4は、リセット時にはローインピーダンスとなっている。また、本実施の形態では、SCL7は第1ダイオード5を介してリセットIC4に接続されている。このため、リセット時に各ポートがハイインピーダンスとなった場合であっても、SCL7に残存する電源OFF時の電荷は、リセットIC4に引き込まれてしまい、SCL7の電圧はローに下がる。   When the CPU 2 inputs a low level reset signal, each port of the CPU 2 is in an initial state. In this case, SCL7 and SDA8 are high impedance. On the other hand, the reset IC 4 has a low impedance at the time of reset. In the present embodiment, the SCL 7 is connected to the reset IC 4 via the first diode 5. For this reason, even when each port becomes high impedance at the time of resetting, the electric charge at the time of power OFF remaining in SCL7 is drawn into reset IC4, and the voltage of SCL7 falls to low.

すなわち、SCL7の電圧をリセットIC4に引き込むことによってSCL7を強制的にローにしている。このため、図2に示すように、プルアップ抵抗による電圧(リップル電圧)が発生せず、SCL7はローのままとなる。その結果、EEPROM3は、エンドコマンドを誤認識することはなく、何も書き込まれないまま終了することとなる。従って、EEPROM3が不完全なデータを記録したり、誤ったデータを記録したりすることを回避できる。   That is, SCL7 is forced low by drawing the voltage of SCL7 into reset IC4. Therefore, as shown in FIG. 2, no voltage (ripple voltage) is generated by the pull-up resistor, and SCL7 remains low. As a result, the EEPROM 3 does not misrecognize the end command and ends without writing anything. Therefore, it can be avoided that the EEPROM 3 records incomplete data or records incorrect data.

また、SCL7は、第1ダイオード5を介してリセットIC4に接続されているため、電荷はSCL7からリセットIC4に向かって移動するのみである。従って、リセットIC4からSCL7に電荷が移動することはなく、SCL7はリセット時以外にリセットIC4によってローになったり、ハイになったりすることはない。また、電源ON時には、リセットIC4はハイレベルのリセット信号を出力している。このため、SCL7やCPU2の電荷を引き込み、ローにしてしまうことはない。   Further, since the SCL 7 is connected to the reset IC 4 via the first diode 5, the charge only moves from the SCL 7 toward the reset IC 4. Therefore, no charge is transferred from the reset IC 4 to the SCL 7, and the SCL 7 does not go low or go high by the reset IC 4 except at the time of reset. When the power is turned on, the reset IC 4 outputs a high level reset signal. For this reason, the charges of the SCL 7 and the CPU 2 are not drawn and made low.

なお、SCL7が出力専用ポートに接続されている場合であっても同様にしてEEPROM3がエンドコマンドを誤認識してしまうことを回避することができる。具体的には、一般に出力専用ポートは、電源OFF時にローまたはハイとなるように設定されている。出力専用ポートが電源OFF時にハイになるように設定されている場合には、電源OFFによって出力専用ポートがハイになると共に、双方向ポートはプルアップ抵抗10による電圧が発生する。このため、EEPROM3がエンドコマンドを誤認識する場合がある。   Even when the SCL 7 is connected to the output-only port, it is possible to prevent the EEPROM 3 from erroneously recognizing the end command in the same manner. Specifically, the output-only port is generally set to be low or high when the power is turned off. When the output dedicated port is set to be high when the power is turned off, the output dedicated port becomes high when the power is turned off, and a voltage is generated by the pull-up resistor 10 in the bidirectional port. For this reason, the EEPROM 3 may erroneously recognize the end command.

しかしながら、本実施の形態では、SCL7が第1ダイオード5を介してリセットIC4に接続されているため、電源OFF時であってもSCL7の電圧をローにすることができる。従って、EEPROM3がエンドコマンドを誤認識することはなく、不完全なデータを記録したり、誤ったデータを記録したりすることを回避できるようになっている。   However, in the present embodiment, since the SCL 7 is connected to the reset IC 4 via the first diode 5, the voltage of the SCL 7 can be made low even when the power is turned off. Therefore, the EEPROM 3 does not misrecognize an end command, and it is possible to avoid recording incomplete data or recording incorrect data.

なお、リセットIC4が出力するリセット信号は、1種類であってもよく2種類であってもよい。リセット信号が1種類の場合には、CPU2をリセットするためのリセット信号とSCL7をローにするためのリセット信号とは同じになる。この場合、CPU2がリセット信号を入力すると、CPU2がリセットされると同時にSCL7がローになる。   The reset signal output from the reset IC 4 may be one type or two types. When there is only one type of reset signal, the reset signal for resetting the CPU 2 and the reset signal for setting SCL7 to low are the same. In this case, when the CPU 2 inputs a reset signal, the SCL 7 goes low at the same time as the CPU 2 is reset.

これに対し、リセット信号が2種類の場合には、CPU2をリセットするためのリセット信号(以下、第1リセット信号と称する)と、SCL7をローにするためのリセット信号(以下、第2リセット信号と称する)とを異ならせることができる。この場合、CPU2は、第1リセット信号を入力するとSCL7をローにし、第2リセット信号を入力するとCPU2をリセットする。このため、CPU2をリセットするタイミングとSCL7をローにするタイミングとを異ならせることが可能となり、所望のタイミングでSCL7をローにすることができる。   On the other hand, when there are two types of reset signals, a reset signal for resetting the CPU 2 (hereinafter referred to as a first reset signal) and a reset signal for setting SCL7 to a low level (hereinafter referred to as a second reset signal). Can be different from each other. In this case, the CPU 2 sets the SCL 7 to low when the first reset signal is input, and resets the CPU 2 when the second reset signal is input. For this reason, it becomes possible to make the timing which resets CPU2 and the timing which makes SCL7 low, and can make SCL7 low at a desired timing.

特に、SCL7をローにする電圧が、CPU2をリセットする電圧よりも高いことが好ましい。すなわち、電源電圧が低下した際に、CPU2がリセットされる前にSCL7をローにすることが好ましい。この場合、CPU2がリセットされた時点で、SCL7を確実にローにすることができる。   In particular, it is preferable that the voltage for setting SCL7 to be low is higher than the voltage for resetting CPU2. That is, it is preferable to set SCL7 to low before the CPU 2 is reset when the power supply voltage decreases. In this case, when the CPU 2 is reset, the SCL 7 can be surely made low.

これは、例えば、リセットIC4が第1リセット信号を出力する電圧を、第2リセット信号を出力する電圧よりも高くすることにより実現できる。すなわち、電源電圧が低下する際に、リセットIC4は、ある電圧で第1リセット信号を出力し、その後さらに電源電圧が低下した後に第2リセット信号を出力することで実現できる。   This can be realized, for example, by making the voltage at which the reset IC 4 outputs the first reset signal higher than the voltage at which the second reset signal is output. That is, when the power supply voltage decreases, the reset IC 4 outputs the first reset signal at a certain voltage, and then outputs the second reset signal after the power supply voltage further decreases.

また、本発明は、SLC7が第1ダイオード5を介してリセットICに接続されていればよいが、CPU2も第2ダイオード6を介してリセットIC4に接続されていることが好ましい。この場合、リセット時には、CPU2から電荷を引き込むことができると共に、SCL7からリセットIC4に引きこまれるはずの電荷がCPU2に入ってしまうことを防止することができる。   In the present invention, the SLC 7 may be connected to the reset IC via the first diode 5, but the CPU 2 is also preferably connected to the reset IC 4 via the second diode 6. In this case, at the time of resetting, the charge can be drawn from the CPU 2 and the charge that should be drawn from the SCL 7 to the reset IC 4 can be prevented from entering the CPU 2.

上記第1ダイオード5および第2ダイオード6は、同一のダイオードであってもよく、異なるダイオードであってもよい。例えば、第1ダイオード5と第2ダイオード6とを異ならせることにより、リセットIC4が電荷引き込みを開始する電圧をSCL7とCPU2とで異ならせることが可能となる。CPU2から引き込みを開始する電圧とSCL7から引き込みを開始する電圧と異ならせることによって、電荷引き込みのタイミングをずらすことが可能となり、より確実にSCL7をローにすることができる。   The first diode 5 and the second diode 6 may be the same diode or different diodes. For example, by making the first diode 5 and the second diode 6 different, the voltage at which the reset IC 4 starts to draw charges can be made different between the SCL 7 and the CPU 2. By making the voltage different from the voltage at which drawing starts from the CPU 2 and the voltage at which drawing starts from SCL7, the charge drawing timing can be shifted, and SCL7 can be made low more reliably.

なお、本実施の形態では、SCL7をローレベルにするための回路として、SCL7とリセットIC4とを接続する第1ダイオード5を例に挙げて説明したが、本発明はこれに限定されるものではなく、CPU2のリセット時にSCL7をローレベルにすることができる回路であれば同様にして用いることができる。例えば、接地されたスイッチ式の回路を用いることができる。この場合、スイッチ式回路をSCL7に接続し、リセット信号を検知した場合に、スイッチをONすることによってSCL7をローレベルに下げることが可能となる。   In the present embodiment, the first diode 5 that connects the SCL 7 and the reset IC 4 is described as an example of a circuit for setting the SCL 7 to a low level. However, the present invention is not limited to this. Alternatively, any circuit that can bring SCL 7 to low level when the CPU 2 is reset can be used in the same manner. For example, a grounded switch type circuit can be used. In this case, when a switch type circuit is connected to the SCL 7 and a reset signal is detected, the SCL 7 can be lowered to a low level by turning on the switch.

また、本実施の形態では、動作中における電源OFFのタイミングとして、ACKまたはNACKが転送された後の場合について説明しているが、本発明はこれに限定されるものではない。例えば、書き込みデータの転送中、ACKまたはNACKの転送前または転送中等に電源がOFFされた場合であっても同様に適用できる。すなわち、本発明は、書き込みデータの転送を開始してから、エンドコマンドとなるまでの間のどのタイミングで電源がOFFされた場合であっても適用できるものである。   In this embodiment, the case where ACK or NACK is transferred is described as the power-off timing during operation. However, the present invention is not limited to this. For example, the present invention can be similarly applied even when the power is turned off during transfer of write data, before or during transfer of ACK or NACK. That is, the present invention can be applied to any timing when the power is turned off between the start of transfer of write data and the end command.

また、本発明は、マスタデバイスと、1つ以上のスレーブデバイスと、マスタデバイスとスレーブデバイスとを接続する2線式シリアルバス(I2Cバス)と、アクティブローのリセット信号を少なくともマスタデバイスに供給するリセットデバイスとを含み、2線式シリアルバスのクロック信号用のマスタデバイスのポートがリセット時にローレベルに固定されない電子機器において、リセット信号がローレベルの場合に2線式シリアルバスのクロック信号線を強制的にローレベルに固定する回路を備える電子機器と表現することもできる。   The present invention also provides at least a master device, one or more slave devices, a two-wire serial bus (I2C bus) connecting the master device and the slave device, and an active-low reset signal to at least the master device. In an electronic device in which the port of the master device for the clock signal of the two-wire serial bus including the reset device is not fixed at the low level at the reset, the clock signal line of the two-wire serial bus is set when the reset signal is at the low level. It can also be expressed as an electronic device having a circuit forcibly fixed to a low level.

この場合、2線式シリアルバスのクロック信号線を強制的にローレベルに固定する回路は、2線式シリアルバスのクロック信号線とリセット信号線とを接続するダイオードであることが好ましい。これにより、簡単な構成でリセット中にSCLをローレベルにできる。また、上記の場合であっても、スレーブデバイスの少なくとも1つがEEPROMであることが好ましい。これにより、マスタからスレーブへデータ転送中にリセットがかかっても、スレーブ側で不完全なデータが書き込まれることを防止できる。   In this case, the circuit for forcibly fixing the clock signal line of the two-wire serial bus to a low level is preferably a diode that connects the clock signal line and the reset signal line of the two-wire serial bus. As a result, the SCL can be set to a low level during reset with a simple configuration. Even in the above case, it is preferable that at least one of the slave devices is an EEPROM. This prevents incomplete data from being written on the slave side even if a reset is applied during data transfer from the master to the slave.

また、本発明は、2線式のシリアル通信(I2Cバス)において、マスタのリセットと共にクロック線(SCL)の電圧を引き込むデータ転送方法とも表現できる。また、クロック線を双方向端子で構成している場合に、マスタのリセットと共にSCLの電圧を引き込むデータ転送方法や、クロック線を双方向端子で構成している場合に、マスタのリセットと共に、クロック線、アドレス・データ線の電圧を引き込むデータ転送方法とも表現できる。   The present invention can also be expressed as a data transfer method in which the voltage of the clock line (SCL) is drawn together with the master reset in the two-wire serial communication (I2C bus). In addition, when the clock line is configured with a bidirectional terminal, a data transfer method that pulls in the SCL voltage together with the master reset, or when the clock line is configured with a bidirectional terminal, the clock is reset with the master reset. It can also be expressed as a data transfer method for drawing in the voltage of the line and address / data line.

この場合、引き込み手段としては、リセットICを使うことが好ましく、クロック線をダイオードを介してマスタ用のリセットICに接続することが好ましい。また、SCLの引き込み開始時の電圧を、マスタのリセットICより検知電圧を上げていることが好ましい。   In this case, it is preferable to use a reset IC as the pull-in means, and it is preferable to connect the clock line to the master reset IC via a diode. Further, it is preferable that the detection voltage of the voltage at the start of SCL pulling is higher than that of the master reset IC.

本発明は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope shown in the claims. That is, embodiments obtained by combining technical means appropriately changed within the scope of the claims are also included in the technical scope of the present invention.

以上のように、本発明の電子機器は、動作中にマスタデバイスがリセットされた場合であっても、I2Cバスのクロック信号線をローレベルにすることが可能となり、スレーブデバイスの誤動作を防止することができるものである。このため、I2Cバスを用いた各種のマスタ/スレーブ装置や、それを備えた各種電子機器等を製造・使用する産業分野に好適に用いることができる。   As described above, the electronic device of the present invention can set the clock signal line of the I2C bus to a low level even when the master device is reset during operation, thereby preventing malfunction of the slave device. It is something that can be done. For this reason, it can be suitably used in an industrial field in which various master / slave devices using the I2C bus and various electronic devices including the same are manufactured and used.

本発明の実施の一形態を示すものであり、電子機器の概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of an electronic device according to an embodiment of the present invention. 本発明の実施の一形態を示すものであり、EEPROMにデータを書き込む際のタイミングチャートである。FIG. 3 is a timing chart for writing data into an EEPROM according to an embodiment of the present invention. 従来の電子機器の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the conventional electronic device. 正常に動作する電子機器における、EEPROMにデータを書き込み際のタイミングチャートである。6 is a timing chart when data is written to an EEPROM in an electronic device that operates normally. 従来の電子機器における、EEPROMにデータを書き込む際のタイミングチャートである。It is a timing chart at the time of writing data in EEPROM in the conventional electronic device.

符号の説明Explanation of symbols

1 電子機器
2 CPU(マスタデバイス)
3 EEPROM(スレーブデバイス)
4 リセットIC(リセットデバイス)
5 第1ダイオード(回路、ダイオード)
7 クロック信号線、SCL
1 Electronic equipment 2 CPU (master device)
3 EEPROM (slave device)
4 Reset IC (reset device)
5 1st diode (circuit, diode)
7 Clock signal line, SCL

Claims (8)

マスタデバイスと、スレーブデバイスと、該マスタデバイスおよびスレーブデバイスを接続する2線式シリアルバスと、マスタデバイスにリセット信号を供給するリセットデバイスとを備えた電子機器において、
上記マスタデバイスにアクティブなリセット信号が供給された場合に、2線式シリアルバスのクロック信号線をローレベルにする回路を備えていることを特徴とする電子機器。
In an electronic apparatus comprising a master device, a slave device, a two-wire serial bus that connects the master device and the slave device, and a reset device that supplies a reset signal to the master device,
An electronic apparatus comprising a circuit for setting a clock signal line of a two-wire serial bus to a low level when an active reset signal is supplied to the master device.
上記回路は、クロック信号線とリセットデバイスとを接続するダイオードであることを特徴とする請求項1に記載の電子機器。   The electronic apparatus according to claim 1, wherein the circuit is a diode that connects a clock signal line and a reset device. 上記スレーブデバイスがEEPROMであることを特徴とする請求項1または2に記載の電子機器。   The electronic device according to claim 1, wherein the slave device is an EEPROM. 上記スレーブデバイスを複数備えていることを特徴とする請求項1または2に記載の電子機器。   The electronic apparatus according to claim 1, comprising a plurality of the slave devices. 上記複数のスレーブデバイスのうち少なくとも1つがEEPROMであることを特徴とする請求項4に記載の電子機器。   The electronic apparatus according to claim 4, wherein at least one of the plurality of slave devices is an EEPROM. 上記マスタデバイスがリセットされた場合に、クロック信号線をローレベルにするようになっていることを特徴とする請求項1ないし5のいずれか1項に記載の電子機器。   6. The electronic apparatus according to claim 1, wherein the clock signal line is set to a low level when the master device is reset. 上記リセットデバイスは、マスタデバイスに対して2つの異なるリセット信号を供給し、
マスタデバイスは、一方のリセット信号を入力するとクロック信号線をローレベルにし、他方のリセット信号を入力するとマスタデバイスをリセットするようになっていることを特徴とする請求項1ないし5のいずれか1項に記載の電子機器。
The reset device supplies two different reset signals to the master device,
6. The master device according to claim 1, wherein when one reset signal is input, the clock signal line is set to a low level, and when the other reset signal is input, the master device is reset. The electronic device as described in the paragraph.
上記クロック信号線をローレベルにする開始電圧が、マスタデバイスをリセットする電圧よりも高いことを特徴とする請求項7に記載の電子機器。   8. The electronic apparatus according to claim 7, wherein a starting voltage for setting the clock signal line to a low level is higher than a voltage for resetting the master device.
JP2004153842A 2004-05-24 2004-05-24 Electronic device Withdrawn JP2005338963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004153842A JP2005338963A (en) 2004-05-24 2004-05-24 Electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004153842A JP2005338963A (en) 2004-05-24 2004-05-24 Electronic device

Publications (1)

Publication Number Publication Date
JP2005338963A true JP2005338963A (en) 2005-12-08

Family

ID=35492499

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004153842A Withdrawn JP2005338963A (en) 2004-05-24 2004-05-24 Electronic device

Country Status (1)

Country Link
JP (1) JP2005338963A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012195639A (en) * 2011-03-15 2012-10-11 Nec Access Technica Ltd Information processing device, information processing method, and information processing program
JP2013218306A (en) * 2012-04-05 2013-10-24 Toshiba Corp Image forming apparatus and control method of image forming apparatus
CN104850203A (en) * 2015-06-10 2015-08-19 联想(北京)有限公司 Electronic apparatus reset method and electronic apparatus
JP2016186747A (en) * 2015-03-27 2016-10-27 Necエンベデッドプロダクツ株式会社 Record processing controller, recording device, record processing control method and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012195639A (en) * 2011-03-15 2012-10-11 Nec Access Technica Ltd Information processing device, information processing method, and information processing program
JP2013218306A (en) * 2012-04-05 2013-10-24 Toshiba Corp Image forming apparatus and control method of image forming apparatus
JP2016186747A (en) * 2015-03-27 2016-10-27 Necエンベデッドプロダクツ株式会社 Record processing controller, recording device, record processing control method and program
CN104850203A (en) * 2015-06-10 2015-08-19 联想(北京)有限公司 Electronic apparatus reset method and electronic apparatus
CN104850203B (en) * 2015-06-10 2019-02-05 联想(北京)有限公司 A kind of electronic equipment repositioning method and electronic equipment

Similar Documents

Publication Publication Date Title
US7668995B2 (en) IIC bus communication system capable of suppressing freeze of IIC bus communication and method for controlling IIC bus communication
US10116542B2 (en) Communication device, communication method, program, and communication system
US8489786B2 (en) Acknowledgement management technique for supported command set of SMBUS/PMBUS slave applications
US9940282B2 (en) Bus serialization for devices without multi-device support
CN110249319A (en) Handle method, electronic equipment and the communication system of I2C bus deadlock
JP2006099410A (en) Method for controlling i2c
JP2008197752A (en) Data communication malfunction preventing device, electronic equipment, control method for data communication malfunction preventing device, control program for data communication malfunction preventing device and recording medium with the program recorded
JP2006209643A (en) Interface circuit and system device using the same
JP2016004388A (en) Communication system and electronic circuit
JPH09265436A (en) Data transfer device
WO2012046634A1 (en) Electronic device and serial data communication method
EP1357479B1 (en) Data transfer system
WO2005119448A1 (en) Error recovery scheme for i2c slave
US20080244129A1 (en) Master device of two-wire bus providing release function for clock line and method thereof
JPWO2017104437A1 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM, AND COMMUNICATION SYSTEM
JP2005338963A (en) Electronic device
US9495315B2 (en) Information processing device and data communication method
CN102662902B (en) Method, device and system for preventing I2C (inter-integrated circuit) bus locking
CN112445744B (en) I2C communication
CN100530119C (en) Method and relevant apparatus for providing secondary basic input/output system code through synchronizing monitor and control
US20190354503A1 (en) Communication apparatus, communication method, program, and communication system
JP2005165589A (en) Usb device recognition method and system
CN212229628U (en) Slave device
JP2005284805A (en) Small memory card adapter and information apparatus
CN115454916A (en) Operation data checking method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070807