Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5229155B2 - IC chip, data processing method, data processing program, IC card, etc. - Google Patents
[go: Go Back, main page]

JP5229155B2 - IC chip, data processing method, data processing program, IC card, etc. - Google Patents

IC chip, data processing method, data processing program, IC card, etc. Download PDF

Info

Publication number
JP5229155B2
JP5229155B2 JP2009184576A JP2009184576A JP5229155B2 JP 5229155 B2 JP5229155 B2 JP 5229155B2 JP 2009184576 A JP2009184576 A JP 2009184576A JP 2009184576 A JP2009184576 A JP 2009184576A JP 5229155 B2 JP5229155 B2 JP 5229155B2
Authority
JP
Japan
Prior art keywords
power consumption
low power
processing
signal
time
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.)
Expired - Fee Related
Application number
JP2009184576A
Other languages
Japanese (ja)
Other versions
JP2011039657A (en
Inventor
直樹 勝又
満里子 向田
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2009184576A priority Critical patent/JP5229155B2/en
Publication of JP2011039657A publication Critical patent/JP2011039657A/en
Application granted granted Critical
Publication of JP5229155B2 publication Critical patent/JP5229155B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、より多くの処理を迅速に実行することができるICチップ及びデータ処理方法等の技術分野に関する。   The present invention relates to a technical field such as an IC chip and a data processing method capable of quickly executing more processes.

外部機器と通信を行うICカード、例えば、携帯電話機に組み込まれたICカード(UIMカード)は、所定の規格(ISO7816等)に定められた電気信号及び伝送プロトコルに準じて、前記携帯電話機との間で通信を行っている。   An IC card that communicates with an external device, for example, an IC card (UIM card) incorporated in a mobile phone is connected to the mobile phone according to an electrical signal and a transmission protocol defined in a predetermined standard (ISO7816, etc.). Communication between them.

近年、かかる通信で取扱われるデータの大容量化に伴い、UIMカードにおいて、USB規格の通信をサポートする動きがある(例えば、特許文献1)。   In recent years, with the increase in the volume of data handled in such communication, there is a movement to support USB standard communication in UIM cards (for example, Patent Document 1).

USB規格の通信では、UIMカード全体の消費電力を抑えるために、低消費電力状態(サスペンド)へ移行させるモードを備えるよう定義されている。   The USB standard communication is defined to include a mode for shifting to a low power consumption state (suspend) in order to suppress power consumption of the entire UIM card.

より詳しくは、UIMカードの通信バスに、何らの信号が入出力されなくなった時(無信号状態)から3ms経過した後、さらに無信号状態が7ms経過した場合(無信号状態から10ms経過後)に、上記低消費電力状態へ移行するように定義されている(例えば、非特許文献1)。   More specifically, when no signal is input to or output from the UIM card communication bus (no signal state) after 3 ms, and no signal state has elapsed for 7 ms (after 10 ms from the no signal state) Are defined to shift to the low power consumption state (for example, Non-Patent Document 1).

特開2004−139207号公報JP 2004-139207 A

Universal Bus Specification Revision 2.0(April 27 2000)Universal Bus Specification Revision 2.0 (April 27 2000)

しかしながら、上記USB規格の通信では、低消費電力状態へ移行する期間については定義されているが、当該期間におけるUIMカードの具体的な動作については何ら規定されていない。   However, in the USB standard communication, a period for shifting to the low power consumption state is defined, but no specific operation of the UIM card in the period is defined.

従って、上記低消費電力状態へ移行する期間において、UIMカードに対して処理命令が新たに入力された場合、かかる入力を受けたICカードが行う動作内容は、UIMカード開発者の設定に委ねられていた。   Therefore, when a processing command is newly input to the UIM card during the period of transition to the low power consumption state, the operation content performed by the IC card that has received the input is left to the setting of the UIM card developer. It was.

例えば、上記処理命令の一例として、不揮発性メモリへの書込みがある。不揮発性メモリへの書込み処理処理は、UIMカードにおいて多くの時間を消費するものである。   For example, as an example of the processing instruction, there is writing to a nonvolatile memory. The writing process to the non-volatile memory consumes a lot of time in the UIM card.

そして、かかる処理が上記低消費電力状態へ移行する期間において入力された場合、当該処理を受け入れて実行すると設定された場合には、正常に書込みが行えず以降の正常な動作の妨げとなってしまう。   If such processing is input during the transition to the low power consumption state, and if the processing is set to be accepted and executed, writing cannot be performed normally and hinders normal operation thereafter. End up.

一方、かかる処理が上記低消費電力へ移行する期間において入力された場合、当該処理を受け入れず、上記低消費電力へ移行する期間の経過を待って、当該低消費電力状態へ移行すると設定された場合には、上記処理を停止するタイミングを必要以上に早めてしまう虞がある。   On the other hand, when such a process is input in the period for shifting to the low power consumption, the process is not accepted, and it is set to shift to the low power consumption state after waiting for the period to shift to the low power consumption. In some cases, there is a risk that the timing for stopping the above processing will be advanced more than necessary.

そこで、本発明は条規格問題点に鑑みてなされたものであり、その目的の一例は、多くの処理を迅速かつ確実に実行することができるICチップ及びデータ処理方法等を提供することである。   Therefore, the present invention has been made in view of the problems of the standards, and an example of the purpose is to provide an IC chip, a data processing method, and the like that can perform many processes quickly and reliably. .

上記の課題を解決するために、請求項1に記載のICチップは、外部から入力される信号に基づいて複数の処理を実行し、前記処理の種類と、前記処理の完了に必要な処理時間とを対応付けて記憶する記憶部を有するICチップであって、前記信号の入力状態を監視する監視手段と、前記信号の入力がない無信号状態から前記無信号状態が継続する経過時間を計時する計時手段と、前記経過時間が第1の閾値を超えたと計時された場合に、前記ICチップを、低消費電力状態へ移行させる準備を行う期間である低消費電力準備期間へ移行する準備期間移行手段と、前記計時手段によって、前記低消費電力準備期間へ移行してから前記経過時間が第2の閾値を超えたと計時された場合に、前記ICチップを低消費電力状態へ移行させる低消費電力移行手段と、前記低消費電力準備期間に、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合に、前記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内に、完了可能な一又は複数の前記処理を実行する実行手段と、を備える。   In order to solve the above-described problem, the IC chip according to claim 1 executes a plurality of processes based on a signal input from the outside, and the type of the process and a processing time required for the completion of the process And a monitoring unit that monitors the input state of the signal, and counts the elapsed time that the no-signal state continues from the no-signal state without the signal input. And a preparation period for transitioning to a low power consumption preparation period, which is a period for preparing the IC chip for transition to a low power consumption state when the elapsed time is measured to exceed a first threshold. Low power consumption that causes the IC chip to transition to a low power consumption state when the elapsed time exceeds the second threshold after the transition to the low power consumption preparation period by the transition means and the time counting means Electric When a signal indicating an instruction to execute a plurality of processes whose execution order is set in advance is input during the low power consumption preparation period, the low power consumption from the time when the signal is input Execution means for executing one or a plurality of the processes that can be completed within the remaining time until the transition to the state.

この発明によれば、ICチップは、信号の入力がない無信号状態から前記無信号状態が継続する経過時間が第1の閾値を超えた場合に、低消費電力準備期間へ移行させ、前記経過時間が第2の閾値を超えた場合に、低消費電力状態へ移行させ、前記低消費電力準備期間に、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合に、前記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内に、完了可能な一又は複数の前記処理を実行することができる。   According to the present invention, the IC chip shifts to the low power consumption preparation period when the elapsed time in which the no-signal state continues from the no-signal state in which no signal is input exceeds the first threshold, When the time exceeds the second threshold, a signal indicating an instruction to execute a plurality of the processes in which the execution order is set in advance is input during the low power consumption preparation period. In this case, one or a plurality of the processes that can be completed can be executed within the remaining time from the time when the signal is input to the transition to the low power consumption state.

従って、ICチップは、低消費電力準備期間内に完了可能な一又は複数の処理を実行するため、多くの処理を迅速かつ確実に実行することができる。   Accordingly, since the IC chip executes one or a plurality of processes that can be completed within the low power consumption preparation period, many processes can be performed quickly and reliably.

請求項2に記載のICチップは、請求項1に記載のICチップにおいて、前記実行手段は、前記残り時間が、前記順番に従って実行すべき複数の処理として設定された当該処理に対応付けられた各処理時間のうち最大の処理時間よりも大きい場合に、前記順番に従って一又は複数の前記処理を実行する。   The IC chip according to claim 2 is the IC chip according to claim 1, wherein the execution unit associates the remaining time with the process set as a plurality of processes to be executed according to the order. When each processing time is longer than the maximum processing time, one or a plurality of the processes are executed according to the order.

従って、ICチップは、記憶された処理時間のうち一の前記処理時間と前記残り時間を比較し、実行すべき処理を決定するため、処理負担が非常に軽く、容易に実装することができる。また、簡便な構成で、多くの処理を迅速かつ確実に実行することができる。   Therefore, the IC chip compares the processing time of one of the stored processing times with the remaining time and determines the processing to be executed, so that the processing load is very light and can be easily mounted. In addition, many processes can be executed quickly and reliably with a simple configuration.

請求項3に記載のICチップは、請求項1に記載のICチップにおいて、前記実行手段は、前記残り時間が、前記順番に従って次に実行すべき処理として設定された当該処理に対応付けられた処理時間よりも大きい場合に、当該処理を実行する。   The IC chip according to claim 3 is the IC chip according to claim 1, wherein the execution unit associates the remaining time with the process set as a process to be executed next according to the order. When it is longer than the processing time, the processing is executed.

従って、ICチップは、記憶された処理時間のうち、前記順番に従って次に実行すべき処理に対応付けられた処理時間と残り時間を比較し、実行すべき処理を決定するため、より多くの処理を迅速かつ確実に実行することができる。   Therefore, the IC chip compares the remaining processing time with the processing time associated with the processing to be executed next in the order among the stored processing times, and determines the processing to be executed. Can be executed quickly and reliably.

請求項4に記載のICチップは、請求項1に記載のICチップにおいて、前記実行手段は、前記残り時間が、前記順番に従って次に実行すべき処理として設定された当該処理に対応付けられた処理時間よりも小さい場合に、当該順番に従って実行すべき処理として設定された他の処理に対応付けられた処理時間のうち、当該残り時間よりも小さい処理時間を選択し、当該処理時間が対応付けられた処理を実行する。   The IC chip according to claim 4 is the IC chip according to claim 1, wherein the execution unit associates the remaining time with the process set as a process to be executed next according to the order. If the processing time is smaller than the processing time, the processing time smaller than the remaining time is selected from the processing times associated with the other processing set as the processing to be executed according to the order, and the processing time is associated. Execute the specified process.

従って、ICチップは、残り時間内に完了することができる処理を全て実行するため、さらに多くの処理を迅速かつ確実に、実行することができる。   Therefore, since the IC chip executes all the processes that can be completed within the remaining time, more processes can be performed quickly and reliably.

請求項5に記載のICチップは、請求項1乃至4の何れか一項に記載のICチップであって、前記ICチップは、USB通信規格に準拠したデータ通信に対応する。   An IC chip according to a fifth aspect is the IC chip according to any one of the first to fourth aspects, wherein the IC chip corresponds to data communication conforming to a USB communication standard.

請求項6に記載のICカードは、請求項1乃至5の何れか一項に記載のICチップと、ICカード基体と、を備える。   An IC card according to a sixth aspect includes the IC chip according to any one of the first to fifth aspects, and an IC card base.

請求項7に記載のデータ処理方法は、外部から入力される信号に基づいて複数の処理を実行し、前記処理の種類と、前記処理の完了に必要な処理時間とを対応付けて記憶する記憶部を有するICチップにおけるデータ処理方法であって、前記信号の入力状態を監視する監視工程と、前記信号の入力がない無信号状態から前記無信号状態が継続する経過時間を計時する計時工程と、前記経過時間が第1の閾値を超えたと計時された場合に、前記ICチップを、低消費電力状態へ移行させる準備を行う期間である低消費電力準備期間へ移行する準備期間移行工程と、前記計時手段によって、前記低消費電力準備期間へ移行してから前記経過時間が第2の閾値を超えたと計時された場合に、前記ICチップを低消費電力状態へ移行させる低消費電力移行工程と、前記低消費電力準備期間に、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合に、前記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内に、完了可能な一又は複数の前記処理を実行する実行工程と、を有する。   The data processing method according to claim 7, wherein a plurality of processes are executed based on a signal input from the outside, and the type of the process and a processing time required to complete the process are stored in association with each other A data processing method in an IC chip having a section, a monitoring step of monitoring the input state of the signal, and a timing step of measuring an elapsed time from the no-signal state where no signal is input to the no-signal state continues A preparation period transition step of transitioning to the low power consumption preparation period, which is a period of preparing to transition the IC chip to the low power consumption state when the elapsed time is measured to exceed the first threshold; Low power consumption that causes the IC chip to transition to a low power consumption state when the elapsed time is measured by the timing means to have exceeded a second threshold after transition to the low power consumption preparation period When a signal indicating an instruction to execute a plurality of processes whose execution order is set in advance is input during a row process and the low power consumption preparation period, the low power consumption from the time when the signal is input An execution step of executing one or a plurality of the processes that can be completed within the remaining time until the transition to the state.

請求項8に記載のデータ処理プログラムは、外部から入力される信号に基づいて複数の処理を実行し、前記処理の種類と、前記処理の完了に必要な処理時間とを対応付けて記憶する記憶部を有するICチップが有するコンピュータを、前記信号の入力状態を監視する監視手段、前記信号の入力がない無信号状態から前記無信号状態が継続する経過時間を計時する計時手段、前記経過時間が第1の閾値を超えたと計時された場合に、前記ICチップを、低消費電力状態へ移行させる準備を行う期間である低消費電力準備期間へ移行する準備期間移行手段、前記計時手段によって、前記低消費電力準備期間へ移行してから前記経過時間が第2の閾値を超えたと計時された場合に、前記ICチップを低消費電力状態へ移行させる低消費電力移行手段、前記低消費電力準備期間に、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合に、前記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内に、完了可能な一又は複数の前記処理を実行する実行手段、として機能させる。   A data processing program according to claim 8, wherein the data processing program executes a plurality of processes based on a signal input from the outside, and stores the type of the process and the processing time required to complete the process in association with each other A monitoring means for monitoring the input state of the signal, a timing means for measuring an elapsed time in which the no-signal state continues from a no-signal state where no signal is input, and the elapsed time. When it is timed that the first threshold value has been exceeded, the preparation period transition means for transitioning to the low power consumption preparation period, which is a period for preparing the IC chip to transition to the low power consumption state, the timing means, Low power consumption transition means for transitioning the IC chip to a low power consumption state when it is timed that the elapsed time has exceeded the second threshold after the transition to the low power consumption preparation period In the low power consumption preparation period, when a signal indicating an instruction to execute a plurality of processes whose execution order is set in advance is input, the state shifts to the low power consumption state from the time when the signal is input. In the remaining time up to, it is made to function as an execution means for executing one or a plurality of the processes that can be completed.

以上のように、本発明によれば、ICチップは、信号の入力がない無信号状態から前記無信号状態が継続する経過時間が第1の閾値を超えた場合に、低消費電力準備期間へ移行させ、前記経過時間が第2の閾値を超えた場合に、低消費電力状態へ移行させ、前記低消費電力準備期間に、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合に、前記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内に、完了可能な一又は複数の前記処理を実行するため、多くの処理を迅速かつ確実に実行することができる。   As described above, according to the present invention, the IC chip enters the low power consumption preparation period when the elapsed time in which the no-signal state continues from the no-signal state in which no signal is input exceeds the first threshold value. When the elapsed time exceeds a second threshold value, the process shifts to a low power consumption state, and in the low power consumption preparation period, an instruction to execute a plurality of processes whose execution order is set in advance is executed. In order to execute one or a plurality of the processes that can be completed within the remaining time from the time when the signal is input to the transition to the low power consumption state when the signal shown in FIG. It can be executed quickly and reliably.

本願の実施形態にかかるICカード8の構成及び機能概要を示すブロック図である。It is a block diagram which shows the structure and function outline | summary of IC card 8 concerning embodiment of this application. CPU6の動作概要を示す図である。It is a figure which shows the operation | movement outline | summary of CPU6. 前記テーブルと上記完了可能か否かの判断の一例である処理フロー(処理例)の概要を示す図である。It is a figure which shows the outline | summary of the process flow (processing example) which is an example of the judgment of the said table and the said completion completion. 実施形態(I)におけるCPU6の動作を示すフローチャートである。It is a flowchart which shows operation | movement of CPU6 in embodiment (I). 実施形態(II)におけるCPU6の動作を示すフローチャートである。It is a flowchart which shows operation | movement of CPU6 in embodiment (II). 実施形態(III)におけるCPU6の動作を示すフローチャートである。It is a flowchart which shows operation | movement of CPU6 in embodiment (III).

以下、本願の最良の実施形態を添付図面に基づいて説明する。なお、以下に説明する実施の形態は、外部装置との間でデータの送受信及び動作の実行等を実現するICカードに対して本願を適用した場合の実施形態である。   Hereinafter, the best embodiment of the present application will be described with reference to the accompanying drawings. The embodiment described below is an embodiment when the present application is applied to an IC card that realizes transmission / reception of data to / from an external device, execution of operations, and the like.

まず、本願の実施形態にかかる、外部装置との間でデータの送受信及び動作の実行等を実現するICカードの構成及び機能概要について、図1を用いて説明する。   First, the configuration and functional outline of an IC card that realizes transmission / reception of data to / from an external device and execution of operations according to the embodiment of the present application will be described with reference to FIG.

図1は、本願の実施形態にかかるICカードの構成及び機能概要を示すブロック図である。   FIG. 1 is a block diagram showing an outline of the configuration and functions of an IC card according to an embodiment of the present application.

本実施例にかかるICカードは、外部としての図示しない外部装置から、図示しないリーダライタ装置を介して、入力される動作に必要な電力及び信号等に応じて、当該信号が示す処理(例えば、データ読出処理等)を実行するようになっている。   The IC card according to the present embodiment has a process (for example, processing indicated by the signal) according to power and signals necessary for an operation input from an external device (not shown) as an external device via a reader / writer device (not shown). Data read processing etc.) are executed.

