WO2005081180A1 - 記憶装置及びデータ処理装置 - Google Patents
記憶装置及びデータ処理装置 Download PDFInfo
- Publication number
- WO2005081180A1 WO2005081180A1 PCT/JP2005/000588 JP2005000588W WO2005081180A1 WO 2005081180 A1 WO2005081180 A1 WO 2005081180A1 JP 2005000588 W JP2005000588 W JP 2005000588W WO 2005081180 A1 WO2005081180 A1 WO 2005081180A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- command
- information
- card
- storage device
- chip
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C16/00—Erasable programmable read-only memories
- G11C16/02—Erasable programmable read-only memories electrically programmable
- G11C16/06—Auxiliary circuits, e.g. for writing into memory
- G11C16/10—Programming or data input circuits
- G11C16/20—Initialising; Data preset; Chip identification
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B42—BOOKBINDING; ALBUMS; FILES; SPECIAL PRINTED MATTER
- B42D—BOOKS; BOOK COVERS; LOOSE LEAVES; PRINTED MATTER CHARACTERISED BY IDENTIFICATION OR SECURITY FEATURES; PRINTED MATTER OF SPECIAL FORMAT OR STYLE NOT OTHERWISE PROVIDED FOR; DEVICES FOR USE THEREWITH AND NOT OTHERWISE PROVIDED FOR; MOVABLE-STRIP WRITING OR READING APPARATUS
- B42D25/00—Information-bearing cards or sheet-like structures characterised by identification or security features; Manufacture thereof
- B42D25/30—Identification or security features, e.g. for preventing forgery
- B42D25/305—Associated digital information
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/067—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
- G06K19/07—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C16/00—Erasable programmable read-only memories
- G11C16/02—Erasable programmable read-only memories electrically programmable
- G11C16/06—Auxiliary circuits, e.g. for writing into memory
- G11C16/22—Safety or protection circuits preventing unauthorised or accidental access to memory cells
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C2216/00—Indexing scheme relating to G11C16/00 and subgroups, for features not directly covered by these groups
- G11C2216/12—Reading and writing aspects of erasable programmable read-only memories
- G11C2216/30—Reduction of number of input/output pins by using a serial interface to transmit or receive addresses or data, i.e. serial access memory
Definitions
- the present invention relates to a storage device having a nonvolatile information storage function, a storage device having a security function for stored information as well as a nonvolatile information storage function, and a data processing device such as a host device into which the storage device is inserted.
- a storage device having a nonvolatile information storage function
- a data processing device such as a host device into which the storage device is inserted.
- Device for example, flash memory chip
- the present invention relates to a technology effective when applied to a memory card having a microcomputer chip for an IC card and a controller chip.
- Non-Patent Document 1 describes an interface terminal and a transfer protocol between devices of an IC card.
- ATR Answer To Reset
- the ATR is a value indicating the communication protocol sent from the IC card to the interface device after the reset process as a response to the reset process.
- Non-Patent Document 2 describes a command specification for information exchange of an IC card.
- Patent Document 1 discloses a flash memory chip and an IC card chip that can execute security processing, and a controller chip that controls access to the flash memory chip and the IC card chip in response to a request from a host.
- the following describes a memory card in which this controller chip can access both a flash memory chip and an IC card chip in response to a request from a host.
- Non-patent document l ISO / lEC 7816-3 Second edition (1997—12—15)
- Non-Patent Document 2 ISOZlEC 7816-4 First edition (1995-09-01)
- Patent Document 1 Japanese Patent Application Laid-Open No. 2003-22216 (FIG. 1)
- the inventor has studied the communication ability between the memory card and the card host.
- the first concerns the application of flash memory cards equipped with security functions using IC card chips to mopile applications.
- the card host Normally, when the IC card is reset between the IC card and the card host, the card host directly reads the ATR information as a reset response output from the IC card, and performs necessary communication settings using the ATR information. Thereafter, under the set communication conditions, command processing is performed in accordance with the description of Non-Patent Document 2.
- Some card host applications use unique values that are included in the ATR information and depend on the IC card OS (operating system).
- the ATR information which has been directly exchanged between the card host and the IC card in the past cannot be read. That is, the reset and communication settings for the IC card chip are performed by the card controller, and the ATR information is not output to the card host. ATR information cannot be read with the new card commands CMD51 and CMD52 after communication settings. As a result, there is a problem in terms of compatibility with an IC card in processing depending on an application for inquiring ATR information in a card host. Further, since the card host cannot acquire the ATR information from the memory card having the IC card chip, the operation of the IC card chip depends on the application of the card host and the processing performed by the IC card chip. Communication settings such as frequency cannot be changed, which limits the use of mopile. This is because the communication system between the memory card equipped with the IC card function and the card host is insufficient with the conventional memory card command system.
- the erasing unit memory of the flash memory mounted on the memory card differs, the rewriting stress on the flash memory may increase or the writing may increase depending on the number of data transfers from the card host during writing. Regarding the transfer rate getting worse.
- the flash memory mounted on a memory card does not have a uniform erasing unit due to differences in memory array configurations such as AND, NAND, and AG-AND and differences in storage capacity.
- the controller of the memory card controls the erasing process according to the difference in the erase unit.
- the flash memory is physically erased by the number of write data transferred by one write command from the card host. Are performed differently.
- the erasing unit is 2048 bits
- rewriting of 2048 bits is performed.
- the card host issues a write command twice with 1024 bits of writing data
- the writing is performed with 2048 bits of writing data.
- the stress caused by applying a high voltage for erasing is doubled compared to issuing a single write command.
- a memory card with a flash memory with a larger rewrite unit has a higher rewrite stress (erase count) and a larger write overhead. This is because the conventional memory card command system provides a communication means for recognizing the erasing unit of the built-in non-volatile memory also by an external force.
- An object of the present invention is to improve the communication capability between a security controller such as an IC card chip or a data processing device of a storage device such as a memory card equipped with a nonvolatile memory such as a flash memory chip. It is in.
- Another object of the present invention is to make it possible to change the operation speed and power consumption of a security controller in a storage device such as a memory card equipped with a security controller such as an IC card chip.
- Still another object of the present invention is to provide a non-volatile memory such as a flash memory mounted on a memory card, which performs writing with less rewriting stress in accordance with the unit of initialization of a storage area.
- An object of the present invention is to externally enable good initialization of data transfer efficiency.
- a storage device such as a memory card includes an interface controller, a rewritable nonvolatile memory, and a security controller that performs data security processing, and the interface controller responds to a reset instruction to the security controller.
- the reset response information (ATR) output by the security controller and at least one of the information (F-CODE and F_CNT) indicating the unit of initialization of the storage area of the nonvolatile memory are externally provided to the interface controller. It can be output to the outside in response to a given first command.
- a data processing device such as a card host receiving the reset response information refers to the reset response information and informs the interface controller of the operation speed or operation of the security controller.
- a data processing device such as a card host receiving the information outputs the information when rewriting the storage information in the nonvolatile memory.
- a data processing device such as a card host receiving the information outputs the information when rewriting the storage information in the nonvolatile memory.
- the interface controller can change the frequency of a clock signal provided to the security controller in response to a command for setting a frequency.
- the interface controller extracts security processing information included in the second command in response to a second command given from the outside, and provides the information to the security controller.
- the security controller In response to the third command to which external force is also given, the security controller outputs the security processing result to the outside.
- the interface controller provides security without entering the security controller configuration. The security processing can be instructed to the controller.
- the interface controller has a volatile storage circuit that latches the at least one information in response to an initialization command of the storage device,
- the one information stored in the storage circuit is output to the outside of the storage device in response to a command.
- the at least one information latched in the volatile storage circuit may be initially stored in the nonvolatile memory. It is not necessary to access the inside of the security controller each time.In addition, when there are multiple non-volatile memories, it is not necessary to access the non-volatile memory more than once to obtain device codes etc. I'm done.
- the predetermined first command has a command code different from the initialization command of the storage device.
- the interface controller when assigning a command code of the initialization command of the storage device to the predetermined first command, sends the at least one information to the outside following the response of the initialization processing. Output.
- the interface controller when assigning a command code of a read command to a predetermined register such as a card identification register or a card characteristic register held by the interface controller to the predetermined first command, the interface controller Outputs the at least one piece of information to the outside following the output of the information held by the register or by allocating it to a reserved area of the register.
- the reset response information includes an operation limit frequency of the security controller and historical byte information.
- the information indicating the initialization unit of the storage area is a device code indicating the type of the nonvolatile memory, or data number information corresponding to the initialization unit generated based on the device code.
- a data processing device such as a card host, to which the storage device can be attached, outputs the predetermined first command for outputting the reset response information to the storage device. It is possible to input reset response information output from the storage device in response and change the setting of the operating frequency of the security controller with reference to the input reset response information. By outputting the reset response information to an external device in response to an external command, a data processing device such as a card host that receives the reset response information refers to the reset response information. Thus, the operating speed or operating frequency of the security controller can be changed by the interface controller.
- the storage device is attachable, and the predetermined first command for outputting information indicating an initialization unit of the storage area is stored in the storage device.
- the information indicating the initialization unit of the storage area output from the storage device in response to the information is input, and based on the input information indicating the initialization unit, the storage is performed.
- the number of data transfers of write data to the device is defined as the unit of initialization.
- a storage device such as a memory card includes an interface controller and a rewritable nonvolatile memory, and the interface controller stores information indicating a unit of initialization of a storage area of the nonvolatile memory, and stores the information in an external memory. It can be output to the outside in response to a predetermined command given to the interface controller. By outputting the information indicating the initialization unit to the outside in response to an external command, the data processing device such as a card host receiving the information indicates the initialization unit when rewriting the storage information in the nonvolatile memory. By referring to the information, it becomes possible to send a write data of an amount corresponding to the unit of initialization of the storage area to the storage device and then give a write instruction.
- the interface controller when assigning the same command code as the initialization command of the storage device to the predetermined command, the interface controller sets the initialization unit following the response of the initialization processing. Is output to the outside.
- the interface controller determines that the register is Following the output of the held information or by allocating it to a reserved area of the register, the information indicating the initialization unit is output to the outside.
- the information indicating the initialization unit is a device code indicating a type of a nonvolatile memory, or an initialization unit of a storage area generated based on the device code. Is data number information corresponding to.
- the interface controller obtains a device code indicating the type from the non-volatile memory, obtains an operation limit frequency of the non-volatile memory based on the obtained device code, and outputs the operation limit frequency to the predetermined command. In response, the operation limit frequency is output to the outside.
- the interface controller is capable of changing the frequency of a clock signal applied to the nonvolatile memory in response to a command for setting the frequency.
- a security controller such as an IC card chip or a nonvolatile memory such as a flash memory chip is mounted. It is possible to improve communication ability between a storage device such as a memory card and a data processing device such as a card host.
- the reset response information can be externally output, the operation speed and power consumption of the security controller in a storage device such as a memory card equipped with a security controller such as an IC card chip can be changed.
- the information indicating the initialization unit can be externally output, a storage area such as an erase unit in a nonvolatile memory such as a flash memory mounted on a memory card is used as the initialization unit. It is possible to externally perform access control with low rewriting stress and good write data transfer efficiency.
- FIG. 1 is a block diagram showing an internal configuration of an MMC as a storage device to which the present invention is applied.
- FIG. 2 is an explanatory diagram showing command protocols of a secure read command (CMD51) and a secure write command (CMD52).
- FIG. 3 is an explanatory diagram illustrating some forms of an ATR information read command.
- FIG. 4 is an explanatory diagram illustrating a first embodiment for realizing a function based on an ATR information read command CMD50.
- FIG. 5 is an explanatory diagram illustrating a second embodiment for realizing a function based on an ATR information read command CMD50.
- FIG. 6 is an explanatory diagram illustrating a third embodiment for realizing a function based on an ATR information read command CMD50.
- FIG. 7 is an explanatory diagram showing an operation example in which the host device refers to ATR information.
- FIG. 8 is an explanatory diagram showing another operation example in which the host device refers to the ATR information.
- FIG. 9 is an explanatory diagram showing another operation example in which the host device refers to the ATR information.
- FIG. 10 is an explanatory diagram showing another operation example in which the host device refers to ATR information.
- FIG. 11 is an explanatory diagram showing another operation example in which the host device refers to the ATR information.
- FIG. 12 is an explanatory diagram illustrating some forms of a device code read command stored in a flash memory chip as information indicating an erase unit.
- FIG. 13 is an explanatory diagram illustrating a first embodiment for realizing a function based on a device code read command CMD49.
- FIG. 14 is an explanatory diagram exemplifying a second embodiment for realizing a function by a device code read command CMD49.
- FIG. 15 is an explanatory diagram illustrating a third embodiment for realizing a function based on a device code read command CMD49.
- FIG. 16 is an explanatory diagram exemplifying the first half of the operation in the case of performing 1 KB data transfer with one command and writing a total of 2 KB data to the MMC1 equipped with an erase unit of 2 KB flash memory.
- FIG. 17 is an explanatory diagram illustrating a second half operation following the operation in FIG.
- FIG. 9 is an explanatory diagram showing a comparative example of the operation of FIG.
- FIG. 7 is an explanatory diagram showing an operation example of optimizing the number of transfer of write data by using the operation example.
- FIG. 20 is an explanatory diagram showing an operation of performing 2 KB data transfer with one command and writing a total of 2 KB data to the MMC1 equipped with a flash memory of 2 KB erase unit.
- FIG. 21 is an explanatory diagram showing an example in which a controller chip has an analysis function of an optimum rewrite unit based on a read device code.
- FIG. 1 is a diagram showing an internal configuration of a MultiMediaCard (MultiMediaCard is a registered trademark of Infineon Technologies AG; hereinafter, abbreviated as “MMC”) as a storage device to which the present invention is applied.
- MMC1 preferably conforms to the MMC specification.
- MMC 1 is necessary for protection of confidential data and personal authentication based on a memory card command conforming to the MMC specification issued from the host device (or card host) 2 as a data processing device connected to MMC 1. It has a security processing function that performs various cryptographic operations.
- the host device 2 is, for example, a mobile phone, a personal digital assistant (PDA), a personal computer, a music reproducing (and recording) device, a camera, a video camera, an automatic teller machine, a street corner terminal, and a settlement terminal. Is applicable.
- the MMC 1 has an MMC external terminal 3, a controller chip 4 as an interface controller, a flash memory chip (FLASH) 5 as a non-volatile memory, and an IC card chip (MCU) 6 as a security controller.
- the flash memory chip 5 is a memory chip using a nonvolatile semiconductor memory as a storage medium, and can read and write data by a flash memory command.
- the MMC external terminal 3 is used to exchange information with the external host device 2 to supply power (VCC2) 10, clock (CLK1) input 11, command (CMD) input / output 12, and data (DAT) input.
- the MMC specification stipulates two types of operation modes for MMC1, an MMC mode and an SPI mode, and the usage of the MMC external pin 3 differs depending on the operation mode.
- the controller chip 4 is a microcomputer chip that is connected to the MMC external terminal 3, the flash memory chip 5, and the IC card chip 6 and controls these.
- the IC card chip 6 is a microcomputer chip to be embedded in a plastic substrate of the IC card. External terminals, electric signal protocols and commands of the IC card chip 6 conform to the ISO ZIEC7816 standard.
- the external terminals of the IC card chip 6 include a power (VCC2) supply terminal 20, a clock (CLK2) input terminal 21, a reset (RES) input terminal 22, an input / output (IZO) terminal 23, and a ground (GND) terminal 24. There is.
- the NC terminal is a spare terminal for the future.
- the IC card chip 6 includes a CPU (microcomputer) for performing arithmetic processing, a ROM (Read Only Memory) for storing data (including programs), and a RAM (Read Only Memory). Random Access Memory), an EEPROM (Electrically Erasable Programmable ROM), an encryption coprocessor that constitutes an encryption device for performing processing related to encryption Z decryption, and a serial interface for transmitting and receiving data to and from the outside. These are interconnected by a bus.
- a CPU microcomputer
- ROM Read Only Memory
- RAM Read Only Memory
- EEPROM Electrical Erasable Programmable ROM
- an encryption coprocessor that constitutes an encryption device for performing processing related to encryption Z decryption
- serial interface for transmitting and receiving data to and from the outside.
- the cryptographic coprocessor performs security processing in response to a command from the host device 2.
- the CPU may execute the security processing using a program (software) instead of the cryptographic coprocessor (wareware).
- the security processing is executed, for example, when data is written to the storage area in the IC card chip 6 or when the storage area data in the IC card chip 6 is read.
- the flash memory chip 5 has a nonvolatile storage element.
- the storage capacity of the EEPROM of the IC card chip 6 is smaller than the storage capacity of the flash memory chip 5! / ⁇ .
- the storage capacity of the EEPROM may be the same as or larger than the storage capacity of the flash memory chip 5.
- the IC card chip 6 it is desirable to use a product that has been certified by a certification organization of ISOZIEC15408, which is an international security evaluation standard.
- ISOZIEC15408 which is an international security evaluation standard.
- the IC card must be evaluated and certified by an ISOZIEC 15408 evaluation and certification body.
- MM by adding a function to perform security processing to MMC
- MMC1 also needs to be evaluated and certified by ISOZIEC15408.
- the MMC 1 obtains a security processing function by incorporating the IC card chip 6 that has been certified by the evaluation organization and performing security processing using the IC card chip 6.
- MMC1 can easily satisfy the security evaluation criteria based on ISOZIEC15408, and the development period for adding security processing functions to MMC can be shortened.
- an IC card chip that is not a product that has been certified by the ISOZIEC15408 evaluation and certification body is not excluded, and an IC card chip according to the security strength required for the service provided by the IC card chip may be used.
- the MMC 1 has an external interface conforming to the MMC specification. MMC 1 needs to accept commands to execute security processing in addition to standard memory card commands (commands for accessing the flash memory chip) through one type of external interface.
- the controller chip 4 has a function of selecting a chip to be accessed and distributing command processing according to whether the command received by the MMC 1 is a standard memory card command or a command for executing security processing. . In this example, when the controller chip 4 receives the standard memory card command, it can select the flash memory chip 5 and issue a flash memory command to it to read and write host data.
- the controller chip When a command for executing the security processing is received, the IC card chip 6 is selected, and an IC card command is issued to the IC card chip 6 to execute the security processing.
- the controller chip has a function of outputting ATR information output from the IC card chip in response to a reset instruction to the outside in order to enhance communication capability with the host device 2, and indicates an erasing unit of the flash memory chip 5. It has a function to output information to the outside. However, it does not exclude external interfaces other than the external interfaces conforming to the MMC specifications, but may conform to external interfaces that exist now or will exist in the future.
- the external terminals of the IC card chip 6 are connected to the controller chip 4 except for the power supply terminal 20, the clock input terminal 21, the reset input terminal 22, and the input / output terminal 23 except for the ground terminal 24. It is.
- the controller chip 4 controls power supply and clock supply to the IC card chip 6 through the power supply terminal 10 and the clock input terminal 11. According to the present embodiment, the controller chip 4 can stop the power supply and the clock supply to the IC card chip 6 when the host device 2 does not require the security processing, and the power consumption of the MMC 1 can be reduced. Monkey
- the controller chip 4 has a function of starting power supply to the IC card chip 6 through the power supply terminal when the MMC 1 receives a command for executing security processing from the host device 2. Further, the controller chip 4 has a function of performing a reset process of the IC card chip 6 through a reset input terminal when the MMC 1 receives a command for executing a security process from the host device 2. According to this, the controller chip 4 can stop the power supply to the IC card chip 6 until receiving the command for executing the security processing. Therefore, the power consumption of MMC1 can be reduced.
- the controller chip 4 generates a clock signal to be supplied to the IC card chip 6 through the clock input terminal of the IC card chip 6 inside the MMC 1 and has a function of controlling the frequency, supply start timing, and supply stop timing. .
- Controller chip 4 includes CPU 31, flash memory iZF control circuit (FMIF) 32, MM ClZF control circuit (MMCIF) 33, CLKO oscillator (CLKOGEN) 34, VCC2 control circuit (VCC2CNT) 35, CLK2 control circuit (CLK2CNT) 36, an IC card iZF control circuit (ICIF) 37, and a data buffer 38.
- These components 31 to 38 are operated by the power supplied from the host device 2 through the VCC1 terminal 10 and the GND1 terminals 14 and 14.
- the MMCIZF control circuit 33 is a logic circuit that is connected to the CS terminal 15, the CMD terminal 12, the CLK1 terminal 11, and the DAT terminal 13, and controls the interface for the MMC1 to exchange information with the host device 2 through those terminals. is there.
- the CPU 31 is connected to the MMCIZF control circuit 33. Control. When the MMCIZF control circuit 33 receives a memory load command from the host device 2 through the CMD terminal 12, the MMCIZF control circuit 33 transmits the result of whether or not the command was successfully received to the host device 2 through the CMD terminal 12 to inform the host device 2 of the result. Send the response to 2.
- the CPU 31 interprets the received memory card command and executes a process according to the command content. If it is necessary to transmit and receive data through the host device 2 and the DAT terminal 13 according to the command content, the CPU 31 sends data to the MMCIZF control circuit 33 and obtains data from the MMCIZF control circuit 33. Perform.
- the CLKO oscillator 34 is connected to the CPU 31 and supplies a drive clock for operating the CPU 31.
- the flash memory chip 5 is a memory chip using a nonvolatile semiconductor memory as a storage medium.
- the flash memory chip 5 operates by power supplied from the host device 2 through the VCC1 terminal 10 and the GND1 terminal 14.
- the flash memory chip 5 has a write function of storing input data in a nonvolatile semiconductor memory in accordance with an external flash memory command, and a read function of outputting data stored in the memory to the outside.
- the flash memory IZF control circuit 32 is a logic circuit for issuing a flash memory command to the flash memory chip 5 and transferring data input / output by the command.
- the CPU 31 controls the flash memory IZF control circuit 32 to cause the flash memory chip 5 to execute a data write function and a data read function.
- the CPU 31 communicates with the flash memory IZF control circuit 32.
- the data transfer between the MMCIZF control circuits 33 is controlled.
- the ground terminal 24 of the IC card chip 6 is connected to the GND terminal 14 of the MMC external terminal 3.
- the VCC2 terminal 20 of the IC card chip 6 is connected to the VCC2 control circuit 35 of the controller chip 4.
- the RST terminal (reset input terminal) 22 and the IZO terminal (data input / output terminal) 23 of the IC card chip 6 are connected to the IC card IZF control circuit 37 of the controller chip 4.
- the CLK2 terminal (clock input terminal) 21 of the IC card chip 6 is connected to the CLK2 control circuit 36 of the controller chip 4.
- the VCC2 terminal 20 is a power supply terminal for supplying power to the IC card chip 6.
- the C2 control circuit 35 is a circuit that generates a VCC2 voltage and controls the start and stop of power supply to the VCC2 pin 20 by a switch circuit using a MOS-FET element.
- the VCC2 control circuit 35 is connected to the CPU 31, and the CPU 31 can control the start and stop of power supply to the VCC2 pin 20.
- the CPU 31 can stop supplying power to the VCC2 terminal 20.
- the MMC 1 can save power consumed by stopping power supply to the IC card chip 6.
- the CLK 2 terminal 21 is a terminal for inputting a clock signal to the IC card chip 6.
- the CLK2 control circuit 36 is a circuit that supplies a clock to the CLK2 terminal 21.
- the CLK2 control circuit 36 generates a clock signal to be supplied to the CLK2 terminal 21 based on the clock signal supplied from the CLKO oscillator 34.
- the CLK2 control circuit 36 is connected to the CPU 31, and can control the start and stop of the supply of the clock to the CLK 2 terminal 21 from the CPU 31.
- the IC card chip 6 does not have a drive clock oscillator therein. Therefore, it operates by supplying a drive clock from the CLK2 terminal 21.
- the CLK2 control circuit 36 F2 (P / Q) * Create a clock signal that has the relationship of FO and supply it to CLK2 pin 21.
- the values of P and Q can be set by CPU31. If P2 is set large and F2 is increased, the internal processing of the IC card chip 6 can be driven at a higher speed. When Q is set large and F2 is reduced, the internal processing of the IC card chip 6 is driven at a lower speed, and the power consumption of the IC card chip 6 can be reduced.
- the driving clock frequency of the IC card chip 6 needs to be set within an allowable frequency range in which the IC card chip 6 can operate properly. Therefore, the CLK2 control circuit 36 does not allow the values of P and Q to be set so that the value of F2 is out of the allowable frequency range.
- the IZO terminal 23 is an input / output terminal used when an IC card command is input to the IC card chip 6 or the IC card chip 6 outputs an IC card response.
- IC card IZF The control circuit 37 is connected to the IZO terminal 23 and is a circuit for transmitting a signal of an IC card command and receiving a signal of an IC card response through the ⁇ terminal 23.
- the IC card ⁇ F control circuit 37 is connected to the CPU 31.
- the CPU 31 controls the procedure for transmitting and receiving IC card commands and IC card responses by the IC card iZF control circuit 37, and transmits IC card command data to be transmitted to the IC card.
- the card IZF control circuit 37 It is set in the card IZF control circuit 37, and the received IC card response and the like are acquired from the IC card IZF control circuit 37.
- a clock is supplied from the CLK2 control circuit 36 to the IC card IZF control circuit 37, and IC card commands and IC card responses are transmitted and received through the IZO terminal 23 in synchronization with the clock signal supplied to the CLK2 terminal 21 in bit units. Is done.
- the RST terminal 22 is a terminal for inputting a reset signal when resetting the IC card chip 6.
- the IC card IZF control circuit 37 is connected to the RST terminal 22, and can send a reset signal to the IC card chip 6 according to an instruction from the CPU 31.
- the standard memory card command conforming to the MMC will be described.
- the command has a 6-byte command field.
- the first byte is the command code (the first two bits are fixed to "01"), the middle four bytes are arguments used for parameter specification, and the last one byte is CRC ( Cyclic Redundancy Check).
- MMC returns a response to the host device every time a command is issued. For example, when a reset start command such as CMD1 is issued, the inside of MMC1 is initialized. At this time, the controller chip 4 gives a reset instruction to the reset terminal 22 of the IC card chip 6. When a reset instruction is given to the reset terminal 22, the IC card chip 6 initializes the inside and outputs ATR information as reset response information to the controller chip 4.
- the ATR information includes an operating limit frequency of the IC card chip 6, a historical byte, and the like.
- the historical bytes include version information of the OS (operating system) held by the IC card chip 6 and attribute information of application programs.
- the controller chip 4 refers to the ATR information received from the IC card chip 6 and performs communication settings such as the frequency of the clock CLK2.
- the host device issues a read command such as CMD17
- the MMC1 returns a response including the command index and the card status corresponding to the received command to the host device
- the data read from the flash memory chip is output to the host device.
- a write command such as CMD24 is issued
- the MMC1 returns a response including the command index and card status corresponding to the received command to the host device, and writes the write data supplied from the host device to the flash memory chip. Write.
- the security processing command that causes the IC card chip 6 to execute security processing is realized by an IC card access command. Specifically, a secure read command (CMD51) and a secure write command (CMD51) using a free command code of a standard memory card command are used. CMD 52).
- the command protocol is the same as the standard memory card command read and write commands.
- FIG. 2 shows a command protocol of a secure read command (CMD51) and a secure write command (CMD52).
- the signal information corresponding to the description position of the CMD is signal information input / output via the CMD terminal
- the signal information corresponding to the description position of the DAT is a signal input / output via the DAT terminal. It means information.
- the supply direction of the information described in the single frame is the direction from the card host to the MMC1
- the supply direction of the information described in the double frame is the direction from the MMC1 to the card host.
- the write data includes a transfer data byte count STL and an IC card command (C APDU) conforming to IS07816.
- the CPU 31 of the controller chip 4 When the CPU 31 of the controller chip 4 identifies the CMD52 from the command code of the supplied command, among the accompanying write data, it issues an IC card command (C-APDU) of the byte indicated by the transfer data byte number STL. Provided from ICIF37 to input / output terminal 23 of IC card chip 6.
- the read data includes a transfer data byte number STL and an IC card response (R-APDU) based on IS07816.
- IC card response (R-APDU) is data that has been subjected to security processing by an IC card.
- ATR information cannot be read from the IC card chip 6 and output to the outside of the MMC1.
- the ATR information as reset response information is based on the operating clock that determines the operating limit frequency of the IC card chip. Includes the clock rate, baud rate of input / output data, and historical byte information of the IC card chip.
- MMC1 has a command (ATR information read command) that enables ATR information to be read out of MMC1 as a command to enhance communication capability with the host device.
- FIG. 3 illustrates some forms of the ATR information read command.
- the first form of the ATR information read command is a new command using the empty command code of the standard memory card command (also simply referred to as the ATR information read command CMD50).
- ATR information read command In the column of CMD50 the signal information corresponding to the description position of CMD means the signal information input / output via the CMD terminal, and the signal information corresponding to the description position of DAT is DAT This means that the signal information is input / output via the terminal.
- the supply direction of the information described in the single frame is the direction from the card host to the MMC1
- the supply direction of the information described in the double frame is the direction from the MMC1 to the card host.
- the command CMD50 When the command CMD50 is input to the CMD pin, a response is returned in response to this, and the ATR information is output to the DAT pin following the transfer data byte count STL.
- the ATR information read command CMD50 assumes that the MMC1 has one IC card chip.
- the second form of the ATR information read command assumes that the IC card chip mounted on the MMC1 has a power of two or more, and the data output from the DAT terminal in response to the CMD50 is performed for each IC card chip. Number of data bytes STL and ATR information are output sequentially.
- the controller chip 4 recognizes the number of IC card chips 6.
- the third form of the ATR information read command is an IC card chip mounted on the MMC1.
- the ATR information of the IC card chip specified by the parameter is read.
- the parameter is information specifying the number of the IC card chip
- the controller chip 4 DATs the ATR information of the IC card chip 6 of the number specified by the parameter with respect to the number of IC card chips 6. Output from the terminal.
- the fourth form of the ATR information read command has the same command code as an existing reset start command such as CMD1, and the controller chip 4 sends the number of transfer data bytes STL to the CMD terminal following the response of the initialization processing. And output ATR information.
- the fifth form of the ATR information read command has the same command code as the existing register read command such as CMD9, and the controller chip 4 continues to output the register value or allocates it to the reserved area of the register.
- the transfer data byte number STL and ATR information are output to the CMD terminal.
- the registers to be read by CMD9 are a card identification register (CID) that holds the manufacturer number and the serial number of the card, and a card characteristic data register (CSD) that holds information such as access time and card capacity.
- CID card identification register
- CSD card characteristic data register
- FIG. 4 illustrates a first embodiment for realizing a function based on the ATR information read command CMD50.
- the IC card chip 6 when the ATR information read command CMD50 is received, the IC card chip 6 performs a reset process, whereby the ATR information output from the IC card chip 6 is stored in the data buffer 38 and stored.
- the ATR information is output to the host device 2. That is, when the ATR information read command CMD50 is issued from the host device 2 (ST1), the controller chip 4 inputs this, decodes it with the CPU 31, and instructs the RES terminal of the IC card chip 6 to reset via the ICIF37. (ST2).
- the IC card chip 6 is initialized and outputs ATR information, which is stored in the data buffer 38 from the ICIF 37 via the CPU 31 (ST3).
- the stored ATR information is output from the MMCIF 33 to the host device 2 (ST4).
- FIG. 5 illustrates a second embodiment for realizing a function based on the ATR information read command CMD50.
- the ATR information output by the reset processing of the IC card chip 6 is stored in the data buffer 38 at the time of the power-on reset of the MMC1, and when the ATR information read command CMD50 is received, the ATR information is Output from the data buffer 38 to the host device 2. That is, the reset start command is issued from the host device 2.
- the controller chip 4 inputs the command, decodes it by the CPU 31, and instructs the RES terminal of the IC card chip 6 to reset via the ICIF 31 (ST2).
- the IC card chip 6 is initialized and outputs ATR information, which is stored in the data buffer 38 from the ICIF 37 via the CPU 31 and held (ST3).
- the controller chip 4 receives the command, decodes the ATR information in the CPU 31, and stores the ATR information stored in the data buffer 38 from the MMCIF 33 into the host device. Output to device 2 (ST4).
- the waiting time from when the ATR information read command CMD50 is issued from the host device 2 to when the ATR information is output from the MMCIF 33 to the host device 2 is shorter than in the first embodiment.
- FIG. 6 illustrates a third embodiment for realizing a function based on the ATR information read command CMD50.
- ATR information is stored in a predetermined area of the flash memory chip 5 in advance, and when an ATR information read command CMD50 is received, the ATR information is read from the flash memory chip 5 and output to the host device 2. It does. That is, in the flash memory chip 5, control data such as CID and ATR information are stored in advance in a system area different from the user area (an area in which the user of the MMC 1 is not allowed to use freely).
- the controller chip 4 When the ATR information read command CMD50 is issued from the host device 2 (ST1), the controller chip 4 inputs this, decodes it with the CPU 31, reads the ATR information via the FMIF32, and stores it in the data buffer 38. (ST6). Then, the CPU 31 outputs the ATR information from the data buffer 38 to the host device 2 via the MMCIF 33 (ST4).
- the waiting time from when the ATR information read command CMD50 is issued from the host device 2 to when the ATR information is output from the MMC IF 33 to the host device 2 is shorter than in the first embodiment. Force The waiting time is longer than in the second embodiment.
- FIG. 7 shows an operation example in which the host device refers to the ATR information.
- the host device 2 executes the ATR information query module in the host application program, it issues an ATR information read command CMD50 (ST1).
- the controller chip 4 of the MMC 1 outputs the ATR information to the host device 2 (ST4).
- the host device 2 determines whether the ATR information read according to the program of the inquiry module is that of the IC card OS specified by the expected information (ST7). If it is of the expected IC card OS, it issues a secure write command CMD52 (ST8) and instructs the IC card chip 6 to perform predetermined security processing. For example, the encryption processing method mounted on the IC card chip is determined based on the ATR information corresponding to the IC card OS, and if the determined method is the encryption processing method based on the elliptical encryption operation, the secure write processing is performed. The operation corresponding to the write data (Data) following the command CMD52 is instructed (ST9).
- FIG. 8 shows another operation example in which the host device refers to the ATR information.
- the host device 2 refers to the ATR information.
- a balance inquiry operated by a commercial power source for which it is desirable to lower the operating frequency of the IC card chip 6 from the viewpoint of power saving.
- a stationary terminal device capable of performing the above it is desirable to increase the operating frequency of the IC card chip 6 from the viewpoint of high-speed processing.
- the host device 2 performs non-contact interface communication with the IC card chip 6, it is desirable to complete the data processing quickly because the power supply to the IC card chip 6 is covered by the electromotive force via the antenna.
- the host device 2 refers to the operable frequency information of the IC card chip 6 included in the ATR information read by the ATR information read command CMD50, and operates if the host device 2 is a portable terminal.
- the frequency lower than the highest operating frequency is set to the IC card chip 6 by the frequency setting command CMD54. If the host device 2 is a stationary terminal device, the operating frequency of the IC card chip 6 is set to the highest operating frequency by the operating frequency setting command CMD54. If the host device 2 is a device that interfaces with the IC card chip in a non-contact manner, the operating frequency of the IC card chip 6 is set to the maximum operating frequency by the operating frequency setting command CMD54.
- the IC card operation frequency setting command CMD54 is a new command that uses an empty command code of a standard memory card command.
- CLK2CNT36 that performs the above frequency control is CLK0GEN34 It has frequency dividers DIV1 and DIV2 for dividing the generated clock, and a clock selector CLKSEL for selecting the output of the frequency dividers DIV1 and DIV2. For example, if the maximum operating frequency of the IC card chip 6 is 10 MHz (megahertz), the output of the frequency divider DIV1 is 10 MHz, and the output of the frequency divider DIV2 is 1 MHz.
- Clock selector Output selection by CLKSEL is specified by command CMD54.
- the host device 2 refers to the read ATR information, and if you want to operate the IC card chip at the maximum operating frequency at which the ATR information can be ascertained, select the output of the frequency divider DIV1 with command C MD54 and also understand the ATR information If you do not want to operate the IC card chip at the highest possible operating frequency, use command CMD54 to select the output of frequency divider DIV2.
- FIG. 9 shows another operation example in which the host device 2 refers to the ATR information.
- the host device 2 controls the operating frequency of the IC card chip 6 according to the operation content of the IC card chip 6 according to the application program. For example, when the host device 2 causes the IC card chip 6 to perform a cryptographic operation in accordance with the application program, the host device 2 issues the command CMD50 to read the ATR information, and reads the IC card at the limit operating frequency indicated by the read ATR information.
- the command CMD54 causes the controller chip 4 to control the operating frequency of the IC card chip 6 so that the chip 6 operates.
- the operation frequency of the IC card chip 6 can be controlled by, for example, selecting the output of the frequency divider as described with reference to FIG.
- the host device 2 writes an IC card command for signal calculation into the controller chip 4 as an IC command (C APDU)) by the command CMD52.
- the controller chip 6 supplies the IC card command (C-APDU) for the cryptographic operation to the IC card chip 6, and the IC card chip 6 decrypts the IC card command (C APDU) for the cryptographic operation, and the decryption result is obtained. , And returns a response (R-APDU) to the calculation result.
- the response is output to the host device 2 from the DAT terminal of the MMC 1 via the controller chip 4 in response to the command CMD51 given from the host device.
- the cryptographic operation processing by the IC card chip 6 is executed at high speed in synchronization with the limited operating frequency of the IC card chip 6 or a high frequency corresponding thereto.
- the host device recognizes the settable operation capability such as the limit operating frequency of the IC card chip 6 by the ATR information read command CMD50, and Due to the nature of the operation using the IC card chip 6, the device can make settings for the IC card chip 6 so that the processing can be performed efficiently, as represented by the high-speed control of the synchronous clock frequency of the cryptographic operation. .
- the processing operation of the MMC 1 can be performed at high speed in accordance with the processing by the application program of the host device 2, as represented by the cryptographic operation processing by the IC card chip 6.
- the host device 2 does not have a command system for reading the ATR information of the IC card chip 6 as in the related art, the command processing enclosed by the broken line in FIG. 9 cannot be performed, and the IC card chip It is not possible to perform the control of designating the cryptographic operation processing by 6 to achieve high-speed operation, and the execution period of the cryptographic operation processing in FIG. 9 is prolonged.
- FIG. 10 shows another operation example in which the host device 2 refers to the ATR information.
- the host device 2 controls the operating frequency of the IC card chip 6 according to the operation of the IC card chip 6 according to the application program.
- the clock signal frequency of the IC card chip 6 is set high when performing data transfer between the host device 2 and the IC card chip 6.
- the host device 2 reads the ATR information by issuing the command CMD50 and operates the IC card chip 6 at the limit operating frequency indicated by the read ATR information. Then, the command CMD54 causes the controller chip 4 to change the operating frequency of the IC card chip 6 at a high speed.
- FIG. 11 shows another operation example in which the host device 2 refers to the ATR information.
- the host device 2 controls the operating frequency of the IC card chip 6 according to the operation of the IC card chip 6 according to the application program.
- the clock signal frequency of the IC card chip 6 is set high when performing data transfer between the IC card chip 6 and the flash memory chip 5.
- the host device 2 issues the command CMD50 to read the ATR information.
- the command CMD54 causes the controller chip 4 to change the operating frequency of the IC card chip 6 at a high speed so that the IC card chip 6 operates at the limit operating frequency indicated by the read and read ATR information.
- FIG. 12 exemplifies some forms of a device code read command (device code read command) stored in the flash memory chip 5 as information indicating an erase unit.
- the device code is code information indicating a product type of each flash memory manufacturer. With this device code, the storage capacity of the flash memory chip 5 and the number of bytes of the erasing unit are uniquely controlled.
- the first form of the device code read command is a new command CMD49 using a free command code of a standard memory card command.
- Device code read command In the column of CMD49, the signal information corresponding to the description position of CMD means signal information input / output via the CMD terminal, and the signal information corresponding to the description position of DAT is DAT It means signal information input / output via a terminal.
- the supply direction of the information described in the single frame is the direction from the card host to MMC1
- the supply direction of the information described in the double frame is the direction from MMC1 to the card host.
- the command CMD49 When the command CMD49 is input to the CMD terminal, a response is returned in response to the command CMD49, and the device code of the flash memory chip 5 (flash device code) is output to the DAT terminal following the number STL of transfer data knots. In the first embodiment, it is assumed that the number of flash memory chips 5 is one.
- the second form of the device code read command is based on the assumption that the flash memory chip 5 mounted on the MMC1 is composed of a plurality of memory chip cards, and the data of the DAT terminal force in response to CMD49.
- the output is the number of data bytes S for each flash memory chip 5.
- TL and flash device code are sequentially output.
- the controller chip 4 recognizes the number of the flash memory chips 5 and controls data output for the number.
- the third form of the device code read command is such that when two or more flash memory chips 5 are mounted on the MMC1, the flash device code of one flash memory chip 5 specified by a parameter is read. It was made.
- the parameter is information specifying the number of the flash memory chip, and the controller chip 4 outputs the flash device code of the flash memory chip of the number specified by the parameter with respect to the number of flash memory chips from the DAT terminal. I do.
- the third embodiment has a significance to be used in a case where a plurality of flash memory chips 5 are mounted and an attempt is made to read individual flash device codes one by one.
- FIG. 13 illustrates a first embodiment for realizing a function based on the device code read command CMD49.
- the controller chip 4 issues a device code output command to the flash memory chip 5 (ST11).
- the flash device code read from the flash memory chip 5 is stored in the data buffer 38 (ST12), and the stored flash device code is output to the host device 2 (ST13).
- F—CODE is the flash device code output from MMC1.
- FIG. 14 illustrates a second embodiment for realizing the function by the device code read command CMD49.
- the flash device code is read out from the flash memory chip 5 by a reset process at the time of power-on reset of the MMC 1 and stored in the data buffer 38, and when the device code read command CMD49 is received, the flash device The code is output from the data buffer 38 to the host device 2. That is, when the reset start command CMD1 is issued from the host device 2 (ST14), the controller chip 4 inputs this, decodes it in the CPU 31, and gives a device code output command to the flash memory chip 5 via the FMIF 32 (ST11). . The controller chip 4 stores the flash device code read from the flash memory chip 5 in the data buffer 38 via the CPU 31 (ST12).
- the controller In step 4 when the host device 2 issues a device code read command CMD49 (ST10), the controller In step 4, this is input, decoded by the CPU 31, and the flash device code stored in the data buffer 38 is output from the MMCIF 33 to the host device 2 (ST13).
- the second embodiment has a shorter waiting time from the issuance of the device code read command CMD49 from the host device 2 to the output of the flash device code from the MMCIF 33 to the host device 2 as compared to the first embodiment. .
- FIG. 15 illustrates a third embodiment for realizing the function by the device code read command CMD49.
- the flash device code F-CODE is stored in a predetermined memory area of the flash memory chip 5 in advance, and when the device code read command CMD49 is received, the memory device reads the flash device code.
- the flash device code is read from the flash memory chip 5 and output to the host device 2. That is, in the flash memory chip 5, control data such as CID and a flash device code F-CODE are stored in advance in a system area different from the user area! This area is a different memory area from the device code storage area individually held by the flash memory chip 5.
- the device codes of all the flash memory chips are typically stored in the predetermined area of one flash memory chip.
- the controller chip 4 inputs this, decodes it in the CPU 31, and reads the device code to the flash memory chip 5 via the FMIF32.
- An access command is given (ST15), and the read flash device code is stored in the data buffer 38 (ST16). Then, the CPU 31 outputs the flash device code from the data buffer 38 to the host device 2 via the MMCIF 33 (ST13).
- the wait time until the device code read command CMD49 is issued from the host device 2 and the flash device code is output from the MMCIF 33 to the host device 2 is shortened.
- the waiting time is longer than in the second embodiment.
- reading of the flash device code from the flash memory chip 5 to the data buffer 38 is performed by an initialization command by CMD1, and thereafter, the command CMD49 is executed in the same manner as in FIG. In response to the flash device code May be output from the data buffer 38 to the outside.
- the host device 2 When instructing MMC1 to perform multi-write for continuously writing data, the host device 2 sets the number of write data in 512-byte units with the command CMD23, and then supplies the command CMD25 and the write data. To start the write operation. Therefore, the number of erasures differs depending on the relationship between the designated number of write data and the erasure unit. For example, when transferring 1 kilobyte (KB) of data with one write command, and writing 2 KB of data to the AND-type flash memory with the erase unit of 2 KB, a total of two write commands are issued. Two erasures are required for each erasure unit.
- KB kilobyte
- the erased physical address of the write destination is assigned 1 KB of write data DataO, Data 1 in the data buffer and the write target logical address! /, And the remaining 1 KB of the original physical address Data2, Data2, , Data3, and so on (ST23).
- the host device issues a write command CMD25 and the remaining 512 bytes of write data Dat.
- the transfer data Data2 and Data3 (512B ⁇ 2) are taken into the data buffer (ST25). If a valid physical address corresponding to the logical address to be written exists, a new physical address to which the logical address is assigned is searched, and the block of the searched new write destination physical address is erased (ST26).
- the number of erasures and the write processing time differ depending on the content of the instruction by the write command process due to the difference in the erase unit of the flash memory chip.
- the host device grasps the erase unit of the flash memory and transfers the write data, the number of erases per erase unit can be reduced, and the write processing time can be prevented from becoming uselessly long. Will be possible.
- the host device 2 grasps the erase unit of the flash memory chip 5 from the flash device code read by the device code read command CMD49.
- FIG. 19 shows an operation example in which the host device 2 recognizes the erase unit of the flash memory chip 5 from the flash device code and optimizes the transfer number of write data.
- Erase unit When writing to a 2KB flash memory chip 5 in 512B units, write It is necessary to repeat the write command issue and erase and write operations four times.
- the host device 2 knows the flash device code read by the device code read command CMD49 and the erasure unit of the flash memory chip 5, the host device 2 can use the 2KB unit in the case of the flash memory chip 5 having the erasure unit of 2KB.
- FIG. 20 shows an operation of transferring 2 KB of data by one command to the MMC 1 equipped with the flash memory chip 5 of 2 KB of erasure unit and writing a total of 2 KB of data.
- the host device 2 knows that the erase unit of the flash memory chip 5 mounted on the MMC 1 is 2 KB by the command CMD49.
- FIG. 21 shows an example in which the controller chip 4 has the function of analyzing the optimum rewrite unit based on the read device code.
- the controller chip 4 decodes the command CMD48 by the CPU 31 and instructs the flash memory chip 5 to read the flash device code (ST41). I do.
- the controller chip 4 obtains an erase unit from the flash device code read from the flash memory chip 5, and analyzes an optimum rewrite unit. For example, if the device is a flash memory chip 5 with an erase unit of 2 KB, the optimal rewrite unit is 2 KB.
- the analysis result may be a value such as 2 KB, or the number of data in units of 512 ⁇ ⁇ ⁇ , for example, four.
- This analysis result is It is held in file 38 (ST42).
- the CPU 31 outputs the optimum rewrite unit information held in the data buffer 38 to the host device 2.
- the host device 2 directly refers to the optimum rewriting unit information, determines the number of data to be attached to one write command, and issues a write command to the MMC1.
- F-CNT is the optimum rewriting unit information and has a value of 4.
- the value 4 means 512B x 4
- the write data following the write command CMD25 is 512 units of 0 ⁇ 15128 units, which is a total of 2KB, and erases and erases data for the flash memory chip 5 with an erase unit of 2KB. The writing process can be performed most efficiently.
- FIG. 23 shows an example in which the device code is used for setting the frequency of the flash memory chip 5.
- the host device 2 reads the flash device code from the flash memory.
- the operation limit frequency of the chip 5 is calculated (ST50), and a command CMD54 for setting the operation frequency of the flash memory chip 5 is issued (ST51).
- the controller chip 4 controls the operating frequencies of the CPU 31, the DBUF 38, and the flash memory chip 5 by the CLK2CNT36. In the description of FIG. 8, the operating frequency of the IC card chip 6 is set by the CLK2CNT36.
- the CLK2CNT36 includes frequency dividers DIV1 and DIV2 for dividing the clock generated by the CLK0GEN34, and the frequency dividers DIV1 and DIV1. It has a clock selector CLKSEL for selecting the output of DIV2. For example, if the maximum operating frequency of the flash memory chip 5 is 10 MHz (megahertz), the output of the divider DIV1 is 10 MHz and the output of the divider DIV2 is 1 MHz. The output selection by the clock selector CLKSEL is specified by the command CMD54.
- the host device 2 refers to the read flash device code, and if you want to operate the flash memory chip 5 at the highest operating frequency that can be grasped, select the output of the frequency divider DIV1 with the command VCMD54 and grasp from the device code. If you do not want to operate the IC card chip at the highest possible operating frequency, use command CMD54 to select the output of frequency divider DIV2. Since the DBUF 38 operates in synchronization with a clock like a synchronous DRAM, the operation clock frequency is controlled in accordance with the operation frequency of the flash memory chip 5 and the CPU 31. [0091] As in the case of Fig. 8, the frequency dividers typically shown in Fig. 8 are changed to variable frequency dividers, and the frequency division ratio can be arbitrarily or multiply programmable by a command. Just try to control it.
- the controller chip 4 reads the flash device code F-CODE from the flash memory chip 5 in response to a predetermined command such as the operation limit frequency read command, and reads the flash device code from the read flash device code.
- the operation limit frequency of the memory chip 5 may be calculated, and the calculated operation limit frequency may be output to the host device 2.
- the controller chip 4 responds to the command CMD54 by the CLK2CNT36 to , DBUF38, control the operating frequency of the flash memory chip 5.
- the storage device is not limited to the MMC, and can be widely applied to various types of storage devices of other memory card standards. Therefore, the command code, command format, data communication protocol and the like can be variously changed according to the card standard.
- the interface controller, security controller, and non-volatile memory are not limited to separate chips.For example, the interface controller and non-volatile memory can be integrated into one chip, or all can be integrated into one chip. It is.
- the security controller is not limited to the IC card microcomputer, but may be any circuit module having a security function that will be developed or currently exists in the future.
- the present invention is suitable for a flash memory chip, a microcomputer chip for an IC card, a memory card equipped with a controller chip, and the like.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Storage Device Security (AREA)
- Credit Cards Or The Like (AREA)
- Read Only Memory (AREA)
Abstract
Description
Claims
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006510172A JPWO2005081180A1 (ja) | 2004-02-20 | 2005-01-19 | 記憶装置及びデータ処理装置 |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004-043945 | 2004-02-20 | ||
JP2004043945 | 2004-02-20 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2005081180A1 true WO2005081180A1 (ja) | 2005-09-01 |
Family
ID=34858031
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2005/000588 WO2005081180A1 (ja) | 2004-02-20 | 2005-01-19 | 記憶装置及びデータ処理装置 |
Country Status (6)
Country | Link |
---|---|
US (1) | US20050185463A1 (ja) |
JP (1) | JPWO2005081180A1 (ja) |
KR (1) | KR20060132702A (ja) |
CN (1) | CN1922616A (ja) |
TW (1) | TW200604810A (ja) |
WO (1) | WO2005081180A1 (ja) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009529745A (ja) * | 2006-03-16 | 2009-08-20 | ケーティーフリーテル・カンパニー・リミテッド | 大容量メモリを支援するicチップ及び支援方法 |
JP2012089152A (ja) * | 2011-12-13 | 2012-05-10 | Toshiba Corp | 通信媒体及び通信媒体処理装置 |
TWI509623B (zh) * | 2013-03-11 | 2015-11-21 | Macronix Int Co Ltd | 用於內建錯誤更正的儲存架構 |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7427027B2 (en) * | 2004-07-28 | 2008-09-23 | Sandisk Corporation | Optimized non-volatile storage systems |
US7404026B2 (en) | 2006-04-10 | 2008-07-22 | Spansion Llc | Multi media card with high storage capacity |
US7707379B2 (en) * | 2006-07-13 | 2010-04-27 | International Business Machines Corporation | Dynamic latency map for memory optimization |
US8255628B2 (en) * | 2006-07-13 | 2012-08-28 | International Business Machines Corporation | Structure for multi-level memory architecture with data prioritization |
US7496711B2 (en) * | 2006-07-13 | 2009-02-24 | International Business Machines Corporation | Multi-level memory architecture with data prioritization |
US8607070B2 (en) * | 2006-12-20 | 2013-12-10 | Kingston Technology Corporation | Secure storage system and method of use |
US7761633B2 (en) * | 2007-01-29 | 2010-07-20 | Microsemi Corp. - Analog Mixed Signal Group Ltd. | Addressable serial peripheral interface |
US8527781B2 (en) * | 2007-05-09 | 2013-09-03 | Kingston Technology Corporation | Secure and scalable solid state disk system |
US8499168B2 (en) * | 2007-05-09 | 2013-07-30 | Kingston Technology Corporation | Secure and scalable solid state disk system |
KR101555637B1 (ko) * | 2009-03-27 | 2015-09-24 | 삼성전자주식회사 | 스마트 카드 |
US8200864B1 (en) * | 2010-03-02 | 2012-06-12 | Amazon Technologies, Inc. | Pre-defined multiblock transfers |
CN103009816B (zh) * | 2011-09-20 | 2015-08-19 | 珠海天威技术开发有限公司 | 耗材芯片及对其重写的重写器、重写方法 |
US20130151755A1 (en) | 2011-12-12 | 2013-06-13 | Reuven Elhamias | Non-Volatile Storage Systems with Go To Sleep Adaption |
KR101978981B1 (ko) | 2012-09-14 | 2019-05-16 | 삼성전자주식회사 | 임베디드 멀티미디어 카드(eMMC), 상기 eMMC를 제어하는 호스트, 및 이들을 포함하는 시스템의 동작 방법 |
US9490653B2 (en) | 2013-07-23 | 2016-11-08 | Qualcomm Incorporated | Systems and methods for enabling a universal back-cover wireless charging solution |
KR102145420B1 (ko) | 2013-07-25 | 2020-08-18 | 삼성전자주식회사 | 데이터 전송 속도를 변경하는 스토리지 시스템 및 그것의 데이터 전송 속도 변경 방법 |
US9411721B2 (en) | 2013-11-15 | 2016-08-09 | Sandisk Technologies Llc | Detecting access sequences for data compression on non-volatile memory devices |
EP3174062A1 (en) * | 2015-11-26 | 2017-05-31 | Gemalto Sa | Electronic device with memory erased by page |
US10904163B2 (en) * | 2018-03-28 | 2021-01-26 | Lumentum Operations Llc | Tunneling data to a data-path chip via a microcontroller unit (MCU) |
JP2019215662A (ja) * | 2018-06-12 | 2019-12-19 | 株式会社日立製作所 | 不揮発性メモリデバイス、及びインターフェース設定方法 |
CN110336592B (zh) * | 2019-06-28 | 2021-03-16 | 飞天诚信科技股份有限公司 | 适用蓝牙读卡器的数据传输方法、电子设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11134446A (ja) * | 1997-10-31 | 1999-05-21 | Olympus Optical Co Ltd | 情報記録再生装置 |
JP2001101362A (ja) * | 1999-09-30 | 2001-04-13 | Dainippon Printing Co Ltd | Icカードシステム |
JP2003022216A (ja) * | 2001-07-09 | 2003-01-24 | Hitachi Ltd | 記憶装置 |
JP2003308240A (ja) * | 2002-04-15 | 2003-10-31 | Sony Corp | データ記憶装置 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3822081B2 (ja) * | 2001-09-28 | 2006-09-13 | 東京エレクトロンデバイス株式会社 | データ書込装置、データ書込制御方法及びプログラム |
-
2005
- 2005-01-13 TW TW094101002A patent/TW200604810A/zh unknown
- 2005-01-19 KR KR1020067016691A patent/KR20060132702A/ko not_active Application Discontinuation
- 2005-01-19 WO PCT/JP2005/000588 patent/WO2005081180A1/ja active Application Filing
- 2005-01-19 JP JP2006510172A patent/JPWO2005081180A1/ja not_active Withdrawn
- 2005-01-19 CN CNA200580005441XA patent/CN1922616A/zh active Pending
- 2005-02-16 US US11/058,672 patent/US20050185463A1/en not_active Abandoned
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11134446A (ja) * | 1997-10-31 | 1999-05-21 | Olympus Optical Co Ltd | 情報記録再生装置 |
JP2001101362A (ja) * | 1999-09-30 | 2001-04-13 | Dainippon Printing Co Ltd | Icカードシステム |
JP2003022216A (ja) * | 2001-07-09 | 2003-01-24 | Hitachi Ltd | 記憶装置 |
JP2003308240A (ja) * | 2002-04-15 | 2003-10-31 | Sony Corp | データ記憶装置 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009529745A (ja) * | 2006-03-16 | 2009-08-20 | ケーティーフリーテル・カンパニー・リミテッド | 大容量メモリを支援するicチップ及び支援方法 |
JP2012089152A (ja) * | 2011-12-13 | 2012-05-10 | Toshiba Corp | 通信媒体及び通信媒体処理装置 |
TWI509623B (zh) * | 2013-03-11 | 2015-11-21 | Macronix Int Co Ltd | 用於內建錯誤更正的儲存架構 |
Also Published As
Publication number | Publication date |
---|---|
JPWO2005081180A1 (ja) | 2007-08-02 |
TW200604810A (en) | 2006-02-01 |
US20050185463A1 (en) | 2005-08-25 |
KR20060132702A (ko) | 2006-12-21 |
CN1922616A (zh) | 2007-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2005081180A1 (ja) | 記憶装置及びデータ処理装置 | |
US7483329B2 (en) | Flash card and controller with integrated voltage converter for attachment to a bus that can operate at either of two power-supply voltages | |
US11789521B2 (en) | Card and host apparatus | |
US20070168614A1 (en) | Secure-Digital (SD) Flash Card with Auto-Adaptive Protocol and Capacity | |
US7676640B2 (en) | Flash memory controller controlling various flash memory cells | |
US8171204B2 (en) | Intelligent solid-state non-volatile memory device (NVMD) system with multi-level caching of multiple channels | |
US8335123B2 (en) | Power management of memory systems | |
KR100524988B1 (ko) | Usb 인터페이스 기능을 가지는 mmc 장치 및 이에대한 인터페이스 방법 | |
JP2007317170A (ja) | Icモジュールおよび携帯電話 | |
US20050114587A1 (en) | ExpressCard with On-Card Flash Memory with Shared Flash-Control Bus but Separate Ready Lines | |
US20080071973A1 (en) | Electronic data flash card with various flash memory cells | |
US20100082893A1 (en) | Flash Memory Controller For Electronic Data Flash Card | |
US8812756B2 (en) | Method of dispatching and transmitting data streams, memory controller and storage apparatus | |
WO2003071436A1 (fr) | Dispositif de connexion externe, dispositif hote et systeme de communication de donnees | |
JP4178809B2 (ja) | 外部接続機器及びホスト機器 | |
KR20060129804A (ko) | 엠엠씨 인터페이스를 갖는 플래시 메모리 장치 및 그것을포함한 메모리 시스템 | |
US8595420B2 (en) | Method for dispatching and transmitting data streams between host system and memory storage apparatus having non-volatile memory and smart card chip, memory controller, and memory storage apparatus | |
CN103218300B (zh) | 数据处理方法、存储器控制器与存储器储存装置 | |
JP2006236200A (ja) | カード状記憶装置とそのホスト装置 | |
JP4776462B2 (ja) | 携帯可能電子装置および携帯可能電子装置の制御方法 | |
US8957763B2 (en) | RFID access method using an indirect memory pointer | |
KR100399603B1 (ko) | 스마트 카드와 이의 os 프로그램 저장/삭제 및 실행방법 | |
US20220137867A1 (en) | Secure memory card and control method thereof | |
JP2008123450A (ja) | 記録媒体及びメモリアクセス可能な電子機器 | |
JP2007122241A (ja) | メモリカードコントローラ及びメモリカード |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW |
|
AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): BW GH GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG |
|
DPEN | Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed from 20040101) | ||
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
WWE | Wipo information: entry into national phase |
Ref document number: 2006510172 Country of ref document: JP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 200580005441.X Country of ref document: CN Ref document number: 1020067016691 Country of ref document: KR |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWW | Wipo information: withdrawn in national office |
Country of ref document: DE |
|
WWP | Wipo information: published in national office |
Ref document number: 1020067016691 Country of ref document: KR |
|
122 | Ep: pct application non-entry in european phase |