JP2011248603A - Ic chip, ic card, and operation method of ic - Google Patents

Ic chip, ic card, and operation method of ic Download PDF

Info

Publication number
JP2011248603A
JP2011248603A JP2010120693A JP2010120693A JP2011248603A JP 2011248603 A JP2011248603 A JP 2011248603A JP 2010120693 A JP2010120693 A JP 2010120693A JP 2010120693 A JP2010120693 A JP 2010120693A JP 2011248603 A JP2011248603 A JP 2011248603A
Authority
JP
Japan
Prior art keywords
clock signal
identifier
internal clock
chip
internal
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.)
Granted
Application number
JP2010120693A
Other languages
Japanese (ja)
Other versions
JP5397320B2 (en
Inventor
Masanari Yamada
真生 山田
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 JP2010120693A priority Critical patent/JP5397320B2/en
Publication of JP2011248603A publication Critical patent/JP2011248603A/en
Application granted granted Critical
Publication of JP5397320B2 publication Critical patent/JP5397320B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To provide an IC chip, an IC card, and an operation method of the IC chip that can avoid a stop of a CPU operation even when an internal oscillator provided on the IC chip has a fault.SOLUTION: A CPU of the IC chip according to the present invention reads an identifier from a non-volatile memory when timing of switching from an external clock signal to an internal clock signal arrives, performs an operation for executing a processing instruction using the external clock signal if the read identifier is a first identifier indicating inoperability by the internal clock signal, and performs the operation for executing the processing instruction by switching from the external clock signal to the internal clock signal if the read identifier is a second identifier indicating operability by the internal clock signal.

Description

ICカードに搭載されるICチップの信頼性を向上させるための技術の分野に関する。   The present invention relates to the field of technology for improving the reliability of an IC chip mounted on an IC card.

従来から、金融、通信、交通等の様々な分野でICカードが普及している。ICカードに搭載されるICチップ(例えば1チップマイクロコンピュータ)には、リーダーライタ等の外部装置が生成するクロック信号(以下、「外部クロック」という)によってCPUを動作させる方式のものと、ICチップが備える内部発振器(オシレータ)が生成するクロック信号(以下、「内部クロック」という)によってCPUを動作させる方式のものに大別できる。内部発振器はアナログ素子であるため、小型化が難しく、ISO/IEC7816に定義されるスマートカードのような用途には、外部クロックによる動作方式が採用される傾向にあった。   Conventionally, IC cards have been widely used in various fields such as finance, communication, and transportation. An IC chip (for example, a one-chip microcomputer) mounted on an IC card includes a type in which a CPU is operated by a clock signal (hereinafter referred to as “external clock”) generated by an external device such as a reader / writer, and an IC chip. Can be broadly classified into those that operate the CPU by a clock signal (hereinafter referred to as “internal clock”) generated by an internal oscillator (oscillator) included in the CPU. Since the internal oscillator is an analog element, it is difficult to reduce the size of the internal oscillator. For applications such as smart cards defined in ISO / IEC7816, an operation method using an external clock tends to be adopted.

一方で、従来から、ICチップにおける処理内容や機密情報等を推測されることを防止しセキュリティを向上させる技術が提案されている。例えば、特許文献1に開示された技術では、データ処理手順に従う適当なデータ処理動作のタイミングを変化させることで暗号処理の内容や暗号鍵の解読を防止できるようになっている。   On the other hand, conventionally, there has been proposed a technique for preventing processing contents and confidential information in an IC chip from being estimated and improving security. For example, in the technique disclosed in Patent Document 1, the content of encryption processing and the decryption of the encryption key can be prevented by changing the timing of an appropriate data processing operation according to the data processing procedure.

また、セキュリティを向上させるため、外部装置が生成する外部クロックによって外部装置とデータ通信し、かつ、上記内部発振器により生成された内部クロックによってCPUを動作させる方式のICチップも採用されるようになった。かかるICチップによれば、外部クロックと内部クロックが同期していないため、ICチップの処理内容を推測し暗号鍵等の資産情報を漏洩させる攻撃手法を効果的に回避することができる。   In addition, in order to improve security, an IC chip that employs a method of performing data communication with an external device using an external clock generated by the external device and operating the CPU using the internal clock generated by the internal oscillator has been adopted. It was. According to such an IC chip, since the external clock and the internal clock are not synchronized, it is possible to effectively avoid an attack technique in which the processing content of the IC chip is estimated and asset information such as an encryption key is leaked.

特開2000−259799号公報JP 2000-259799 A

ところで、外部クロックによって外部装置とデータ通信し、かつ、内部クロックによってCPUを動作させる方式のICチップの場合、内部クロック周波数の方が外部クロック周波数より高いので、内部クロックによってCPUを動作させた方が処理を高速化することが可能になる。そのため、例えば、ICチップの動作確認検査時において、初期状態から内部クロックにてCPUを動作させることが望ましい。   By the way, in the case of an IC chip that communicates data with an external device using an external clock and operates the CPU using an internal clock, the internal clock frequency is higher than the external clock frequency. However, it becomes possible to speed up the processing. For this reason, it is desirable to operate the CPU with an internal clock from the initial state, for example, at the time of IC chip operation check.

しかしながら、ICチップに備えられる内部発振器はアナログ素子であり、デジタル素子に比べて製造ロットによる差が生じ易く、かかる内部発振器に不具合(故障等)がある場合、外部クロックから内部クロックに切り換えられた時にCPUの動作が停止してしまうという問題が生じる。   However, the internal oscillator provided in the IC chip is an analog element, which is more likely to vary depending on the manufacturing lot than the digital element, and when there is a malfunction (failure, etc.) in the internal oscillator, the external clock is switched to the internal clock. There is a problem that the operation of the CPU sometimes stops.

そこで、本発明は、このような問題等に鑑みてなされたものであり、ICチップに備えられる内部発振器に不具合があっても、CPUの動作が停止することを回避することが可能なICチップ、ICカード、及びICチップの動作方法を提供することを課題の一つとする。   Therefore, the present invention has been made in view of such problems and the like, and an IC chip capable of avoiding the stop of the operation of the CPU even if the internal oscillator provided in the IC chip has a problem. Another object is to provide a method for operating an IC card and an IC chip.

上記課題を解決するために、請求項1に記載の発明は、外部装置との間で信号の送受信を行うことが可能なICチップであって、前記外部装置から外部クロック信号を入力する入力手段と、内部クロック信号を生成する内部クロック信号生成手段と、複数の処理命令を規定するプログラムを記憶する読み取り専用メモリと、前記外部クロック信号又は前記内部クロック信号によって前記処理命令を実行する動作を行う演算処理手段と、前記内部クロック信号による動作不能を表す第一の識別子を記憶する不揮発性メモリであって当該第一の識別子を内部クロック信号による動作可能を表す第二の識別子に外部から書き換え可能な不揮発性メモリと、を備え、前記演算処理手段は、前記外部クロック信号から前記内部クロック信号への切り換えタイミングが到来したときに前記不揮発性メモリから前記識別子を読み出し、当該読み出された識別子が前記第一の識別子である場合には、前記外部クロック信号によって前記処理命令を実行する動作を行い、前記読み出された識別子が前記第二の識別子である場合には、前記外部クロック信号から内部クロック信号に切り換えて前記処理命令を実行する動作を行うことを特徴とする。   In order to solve the above-mentioned problem, the invention according to claim 1 is an IC chip capable of transmitting / receiving a signal to / from an external device, and an input means for inputting an external clock signal from the external device. And an internal clock signal generating means for generating an internal clock signal, a read-only memory for storing a program for defining a plurality of processing instructions, and an operation for executing the processing instructions by the external clock signal or the internal clock signal A non-volatile memory for storing an arithmetic processing means and a first identifier representing inoperability by the internal clock signal, and the first identifier can be rewritten from the outside to a second identifier representing operation by the internal clock signal A nonvolatile memory, and the arithmetic processing means switches from the external clock signal to the internal clock signal. When the imming arrives, the identifier is read from the nonvolatile memory, and when the read identifier is the first identifier, an operation of executing the processing instruction is performed by the external clock signal, When the read identifier is the second identifier, an operation of executing the processing instruction by switching from the external clock signal to the internal clock signal is performed.

請求項2に記載の発明は、請求項1に記載のICチップにおいて、当該ICチップの動作確認検査前の初期状態において、前記不揮発性メモリには前記第一の識別子が記憶されていることを特徴とする。   According to a second aspect of the present invention, in the IC chip according to the first aspect, the first identifier is stored in the nonvolatile memory in an initial state before the operation check inspection of the IC chip. Features.

請求項3に記載のICカードの発明は、請求項1又は2に記載のICチップを搭載することを特徴とする。   According to a third aspect of the present invention, the IC card according to the first or second aspect is mounted.

請求項4に記載の発明は、外部装置から外部クロック信号を入力する入力手段と、内部クロック信号を生成する内部クロック信号生成手段と、複数の処理命令を規定するプログラムを記憶する読み取り専用メモリと、前記外部クロック信号又は前記内部クロック信号によって前記処理命令を実行する動作を行う演算処理手段と、前記内部クロック信号による動作不能を表す第一の識別子を記憶する不揮発性メモリであって当該第一の識別子を内部クロック信号による動作可能を表す第二の識別子に外部から書き換え可能な不揮発性メモリと、を備えるICチップの動作方法であって、前記演算処理手段が、前記外部クロック信号から前記内部クロック信号への切り換えタイミングが到来したときに前記不揮発性メモリから前記識別子を読み出すステップと、前記読み出された識別子が前記第一の識別子である場合には、前記演算処理手段が、前記外部クロック信号によって前記処理命令を実行する動作を行うステップと、前記読み出された識別子が前記第二の識別子である場合には、前記演算処理手段が、前記外部クロック信号から内部クロック信号に切り換えて前記処理命令を実行する動作を行うステップと、を含むことを特徴とする。   According to a fourth aspect of the present invention, there is provided input means for inputting an external clock signal from an external device, internal clock signal generation means for generating an internal clock signal, and a read-only memory for storing a program for defining a plurality of processing instructions. A non-volatile memory for storing an arithmetic processing means for performing an operation of executing the processing instruction by the external clock signal or the internal clock signal, and a first identifier representing an inoperability by the internal clock signal. A non-volatile memory that is rewritable from the outside to a second identifier indicating that the identifier can be operated by an internal clock signal, wherein the arithmetic processing means is configured to transmit the internal clock signal to the internal clock signal. Read the identifier from the non-volatile memory when the timing to switch to the clock signal arrives And when the read identifier is the first identifier, the arithmetic processing means performs an operation of executing the processing instruction by the external clock signal, and the read identifier Is the second identifier, the arithmetic processing means includes a step of switching the external clock signal to the internal clock signal and executing the processing instruction.

本発明によれば、処理の高速化を図ることができ、さらに、ICチップに備えられる内部発振器に不具合があっても、演算処理手段としてのCPUの動作が停止することを回避することができる。   According to the present invention, the processing speed can be increased, and even if the internal oscillator provided in the IC chip has a problem, the operation of the CPU as the arithmetic processing means can be prevented from stopping. .

ICカードに搭載されるICチップの概要構成例を示すブロック図である。It is a block diagram which shows the example of a schematic structure of the IC chip mounted in an IC card. (A)は、EEPROM17における記憶内容の一例を示す概念図であり、(B)は、内部発振器コントロールレジスタ14における設定内容の一例を示す概念図である。(A) is a conceptual diagram showing an example of stored contents in the EEPROM 17, and (B) is a conceptual diagram showing an example of set contents in the internal oscillator control register 14. ROM15に記憶されている処理命令の一部を示す図である。FIG. 4 is a diagram showing a part of processing instructions stored in a ROM 15. CPU18の動作例を示すフローチャートである。It is a flowchart which shows the operation example of CPU18.

以下、図面を参照して本発明の実施形態について詳細に説明する。以下に説明する実施形態は、ICカードに対して本発明を適用した場合の実施の形態である。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. The embodiment described below is an embodiment when the present invention is applied to an IC card.

先ず、本実施形態に係るICチップ(マイクロコンピュータ)の構成及び機能概要について、図1を用いて説明する。本実施形態に係るICチップは、リーダーライタ等の外部装置との間で信号の送受信を行うことが可能になっている。   First, the configuration and functional outline of an IC chip (microcomputer) according to the present embodiment will be described with reference to FIG. The IC chip according to the present embodiment can transmit and receive signals to and from an external device such as a reader / writer.

図1は、ICカードに搭載されるICチップの概要構成例を示すブロック図である。図1に示すように、ICチップ1は、I/Oポート11、内部発振器(オシレータ)12、クロック分周・逓倍回路13、内部発振器コントロールレジスタ14、ROM(Read Only Memory)15、RAM(Random Access Memory)16、EEPROM(Electrical Erasable Programmable Read Only Memory)17、及びCPU(Central Processing Unit)18等を備えて構成されている。また、ICチップ1には、電源端子Vcc、電源基準電位端子Vss、リセット入力端子RESバー、クロック端子CLK、データ端子I/O−1/IRQバー、及びデータ端子I/O−2/IRQバー等が備えられている。クロック端子CLKは、外部装置から外部クロック(例えば、クロック周波数が3.5MHz程度の外部クロック)を入力する入力手段の一例である。   FIG. 1 is a block diagram illustrating a schematic configuration example of an IC chip mounted on an IC card. As shown in FIG. 1, an IC chip 1 includes an I / O port 11, an internal oscillator (oscillator) 12, a clock divider / multiplier circuit 13, an internal oscillator control register 14, a ROM (Read Only Memory) 15, a RAM (Random An access memory 16, an EEPROM (Electrical Erasable Programmable Read Only Memory) 17, a CPU (Central Processing Unit) 18, and the like are included. The IC chip 1 includes a power supply terminal Vcc, a power supply reference potential terminal Vss, a reset input terminal RES bar, a clock terminal CLK, a data terminal I / O-1 / IRQ bar, and a data terminal I / O-2 / IRQ bar. Etc. are provided. The clock terminal CLK is an example of input means for inputting an external clock (for example, an external clock having a clock frequency of about 3.5 MHz) from an external device.

I/Oポート11は、外部装置からデータ信号の受信(入力)又は外部装置へのデータ信号の送信(出力)を行う。   The I / O port 11 receives (inputs) a data signal from an external device or transmits (outputs) a data signal to the external device.

内部発振器12は、例えば水晶発信器からなり、内部クロック(例えば、クロック周波数が20MHz〜30MHzの内部クロック)を生成する内部クロック信号生成手段の一例である。   The internal oscillator 12 is an example of an internal clock signal generating unit that includes, for example, a crystal oscillator and generates an internal clock (for example, an internal clock having a clock frequency of 20 MHz to 30 MHz).

クロック分周・逓倍回路13は、逓倍回路、分周回路、及びセレクタ等からなり、外部装置からクロック端子CLKを介して入力された外部クロックを受け、かかる外部クロックに同期したシステムクロックを形成し、アドレスバスに供給する。また、クロック分周・逓倍回路13は、内部発振器12により生成された内部クロックを受け、かかる内部クロックに同期したシステムクロックを形成し、アドレスバスに供給する。なお、外部クロックと内部クロックとは非同期になっている。   The clock divider / multiplier circuit 13 includes a multiplier circuit, a divider circuit, a selector, and the like. The clock divider / multiplier circuit 13 receives an external clock input from an external device via the clock terminal CLK, and forms a system clock synchronized with the external clock. Supply to the address bus. The clock divider / multiplier circuit 13 receives the internal clock generated by the internal oscillator 12, forms a system clock synchronized with the internal clock, and supplies it to the address bus. Note that the external clock and the internal clock are asynchronous.

内部発振器コントロールレジスタ14は、例えば8ビットのレジスタであり、所定ビット目(例えば先頭の7ビット目)の状態(0又は1)によって内部発振器12の停止又は使用を制御することができる。例えば、内部発振器コントロールレジスタ14の所定ビット目の状態が“1”である場合、内部発振器12は使用状態となり、内部発振器12により生成された内部クロックはシステムクロックとしてアドレスバスを介してCPU18に供給可能となる。   The internal oscillator control register 14 is an 8-bit register, for example, and the stop or use of the internal oscillator 12 can be controlled by a state (0 or 1) of a predetermined bit (for example, the first 7 bits). For example, when the state of the predetermined bit of the internal oscillator control register 14 is “1”, the internal oscillator 12 is in a use state, and the internal clock generated by the internal oscillator 12 is supplied to the CPU 18 via the address bus as a system clock. It becomes possible.

ROM15は、電源の供給が停止されても記憶された情報が保持される読み取り専用メモリであり、複数の処理命令(例えば、信号受信、暗号解読等のデータ解析等)を規定するプログラムを記憶する。   The ROM 15 is a read-only memory that retains stored information even when power supply is stopped, and stores a program that defines a plurality of processing instructions (for example, data reception such as signal reception and decryption). .

EEPROM17は、記憶された情報の書き換えが可能な不揮発性メモリであり、一旦書き込まれた情報は電源の供給が停止されても保持される。なお、EEPROM17はフラッシュメモリであっても良い。そして、EEPROM17には、動作モードを表す識別子が記憶される。この動作モードには、内部クロック動作可能モード(内部クロックによる動作可能)と、内部クロック動作ロックモード(内部クロックによる動作不能)とがあり、夫々のモードを表す識別子は互いに異なっている。   The EEPROM 17 is a non-volatile memory in which stored information can be rewritten, and once written information is retained even when power supply is stopped. The EEPROM 17 may be a flash memory. The EEPROM 17 stores an identifier representing the operation mode. This operation mode includes an internal clock operation enable mode (operation by an internal clock) and an internal clock operation lock mode (inability to operate by an internal clock), and identifiers representing the respective modes are different from each other.

図2(A)は、EEPROM17における記憶内容の一例を示す概念図であり、図2(B)は、内部発振器コントロールレジスタ14における設定内容の一例を示す概念図である。ICチップ1の動作確認検査前の初期状態では、図2に示すように、EEPROM17には、内部クロック動作ロックモードを表す識別子(第一の識別子)が記憶されている。この場合、内部発振器コントロールレジスタ14の先頭の7ビット目は“0”に設定される。一方、EEPROM17に内部クロック動作可能モードを表す識別子(第二の識別子)が記憶されると、内部発振器コントロールレジスタ14の先頭の7ビット目は“1”に設定される。   FIG. 2A is a conceptual diagram showing an example of the contents stored in the EEPROM 17, and FIG. 2B is a conceptual diagram showing an example of the setting contents in the internal oscillator control register 14. In an initial state before the operation check inspection of the IC chip 1, as shown in FIG. 2, the EEPROM 17 stores an identifier (first identifier) indicating the internal clock operation lock mode. In this case, the leading seventh bit of the internal oscillator control register 14 is set to “0”. On the other hand, when an identifier representing the internal clock operable mode (second identifier) is stored in the EEPROM 17, the first 7 bits of the internal oscillator control register 14 are set to “1”.

なお、EEPROM17に記憶されている動作モードの書き換えは、例えばICチップ1の動作確認検査者の操作により外部装置からICチップ1に入力された書き換え指示信号によって行われる。   The rewriting of the operation mode stored in the EEPROM 17 is performed by a rewrite instruction signal input to the IC chip 1 from an external device, for example, by the operation check inspector of the IC chip 1.

CPU18は、外部クロック又は内部クロックによって上記処理命令を実行する動作(ROM15に記憶されている処理命令を読み出し、その命令に対応する動作)を行う演算処理手段の一例である。つまり、CPU18は、クロック分周・逓倍回路13からアドレスバスを介して供給されるシステムクロック(外部クロック又は内部クロックにより形成)を受けそのシステムクロックによって決められる動作タイミング及び周期をもって動作する。また、CPU18は、I/Oポート11を介したデータ信号の送受信制御、及びRAM16やEEPROM17に対するデータの書き込みと読み出し動作制御等を行う。   The CPU 18 is an example of arithmetic processing means for performing an operation (reading a processing instruction stored in the ROM 15 and an operation corresponding to the instruction) to execute the processing instruction using an external clock or an internal clock. That is, the CPU 18 receives a system clock (formed by an external clock or an internal clock) supplied from the clock divider / multiplier circuit 13 via the address bus, and operates at an operation timing and period determined by the system clock. In addition, the CPU 18 performs transmission / reception control of data signals via the I / O port 11 and control of data writing and reading operations to the RAM 16 and the EEPROM 17.

次に、本実施形態に係るICチップ1の動作例について、図3及び図4を用いて説明する。   Next, an operation example of the IC chip 1 according to the present embodiment will be described with reference to FIGS.

図3は、ROM15に記憶されている処理命令の一部を示す図である。図4は、CPU18の動作例を示すフローチャートである。   FIG. 3 is a diagram showing a part of the processing instructions stored in the ROM 15. FIG. 4 is a flowchart illustrating an operation example of the CPU 18.

図4に示す動作は、CPU18が外部クロックによって例えば信号受信の処理命令(図3の例では、アドレス“10000000”に記憶)を実行する動作を行った後、外部クロックから内部クロックへの切り換えタイミング(図3の例では、アドレス“10000001”)が到来したときに開始される。以下の動作例では、内部発振器コントロールレジスタ14の所定ビット目が初期状態を表す“0”に設定されている。   The operation shown in FIG. 4 is performed when the CPU 18 performs, for example, a signal reception processing instruction (stored in the address “10000000” in the example of FIG. 3) using an external clock, and then the switching timing from the external clock to the internal clock. It starts when the address (10000001) in the example of FIG. 3 arrives. In the following operation example, the predetermined bit of the internal oscillator control register 14 is set to “0” indicating the initial state.

図4に示す動作において、CPU18は、EEPROM17から識別子を読み出し(ステップS1)、当該読み出された識別子が、内部クロック動作ロックモードを表す識別子であるか否かを判定する(ステップS2)。   In the operation shown in FIG. 4, the CPU 18 reads the identifier from the EEPROM 17 (step S1), and determines whether or not the read identifier is an identifier representing the internal clock operation lock mode (step S2).

そして、CPU18は、内部クロック動作ロックモードを表す識別子であると判定した場合(ICチップ1の動作確認検査前)には(ステップS2:YES)、内部発振器コントロールレジスタ14の所定ビット目を“0”のままとし、外部クロックから内部クロックへ切り換えず、上記判定に続く処理命令(図3に示す例では、データ解析)を外部クロックによって実行する動作を行う(ステップS3)。   When the CPU 18 determines that the identifier represents the internal clock operation lock mode (before the operation check test of the IC chip 1) (step S2: YES), the predetermined bit of the internal oscillator control register 14 is set to “0”. The processing instruction (data analysis in the example shown in FIG. 3) following the above determination is executed by the external clock without switching from the external clock to the internal clock (step S3).

一方、例えばICチップ1が半導体メーカから入荷され、当該ICチップ1の動作確認検査により内部発振器12に不具合が無いことが動作確認検査者により確認された場合、当該動作確認検査者の操作により外部装置からICチップ1に入力された書き換え指示信号によって、EEPROM17に記憶されている内部クロック動作ロックモードを表す識別子から内部クロック動作可能モードを表す識別子へ書き換えられる。この場合、CPU18は、上記ステップS2で、内部クロック動作ロックモードを表す識別子でないと判定し(ステップS2:NO)、内部発振器コントロールレジスタ14の所定ビット目を、初期状態を表す“0”から内部発振器12の使用状態を表す「1」へ設定変更し、外部クロックから内部クロックに切り換え、上記判定に続く処理命令(図3に示す例では、データ解析)を内部クロックによって実行する動作を行う(ステップS4)。   On the other hand, for example, when the IC chip 1 is received from a semiconductor manufacturer and it is confirmed by the operation check inspector that the internal oscillator 12 is not defective by the operation check inspection of the IC chip 1, the external operation is performed by the operation check inspector. By the rewrite instruction signal input to the IC chip 1 from the device, the identifier representing the internal clock operation lock mode stored in the EEPROM 17 is rewritten to the identifier representing the internal clock operable mode. In this case, the CPU 18 determines in step S2 that the identifier is not an identifier representing the internal clock operation lock mode (step S2: NO), and the predetermined bit of the internal oscillator control register 14 is changed from “0” representing the initial state to the internal state. The setting is changed to “1” indicating the usage state of the oscillator 12, the external clock is switched to the internal clock, and the operation instruction (data analysis in the example shown in FIG. 3) following the above determination is executed by the internal clock ( Step S4).

以上説明したように、上記実施形態によれば、CPU18は、外部クロックから内部クロックへの切り換えタイミングが到来したときにEEPROM17に記憶されている識別子を読み出し、当該読み出された識別子が内部クロック動作ロックモードを表す識別子である場合には、外部クロックによって処理命令を実行する動作を行い、読み出された識別子が内部クロック動作可能モードを表す識別子である場合には、外部クロックから内部クロックに切り換えて、内部クロックによって処理命令を実行する動作を行うように構成したので、処理の高速化を図ることができ、さらに、ICチップ1に備えられる内部発振器12に不具合があっても、CPU18の動作が停止することを回避することができる。   As described above, according to the above-described embodiment, the CPU 18 reads the identifier stored in the EEPROM 17 when the switching timing from the external clock to the internal clock arrives, and the read identifier is used as the internal clock operation. If the identifier represents a lock mode, the processing instruction is executed by an external clock. If the read identifier is an identifier representing an internal clock operable mode, the external clock is switched to the internal clock. In addition, since the operation for executing the processing instruction is performed by the internal clock, the processing speed can be increased, and even if the internal oscillator 12 provided in the IC chip 1 has a problem, the operation of the CPU 18 can be improved. Can be avoided.

なお、上記実施形態においては、ICチップ1が外部装置との間で端子を介して信号の送受信を行う接触式の場合を例にとって説明したが、ICチップ1が外部装置と非接触で(アンテナを介して)信号の送受信を行う非接触式の場合であっても上記実施形態は適用可能である。   In the above-described embodiment, the case where the IC chip 1 is a contact type in which signals are transmitted to and received from the external device via a terminal has been described as an example. However, the IC chip 1 is not contacted with the external device (antenna The above embodiment can be applied even in the case of a non-contact type in which signals are transmitted and received (via).

1 ICチップ
11 I/Oポート
12 内部発振器
13 クロック分周・逓倍回路
14 内部発振器コントロールレジスタ
15 ROM
16 RAM
17 EEPROM
18 CPU
1 IC chip 11 I / O port 12 Internal oscillator 13 Clock division / multiplication circuit 14 Internal oscillator control register 15 ROM
16 RAM
17 EEPROM
18 CPU

Claims (4)

外部装置との間で信号の送受信を行うことが可能なICチップであって、
前記外部装置から外部クロック信号を入力する入力手段と、
内部クロック信号を生成する内部クロック信号生成手段と、
複数の処理命令を規定するプログラムを記憶する読み取り専用メモリと、
前記外部クロック信号又は前記内部クロック信号によって前記処理命令を実行する動作を行う演算処理手段と、
前記内部クロック信号による動作不能を表す第一の識別子を記憶する不揮発性メモリであって当該第一の識別子を内部クロック信号による動作可能を表す第二の識別子に外部から書き換え可能な不揮発性メモリと、
を備え、
前記演算処理手段は、前記外部クロック信号から前記内部クロック信号への切り換えタイミングが到来したときに前記不揮発性メモリから前記識別子を読み出し、当該読み出された識別子が前記第一の識別子である場合には、前記外部クロック信号によって前記処理命令を実行する動作を行い、前記読み出された識別子が前記第二の識別子である場合には、前記外部クロック信号から内部クロック信号に切り換えて前記処理命令を実行する動作を行うことを特徴とするICチップ。
An IC chip capable of transmitting and receiving signals to and from an external device,
Input means for inputting an external clock signal from the external device;
Internal clock signal generating means for generating an internal clock signal;
A read only memory for storing a program defining a plurality of processing instructions;
Arithmetic processing means for performing an operation of executing the processing instruction by the external clock signal or the internal clock signal;
A non-volatile memory for storing a first identifier representing inoperability by the internal clock signal, wherein the first identifier can be rewritten from the outside to a second identifier representing operation by the internal clock signal; ,
With
The arithmetic processing means reads the identifier from the nonvolatile memory when the switching timing from the external clock signal to the internal clock signal arrives, and when the read identifier is the first identifier Performs an operation of executing the processing instruction by the external clock signal, and when the read identifier is the second identifier, the processing instruction is switched from the external clock signal to the internal clock signal. An IC chip characterized by performing an operation to be executed.
請求項1に記載のICチップにおいて、
当該ICチップの動作確認検査前の初期状態において、前記不揮発性メモリには前記第一の識別子が記憶されていることを特徴とするICチップ。
The IC chip according to claim 1,
The IC chip, wherein the first identifier is stored in the nonvolatile memory in an initial state before an operation check test of the IC chip.
請求項1又は2に記載のICチップを搭載することを特徴とするICカード。   An IC card on which the IC chip according to claim 1 is mounted. 外部装置から外部クロック信号を入力する入力手段と、
内部クロック信号を生成する内部クロック信号生成手段と、
複数の処理命令を規定するプログラムを記憶する読み取り専用メモリと、
前記外部クロック信号又は前記内部クロック信号によって前記処理命令を実行する動作を行う演算処理手段と、
前記内部クロック信号による動作不能を表す第一の識別子を記憶する不揮発性メモリであって当該第一の識別子を内部クロック信号による動作可能を表す第二の識別子に外部から書き換え可能な不揮発性メモリと、
を備えるICチップの動作方法であって、
前記演算処理手段が、前記外部クロック信号から前記内部クロック信号への切り換えタイミングが到来したときに前記不揮発性メモリから前記識別子を読み出すステップと、
前記読み出された識別子が前記第一の識別子である場合には、前記演算処理手段が、前記外部クロック信号によって前記処理命令を実行する動作を行うステップと、
前記読み出された識別子が前記第二の識別子である場合には、前記演算処理手段が、前記外部クロック信号から内部クロック信号に切り換えて前記処理命令を実行する動作を行うステップと、
を含むことを特徴とするICチップの動作方法。
Input means for inputting an external clock signal from an external device;
Internal clock signal generating means for generating an internal clock signal;
A read only memory for storing a program defining a plurality of processing instructions;
Arithmetic processing means for performing an operation of executing the processing instruction by the external clock signal or the internal clock signal;
A non-volatile memory for storing a first identifier representing inoperability by the internal clock signal, wherein the first identifier can be rewritten from the outside to a second identifier representing operation by the internal clock signal; ,
A method of operating an IC chip comprising:
The arithmetic processing means reads the identifier from the non-volatile memory when the switching timing from the external clock signal to the internal clock signal arrives;
When the read identifier is the first identifier, the arithmetic processing means performs an operation of executing the processing instruction by the external clock signal;
When the read identifier is the second identifier, the arithmetic processing means performs an operation of switching the external clock signal to an internal clock signal and executing the processing instruction;
A method for operating an IC chip, comprising:
JP2010120693A 2010-05-26 2010-05-26 IC chip, IC card, and method of operating IC chip Active JP5397320B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010120693A JP5397320B2 (en) 2010-05-26 2010-05-26 IC chip, IC card, and method of operating IC chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010120693A JP5397320B2 (en) 2010-05-26 2010-05-26 IC chip, IC card, and method of operating IC chip

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2013220353A Division JP5742910B2 (en) 2013-10-23 2013-10-23 IC chip, IC card, and method of operating IC chip

Publications (2)

Publication Number Publication Date
JP2011248603A true JP2011248603A (en) 2011-12-08
JP5397320B2 JP5397320B2 (en) 2014-01-22

Family

ID=45413788

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010120693A Active JP5397320B2 (en) 2010-05-26 2010-05-26 IC chip, IC card, and method of operating IC chip

Country Status (1)

Country Link
JP (1) JP5397320B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0423092A (en) * 1990-05-17 1992-01-27 Mitsubishi Electric Corp Ic card
JPH04220789A (en) * 1990-12-20 1992-08-11 Fujitsu Ltd Clock switching method for ic card
JPH05342435A (en) * 1992-04-07 1993-12-24 Mitsubishi Electric Corp Ic card
JPH1011558A (en) * 1996-06-21 1998-01-16 Toshiba Corp Semiconductor integrated circuit and contact type ic card
JP2000322149A (en) * 1999-05-07 2000-11-24 Hitachi Ltd Semiconductor device
JP2009020861A (en) * 2007-06-12 2009-01-29 Renesas Technology Corp Processing device and clock control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0423092A (en) * 1990-05-17 1992-01-27 Mitsubishi Electric Corp Ic card
JPH04220789A (en) * 1990-12-20 1992-08-11 Fujitsu Ltd Clock switching method for ic card
JPH05342435A (en) * 1992-04-07 1993-12-24 Mitsubishi Electric Corp Ic card
JPH1011558A (en) * 1996-06-21 1998-01-16 Toshiba Corp Semiconductor integrated circuit and contact type ic card
JP2000322149A (en) * 1999-05-07 2000-11-24 Hitachi Ltd Semiconductor device
JP2009020861A (en) * 2007-06-12 2009-01-29 Renesas Technology Corp Processing device and clock control method

Also Published As

Publication number Publication date
JP5397320B2 (en) 2014-01-22

Similar Documents

Publication Publication Date Title
KR100801529B1 (en) Testing circuit and testing method for semiconductor device and semiconductor chip
US7516902B2 (en) Protection of a microcontroller
US7319758B2 (en) Electronic device with encryption/decryption cells
US8495734B2 (en) Method and device for detecting an erroneous jump during program execution
JP5397320B2 (en) IC chip, IC card, and method of operating IC chip
JP5742910B2 (en) IC chip, IC card, and method of operating IC chip
US9323941B2 (en) Secure method for processing a content stored within a component, and corresponding component
US8595275B2 (en) Pseudorandom number generator and data communication apparatus
JP5050893B2 (en) IC card attack detection method, IC card and IC card program
CN101925906A (en) Shielded electronic equipment stops the method for active transition, and the equipment that comprises corresponding control module
US20080187133A1 (en) Encryption code processing circuit, operation device and electronic apparatus
JP6396119B2 (en) IC module, IC card, and IC card manufacturing method
US8010585B2 (en) Checking the integrity of programs or the sequencing of a state machine
WO2005116917A1 (en) Semiconductor memory card
US20080187139A1 (en) Semiconductor device, smart card, and electrnoic apparatus
JP6969114B2 (en) IC card, IC card startup processing method, and IC card startup processing program
JP2006172271A (en) Multi-application ic card, and program for ic card
JP7247638B2 (en) Electronic information storage medium, IC card, falsification check method, and program
JP2008197810A (en) Information processing device and ic card device
US8521935B2 (en) Portable electronic apparatus, control method for portable electronic apparatus, and IC card
JP5492172B2 (en) Portable electronic device, IC card and IC module
JP2005346378A (en) Secure device
JP2008152452A (en) Portable electronic device, control method for portable electronic device, and ic card
JP2012060615A (en) Portable electronic device and method of controlling the same
JP2008047041A (en) Portable electronic device and ic card

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130311

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130912

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131007

R150 Certificate of patent or registration of utility model

Ref document number: 5397320

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150