具体的には、図1に示すように、ICカード8は、ICチップ1をICカード基体7に備えて構成されている。そして、ICチップ1は、インターフェース2、ROM(Read Only Memory)3、RAM(Random Access Memory)4、EEPROM5、CPU(Central Processing Unit)6等を備えて構成されている。   Specifically, as shown in FIG. 1, the IC card 8 includes the IC chip 1 on the IC card base 7. The IC chip 1 includes an interface 2, a ROM (Read Only Memory) 3, a RAM (Random Access Memory) 4, an EEPROM 5, a CPU (Central Processing Unit) 6, and the like.

インターフェース2は、上述したデータ等を送受信するための入出力ポート(port)であり、CPU6は、インターフェース2を介して上記外部装置等と交信する。   The interface 2 is an input / output port (port) for transmitting and receiving the above-described data and the like, and the CPU 6 communicates with the external device and the like via the interface 2.

より具体的には、インターフェース2は、ISO/IEC7816等によって定められた、C1〜C8の8個の端子を有する。   More specifically, the interface 2 has eight terminals C1 to C8 defined by ISO / IEC7816 or the like.

かかるISO/IEC7816では、C1は電源端子VCC、C2はリセット端子RST、C3はクロック端子CLK、C5はグランド端子GND、C6はプログラム用可変電圧供給端子VPP、C7は入出力端子I/O用として用いられるように定められている。   In such ISO / IEC7816, C1 is a power supply terminal VCC, C2 is a reset terminal RST, C3 is a clock terminal CLK, C5 is a ground terminal GND, C6 is a program variable voltage supply terminal VPP, and C7 is an input / output terminal I / O. It is stipulated to be used.

