JP5286814B2 - Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program - Google Patents
Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program Download PDFInfo
- Publication number
- JP5286814B2 JP5286814B2 JP2008029373A JP2008029373A JP5286814B2 JP 5286814 B2 JP5286814 B2 JP 5286814B2 JP 2008029373 A JP2008029373 A JP 2008029373A JP 2008029373 A JP2008029373 A JP 2008029373A JP 5286814 B2 JP5286814 B2 JP 5286814B2
- Authority
- JP
- Japan
- Prior art keywords
- diagnosis
- self
- command
- unit
- external 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.)
- Active
Links
Images
Description
本発明は、自己診断機能を有する半導体装置、携帯可能な電子装置、自己診断方法、自己診断プログラムに関する。 The present invention relates to a semiconductor device having a self-diagnosis function, a portable electronic device, a self-diagnosis method, and a self-diagnosis program.
従来から、ICカード等の電子デバイスが搭載された携帯可能な電子装置が利用されている。このような電子装置は、自装置が正常に動作を行うことができるか否かを自ら行う自己診断機能を有するものがある。このような自己診断を行う技術として、例えば、下記に示す特許文献1があげられる。
この特許文献1に示すシステムにおいては、カードが自己診断を行っている途中にコマンドが外部装置から送信されると、自己診断の処理を中断し、コマンドを受信する処理を行う。そして、コマンドの受信が完了すると、自己診断を再開し、自己診断が完了したら、受信したコマンドの処理を行う。これにより、自己診断を行う。
In the system shown in Patent Document 1, when a command is transmitted from an external device while the card is performing self-diagnosis, the self-diagnosis process is interrupted and a process of receiving the command is performed. When the reception of the command is completed, the self-diagnosis is resumed. When the self-diagnosis is completed, the received command is processed. Thereby, self-diagnosis is performed.
しかしながら、上述の特許文献1に示す自己診断技術においては、コマンドの受信が終了した後に、自己診断を再開し、この自己診断が完了したら、受信したコマンドの処理を行うので、診断する時間が長引いてしまうと、受信したコマンドを実行するまでの時間も長引いてしまい、システム全体として、コマンドの処理が完了するまでの時間が遅くなってしまうという問題がある。
ここで、近年は、電子装置に搭載されるメモリ領域が非常に大きくなっており、これに伴い、自己診断を行う対象の領域も増大することにより、自己診断にかかる時間がさらに長くなり、結果的にコマンド処理の開始が遅くなってしまう。
However, in the self-diagnosis technique shown in Patent Document 1 described above, the self-diagnosis is restarted after the completion of the command reception, and when the self-diagnosis is completed, the received command is processed. If this happens, the time until the received command is executed is also prolonged, and there is a problem that the time until the command processing is completed is delayed as a whole system.
Here, in recent years, the memory area mounted on the electronic device has become very large, and as a result, the area to be subjected to self-diagnosis also increases, which further increases the time required for self-diagnosis. The start of command processing will be delayed.
本発明は、このような事情に鑑みてなされたもので、その目的は、コマンド処理の開始が遅くなってしまうことを低減しつつ、自己診断を行うことができる半導体装置、携帯可能な電子装置、自己診断方法、自己診断プログラムを提供することにある。 The present invention has been made in view of such circumstances, and an object of the present invention is to provide a semiconductor device and a portable electronic device capable of performing self-diagnosis while reducing the delay in starting command processing. It is to provide a self-diagnosis method and a self-diagnosis program.
上述した課題を解決するために、本発明は、外部機器との間で情報の送受信を行う電子装置に搭載される半導体装置であって、前記外部機器から送信されるコマンドを受信するコマンド受信部と、前記コマンド受信部が受信したコマンドの処理を行って処理結果を前記外部機器に送信するコマンド処理部と、前記コマンド処理部が処理を行っていない期間であるコマンド受信待ち期間に、前記半導体装置が正常に動作可能であるか否かの診断である自己診断を行う自己診断部と、前記自己診断部が行った自己診断の履歴を記憶する記憶部と、前記自己診断を行う毎に前記自己診断の結果を前記記憶部に書き込み、外部機器からコマンドが送信された場合に、前記自己診断部の自己診断を停止させ、前記コマンド受信部によってコマンドの受信をさせる制御部と、を有することを特徴とする。 In order to solve the above-mentioned problem, the present invention provides a semiconductor device mounted on an electronic device that transmits and receives information to and from an external device, and receives a command transmitted from the external device. A command processing unit that processes the command received by the command receiving unit and transmits a processing result to the external device, and a command reception waiting period that is a period during which the command processing unit is not processing. A self-diagnosis unit for performing a self-diagnosis, which is a diagnosis of whether or not the apparatus is normally operable, a storage unit for storing a history of self-diagnosis performed by the self-diagnosis unit, and each time the self-diagnosis is performed, When the result of self-diagnosis is written in the storage unit and a command is transmitted from an external device, the self-diagnosis of the self-diagnosis unit is stopped and the command reception unit receives the command. And having a control unit for.
また、本発明は、上述した半導体装置において、前記自己診断を行う対象が複数の分割ブロックに分割されており、前記制御部は、前記分割ブロック毎に順に自己診断を前記自己診断部に行わせ、自己診断が行われた分割ブロックについて前記記憶部に自己診断の履歴を書き込み、前記自己診断部は、自己診断を行う場合、前記記憶部を参照し、前記自己診断が行われていない分割ブロックを対象として自己診断を行うことを特徴とする。 According to the present invention, in the semiconductor device described above, the target to be self-diagnosis is divided into a plurality of divided blocks, and the control unit causes the self-diagnosis unit to perform self-diagnosis in order for each of the divided blocks. The self-diagnosis history is written in the storage unit for the divided blocks that have undergone self-diagnosis, and the self-diagnosis unit refers to the storage unit when performing self-diagnosis, and the divided blocks that have not been self-diagnosed A self-diagnosis is performed on the subject.
また、本発明は、上述した半導体装置において、前記分割ブロックは、自己診断を行う順序が設定されており、前記自己診断部は、自己診断を行う場合、前記記憶部を参照し、前記自己診断が行われていない分割ブロックを前記順序に従って自己診断を行うことを特徴とする。 Further, according to the present invention, in the semiconductor device described above, the order in which the divided blocks perform self-diagnosis is set, and the self-diagnosis unit refers to the storage unit and performs self-diagnosis when performing self-diagnosis. The self-diagnosis is performed according to the above order for the divided blocks that have not been performed.
また、本発明は、上述した半導体装置において、前記自己診断部は、分割ブロックについて前記自己診断を行っている途中に、自己診断を停止した場合には、次にコマンド受信待ち期間に到達した場合に、当該自己診断を停止したブロックから自己診断を行うことを特徴とする。 In the semiconductor device described above, the self-diagnostic unit may stop when the self-diagnosis is stopped while performing the self-diagnosis on the divided block, and then reaches a command reception waiting period. In addition, the self-diagnosis is performed from the block where the self-diagnosis is stopped.
また、本発明は、外部機器との間で情報の送受信を行う携帯可能な電子装置であって、前記外部機器から送信されるコマンドを受信するコマンド受信部と、前記コマンド受信部が受信したコマンドの処理を行って処理結果を前記外部機器に送信するコマンド処理部と、前記コマンド処理部が処理を行っていない期間であるコマンド受信待ち期間に、前記携帯可能な電子装置が正常に動作可能であるか否かの診断である自己診断を行う自己診断部と、前記自己診断部が行った自己診断の履歴を記憶する記憶部と、前記自己診断を行う毎に前記自己診断の結果を前記記憶部に書き込み、外部機器からコマンドが送信された場合に、前記自己診断部の自己診断を停止させ、前記コマンド受信部によってコマンドの受信をさせる制御部と、を有することを特徴とする。 In addition, the present invention is a portable electronic device that transmits and receives information to and from an external device, the command receiving unit receiving a command transmitted from the external device, and the command received by the command receiving unit The portable electronic device can operate normally in a command processing unit that performs the above processing and transmits a processing result to the external device, and a command reception waiting period that is a period during which the command processing unit is not performing processing. A self-diagnosis unit that performs self-diagnosis, which is a diagnosis of whether or not there is, a storage unit that stores a history of self-diagnosis performed by the self-diagnosis unit, and a result of the self-diagnosis each time the self-diagnosis is performed And a control unit for stopping the self-diagnosis of the self-diagnosis unit and receiving the command by the command reception unit when a command is transmitted from an external device. The features.
また、本発明は、外部機器との間で情報の送受信を行う携帯可能な電子装置における自己診断方法であって、前記電子装置が、前記外部機器から送信されるコマンドを受信し、前記受信したコマンドの処理を行って処理結果を前記外部機器に送信し、前記コマンドの処理を行っていない期間であるコマンド受信待ち期間に、前記携帯可能な電子装置が正常に動作可能であるか否かの診断である自己診断を行い、前記自己診断を行う毎に前記自己診断の結果を記憶部に書き込み、前記外部機器からコマンドが送信された場合に、前記自己診断を停止させ、前記コマンドの受信をさせることを特徴とする。 The present invention is also a self-diagnosis method in a portable electronic device that transmits and receives information to and from an external device, wherein the electronic device receives a command transmitted from the external device and receives the command Whether or not the portable electronic device can operate normally during a command reception waiting period in which a command is processed and a processing result is transmitted to the external device and the command is not processed. Each time the self-diagnosis is performed, the result of the self-diagnosis is written in the storage unit, and when a command is transmitted from the external device, the self-diagnosis is stopped and the command is received. It is characterized by making it.
また、本発明は、外部機器との間で情報の送受信を行う携帯可能なコンピュータである電子装置に、前記外部機器から送信されるコマンドを受信する手段、前記受信したコマンドの処理を行って処理結果を前記外部機器に送信する手段、前記コマンドの処理を行っていない期間であるコマンド受信待ち期間に、前記携帯可能な電子装置が正常に動作可能であるか否かの診断である自己診断を行う手段、前記自己診断を行う毎に前記自己診断の結果を記憶部に書き込むステップと、前記外部機器からコマンドが送信された場合に、前記自己診断を停止させ、前記コマンドの受信をさせる手段、として機能させるための自己診断プログラムである。 In addition, the present invention provides an electronic device, which is a portable computer that transmits and receives information to and from an external device, means for receiving a command transmitted from the external device, and processes the received command Means for transmitting the result to the external device, and a self-diagnosis, which is a diagnosis of whether or not the portable electronic device can normally operate during a command reception waiting period, which is a period during which the command is not processed. Means for writing the result of the self-diagnosis to the storage unit each time the self-diagnosis is performed; means for stopping the self-diagnosis and receiving the command when a command is transmitted from the external device; It is a self-diagnosis program to function as.
以上説明したように、この発明によれば、コマンドの処理を行っていない期間であるコマンドの受信待ちの期間に、この自己診断を行った履歴を記憶しつつ自己診断を行い、外部機器からコマンドが入力された場合に、自己診断を停止してコマンドの受信を行ってコマンドの処理を行うようにしたので、コマンドの処理を与える影響を低減させた自己診断を行うことが可能となる。 As described above, according to the present invention, the self-diagnosis is performed while storing the history of the self-diagnosis during the command reception waiting period, which is a period in which the command processing is not performed, and the command is received from the external device. When the command is input, the self-diagnosis is stopped, the command is received, and the command is processed. Therefore, it is possible to perform the self-diagnosis with reduced influence on the command processing.
また、この発明によれば、自己診断をブロック毎に行い、1つのブロックの自己診断が終了した時点で、診断が完了したことを履歴として記憶しておくようにし、自己診断を行うにあたり、保存された分割ブロックの履歴をもとに、自己診断処理を行っていない分割ブロックを対象として自己診断を行うようにした。これにより、コマンドの受信待ちの期間を利用して診断対象の分割ブロックをそれぞれ診断することが可能となる。 Further, according to the present invention, the self-diagnosis is performed for each block, and when the self-diagnosis of one block is completed, the fact that the diagnosis is completed is stored as a history. Based on the history of the divided blocks, the self-diagnosis is performed on the divided blocks that are not subjected to the self-diagnosis process. This makes it possible to diagnose each of the divided blocks to be diagnosed using the command reception waiting period.
以下、本発明の一実施形態による電子装置について図面を参照して説明する。この実施形態において、電子装置は、携帯可能に構成されており、例えば、半導体装置が搭載されたICカードである。この電子装置と外部機器とが接続され、電子機器と外部機器との間において情報の送受信を行うことが可能である。ここで、電子機器がICカードである場合には、リーダライタ等のデバイスを介して外部機器である端末装置と通信可能に接続される。以下の実施形態においては、電子装置がICカードである場合について説明する。 Hereinafter, an electronic device according to an embodiment of the present invention will be described with reference to the drawings. In this embodiment, the electronic device is configured to be portable, for example, an IC card on which a semiconductor device is mounted. The electronic device and the external device are connected, and information can be transmitted and received between the electronic device and the external device. Here, when the electronic device is an IC card, the electronic device is connected to a terminal device, which is an external device, via a device such as a reader / writer. In the following embodiments, a case where the electronic device is an IC card will be described.
図1は、この発明の一実施形態によるICカード1の構成を示す概略ブロック図である。
この図において、ICカード1は、CPU(中央処置装置)10、ROM(read−only memory)11、RAM(random−access memory)12、EEPROM(electrically erasable programmable read−only memory)13、I/O(Input/Output)14がバス20を介して接続される。CPU10が、ROM11、RAM12、EEPROM13に記憶された情報を利用しつつ、I/O14によって端末装置と情報の送受信を行ったり、各種コマンド処理を行う。
FIG. 1 is a schematic block diagram showing the configuration of an IC card 1 according to an embodiment of the present invention.
In this figure, an IC card 1 includes a CPU (central processing unit) 10, a ROM (read-only memory) 11, a RAM (random-access memory) 12, an EEPROM (electrically erasable programmable memory) 13, an I / O. (Input / Output) 14 is connected via the bus 20. The
I/O14は、例えば端末装置等の外部機器から送信されるコマンドを受信する機能を有する(上述のコマンド受信部に相当)。EEPROM13は、CPU10(上述の自己診断部に相当)が行った自己診断の履歴を記憶する(上述の記憶部に相当)。
The I /
CPU10は、I/O14が受信したコマンドの処理を行って処理結果をI/O14を介して外部機器に送信する機能を有する(上述のコマンド処理部に相当)。
またCPU10は、コマンドの処理を行っていない期間であるコマンド受信待ち期間に、ICカード1が正常に動作可能であるか否かの診断である自己診断を行う機能を有する(上述の自己診断部に相当)。
またCPU10は、自己診断を行う毎に自己診断の結果をEEPROM13に書き込み、外部機器からコマンドが送信された場合に、自己診断を停止させ、I/O14によってコマンドの受信をさせる機能を有する(上述の制御部に相当)。
The
Further, the
Further, the
ここで、自己診断を行う対象は、例えば、ICカード1内のメモリ領域であり、このメモリ領域内に記憶されているデータが正常であるか否か、メモリ領域内に記憶されたデータやプログラムを利用したICカード1内の各機能が正常に機能するか否か等の診断が行われる。
この診断対象となるメモリ領域は、複数の分割ブロックに分割されている。この分割ブロックとしては、論理ブロックでもよいし、物理ブロックでもよい。
Here, the target of self-diagnosis is, for example, a memory area in the IC card 1, whether or not the data stored in the memory area is normal, and data and programs stored in the memory area. A diagnosis is made as to whether or not each function in the IC card 1 using the function functions normally.
The memory area to be diagnosed is divided into a plurality of divided blocks. This divided block may be a logical block or a physical block.
また、CPU10は、分割ブロック毎に順に自己診断を行い、自己診断が行われた分割ブロックについて自己診断の履歴をEEPROM13に書き込む。自己診断を再開する際には、EEPROM13を参照し、自己診断が終了したものとして記憶されている分割ブロックを除き、まだ診断されていない分割ブロックを診断対象として自己診断行う。ここでは、自己診断を行う分割ブロックの診断順序を予め決めておき、EEPROM13に記憶された自己診断が終了した分割ブロックの次の順番となっている分割ブロックからその順序に従って自己診断処理を行うことも可能である。
Further, the
さらにまた、CPU10は、各種コマンドの処理を行うが、このコマンド処理中に割り込み信号があったか否かを監視する割り込み信号監視処理を行う機能を有し、割り込み信号が発生した際、現在処理しているコマンド処理を停止し、割り込みが発生した処理を実行する機能を有する。
Furthermore, the
次に、上述した構成におけるICカード1の動作について、図2、3のフローチャートを用いて順次説明する。図2は、割り込み信号の監視をする処理について説明するフローチャートである。
電源が供給されてICカード1が起動すると、CPU10は、外部に接続された端末装置から割り込み信号が出力されているか否かの検出を行い(ステップS11)、この検出結果に基づいて、割り込み信号が端末装置からICカード1に入力されているか否かを判定する(ステップS12)。この判定結果において、割り込み信号が入力されていない場合、ステップS11に移行し、割り込み信号が入力されている場合には、ステップS13のコマンド処理を実行し、割り込み信号の検出処理を終了する。
Next, the operation of the IC card 1 in the above-described configuration will be sequentially described with reference to the flowcharts of FIGS. FIG. 2 is a flowchart illustrating processing for monitoring an interrupt signal.
When power is supplied and the IC card 1 is activated, the
次に、コマンド処理について、図3のフローチャートを用いて説明する。
CPU10は、割り込み信号が発生すると、コマンド処理を開始する。
割り込み信号が発生すると、CPU10は、端末装置から送信されるコマンドをI/O14を介して受信する(ステップS21)。このコマンドの受信が終了すると(ステップS22)、CPU10は、このコマンドに対応する処理を行い(ステップS23)、この処理が完了したことを通知するレスポンス信号を端末装置に送信する(ステップS24)。
Next, command processing will be described with reference to the flowchart of FIG.
When the interrupt signal is generated, the
When the interrupt signal is generated, the
レスポンス信号を端末装置に送信すると、CPU10は、端末装置から次に送信されるコマンドの受信待ちをする(ステップS25)。このコマンドの受信待ちは、例えば図2に示す割り込み信号監視処理を並行して行うものである。そしてCPU10は、まだ自己診断を行っていない分割ブロックのうち、所定の順序に従って自己診断を行う(ステップS26)。ここでCPU10は、1つの分割ブロックの自己診断処理を終了する毎に、自己診断が終了した分割ブロックを示す情報をEEPROM13に書き込み(ステップS27)、このステップS26の自己診断とステップS27の診断履歴の記録を、図2のステップS12において割り込み信号‘有り’として判定されるまで、繰り返して行う。
When the response signal is transmitted to the terminal device, the
そして、CPU10は、図2ステップS12において割り込み信号‘有り’として判定されると、自己診断処理を停止し、割り込み信号に応じた処理を行う。ここでは、例えば、割り込み信号が入力されると、図2ステップS13に移行することによって、図3のステップS21のコマンド受信処理に移行する。そして、ステップS26の自己診断を行う際、診断履歴を参照し、自己診断が終了した分割ブロックの次に実行する分割ブロックを検出し、検出した分割ブロックから自己診断を行う。
When it is determined in step S12 in FIG. 2 that the interrupt signal is “present”, the
以上説明した実施形態についてさらに説明する。図4は、受け付けたコマンドの処理と自己診断処理とについて説明する図面である。
ICカード1は、端末装置に接続され、電源の供給を受けると(t1)、初期応答(ATR:Answer To Reset)信号を端末装置に出力し(t2)、コマンド信号の受信待ちを行う(t3)。このt3の期間において、CPU10は、分割ブロックAの診断を行い、診断履歴を保存する。
次に、割り込み信号とともに第一コマンドが入力されると、自己診断処理を停止し、第1コマンドの受信処理を行い(t4)、受信が完了すると、受信した第1コマンドの処理を行い(t5)、処理が完了するとコマンドの処理結果をレスポンスとして端末装置に送信する(t6)。そしてコマンドの受信待ち状態に移行し(t7)、自己診断を行う(t7)。ここでは、領域Aが完了したことの履歴に基づき、領域Aの次に診断を行う領域として順序が決められている領域Bの診断を行い、この領域の自己診断が終了した時点で、診断履歴を記憶する。そして、割り込み信号が入力され第二コマンドが入力されると、この第二コマンドを受信し(t8)、受信が完了すると、第二コマンドの処理を行う(t9)。
The embodiment described above will be further described. FIG. 4 is a diagram for explaining received command processing and self-diagnosis processing.
When the IC card 1 is connected to the terminal device and receives power supply (t1), the IC card 1 outputs an initial response (ATR: Answer To Reset) signal to the terminal device (t2) and waits for reception of a command signal (t3). ). In the period of t3, the
Next, when the first command is input together with the interrupt signal, the self-diagnosis process is stopped, the first command is received (t4), and when the reception is completed, the received first command is processed (t5). When the processing is completed, the command processing result is transmitted as a response to the terminal device (t6). Then, the process shifts to a command reception waiting state (t7) and self-diagnosis is performed (t7). Here, based on the history of completion of the area A, the diagnosis is performed for the area B that is determined as the area to be diagnosed next to the area A, and when the self-diagnosis of this area is completed, the diagnosis history Remember. When the interrupt signal is input and the second command is input, the second command is received (t8). When the reception is completed, the second command is processed (t9).
以上説明した実施形態においては、コマンドの受信待ちの期間、すなわち、従来であればCPU10の処理が行われていない期間(スリープ)に自己診断処理を行いつつ、割り込み信号の監視を行うようにしたので、コマンドの処理に与える影響を低減させて自己診断を行うことが可能となる。
また、この実施形態においては、自己診断をブロック毎に行い、1つのブロックの自己診断が終了した時点で、診断が完了したことを履歴として保存しておくようにした。これにより、ある分割ブロックの自己診断を行っている途中で割り込み信号を受信した場合、ある分割ブロックの自己診断を行っている途中であっても、直ちに自己診断を停止して、割り込み信号に応じた処理を行う。そして、割り込み信号に対する処理(コマンドの処理とレスポンスの送信)が終了した後に、自己診断処理に移行し、自己診断の履歴を参照し、自己診断が終了した分割ブロックの次の分割ブロック、すなわち、自己診断処理を途中で停止した分割ブロックから自己診断処理を行うようにした。これにより、通常ではCPU10がスリープになる期間を利用して、自己診断処理の対象となる領域(分割ブロック)を順に診断することができる。
なお、図5に示すように、分割ブロックの診断を順に行う際、永続的スクリーニングを行うようにしてもよい。すなわち、領域Aから領域Xを対象として自己診断処理を行う場合、領域Aから順に自己診断処理を行い、領域Xが終了したら、再度領域Aから順に自己診断処理を行うようにしてもよい。
In the embodiment described above, the interrupt signal is monitored while performing the self-diagnosis process during the command reception waiting period, that is, the period when the process of the
In this embodiment, self-diagnosis is performed for each block, and when the self-diagnosis of one block is completed, the fact that the diagnosis is completed is stored as a history. As a result, if an interrupt signal is received during the self-diagnosis of a certain divided block, the self-diagnosis is immediately stopped even in the middle of the self-diagnosis of a certain divided block, and the interrupt signal is Process. Then, after the processing for the interrupt signal (command processing and response transmission) ends, the process proceeds to self-diagnosis processing, refers to the history of self-diagnosis, and the next divided block after the self-diagnosis block, The self-diagnosis process is started from the divided block where the self-diagnosis process is stopped halfway. As a result, the area (divided block) that is the target of the self-diagnosis process can be diagnosed in order using the period in which the
In addition, as shown in FIG. 5, when performing the diagnosis of a divided block in order, you may make it perform a permanent screening. That is, when performing the self-diagnosis process from the area A to the area X, the self-diagnosis process may be performed in order from the area A, and when the area X ends, the self-diagnosis process may be performed again from the area A again.
また、上述した実施形態においては、ICカード1に自己診断機能を設ける場合について説明したが、上述したCPU10、EEPROM13の機能を半導体装置に搭載するようにしてもよい。これにより、この半導体装置を用いてICカードを構成することや、他の電子機器に組み込んで自己診断を行うことが可能となる。
In the embodiment described above, the case where the IC card 1 is provided with the self-diagnosis function has been described. However, the functions of the
また、図1におけるCPU10の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより割り込み管理処理と自己診断処理を行ってもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。
Further, the program for realizing the function of the
また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含むものとする。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよい。
Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory in a computer system serving as a server or a client in that case, and a program that holds a program for a certain period of time are also included. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.
以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。 The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes designs and the like that do not depart from the gist of the present invention.
1 ICカード
10 CPU
11 ROM
12 RAM
13 EEPROM
14 I/O
20 バス
1
11 ROM
12 RAM
13 EEPROM
14 I / O
20 buses
Claims (6)
前記外部機器から送信されるコマンドを受信するコマンド受信部と、
前記コマンド受信部が受信したコマンドの処理を行って処理結果を前記外部機器に送信するコマンド処理部と、
前記処理結果が前記コマンド処理部によって前記外部機器に送信された後、前記外部機器から割り込み信号が入力されたか否かを監視する割り込み信号監視処理を行う手段と、
前記コマンド処理部が処理結果を前記外部機器へ送信してから前記割り込み信号が入力されるまでの期間であるコマンド受信待ち期間に、前記半導体装置が正常に動作可能であるか否かの診断である自己診断を行う自己診断部と、
前記自己診断部が行った自己診断の履歴を記憶する記憶部と、
前記自己診断を行う毎に前記自己診断の結果を前記記憶部に書き込み、外部機器から前記割り込み信号が送信されコマンドが送信された場合に、前記自己診断部の自己診断を停止させ、前記コマンド受信部によってコマンドの受信をさせる制御部と、を有し、
前記自己診断を行う対象が複数の分割ブロックに分割されており、
前記制御部は、前記分割ブロック毎に順に自己診断を前記自己診断部に行わせ、自己診断が行われた分割ブロックについて前記記憶部に自己診断の履歴を書き込み、
前記自己診断部は、自己診断を行う場合、前記記憶部を参照し、前記自己診断が行われていない分割ブロックを対象として自己診断を行う
ことを特徴とする半導体装置。 A semiconductor device mounted on an electronic device that transmits and receives information to and from an external device,
A command receiving unit for receiving a command transmitted from the external device;
A command processing unit for processing a command received by the command receiving unit and transmitting a processing result to the external device;
Means for performing an interrupt signal monitoring process for monitoring whether an interrupt signal is input from the external device after the processing result is transmitted to the external device by the command processing unit;
Diagnosing whether the semiconductor device can operate normally during a command reception waiting period, which is a period from when the command processing unit transmits a processing result to the external device to when the interrupt signal is input. A self-diagnosis unit for performing a self-diagnosis;
A storage unit for storing a history of self-diagnosis performed by the self-diagnosis unit;
Each time the self-diagnosis is performed, the result of the self-diagnosis is written to the storage unit, and when the interrupt signal is transmitted from an external device and a command is transmitted, the self-diagnosis unit stops the self-diagnosis and receives the command A control unit for receiving commands by the unit ,
The target for performing the self-diagnosis is divided into a plurality of divided blocks;
The control unit causes the self-diagnosis unit to perform self-diagnosis in order for each of the divided blocks, and writes a history of self-diagnosis to the storage unit for the divided blocks for which self-diagnosis is performed,
The self-diagnosis unit, when performing self-diagnosis, refers to the storage unit and performs self-diagnosis on a divided block on which the self-diagnosis is not performed .
ことを特徴とする請求項1記載の半導体装置。 The self-diagnosis unit is performing self-diagnosis of the divided block when the interrupt signal is input and the control unit is instructed to stop self-diagnosis during the self-diagnosis of the divided block. Even after that, the self-diagnosis is immediately stopped, and after processing of the command according to the interrupt signal and transmission of the processing result are performed, until the next interrupt signal is input from the external device, The semiconductor device according to claim 1 , wherein the self-diagnosis is performed from a block in which the self-diagnosis processing is stopped halfway with reference to the storage unit .
前記自己診断部は、自己診断を行う場合、前記記憶部を参照し、前記自己診断が行われていない分割ブロックを前記順序に従って自己診断を行う
ことを特徴とする請求項1または請求項2記載の半導体装置。 The division block has an order for performing self-diagnosis, and
The self-diagnosis unit, when performing the self-diagnosis, with reference to the storage unit, according to claim 1 or claim 2, wherein the divided blocks which the self-diagnosis has not been performed and performing a self-diagnosis in accordance with the order Semiconductor device.
前記外部機器から送信されるコマンドを受信するコマンド受信部と、
前記コマンド受信部が受信したコマンドの処理を行って処理結果を前記外部機器に送信するコマンド処理部と、
前記処理結果が前記コマンド処理部によって前記外部機器に送信された後、前記外部機器から割り込み信号が入力されたか否かを監視する割り込み信号監視処理を行う手段と、
前記コマンド処理部が処理結果を前記外部機器へ送信してから前記割り込み信号が入力されるまでの期間であるコマンド受信待ち期間に、前記携帯可能な電子装置が正常に動作可能であるか否かの診断である自己診断を行う自己診断部と、
前記自己診断部が行った自己診断の履歴を記憶する記憶部と、
前記自己診断を行う毎に前記自己診断の結果を前記記憶部に書き込み、外部機器から前記割り込み信号が送信されコマンドが送信された場合に、前記自己診断部の自己診断を停止させ、前記コマンド受信部によってコマンドの受信をさせる制御部と、を有し、
前記自己診断を行う対象が複数の分割ブロックに分割されており、
前記制御部は、前記分割ブロック毎に順に自己診断を前記自己診断部に行わせ、自己診断が行われた分割ブロックについて前記記憶部に自己診断の履歴を書き込み、
前記自己診断部は、自己診断を行う場合、前記記憶部を参照し、前記自己診断が行われていない分割ブロックを対象として自己診断を行う
を有することを特徴とする携帯可能な電子装置。 A portable electronic device that transmits and receives information to and from an external device,
A command receiving unit for receiving a command transmitted from the external device;
A command processing unit for processing a command received by the command receiving unit and transmitting a processing result to the external device;
Means for performing an interrupt signal monitoring process for monitoring whether an interrupt signal is input from the external device after the processing result is transmitted to the external device by the command processing unit;
Whether or not the portable electronic device can operate normally during a command reception waiting period that is a period from when the command processing unit transmits a processing result to the external device until the interrupt signal is input A self-diagnosis unit that performs self-diagnosis,
A storage unit for storing a history of self-diagnosis performed by the self-diagnosis unit;
Each time the self-diagnosis is performed, the result of the self-diagnosis is written to the storage unit, and when the interrupt signal is transmitted from an external device and a command is transmitted, the self-diagnosis unit stops the self-diagnosis and receives the command A control unit for receiving commands by the unit ,
The target for performing the self-diagnosis is divided into a plurality of divided blocks;
The control unit causes the self-diagnosis unit to perform self-diagnosis in order for each of the divided blocks, and writes a history of self-diagnosis to the storage unit for the divided blocks for which self-diagnosis is performed,
The self-diagnosis unit, when performing self-diagnosis, refers to the storage unit and performs self-diagnosis on a divided block on which the self-diagnosis is not performed .
前記電子装置が、
前記外部機器から送信されるコマンドを受信し、
前記受信したコマンドの処理を行って処理結果を前記外部機器に送信し、
前記処理結果が前記外部機器に送信された後、前記外部機器から割り込み信号が入力されたか否かを監視し、
前記処理結果を前記外部機器へ送信してから前記割り込み信号が入力されるまでの期間であるコマンド受信待ち期間に、前記携帯可能な電子装置が正常に動作可能であるか否かの診断である自己診断を行い、
前記自己診断を行う毎に前記自己診断の結果を記憶部に書き込み、前記外部機器からコマンドが送信された場合に、前記自己診断を停止させ、前記コマンドの受信をさせ、
前記自己診断を行う対象が複数の分割ブロックに分割されており、
前記分割ブロック毎に順に自己診断を前記自己診断部に行わせ、自己診断が行われた分割ブロックについて前記記憶部に自己診断の履歴を書き込み、
前記自己診断を行う場合、前記記憶部を参照し、前記自己診断が行われていない分割ブロックを対象として自己診断を行う
ことを特徴とする自己診断方法。 A self-diagnosis method in a portable electronic device that transmits / receives information to / from an external device,
The electronic device is
Receiving a command transmitted from the external device;
Process the received command and send the processing result to the external device;
After the processing result is transmitted to the external device, it is monitored whether an interrupt signal is input from the external device,
It is a diagnosis as to whether or not the portable electronic device can operate normally during a command reception waiting period, which is a period from when the processing result is transmitted to the external device until the interrupt signal is input. Perform self-diagnosis,
Each time the self-diagnosis is performed, the result of the self-diagnosis is written in a storage unit, and when a command is transmitted from the external device, the self-diagnosis is stopped, and the command is received .
The target for performing the self-diagnosis is divided into a plurality of divided blocks;
Have the self-diagnosis unit perform self-diagnosis in order for each of the divided blocks, write a history of self-diagnosis in the storage unit for the divided blocks for which self-diagnosis has been performed,
When performing the self-diagnosis, the self-diagnosis method is characterized by referring to the storage unit and performing self-diagnosis on a divided block on which the self-diagnosis is not performed .
前記外部機器から送信されるコマンドを受信する手段、
前記受信したコマンドの処理を行って処理結果を前記外部機器に送信する手段、
前記処理結果が前記外部機器に送信された後、前記外部機器から割り込み信号が入力されたか否かを監視する手段、
前記処理結果を前記外部機器へ送信してから前記割り込み信号が入力されるまでの期間であるコマンド受信待ち期間に、前記携帯可能な電子装置が正常に動作可能であるか否かの診断である自己診断を行う手段、
前記自己診断を行う毎に前記自己診断の結果を記憶部に書き込み、前記外部機器からコマンドが送信された場合に、前記自己診断を停止させ、前記コマンドの受信をさせる手段、
前記自己診断を行う対象が複数の分割ブロックに分割されており、
前記分割ブロック毎に順に自己診断を前記自己診断部に行わせ、自己診断が行われた分割ブロックについて前記記憶部に自己診断の履歴を書き込む手段、
前記自己診断を行う場合、前記記憶部を参照し、前記自己診断が行われていない分割ブロックを対象として自己診断を行う手段、
として機能させるための自己診断プログラム。 Electronic devices that are portable computers that send and receive information to and from external devices
Means for receiving a command transmitted from the external device;
Means for processing the received command and transmitting a processing result to the external device;
Means for monitoring whether an interrupt signal is input from the external device after the processing result is transmitted to the external device;
It is a diagnosis as to whether or not the portable electronic device can operate normally during a command reception waiting period, which is a period from when the processing result is transmitted to the external device until the interrupt signal is input. Means for self-diagnosis,
The write the results of the self-diagnosis every time performing a self-diagnosis in the storage unit, wherein when a command from the external device is transmitted, to stop the self-diagnosis, it means for the reception of the command,
The target for performing the self-diagnosis is divided into a plurality of divided blocks;
Means for causing the self-diagnosis unit to perform self-diagnosis in order for each of the divided blocks, and writing a history of self-diagnosis in the storage unit for the divided blocks for which self-diagnosis has been performed;
When performing the self-diagnosis, means for performing self-diagnosis with reference to the storage unit and for the divided blocks for which the self-diagnosis has not been performed,
Self-diagnosis program to function as
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008029373A JP5286814B2 (en) | 2008-02-08 | 2008-02-08 | Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008029373A JP5286814B2 (en) | 2008-02-08 | 2008-02-08 | Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009187474A JP2009187474A (en) | 2009-08-20 |
JP5286814B2 true JP5286814B2 (en) | 2013-09-11 |
Family
ID=41070615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008029373A Active JP5286814B2 (en) | 2008-02-08 | 2008-02-08 | Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5286814B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013222348A (en) * | 2012-04-17 | 2013-10-28 | Dainippon Printing Co Ltd | Ic card and computer program |
JP6552926B2 (en) * | 2015-09-08 | 2019-07-31 | 株式会社東芝 | IC card and portable electronic device |
JP7400528B2 (en) | 2020-02-21 | 2023-12-19 | 大日本印刷株式会社 | IC card with self-diagnosis function and IC card self-diagnosis method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6027956A (en) * | 1983-07-26 | 1985-02-13 | Fujitsu Ltd | Self-diagnostic system |
JPH0394339A (en) * | 1989-09-07 | 1991-04-19 | Matsushita Electric Ind Co Ltd | Signal processor and its fault diagnostic method |
JPH1139231A (en) * | 1997-07-17 | 1999-02-12 | Unisia Jecs Corp | Electronic controller for vehicle |
JP3590338B2 (en) * | 1999-12-13 | 2004-11-17 | 株式会社東芝 | Portable electronic devices |
-
2008
- 2008-02-08 JP JP2008029373A patent/JP5286814B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2009187474A (en) | 2009-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10069988B2 (en) | Image forming apparatus, computer readable recording medium stored with computer program for controlling image forming apparatus, and method for controlling image forming apparatus | |
JP5286814B2 (en) | Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program | |
JP2016041470A (en) | Printer, control device of storage connected to the printer, control method and program of the printer | |
CN106126362B (en) | A kind of optical module I2C bus unrest sequential diagnosis method and device | |
CN111475432B (en) | Slave computer starting control device, single bus system and control method thereof | |
CN105045544A (en) | Information processing apparatus and method for controlling the same | |
US10691569B2 (en) | System and method for testing a data storage device | |
CN109102839B (en) | Bad block marking method, device, equipment and readable storage medium | |
JP2008310596A (en) | Portable electronic equipment and control method for potable electronic equipment | |
JP2007172096A (en) | Information processor and start control method | |
CN113711209A (en) | Electronic control device | |
JP4466372B2 (en) | Temporal correlation of messages transmitted by microprocessor monitor circuits. | |
JP4686211B2 (en) | Command output device and input / output execution time monitoring method | |
JP2016057817A (en) | Information processing device | |
WO2013021423A1 (en) | Reprogramming system and reprogramming method | |
JP2004185419A (en) | Portable electronic medium, issuing system of portable electronic medium, processing method, and issuing method | |
JP2019087177A (en) | Monitoring system | |
CN113467842B (en) | Method for starting embedded device suitable for industrial application scene, embedded device and computer readable storage medium | |
JP6415633B2 (en) | Information processing apparatus and control method thereof | |
JP4834196B2 (en) | Auxiliary storage | |
JP4976817B2 (en) | Program processing apparatus and program processing method | |
JP2008204005A (en) | Communication method for peripheral device, computer program, and peripheral device | |
CN116382972A (en) | Retransmission system and method for chip serial port loading | |
JP6100551B2 (en) | Electronics | |
JP2005339436A (en) | Electronic equipment and control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110125 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120120 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130125 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130205 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130405 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130507 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130520 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5286814 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |