CN100593213C - Memory device with multiple partitions - Google Patents

Memory device with multiple partitions Download PDF

Info

Publication number
CN100593213C
CN100593213C CN 200610086737 CN200610086737A CN100593213C CN 100593213 C CN100593213 C CN 100593213C CN 200610086737 CN200610086737 CN 200610086737 CN 200610086737 A CN200610086737 A CN 200610086737A CN 100593213 C CN100593213 C CN 100593213C
Authority
CN
China
Prior art keywords
command
partition
authentication
manufacturer
communication protocol
Prior art date
Application number
CN 200610086737
Other languages
Chinese (zh)
Other versions
CN101093720A (en
Inventor
刘坤旺
卢俊丞
林奉锡
陈孟豪
Original Assignee
亮发科技股份有限公司
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 亮发科技股份有限公司 filed Critical 亮发科技股份有限公司
Priority to CN 200610086737 priority Critical patent/CN100593213C/en
Publication of CN101093720A publication Critical patent/CN101093720A/en
Application granted granted Critical
Publication of CN100593213C publication Critical patent/CN100593213C/en

Links

Abstract

A memory device with multiple sub-region is prepared for forming nonvolatile internal memory by a user region with multiple sub-region as one sub-region being set to be visible sub-region and a systemregion being used to store configuration information of said visible sub-region and being used to record identification information of said visible sub-region and to record support communication protocol, using controller to make access on visible sub-region according to said configuration information and access command compatible in support communication protocol.

Description

具多重分区的存储装置 Storage means having multiple partitions

技术领域 FIELD

本发明涉及的是一种存储装置,特别涉及的是一种具多重分区(multi-partition) 的存储装置。 The present invention relates to a memory device, and particularly relates to a storage device with a multi-partition (multi-partition) is.

背景技术 Background technique

随着信息科技的突飞猛进,人们对在各类信息的需求更是呈现爆炸性的成长。 With the rapid development of information technology, people's demand for the various types of information is showing explosive growth. 近年来,众多小型可携式存储装置(Portable Memory Device )的普及化,例如以闪存(Flash Memory )为主要存储媒介的的USB(通用串行总线)随身碟(USB Flash Disk,俗称硅碟机或拇指哥)、以及包括小尺寸闪存(Compact Flash, CF )、存储棒(Memory Stick, MS )、安全数字(Secure Digital, SD )、多媒体卡(Multi Media Card, MMC)等等各种规格厂牌的各式快闪存储卡(Flash Memory Card )、使用CF或USB接口的微型硬盘(Micro Hard Disk)、或者甚至是采用USB或PCMCIA 接口且装置在外接盒中的薄型2.5英寸硬盘机(HardDisk)等等,更是满足了人们对在信息可移植性与日遽增的渴望。 In recent years, many small portable memory device (Portable Memory Device) popularization of, for example, a flash memory (Flash Memory) as primary storage medium is a USB (Universal Serial Bus) flash drive (USB Flash Disk, commonly known as silicone washer or thumb brother), and including small size flash memory (Compact Flash, CF), memory Stick (memory Stick, MS), secure digital (secure digital, SD), multimedia card (Multi Media card, MMC), and so on a variety of plant various types of cards a flash memory card (flash memory card), a CF or USB interface microdrive (micro hard Disk), or even using a USB or PCMCIA interface and an external apparatus in a thin box 2.5-inch drive machine (HardDisk ), etc., it is to meet people's desire for information portability and dramatic increase in Japan.

现有的可携式存储装置,其内部包括有一非挥发性存储数组(Non-Volatile Memory Array)、 一控制器(Controller)以及一传输4妄口( I/O Interface )。 Conventional portable storage device, which includes a non-volatile internal memory array (Non-Volatile Memory Array), a controller (Controller) and a transmission 4 jump port (I / O Interface). 该存储数组是用在储存使用者所想要储存的数据,且其必须具有在不需外界电源的情况下仍能保存所储存数据的特性,因此经常是以闪存来作为该存储数组,当然, 其亦可以是硬盘。 The array is stored in the data store user wants to store, and which must still be stored in data storage characteristics of the external power supply in case of need, it is often used as the memory is a flash memory array, of course, it can also be hard. 在控制器中,则包括有用以驱动(Drive)与存取(Access)该存储数组所需的相关电路、接口与驱动机制。 In the controller, it is useful to include a drive (Drive) with access (Access) related to the memory array circuitry required to interface with the drive mechanism. 这驱动机制可以是以硬件(Hardware ) 的控制程序(Command Sequencer)电路形式存在以执行一连串的微码(Micro-Code ),程序、或也可以是以硬件(Hardware)的微控制器/微处理器(Micro-Controller/Micro-Processor)电路形式存在以执行一连串韦刃体(Firmware ) 程序的方式,存在于此可携式存储装置的控制器中。 This drive mechanism may be present in hardware (Hardware) control program (Command Sequencer) circuit in the form of a series of microcode execution (Micro-Code), program, or may be implemented in hardware (Hardware) microcontroller / microprocessor device (Micro-controller / Micro-Processor) circuit form exists as to perform a series Wei blade body (Firmware) procedure, the controller present in this portable memory device. 而该传输接口则决定该可携式存储装置是以何种通讯协议(Protocol)与外界装置(或主机(host))结合与沟通。 The transmission interface and the portable storage device is decided based on what kind of communication protocol (Protocol) and external device (or host (host)) in combination with communication.

而在各种规格的存储卡中,内含的快闪存储数组通常分成三个区域, 一为使 In a variety of memory cards, embedded flash memory array is typically divided into three regions, to make a

3用者区域,是储存使用者数据。 3 with those areas, is to store user data. 另一为保密区域(SecureArea),是储存存储卡特定保密协议(如SD卡的CPRM协议)所需数据的区域。 Another is the secret area (SecureArea), it is to store a particular memory card NDA (CPRM protocol such as the SD card) data area required. 再一者为系统区域(SystemArea),是储存控制器所需韧体及相关所需数据。 Then one of the system areas (SystemArea), is required to store the desired data controller and associated firmware. 在这三个区域中,外界装置用规格所规范的一般的读写指令只能针对使用者区域读写。 In these three regions, the external apparatus with the general specifications standard read and write commands for only the user area being read. 在此区域的数据, 使用者具有完整权限来使用,应用程序所储存的数据文件若储存在此区域中,无法确保数据不被删除及拷贝。 In the data in this area, the user has full rights to use, the application data stored in the file if stored in this area, to ensure that data can not be deleted and not copy. 虽然如SD存储卡具有CPRM等保护机制,可以提供应用程序存放保密数据,但是使用CPRM时,内容必须先加密,使用时必须解密,对在可携式装置等运算能力有相当的负担。 Though such as SD memory card has a protection mechanism CPRM, etc., can provide an application store confidential data, but the use of CPRM, the content must be encrypted must be decrypted when used, have the computing power to a portable device such as a considerable burden. 此外,对在不支持CPRM的可携式装置亦无法直接使用。 In addition, it can not be used directly for portable devices that do not support the CPRM.

图1是为现有技术的快闪存储数组10的区域配置示意图。 FIG 1 is a configuration diagram of a flash memory array region 10 of the prior art. 如图1所示是具有包括:系统区域11、使用者区域12及保密区域13。 As shown in FIG. 1 is a comprising: a system area 11, a user area 12 and the secret area 13. 系统区域11 一般存放存储卡控制器(controller)所需的韧体及相关的存储数据。 System area 11 is generally required to store the firmware and data stored in the associated memory card controller (controller). 使用者区域12为使用者经由外界装置存取存储卡所使用的区域,使用者区域的大小为使用者可用的存储卡大小。 User region 12 as a region used by the user via the external device to access the memory card, the size of the user area is available to the user card size. 保密区域13存放存储卡保密协议所产生的数据,此区域的数据只能由相对的保密协议来存取,使用者不能直接读取此区域的数据。 Confidential data storage area 13 stores the generated card confidentiality agreement, the data in this area can only be accessed by opposing confidentiality agreement, the user can not directly read the data in this area. 例如SD卡所采用的保密协议为CPRM,保密区域只能用CPRM的指令并且符合SD控制器内存数据的检核后,才能存取保密区域。 After the SD card such as an NDA CPRM is used, only with CPRM secret area instruction and subject compliance with the nuclear SD memory data controller, you can access the secret area.

图2是为现有的存储卡总线协议的示意图。 FIG 2 is a schematic view of a conventional memory card bus protocol. 存储卡总线分成命令CMD总线及数据DAT总线两类。 Memory card bus into the command CMD and a data bus DAT bus types. CMD总线上是具有包括:命令封包20及回应封包30。 CMD is a bus on include: command and response packets 20 packets 30. 命令封包20内含外界装置对存储卡所下的命令(command)。 20 commands the command packet (command) to the external apparatus at the contents of the memory card. 响应封包30内含针对前一个命令封包所产生的状态回应。 30 response packet containing a response against the state before a command packet generated. DAT总线上是具有包括数据封包40。 Having the DAT bus 40 comprises a data packet. 数据封包40是包括外界装置写入的数据或自存储卡读取的数据。 40 is a data packet outside a data writing device or data read from the memory card.

现有的存储卡利用命令封包20来下达对使用者区域或保密区域的读取或写入动作。 Conventional memory card 20 using a command packet to read or write operation issued by the user or the area of ​​the privacy zone. 图3是为图2的命令封包20的详细方块图。 Packet 3 is a detailed block diagram of the command 20 in FIG. 2. 如图3所示,命令封包20 是包括:开始位21、传送位22、命令索引23、命令参数25、循环冗赘核对(CRC)27 及结束位28。 3, 20 is a command packet comprising: a start bit 21, bit 22 transmission, index 23 commands, command parameters 25, as onerous loop check (CRC) 27 bits 28 and ends. 开始位21、传送位22及结束位28为传输信号识别使用。 A start bit 21, bit 22 and transmitted to the end bit 28 used to identify a transmission signal. 命令索引23存放外界装置对存储卡的各种命令,例如读取、写入、状态探知等指令。 External storage means 23 command index variety of commands to the card, such as read, write, instruction state ascertaining and the like. 命令参数25为执行命令索引23的命令所需的参数。 25 command parameters for the implementation of the index command parameters required to command 23. 循环冗赘核对27提供命令索引23及命令参数25的防止错误编码,可以侦测/更正数据传输时产生的错误。 Cycle to check for errors generated verbose 27 provides commands and command parameters 23 to prevent the indexing error code 25, you can detect / correct the data transmission.

图4A至图4C是为依据图3,分别显示读取命令、写入命令及其它命令的封 4A to 4C are based on Figure 3, show a read command, a write command, and other commands sealing

4包的示意图。 4 is a schematic view of the package. 为求简化,图中仅显示各种命令封包的主要差异处。 For simplicity, the figures show only the main differences between the various command packets. 图4A是为外 4A is an outer

界装置发出读取命令时,其命令封包的简化示意图。 When the apparatus issues a read sector command, its command packet simplified schematic. 如图4A所示是包括:命令索引23为支持规格所规范的一般读取指令,命令参数25为指定的读取地址。 4A, comprising: 23 to support ships command index specifications standard read command, command parameters 25 specified read address. 例如,SD存储卡中,命令索引23为CMD17及CMD18。 For example, SD memory card, the command index 23 is CMD17 and CMD18. 命令参数25为一32位长度的读取地址。 25 is a command parameter read address 32-bit length. 在SD存储卡vl.Ol寻址以字节(Byte)为单位,SD存储卡v2.0寻址以512字节为单位。 SD memory card vl.Ol addressed byte (Byte) units, SD memory card v2.0 addressed in units of 512 bytes.

图4B是为外界装置发出写入命令时,其命令封包的筒化示意图。 4B is a write command, which is a schematic view of the cartridge of the command packet sent to the outside apparatus. 如图4B所示是包括:命令索引23为支持规格所规范的一般写入指令,命令参数25为一写入地址。 Is shown in Figure 4B comprising: a write instruction command index generally standard specifications to support 23, 25 is a write command address parameter. 例如,SD存储卡中,命令索引23为CMD24及CMD25。 For example, SD memory card, the command index 23 is CMD24 and CMD25. 命令参数25 为一32位长度的写入地址。 25 is a command parameter length 32-bit write address.

图4C是为外界装置发出其它命令时,其命令封包的简化示意图。 Figure 4C is a command issued by the other external device, a simplified schematic diagram of its command packet. 命令索引23所包含的其它指令是包括:抹写指令、状态探知指令及制造商保留指令。 Other instruction command is included in the index 23 includes: wiping write instruction, the state retained Discovery instructions and manufacturer instructions. 命令参数25是包括:讯息位及填充位,组成一固定长度的数据域位。 25 is a command parameter comprising: stuff bit and message bits, a data field consisting of a fixed length.

而在各种规格的存储卡中,对于档案系统虽有所规范,但是并未对在多重分区定义出一致的作法,使用者虽然可以利用某外界装置上的应用软件切割出多重分区,但是在其它不同的外界装置上,可能无法存取这些多重分区,而造成兼容性问题。 In a variety of memory cards, despite the specification for the file system, but not the definition of a consistent approach in multiple partitions, although users can use applications on an external device for cutting out multiple partitions, but on various other external devices, you may not have access to these multiple partitions, causing compatibility problems. 此外,某些规格会有无法回溯兼容(backward compatible)的问题。 In addition, some specifications will not be applied retroactively compatible (backward compatible) problems. 例如, 对在SD存储卡v2.0的高容量(High Capacity )卡,仅支持先前SD版本的外界装置便无法读取,而造成使用者使用上的限制及不便。 For example, in the high-capacity SD memory card of v2.0 (High Capacity) card, SD previous version only supports external device can not read, and inconvenience caused by restrictions on users.

发明内容' ' SUMMARY '

因此,本发明的目的之一,是提供一种具多重分区的存储装置,以避免不同外接装置存取时的兼容性问题。 Accordingly, an object of the present invention is to provide a memory device having multiple partitions, in order to avoid compatibility problems when different external device access.

本发明的另一目的,是提供一种具多重分区的存储装置,以避免不同规格版本间的回溯兼容的问题。 Another object of the present invention is to provide a memory device having multiple partitions, in order to avoid backtracking compatibility between different versions of the specifications of the problem.

在本发明的一实施例中,是提供一种具多重分区的存储装置,其包括一非挥发性内存与一相耦接的控制器。 In an embodiment of the present invention is to provide a memory device having multiple partitions, which includes a non-volatile memory and a controller coupled. 该非挥发性内存包含: 一使用者区域,包含多个分区(partition),其中的一分区设定为可见分区;以及一系统区域,储存该可见分区的组态信息,该组态信息记录该可见分区的识别信息及支持通讯协议。 The non-volatile memory comprising: a user area including a plurality of partitions (Partition), wherein the partition is set to a visible partition; and a system area storing configuration information of the visible partition, the configuration of the information recording visible identification information and support partitioning protocol. 该控制器依据一存取命令与该组态信息,存取该可见分区,其中该存取命令是兼容于该支持通讯+办"i义。 The controller is based on an access command with the configuration information, access the visible partition, which is compatible with the access command the support of communication + do "i justice.

在本发明的另一实施例中,是提供一种具多重分区的存储装置,其支持一标 In another embodiment of the present invention is to provide a memory device having multiple partitions, which support a standard

准通讯协议。 Prospective protocol. 该存储装置包括: 一非挥发性内存,包含一使用者区域,该使用者 The memory device comprising: a non-volatile memory, includes a user area, the user

区域包含一认证分区与一认证分区; 一传输接口,用以从一外接装置接收一认证信息,该认证信息具有一未规范在该标准通讯协议的认证格式;以及一控制器, 耦接至该传输接口及该非挥发性内存,用以依据该认证信息,决定是否允许该外接装置存取该认证分区。 Partition region comprises an authentication with an authentication partition; a transmission interface for receiving an authentication information from an external apparatus, the authentication information having a format that is not standardized in the authentication standard communication protocol; and a controller, coupled to the transmission interface and said non-volatile memory, according to the authentication information, decides whether to allow the external device to access the authentication partition.

在本发明的再一实施例中,是提供一种具多重分区的存储装置,其支持一标准通讯协议。 In yet another embodiment of the present invention in one embodiment, it is to provide a memory device having multiple partitions, which supports a standard communication protocol. 该存储装置包括一非挥发性内存与一相耦接的控制器。 The non-volatile memory device comprises a memory and a controller coupled. 该非挥发性内存包含:,一使用者区域,包含多个分区;以及一系统区域,储存每一分区的位置信息。 The non-volatile memory comprising: a user area including a plurality of partitions; and a system area, the storage position information of each partition. 该控制器是依据一存取命令与每一分区的位置信息,存取该些分区,其中该存取命令是兼容在该标准通讯协议。 The controller is based on a location information of each partition of the access command, and accessing the partition, wherein the access command is compatible with the standard communication protocols.

本发明提供了一种具多重分区的存储装置,是支持一标准通讯协议,该存储装置包含: The present invention provides a memory device with a multi-partitions, supports a standard communication protocol, the memory device comprising:

一非挥发性内存,包含一使用者区域,该使用者区域包含一认证分区与一非认证分区; A non-volatile memory, includes a user area, the user authentication partition region comprises a partition and a non-authentication;

一传输接口,用以从一外接装置接收一认证信息,该认证信息具有一未规范在该标准通讯协议的认证格式;以及 A transmission interface for receiving an authentication information from an external apparatus, the authentication information having a format not standardized authentication protocol of the standard; and

一控制器,耦接至该传输接口及该非挥发性内存,用以依据该认证信息,决 A controller, coupled to the transmission interface and said non-volatile memory, according to the authentication information, decision

定是否允许该外接装置存取该认证分区; Whether to allow the external device to access the authentication partition;

其中,该认证信息是内含在下列两者其中之一:该标准通讯协议的一制造商保留命令与一写入命令,其中该制造商保留命令是该标准通讯协议保留给制造商弹性运用的命令;该写入命令是该标准通讯协议所规范的一般写入命令,并且指定一不属于该非认证分区的寻址范围的位址或一最低位不为零的位址,而该认证信息作为该一般写入命令所要写入的数据来提供; Wherein the authentication information is both of which contains one of the following: a standard communication protocol of the manufacturer retains command and a write command, where the manufacturer reserves the command is the standard communication protocol reserved for manufacturers flexibility in the use of command; the write command is a write command to the general standard communication protocol specifications, and does not belong to a specified address range of the non-addressed authentication partition is not zero or a least significant bit address, and the authentication information as a general data of the write command to be written to provide;

该制造商保留命令包含命令索引栏位与命令参数栏位,所述命令索引的值选自该标准通讯协议所允许的值,用以辨识该制造商保留命令是提供该认证信息的 The manufacturer reserve command comprising a command and command parameters index field field, the command value of the index of the selected standard communications protocol allows a value for identifying the manufacturer to provide the reserve command authentication information

命令;所述命令参数包含该认证信息。 Command; a command parameter including the authentication information.

实施时,该认证信息包含一认证识别码,该控制器允许该外接装置存取该认证分区。 In implementation, the authentication information includes an authentication identifier, the controller allows the external device to access the authentication of the partition.

6实施时,该标准通讯协议是下列其中之一:通用串行总线、小尺寸闪存、存储棒、多媒体卡及安全数字。 6 embodiment, the standard communication protocol is one of the following: a universal serial bus, the small size of the flash memory, memory sticks, multimedia cards, and Secure Digital.

实施时,该认证分区包含至少下列其中之一: 一只读子分区、 一单次擦写子 In implementation, the authentication partition comprises at least one of the following: a read-only sub-partitions, a single sub-rewritable

分区或一多次擦写子分区。 Partition or erase a multiple child partitions.

实施时,该控制器在收到该制造商保留命令后,依据该制造商保留命令的该命令索引栏位,来判断该制造商保留命令的该命令参数栏位是内含该认证信息。 When implemented, the controller after receiving the command manufacturer reserves, according to the manufacturer retains command of the command index field to determine the manufacturer retains command of the order parameter field contains the authentication information is.

以下结合附图,对本发明上述的和另外的技术特征和优点作更详细的说明。 Conjunction with the drawings, the above and further features and advantages of the present invention will be described in more detail.

附图说明 BRIEF DESCRIPTION

图1是为现有技术的快闪存储数组的区域配置示意图; FIG 1 is a configuration diagram of a flash memory array region of the prior art;

图2是为现有的存储卡总线协议; FIG 2 is a conventional memory card bus protocol;

图3是为图2的命令封包的详细方块图; 3 is a detailed block diagram of the command packet of Figure 2;

图4A至图4C是为依据图3,分别显示读取命令、写入命令及其它命令的封包的示意图; 4A to 4C are based on FIG. 3, a schematic diagram of a read command packet are shown, a write command, and other commands;

图5是本发明的具多重分区的存储装置的第一实施例方块图; 图6是本发明的具多重分区的存储装置的第二实施例方块图; 图7是本发明的具多重分区的存储装置的第三实施例方块图。 FIG 5 is a block diagram of a first embodiment of the present invention, the memory device having multiple partitions; FIG. 6 is a block diagram of a second embodiment of the present invention, the memory device having multiple partitions; FIG. 7 is a device of the present invention, multiple partitions a block diagram of a third embodiment of a memory device embodiment. 附图标记说明:10-现有技术的快闪存储数组;ll-系统区域;12-使用者区域; 13-保密区域;20-命令封包;21-开始位;22-传送位;23-命令索引;25-命令参数; 27-循环冗赘核对;28-结束位;30-响应封包;40-数据封包;50、 60、 70-具多重分区的存储装置;51、 61、 71-非挥发性内存;511、 611、 711-使用者区域;5111、 5112、 5113、 7111、 7112-使用者区域的分区;512、 712-系统区域;52、 62、 72-传输接口; 53、 63、 73-控制器;54、 64、 74-外接装置;6111-非认证分区;6112-认证分区。 REFERENCE SIGNS: 10- flash memory array of the prior art; LL- system area; 12- user area; 13- secret area; command packet 20; 21 start bit; 22- bit transmitted; 23- command index; 25 command parameters; 27- verbose collation cycle; 28- bit end; 30- response packet; data packet 40; 50, 60, 70 with multiple partitions a storage means; 51, 61, non-volatile 71- volatile memory; 511, 611, 711- user area; partitions 5111, 5112, 5113, 7111, 7112- user area; 512, 712- system area; 52, 62, 72- transmission interface; 53, 63, 73 - control; 54, 64, 74- external device; 6111- unauthenticated partition; 6112- authentication partition. 具体实施方式 Detailed ways

〈第一实施例〉 <First Embodiment>

图5是本发明的具多重分区的存储装置的第一实施例方块图。 FIG 5 is a block diagram of a first embodiment of the present invention, the memory device having multiple partitions. 如图5所示, 存储装置50包含非挥发性内存51、传输接口52及控制器53。 5, the storage device 50 includes non-volatile memory 51, transmission interface 52 and a controller 53. 在一实施例中,存储装置50是一可携式装置。 In one embodiment, the storage device 50 is a portable device.

非挥发性内存51内包含一使用者区域511,以储存使用者数据。 51 within the non-volatile memory 511 comprises a user area for storing user data. 使用者区域 User area

7511划分为多个分区(分区数量并无限制,而图5是以三个分区为例),其中,分区 7511 into a plurality of partitions (no restriction on the number of partitions, three partitions and FIG. 5 is an example), wherein the partition

5111是设定为可见分区。 5111 is set to be visible partition. 非挥发性内存51内还包含一系统区域512,其不同在使用者区域511,可用以储存该可见分区的组态信息,该组态信息是记录可见分区的识别信息及支持通讯协议。 Non-volatile memory 51 further comprises a system area 512, which differ in the user area 511, may be used to store configuration information of the visible partition, the configuration information is a visible identification information recording partitions and supports communication protocols. 该识别信息是用以辨识目前的可见分区为哪一分区(如前述,为分区5111);该支持通讯协议是下列业界现有的标准规格其中之一: USB、 CF、 MS、 MMC及SD。 The identification information is used to recognize the current partition is found which partition (as described above, the partition 5111); the support is one of the existing communication protocol wherein the following industry standard: USB, CF, MS, MMC and SD. 在一实施例中,非挥发性内存51为闪存或硬盘。 In one embodiment, the non-volatile memory 51 is a flash memory or a hard disk. 在另一实施例中,该可见分区的组态信息更记录该支持通讯协议的版本。 In another embodiment, the visible partition configuration information more records that support protocol version. 以SD 规格为例,有vl.Ol、 vl.l及v2.0等版本。 The SD specification, for example, have vl.Ol, vl.l and v2.0 versions.

图5亦显示一外接装置(或主机)54,其可发出兼容在该支持通讯协议的存取命令,经由传输接口52送入控制器53,以尝试存取可见分区。 Figure 5 also shows an external device (or host) 54, which may issue the supported protocol compatible access commands into the controller 53 via the transmission interface 52 to attempt to access the visible partition. 该存取命令是该支持通讯协议所规范的一般读取或写入命令,可执行一指定逻辑地址(logical address)的读取或写入动作。 The access command is a specification of the communication protocol supports the general read or write command, perform a specified logical address (logical address) read or write operation. 例如,在SD规格中,CMD17、 CMD18、 CMD24及CMD25,即为其所规范的一般读写命令。 For example, in the SD specification, CMD17, CMD18, CMD24 and CMD25, it is the general standard read and write commands. 在整个使用者区域511内,外接装置54 透过该存取命令仅能读写可见分区,其它非可见分区则无法以该存取命令读写。 The entire user area 511, the external device 54 can only read and write access command through the visible partition, the partition can not be other non-visible to the write access command. 亦即,在使用者区域511的多重分区中,仅能,,看见,,可见分区。 That is, the multi-user area 511 in the partition, see ,, ,, only visible partition.

控制器53是耦接至传输接口52及非挥发性内存51,可依据可见分区的识别信息与外接装置54所发出的存取命令,来存取可见分区。 The controller 53 is coupled to the transmission interface 52, and non-volatile memory 51, the access command may be based on the identification information of the visible external device 54 and the partition issued to access the visible partition. 在一实施例中,该存取命令的寻址范围是对应在可见分区的容量。 In one embodiment, the access command corresponding to the capacity of the addressing range is visible partition. 例如,若可见分区的容量为128M字节,则该存取命令可指定的逻辑地址范围为0〜(128M-l)(假设每一逻辑地址代表一字节大小的存储空间),亦即,该指定的逻辑地址代表在可见分区内的相对位置。 For example, if the partition is visible capacity of 128M bytes, the access command may specify the logical address range of 0~ (128M-l) (assuming each logical address representative of a byte size of memory space), i.e., the relative position of the representative of the logical address specified in the visible partition. 在此实施例中,控制器53会依据可见分区的识别信息找到可见分区(即分区5111), 并将存耳又命令所指定的逻辑地址,转换为一物理地址(physical address),以对可见分区进行读写。 In this embodiment, the controller 53 will find the partitioning visible identification information visible partitions (i.e., partition 5111), and deposit the ears and the logical address specified in the command, is converted into a physical address (physical address), to visible partition read and write.

值得注意的是,使用该支持通讯协议所规范的一般读写命令,并无法存取系统区域512。 Notably, use of the communication protocol supports read and write commands generally standardized, and can not access the system area 512. 不过,若外接装置54可发出经过特殊设计且兼容在该支持通讯协议的认证组态命令(其态样在后文详述),.则可更新系统区域512所储存的数据。 However, if the external device 54 may issue a specially designed and compatible with the authentication command support configuration protocol (which aspects described in detail later) ,. region 512 may be updated system data stored. 在一实施例中,控制器53依据外接装置54所发出的第一认证组态命令,更新可见分区的识别信息,以将可见分区切换为使用者区域511的另一分区,例如从分区5111切换为分区5112。 In one embodiment, the configuration of the controller 53 according to the first authentication command issued by the external device 54, the identification information to update the visible partition, the partition to another partition, the visible area 511 is switched to the user, such as from the partition 5111 5112 for the partition. 在另一实施例中,控制器53依据外接装置54所发出的第二认证组态命令,更新可见分区的组态信息,以调整该支持通讯协议的版本。 Embodiment, the configuration of the controller 53 according to the second authentication command issued by the external device 54, update the configuration information visible partition, to adjust the protocol versions supported another embodiment. 例如,将版本从SD vl.Ol调整为SD vll。 For example, the adjusted version from SD vl.Ol to SD vll.

在一实施例中,系统区域512包含多个第一字^:,用以储存使用者区域511 的每一分区的容量。 In one embodiment, the system comprises a plurality of a first region 512 for storing the word ^ :, capacity of each partition area 511 of the user. 系统区域512还包含多个第二字段,用以记录每一分区的支持通讯协议。 The system further comprises a plurality of second region 512 fields to support the protocol record for each partition. 控制器53依据外接装置54所发出的第三认证组态命令,更新该些第一字段,以调整任一分区的容量。 The controller 53 according to a third authentication configuration command issued by an external device 54, updating the plurality of first field to adjust any of a partition size. 控制器53还依据外接装置54所发出的第四认证组态命令,更新该些第一字段,以调整使用者区域511的多重分区的数量。 The controller 53 is also configured according to the fourth authentication command issued by the external device 54, updating the plurality of first field to adjust the number of multi-user area 511 partitions. 例如,将某一分区的容量设为零,以移除该分区;或者新增一容量记录,作为新增分区的容量。 For example, the capacity of a partition is set to zero, to remove the partition; or a new recording capacity as the capacity of the new partition. 控制器53更依据外接装置54所发出的第五认证组态命令,更新该些第二字段,以调整任一分区的支持通讯协议。 The controller 53 of the authentication according to a fifth configuration command issued by an external device 54, updating the plurality of second field, to adjust the partition to any one of the protocols supported.

通过图5的第一实施例,可避免前述现有技术在不同外接装置存取多重分区时的兼容性问题。 The first embodiment of FIG. 5, can avoid the compatibility problems of the prior art multiple access partitioning different external device. 对在不同的现有外接装置而言,皆能存取可见分区;而对在可发出前述第一认证组态命令的外接装置而言,则可切换可见分区,达到实质上可存取使用者区域511的多重分区的功效。 In terms of different conventional external device, able to access the visible partition; and in terms of the external device may issue a configuration command to the first authentication, handover can be seen partitions, access to the user to achieve a substantially efficacy of multiple sub-zones 511. 另外,通过第一实施例,亦可避免前述现有技术在不同规格版本间的回溯兼容的问题。 Further, the first embodiment can avoid the prior art in for backwards compatibility problems between different versions of specifications. 以一张使用者区域容量超过2GB 的SDv2.0高容量卡为例,可将使用者区域划分为多重分区(可预先划分或利用前述的第四认证组态命令重新划分),每一分区容量不大在2GB,并将各分区所支持的通讯协议调整为先前的版本(版本可预先设定或利用前述第五认证组态命令调整),如此,仅支持先前SD版本的外接装置还是可存取可见分区(即现有外接装置) 或所有分区(即可发出第一认证组态命令的外接装置)。 In a user area size than 2GB SDv2.0 high capacity card as an example, the user may be divided into multiple partitions region (or may be divided in advance by the aforementioned fourth authentication configuration command to re-divide), the capacity of each partition not in 2GB, and adjust the district supported communication protocols for the previous version (version can be pre-set or adjusted using the aforementioned fifth authentication configuration command), so only supports previous versions of SD external devices or can be saved take the visible partition (i.e., conventional external device) or all partitions (sent to the external device a first authentication configuration command).

在一实施例中,前述的第一至第五认证组态命令中,每一认证组态命令可为下列态样的一: In one embodiment, the first to fifth configuration command authentication, each authentication command may be configured in a following aspects:

(1) 认证组态命令为一制造商保留命令(Manufacture Reserved Command)。 (1) certified configuration command is a manufacturer reserve command (Manufacture Reserved Command). 制造商保留命令是每一支持通讯协议保留给制造商弹性运用的命令,制造商可用来设 The manufacturer reserves the commands are each supported protocol reserved for manufacturers flexibility in the use of the command, the manufacturer can be used to set up

计出符合各自需要的命令。 Total order to meet their needs. 制造商保留命令内含命令索引字段与命令参数字段, 命令索引的值是选自支持通讯协议所允许的值,命令参数则包含各认证组态命令所要更新的系统区域的信息。 The manufacturer reserves the command index field contains a command and the command parameter field, the value of the index command protocol support is selected from the allowed value, command parameter contains information about the certification configuration command to update the system area. 例如,.第一认证组态命令的命令参数包含指定要切换至哪一分区。 For example, the first authentication parameter configuration command contains the command to switch to specify which partitions.

(2) 认证组态命令为该支持通讯协议所规范的一般写入命令,且指定一不属在该可见分区的寻址范围的地址。 (2) support for the authentication configuration command communication protocol specification general write command and a specified address in the address is not a visible range of the partitions. 例如,若可见分区的寻址范围为0~(128M-1),则该指定地址可为不小在128M的地址。 For example, if the visible partition addressing range is 0 ~ (128M-1), the specified address may be the address of 128M is not small. 至在认证组态命令所要更新的系统区域512 To 512 in the authentication configuration command to update the system area

9的信息,则与一般写入命令安排所要写入数据的方式相同,例如,直接放在一般写入命令的后。 9 of the same information, the general arrangement of the write command to write the data mode, for example, directly on the general write command.

(3)认证组态命令为该支持通讯协议所规范的一般写入命令,且指定一最低位 (3) authentication protocol configuration commands that support the specification of the general write command, and specify a minimum bit

(least significant bit, LSB)不为零的地址。 (Least significant bit, LSB) is not zero address. 在某些支持通讯协议里,如SD与MMC, 其数据传输的单位皆大在一个字节,而每一逻辑地址则代表一字节大小的存储空间,因此,在对在可见分区进行存取的一般读写命令里,所指定的地址皆是可被2整除的数值,所以指定地址的最低位为零。 In certain protocols in supporting communication, such as the MMC and SD, the data is transmitted in a byte unit Jietai, and each represents a logical address space of a memory byte size, and therefore, the access to the visible partition the general read and write commands, the specified address may be the value are all divisible by 2, the least significant bits of the specified address zero. 在此态样中,则利用前述特性,同样是使用一般写入命令,但另外指定最低位不为零的地址,以代表要存取系统区域512。 In this aspect, the use of the aforementioned properties, the same write command is generally used, but further specifies the least significant bit address is not zero, to represent the area 512 to access the system. 而认证组态命令所要更新的系统区域512的信息,与一般写入命令安排所要写入数据的方式相同。 And authentication command to update the configuration information in the system area 512, the write command and the general arrangement of the data to be written in the same way.

在另一实施例中,前述的第一认证组态命令可为下列态样的一: In another embodiment, the first authentication command may be configured in a following aspects:

(A) 第一认证组态命令为该支持通讯协议所规范的一般读取命令,且指定一超出该可见分区的寻址范围的地址。 (A) a first configuration command authentication protocol support for a general read command of the specification, and the address of the address range of the visible beyond a specified partition. 例如,若可见分区的寻址范围为0~(128M-1), 则该指定地址可为不小于128M的地址。 For example, if the visible partition addressing range is 0 ~ (128M-1), the specified address may be the address of not less than 128M.

(B) 第一认证组态命令为该支持通讯协议所规范的一般读取命令,且指定一最低位不为零的地址。 (B) a first support authentication configuration command for general communication protocol specifications read command, the specified address and a least significant bit is not zero. 其理由与前述的(3)相似。 (3) similar to the aforementioned reason.

在前述(A)、 (B)两种态样下,控制器53在收到第一认证组态命令后,即依据一预设的切换顺序,将可见分区从目前的分区切换至下一分区。 In the above (A), (B) both aspects, the controller 53 after receiving a first authentication configuration command, i.e. according to a predetermined switching sequence, the switching from the current partition will be visible to the next partition of the partition . 例如,该预设切换顺序可设为分区5111—分区5112—第三分区5113—第一分区5111。 For example, the partition may be set to a predetermined switching order partition 5112- 5111- 5113- third partition first partition 5111.

<第二实施例> <Second Embodiment>

图6是本发明的具多重分区的存储装置的第二实施例方块图。 FIG 6 is a block diagram of a second embodiment of the present invention, the memory device having multiple partitions. 存储装置60 支持一标准通讯协议,且包含一非挥发性内存61、 一传输接口62及一控制器63, 如图6所示。 A memory device 60 supports the standard communication protocols, and includes a non-volatile memory 61, a transmission interface 62 and a controller 63, as shown in FIG. 该标准通讯协议包含下列其中之一:USB、 CF、 MS、 MMC及SD。 The standard communication protocol includes one of the following: USB, CF, MS, MMC and SD. 在一实施例中,存储装置60是一可携式装置。 In one embodiment, the memory device 60 is a portable device.

非挥发性内存61内包含一使用者区域611,其包含一认证分区6112及一非认证分区6111。 61 comprises a non-volatile memory within the user area 611, an authentication comprising a partition 6112 and the partition 6111 the non-authentication. 要存取认证分区611.2需先经过一认证动作(下文详述),而存取非认证分区6111则不需要。 To access authentication 611.2 partition must first go through an authentication operation (described below), and the non-authentication access partition 6111 do not. 在一实施例中,非挥发性内存61为闪存或硬盘。 In one embodiment, the non-volatile memory 61 is a flash memory or a hard disk.

传输接口62是用以从一外接装置64接收一认证信息,该认证信息具有一未规范在该标准通讯协议的认证格式。 Transmission interface 62 is configured to receive an authentication information from an external device 64, the authentication information having a format that is not standardized in the authentication standard communication protocol. 控制器63是耦接在传输接口62及非挥发性内存61间,用以依据该认证信息,决定是否允许外接装置64存取认证分区6112。 The controller 63 is coupled between the transmission interface 62 and non-volatile memory 61, according to the authentication information, determine whether to allow the external device to access the authentication partition 64 6112.

10前述该认证信息的认证格式,其强调未规范在该标准通讯协议,是表示只要能兼容在该标准通讯协议,此格式可由制造商自订,例如需要多少位数。 10 The foregoing authentication authentication format information, which is not emphasized in the standard protocol specification, is as long as compatible with the standard communication protocol, this custom format by the manufacturer, such as how many digits as needed. 若该认证信 If the certification letter

息包含一认证识别码,控制器63允许外接装置64存取认证分区6112。 Identification information includes an authentication code, controller 63 allows the external device to access the authentication partition 64 6112. 若该认证信息未包含该认证识别码,控制器63不允许外接装置64存取认证分区6112。 If the authentication information is not the identification code comprises authentication, the controller 63 does not allow the external device to access the authentication partition 64 6112. 换言的,在使用者区域611中,认证分区6112的存取需经过认证,因此能提供数据保护的功能。 In other words, the area 611 in the user authentication for an access partition 6112 certified, it is possible to provide data protection. 而非认证分区6111则可直接用该标准通讯协议所规范的一般读写命令存取。 Not generally authentication partition 6111 can be directly read and write command communication protocol standard specification of the access.

在一实施例中,认证分区6112进一步细分为一只读子分区、 一单次擦写子分区及一多次擦写子分区(图未显示),以提供不同的储存态样。 In one embodiment, the authentication partition 6112 is further subdivided into sub-partitions a read-only, a rewritable single child partition and erase a plurality of times a child partition (not shown), to provide different aspects of storage. 在认证分区6112本身具有多次擦写功能的情况下(如使用闪存),通过控制器63的配合,对在外界装置64来说,仍可达到等效的只读或单次擦写的功能。 In the case where the authentication partition 6112 having multiple erase function itself (e.g., using a flash), the controller 63 by fitting, the outside of the apparatus 64, it can reach a read-only or rewritable single functionally equivalent . 就只读子分区而言,其内舍数据乃存储装置60在制造时,即利用制具写入,可储存需特别保护的数据,例如存储装置的产品注册序号。 Child partition's just read, the data within homes is the storage device 60 during manufacture, i.e., manufactured with the use of writing data stored require special protection, such as product registration number storage means. 外接装置64可在单次擦写子分区内存放应用程序使用的历程数据,例如首次使用日期。 In the course of the external device 64 may be a single rewritable data storage sub-partition used by the application, for example, date of first use. 对在需要网络启动(Activation)的应用程序, 可以通过单次擦写子分区的配合,得到可靠的启动宽限期(Grace Period )的计算。 The need to start the network (Activation) application, with the child partition can be erased by a single, reliable start-up grace period is calculated to obtain (Grace Period) of. 多次擦写子分区内可放置应用程序特定的程序档案或数据文件,以具有不被使用者拷贝或删除的特性。 Multiple partitions can be placed erase sub application- specific data file or a program file, having characteristics not to be copied or deleted user.

在一实施例中,该认证信息是内含在外接装置64所提供的一制造商保留命令。 In one embodiment, the authentication information is contained in order to retain a manufacturer of the external device 64 is provided. 该制造商保留命令是该标准通讯协议保留给制造商弹性运用的命令,其包含命令索引字段与命令参数字段。 The manufacturer reserves the command is the standard communication protocol reserved for manufacturers flexibility in the use of the command, which contains the command index field with the command parameter field. 命令索引的值是选自该标准通讯协议所允许的值, 用以辨识该制造商保留命令是提供认证信息的命令;命令参数则包含该认证信息,而认证信息所需的位数则可由制造商自订,只要不超过命令参数字段的长度。 The index value of the command is the standard communication protocol selected allowed value for identifying the manufacturer provides the authentication information command reservation command; command parameter contains the authentication information, the authentication information may be the number of bits required by the manufacturer custom business, it does not exceed the length of the field command parameters. 控制器63在收到该制造商保留命令后,即依据其内含的命令索引,判断其命令参数内含认证信息,接着进行后续的认证动作。 The controller 63 after receiving the reservation command manufacturer, i.e. its content index according to the command, command parameters which determines the authentication information contents, followed by a subsequent authentication operation. 在另一实施例中,该认证信息是经由该标准通讯协议所规范的一般写入命令所提供,且该一般写入命令指定一不属在非认证分区6111的寻址范围的地址。 Embodiment, the authentication information is regulated by the standard communication protocol In another embodiment of the write command is generally provided, and which generally is not a write command specifies an address in the address range of the non-authentication partition 6111. 例如,若非认证分区6111的寻址范围为0~(128M-1),则该指定地址可为不小于128M的地址。 For example, if not certified partition addressing range 6111 is 0 ~ (128M-1), the specified address may be not less than 128M of address. 该认证信息则作为该一般写入命令所要写入的数据来提供,其格式亦可由制造商自订(即认证格式)。 This information is generally the authentication data write command to be written to it as provided by the manufacturer may format customized (i.e., the authentication format). 在另一实施例中,该认证信息是经由该标准通讯协议所规范的一般写入命令所提供, 且该一般写入命令指定一最低位不为零的地址。 In another embodiment, the authentication information is generally provided to the write command communication protocol standard specification via, and the write command is generally a minimum specified address bits are not zero. 该认证信息则作为该一般写入命令所要写入的数据来提供,其格式亦可由制造商自订。 Usually the authentication data of the information write command is to be written as provided, which may also be a custom format by the manufacturer. <第三实施例> <Third Embodiment>

图7是本发明的具多重分区的存储装置的第三实施例方块图。 FIG 7 is a block diagram of a third embodiment of the present invention, the memory device having multiple partitions. 存储装置70 支持一标准通讯协议,且包含一非挥发性内存71、 一传输接口72及一控制器73, 如图7所示。 A storage device 70 supports the standard communication protocols, and includes a non-volatile memory 71, a transmission interface 72 and a controller 73, as shown in FIG. 该标准通讯协议包含下列其中之一:USB、 CF、 MS、 MMC及SD。 The standard communication protocol includes one of the following: USB, CF, MS, MMC and SD. 在一实施例中,存储装置70是一可携式装置。 In one embodiment, the storage device 70 is a portable device. 在另一实施例中,非挥发性内存71为闪存或硬盘。 In another embodiment, the non-volatile memory 71 is a flash memory or a hard disk.

非挥发性内存71内包含一使用者区域711及一系统区域712。 Non-volatile memory 71 includes a user region 711, and a system area 712. 使用者区域711 包含多个分区(分区数量并无限制,而图7是以两个分区7111、 7112为例),其中分区7111被设为预设分区(预设分区的意义后文详述)。 User area 711 contains multiple partitions (no restriction on the number of partitions, and Figure 7 is a two partitions 7111, 7112 for example), which partitions 7111 is set to the default partition (meaning after the default partition detailed below) . ,系统区域712则储存每一分区的位置信息,供控制器73使用,据以寻址各分区。 , The location system area 712 is stored information for each partition, controller 73 for use, according to address partitions. 在一实施例中,每一分区的位置信息包含分区容量。 In one embodiment, the location information comprises a partition size of each partition. 依据分区容量,以进行寻址,亦即,分区容量具有显示分区位置的功效(后文会举例)。 Based on the partition size to be addressed, i.e., shows efficacy partition having a partition size position (hereinafter will example). 在另一实施例中,除分区容量外,每一分区的位置信息还包含分区起始地址。 In another embodiment, except for the partition size, the position information of each partition further comprises a partition start address.

传输接口72可接收一外接装置74所发出兼容该标准通讯协议的存取命令, 送至控制器73。 A transmission interface 72 can receive the external device 74 is compatible with standard communication protocol issued access command, to the controller 73. 控制器73则依据该存取命.令与每一分区的位置信息,来存取使用者区域711。 The controller 73 according to the access command. Let the position information of each partition area 711 to access the user. 在第三实施例中,不同的外接装置74所发出的存取命令,会有不同的寻址范围。 In a third embodiment, different access command issued by the external device 74, have different addressing range. 就现有的支持该标准通讯协议的外接装置而言,其发出的存取命令的寻址范围是限在前述的预设分区。 For existing external apparatus supports the standard communication protocol, the address range of the access command is issued in the preset limit partition. 换言之,在使用者区域711中,此种现有外接装置仅能"看见"预设分区。 In other words, in the user area 711, such conventional external means only "see" the default partition. 然而,就配合第三实施例所设计的认证外接装置而言,其除了支持该标准通讯协议外,还可取得系统区域712所存的各分区的位置信息,而在产生存取命令时,即可依据这些位置信息指定地址,以寻址在任一想要存取的分区。 However, with respect to an external authentication device of the third embodiment is designed, in addition to its standard communication protocols supported, the position information of each partition stored in the system region 712 may also be made, while generating the access command, to the location information based on the specified address, to address a partition in either trying to access. 换言的,此时存取命令的寻址范围即包含使用者区域711的所有分区。 In other words, in which case the access command contains all partitions addressing range i.e. the user area 711. 例如,若各分区的位置信息包含分区容量,以图7为例,分区7111与7112的容量分别为128MB、 256MB,且假设每一逻辑地址代表一字节大小的存储空间,则认证外接装置可利用0-(128M-l)的地址来寻址分区7111,利用128M〜(128M+256M-1)的地址来寻址分区7112。 For example, if the location information comprises a partition size of each partition, an example in FIG. 7, 7111 and the partition 7112 capacities of 128MB, 256MB, and assuming that each logical address representative of a byte size of the storage space, the external authentication device may address using 0- (128M-l) addressed to the partition 7111, using 128M~ (128M + 256M-1) an address 7112 to address partition. 再例如,若各分区的位置信息包含分区容量与分区起始地址,仍以图7为例,分区7111与7112的容量分别为128MB、 256MB,分区起始地址分别为Al与A2,则认证外接装置可利用A1〜(A1 + 128M-1)的地址来寻址分区7111,利用A2〜(A2+256M-1)的地址来寻址分 As another example, if the position information of each partition comprises a partition size and the partition start address, still an example of FIG. 7, 7111 and the partition 7112 capacities of 128MB, 256MB, respectively partition start address Al and A2, the external authentication device may utilize A1~ (A1 + 128M-1) an address 7111 to address the partition, using A2~ (A2 + 256M-1) an address of the address points

12区7112,其中分区起始地址Al与A2的设定需使得A1〜(A1 + 128M-1)与A2〜(A2+256M-1)两个寻址范围不会重迭。 7112 12 area, wherein the partition start address Al and A2 is set such that the required A1~ (A1 + 128M-1) and A2~ (A2 + 256M-1) two addressing range do not overlap. 控制器73在收到认证外接装置所发出的存取命令后,即依据存取命令所指定的逻辑地址及各分区的位置信息,将指定逻辑地址转换为物理地址,以进行分区7111或分区7112的存取。 The controller 73 upon receipt of the access command issued by the external device authentication, i.e., position information based on the logical address and the district designated by the access command, the designated logical address into a physical address, a partition to partition 7111 or 7112 access.

值得注意的是,使用该标准通讯协议所规范的一般读写命令,并无法存取系统区域712。 Notably, using the standard communication protocol specifications generally read and write commands, and the region 712 can not access the system. 不过,若外接装置74可发出经过特殊设计且兼容在该标准通讯协议的认证组态命令(其态样在后文详述),则可更新系统区域712所储存的数据。 However, if the external device 74 may issue a specially designed and compatible with the authentication protocol of the standard configuration command (which aspects described in detail later), the system may update the data stored in region 712. 在一实施例中,控制器73依据外接装置74所发出的第六组态命令,更新分区的位置信息,以调整使用者区域711的多重分区的数量。 In one embodiment, the controller 73 according to the sixth configuration command issued by the external apparatus 74, the partition updates the location information, to adjust the number of multi-user area 711 partitions. 例如,在位置信息存有分区容量时,将某一分区的容量设为零,以移除该分区;或者新增一容量记录,作为新增分区的容量。 For example, when the position information there partition size, the capacity of a partition is set to zero, to remove the partition; the recording capacity of a new or as new partition size. 在另一实施例中,在位置信息存有分区容量时,控制器73依据外接装置74所发出的第七组态命令,更新位置信息,以调整使用者区域711的任一分区的容量。 In another embodiment, when the position information there partition size, the controller 73 according to the seventh configuration command issued by the external device 74, updates the location information, the user to adjust the capacity of any region of a partition 711. 在又一实施例中,在位置信息存有分区起始地址时,控制器73 依据外接装置74所发出的第八组态命令,更新位置信息,以调整使用者区域711 的任一分区的起始地址。 In yet another embodiment the configuration command eighth embodiment, when the position information there partition start address, the controller 73 based on the external device 74 issued, updating the location information, to adjust the partition to any one of the user area 711 from start address.

在一实施例中,前述的第六至第八认证组态命令中,每一认证组态命令可为下列态样的一: In one embodiment, the sixth to eighth configuration command authentication, each authentication command may be configured in a following aspects:

(1 )认证组态命令为一制造商保留命令。 (1) certified configuration command is a command manufacturer reserves. 制造商保留命令是该标准通讯协议保留给制造商弹性运用的命令,其内含命令索引字段与命令参数字段,命令索引的值是选自该标准通讯协议所允许的值,命令参数则包含各认证组态命令对系统区域712所要更新的信息。 Manufacturer reservation command is reserved for the standard communication protocol of the manufacturer flexibility in the use command, which contains the command and the command parameter field index field, the index value of the command is the standard communication protocol selected value allowed, the command parameter contains the information on the certification system configuration command area 712 to be updated. 例如,第七认证组态命令的命令参数包含指定哪一分区进行调整以及调整后的容量值。 For example, the seventh authentication configuration command contains the command parameter specifies which partitions the capacity adjustment and the adjusted value.

(2) 认证组态命令为该标准通讯协议所规范的一般写入命令,且指定一不属在使用者区域711的寻址范围的地址。 (2) Authentication configuration command write command for the general standard communication protocol specifications, and not of a specified address in the address range of the user area 711. 例如,若使用者区域的寻址范围为0~(512M-1),则该指定地址可为不小于512M的地址。 For example, if the user area address range is 0 ~ (512M-1), the specified address may be not less than 512M of address. 至在认证组态命令所要更新的系统区域712的信息,则与一般写入命令安排所要写入数据的方式相同,例如,直接放在一般写入命令的后。 To the same configuration in the authentication command to update the system area information 712, then the general arrangement of the write command to write the data mode, for example, directly on the general write command.

(3) 认证组态命令为该标准通讯协议所规范的一般写入命令,且指定一最低位(LSB)不为零的地址。 (3) authentication configuration command for the write command general standard communication protocol specifications, and specified address a non-zero least significant bit (LSB). 如前面第一实施例所述,在某些标准通讯协议里,使用一般写入命令,但另外指定最低位不为零的地址,可代表要存取系统区城712而非使 As in the first embodiment of the foregoing embodiment, in some standard communication protocols, the use of a general write command, but not further specified address least significant bit is zero, may represent a city area 712 to access the system rather than having the

13用者区域711。 13 wearer region 711. 至在认证组态命令所要更新的系统区域712的信息,则与一般写 To the information in the authentication configuration command to update the system area 712, and is generally written

入命令安排所要写入数据的方式相同。 The same arrangements command to write data.

通过图7的第三实施例,可避免前述现有技术在不同外接装置存取多重分区时的兼容性问题。 By the third embodiment of Figure 7, it can avoid the compatibility problems of the prior art multiple access partitioning different external device. 对在不同的现有外接装置而言,皆能存取预设分区;而对在前述的认证外接装置而言,则可依据各分区的位置信息,存取使用者区域711的所 In terms of different conventional external device, able to access default partition; and in terms of the authentication of the external device may be based on position information of each partition, user access area 711

有分区。 There partition.

以上所述仅为本发明的较佳实施例,对本发明而言仅仅是说明性的,而非限制性的。 The above are only preferred embodiments of the present invention, for the present invention are merely illustrative, and not restrictive. 本专业技术人员理解,在本发明权利要求所限定的精神和范围内可对其进行许多改变,修改,甚至等效,但都将落入本发明的保护范围内。 Understood by those skilled in the claims of the invention within the spirit and scope as defined can be many alternatives, modifications, equivalents and even, but will fall within the scope of the present invention.

14 14

Claims (5)

1.一种具多重分区的存储装置,是支持一标准通讯协议,其特征在于,该存储装置包含: 一非挥发性内存,包含一使用者区域,该使用者区域包含一认证分区与一非认证分区; 一传输接口,用以从一外接装置接收一认证信息,该认证信息具有一未规范在该标准通讯协议的认证格式;以及一控制器,耦接至该传输接口及该非挥发性内存,用以依据该认证信息,决定是否允许该外接装置存取该认证分区; 其中,该认证信息是内含在下列两者其中之一:该标准通讯协议的一制造商保留命令与一写入命令,其中该制造商保留命令是该标准通讯协议保留给制造商弹性运用的命令;该写入命令是该标准通讯协议所规范的一般写入命令,并且指定一不属于该非认证分区的寻址范围的位址或一最低位不为零的位址,而该认证信息作为该一般写入命令所要写入的数 A memory device having multiple partitions, supports a standard communication protocol, characterized in that the memory device comprising: a non-volatile memory, includes a user area, which comprises a user area and a non-authentication partition authentication partition; a transmission interface for receiving an authentication information from an external apparatus, the authentication information having a format that is not standardized in the authentication standard communication protocol; and a controller, coupled to the transmission interface and said non-volatile memory, according to the authentication information to decide whether to allow the external device to access the authentication partition; wherein the authentication information is both of which contains one of the following: a manufacturer to write a standard communication protocol of the reserve command and the command, wherein the command is a reservation for the manufacturer of the standard communication protocol for the manufacturer to retain flexibility in the use of the command; the write command is written into the general communication protocol standard specification command, and specifies a non-authentication does not belong to the partition addressing range address or a least significant bit of the address is not zero, and the number of the authentication information as a general write command to be written 来提供; 该制造商保留命令包含命令索引栏位与命令参数栏位,所述命令索引的值选自该标准通讯协议所允许的值,用以辨识该制造商保留命令是提供该认证信息的命令;所述命令参数包含该认证信息。 Provided; the manufacturers reserve command comprising command and command parameters index field field, the command value of the index of the selected standard communications protocol allows a value for identifying the manufacturer to provide the reserve command authentication information command; a command parameter including the authentication information.
2、 如权利要求1所述的存储装置,其特征在于,该认证信息包含一认证识别码,该控制器允许该外接装置存取该认证分区。 2, memory device as claimed in claim 1, wherein the authentication information includes an authentication identifier, the controller allows the external device to access the authentication of the partition.
3、 如权利要求1所述的存储装置,其特征在于,该标准通讯协议是下列其中之一:通用串行总线、小尺寸闪存、存储棒、多媒体卡及安全数字。 3, memory device as claimed in claim 1, wherein the standard communication protocol is one of the following: a universal serial bus, the small size of the flash memory, memory sticks, multimedia cards, and Secure Digital.
4、 如权利要求1所述的存储装置,其特征在于,该认证分区包含至少下列其中之一: 一只读子分区、 一单次擦写子分区或一多次擦写子分区。 4, memory device as claimed in claim 1, characterized in that the partition comprises at least one of the authentication of the following: a read-only sub-partitions, a single or a multiple child partitions flash erase sub-partitions.
5、 如权利要求1所述的存储装置,其特征在于,该控制器在收到该制造商保留命令后,依据该制造商保留命令的该命令索引栏位,来判断该制造商保留命令的该命令参数栏位是内含该认证信息。 5, memory device as claimed in claim 1, wherein the controller manufacturer after receiving the reservation command, according to the manufacturer retention index that command field, to determine whether the manufacturer's reserve command the command parameter field contains the authentication information is.
CN 200610086737 2006-06-20 2006-06-20 Memory device with multiple partitions CN100593213C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610086737 CN100593213C (en) 2006-06-20 2006-06-20 Memory device with multiple partitions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610086737 CN100593213C (en) 2006-06-20 2006-06-20 Memory device with multiple partitions

Publications (2)

Publication Number Publication Date
CN101093720A CN101093720A (en) 2007-12-26
CN100593213C true CN100593213C (en) 2010-03-03

Family

ID=38991900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610086737 CN100593213C (en) 2006-06-20 2006-06-20 Memory device with multiple partitions

Country Status (1)

Country Link
CN (1) CN100593213C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8074023B2 (en) 2008-05-22 2011-12-06 Nuvoton Technology Corporation In-system programming to switch memory access from one area to another in memory cards
TW201202917A (en) * 2010-06-01 2012-01-16 Etron Technology Inc System of realizing RAID-1 on a portable storage medium and method of realizing write data and write/read data of RAID-1 on a portable storage medium
CN102207912B (en) * 2010-07-07 2015-10-07 无锡中科龙泽信息科技有限公司 In a flash memory device and method for accessing the device-side implementation of the partition function

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6167494A (en) 1998-04-28 2000-12-26 International Business Machine Corporation Method and system for recovering from operating system failure
CN1567362A (en) 2003-06-10 2005-01-19 大唐微电子技术有限公司 IC smart card with dynamic logic sectorization and access right control function and implementing method thereof
CN1674159A (en) 1999-10-21 2005-09-28 松下电器产业株式会社 A semiconductor memory card access apparatus, a computer-readable recording medium, an initialization method, and a semiconductor memory card
US20060069819A1 (en) 2004-09-28 2006-03-30 Microsoft Corporation Universal serial bus device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6167494A (en) 1998-04-28 2000-12-26 International Business Machine Corporation Method and system for recovering from operating system failure
CN1674159A (en) 1999-10-21 2005-09-28 松下电器产业株式会社 A semiconductor memory card access apparatus, a computer-readable recording medium, an initialization method, and a semiconductor memory card
CN1567362A (en) 2003-06-10 2005-01-19 大唐微电子技术有限公司 IC smart card with dynamic logic sectorization and access right control function and implementing method thereof
US20060069819A1 (en) 2004-09-28 2006-03-30 Microsoft Corporation Universal serial bus device

Also Published As

Publication number Publication date
CN101093720A (en) 2007-12-26

Similar Documents

Publication Publication Date Title
JP4416914B2 (en) Method for providing control information to the drive by a data storage medium
CN1252725C (en) Recording medium, equipment, method, compiling equipment and method
KR100408872B1 (en) Method of rewriting program in flash microcomputer
US7555483B2 (en) File management method and information processing device
JP4452261B2 (en) Logical volume management method of a storage system, the logical volume management program and the storage system,
EP0977121B1 (en) Non-volatile memory, recording apparatus and recording method
US8296467B2 (en) Single-chip flash device with boot code transfer capability
CN100580642C (en) Universal serial bus storage device and access control method thereof
US20050193162A1 (en) USB card reader
US7730326B2 (en) Method and system for updating firmware stored in non-volatile memory
CN101484882B (en) Method for flash-memory management
CA2355082C (en) A semiconductor memory card access apparatus, a computer-readable recording medium, an initialization method, and a semiconductor memory card
US6279114B1 (en) Voltage negotiation in a single host multiple cards system
CN101142581B (en) Delivery of a message to a user of a portable data storage device as a condition of its use
US20050257017A1 (en) Method and apparatus to erase hidden memory in a memory card
US6601139B1 (en) Information processing method and apparatus using a storage medium storing all necessary software and content to configure and operate the apparatus
KR100975178B1 (en) Data storage device
KR100980905B1 (en) Data storing apparatus
KR101033068B1 (en) Memory Device and Recording/Reproducing Apparatus Using the Same
US20030225960A1 (en) Method for partitioning memory mass storage device
JP4268396B2 (en) File management of one-time programmable non-volatile memory device
US20080147964A1 (en) Using various flash memory cells to build usb data flash cards with multiple partitions and autorun function
JP3072722B2 (en) Data management apparatus and a data management method and a storage medium using the flash memory using a flash memory
US7003619B1 (en) Memory device and method for storing and reading a file system structure in a write-once memory array
US7412558B2 (en) Semiconductor storage device

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
EXPY Termination of patent right or utility model