さらに、本実施形態のICカード8は、外部との大容量かつ高速通信を可能とすべく、USBの通信(伝送)プロトコルをサポート(USB通信規格に準拠)している。   Furthermore, the IC card 8 of the present embodiment supports a USB communication (transmission) protocol (based on the USB communication standard) so as to enable high-capacity and high-speed communication with the outside.

かかるUSB通信の規格は、公知技術であるため詳しい説明は省略するが、Universal Bus Specification Revision 2.0(April 27 2000)によって標準化されており、USB通信規格に準拠したICカードでは、前記規格を遵守するようになっている。   The USB communication standard is a well-known technique and will not be described in detail, but has been standardized by Universal Bus Specification Revision 2.0 (April 27 2000). It is like that.

そして、USB通信規格に準拠したICカード8では、かかるインターフェース2の端子のうち、C4をIC_DPと、C8をIC_DMとして用いて、USBのプロトコルに基づいたデータの送受信が可能となっている。   The IC card 8 compliant with the USB communication standard can transmit and receive data based on the USB protocol using C4 as IC_DP and C8 as IC_DM among the terminals of the interface 2.

さらに、上記USB通信規格では、ICカード8全体の消費電力を抑えるために、低消費電力状態(サスペンド)へ移行させるモード(サスペンドモード)を備えるよう定義されている。   Further, the USB communication standard is defined to include a mode (suspend mode) for shifting to a low power consumption state (suspend) in order to suppress power consumption of the entire IC card 8.

具体的には、インターフェース2に、何らの信号が入出力されなくなった時(無信号状態)から3ms経過した後、さらに無信号状態が7ms経過した場合(無信号状態から10ms経過後)に、ICカード8を、上記低消費電力状態へ移行させるように定義されている。   Specifically, after 3 ms have passed from when no signal is input to or output from the interface 2 (no signal state), and after 7 ms of no signal state (after 10 ms from the no signal state), It is defined that the IC card 8 is shifted to the low power consumption state.

一方、上記USB規格の通信では、低消費電力状態へ移行する期間については定義されているが、当該期間におけるICカード8の具体的な動作については何ら規定されていない。   On the other hand, in the USB standard communication, the period for shifting to the low power consumption state is defined, but the specific operation of the IC card 8 in the period is not defined at all.

ROM3には、CPU6によって実行されるべきプログラムが記憶されており、CPU6は、このプログラムに基づいてICチップ1を統括的に制御すると共に、上記コマンドが示す動作を実行させるようになっている。   The ROM 3 stores a program to be executed by the CPU 6, and the CPU 6 controls the IC chip 1 based on the program and executes an operation indicated by the command.

RAM4は、CPU6がICチップ1を統括的に制御するために作業領域として使用するメモリである。   The RAM 4 is a memory used as a work area for the CPU 6 to control the IC chip 1 in an integrated manner.

本願の記憶部の一例としてのEEPROM5は、不揮発性半導体メモリの一種であり、記憶領域に記憶されているデータを消去し、何度でも再記憶ができるPROM(Programmable Rom)である。   The EEPROM 5 as an example of the storage unit of the present application is a kind of nonvolatile semiconductor memory, and is a PROM (Programmable Rom) that can erase data stored in the storage area and re-store it any number of times.

さらに、EEPROM5には、上記処理の種類(例えば、データの記憶、読出し等の種類)と、当該処理の完了に必要な処理時間とが対応付けて記憶されたテーブルが予め記憶されている。なお、テーブルの詳細については後述するが、EEPROM5のみならず、ROM3に記憶するようにしてもよい。   Further, the EEPROM 5 stores in advance a table in which the type of processing (for example, the type of data storage, reading, etc.) and the processing time required to complete the processing are stored in association with each other. Although details of the table will be described later, the table may be stored not only in the EEPROM 5 but also in the ROM 3.

そして、上記テーブルの内容は、追加的に変更及び更新することが可能となっている。   The contents of the table can be additionally changed and updated.

CPU6は、上述したようにプログラムに基づいてICチップ1全体の動作を統括的に制御するとともに、本願の監視手段、計時手段、準備期間移行手段、低消費電力移行手段及び実行手段として機能する。   The CPU 6 controls the overall operation of the IC chip 1 based on the program as described above, and also functions as a monitoring unit, a timing unit, a preparation period transition unit, a low power consumption transition unit, and an execution unit of the present application.

次に、図2〜6を用いて、CPU6の動作を説明する。   Next, the operation of the CPU 6 will be described with reference to FIGS.

本実施形態におけるCPU6は、信号の入力がない無信号状態から前記無信号状態が継続する経過時間が第1の閾値の一例としての3msを超えた場合に、後述する低消費電力準備期間へ移行させ、前記経過時間が第2の閾値の一例としての7msを超えた場合に、低消費電力状態へ移行するようになっている。   In the present embodiment, the CPU 6 shifts to a low power consumption preparation period, which will be described later, when an elapsed time from the no-signal state in which no signal is input exceeds 3 ms as an example of the first threshold value. When the elapsed time exceeds 7 ms as an example of the second threshold value, the low power consumption state is entered.

そして、CPU6は、上記低消費電力準備期間に、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合に、前記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内に、完了可能な一又は複数の前記処理を実行するようになっている。   Then, when a signal indicating an instruction to execute a plurality of processes whose execution order is set in advance is input during the low power consumption preparation period, the CPU 6 starts the low power consumption from the time when the signal is input. One or more of the processes that can be completed are executed within the remaining time until the power state is entered.

以下、上記動作を、詳細に説明する。   Hereinafter, the above operation will be described in detail.

まず、本願のCPU6の動作概要について図2を用いて説明する。   First, an outline of the operation of the CPU 6 of the present application will be described with reference to FIG.

図2は、本願のCPU6の動作概要について示す図である。   FIG. 2 is a diagram showing an outline of the operation of the CPU 6 of the present application.

上述したように、CPU6は、各インターフェース2の端子の信号の入力状態を監視しており、図2に示すグラフには、CPU6によって監視された信号の状態が示されている。   As described above, the CPU 6 monitors the input state of the signal at the terminal of each interface 2, and the state of the signal monitored by the CPU 6 is shown in the graph shown in FIG.

具体的に、上記グラフでは、IC_DP(C4)の信号の状態はHigh状態、IC_DM(C8)の信号の状態はLow状態であることが、それぞれ示されている。   Specifically, the graph shows that the state of the signal of IC_DP (C4) is the High state and the state of the signal of IC_DM (C8) is the Low state.

ここで、上述したUSB通信規格では、上述した無信号状態の詳細について定義されている。具体的には、無信号状態とは、「IC_DPの信号の状態がHigh状態、IC_DM(C8)の信号の状態がLow状態である状態を示す」ことと定義されている。   Here, in the above-described USB communication standard, the details of the above-described no-signal state are defined. Specifically, the no-signal state is defined as “a state in which the signal state of the IC_DP is a high state and the state of the signal of the IC_DM (C8) is a low state”.

上記定義に鑑みると、図2に示す信号の入力状態は、無信号状態であることが把握される。   In view of the above definition, it is understood that the signal input state shown in FIG. 2 is a no-signal state.

CPU6は、上記無信号状態から3ms経過する前までに(図2(A))、何らかの処理を実行する指示を示す信号が入力された場合には、かかる信号が示す処理を実行するようになっている。   If a signal indicating an instruction to execute some processing is input before 3 ms elapses from the no-signal state (FIG. 2A), the CPU 6 executes the processing indicated by the signal. ing.

そして、従来では、上記3msを経過後、無信号状態から10ms経過するまで(低消費電力状態へ移行するまで)(図2(A)〜(C)の期間)のCPU6の動作については、何ら定義されていなかった。   Conventionally, after the elapse of 3 ms, until 10 ms elapses from the no-signal state (until the shift to the low power consumption state) (period of FIGS. 2A to 2C), there is no operation. It was not defined.

本実施形態では、CPU6は、例えばタイマー等によって、上記無信号状態が継続する時間を計時している。   In the present embodiment, the CPU 6 measures the time for which the no-signal state continues, for example, by a timer or the like.

また、本実施形態では、上記3msを経過後、上記低消費電力状態へ移行するまで(前記3ms経過後、さらに7ms経過するまでの)の間を、低消費電力準備期間(図2(A)〜(C)の期間)と定義している。   Further, in the present embodiment, after the elapse of 3 ms, the low power consumption preparation period (FIG. 2A) is taken until the transition to the low power consumption state (after the elapse of 3 ms and further elapse of 7 ms). ~ (C) period).

そして、上記低消費電力準備期間に、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合に、CPU6は、上記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内(図2(B)〜(C)の期間)に、完了可能な一又は複数の前記処理を実行するようになっている。   In the low power consumption preparation period, when a signal indicating an instruction to execute a plurality of processes whose execution order is preset is input, the CPU 6 starts the low power consumption from the time when the signal is input. One or a plurality of the processes that can be completed are executed within the remaining time (the period shown in FIGS. 2B to 2C) until the power state is shifted.

具体的に、CPU6は、EPPROM5に記憶されたテーブルを参照して、前記信号によって実行する指示が示された処理の完了に必要な処理時間と前記残り時間を比較する。   Specifically, the CPU 6 refers to the table stored in the EPPROM 5 and compares the remaining time with the processing time required for completing the processing indicated by the signal to be executed.

ここで、上記CPU6が行う上記完了可能か否かの判断の一例について、図3を用いて詳細に説明する。   Here, an example of determining whether or not the completion can be performed by the CPU 6 will be described in detail with reference to FIG.

図3は、前記テーブルと上記完了可能か否かの判断の一例である処理フロー(処理例)の概要を示す図である。   FIG. 3 is a diagram showing an outline of the processing flow (processing example) as an example of the determination of the table and whether or not the completion is possible.

図3において、表Aは上記テーブルを、表Bは上記完了可能か否かの判断の一例である処理フロー(処理例)をそれぞれ示している。   In FIG. 3, Table A shows the above table, and Table B shows a processing flow (processing example) that is an example of determining whether or not the above completion is possible.

表Aには、上記処理の種類として処理Aと、処理Aの完了に必要な時間(処理時間)として3msが、それぞれ対応付けられ、テーブルとして記憶されることが示されている。同様に、処理Bと処理Bの処理時間として3msが、処理Cと処理Cの処理時間として5msが、処理Dと処理Dの処理時間として4msが、処理Eと処理Eの処理時間として1msが、それぞれ対応付けられて記憶されている。   Table A shows that process A is stored as a table in association with process A and 3 ms as the time required to complete process A (process time). Similarly, the processing time of processing B and processing B is 3 ms, the processing time of processing C and processing C is 5 ms, the processing time of processing D and processing D is 4 ms, and the processing time of processing E and processing E is 1 ms. Are stored in association with each other.

表Bには、低消費電力準備期間に移行した直後(図2(A))に、上記完了可能か否かの判断の一例である処理フローが示されている。   Table B shows a processing flow as an example of determining whether or not the completion is possible immediately after shifting to the low power consumption preparation period (FIG. 2A).

表Bが示す上記完了可能か否かの判断の一例である処理フローにおいて、処理順及び処理内容には、入力された実行する順番が予め設定された複数の前記処理を実行する指示を示す信号に応じて、実行されるべき処理が、早いものから順に列挙されされている。   In the processing flow that is an example of the determination as to whether or not the completion can be performed as shown in Table B, a signal indicating an instruction to execute a plurality of the processes in which the input execution order is set in advance in the processing order and processing content Accordingly, the processes to be executed are listed in order from the earliest.

具体的には、処理A、処理E、処理C、処理B、次いで、処理Dの順番で実行するように設定された前記信号が入力された結果、表Bでは、かかる順番に応じて処理を実行する順番が早いもの(処理A)から順に列挙されている。   Specifically, as a result of inputting the signals set to be executed in the order of process A, process E, process C, process B, and then process D, Table B performs processes according to the order. Listed in descending order of execution (processing A).

経過時間には、上記信号が入力された時点(図2(A))から、かかる順番に応じて処理を実行した場合の経過時間が示されている。換言すれば、かかる経過時間は、完了した処理の処理時間の累積和を示している。   The elapsed time indicates the elapsed time when processing is executed in accordance with the order from the time when the signal is input (FIG. 2A). In other words, the elapsed time indicates the cumulative sum of the processing times of the completed processing.

表Bでは、上記信号が入力された時点を基準に、上記順番に従って処理Aが完了すると経過時間は3ms、処理Eが完了すると経過時間は4ms、処理Cが完了すると経過時間は9ms、処理Bが完了すると経過時間は12ms、処理Dが完了すると経過時間は16msであることをそれぞれ示されている。   In Table B, with respect to the time when the signal is input, the elapsed time is 3 ms when the process A is completed according to the above order, the elapsed time is 4 ms when the process E is completed, the elapsed time is 9 ms when the process C is completed, and the process B When the process is completed, the elapsed time is 12 ms, and when the process D is completed, the elapsed time is 16 ms.

残り時間には、上記順番に応じて処理を完了後、上記低消費電力状態へ移行するまでの期間が示されている。   The remaining time indicates a period from the completion of the processing according to the order to the transition to the low power consumption state.

表Bでは、処理Aを完了後は上記低消費電力状態へ移行するまでの期間が4msであることが、処理Eを完了後は上記低消費電力状態へ移行するまでの期間が3msであることが、それぞれ示されている。   In Table B, the period until the transition to the low power consumption state after completion of the process A is 4 ms, and the period until the transition to the low power consumption state after the completion of the process E is 3 ms. Are shown respectively.

また、CPU6が処理Cを完了すると、上記低消費電力状態へ移行するまでの期間を既に超えてしまう。従って、残り時間には、当該超えた時間である2msが、−2msとして示されるようになっている。   Further, when the CPU 6 completes the process C, the period until the transition to the low power consumption state is already exceeded. Accordingly, in the remaining time, 2 ms which is the time exceeding the time is indicated as -2 ms.

同様に、CPU6が処理Bを完了すると上記低消費電力状態へ移行してから5msが経過するため−5msが、CPU6が処理Bを完了すると上記低消費電力状態へ移行してから9msが経過するため−9msがそれぞれ示されるようになっている。   Similarly, when the CPU 6 completes the process B, 5 ms elapses after shifting to the low power consumption state, so that −5 ms elapses, and when the CPU 6 completes the process B, 9 ms elapses after shifting to the low power consumption state. Therefore, -9 ms is indicated.

CPU6は、上述したように前記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内に、完了可能な一又は複数の前記処理を実行ようになっており、かかる実行の一例として、例えば、処理Aのみを実行する、又は、処理A及び処理Eのみを実行する等、種々の実施形態が想定される。   As described above, the CPU 6 executes one or a plurality of the processes that can be completed within the remaining time from when the signal is input until the transition to the low power consumption state. As an example, various embodiments, such as executing only the process A or executing only the process A and the process E, are envisaged.

以下、種々の実行形態の一例について詳細に説明する。   Hereinafter, examples of various execution modes will be described in detail.

(1)実施形態(I)
実施形態(I)では、CPU6は、低消費電力状態へ移行するまでの残り時間が、順番に従って実行すべき複数の処理として設定された当該処理に対応付けられた各処理時間のうち最大の処理時間よりも大きい場合に、前記順番に従って一又は複数の前記処理を実行するようになっている。
(1) Embodiment (I)
In the embodiment (I), the CPU 6 determines that the remaining time until shifting to the low power consumption state is the maximum processing time among the processing times associated with the processing set as a plurality of processing to be executed according to the order. When the time is larger than the time, one or a plurality of the processes are executed according to the order.

かかる実施形態について、図3及び図4を用いて詳細に説明する。   Such an embodiment will be described in detail with reference to FIGS.

図4は、実施形態(I)におけるCPU6の動作を示すフローチャートである。   FIG. 4 is a flowchart showing the operation of the CPU 6 in the embodiment (I).

まず、CPU6は、完了した処理がある場合には、上記タイマーをリセットし(ステップS1)、各インターフェース2の端子の信号の入力状態を監視する(ステップS2)。   First, when there is a completed process, the CPU 6 resets the timer (step S1), and monitors the input state of the signal at the terminal of each interface 2 (step S2).

そして、処理を実行する指示を示す信号の入力があった場合には(ステップS2:YES)、CPU6は、かかる処理を実行する。   When a signal indicating an instruction to execute the process is input (step S2: YES), the CPU 6 executes the process.

一方、CPU6が、信号の入力がない状態(即ち、無信号状態)を監視した場合であって(ステップS2:NO)、かかる無信号状態が3ms経過したことを(例えば、上記タイマーによって)計時した場合には(ステップS3:YES)、CPU6は、図3表Aに示すテーブルを参照して、低消費電力状態へ移行するまでの残り時間が、処理の完了に必要な処理時間のうち最大の時間(最大処理時間。図3表Aでは処理Cの処理時間の5msが最大処理時間となる。)よりも大きいか否かを判断する(ステップS4)。   On the other hand, when the CPU 6 monitors a state in which no signal is input (that is, no signal state) (step S2: NO), it is timed (for example, by the timer) that the no signal state has elapsed for 3 ms. In the case (step S3: YES), the CPU 6 refers to the table shown in FIG. 3A and the remaining time until shifting to the low power consumption state is the maximum of the processing time required for the completion of the processing. (The maximum processing time. In Table A in FIG. 3, 5 ms of the processing time of the processing C is the maximum processing time) is determined (step S4).

そして、CPU6が、上記残り時間が上記最大時間よりも大きいと判断した場合であって(ステップS4:YES)、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合には(ステップS5:YES)、CPU6は、かかる処理を実行し(ステップS6)、ステップS4へ移行するようになっている。   Then, when the CPU 6 determines that the remaining time is longer than the maximum time (step S4: YES), a signal indicating an instruction to execute a plurality of processes in which the execution order is set in advance is input. If it has been performed (step S5: YES), the CPU 6 executes such processing (step S6) and proceeds to step S4.

一方、CPU6が、上記残り時間が上記最大時間よりも小さいと判断した場合には(ステップS4:NO)、CPU6は、低消費電力状態へ移行する。   On the other hand, when the CPU 6 determines that the remaining time is shorter than the maximum time (step S4: NO), the CPU 6 shifts to a low power consumption state.

実施形態(I)では、CPU6は、「低消費電力状態へ移行するまでの残り時間」とテーブルによって記憶される「最大処理時間」のみを比較して、低消費電力状態へ移行するようになっているため、CPU6が行う処理が軽く、かつ、容易にICチップ1へ実装することができる。   In the embodiment (I), the CPU 6 compares the “remaining time until shifting to the low power consumption state” with the “maximum processing time” stored in the table, and shifts to the low power consumption state. Therefore, the processing performed by the CPU 6 is light and can be easily mounted on the IC chip 1.

(2)実施形態(II)
実施形態(II)では、CPU6は、前記低消費電力状態へ移行するまでの残り時間が、前記順番に従って次に実行すべき処理として設定された当該処理に対応付けられた処理時間よりも大きい場合に、当該処理を実行するようになっている。
(2) Embodiment (II)
In the embodiment (II), when the remaining time until the CPU 6 shifts to the low power consumption state is longer than the processing time associated with the processing set as the processing to be executed next according to the order In addition, the processing is executed.

かかる実施形態について、図3及び図5を用いて詳細に説明する。   Such an embodiment will be described in detail with reference to FIGS.

図5は、実施形態(II)におけるCPU6の動作を示すフローチャートである。   FIG. 5 is a flowchart showing the operation of the CPU 6 in the embodiment (II).

まず、CPU6は、完了した処理がある場合には、上記タイマーをリセットし(ステップS11)、各インターフェース2の端子の信号の入力状態を監視する(ステップS12)。   First, when there is a completed process, the CPU 6 resets the timer (step S11), and monitors the input state of the signal at the terminal of each interface 2 (step S12).

そして、処理を実行する指示を示す信号の入力があった場合には(ステップS12:YES)、CPU6は、かかる処理を実行する。   When a signal indicating an instruction to execute the process is input (step S12: YES), the CPU 6 executes the process.

一方、CPU6が、上記無信号状態を監視した場合であって(ステップS12:NO)、かかる無信号状態が3ms経過したことを計時した場合には(ステップS13:YES)、CPU6は、低消費電力準備期間へ移行する。   On the other hand, when the CPU 6 monitors the no-signal state (step S12: NO) and counts that the no-signal state has elapsed for 3 ms (step S13: YES), the CPU 6 reduces the power consumption. Transition to the power preparation period.

そして、上記低消費電力準備期間において、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合には(ステップS14:YES)、CPU6は、低消費電力状態へ移行するまでの残り時間が、上記順番に従って次に実行すべき処理として設定された当該処理に対応付けられた処理時間よりも大きいか否かを判断する(ステップS15)。   In the low power consumption preparation period, when a signal indicating an instruction to execute a plurality of processes whose execution order is set in advance is input (step S14: YES), the CPU 6 is in a low power consumption state. It is determined whether or not the remaining time until shifting to is longer than the processing time associated with the processing set as the processing to be executed next according to the above order (step S15).

具体的には、例えば、図3表Bに示す信号が入力された場合には、まず、CPU6は、上記残り時間が、一番初めに実行すべき処理である処理Aの処理時間よりも大きいか否かを判断する。   Specifically, for example, when the signal shown in Table B in FIG. 3 is input, first, the CPU 6 has the remaining time longer than the processing time of the processing A that is the processing to be executed first. Determine whether or not.

そして、CPU6が、上記処理時間よりも上記残り時間が大きいと判断した場合には(ステップS15:YES)、CPU6は、かかる処理(図3表Bの場合にあっては処理A)を実行する(ステップS16)。   When the CPU 6 determines that the remaining time is longer than the processing time (step S15: YES), the CPU 6 executes the processing (processing A in the case of FIG. 3B). (Step S16).

そして、CPU6は、さらに実行すべき処理があるか否かを判断するようになっている(ステップS14へ移行)。   Then, the CPU 6 determines whether or not there is further processing to be executed (shift to step S14).

具体的には、上述した図3表Bに示す信号が入力された場合では、処理Aの実行後の残り時間は、4msとなる。従って、CPU6は、当該残り時間が、次に実行すべき処理である処理Eの処理時間よりも大きいか否かを判断する。   Specifically, when the signal shown in Table B in FIG. 3 is input, the remaining time after execution of the process A is 4 ms. Therefore, the CPU 6 determines whether or not the remaining time is longer than the processing time of the process E that is the process to be executed next.

図3表Bの場合では、かかる処理Eの処理時間は1msであるため、上記残り時間の方が大きいことが示されている。   In the case of FIG. 3B, since the processing time of the processing E is 1 ms, it is shown that the remaining time is longer.

従って、CPU6は、処理Eを実行し、更にステップS14へ移行するようになっている。   Therefore, the CPU 6 executes the process E, and further proceeds to step S14.

一方、上記信号が入力されなかった場合には(ステップS14:NO)、CPU6は、上記残り時間が0となるか否か(換言すれば、上記7msが経過したか否か)を判断する(ステップS17)。   On the other hand, when the signal is not input (step S14: NO), the CPU 6 determines whether or not the remaining time becomes 0 (in other words, whether or not the 7 ms has passed) ( Step S17).

そして、CPU6が、当該残り時間が0となったと判断した場合には(ステップS17:YES)、CPU6は、低消費電力状態へ移行するようになっている。   When the CPU 6 determines that the remaining time is 0 (step S17: YES), the CPU 6 shifts to a low power consumption state.

また、CPU6が、上記残り時間が小さいと判断した場合にも(ステップS15:NO)、CPU6は、低消費電力状態へ移行する。   Even when the CPU 6 determines that the remaining time is short (step S15: NO), the CPU 6 shifts to a low power consumption state.

実施形態(II)では、CPU6は、「低消費電力状態へ移行するまでの残り時間」と、前記順番に従って次に実行すべき処理として設定された当該処理に対応付けられた処理時間とを比較し、当該残り時間内に次に実行すべき処理が実行可能である限り、追加的に処理を実行するため、より多くの処理を実行することができる。   In the embodiment (II), the CPU 6 compares the “remaining time until shifting to the low power consumption state” with the processing time associated with the processing set as the next processing to be executed according to the order. However, as long as the process to be executed next can be executed within the remaining time, the process is additionally executed, so that more processes can be executed.

(3)実施形態(III)
実施形態(III)では、CPU6は、低消費電力状態へ移行するまでの残り時間が、前記順番に従って次に実行すべき処理として設定された当該処理に対応付けられた処理時間よりも小さい場合に、当該順番に従って実行すべき処理として設定された他の処理に対応付けられた処理時間のうち、当該残り時間よりも小さい処理時間を選択し、当該処理時間が対応付けられた処理を実行するようになっている。
(3) Embodiment (III)
In the embodiment (III), when the remaining time until the transition to the low power consumption state is smaller than the processing time associated with the processing set as the processing to be executed next according to the order, the CPU 6 The processing time that is smaller than the remaining time is selected from the processing times associated with other processes that are set as processes that should be executed in accordance with the order, and the processing associated with the processing time is executed. It has become.

かかる実施形態について、図3及び図6を用いて詳細に説明する。   Such an embodiment will be described in detail with reference to FIGS.

図6は、実施形態(III)におけるCPU6の動作を示すフローチャートである。   FIG. 6 is a flowchart showing the operation of the CPU 6 in the embodiment (III).

まず、CPU6は、完了した処理がある場合には、上記タイマーをリセットし(ステップS21)、各インターフェース2の端子の信号の入力状態を監視する(ステップS22)。   First, when there is a completed process, the CPU 6 resets the timer (step S21) and monitors the input state of the signal at the terminal of each interface 2 (step S22).

そして、処理を実行する指示を示す信号の入力があった場合には(ステップS22:YES)、CPU6は、かかる処理を実行する。   When a signal indicating an instruction to execute the process is input (step S22: YES), the CPU 6 executes the process.

一方、CPU6が、上記無信号状態を監視した場合であって(ステップS22:NO)、かかる無信号状態が3ms経過したことを計時した場合には(ステップS23:YES)、CPU6は、低消費電力準備期間へ移行する。   On the other hand, when the CPU 6 monitors the no-signal state (step S22: NO) and counts that the no-signal state has elapsed for 3 ms (step S23: YES), the CPU 6 reduces the power consumption. Transition to the power preparation period.

そして、上記低消費電力準備期間において、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合には(ステップS24:YES)、CPU6は、低消費電力状態へ移行するまでの残り時間が、次に実行すべき処理の処理時間よりも大きいか否かを判断する(ステップS25)。   In the low power consumption preparation period, when a signal indicating an instruction to execute a plurality of processes whose execution order is set in advance is input (step S24: YES), the CPU 6 is in a low power consumption state. It is determined whether or not the remaining time until shifting to is longer than the processing time of the process to be executed next (step S25).

具体的には、例えば、図3表Bに示す信号が入力された場合には、まず、CPU6は、上記残り時間が、一番初めに実行すべき処理である処理Aの処理時間よりも大きいか否かを判断する。   Specifically, for example, when the signal shown in Table B in FIG. 3 is input, first, the CPU 6 has the remaining time longer than the processing time of the processing A that is the processing to be executed first. Determine whether or not.

そして、CPU6が、上記処理時間よりも上記残り時間の方が大きいと判断した場合には(ステップS25:YES)、CPU6は、かかる処理(図3表Bの場合にあっては処理A)を実行する(ステップS26)。   If the CPU 6 determines that the remaining time is longer than the processing time (step S25: YES), the CPU 6 performs this processing (processing A in the case of Table B in FIG. 3). Execute (step S26).

そして、CPU6は、さらに実行すべき処理があるか否かを判断するようになっている(ステップS24へ移行)。   Then, the CPU 6 determines whether or not there is further processing to be executed (shift to step S24).

一方、CPU6が、上記処理時間よりも上記残り時間の方が小さいと判断した場合には(ステップS25:NO)、CPU6は、前記順番に従って実行すべき処理として設定された他の処理に対応付けられた処理時間のうち、上記残り時間よりも小さい処理時間で完了することができる処理があるか否かを判断する(ステップS27)。   On the other hand, when the CPU 6 determines that the remaining time is smaller than the processing time (step S25: NO), the CPU 6 associates it with another process set as a process to be executed according to the order. It is determined whether or not there is a process that can be completed in a process time that is smaller than the remaining time among the given process times (step S27).

そして、CPU6が、上記完了できる処理が存在すると判断した場合には(ステップS27:YES)、CPU6は、当該処理を選択し、実行するようになっている(ステップS26)。   When the CPU 6 determines that there is a process that can be completed (step S27: YES), the CPU 6 selects and executes the process (step S26).

具体的には、例えば、図3表Bに示す信号が入力された場合であって、処理A及び処理Eまで完了していた場合を想定する。   Specifically, for example, a case is assumed where the signals shown in Table B in FIG. 3 are input and processing A and processing E have been completed.

かかる事案では、次に実行すべき処理は処理Cであるが、前記処理Cの処理時間は5msであり、現在の残り時間(3ms)よりも大きい。従って、CPU6は、前記残り時間である3ms以内で完了できる処理である処理Cを選択し、実行するようになっている。   In such a case, the process to be executed next is the process C, but the process time of the process C is 5 ms, which is longer than the current remaining time (3 ms). Accordingly, the CPU 6 selects and executes the process C that can be completed within the remaining time of 3 ms.

そして、CPU6は、ステップS24へ移行する。   Then, the CPU 6 proceeds to step S24.

一方、CPU6が、上記完了できる処理は存在しないと判断した場合には(ステップS27:NO)、CPU6は、低消費電力状態へ移行するようになっている。   On the other hand, when the CPU 6 determines that there is no process that can be completed (step S27: NO), the CPU 6 shifts to a low power consumption state.

また、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力されなかった場合には(ステップS24:NO)、CPU6は、上記残り時間が0となるか否かを判断する(ステップS28)。   If a signal indicating an instruction to execute a plurality of processes whose execution order is preset is not input (step S24: NO), the CPU 6 determines whether or not the remaining time is zero. Judgment is made (step S28).

そして、CPU6は、当該残り時間が0となったと判断した場合には(ステップ28:YES)、CPU6は、低消費電力状態へ移行するようになっている。   When the CPU 6 determines that the remaining time is 0 (step 28: YES), the CPU 6 shifts to a low power consumption state.

実施形態(III)では、CPU6は、他の実行すべき処理のうち、前記残り時間内に処理を完了することができる一又は複数の前記処理を選択し実行するため、上記残り時間内に可能な限り多くの処理を実行することができる。   In the embodiment (III), since the CPU 6 selects and executes one or a plurality of the processes that can be completed within the remaining time among the processes to be executed, the CPU 6 can perform the process within the remaining time. As many processes as possible can be executed.

以上説明したように、本実施形態におけるCPU6は、上記低消費電力準備期間に、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合に、前記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内に、完了可能な一又は複数の前記処理を実行する。   As described above, the CPU 6 in the present embodiment receives the signal indicating an instruction to execute a plurality of the processes in which the execution order is set in advance during the low power consumption preparation period. One or a plurality of the processes that can be completed are executed within the remaining time from the input time to the transition to the low power consumption state.

従って、CPU6は、低消費電力準備期間内に完了可能な一又は複数の処理を実行するため、多くの処理を迅速かつ確実に実行することができる。   Therefore, since the CPU 6 executes one or a plurality of processes that can be completed within the low power consumption preparation period, many processes can be performed quickly and reliably.

また、CPU6は、上記残り時間が、上記順番に従って実行すべき複数の処理として設定された当該処理に対応付けられた各処理時間のうち最大の処理時間よりも大きい場合に、当該順番に従って一又は複数の前記処理を実行する。   In addition, when the remaining time is larger than the maximum processing time among the processing times associated with the processing set as a plurality of processings to be executed according to the order, the CPU 6 determines whether the remaining time is 1 or according to the order. A plurality of the processes are executed.

従って、CPU6が行う処理が軽く、かつ、容易にICチップ1へ実装することができる。また、簡便な構成で、多くの処理を迅速かつ確実に実行することができる。   Therefore, the processing performed by the CPU 6 is light and can be easily mounted on the IC chip 1. In addition, many processes can be executed quickly and reliably with a simple configuration.

また、CPU6は、上記残り時間が、前記順番に従って次に実行すべき処理として設定された当該処理に対応付けられた処理時間よりも大きい場合に、当該処理を実行する。   The CPU 6 executes the process when the remaining time is longer than the processing time associated with the process set as the process to be executed next in the order.

従って、残り時間内に次に実行すべき処理が実行可能である限り、追加的に処理を実行するため、より多くの処理を実行することができる。   Therefore, as long as the process to be executed next can be executed within the remaining time, the process is additionally executed, so that more processes can be executed.

また、CPU6は、上記残り時間が、上記順番に従って次に実行すべき処理として設定された当該処理に対応付けられた処理時間よりも小さい場合に、当該順番に従って実行すべき処理として設定された他の処理に対応付けられた処理時間のうち、当該残り時間よりも小さい処理時間を選択し、当該処理時間が対応付けられた処理を実行する。   In addition, when the remaining time is smaller than the processing time associated with the process set as the next process to be executed according to the order, the CPU 6 sets the process to be executed according to the order. A processing time smaller than the remaining time is selected from the processing times associated with the process, and the processing associated with the processing time is executed.

従って、上記残り時間内に可能な限り多くの処理を実行することができる。   Therefore, as many processes as possible can be executed within the remaining time.

また、本実施形態では、ICチップ1を、USB通信規格に準拠したデータ通信に対応させるべく、上記第1の閾値を3ms、上記第2の閾値を7msとしたが、これに限定されるものではなく、前記第1の閾値及び第2の閾値は任意に選択及び設定することが可能である。   In the present embodiment, the first threshold value is set to 3 ms and the second threshold value is set to 7 ms so that the IC chip 1 can support data communication conforming to the USB communication standard. However, the present invention is not limited to this. Instead, the first threshold value and the second threshold value can be arbitrarily selected and set.

なお、上記実施形態においては、本願のICチップ1を備えたICカード8に対して適用した場合の例を示したが、その他にも例えば、PDA、ミニノート型パーソナルコンピュータ又はノート型パーソナルコンピュータ等の携帯型情報処理装置、パーソナルコンピュータ、及びその他の車載用、家庭用の電子機器に対して適用可能である。   In the above-described embodiment, an example in which the present invention is applied to the IC card 8 provided with the IC chip 1 of the present application has been shown. However, for example, a PDA, a mini-note type personal computer, a notebook type personal computer, or the like The present invention is applicable to portable information processing apparatuses, personal computers, and other in-vehicle and household electronic devices.

1 ICチップ
2 インターフェース
3 ROM
4 RAM
5 EEPROM
6 CPU
7 カード基体
8 ICカード
1 IC chip 2 Interface 3 ROM
4 RAM
5 EEPROM
6 CPU
7 Card base 8 IC card

Claims (8)

外部から入力される信号に基づいて複数の処理を実行し、
前記処理の種類と、前記処理の完了に必要な処理時間とを対応付けて記憶する記憶部を有するICチップであって、
前記信号の入力状態を監視する監視手段と、
前記信号の入力がない無信号状態から前記無信号状態が継続する経過時間を計時する計時手段と、
前記経過時間が第1の閾値を超えたと計時された場合に、前記ICチップを、低消費電力状態へ移行させる準備を行う期間である低消費電力準備期間へ移行する準備期間移行手段と、
前記計時手段によって、前記低消費電力準備期間へ移行してから前記経過時間が第2の閾値を超えたと計時された場合に、前記ICチップを低消費電力状態へ移行させる低消費電力移行手段と、
前記低消費電力準備期間に、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合に、前記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内に、完了可能な一又は複数の前記処理を実行する実行手段と、
を備えることを特徴とするICチップ。
Perform multiple processes based on externally input signals,
An IC chip having a storage unit that stores the type of processing and processing time required for completion of the processing in association with each other,
Monitoring means for monitoring the input state of the signal;
Clocking means for timing the elapsed time that the no-signal state continues from the no-signal state without the input of the signal;
A preparation period transition means for transitioning to a low power consumption preparation period that is a period for preparing the IC chip to transition to a low power consumption state when the elapsed time is measured to exceed a first threshold;
Low power consumption transition means for causing the IC chip to transition to a low power consumption state when the elapsed time is measured by the time counting means to have exceeded a second threshold after transition to the low power consumption preparation period; ,
In the low power consumption preparation period, when a signal indicating an instruction to execute a plurality of processes whose execution order is set in advance is input, the state shifts to the low power consumption state from the time when the signal is input. Execution means for executing one or more of the processes that can be completed within the remaining time until
An IC chip comprising:
請求項1に記載のICチップにおいて、
前記実行手段は、前記残り時間が、前記順番に従って実行すべき複数の処理として設定された当該処理に対応付けられた各処理時間のうち最大の処理時間よりも大きい場合に、前記順番に従って一又は複数の前記処理を実行することを特徴とするICチップ。
The IC chip according to claim 1,
When the remaining time is larger than the maximum processing time among the processing times associated with the processes set as a plurality of processes to be executed according to the order, An IC chip that performs a plurality of the processes.
請求項1に記載のICチップにおいて、
前記実行手段は、前記残り時間が、前記順番に従って次に実行すべき処理として設定された当該処理に対応付けられた処理時間よりも大きい場合に、当該処理を実行することを特徴とするICチップ。
The IC chip according to claim 1,
The execution means executes the process when the remaining time is longer than a process time associated with the process set as a process to be executed next according to the order. .
請求項1に記載のICチップにおいて、
前記実行手段は、前記残り時間が、前記順番に従って次に実行すべき処理として設定された当該処理に対応付けられた処理時間よりも小さい場合に、当該順番に従って実行すべき処理として設定された他の処理に対応付けられた処理時間のうち、前記残り時間よりも小さい処理時間を選択し、当該処理時間が対応付けられた処理を実行することを特徴とするICチップ。
The IC chip according to claim 1,
The execution means, when the remaining time is smaller than the processing time associated with the process set as the next process to be executed according to the order, is set as the process to be executed according to the order An IC chip, wherein a processing time smaller than the remaining time is selected from the processing times associated with the processing, and the processing associated with the processing time is executed.
請求項1乃至4の何れか一項に記載のICチップであって、
前記ICチップは、USB通信規格に準拠したデータ通信に対応することを特徴とするICチップ。
An IC chip according to any one of claims 1 to 4, wherein
The IC chip corresponds to data communication conforming to a USB communication standard.
請求項1乃至5の何れか一項に記載のICチップと、ICカード基体と、を備えることを特徴とするICカード。   An IC card comprising the IC chip according to any one of claims 1 to 5 and an IC card base. 外部から入力される信号に基づいて複数の処理を実行し、
前記処理の種類と、前記処理の完了に必要な処理時間とを対応付けて記憶する記憶部を有するICチップにおけるデータ処理方法であって、
前記信号の入力状態を監視する監視工程と、
前記信号の入力がない無信号状態から前記無信号状態が継続する経過時間を計時する計時工程と、
前記経過時間が第1の閾値を超えたと計時された場合に、前記ICチップを、低消費電力状態へ移行させる準備を行う期間である低消費電力準備期間へ移行する準備期間移行工程と、
前記計時手段によって、前記低消費電力準備期間へ移行してから前記経過時間が第2の閾値を超えたと計時された場合に、前記ICチップを低消費電力状態へ移行させる低消費電力移行工程と、
前記低消費電力準備期間に、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合に、前記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内に、完了可能な一又は複数の前記処理を実行する実行工程と、
を有することを特徴とするデータ処理方法。
Perform multiple processes based on externally input signals,
A data processing method in an IC chip having a storage unit that stores the type of processing and processing time required for completion of the processing in association with each other,
A monitoring step of monitoring the input state of the signal;
A time measuring step for measuring an elapsed time from the no signal state where the signal is not input to the no signal state;
A preparation period transition step for transitioning to a low power consumption preparation period, which is a period for preparing the IC chip to transition to a low power consumption state when the elapsed time is measured to exceed a first threshold;
A low power consumption transition step for causing the IC chip to transition to a low power consumption state when the elapsed time is measured by the timing means to have exceeded a second threshold after transitioning to the low power consumption preparation period; ,
In the low power consumption preparation period, when a signal indicating an instruction to execute a plurality of processes whose execution order is set in advance is input, the state shifts to the low power consumption state from the time when the signal is input. An execution step of executing one or more of the processes that can be completed within the remaining time until
A data processing method characterized by comprising:
外部から入力される信号に基づいて複数の処理を実行し、
前記処理の種類と、前記処理の完了に必要な処理時間とを対応付けて記憶する記憶部を有するICチップが有するコンピュータを、
前記信号の入力状態を監視する監視手段、
前記信号の入力がない無信号状態から前記無信号状態が継続する経過時間を計時する計時手段、
前記経過時間が第1の閾値を超えたと計時された場合に、前記ICチップを、低消費電力状態へ移行させる準備を行う期間である低消費電力準備期間へ移行する準備期間移行手段、
前記計時手段によって、前記低消費電力準備期間へ移行してから前記経過時間が第2の閾値を超えたと計時された場合に、前記ICチップを低消費電力状態へ移行させる低消費電力移行手段、
前記低消費電力準備期間に、実行する順番が予め設定された複数の前記処理を実行する指示を示す信号が入力された場合に、前記信号が入力された時点から前記低消費電力状態へ移行するまでの残り時間内に、完了可能な一又は複数の前記処理を実行する実行手段、
として機能させることを特徴とするデータ処理プログラム。
Perform multiple processes based on externally input signals,
A computer having an IC chip having a storage unit that stores the type of the process and the processing time required to complete the process in association with each other;
Monitoring means for monitoring the input state of the signal;
Clocking means for timing the elapsed time that the no-signal state continues from the no-signal state without the input of the signal;
A preparation period transition means for transitioning to a low power consumption preparation period, which is a period for preparing the IC chip for transition to a low power consumption state when the elapsed time is measured to exceed a first threshold;
Low power consumption transition means for transitioning the IC chip to a low power consumption state when the elapsed time is measured by the time counting means to have exceeded a second threshold after transitioning to the low power consumption preparation period;
In the low power consumption preparation period, when a signal indicating an instruction to execute a plurality of processes whose execution order is set in advance is input, the state shifts to the low power consumption state from the time when the signal is input. Execution means for executing one or more of the processes that can be completed within the remaining time until
A data processing program characterized by functioning as
JP2009184576A 2009-08-07 2009-08-07 IC chip, data processing method, data processing program, IC card, etc. Expired - Fee Related JP5229155B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009184576A JP5229155B2 (en) 2009-08-07 2009-08-07 IC chip, data processing method, data processing program, IC card, etc.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009184576A JP5229155B2 (en) 2009-08-07 2009-08-07 IC chip, data processing method, data processing program, IC card, etc.

Publications (2)

Publication Number Publication Date
JP2011039657A JP2011039657A (en) 2011-02-24
JP5229155B2 true JP5229155B2 (en) 2013-07-03

Family

ID=43767382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009184576A Expired - Fee Related JP5229155B2 (en) 2009-08-07 2009-08-07 IC chip, data processing method, data processing program, IC card, etc.

Country Status (1)

Country Link
JP (1) JP5229155B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3660083B2 (en) * 1996-11-26 2005-06-15 株式会社東芝 Task margin analysis device, task margin analysis method, and recording medium storing task margin analysis program
JP2003316487A (en) * 2002-04-25 2003-11-07 Sony Corp Electronics
JP3937960B2 (en) * 2002-07-26 2007-06-27 株式会社デンソーウェーブ Mobile object identification system
JP4391277B2 (en) * 2004-03-17 2009-12-24 株式会社リコー Network control apparatus, image forming apparatus, image forming system, network control method, computer program, and recording medium
JP4527434B2 (en) * 2004-04-16 2010-08-18 大日本印刷株式会社 Portable information storage medium and program thereof
JP5166927B2 (en) * 2007-06-12 2013-03-21 ルネサスエレクトロニクス株式会社 Processing equipment

Also Published As

Publication number Publication date
JP2011039657A (en) 2011-02-24

Similar Documents

Publication Publication Date Title
US11922022B2 (en) Method for transferring data on a memory card in synchronism with a rise edge and a fall edge of a clock signal
JP6022766B2 (en) Multi-interface memory card and its operation method
US6801956B2 (en) Arrangement with a microprocessor
CN100530068C (en) Multi-mode integrated circuit devices including mode detection and methods of operating the same
CN100507940C (en) Efficient connection between modules of removable electronic circuit cards
KR101053185B1 (en) Smart card and its mixed mode control method
US20060085583A1 (en) Multi-functional integrated circuit card module with a mixed interface
US7818469B2 (en) USB device and peripheral device changing functional module to activate in accordance with descriptor
WO2008029904A1 (en) Memory card complying with a plurality of standards
US9360922B2 (en) Data processing system, microcontroller and semiconductor device
CN101685035A (en) SIM card, method and device for detecting temperature of SIM card
US8897736B2 (en) Mobile communication terminal device
EP3082375B1 (en) Communications chip integrated with a sim card
US9471530B2 (en) Semiconductor device and mobile terminal device
JP5229155B2 (en) IC chip, data processing method, data processing program, IC card, etc.
KR20080018868A (en) How to switch between memory card and memory card control
TW201816781A (en) Current break circuit, semiconductor device having the same and operating method thereof
US9251454B2 (en) Storage medium, transmittal system and control method thereof
JP2012093857A (en) Ic chip, memory initialization method for ic chip, processing program for ic chip, and portable terminal
JP6686725B2 (en) Electronic information storage medium, information processing method, and information processing program
JP2011060002A (en) Ic chip, ic card, and initial response data transmitting method
US20040022113A1 (en) High voltage insertion in flash memory cards
CN102467426B (en) The method of disabling the read-only memory of the external card option in the BIOS
EP1693787A1 (en) Method for managing smart card power depending on the environment
KR100222576B1 (en) IC card circuit and its test method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120615

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130206

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: 20130219

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130304

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160329

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5229155

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees