WO2015113319A1 - Device having storage function - Google Patents

Device having storage function Download PDF

Info

Publication number
WO2015113319A1
WO2015113319A1 PCT/CN2014/073457 CN2014073457W WO2015113319A1 WO 2015113319 A1 WO2015113319 A1 WO 2015113319A1 CN 2014073457 W CN2014073457 W CN 2014073457W WO 2015113319 A1 WO2015113319 A1 WO 2015113319A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage area
access
instruction
contact interface
interface
Prior art date
Application number
PCT/CN2014/073457
Other languages
French (fr)
Chinese (zh)
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 上海复旦微电子集团股份有限公司
Publication of WO2015113319A1 publication Critical patent/WO2015113319A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0605Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0661Format or protocol conversion arrangements

Definitions

  • the present invention relates to the field of communications, and in particular, to a device having a storage function.
  • the memory-capable device includes a memory and a host controller thereof.
  • the conventional memory includes: a static random access memory (SRAM); a dynamic random access memory (DRAM); an electrically erasable programmable Electrically Erasable Programmable Read Only Memory (EEPROM); and, non-volatile flash memory (eg, NOR Flash and NAND Flash).
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • EEPROM electrically erasable programmable Electrically Erasable Programmable Read Only Memory
  • non-volatile flash memory eg, NOR Flash and NAND Flash.
  • RFID Radio Frequency Identification
  • RFID Radio Frequency Identification
  • LF low frequency radio frequency, about 125KHz
  • HF high frequency radio frequency, At around 13.56 MHz
  • UHF UHF RF, in the 860 to 960 MHz range.
  • the RF reader reads or stores the data stored in the RF tag through the RF interface, that is, the non-contact interface.
  • the RF tag generally uses an EEPROM type memory. For the memory of the contact interface, if data needs to be exchanged, the wired connection between the interfaces must be performed by means of PCB soldering or cable connection. Therefore, it is generally impossible to directly exchange data with the outside world in the whole device, generally through the main control.
  • dual-interface memory devices can access the entire storage space through a contact interface, such as an IIC interface, or a contactless interface, such as the IS015693 HF RF interface, and can be set according to the permission settings, only the area accessible by the contact interface, only non- The area that the contact interface can access, or the area that both interfaces can access. Therefore, data exchange between the whole device and the external RF reader can be realized at a low cost.
  • the logical mapping of the memory space is - corresponding, ie, as M24LR64, the 64kbit EEPROM space addressed by the contact interface is identical to the 64kbit EEPROM addressed by the contactless interface.
  • the EEPROM memory external to the main chip mainly stores the program code of the transmission module. After power-on, the main chip starts from the lowest address and loads the code in the EEPROM memory into the main chip. The SRAM, and run the program code, thus requires that the data format in the EEPROM memory must conform to the code format requirements of the main chip.
  • this Bluetooth audio transmission device also supports the Bluetooth pairing function through NFC
  • the same EEPROM memory is used to implement the NFC Type 2 tag function
  • the data format in the dual interface EEPROM memory must conform to the near field communication tag data format. Definition. It can be seen that in the existing solution, the data of the system customized data format and the simultaneous storage of the standardized near field communication tag data format data cannot be completed through one dual interface memory.
  • the technical problem solved by the technical solution of the present invention is to solve the simultaneous access of data of different data formats stored in a device having a storage function.
  • the technical solution of the present invention provides a device having a storage function, comprising: a first storage area, adapted to store general data; a second storage area adapted to store tag data; a contact interface adapted to interact with an external device; a contactless interface adapted to interact with an external device; a system configuration area adapted to store system configuration data, the system The configuration data includes storage area access mode setting information, and the processor is adapted to control the contact interface access according to the storage area access mode setting information when the contact interface receives an instruction from an external device.
  • the storage area access mode setting information includes a correspondence between the instruction type and the storage area; the processor includes: a first processing subunit, and the instruction is configured to be the first instruction type Responding to, and controlling access by the contact interface to the first storage area; adapted to respond when the instruction from the external device is the second instruction type, and controlling the contact interface to the second Access to the storage area.
  • the storage area access mode setting information includes a correspondence between an address range and a storage area;
  • the processor includes: a first processing subunit, and is adapted to be a target address carried by the instruction from the external device. Responding to the first address range and controlling access by the contact interface to the first storage area; adapted to respond and control when the target address carried by the instruction from the external device is in the second address range Access by the contact interface to the second storage area.
  • the mirroring area of the second storage area is included in the first storage area;
  • the storage area access mode setting information includes a direction of the mirroring address;
  • the processor includes: a first processing subunit, configured to respond when the target address carried by the instruction from the external device is in an address range of the mirrored area, and control the contact based on the pointing of the mirrored address The interface accesses the mirror area of the first storage area to implement access to the second storage area.
  • the processor includes: a first processing subunit, configured to control the non-contact interface to access the first storage area when the instruction conforms to the first type of specification; And a unit, configured to control the non-contact interface to access the second storage area when the instruction conforms to the second type of specification.
  • the access of the contactless interface is in accordance with the IS014443 or IS015693 communication protocol
  • the first type of specification is a private instruction
  • the second type of specification is an NFC TYPE2 TAG instruction.
  • the processor further includes: an interface arbitration subunit, configured to determine a priority of the received instruction of the contact interface and the contactless interface, and strobe the processor according to the priority The contact interface or the link of the contactless interface.
  • the device having the storage function further includes: a protection bit area; the protection bit area is adapted to store configuration data of the protection bit, and the processor further includes: a read/write protection unit, adapted to be according to the protection The bit configuration data performs rights management for access to the storage bits in the first storage area or the second storage area.
  • the processor further includes: a password protection unit, configured to perform password protection on the configuration data rewriting of the system configuration area and the protection bit area.
  • the device having a storage function further includes: an antenna adapted to sense an electromagnetic signal in the non-contact field, and when the electromagnetic signal is the instruction from the external device, the contactless interface receives the Electromagnetic signal.
  • the device having a storage function further includes: a main controller, a power management unit, and a first output pin; the power management unit is adapted to receive, when the contactless interface receives an instruction from an external device Triggered, logically processing the instruction, and generating a field detection signal and a power signal; the first output pin is adapted to output the field detection signal to the main controller to wake up the main controller.
  • the device having a storage function further includes: a second output pin; the second output pin is adapted to be when the processor processes the non-contact interface to receive an instruction from an external device, A prompt signal is output to the main controller.
  • the prompting signal is a busy information of the contactless interface and the processor channel or access information of the second storage area of the first storage area based on the contactless interface.
  • the beneficial effects of the technical solution of the present invention include at least: the device with the storage function proposed by the technical solution of the present invention can implement general data and standardized TAG of the system customized data format in the memory with both the contact interface and the contactless interface. Coexistence of tag data in the tag data format, and simultaneous access to the storage data of the above different formats through the contact interface and the contactless interface, greatly improving the interaction capability between the existing storage device and the external device, and further The amount of memory of the whole device reduces the difficulty of production configuration.
  • the technical solution of the present invention can also flexibly define the capacity of the tag data stored in the memory by configuring the contact interface or the non-contact interface, which greatly enriches the function of the dual-interface data exchange of the whole device.
  • the technical solution of the present invention manages the access mode of the storage area by adding a flexible configuration system configuration area, and while retaining the original access and non-contact interface to access the memory, the contact interface is specially configured to store different data formats. Simultaneous access to the storage area of data.
  • the technical solution of the present invention adds a storage area for storing tag data on the storage area of the conventional storage device, which is different from the prior art radio frequency tag, and the second storage area of the technical solution of the present invention
  • a domain can be accessed not only through a contactless interface, but also through a contact interface. Accessing the second storage area through the contact interface, and implementing the simultaneous method of the contact interface to the first storage area and the second storage area is difficult: the logical mapping of the storage space is one-to-one correspondence, and the first storage area The storage space of the storage area and the storage area of the second storage area are correspondingly consistent with each other. When the contact interface can also access the second storage area, there is an addressing problem of the storage area.
  • the technical solution of the present invention also solves this problem by setting the configuration data of the storage area access mode.
  • the present invention realizes access of the tag data to the tag data while the device accesses the tag data through the contactless interface without changing the technical solution of the present invention.
  • the storage area access mode is defined by setting a correspondence between the instruction type and the storage area in the external instruction by setting the contact interface: under the configuration definition, adopting the original contact interface protocol, However, the second storage area is accessed by a new instruction different from the original contact interface instruction; and the first storage area is accessed by using the original contact interface instruction.
  • the original contact interface instruction and the new instruction different from the original contact interface instruction establish the correspondence between the instruction type and the storage area, and solve the problem of addressing the storage area by the contact interface access instruction.
  • the storage area access mode is defined by setting a correspondence between the address range and the storage area in the external command by setting the contact interface: under the configuration definition, adopting the original contact interface protocol,
  • the second storage area is accessed by a different address range different from the storage space address (corresponding to the first storage area) in the original data storage; and the first storage area is accessed by using the storage space address in the original data storage.
  • the correspondence between the address range and the storage area is established by using the storage space address in the original data storage and the different address ranges different from the storage space address in the original data storage, thereby solving the problem of addressing the storage area by the contact interface access instruction.
  • the mirroring area of the second storage area is added to the first storage area, and the pointing of the mirroring address is defined in the storage area access mode setting information, by using the first storage area.
  • Accessing the mirrored area realizing access to the second storage area: in the case of conforming to the original contact interface protocol and the original contact interface instruction, directly performing data on the second storage area based on the mirrored area by the addressing range in the first storage area Read and write operations, and through the configurable address of the mirrored area mapping address, flexibly adjust the mirrored logical address of the label data in the first storage area, satisfy the coexistence of the label data and the original general data, and perform label data and the original universal data. Visit at the same time.
  • the device of the technical solution of the present invention uses an access function of the data storage access function and the operation instruction of the non-contact interface tag data to the second storage area, and is different from the non-contact interface tag data operation instruction.
  • the device of the technical solution of the present invention further includes an interface arbitration subunit, and the interface arbitration subunit can control the operation authority and priority of the contact interface and the contactless interface.
  • the device of the technical solution of the present invention further includes a protection bit area and a read/write protection unit, and the read/write protection unit can control access rights of the first storage area and the second storage area according to the configuration data of the protection bit.
  • the device of the technical solution of the present invention further includes a password protection unit, and the password protection unit can perform password protection on the configuration data rewriting of the system configuration area and the protection bit area, thereby improving device system security.
  • FIG. 1 is a schematic structural diagram of a device having a storage function according to the technical solution of the present invention
  • FIG. 2 is a schematic diagram of a first specific structure of a device having a storage function according to the technical solution of the present invention
  • FIG. 4 is a schematic diagram of a third specific structure of a device having a memory function according to the technical solution of the present invention
  • FIG. 5 is a fourth specific embodiment of a device having a memory function according to the technical solution of the present invention
  • FIG. 6 is a schematic diagram of a fifth specific structure of a device having a storage function according to the technical solution of the present invention
  • FIG. 1 is a schematic structural diagram of a device having a storage function according to the technical solution of the present invention
  • FIG. 2 is a schematic diagram of a first specific structure of a device having a storage function according to the technical solution of the present invention
  • FIG. 4 is a schematic diagram of a third specific structure of a device having a memory function according to the technical solution of the present
  • FIG. 7 is a schematic diagram of an access flow based on an instruction extension of a device having a storage function according to the technical solution of the present invention.
  • Technical Solution A schematic diagram of an access flow based on an address range extension of a device having a storage function;
  • FIG. 9 is a flow chart showing an access flow based on an address mapping of a device having a storage function according to a technical solution of the present invention;
  • FIG. 10 is a schematic diagram of signal flow in a device access process with a storage function according to the technical solution of the present invention;
  • FIG. 11 is a schematic diagram of a sixth specific structure of a device having a storage function according to the technical solution of the present invention;
  • the technical solution of the present invention provides a device s having a storage function as shown in FIG. 1, comprising: a first storage area (also referred to as a Data Block) 1 , suitable for storing general data; and a second storage area (also referred to as a Tag Block) 2, suitable for storing tag data.
  • the storage area has data storage capability; the storage medium constituting the storage area may be a semiconductor device or a magnetic material.
  • the smallest storage unit of the storage area may be a bistable semiconductor circuit or a CMOS transistor or a magnetic material storage element that stores a binary code.
  • a storage unit is composed of a plurality of storage units, and one or more storage units constitute the storage area.
  • the second storage area 2 may be a storage area expanded based on the first storage area 1 or may be an additional setting integrated with the first storage area 1 except the first storage area 1.
  • the default relationship between the first storage area 10 and the second storage area 11 is the former, and the first storage area 1 and the second storage area 2 can be regarded as different storage areas in the same memory.
  • the first storage area 1 is configured to store general data
  • the second storage area 2 Used to store tag data.
  • Tag data is generally data that is written by an external device and accessed by other external devices, based on the radio frequency tag.
  • the general data is written by the internal controller of the system where the external device or device s is located and can be freely read and written by devices other than the memory.
  • the general data is data other than the tag data.
  • the general data stored in the first storage area 1 and the tag data stored in the second storage area 2 have independence of data content.
  • the device s having the storage function proposed by the present invention is based on a conventional serial non-volatile memory (NVM), and the first storage area of the conventional serial non-volatile memory is the first storage area 1 and its storage Generic data having an NVM data format, the second storage area of the conventional serial non-volatile memory is the second storage area 2, which stores tag data having a format different from the NVM data format, and the storage format of the tag data is based on the radio frequency tag , can refer to the definition of the near field communication tag data format.
  • NVM non-volatile memory
  • the device s having the storage function further includes: a contact interface (also referred to as a Contact Interface) 3, which is adapted to interact with an external device; a contactless interface (also as an RF Rectifier and Interface) 4, suitable Interact with external devices.
  • the contact interface 3 may be a contact serial data interface corresponding to the memory type (eg, corresponding EEPROM, may be an I2C interface, and the corresponding FLASH may be an SPI interface), and the non-contact interface 4 is also corresponding to the memory. It is a non-contact interface based on the specification of the specific communication protocol (such as IS014443, IS015693, etc.) added by the memory based on the contact interface 3, and can also be regarded as a radio frequency interface.
  • the specific communication protocol such as IS014443, IS015693, etc.
  • the contact interface 3 can realize simultaneous access to the first storage area 1 and the second storage area 2 in a contact manner
  • the contactless interface 4 can realize the pair of the first storage area 1 and the second storage area 2 in a contactless manner. Simultaneous access.
  • the memory of the device s having the storage function of the present application can be regarded as being formed by expanding a storage area for storing tag data on the basis of the original data memory of the NVM data memory chip.
  • the conventional radio frequency label can only read and write access to the storage area in the radio frequency label through the radio frequency interface.
  • the application can perform the label data of the second storage area 2 based on the radio frequency interface or other non-contact interface.
  • the contact interface 3 can access the first storage area 1 or the second storage area 2, and can be implemented by referring to the following technical content: the contact interface 3 pairs the first storage area 1 and the The simultaneous access of the second storage area 2, the first problem to be solved is the addressing problem.
  • the device s having the storage function further includes: a system configuration area (also referred to as a System Block) 5; and, a processor (also referred to as a Digital Block) 6.
  • the system configuration area 5 is adapted to store system configuration data, and the system configuration data includes storage area access mode setting information.
  • the storage area access mode setting information actually sets the correspondence relationship between the access command and the addressing mode of the external device received by the touch interface 3.
  • the addressing mode described in the present application mainly refers to extending the addressing range of the first storage area 1 based on the original first storage area 1, and the extension of the addressing range includes an extension of the access instruction and an address of the storage area. The extension of the scope and the expansion of the association relationship with the storage area itself.
  • the storage area access mode setting information includes: an instruction type; a correspondence relationship between the instruction type and the storage area.
  • the contact interface 3 receives the access instruction (contact There are at least two modes of the serial interface instruction. Different contact interface instructions correspond to different storage areas. For example, for the first contact interface instruction, it corresponds to the first storage area 1 and the address carried by the instruction. An address range pointing to the first storage area 1 corresponds to the second storage area 2, and the address carried by the instruction points to the address range of the second storage area 2.
  • the storage area access mode setting information includes: an address range; a correspondence relationship between the address range and the storage area.
  • the address range includes an extension of the original first address range and the first address range; wherein the first address range corresponds to the first storage area 1, and the extended portion of the first address range corresponds to the second storage area 2.
  • the contact interface 3 may receive only one type of access command (contact serial interface command), and may adopt different modes for the first storage area 1 and the second storage area 2.
  • the address range mode that is, the first storage area 1 corresponds to the original first address range, and the second storage area 2 corresponds to the extended part of the first address range, so that the access instruction received by the contact interface 3 can be mapped to different storage.
  • the area, the contact interface 3 can thus simultaneously access the first storage area 1 and the second storage area 2.
  • the storage area access mode setting information includes: an address range, including a mirrored address; a correspondence between the address range and the storage area, including the pointing of the mirrored address .
  • the address range is corresponding to the first storage area, and includes a storage address and a mirrored address, where the storage address corresponds to a storage location of the universal data, and the mirrored address is pointed to by the mirrored address. Storage area. The difference is that the pointing of the mirroring address is directed to the second storage area by corresponding to the first storage area.
  • the first storage area 1 Inside is a mirrored area (Tag Mirror ) 10
  • the general-purpose data is stored in a storage area other than the mirrored area 10
  • the pointing of the mirrored address is directed to the second storage area 2 by corresponding to the mirrored area 10.
  • the access to the second storage area 2 is the access to the mirrored area 10.
  • the contactless interface 4 can access the first storage area 1 or the second storage area 2, and can be implemented by referring to the following technical content: the contactless interface 4 pairs the first storage area 1 Simultaneous access with the second storage area 2 mainly involves access problems to data stored in different data formats in the first storage area 1 and the second storage area 2.
  • the corresponding relationship between the instruction type of the instruction received by the contactless interface 4 and the storage area may be set to discriminate the storage area pointed by the instruction: for example, the general data in the first storage area 1
  • the storage format is the NVM data format
  • the storage format of the tag data in the second storage area 2 is the near field communication tag data format; since the access of the contactless interface 4 follows the IS014443 or IS015693 communication protocol, at this time, if the contactless interface 4
  • the received instruction format is a private instruction, and the general data in the first storage area 1 can be directly read based on the instruction; if the communication specification of the instruction received by the contactless interface 4 satisfies the NFC TYPE2 TAG instruction, The instruction directly reads the tag data in the second storage area 2.
  • the private instruction is based on a custom data format that operates a general data area (including the first storage area and a system configuration area), the NFC TYPE2 TAG instruction is based on a near field communication tag data format and is operable to operate a tag data area (including Second storage area).
  • the control access to the contact interface 3 and the contactless interface 4 can be realized by the processor 6: the processor 6 is adapted to receive the instruction from the external device when the contact interface 3 receives the instruction The storage area access mode setting information controls the touch interface 3 to access the first storage area or the second storage area; the processor 6 is further adapted to, when the contactless interface 4 receives an instruction from an external device, according to the instruction The type controls the contactless interface 4 to access the first storage area or the second storage area.
  • an embodiment of the technical solution of the present invention is a dual interface memory having a tag function.
  • the memory si includes: The first storage area 1, the second storage area 2, the contact interface 3, the contactless interface 4, the system configuration area 5, and the processor 6.
  • the storage area access mode setting information stored in the system configuration area 5 of the embodiment supports extension of the access command and extension of the storage area address range. Therefore, the first storage area 1 does not have the mirror area 10 as in the first storage area 1, but the second storage area 2, the contact interface 3, the contactless interface 4, the system configuration area 5, and the processor 6 are defined. Same device s. With reference to FIG.
  • the external device of the memory si includes a main controller C1 and a main controller C2, wherein the main controller C1 is a microcontroller, and accesses the corresponding storage area through the contact interface 3,
  • the controller C2 is a user NFC contactless read/write master device that accesses the corresponding storage area through the contactless interface 4.
  • the contact interface 3 is a contact serial interface, and when accessed through the contact interface 3, the main controller
  • C1 inputs instructions to the memory si through a connection bus that transmits Serial Datel (Serial Date2, Serial Date), and the contact interface 3 (which may be a serial interface interface circuit in a specific implementation process) receives and parses the instruction. And accessing and configuring the data by the processor 6. Based on the contact interface 3, the processor 6 can perform read and write operations on the first storage area ⁇ , the second storage area 2, and the system configuration area 5 of the memory si, respectively. The processor 6 can also set access rights to the read and write operations of the first storage area ⁇ , the second storage area 2, and the system configuration area 5 of the contact interface 3.
  • Serial Datel Serial Date2, Serial Date
  • the contact interface 3 which may be a serial interface interface circuit in a specific implementation process
  • the memory si if the extension of the access instruction is implemented by the corresponding main controller C1, the memory si is correspondingly set to use different contact strings for receiving data access to the first storage area 1 and the second storage area 2.
  • the mode of the line interface instruction, and the corresponding setting of the instruction type and the correspondence relationship between the instruction type and the storage area are performed in the system configuration area 5.
  • the main controller C1 accesses the memory si through the contact interface 3, the main controller C1 can respectively perform the first storage area 1, or the second storage area 2 through different contact interface commands. Write and read operations.
  • the memory si operates in the same mode as the conventional NVM memory, and the operation of the touch interface 3 on the second storage area 2 is equivalent to the conventional NVM memory, that is, similar to the operation of the first storage area 1,
  • access to the second storage area 2 requires the use of an extended instruction, that is, access to the second storage area 2 is only possible based on the extended instruction. If It is expected that in the non-contact mode, the tag function is used through the contact interface 3, and the data written by the main controller C1 to the second storage area 2 needs to meet the format and data requirements of the NFC TYPE2 TAG, and the contact is implemented based on the extended instruction. Interface 3 access to tag data.
  • the memory si if the extension of the instruction address range is implemented by the corresponding main controller C1, the memory si adopts a mode of different address ranges for the first storage area 1 and the second storage area 2, and is performed in the system configuration area 5.
  • the address range in the instruction is the original first address range, corresponding to the first storage area 1, the address range in the instruction is an extended part of the first address range, and then to the second storage area 2 .
  • the main controller C1 can directly write the first storage area ⁇ and the second storage area 2 with different target addresses through the instructions transmitted by the same contact interface 3. Read operation.
  • the memory si operates in the same mode as the conventional NVM memory, and the operation of the contact interface 3 for the first memory area 1, is equivalent to the conventional NVM memory, but an extended address range is used. If it is desired to use the tag function through the contact interface 3 in the non-contact mode, the data written by the main controller C1 to the second storage area 2 needs to satisfy the format and data requirements of the NFC TYPE2 TAG.
  • the memory si of this embodiment further includes: an antenna 7 adapted to sense an electromagnetic signal in the non-contact field, and when the electromagnetic signal is the instruction from the external device, the contactless interface 7 receives the Electromagnetic signal.
  • the main controller C2 is provided with an antenna C20.
  • the main controller C2 communicates with the non-contact interface 4 via a wireless signal of a non-contact field between the antenna C20 and the antenna 7.
  • the contactless interface 4 may specifically be a radio frequency interface interface circuit that modulates and demodulates the effective electromagnetic signal received by the antenna 7 and conforms to the IS014443 or IS015693 communication protocol.
  • the contactless interface 4 directly uses the instruction that satisfies the private instruction specification for the read and write operations of the first storage area 1, and the contactless interface 4 and the processor 6 are also adapted to receive the label instruction conforming to the NFC TYPE2 TAG specification. And reading and writing the second storage area 2 directly based on the label instruction.
  • the present application further provides a storage device s2 as shown in FIG. 3, including the memory s1 of FIG. 2 and the above-mentioned main controller C1, and the main controller C2 is an external user equipment.
  • the application also provides a memory s3 as shown in FIG. 4, which is also a dual interface memory with a tag function.
  • the memory s3 includes: a first storage area 1, a second storage area 2, a contact interface 3, a contactless interface 4, a system configuration area 5, and a processor 6.
  • the storage area access mode setting information stored in the system configuration area 5 of the embodiment supports extension of the access instruction, extension of the storage area address range, and extension of the association relationship of the storage area itself, and the first storage area. 1.
  • the second storage area 2, the contact interface 3, the contactless interface 4, the system configuration area 5, and the processor 6 are defined in the same manner as the device s.
  • the external device of the memory s3 includes a main controller C1 and a main controller C2, wherein the main controller C1 is a microcontroller, and accesses the corresponding storage area through the contact interface 3.
  • the main controller C2 is a user NFC contactless read/write master device, which accesses the corresponding storage area through the contactless interface 4.
  • the main controller C1 transmits the contact serial data (Serial Datel, Serial Date2, ...,
  • Serial Clk inputs an instruction to the memory sl, and performs access and configuration operations on the data in the storage area (the first storage area 1, the second storage area 2, and the system configuration area 5) based on the contact interface 3 and the processor 6. .
  • the processor 6 can also set access rights to the read and write operations of the first storage area ⁇ , the second storage area 2, and the system configuration area 5 of the contact interface 3.
  • the above process in the memory s3 is similar to the memory sl, except that the main controller C1 can also configure the mapping between the mirrored area 10 and the second storage area 2 in the first storage area 1 based on the system configuration area 5. Only the access command of the original main controller C1 is used to access the storage area.
  • the main controller C1 does not need to expand its access instruction or expand its access address.
  • the processor 6 establishes the mirroring area 10 of the second storage area 2 in the first storage area 1 according to the pointing of the mirroring address configured in the system configuration area 5, which may be specifically
  • a tag address control circuit 60 is provided in the processor 6, using tag address control The circuit 60 is responsive to the enabling of the mapping configuration and establishes the mirrored area 10 within the first storage area 1.
  • the main controller C1 can directly access the general data of the first storage area 1 and the tag data of the second storage area 2 according to the address range corresponding to the first storage area (including the storage address and the mirror address), where The mirroring address accesses the mirroring area 10, and the access to the second storage area 2 is implemented by performing read and write operations on the mirroring area 10. At this time, the operation of the touch interface 3 on the second storage area 2 is equivalent to the conventional NVM memory operation. If it is desired to access the tag data using the touch interface 3 in the non-contact mode, the main controller C1, the data written to the mirror area 10 needs to meet the format and data requirements of the NFC TYPE2 TAG. Other relevant content of the memory s3 can be referred to the relevant description of the memory si.
  • the present application further provides a storage device s4 as shown in FIG. 5, including the memory s3 of FIG. 4 and the above-mentioned main controller C1, and the main controller C2 is an external user equipment.
  • a storage device s4 as shown in FIG. 5, including the memory s3 of FIG. 4 and the above-mentioned main controller C1, and the main controller C2 is an external user equipment.
  • the structure of the processor 6 is further explained below: Based on the structure of the memory s4, in the memory s5 shown in FIG. 6, in order to realize contact data access, the processor 6, including: conventional memory read and write control circuit (NVM R / W ctrl) 61.
  • NVM R / W ctrl conventional memory read and write control circuit
  • the contact interface 3 acquires the access information and accesses the storage area according to the access authority of the processor 6, the access operation and the configuration operation of the storage area data are completed by the conventional memory read/write control circuit 61. This is applicable to the access of the first storage area 1 (1), the second storage area 2, and the system configuration area 5.
  • the processor 6 includes: a first processing subunit and a second processing subunit. The first processing subunit is adapted to control the contactless interface 4 to access the first storage area 1 ( ⁇ ) when the instruction information conforms to the first type of specification.
  • the instructions conforming to the first type of specification satisfy the definition of the private instruction, and the specific implementation circuit of the first processing subunit may be the conventional memory read and write control circuit 61. Not only access to the first storage area 1 ( ⁇ ), but also through non-connection
  • the touch interface 4 and the conventional memory read/write control circuit 61 can implement contact access to the system configuration area 5 in the same access mode.
  • the second processing subunit is adapted to control the contactless interface 4 to access the second storage area 2 when the instruction information conforms to the second type of specification.
  • the specific implementation circuit of the first processing subunit may be a near field data exchange read/write control circuit (NDEF NVM RAV Ctrl ) 62.
  • the memory s5 can accept an access instruction conforming to the NFC TYPE2 TAG specification and directly perform a write operation on the second storage area 2.
  • the processor 6 further includes: an interface arbitration sub-unit 63, the interface arbitration sub-unit 63 is adapted to the contact interface 3 and the contactless interface 4 The priority of the received command is determined, and the processor 6 and the link of the contact interface 3 or the contactless interface 4 are gated according to the priority.
  • the processor 6 further includes: a read and write protection unit (Write Protect) 64, corresponding to the read/write protection unit 64, and a protection bit area 8 may be added in the storage area of the memory s5.
  • the configuration data for the Protect Bit (Protect Bit).
  • the protection bit area 8 is directly disposed in the system configuration area 5.
  • the read/write protection unit 64 is adapted to perform rights management on access of the storage bits in the storage area according to the configuration data of the protection bits.
  • the storage area includes a first storage area 1 (1), a second storage area 2, and a system configuration area 5. More preferably, the processor 6 can also password protect the rewriting of the protection bit area 8 or the system system configuration area 5.
  • the processor 6 further includes: a password protection unit (Password Protect) 65.
  • the password protection unit 65 is adapted to password protect the configuration data rewriting of the system configuration area 5 (including the protection bit area 8).
  • the interface arbitration subunit for the contact access process, after the instruction of the contact interface 3 is parsed, the interface arbitration subunit
  • the processor 6 is turned on, and the link with the contact interface 3 is turned off.
  • the processor 6, the link with the contactless interface 4, and the read/write protection unit 64 controls the instruction according to the configuration data of the protection bit area 8, excluding the instruction without the access authority, and causes the conventional memory read/write control circuit 61. Data access operations and configuration operations are completed based on instructions with access rights.
  • the interface arbitration sub-unit 63 preferentially processes the contactless instruction. At this time, the processor 6 is turned on, and the link with the contactless interface 4 is turned off.
  • the link with the contact interface 3, and the read/write protection unit 64 controls the instruction according to the configuration data of the protection bit area 8, excluding the instruction without the access authority, so that the conventional memory read/write control circuit 61 is based on
  • the general-purpose instruction of the access authority (which satisfies the definition of the private instruction) completes the access operation and configuration operation on the general-purpose data or the configuration data, so that the near-field data exchange read-write control circuit 62 is based on the tag instruction having the access authority (in accordance with NFC TYPE2) TAG Protocol Specification) Completes access and configuration operations for tag data.
  • the configuration of the processor 6 described above is applicable to the devices s, si to s4 having the storage function.
  • the above structure of the processor 6, can also be adapted to be selectively applicable.
  • the present application provides a flow for accessing the storage area using an extension manner of the access instruction:
  • the interface arbitration sub-unit 63 first determines Operation authority of the interface. If the contact interface 3 has priority, when the contact interface 3 receives the access instruction and the access address information, the contact access path is opened, and the contactless access path is closed.
  • the contact interface 3 parses the received access command and the access address information, and determines whether the accessed general data (the first storage area 1 or the system configuration area 5) or the tag data (the second storage area 2) is accessed according to the extended instruction.
  • the NVM data format is used to read and write the response to the storage area corresponding to the address;
  • the tag data of the second storage area, and the read/write protection unit 64 has the access authority according to the instruction, and then reads and writes the storage area corresponding to the address according to the access address using the near field communication data format.
  • the contactless interface 4 has priority, when the contactless interface 4 receives the access command and the access address information, the contactless access path is opened, and the contact access path is closed.
  • the contactless interface 4 parses the received access command and access address information, and determines access according to the type of the command.
  • the general data (the first storage area 1 or the system configuration area 5) or the label data (the second storage area 2); if the instruction type corresponds to the first storage area, and the instruction is provided according to the read/write protection unit 64, Then, the NVM data format is used to read and write responses to the storage area corresponding to the address according to the access address; if the instruction type corresponds to the tag data of the second storage area, and the access authority is provided according to the read/write protection unit 64, the access address is used according to the access address.
  • the near field communication data format reads and writes responses to the storage area corresponding to the address. Based on the structure of the memory s5 shown in FIG. 6, referring to FIG.
  • the present application also provides a flow for accessing the storage area by using an extension manner of the storage area address range:
  • the interface arbitration subunit 63 first determines the operation authority of the interface. If the contact interface 3 has priority, when the contact interface 3 receives the access instruction and the access address information, the contact access path is opened, and the contactless access path is closed. The contact interface 3 parses the received access command and the access address information, and determines whether the accessed general data (the first storage area 1 or the system configuration area 5) or the tag data (the second storage area) is accessed according to the extended address range.
  • the present application also provides a process for accessing the storage area by using the storage area itself to expand the association relationship:
  • the interface arbitrates The sub-unit 63 first determines the operation authority of the interface. If the contact interface 3 has the priority, when the contact interface 3 receives the access instruction and the access address information, the contact access path is opened, and the contactless access path is closed.
  • the contact interface 3 parses the received access command and the access address information, and determines whether the accessed general data (the first storage area 1 or the system configuration area 5) or the mapping data (the mapping data corresponds to the mirror area 10) according to the address range.
  • Access to the mapping data implements access to the tag data); if the address information corresponds to the first storage area The area other than the mirroring area is access to the general data. If the command is provided according to the instruction by the read/write protection unit 64, the NVM data format is used to read and write the storage area corresponding to the address according to the address; If the address information corresponds to the mirrored area of the first storage area, it is a method for label data. If the access authority is provided according to the instruction by the read/write protection unit 64, the near field communication data format is used according to the access address. The storage area is readable and writable. For other access content, refer to the related discussion of the access process in Figure 7.
  • the present application also provides a signal flow diagram as shown in FIG. 10, which discloses a signal flow relationship in a storage device when accessing the storage device of the present application: interface arbitration subunit to contact interface or non-contact
  • the contact interface performs priority setting and access control, which notifies the processor through the arbitration signal whether to open the processor link between the contact interface or the processor link between the contact and the contactless interface.
  • the access information received by the contact interface includes instruction information, address information, and access data (with written information or acquired data); the control circuit of the contact interface decodes, logically controls, and enables the label mapping mode.
  • the tag address control circuit is used to perform tag address control on the mirror address of the corresponding tag data.
  • the above process can determine the accessed storage area and output the address and access data to the conventional memory read and write control circuit for access configuration.
  • the read/write protection unit protects the data (including configuration data, general data, and tag data), and performs permission determination based on the read/write protection signal against the protection bit area of the system configuration area.
  • the storage area including the first storage area, the second storage area, and the system configuration area
  • the configuration data of the system configuration area in particular the configuration data of the protection bit area, can be rewritten according to the above manner, but such rewriting can be specifically password-protected based on the password protection unit.
  • the access information received by the contactless interface also includes instruction information, address information, and access data; the control circuit of the contactless interface decodes and logically controls the access information, and judges according to the type of the instruction. Break the access storage area. For the accessed storage area is the first storage area or the system configuration area, the output address and the access data are accessed to the conventional memory read/write control circuit for access configuration; for the accessed storage area is the second storage area, the output address and the access data are sent to the near field data.
  • the present application further provides a memory s6 as shown in FIG. 11.
  • the memory s6 further includes: a power management unit (9), a first output pin 11, and a second output. Pin 12.
  • the power management unit 9 is adapted to be triggered when the contactless interface 4 receives an active command from the autonomous controller C2 (ie, an effective electromagnetic signal obtained by the antenna 7), logically processes the command, and generates a field detection Signal and power signals.
  • the field detection signal is output to the main controller C1 through the first output pin 11, and the main controller C1 is woken up after receiving the field detection signal, and is notified that the contactless access is in progress, the main The controller C1 monitors the contactless access performed in the storage device s6.
  • the power signal supplies power to some of the devices involved in the contactless access process, such as the associated circuitry in the processor 6.
  • the power management unit 9 may specifically include a power control circuit and a voltage stabilization circuit.
  • the field detection signal may simultaneously trigger other internal and external system operations while triggering the main controller C1.
  • the memory device s6 When the memory device s6 is performing a contactless instruction or the contactless interface 4 is performing a contactless read/write operation on the memory area, the memory device s6 can also pass the non-contact to the main controller C1 through the second output pin 12. Information that the instruction busy or contactless interface 4 is accessing to the storage area.
  • a memory device s7 as shown in FIG. 12 may be provided, including: a memory s6 and a main controller C1.
  • the storage device is a Bluetooth device, and the Bluetooth device is applicable to audio transmission.
  • the audio transmission module of the Bluetooth device mainly stores the program code of the transmission module in the NVM data memory external to the main chip.
  • the main chip loads the code in the NVM memory into the main core.
  • the internal SRAM, and run the program code thus requires that the data format in the NVM memory must conform to the code format requirements of the main chip.
  • the user needs to manually search and transmit the pairing verification information through the Bluetooth manual pairing method, and encrypt and establish a Bluetooth wireless connection between the mobile device and the Bluetooth audio transmission module.
  • the applicable Bluetooth audio transmission module is close to the mobile device integrated with the NFC TAG reader, and through the wireless connection conforming to the IS014443, IS015693 communication protocol,
  • the Bluetooth pairing verification information containing the current Bluetooth audio transmission module in the TAG is transmitted to the mobile device for establishing a Bluetooth wireless connection between the two parties.
  • the solution needs to add an NFC-compliant TAG tag chip in addition to the existing EEPROM data memory of the original Bluetooth audio transmission module.
  • the personalized ID information and configuration information for Bluetooth pairing need to be written twice by the contact interface readout and the contactless interface, and the TAG file is established through the external data path.
  • the Bluetooth device is configured based on the dual interface described in the present application, and the NFC Type 2 tag function and the Bluetooth audio transmission module program data storage function can be simultaneously implemented.
  • the system master microcontroller (equivalent to the main controller C1) can directly write the TAG data file conforming to the NFC near field communication tag data format by directly contacting the serial interface and writing the data and programs required by the system itself. Enter TAG.
  • the present invention has been disclosed in the preferred embodiments as described above, but it is not intended to limit the invention, and the present invention may be utilized by the method and technical contents disclosed above without departing from the spirit and scope of the invention.
  • the technical solutions make possible changes and modifications, and therefore, the scope of protection of the technical solutions of the present invention is not deviated from the present invention.

Abstract

The present invention relates to a device having a storage function, the device comprising: a first storage region adapted to store general data; a second storage region adapted to store label data; a contact interface adapted to interact with an external device; a non-contact interface adapted to interact with the external device; a system configuration region adapted to store system configuration data, the system configuration data comprising storage region access mode setting information; a processor adapted to control the contact interface to access the first storage region or the second storage region according to the storage region access mode setting information when the contact interface receives an instruction from the external device; the processor is also adapted to control the non-contact interface to access the first storage region or the second storage region according to the type of instruction received from the external device. The present invention can simultaneously access the data of different data formats stored in the device.

Description

具有存储功能的器件  Device with storage function
本申请要求于 2014 年 1 月 28 日提交中国专利局、 申请号为 201410042669.7、 发明名称为 "具有存储功能的器件"的中国专利申请的优先 权, 其全部内容通过引用结合在本申请中。  The present application claims priority to Chinese Patent Application No. 201410042669.7, the entire disclosure of which is hereby incorporated by reference in its entirety in its entirety in its entirety in
技术领域 Technical field
本发明涉及通信领域, 特别涉及一种具有存储功能的器件。  The present invention relates to the field of communications, and in particular, to a device having a storage function.
背景技术 Background technique
具有存储功能的器件中包括存储器及其主控制器, 传统的存储器包括: 静态存 4渚器(Static Random Access Memory, SRAM ); 动态随机存储器 ( Dynamic Random Access Memory , DRAM ); 电可擦可编程只读存储器(Electrically Erasable Programmable Read Only Memory, EEPROM ); 及, 非易失闪存 (比如, NOR Flash和 NAND Flash )。 这些存储器采用不同存储技术,并且具有不同总线接口和存储特性。但是, 他们的共同特点是通过直接电气连接的接口,也即接触式接口与所述主控制器 相连, 并通过所述接触式接口进行数据的读取或存储。 随着射频识别技术 ( Radio Frequency Identification , RFID ) 的发展, 采 用 LF、 HF、 UHF等不同射频频段 RFID也得到了广泛的应用, 其中: LF代 表低频射频, 在 125KHz左右; HF代表高频射频, 在 13.56MHz左右; UHF 代表超高频射频, 在 860至 960MHz范围之内。 射频读写器通过射频接口, 也即非接触式接口, 在无电气连接、 非接触的 情况下对射频标签中存储的数据进行读取或存储, 射频标签一般采用 EEPROM类型的存储器。 对于接触式接口的存储器而言, 如果需要交换数据, 必须通过 PCB焊接 或电缆连接的方式进行接口之间的有线连接,故一般无法在整机设备中与外界 直接交换数据, 一般通过与主控制器之间的交互实现与外界的数据交换行; 而 对于非接触式接口的射频标签, 由于数据交换必须通过读卡器进行,故在无内 置射频读写器的整机设备中, 射频标签无法与设备的主控制器交换数据。 为了解决这一问题, 近年有厂商推出了一种具有存储功能的器件, 其同时 具备接触式接口与非接触式接口的 EEPROM存储器件, 如 STM的 M24LR64 以及在 NXP 200780030172.1专利中提到的双接口存储器。 这些双接口存储器 件, 可以通过接触式接口, 如 IIC接口, 或非接触式接口, 如 IS015693 HF射 频接口访问整个存储空间, 并可根据权限设置,设定只有接触接口可以访问的 区域、 只有非接触接口可以访问的区域、 或两个接口都可以访问的区域。 由此 可以以很低的成本, 实现整机设备与外部射频读写器的数据交换。 在现有的双接口器件的方案中,存储空间的逻辑映射是——对应的, 即如 M24LR64, 接触式接口寻址的 64kbit EEPROM 空间与非接触式接口寻址的 64kbit EEPROM是一致的。这一特性使得现有的双接口器件,在接触式接口与 非接触式接口对于数据格式都有各自规定的情况下,无法兼顾两个接口的同时 正常工作。 例如: 在一蓝牙音频传输器件中, 主芯片外挂的 EEPROM存储器中主要 存放传输模块的程序代码,在上电后,主芯片从最低位地址开始,将 EEPROM 存储器中的代码全部载入主芯片内部的 SRAM, 并运行程序代码, 由此要求 EEPROM存储器中的数据格式必须符合主芯片的代码格式要求。 而当这一蓝 牙音频传输器件也要支持通过 NFC 实现蓝牙配对功能时, 如果采用同一个 EEPROM存储器实现 NFC Type 2标签功能, 则要求双接口 EEPROM存储器 中的数据格式必须符合近场通讯标签数据格式的定义。 由此可见,在现有方案 中,无法通过一片双接口存储器完成系统自定义数据格式的数据和标准化的近 场通讯标签数据格式数据的同时存储。 The memory-capable device includes a memory and a host controller thereof. The conventional memory includes: a static random access memory (SRAM); a dynamic random access memory (DRAM); an electrically erasable programmable Electrically Erasable Programmable Read Only Memory (EEPROM); and, non-volatile flash memory (eg, NOR Flash and NAND Flash). These memories use different memory technologies and have different bus interfaces and memory characteristics. However, their common feature is that they are connected to the main controller via an interface that is directly electrically connected, that is, a contact interface, and data is read or stored through the contact interface. With the development of Radio Frequency Identification (RFID), RFID is also widely used in different RF bands such as LF, HF, UHF, etc. Among them: LF stands for low frequency radio frequency, about 125KHz; HF stands for high frequency radio frequency, At around 13.56 MHz; UHF stands for UHF RF, in the 860 to 960 MHz range. The RF reader reads or stores the data stored in the RF tag through the RF interface, that is, the non-contact interface. The RF tag generally uses an EEPROM type memory. For the memory of the contact interface, if data needs to be exchanged, the wired connection between the interfaces must be performed by means of PCB soldering or cable connection. Therefore, it is generally impossible to directly exchange data with the outside world in the whole device, generally through the main control. The interaction between the devices realizes the exchange of data with the outside world; and for the radio frequency tag of the contactless interface, since the data exchange must be performed by the card reader, there is no internal In the whole device of the RF reader, the RF tag cannot exchange data with the host controller of the device. In order to solve this problem, in recent years, some manufacturers have introduced a memory-capable device with an EEPROM memory device with a contact interface and a contactless interface, such as STM M24LR64 and the dual interface mentioned in the NXP 200780030172.1 patent. Memory. These dual-interface memory devices can access the entire storage space through a contact interface, such as an IIC interface, or a contactless interface, such as the IS015693 HF RF interface, and can be set according to the permission settings, only the area accessible by the contact interface, only non- The area that the contact interface can access, or the area that both interfaces can access. Therefore, data exchange between the whole device and the external RF reader can be realized at a low cost. In the existing dual interface device approach, the logical mapping of the memory space is - corresponding, ie, as M24LR64, the 64kbit EEPROM space addressed by the contact interface is identical to the 64kbit EEPROM addressed by the contactless interface. This feature makes the existing dual-interface devices, when the contact interface and the contactless interface have their own specifications for the data format, can not take into account the simultaneous operation of the two interfaces. For example, in a Bluetooth audio transmission device, the EEPROM memory external to the main chip mainly stores the program code of the transmission module. After power-on, the main chip starts from the lowest address and loads the code in the EEPROM memory into the main chip. The SRAM, and run the program code, thus requires that the data format in the EEPROM memory must conform to the code format requirements of the main chip. When this Bluetooth audio transmission device also supports the Bluetooth pairing function through NFC, if the same EEPROM memory is used to implement the NFC Type 2 tag function, the data format in the dual interface EEPROM memory must conform to the near field communication tag data format. Definition. It can be seen that in the existing solution, the data of the system customized data format and the simultaneous storage of the standardized near field communication tag data format data cannot be completed through one dual interface memory.
发明内容 Summary of the invention
本发明技术方案所解决的技术问题是,解决具有存储功能的器件中所存储 的不同数据格式的数据的同时访问。 为了解决上述技术问题, 本发明技术方案提供了一种具有存储功能的器 件, 包括: 第一存储区域, 适于存储通用数据; 第二存储区域, 适于存储标签数据; 接触式接口, 适于与外部器件进行交互; 非接触式接口, 适于与外部器件进行交互; 系统配置区域,适于存储系统配置数据, 所述系统配置数据包括存储区域 访问方式设定信息; 处理器,适于在所述接触式接口接收到来自外部器件的指令时,根据所述 存储区域访问方式设定信息控制所述接触式接口访问第一存储区域或第二存 储区域; 还适于在所述非接触式接口接收到来自外部器件的指令时,根据所述 指令的类型控制所述非接触式接口访问第一存储区域或第二存储区域。 可选的,所述存储区域访问方式设定信息包括指令类型和存储区域的对应 关系; 所述处理器包括: 第一处理子单元, 适于在所述来自外部器件的指令为第一指令类型时响 应, 并控制所述接触式接口对所述第一存储区域的访问; 适于在所述来自外部 器件的指令为第二指令类型时响应,并控制所述接触式接口对所述第二存储区 域的访问。 可选的,所述存储区域访问方式设定信息包括地址范围和存储区域的对应 关系; 所述处理器包括: 第一处理子单元,适于在所述来自外部器件的指令所携带的目标地址处于 第一地址范围时响应, 并控制所述接触式接口对所述第一存储区域的访问; 适 于在所述来自外部器件的指令所携带的目标地址处于第二地址范围时响应,并 控制所述接触式接口对所述第二存储区域的访问。 可选的,在所述第一存储区域中具有所述第二存储区域的镜像区域; 所述 存储区域访问方式设定信息包括所述镜像地址的指向; 所述处理器包括: 第一处理子单元,适于所述来自外部器件的指令所携带的目标地址处于所 述镜像区域的地址范围时响应,并基于所述镜像地址的指向控制所述接触式接 口对所述第一存储区域镜像区域的访问, 以实现对所述第二存储区域的访问。 可选的, 所述处理器包括: 第一处理子单元,适于在所述指令符合第一类规范时,控制所述非接触式 接口对所述第一存储区域进行访问; 第二处理子单元,适于在所述指令符合第二类规范时,控制所述非接触式 接口对所述第二存储区域进行访问。 可选的, 所述非接触式接口的访问遵循 IS014443或 IS015693通信协议, 所述第一类规范为私有指令, 所述第二类规范为 NFC TYPE2 TAG指令。 可选的, 所述处理器还包括: 接口仲裁子单元,适于对所述接触式接口和非接触式接口所接收指令的优 先级进行判断,根据所述优先级选通所述处理器和所述接触式接口或所述非接 触式接口的链路。 可选的, 所述具有存储功能的器件还包括: 保护位区域; 所述保护位区域 适于存储保护位的配置数据, 所述处理器还包括: 读写保护单元,适于根据所述保护位的配置数据对所述第一存储区域或第 二存储区域内存储位的访问进行权限管理。 可选的, 所述处理器还包括: 密码保护单元,适于对所述系统配置区域及保护位区域的配置数据改写进 行密码保护。 可选的, 所述具有存储功能的器件还包括: 天线,适于感知非接触场内的电磁信号, 当所述电磁信号为所述来自外部 器件的指令时, 所述非接触式接口接收该电磁信号。 可选的, 所述具有存储功能的器件还包括: 主控制器、 电源管理单元及第一输出管脚; 所述电源管理单元适于在所述非接触式接口接收到来自外部器件的指令 时被触发, 对该指令进行逻辑处理, 并产生场检测信号及电源信号; 所述第一输出管脚适于输出所述场检测信号至所述主控制器,以唤醒所述 主控制器。 可选的, 所述具有存储功能的器件还包括: 第二输出管脚; 所述第二输出管脚适于在所述处理器处理所述非接触式接口接收到来自 外部器件的指令时, 输出提示信号至所述主控制器。 可选的,所述提示信号为非接触式接口及处理器通道的占线信息或基于所 述非接触式接口对所述第一存储区域第二存储区域的访问信息。 本发明技术方案的有益效果至少包括: 本发明技术方案所提出的具有存储功能的器件能够在同时具备接触式接 口和非接触式接口的存储器中,实现系统自定义数据格式的通用数据与标准化 TAG 标签数据格式的标签数据的共存, 并可分别通过接触式接口和非接触式 接口对上述不同格式的存储数据进行同时访问,大大提高了现有存储器件与外 部设备的交互能力, 还筒化了整机设备的存储器数量, 降低了生产配置难度。 另夕卜, 本发明技术方案还可通过配置接触式接口或非接触接口, 灵活定义存储 器内存储标签数据的容量, 极大的丰富了整机设备基于双接口数据交换的功 能。 本发明技术方案通过增加可灵活配置的系统配置区域管理所述存储区域 访问方式,在保留原有接触与非接触接口对存储器进行存取功能的同时,特别 实现了接触式接口对存储不同数据格式数据的存储区域的同时访问。 本发明技术方案在传统的存储器件的存储区域上增设一块用于存储标签 数据的存储区域, 区别于现有技术的射频标签, 本发明技术方案的第二存储区 域不仅仅可通过非接触式接口被访问,还可通过接触式接口被访问。通过接触 式接口访问第二存储区域,且要实现接触式接口对第一存储区域和第二存储区 域的同时方法, 是具有难点的: 存储空间的逻辑映射是一一对应的, 第一存储 区域的存储空间与第二存储区域的存储空间相对于同一接口是对应一致的,当 接触式接口也可对第二存储区域进行访问时,存在存储区域的寻址问题。本发 明技术方案还通过存储区域访问方式的配置数据的设定,解决了这一难题。本 发明在不改变本发明技术方案器件通过非接触式接口对标签数据进行访问的 同时, 实现接触式接口对标签数据的访问。 在可选方案中,通过设定接触式接口接收到外部指令中指令类型和存储区 域的对应关系来定义所述存储区域访问方式: 在这种配置定义下,是采用符合 原接触式接口协议、但以区别于原接触式接口指令的新指令对第二存储区域进 行访问; 而采用原接触式接口指令对第一存储区域进行访问。 利用原接触式接 口指令及区别于原接触式接口指令的新指令建立指令类型与存储区域的对应 关系, 解决了接触式接口访问指令对存储区域的寻址问题。 在另一可选方案中,通过设定接触式接口接收到外部指令中地址范围和存 储区域的对应关系来定义所述存储区域访问方式: 在这种配置定义下, 采用符 合原接触接口协议、但以区别于原数据存储器中存储空间地址(对应第一存储 区域)的不同地址范围访问第二存储区域; 而采用原数据存储器中存储空间地 址访问第一存储区域。利用原数据存储器中存储空间地址及区别于原数据存储 器中存储空间地址的不同地址范围建立地址范围与存储区域的对应关系,解决 了接触式接口访问指令对存储区域的寻址问题。 在另一可选方案中,在第一存储区域中新增第二存储区域的镜像区域, 并 在存储区域访问方式设定信息中定义了所述镜像地址的指向,通过对第一存储 区域中镜像区域的访问, 实现第二存储区域的访问: 在符合原接触接口协议和 原接触接口指令的情况下, 直接通过在第一存储区域的寻址范围,基于镜像区 域对第二存储区域进行数据读写操作, 并且通过镜像区域映射地址的可配置, 灵活调整标签数据在第一存储区域中的镜像映射逻辑地址,满足标签数据与原 通用数据的共存, 并可对标签数据与原通用数据进行同时访问。 本发明技术方案的器件在以接触式接口对数据存储器存取功能、不影响非 接触接口标签数据的操作指令对第二存储区域的存取功能的同时,以不同于非 接触接口标签数据操作指令指令类型的专有非接触指令,实现非接触接口对第 一存储区域进行读写操作的功能。 在可选方案中: 本发明技术方案的器件还包括接口仲裁子单元,接口仲裁子单元能够对接 触式接口和非接触式接口的操作权限和优先级进行控制。 本发明技术方案的器件还包括保护位区域及读写保护单元,读写保护单元 能够根据所述保护位的配置数据对第一存储区域和第二存储区域的访问权限 进行控制。 本发明技术方案的器件还包括密码保护单元,所述密码保护单元能够对系 统配置区域及保护位区域的配置数据改写进行密码保护,从而提高器件系统安 全性。 The technical problem solved by the technical solution of the present invention is to solve the simultaneous access of data of different data formats stored in a device having a storage function. In order to solve the above technical problem, the technical solution of the present invention provides a device having a storage function, comprising: a first storage area, adapted to store general data; a second storage area adapted to store tag data; a contact interface adapted to interact with an external device; a contactless interface adapted to interact with an external device; a system configuration area adapted to store system configuration data, the system The configuration data includes storage area access mode setting information, and the processor is adapted to control the contact interface access according to the storage area access mode setting information when the contact interface receives an instruction from an external device. a storage area or a second storage area; further adapted to, when the non-contact interface receives an instruction from an external device, control the contactless interface to access the first storage area or the second storage area according to the type of the instruction . Optionally, the storage area access mode setting information includes a correspondence between the instruction type and the storage area; the processor includes: a first processing subunit, and the instruction is configured to be the first instruction type Responding to, and controlling access by the contact interface to the first storage area; adapted to respond when the instruction from the external device is the second instruction type, and controlling the contact interface to the second Access to the storage area. Optionally, the storage area access mode setting information includes a correspondence between an address range and a storage area; the processor includes: a first processing subunit, and is adapted to be a target address carried by the instruction from the external device. Responding to the first address range and controlling access by the contact interface to the first storage area; adapted to respond and control when the target address carried by the instruction from the external device is in the second address range Access by the contact interface to the second storage area. Optionally, the mirroring area of the second storage area is included in the first storage area; the storage area access mode setting information includes a direction of the mirroring address; The processor includes: a first processing subunit, configured to respond when the target address carried by the instruction from the external device is in an address range of the mirrored area, and control the contact based on the pointing of the mirrored address The interface accesses the mirror area of the first storage area to implement access to the second storage area. Optionally, the processor includes: a first processing subunit, configured to control the non-contact interface to access the first storage area when the instruction conforms to the first type of specification; And a unit, configured to control the non-contact interface to access the second storage area when the instruction conforms to the second type of specification. Optionally, the access of the contactless interface is in accordance with the IS014443 or IS015693 communication protocol, the first type of specification is a private instruction, and the second type of specification is an NFC TYPE2 TAG instruction. Optionally, the processor further includes: an interface arbitration subunit, configured to determine a priority of the received instruction of the contact interface and the contactless interface, and strobe the processor according to the priority The contact interface or the link of the contactless interface. Optionally, the device having the storage function further includes: a protection bit area; the protection bit area is adapted to store configuration data of the protection bit, and the processor further includes: a read/write protection unit, adapted to be according to the protection The bit configuration data performs rights management for access to the storage bits in the first storage area or the second storage area. Optionally, the processor further includes: a password protection unit, configured to perform password protection on the configuration data rewriting of the system configuration area and the protection bit area. Optionally, the device having a storage function further includes: an antenna adapted to sense an electromagnetic signal in the non-contact field, and when the electromagnetic signal is the instruction from the external device, the contactless interface receives the Electromagnetic signal. Optionally, the device having a storage function further includes: a main controller, a power management unit, and a first output pin; the power management unit is adapted to receive, when the contactless interface receives an instruction from an external device Triggered, logically processing the instruction, and generating a field detection signal and a power signal; the first output pin is adapted to output the field detection signal to the main controller to wake up the main controller. Optionally, the device having a storage function further includes: a second output pin; the second output pin is adapted to be when the processor processes the non-contact interface to receive an instruction from an external device, A prompt signal is output to the main controller. Optionally, the prompting signal is a busy information of the contactless interface and the processor channel or access information of the second storage area of the first storage area based on the contactless interface. The beneficial effects of the technical solution of the present invention include at least: the device with the storage function proposed by the technical solution of the present invention can implement general data and standardized TAG of the system customized data format in the memory with both the contact interface and the contactless interface. Coexistence of tag data in the tag data format, and simultaneous access to the storage data of the above different formats through the contact interface and the contactless interface, greatly improving the interaction capability between the existing storage device and the external device, and further The amount of memory of the whole device reduces the difficulty of production configuration. In addition, the technical solution of the present invention can also flexibly define the capacity of the tag data stored in the memory by configuring the contact interface or the non-contact interface, which greatly enriches the function of the dual-interface data exchange of the whole device. The technical solution of the present invention manages the access mode of the storage area by adding a flexible configuration system configuration area, and while retaining the original access and non-contact interface to access the memory, the contact interface is specially configured to store different data formats. Simultaneous access to the storage area of data. The technical solution of the present invention adds a storage area for storing tag data on the storage area of the conventional storage device, which is different from the prior art radio frequency tag, and the second storage area of the technical solution of the present invention A domain can be accessed not only through a contactless interface, but also through a contact interface. Accessing the second storage area through the contact interface, and implementing the simultaneous method of the contact interface to the first storage area and the second storage area is difficult: the logical mapping of the storage space is one-to-one correspondence, and the first storage area The storage space of the storage area and the storage area of the second storage area are correspondingly consistent with each other. When the contact interface can also access the second storage area, there is an addressing problem of the storage area. The technical solution of the present invention also solves this problem by setting the configuration data of the storage area access mode. The present invention realizes access of the tag data to the tag data while the device accesses the tag data through the contactless interface without changing the technical solution of the present invention. In an optional solution, the storage area access mode is defined by setting a correspondence between the instruction type and the storage area in the external instruction by setting the contact interface: under the configuration definition, adopting the original contact interface protocol, However, the second storage area is accessed by a new instruction different from the original contact interface instruction; and the first storage area is accessed by using the original contact interface instruction. The original contact interface instruction and the new instruction different from the original contact interface instruction establish the correspondence between the instruction type and the storage area, and solve the problem of addressing the storage area by the contact interface access instruction. In another implementation, the storage area access mode is defined by setting a correspondence between the address range and the storage area in the external command by setting the contact interface: under the configuration definition, adopting the original contact interface protocol, However, the second storage area is accessed by a different address range different from the storage space address (corresponding to the first storage area) in the original data storage; and the first storage area is accessed by using the storage space address in the original data storage. The correspondence between the address range and the storage area is established by using the storage space address in the original data storage and the different address ranges different from the storage space address in the original data storage, thereby solving the problem of addressing the storage area by the contact interface access instruction. In another implementation, the mirroring area of the second storage area is added to the first storage area, and the pointing of the mirroring address is defined in the storage area access mode setting information, by using the first storage area. Accessing the mirrored area, realizing access to the second storage area: in the case of conforming to the original contact interface protocol and the original contact interface instruction, directly performing data on the second storage area based on the mirrored area by the addressing range in the first storage area Read and write operations, and through the configurable address of the mirrored area mapping address, flexibly adjust the mirrored logical address of the label data in the first storage area, satisfy the coexistence of the label data and the original general data, and perform label data and the original universal data. Visit at the same time. The device of the technical solution of the present invention uses an access function of the data storage access function and the operation instruction of the non-contact interface tag data to the second storage area, and is different from the non-contact interface tag data operation instruction. A proprietary non-contact instruction of the instruction type that implements the function of the non-contact interface to read and write the first storage area. In an alternative, the device of the technical solution of the present invention further includes an interface arbitration subunit, and the interface arbitration subunit can control the operation authority and priority of the contact interface and the contactless interface. The device of the technical solution of the present invention further includes a protection bit area and a read/write protection unit, and the read/write protection unit can control access rights of the first storage area and the second storage area according to the configuration data of the protection bit. The device of the technical solution of the present invention further includes a password protection unit, and the password protection unit can perform password protection on the configuration data rewriting of the system configuration area and the protection bit area, thereby improving device system security.
附图说明 DRAWINGS
图 1为本发明技术方案提供的一种具有存储功能的器件的结构示意图; 图 2为本发明技术方案具有存储功能的器件的第一种具体结构的示意图; 图 3为本发明技术方案具有存储功能的器件的第二种具体结构的示意图; 图 4为本发明技术方案具有存储功能的器件的第三种具体结构的示意图; 图 5为本发明技术方案具有存储功能的器件的第四种具体结构的示意图; 图 6为本发明技术方案具有存储功能的器件的第五种具体结构的示意图; 图 7 为本发明技术方案具有存储功能的器件基于指令扩展的访问流程示 意图; 图 8 为本发明技术方案具有存储功能的器件基于地址范围扩展的访问流 程示意图; 图 9 为本发明技术方案具有存储功能的器件基于地址映射的访问流程示 意图; 图 10为本发明技术方案具有存储功能的器件访问过程中信号流转的示意 图; 图 11 为本发明技术方案具有存储功能的器件的第六种具体结构的示意 图; 图 12 为本发明技术方案具有存储功能的器件的第七种具体结构的示意 图。 1 is a schematic structural diagram of a device having a storage function according to the technical solution of the present invention; FIG. 2 is a schematic diagram of a first specific structure of a device having a storage function according to the technical solution of the present invention; FIG. 4 is a schematic diagram of a third specific structure of a device having a memory function according to the technical solution of the present invention; FIG. 5 is a fourth specific embodiment of a device having a memory function according to the technical solution of the present invention; FIG. 6 is a schematic diagram of a fifth specific structure of a device having a storage function according to the technical solution of the present invention; FIG. 7 is a schematic diagram of an access flow based on an instruction extension of a device having a storage function according to the technical solution of the present invention; Technical Solution A schematic diagram of an access flow based on an address range extension of a device having a storage function; FIG. 9 is a flow chart showing an access flow based on an address mapping of a device having a storage function according to a technical solution of the present invention; FIG. 10 is a schematic diagram of signal flow in a device access process with a storage function according to the technical solution of the present invention; FIG. 11 is a schematic diagram of a sixth specific structure of a device having a storage function according to the technical solution of the present invention; A schematic diagram of a seventh specific structure of a device having a memory function.
具体实施方式 detailed description
为了使本发明的目的、特征和效果能够更加明显易懂, 下面结合附图对本 发明的具体实施方式做详细说明。 在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是本发明 还可以采用其他不同于在此描述的方式来实施,因此本发明不受下面公开的具 体实施例的限制。 本发明技术方案提供一种如图 1所示的具有存储功能的器件 s, 包括: 第一存储区域(也作 Data Block ) 1 , 适于存储通用数据; 第二存储区域(也作 Tag Block ) 2, 适于存储标签数据。 所述存储区域具有数据存储能力;构成所述存储区域的存储介质可以是半 导体器件或磁性材料。所述存储区域最小的存储单位可以是一个双稳态半导体 电路或一个 CMOS晶体管或磁性材料的存储元, 它可存储一个二进制代码。 由若干个存储元组成一个存储单元, 一个或多个存储单元构成所述的存储区 域。 在本申请中,第二存储区域 2可以是基于第一存储区域 1所扩展得到的存 储区域,也可以是与除所述第一存储区域 1以外、与第一存储区域 1集成的额 外设置的存储区域,本申请默认第一存储区域 10和第二存储区域 11的结构关 系为前者,即可将所述第一存储区域 1和第二存储区域 2视为同一存储器中的 不同存储区域。 所述第一存储区域 1用于存储通用数据, 所述第二存储区域 2 用于存储标签数据。标签数据一般是由外部设备写入并供其他外部设备进行访 问的数据, 基于射频标签。 而所述通用数据则是由外部设备或器件 s所在系统 的内部控制器写入并可被除所述存储器以外的设备自由读写。在本申请中,所 述通用数据为除所述标签数据以外的数据。第一存储区域 1所存储的通用数据 和第二存储区域 2所存储的标签数据之间具有数据内容的独立性。 比如, 本发明提出的具有存储功能的器件 s基于常规串行非挥发存储器 (Non-Volatile Memory , NVM ) , 常规串行非挥发存储器的第一存储区域为所述 第一存储区域 1 , 其存储具有 NVM数据格式的通用数据, 常规串行非挥发存 储器的第二存储区域为所述第二存储区域 2 , 其存储具有不同于所述 NVM数 据格式的标签数据, 标签数据的存储格式基于射频标签, 可参照近场通讯标签 数据格式的定义。 继续参考图 1 , 所述具有存储功能的器件 s还包括: 接触式接口 (也作 Contact Interface ) 3 , 适于与外部器件进行交互; 非接触式接口 (也作 RF Rectifier and Interface ) 4, 适于与外部器件进行 交互。 接触式接口 3可以是与所述存储器类型对应的接触式串行数据接口 (如, 对应 EEPROM, 可以是 I2C接口, 对应 FLASH可以是 SPI接口), 而非接触 式接口 4也是与所述存储器对应,其是存储器基于接触式接口 3所增加的符合 特定通讯协议(如 IS014443、 IS015693等)规范的非接触式接口, 也可认为 是射频接口。本申请中,接触式接口 3能够接触地实现对第一存储区域 1和第 二存储区域 2的同时访问,非接触式接口 4能够非接触地实现对第一存储区域 1和第二存储区域 2的同时访问。 基于上述分析, 可以认为, 本申请具有存储功能的器件 s的存储器可看作 是在 NVM数据存储器芯片原数据存储器的基础上扩展出一块用于存储标签数 据的存储区域形成的。 区别于常规的射频标签, 常规射频标签仅能通过射频接 口对射频标签内的存储区域读写访问的功能,本申请可基于射频接口或其他非 接触式接口对第二存储区域 2的标签数据进行访问,还可基于接触式接口访问 第二存储区域 2的标签数据。 对所述第一存储区域 1和第二存储区域 2的定义中,由于存储区域的逻辑 映射是——对应的, 比如对 M24LR64存储器来说, 接触式接口寻址的 64kbit EEPROM存储区域与非接触式接口寻址的 64kbit EEPROM存储区域是一致 的。在现有技术中,因接触式接口与非接触式接口对于数据格式都有各自规定, 在接触式接口与非接触式接口分别工作(即两个接口并非同时工作)的情况下, 接触式接口依据其寻址特性寻址到第一存储区域,非接触式接口依据其寻址特 性寻址到第二存储区域, 而接触式接口无法对第二存储区域进行寻址, 非接触 式接口也无法对第一存储区域进行寻址。 在本申请中,接触式接口 3既可以对第一存储区域 1进行访问,也可以对 第二存储区域 2进行访问, 可参考以下技术内容实现: 接触式接口 3对第一存储区域 1和第二存储区域 2的同时访问,首先要解 决的是寻址问题。 继续参考图 1 , 所述具有存储功能的器件 s还包括: 系统配置区域 (也作 System Block ) 5; 及, 处理器(也作 Digital Block ) 6。 系统配置区域 5适于存储系统配置数据,所述系统配置数据包括存储区域 访问方式设定信息。存储区域访问方式设定信息实际设定了接触式接口 3所接 收到的外部器件的访问指令与寻址方式之间的对应关系。本申请所述的寻址方 式, 主要指基于原第一存储区域 1 , 扩展所述第一存储区域 1的寻址范围, 所 述寻址范围的扩展包括对访问指令的扩展、对存储区域地址范围的扩展及对存 储区域本身进行关联关系的扩展。 在对访问指令的扩展的设定方式中, 所述存储区域访问方式设定信息包 括: 指令类型; 指令类型和存储区域的对应关系。 对应这种存储区域访问方式的设定,接触式接口 3接收到访问指令(接触 式串行接口指令)的模式至少有两种, 不同的接触式接口指令, 对应不同的存 储区域, 比如, 对于第一接触式接口指令, 其对应第一存储区域 1 , 其指令所 携带的地址指向所述第一存储区域 1的地址范围, 对于第二接触式接口指令, 其对应第二存储区域 2, 其指令所携带的地址指向所述第二存储区域 2的地址 范围。 在对存储区域地址范围的扩展的设定方式中,所述存储区域访问方式设定 信息包括: 地址范围; 地址范围和存储区域的对应关系。 所述地址范围包括原第一地址范围和第一地址范围的扩展部分; 其中, 所 述第一地址范围对应第一存储区域 1 , 第一地址范围的扩展部分对应第二存储 区域 2。对应这种存储区域访问方式的设定,接触式接口 3接收到访问指令(接 触式串行接口指令)的模式可以只有一种, 可以对第一存储区域 1和第二存储 区域 2采用不同的地址范围模式, 即对第一存储区域 1对应原第一地址范围, 对第二存储区域 2对应第一地址范围的扩展部分,从而可将接触式接口 3接收 到的访问指令对应到不同的存储区域, 接触式接口 3由此可对第一存储区域 1 和第二存储区域 2进行同时访问。 在对存储区域本身进行关联关系的扩展的设定方式中,所述存储区域访问 方式设定信息包括: 地址范围, 包括镜像地址; 地址范围和存储区域的对应关系, 包括所述镜像地址的指向。 对应这种存储区域访问方式的设定,接触式接口 3所接收的指令仅需根据 其原指令进行寻址。所述地址范围都是对应第一存储区域的, 包括存储地址和 镜像地址, 所述存储地址对应所述通用数据的存储位置, 而所述镜像地址则通 过所述镜像地址的指向, 指向第二存储区域。 不同的是, 所述镜像地址的指向 是通过对应所述第一存储区域来指向所述第二存储区域的, 这种情况下,根据 这种存储区域访问方式的设定, 第一存储区域 1 内是具备镜像区域 (Tag Mirror ) 10的, 所述通用数据存储在除所述镜像区域 10以外的存储区域, 所 述镜像地址的指向是通过对应所述镜像区域 10来指向所述第二存储区域 2的。 在这种情况下,对所述第二存储区域 2的访问即是对所述镜像区域 10的访问。 在本申请中, 非接触式接口 4既可以对第一存储区域 1进行访问,也可以 对第二存储区域 2进行访问, 可参考以下技术内容实现: 非接触式接口 4对第一存储区域 1和第二存储区域 2的同时访问,主要涉 及对第一存储区域 1和第二存储区域 2中所存储不同数据格式的数据的访问问 题。此时, 可以设置所述非接触式接口 4所接收到的指令的指令类型与所述存 储区域的对应关系来辨析所述指令所指向的存储区域: 例如, 第一存储区域 1中通用数据的存储格式为 NVM数据格式, 而第二 存储区域 2中标签数据的存储格式为近场通讯标签数据格式;由于非接触式接 口 4的访问遵循 IS014443或 IS015693通信协议, 此时, 若非接触式接口 4 所接收到的指令格式为私有指令, 则可基于该指令直接读取第一存储区域 1 中的通用数据;若非接触式接口 4所接收到的指令的通信规范满足 NFC TYPE2 TAG指令, 则基于该指令直接读取第二存储区域 2中的标签数据。 所述私有 指令基于操作通用数据区(包括所述第一存储区域及系统配置区域)的自定义 数据格式,所述 NFC TYPE2 TAG指令基于近场通信标签数据格式且可用于操 作标签数据区 (包括第二存储区域)。 基于上述内容,具体可以通过处理器 6实现对所述接触式接口 3和非接触 式接口 4的控制访问:处理器 6适于在接触式接口 3接收到来自外部器件的指 令时,根据所述存储区域访问方式设定信息控制所述接触式接口 3访问第一存 储区域或第二存储区域;处理器 6还适于在非接触式接口 4接收到来自外部器 件的指令时,根据所述指令的类型控制所述非接触式接口 4访问第一存储区域 或第二存储区域。 基于上述具有存储功能的器件, 本发明技术方案的一则实施例如图 2 所 示, 是一种具有标签功能的双接口存储器。 图 2中, 存储器 si包括: 第一存储区域 1,、 第二存储区域 2、 接触式接口 3、 非接触式接口 4、 系 统配置区域 5及处理器 6。 其中, 本实施例的系统配置区域 5中存储的存储区 域访问方式设定信息, 支持对访问指令的扩展及对存储区域地址范围的扩展。 因而第一存储区域 1,不具备如第一存储区域 1中的镜像区域 10, 但第二存储 区域 2、 接触式接口 3、 非接触式接口 4、 系统配置区域 5及处理器 6的定义 方式同器件 s。 继续参考图 2, 设本实施例中, 存储器 si的外部器件包括主控制器 C1和 主控制器 C2, 其中, 主控制器 C1为微控制器, 其通过接触式接口 3访问对应 存储区域,主控制器 C2为用户 NFC非接触读写主控设备,其通过非接触式接 口 4访问对应存储区域。 接触式接口 3为接触式串行接口,在通过接触式接口 3访问时, 主控制器The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. In the following description, numerous specific details are set forth in order to provide a full understanding of the present invention, but the invention may be practiced otherwise than as specifically described herein. The technical solution of the present invention provides a device s having a storage function as shown in FIG. 1, comprising: a first storage area (also referred to as a Data Block) 1 , suitable for storing general data; and a second storage area (also referred to as a Tag Block) 2, suitable for storing tag data. The storage area has data storage capability; the storage medium constituting the storage area may be a semiconductor device or a magnetic material. The smallest storage unit of the storage area may be a bistable semiconductor circuit or a CMOS transistor or a magnetic material storage element that stores a binary code. A storage unit is composed of a plurality of storage units, and one or more storage units constitute the storage area. In the present application, the second storage area 2 may be a storage area expanded based on the first storage area 1 or may be an additional setting integrated with the first storage area 1 except the first storage area 1. In the storage area, the default relationship between the first storage area 10 and the second storage area 11 is the former, and the first storage area 1 and the second storage area 2 can be regarded as different storage areas in the same memory. The first storage area 1 is configured to store general data, and the second storage area 2 Used to store tag data. Tag data is generally data that is written by an external device and accessed by other external devices, based on the radio frequency tag. The general data is written by the internal controller of the system where the external device or device s is located and can be freely read and written by devices other than the memory. In the present application, the general data is data other than the tag data. The general data stored in the first storage area 1 and the tag data stored in the second storage area 2 have independence of data content. For example, the device s having the storage function proposed by the present invention is based on a conventional serial non-volatile memory (NVM), and the first storage area of the conventional serial non-volatile memory is the first storage area 1 and its storage Generic data having an NVM data format, the second storage area of the conventional serial non-volatile memory is the second storage area 2, which stores tag data having a format different from the NVM data format, and the storage format of the tag data is based on the radio frequency tag , can refer to the definition of the near field communication tag data format. With continued reference to FIG. 1, the device s having the storage function further includes: a contact interface (also referred to as a Contact Interface) 3, which is adapted to interact with an external device; a contactless interface (also as an RF Rectifier and Interface) 4, suitable Interact with external devices. The contact interface 3 may be a contact serial data interface corresponding to the memory type (eg, corresponding EEPROM, may be an I2C interface, and the corresponding FLASH may be an SPI interface), and the non-contact interface 4 is also corresponding to the memory. It is a non-contact interface based on the specification of the specific communication protocol (such as IS014443, IS015693, etc.) added by the memory based on the contact interface 3, and can also be regarded as a radio frequency interface. In the present application, the contact interface 3 can realize simultaneous access to the first storage area 1 and the second storage area 2 in a contact manner, and the contactless interface 4 can realize the pair of the first storage area 1 and the second storage area 2 in a contactless manner. Simultaneous access. Based on the above analysis, it can be considered that the memory of the device s having the storage function of the present application can be regarded as being formed by expanding a storage area for storing tag data on the basis of the original data memory of the NVM data memory chip. Different from the conventional radio frequency label, the conventional radio frequency label can only read and write access to the storage area in the radio frequency label through the radio frequency interface. The application can perform the label data of the second storage area 2 based on the radio frequency interface or other non-contact interface. Access, also based on contact interface access Tag data of the second storage area 2. In the definition of the first storage area 1 and the second storage area 2, since the logical mapping of the storage area is - corresponding, for example, for the M24LR64 memory, the 64kbit EEPROM storage area addressed by the contact interface is non-contact The 64kbit EEPROM memory area addressed by the interface is consistent. In the prior art, since the contact interface and the contactless interface have respective specifications for the data format, in the case where the contact interface and the contactless interface work separately (ie, the two interfaces do not work simultaneously), the contact interface Addressing to the first memory area according to its addressing characteristics, the contactless interface is addressed to the second memory area according to its addressing characteristics, and the contact interface cannot address the second memory area, and the contactless interface cannot Addressing the first storage area. In the present application, the contact interface 3 can access the first storage area 1 or the second storage area 2, and can be implemented by referring to the following technical content: the contact interface 3 pairs the first storage area 1 and the The simultaneous access of the second storage area 2, the first problem to be solved is the addressing problem. With continued reference to FIG. 1, the device s having the storage function further includes: a system configuration area (also referred to as a System Block) 5; and, a processor (also referred to as a Digital Block) 6. The system configuration area 5 is adapted to store system configuration data, and the system configuration data includes storage area access mode setting information. The storage area access mode setting information actually sets the correspondence relationship between the access command and the addressing mode of the external device received by the touch interface 3. The addressing mode described in the present application mainly refers to extending the addressing range of the first storage area 1 based on the original first storage area 1, and the extension of the addressing range includes an extension of the access instruction and an address of the storage area. The extension of the scope and the expansion of the association relationship with the storage area itself. In the extended setting manner of the access instruction, the storage area access mode setting information includes: an instruction type; a correspondence relationship between the instruction type and the storage area. Corresponding to the setting of the access mode of the storage area, the contact interface 3 receives the access instruction (contact There are at least two modes of the serial interface instruction. Different contact interface instructions correspond to different storage areas. For example, for the first contact interface instruction, it corresponds to the first storage area 1 and the address carried by the instruction. An address range pointing to the first storage area 1 corresponds to the second storage area 2, and the address carried by the instruction points to the address range of the second storage area 2. In the setting manner of the extension of the storage area address range, the storage area access mode setting information includes: an address range; a correspondence relationship between the address range and the storage area. The address range includes an extension of the original first address range and the first address range; wherein the first address range corresponds to the first storage area 1, and the extended portion of the first address range corresponds to the second storage area 2. Corresponding to the setting of the access mode of the storage area, the contact interface 3 may receive only one type of access command (contact serial interface command), and may adopt different modes for the first storage area 1 and the second storage area 2. The address range mode, that is, the first storage area 1 corresponds to the original first address range, and the second storage area 2 corresponds to the extended part of the first address range, so that the access instruction received by the contact interface 3 can be mapped to different storage. The area, the contact interface 3 can thus simultaneously access the first storage area 1 and the second storage area 2. In the extended setting manner of the association relationship between the storage area itself, the storage area access mode setting information includes: an address range, including a mirrored address; a correspondence between the address range and the storage area, including the pointing of the mirrored address . Corresponding to the setting of the access mode of the storage area, the command received by the contact interface 3 only needs to be addressed according to its original instruction. The address range is corresponding to the first storage area, and includes a storage address and a mirrored address, where the storage address corresponds to a storage location of the universal data, and the mirrored address is pointed to by the mirrored address. Storage area. The difference is that the pointing of the mirroring address is directed to the second storage area by corresponding to the first storage area. In this case, according to the setting of the access mode of the storage area, the first storage area 1 Inside is a mirrored area (Tag Mirror ) 10, the general-purpose data is stored in a storage area other than the mirrored area 10, and the pointing of the mirrored address is directed to the second storage area 2 by corresponding to the mirrored area 10. In this case, the access to the second storage area 2 is the access to the mirrored area 10. In the present application, the contactless interface 4 can access the first storage area 1 or the second storage area 2, and can be implemented by referring to the following technical content: the contactless interface 4 pairs the first storage area 1 Simultaneous access with the second storage area 2 mainly involves access problems to data stored in different data formats in the first storage area 1 and the second storage area 2. At this time, the corresponding relationship between the instruction type of the instruction received by the contactless interface 4 and the storage area may be set to discriminate the storage area pointed by the instruction: for example, the general data in the first storage area 1 The storage format is the NVM data format, and the storage format of the tag data in the second storage area 2 is the near field communication tag data format; since the access of the contactless interface 4 follows the IS014443 or IS015693 communication protocol, at this time, if the contactless interface 4 The received instruction format is a private instruction, and the general data in the first storage area 1 can be directly read based on the instruction; if the communication specification of the instruction received by the contactless interface 4 satisfies the NFC TYPE2 TAG instruction, The instruction directly reads the tag data in the second storage area 2. The private instruction is based on a custom data format that operates a general data area (including the first storage area and a system configuration area), the NFC TYPE2 TAG instruction is based on a near field communication tag data format and is operable to operate a tag data area (including Second storage area). Based on the above, the control access to the contact interface 3 and the contactless interface 4 can be realized by the processor 6: the processor 6 is adapted to receive the instruction from the external device when the contact interface 3 receives the instruction The storage area access mode setting information controls the touch interface 3 to access the first storage area or the second storage area; the processor 6 is further adapted to, when the contactless interface 4 receives an instruction from an external device, according to the instruction The type controls the contactless interface 4 to access the first storage area or the second storage area. Based on the above-described device having a memory function, an embodiment of the technical solution of the present invention, as shown in FIG. 2, is a dual interface memory having a tag function. In Figure 2, the memory si includes: The first storage area 1, the second storage area 2, the contact interface 3, the contactless interface 4, the system configuration area 5, and the processor 6. The storage area access mode setting information stored in the system configuration area 5 of the embodiment supports extension of the access command and extension of the storage area address range. Therefore, the first storage area 1 does not have the mirror area 10 as in the first storage area 1, but the second storage area 2, the contact interface 3, the contactless interface 4, the system configuration area 5, and the processor 6 are defined. Same device s. With reference to FIG. 2, in this embodiment, the external device of the memory si includes a main controller C1 and a main controller C2, wherein the main controller C1 is a microcontroller, and accesses the corresponding storage area through the contact interface 3, The controller C2 is a user NFC contactless read/write master device that accesses the corresponding storage area through the contactless interface 4. The contact interface 3 is a contact serial interface, and when accessed through the contact interface 3, the main controller
C1通过传输接触式串行数据 ( Serial Datel , Serial Date2 Serial Clk ) 的 连接总线对存储器 si输入指令, 接触式接口 3 (在具体实施过程中可以是串 行接口界面电路)对该指令进行接收解析, 并经处理器 6完成对数据的存取和 配置操作。 基于接触式接口 3, 处理器 6可以分别对存储器 si的第一存储区 域 Γ、第二存储区域 2及系统配置区域 5进行读写操作。处理器 6还可以对接 触式接口 3对第一存储区域 Γ、第二存储区域 2及系统配置区域 5的读写操作 设置访问权限。 在存储器 si中,如对应主控制器 C1实现对访问指令的扩展,则在存储器 si对应设定为对接收对第一存储区域 1,和第二存储区域 2的数据访问采用不 同的接触式串行接口指令的模式,并在系统配置区域 5中进行指令类型及指令 类型和存储区域的对应关系的相应设定。 此时,在主控制器 C1通过接触式接口 3对存储器 si进行访问时,主控制 器 C1可以通过不相同的接触式接口指令, 分别对第一存储区域 1,、 或第二存 储区域 2进行写和读操作。 在权限允许的条件下, 存储器 si的工作模式与常 规 NVM存储器相同,接触式接口 3对第二存储区域 2的操作等同于常规 NVM 存储器,也即类似于对第一存储区域 1,的操作,但对第二存储区域 2的访问需 使用扩展指令, 即只有基于扩展指令才能对第二存储区域 2进行访问。如果希 望在非接触模式下, 通过接触式接口 3使用标签功能, 则主控制器 C1对第二 存储区域 2写入的数据需要满足 NFC TYPE2 TAG的格式和数据要求,并基于 所述扩展指令实现接触式接口 3对标签数据的访问。 在存储器 si中,如对应主控制器 C1实现指令地址范围的扩展, 则存储器 si对第一存储区域 1,与第二存储区域 2采用不同的地址范围的模式, 并在系 统配置区域 5中进行相应设定,其中,指令中的地址范围为原第一地址范围时, 对应至第一存储区域 1,,指令中的地址范围为第一地址范围的扩展部分,则对 于至第二存储区域 2。 此时, 在接触式接口 3访问时, 主控制器 C1可以通过相同的接触式接口 3所传递的指令,分别以不同的目标地址直接对第一存储区域 Γ及第二存储区 域 2进行写和读操作。在权限允许的条件下,存储器 si的工作模式与常规 NVM 存储器相同,接触式接口 3对第一存储区域 1,的操作等同于常规 NVM存储器, 但需使用扩展地址范围。如果希望在非接触模式下,通过接触式接口 3使用标 签功能, 则主控制器 C1对第二存储区域 2写入的数据需要满足 NFC TYPE2 TAG的格式和数据要求。 继续参考图 2, 本实施例的存储器 si还包括: 天线 7, 适于感知非接触场 内的电磁信号, 当所述电磁信号为所述来自外部器件的指令时, 非接触式接口 7接收该电磁信号。 主控制器 C2则具备天线 C20, 在基于非接触式接口 4进行访问时, 主控 制器 C2是通过天线 C20与天线 7间非接触场的无线信号与非接触式接口 4进 行连接通信的。 非接触式接口 4具体可以是一种射频接口界面电路,其对天线 7接收到的 有效电磁信号进行调制解调, 并符合 IS014443或 IS015693通信协议。 其中, 非接触式接口 4将满足私有指令规范的指令直接用于第一存储区域 1,的读写 操作;非接触式接口 4和处理器 6还适用于接收符合 NFC TYPE2 TAG规范的 标签指令, 并基于所述标签指令直接对第二存储区域 2进行读写操作。 此时, 对第二存储区域 2的操作符合 NDEF ( NFC Data Exchange Format )技术规范 的要求。 基于存储器 sl , 本申请还提供一种如图 3所示的存储器件 s2, 包括图 2 的存储器 sl和上述主控制器 C1 , 主控制器 C2则为外部的用户设备。 本申请还提供一种如图 4所示的存储器 s3 , 存储器 s3也是一种具有标签 功能的双接口存储器。 图 4中, 存储器 s3包括: 第一存储区域 1、 第二存储区域 2、 接触式接口 3、 非接触式接口 4、 系统 配置区域 5及处理器 6。 其中, 本实施例的系统配置区域 5中存储的存储区域 访问方式设定信息, 支持对访问指令的扩展、对存储区域地址范围的扩展及对 存储区域本身进行关联关系的扩展, 第一存储区域 1、 第二存储区域 2、 接触 式接口 3、 非接触式接口 4、 系统配置区域 5及处理器 6的定义方式同器件 s。 继续参考图 4, 设本实施例中, 存储器 s3 的外部器件包括主控制器 Cl, 和主控制器 C2, 其中, 主控制器 C1,为微控制器, 其通过接触式接口 3访问 对应存储区域,主控制器 C2为用户 NFC非接触读写主控设备,其通过非接触 式接口 4访问对应存储区域。 主控制器 Cl,通过传输所述接触式串行数据( Serial Datel、 Serial Date2、 ...、C1 inputs instructions to the memory si through a connection bus that transmits Serial Datel (Serial Date2, Serial Date), and the contact interface 3 (which may be a serial interface interface circuit in a specific implementation process) receives and parses the instruction. And accessing and configuring the data by the processor 6. Based on the contact interface 3, the processor 6 can perform read and write operations on the first storage area Γ, the second storage area 2, and the system configuration area 5 of the memory si, respectively. The processor 6 can also set access rights to the read and write operations of the first storage area Γ, the second storage area 2, and the system configuration area 5 of the contact interface 3. In the memory si, if the extension of the access instruction is implemented by the corresponding main controller C1, the memory si is correspondingly set to use different contact strings for receiving data access to the first storage area 1 and the second storage area 2. The mode of the line interface instruction, and the corresponding setting of the instruction type and the correspondence relationship between the instruction type and the storage area are performed in the system configuration area 5. At this time, when the main controller C1 accesses the memory si through the contact interface 3, the main controller C1 can respectively perform the first storage area 1, or the second storage area 2 through different contact interface commands. Write and read operations. The memory si operates in the same mode as the conventional NVM memory, and the operation of the touch interface 3 on the second storage area 2 is equivalent to the conventional NVM memory, that is, similar to the operation of the first storage area 1, However, access to the second storage area 2 requires the use of an extended instruction, that is, access to the second storage area 2 is only possible based on the extended instruction. If It is expected that in the non-contact mode, the tag function is used through the contact interface 3, and the data written by the main controller C1 to the second storage area 2 needs to meet the format and data requirements of the NFC TYPE2 TAG, and the contact is implemented based on the extended instruction. Interface 3 access to tag data. In the memory si, if the extension of the instruction address range is implemented by the corresponding main controller C1, the memory si adopts a mode of different address ranges for the first storage area 1 and the second storage area 2, and is performed in the system configuration area 5. Corresponding setting, wherein when the address range in the instruction is the original first address range, corresponding to the first storage area 1, the address range in the instruction is an extended part of the first address range, and then to the second storage area 2 . At this time, when the contact interface 3 is accessed, the main controller C1 can directly write the first storage area Γ and the second storage area 2 with different target addresses through the instructions transmitted by the same contact interface 3. Read operation. The memory si operates in the same mode as the conventional NVM memory, and the operation of the contact interface 3 for the first memory area 1, is equivalent to the conventional NVM memory, but an extended address range is used. If it is desired to use the tag function through the contact interface 3 in the non-contact mode, the data written by the main controller C1 to the second storage area 2 needs to satisfy the format and data requirements of the NFC TYPE2 TAG. With continued reference to FIG. 2, the memory si of this embodiment further includes: an antenna 7 adapted to sense an electromagnetic signal in the non-contact field, and when the electromagnetic signal is the instruction from the external device, the contactless interface 7 receives the Electromagnetic signal. The main controller C2 is provided with an antenna C20. When access is made based on the non-contact interface 4, the main controller C2 communicates with the non-contact interface 4 via a wireless signal of a non-contact field between the antenna C20 and the antenna 7. The contactless interface 4 may specifically be a radio frequency interface interface circuit that modulates and demodulates the effective electromagnetic signal received by the antenna 7 and conforms to the IS014443 or IS015693 communication protocol. The contactless interface 4 directly uses the instruction that satisfies the private instruction specification for the read and write operations of the first storage area 1, and the contactless interface 4 and the processor 6 are also adapted to receive the label instruction conforming to the NFC TYPE2 TAG specification. And reading and writing the second storage area 2 directly based on the label instruction. At this time, the operation of the second storage area 2 conforms to the requirements of the NDEF (NFC Data Exchange Format) technical specification. Based on the memory sl, the present application further provides a storage device s2 as shown in FIG. 3, including the memory s1 of FIG. 2 and the above-mentioned main controller C1, and the main controller C2 is an external user equipment. The application also provides a memory s3 as shown in FIG. 4, which is also a dual interface memory with a tag function. In FIG. 4, the memory s3 includes: a first storage area 1, a second storage area 2, a contact interface 3, a contactless interface 4, a system configuration area 5, and a processor 6. The storage area access mode setting information stored in the system configuration area 5 of the embodiment supports extension of the access instruction, extension of the storage area address range, and extension of the association relationship of the storage area itself, and the first storage area. 1. The second storage area 2, the contact interface 3, the contactless interface 4, the system configuration area 5, and the processor 6 are defined in the same manner as the device s. With reference to FIG. 4, in this embodiment, the external device of the memory s3 includes a main controller C1 and a main controller C2, wherein the main controller C1 is a microcontroller, and accesses the corresponding storage area through the contact interface 3. The main controller C2 is a user NFC contactless read/write master device, which accesses the corresponding storage area through the contactless interface 4. The main controller C1 transmits the contact serial data (Serial Datel, Serial Date2, ...,
Serial Clk )对存储器 sl输入指令, 并基于接触式接口 3和处理器 6完成对存 储区域(第一存储区域 1、 第二存储区域 2及系统配置区域 5 ) 中的数据进行 存取和配置操作。处理器 6也可以对接触式接口 3对第一存储区域 Γ、第二存 储区域 2及系统配置区域 5的读写操作设置访问权限。 存储器 s3中的上述过程与存储器 sl是类似的, 不同之处在于: 主控制器 C1,还可基于系统配置区域 5对第一存储区域 1 中镜像区域 10 与第二存储区域 2的映射配置, 仅采用原主控制器 Cl,的访问指令进行存储区 域的访问, 即基于这种映射配置, 主控制器 C1,既不需要对其访问指令进行扩 展, 也不需要对其访问地址进行扩展。 当系统配置区域 5中的映射配置使能,处理器 6根据系统配置区域 5中配 置的镜像地址的指向, 在第一存储区域 1 内建立第二存储区域 2的镜像区域 10, 这具体可以在处理器 6中设置标签地址控制电路 60, 使用标签地址控制 电路 60响应于映射配置的使能,并在第一存储区域 1内建立所述镜像区域 10。 主控制器 Cl,可以直接依据第一存储区域对应的地址范围(包括所述存储 地址和所述镜像地址)访问第一存储区域 1的通用数据和第二存储区域 2的标 签数据, 其中, 基于所述镜像地址访问所述镜像区域 10, 对第二存储区域 2 的访问是通过对镜像区域 10进行读写操作实现的。 此时,接触式接口 3对第二存储区域 2的操作等同于常规 NVM存储器操 作。 如果希望在非接触模式下使用接触式接口 3 访问标签数据, 则主控制器 Cl,对该镜像区域 10写入的数据需要满足 NFC TYPE2 TAG的格式和数据要 求。 存储器 s3的其他相关内容可参考存储器 si的相关描述。 基于存储器 s3, 本申请还提供一种如图 5所示的存储器件 s4, 包括图 4 的存储器 s3和上述主控制器 Cl,, 主控制器 C2则为外部的用户设备。 基于上述具有存储功能的器件8、 si至 s4, 以下对处理器 6的结构做进一 步阐述: 基于存储器 s4的结构, 如图 6所示的存储器 s5中, 为了实现接触式地数 据访问, 处理器 6,包括: 常规存储器读写控制电路(NVM R/W ctrl ) 61。 当接触式接口 3获取访问信息,并依据处理器 6,的访问权限进行存储区域 的访问时, 通过常规存储器读写控制电路 61 , 完成存储区域数据的存取操作 和配置操作。 这对于第一存储区域 1 ( 1,)、 第二存储区域 2及系统配置区域 5 的访问都是适用的。 为了实现非接触式地数据访问, 基于非接触式接口 4, 处理器 6,包括: 第 一处理子单元及第二处理子单元。 第一处理子单元适于在所述指令信息符合第一类规范时,控制所述非接触 式接口 4对所述第一存储区域 1 ( Γ )进行访问。 符合所述第一类规范的指令 满足私有指令的定义,所述第一处理子单元的具体实现电路可以是所述常规存 储器读写控制电路 61。 不仅限于对第一存储区域 1 ( Γ )进行访问, 通过非接 触式接口 4及常规存储器读写控制电路 61 , 可以相同的访问方式对系统配置 区域 5实现接触式访问。 第二处理子单元适于在所述指令信息符合第二类规范时,控制所述非接触 式接口 4对所述第二存储区域 2进行访问。所述第一处理子单元的具体实现电 路可以是近场数据交换读写控制电路( NDEF NVM RAV Ctrl ) 62。 基于所述非 接触式接口 4及近场数据交换读写控制电路 62,存储器 s5能够接受符合 NFC TYPE2 TAG规范的访问指令, 并直接对第二存储区域 2进行写读操作。 为了解决存储器双接口对访问存储区域的访问沖突,处理器 6,还包括:接 口仲裁子单元 ( Interface Arbiter ) 63、 接口仲裁子单元 63适于对所述接触式接口 3和非接触式接口 4所接收指 令的优先级进行判断,根据所述优先级选通所述处理器 6,和所述接触式接口 3 或所述非接触式接口 4的链路。 为了实现存储器对访问存储区域的权限控制,处理器 6,还包括:读写保护 单元(Write Protect ) 64, 对应读写保护单元 64, 可以在存储器 s5的存储区域 中增设保护位区域 8, 用于存储保护位(Protect Bit ) 的配置数据。 在存储器 s5中, 保护位区域 8直接设置于系统配置区域 5。 读写保护单元 64适于根据所述保护位的配置数据对所述存储区域内的存 储位的访问进行权限管理。 所述存储区域包括第一存储区域 1 ( 1,)、 第二存储 区域 2及系统配置区域 5。 更为优选的, 处理器 6,还可以对保护位区域 8乃至系统系统配置区域 5 的改写进行密码保护。处理器 6,还包括: 密码保护单元(Password Protect ) 65。 密码保护单元 65适于对所述系统配置区域 5 (包括保护位区域 8 )的配置 数据改写进行密码保护。 存储器 s5中: 对于接触式访问过程, 经过接触式接口 3的指令解析后,接口仲裁子单元Serial Clk) inputs an instruction to the memory sl, and performs access and configuration operations on the data in the storage area (the first storage area 1, the second storage area 2, and the system configuration area 5) based on the contact interface 3 and the processor 6. . The processor 6 can also set access rights to the read and write operations of the first storage area Γ, the second storage area 2, and the system configuration area 5 of the contact interface 3. The above process in the memory s3 is similar to the memory sl, except that the main controller C1 can also configure the mapping between the mirrored area 10 and the second storage area 2 in the first storage area 1 based on the system configuration area 5. Only the access command of the original main controller C1 is used to access the storage area. That is, based on this mapping configuration, the main controller C1 does not need to expand its access instruction or expand its access address. When the mapping configuration in the system configuration area 5 is enabled, the processor 6 establishes the mirroring area 10 of the second storage area 2 in the first storage area 1 according to the pointing of the mirroring address configured in the system configuration area 5, which may be specifically A tag address control circuit 60 is provided in the processor 6, using tag address control The circuit 60 is responsive to the enabling of the mapping configuration and establishes the mirrored area 10 within the first storage area 1. The main controller C1 can directly access the general data of the first storage area 1 and the tag data of the second storage area 2 according to the address range corresponding to the first storage area (including the storage address and the mirror address), where The mirroring address accesses the mirroring area 10, and the access to the second storage area 2 is implemented by performing read and write operations on the mirroring area 10. At this time, the operation of the touch interface 3 on the second storage area 2 is equivalent to the conventional NVM memory operation. If it is desired to access the tag data using the touch interface 3 in the non-contact mode, the main controller C1, the data written to the mirror area 10 needs to meet the format and data requirements of the NFC TYPE2 TAG. Other relevant content of the memory s3 can be referred to the relevant description of the memory si. Based on the memory s3, the present application further provides a storage device s4 as shown in FIG. 5, including the memory s3 of FIG. 4 and the above-mentioned main controller C1, and the main controller C2 is an external user equipment. Based on the above-mentioned devices 8, si to s4 having a memory function, the structure of the processor 6 is further explained below: Based on the structure of the memory s4, in the memory s5 shown in FIG. 6, in order to realize contact data access, the processor 6, including: conventional memory read and write control circuit (NVM R / W ctrl) 61. When the contact interface 3 acquires the access information and accesses the storage area according to the access authority of the processor 6, the access operation and the configuration operation of the storage area data are completed by the conventional memory read/write control circuit 61. This is applicable to the access of the first storage area 1 (1), the second storage area 2, and the system configuration area 5. In order to achieve contactless data access, based on the contactless interface 4, the processor 6 includes: a first processing subunit and a second processing subunit. The first processing subunit is adapted to control the contactless interface 4 to access the first storage area 1 ( Γ ) when the instruction information conforms to the first type of specification. The instructions conforming to the first type of specification satisfy the definition of the private instruction, and the specific implementation circuit of the first processing subunit may be the conventional memory read and write control circuit 61. Not only access to the first storage area 1 ( Γ ), but also through non-connection The touch interface 4 and the conventional memory read/write control circuit 61 can implement contact access to the system configuration area 5 in the same access mode. The second processing subunit is adapted to control the contactless interface 4 to access the second storage area 2 when the instruction information conforms to the second type of specification. The specific implementation circuit of the first processing subunit may be a near field data exchange read/write control circuit (NDEF NVM RAV Ctrl ) 62. Based on the contactless interface 4 and the near field data exchange read/write control circuit 62, the memory s5 can accept an access instruction conforming to the NFC TYPE2 TAG specification and directly perform a write operation on the second storage area 2. In order to solve the access conflict of the memory dual interface to the access storage area, the processor 6 further includes: an interface arbitration sub-unit 63, the interface arbitration sub-unit 63 is adapted to the contact interface 3 and the contactless interface 4 The priority of the received command is determined, and the processor 6 and the link of the contact interface 3 or the contactless interface 4 are gated according to the priority. In order to implement the access control of the memory to the storage area, the processor 6 further includes: a read and write protection unit (Write Protect) 64, corresponding to the read/write protection unit 64, and a protection bit area 8 may be added in the storage area of the memory s5. The configuration data for the Protect Bit (Protect Bit). In the memory s5, the protection bit area 8 is directly disposed in the system configuration area 5. The read/write protection unit 64 is adapted to perform rights management on access of the storage bits in the storage area according to the configuration data of the protection bits. The storage area includes a first storage area 1 (1), a second storage area 2, and a system configuration area 5. More preferably, the processor 6 can also password protect the rewriting of the protection bit area 8 or the system system configuration area 5. The processor 6 further includes: a password protection unit (Password Protect) 65. The password protection unit 65 is adapted to password protect the configuration data rewriting of the system configuration area 5 (including the protection bit area 8). In the memory s5: for the contact access process, after the instruction of the contact interface 3 is parsed, the interface arbitration subunit
63优先处理接触式指令, 此时, 开启处理器 6,与接触式接口 3的链路, 关闭 处理器 6,与非接触式接口 4的链路, 而读写保护单元 64则根据保护位区域 8 的配置数据对指令进行控制,排除不具有访问权限的指令,使常规存储器读写 控制电路 61基于具备访问权限的指令完成对数据存取操作和配置操作。 对于非接触式访问过程, 经过非接触式接口 4的指令解析后,接口仲裁子 单元 63优先处理非接触式指令, 此时, 开启处理器 6,与非接触式接口 4的链 路, 关闭处理器 6,与接触式接口 3的链路, 而读写保护单元 64则根据保护位 区域 8的配置数据对指令进行控制,排除不具有访问权限的指令,使常规存储 器读写控制电路 61基于具备访问权限的通用指令(该指令满足私有指令的定 义)完成对通用数据或配置数据的存取操作和配置操作,使近场数据交换读写 控制电路 62基于具备访问权限的标签指令(符合 NFC TYPE2 TAG协议规范 ) 完成对标签数据的存取操作和配置操作。 当然, 上述处理器 6,的配置方式对于具有存储功能的器件 s、 si至 s4都 是适用的。 处理器 6,的上述结构也可以满足选择性适用。 基于图 6所示存储器 s5的结构, 参考图 7, 本申请给出了一则使用对访 问指令的扩展方式对所述存储区域进行访问的流程: 当访问开始时, 接口仲裁子单元 63首先判断接口的操作权限, 若接触式 接口 3具备优先级, 则当接触式接口 3接收到访问指令及访问地址信息,接触 式访问通路被开启, 非接触式访问通路被关闭。接触式接口 3对接收到的访问 指令及访问地址信息进行解析, 并根据扩展指令判断访问的是通用数据 (第一 存储区域 1或系统配置区域 5 ) , 还是标签数据 (第二存储区域 2 ); 若扩展指 令对应第一存储区域的通用数据, 且根据读写保护单元 64该指令具备访问权 限,则根据访问地址使用 NVM数据格式对对应该地址的存储区域进行读写响 应; 若扩展指令对应第二存储区域的标签数据, 且根据读写保护单元 64该指 令具备访问权限,则根据访问地址使用近场通信数据格式对对应该地址的存储 区域进行读写响应。 若非接触式接口 4具备优先级,则当非接触式接口 4接收到访问指令及访 问地址信息, 非接触式访问通路被开启, 接触式访问通路被关闭。 非接触式接 口 4对接收到的访问指令及访问地址信息进行解析,并根据指令类型判断访问 的是通用数据(第一存储区域 1或系统配置区域 5 ), 还是标签数据(第二存 储区域 2 ); 若指令类型对应第一存储区域, 且根据读写保护单元 64该指令具 备访问权限, 则根据访问地址使用 NVM数据格式对对应该地址的存储区域进 行读写响应; 若指令类型对应第二存储区域的标签数据,且根据读写保护单元 64 该指令具备访问权限, 则根据访问地址使用近场通信数据格式对对应该地 址的存储区域进行读写响应。 基于图 6所示存储器 s5的结构, 参考图 8, 本申请也给出了一则使用对 存储区域地址范围的扩展方式对所述存储区域进行访问的流程: 当访问开始时, 接口仲裁子单元 63首先判断接口的操作权限, 若接触式 接口 3具备优先级, 则当接触式接口 3接收到访问指令及访问地址信息,接触 式访问通路被开启, 非接触式访问通路被关闭。接触式接口 3对接收到的访问 指令及访问地址信息进行解析,并根据扩展的地址范围判断访问的是通用数据 (第一存储区域 1或系统配置区域 5 ), 还是标签数据(第二存储区域 2 ); 若 地址信息对应原地址范围, 则对应第一存储区域的通用数据, 此时若根据读写 保护单元 64该指令具备访问权限, 则根据该地址使用 NVM数据格式对对应 该地址的存储区域进行读写响应; 若地址信息对应扩展部分的地址范围, 则对 于第二存储区域的标签数据, 此时若根据读写保护单元 64该指令具备访问权 限,则根据访问地址使用近场通信数据格式对对应该地址的存储区域进行读写 响应。 其他访问内容可参考图 7访问流程的相关论述。 基于图 6所示存储器 s5的结构, 参考图 9, 本申请还给出了一则使用存 储区域本身进行关联关系的扩展的方式对所述存储区域进行访问的流程: 当访问开始时, 接口仲裁子单元 63首先判断接口的操作权限, 若接触式 接口 3具备优先级, 则当接触式接口 3接收到访问指令及访问地址信息,接触 式访问通路被开启, 非接触式访问通路被关闭。接触式接口 3对接收到的访问 指令及访问地址信息进行解析, 并根据地址范围判断访问的是通用数据 (第一 存储区域 1或系统配置区域 5 ) , 还是映射数据 (映射数据对应镜像区域 10, 对映射数据的访问实现了对标签数据的访问); 若地址信息对应第一存储区域 除镜像区域以外的区域, 则是对通用数据的访问, 此时若根据读写保护单元 64该指令具备访问权限,则根据该地址使用 NVM数据格式对对应该地址的存 储区域进行读写响应; 若地址信息对应第一存储区域的镜像区域, 则是对标签 数据的方法, 此时若根据读写保护单元 64该指令具备访问权限, 则根据访问 地址使用近场通信数据格式对对应该地址的存储区域进行读写响应。 其他访问内容可参考图 7访问流程的相关论述。 基于上述访问过程,本申请还提供了一种如图 10所示的信号流转示意图, 揭露了在对本申请存储器件进行访问时存储器件内的信号流转关系: 接口仲裁子单元对接触式接口或非接触式接口进行优先级设定及访问控 制, 其通过仲裁信号通知处理器, 开启与接触式接口之间的处理器链路, 还是 开启与非接触式接口之间的处理器链路。 接触式接口接收的访问信息包括指令信息、地址信息及访问数据 (带写入 的信息或获取数据); 接触式接口的控制电路对该访问信息进行译码、 逻辑控 制,并在开启标签映射模式下使用标签地址控制电路对对应标签数据的镜像地 址进行标签地址控制。 上述过程能够判断出访问的存储区域,并输出地址及访问数据至常规存储 器读写控制电路进行访问配置。在对存储区域进行访问前,读写保护单元对数 据(包括配置数据、 通用数据及标签数据)均进行权限保护, 并对照系统配置 区域的保护位区域, 根据读写保护信号进行权限判断。 权限通过时, 根据地址 及访问数据的信息对存储区域(包括第一存储区域、第二存储区域及系统配置 区域)进行访问。 系统配置区域的配置数据,特别是保护位区域的配置数据可以依据上述方 式进行改写,但是这种改写可以基于密码保护单元特别地进行密码保护。此时, 不仅要经过读写保护信号的权限判断, 也要经过密码保护信号的密码匹配验 证。 二者均通过时, 可基于此时的地址及访问数据进行配置数据的改写。 非接触式接口接收的访问信息也包括指令信息、地址信息及访问数据; 非 接触式接口的控制电路对该访问信息进行译码、逻辑控制, 并根据指令类型判 断出访问的存储区域。 对于访问的存储区域为第一存储区域或系统配置区域, 输出地址及访问数据至常规存储器读写控制电路进行访问配置;对于访问的存 储区域为第二存储区域,输出地址及访问数据至近场数据交换读写控制电路进 行访问配置。 在对存储区域进行访问前, 其权限、 密码保护等信号流转过程同 上所述, 此处不再赘述。 基于存储器 s5 , 本申请还提供一种如图 11所示的存储器 s6, 与存储器 s5 不同的是, 存储器 s6还包括: 电源管理单元(Power Management ) 9、 第一输 出管脚 11及第二输出管脚 12。 电源管理单元 9适于在所述非接触式接口 4接收到来自主控制器 C2的有 效指令(也即通过天线 7获得的有效电磁信号)时被触发, 对该指令进行逻辑 处理, 并产生场检测信号及电源信号。 所述场检测信号通过第一输出管脚 11 被输出至主控制器 Cl,, 主控制器 C1,在接收到所述场检测信号后, 被唤醒, 并被告知非接触式访问正在进行, 主控制器 Cl,对存储器件 s6 内进行的非接 触式访问进行监控。 所述电源信号则对非接触式访问过程中涉及的部分器件, 比如处理器 6,中的相关电路进行供电。 电源管理单元 9具体可以包括电源控制电路和稳压电路,所述场检测信号 在触发所述主控制器 C1,的同时, 也可同时触发内外部的其他系统操作。 当存储器件 s6正在执行非接触式指令或非接触式接口 4正在对存储区域 进行非接触式读写操作时, 存储器件 s6还可通过第二输出管脚 12向主控制器 Cl,传递非接触式指令忙或非接触式接口 4正在对所述存储区域进行访问的信 息。 基于存储器 s6, 可以提供如图 12所示的存储器件 s7, 包括: 存储器 s6 及主控制器 Cl,。 在一则本申请的应用例中,存储器件为一蓝牙设备, 该蓝牙设备可适用于 音频传输。 该蓝牙设备的音频传输模块主芯片外挂的 NVM数据存储器中主要存放传 输模块的程序代码, 在上电后, 主芯片将 NVM存储器中的代码全部载入主芯 片内部的 SRAM, 并运行程序代码, 由此要求 NVM存储器中的数据格式必须 符合主芯片的代码格式要求。用户需要通过蓝牙手动配对方法,搜索并传送配 对验证信息, 加密建立移动设备与蓝牙音频传输模块之间的蓝牙无线连接。 为更方便、可靠的建立移动设备和蓝牙音频传输模块之间的连接, 可适用 的蓝牙音频传输模块靠近集成有 NFC TAG读卡器的移动设备, 通过符合 IS014443, IS015693通讯协议的无线连接, 将 TAG中含有当前蓝牙音频传输 模块的蓝牙配对验证信息传送到移动设备, 用于建立双方蓝牙无线连接。该方 案需在原蓝牙音频传输模块既有的 EEPROM数据存储器以外, 另外增加一个 符合 NFC规范的 TAG标签芯片。 用于蓝牙配对的个性化 ID信息和配置信息 需通过接触接口读出和非接触接口写入两次操作,通过外部数据通路完成 TAG 文件的建立。 基于本申请中所述的双接口配置该蓝牙设备, 可同时实现 NFC Type 2标 签功能和蓝牙音频传输模块程序数据存储功能。 系统主控微控制器(相当于主 控制器 C1 )可直接通过接触串行接口, 在写入系统自身所需的数据和程序的 同时, 将符合 NFC近场通讯标签数据格式的 TAG数据文件写入 TAG。 本发明虽然已以较佳实施例公开如上,但其并不是用来限定本发明,任何 本领域技术人员在不脱离本发明的精神和范围内,都可以利用上述揭示的方法 和技术内容对本发明技术方案做出可能的变动和修改, 因此, 凡是未脱离本发 改、 等同变化及修饰, 均属于本发明技术方案的保护范围。 63 prioritizes the contact instruction, at this time, the processor 6 is turned on, and the link with the contact interface 3 is turned off. The processor 6, the link with the contactless interface 4, and the read/write protection unit 64 controls the instruction according to the configuration data of the protection bit area 8, excluding the instruction without the access authority, and causes the conventional memory read/write control circuit 61. Data access operations and configuration operations are completed based on instructions with access rights. For the contactless access process, after the instruction of the contactless interface 4 is parsed, the interface arbitration sub-unit 63 preferentially processes the contactless instruction. At this time, the processor 6 is turned on, and the link with the contactless interface 4 is turned off. 6, the link with the contact interface 3, and the read/write protection unit 64 controls the instruction according to the configuration data of the protection bit area 8, excluding the instruction without the access authority, so that the conventional memory read/write control circuit 61 is based on The general-purpose instruction of the access authority (which satisfies the definition of the private instruction) completes the access operation and configuration operation on the general-purpose data or the configuration data, so that the near-field data exchange read-write control circuit 62 is based on the tag instruction having the access authority (in accordance with NFC TYPE2) TAG Protocol Specification) Completes access and configuration operations for tag data. Of course, the configuration of the processor 6 described above is applicable to the devices s, si to s4 having the storage function. The above structure of the processor 6, can also be adapted to be selectively applicable. Based on the structure of the memory s5 shown in FIG. 6, referring to FIG. 7, the present application provides a flow for accessing the storage area using an extension manner of the access instruction: When the access starts, the interface arbitration sub-unit 63 first determines Operation authority of the interface. If the contact interface 3 has priority, when the contact interface 3 receives the access instruction and the access address information, the contact access path is opened, and the contactless access path is closed. The contact interface 3 parses the received access command and the access address information, and determines whether the accessed general data (the first storage area 1 or the system configuration area 5) or the tag data (the second storage area 2) is accessed according to the extended instruction. If the extended instruction corresponds to the general data of the first storage area, and the access authority has the access authority according to the read/write protection unit 64, the NVM data format is used to read and write the response to the storage area corresponding to the address; The tag data of the second storage area, and the read/write protection unit 64 has the access authority according to the instruction, and then reads and writes the storage area corresponding to the address according to the access address using the near field communication data format. If the contactless interface 4 has priority, when the contactless interface 4 receives the access command and the access address information, the contactless access path is opened, and the contact access path is closed. The contactless interface 4 parses the received access command and access address information, and determines access according to the type of the command. Is the general data (the first storage area 1 or the system configuration area 5) or the label data (the second storage area 2); if the instruction type corresponds to the first storage area, and the instruction is provided according to the read/write protection unit 64, Then, the NVM data format is used to read and write responses to the storage area corresponding to the address according to the access address; if the instruction type corresponds to the tag data of the second storage area, and the access authority is provided according to the read/write protection unit 64, the access address is used according to the access address. The near field communication data format reads and writes responses to the storage area corresponding to the address. Based on the structure of the memory s5 shown in FIG. 6, referring to FIG. 8, the present application also provides a flow for accessing the storage area by using an extension manner of the storage area address range: When the access starts, the interface arbitration subunit 63 first determines the operation authority of the interface. If the contact interface 3 has priority, when the contact interface 3 receives the access instruction and the access address information, the contact access path is opened, and the contactless access path is closed. The contact interface 3 parses the received access command and the access address information, and determines whether the accessed general data (the first storage area 1 or the system configuration area 5) or the tag data (the second storage area) is accessed according to the extended address range. 2); if the address information corresponds to the original address range, corresponding to the general data of the first storage area, if the access authority is provided according to the instruction by the read/write protection unit 64, the storage of the corresponding address is performed according to the address using the NVM data format. If the address information corresponds to the address range of the extended portion, then for the tag data of the second storage area, if the access authority is provided according to the instruction by the read/write protection unit 64, the near field communication data is used according to the access address. The format reads and writes the storage area corresponding to the address. For other access content, refer to the related discussion of the access process in Figure 7. Based on the structure of the memory s5 shown in FIG. 6, referring to FIG. 9, the present application also provides a process for accessing the storage area by using the storage area itself to expand the association relationship: When the access starts, the interface arbitrates The sub-unit 63 first determines the operation authority of the interface. If the contact interface 3 has the priority, when the contact interface 3 receives the access instruction and the access address information, the contact access path is opened, and the contactless access path is closed. The contact interface 3 parses the received access command and the access address information, and determines whether the accessed general data (the first storage area 1 or the system configuration area 5) or the mapping data (the mapping data corresponds to the mirror area 10) according to the address range. Access to the mapping data implements access to the tag data); if the address information corresponds to the first storage area The area other than the mirroring area is access to the general data. If the command is provided according to the instruction by the read/write protection unit 64, the NVM data format is used to read and write the storage area corresponding to the address according to the address; If the address information corresponds to the mirrored area of the first storage area, it is a method for label data. If the access authority is provided according to the instruction by the read/write protection unit 64, the near field communication data format is used according to the access address. The storage area is readable and writable. For other access content, refer to the related discussion of the access process in Figure 7. Based on the above access process, the present application also provides a signal flow diagram as shown in FIG. 10, which discloses a signal flow relationship in a storage device when accessing the storage device of the present application: interface arbitration subunit to contact interface or non-contact The contact interface performs priority setting and access control, which notifies the processor through the arbitration signal whether to open the processor link between the contact interface or the processor link between the contact and the contactless interface. The access information received by the contact interface includes instruction information, address information, and access data (with written information or acquired data); the control circuit of the contact interface decodes, logically controls, and enables the label mapping mode. The tag address control circuit is used to perform tag address control on the mirror address of the corresponding tag data. The above process can determine the accessed storage area and output the address and access data to the conventional memory read and write control circuit for access configuration. Before accessing the storage area, the read/write protection unit protects the data (including configuration data, general data, and tag data), and performs permission determination based on the read/write protection signal against the protection bit area of the system configuration area. When the permission is passed, the storage area (including the first storage area, the second storage area, and the system configuration area) is accessed according to the address and the information of the access data. The configuration data of the system configuration area, in particular the configuration data of the protection bit area, can be rewritten according to the above manner, but such rewriting can be specifically password-protected based on the password protection unit. At this time, not only the authority to read and write the protection signal is judged, but also the password matching verification of the password protection signal. When both of them pass, the configuration data can be rewritten based on the address and the access data at this time. The access information received by the contactless interface also includes instruction information, address information, and access data; the control circuit of the contactless interface decodes and logically controls the access information, and judges according to the type of the instruction. Break the access storage area. For the accessed storage area is the first storage area or the system configuration area, the output address and the access data are accessed to the conventional memory read/write control circuit for access configuration; for the accessed storage area is the second storage area, the output address and the access data are sent to the near field data. Exchange read and write control circuits for access configuration. Before the access to the storage area, the process of signal flow such as permission and password protection is the same as that described above, and is not described here. Based on the memory s5, the present application further provides a memory s6 as shown in FIG. 11. Unlike the memory s5, the memory s6 further includes: a power management unit (9), a first output pin 11, and a second output. Pin 12. The power management unit 9 is adapted to be triggered when the contactless interface 4 receives an active command from the autonomous controller C2 (ie, an effective electromagnetic signal obtained by the antenna 7), logically processes the command, and generates a field detection Signal and power signals. The field detection signal is output to the main controller C1 through the first output pin 11, and the main controller C1 is woken up after receiving the field detection signal, and is notified that the contactless access is in progress, the main The controller C1 monitors the contactless access performed in the storage device s6. The power signal supplies power to some of the devices involved in the contactless access process, such as the associated circuitry in the processor 6. The power management unit 9 may specifically include a power control circuit and a voltage stabilization circuit. The field detection signal may simultaneously trigger other internal and external system operations while triggering the main controller C1. When the memory device s6 is performing a contactless instruction or the contactless interface 4 is performing a contactless read/write operation on the memory area, the memory device s6 can also pass the non-contact to the main controller C1 through the second output pin 12. Information that the instruction busy or contactless interface 4 is accessing to the storage area. Based on the memory s6, a memory device s7 as shown in FIG. 12 may be provided, including: a memory s6 and a main controller C1. In an application example of the present application, the storage device is a Bluetooth device, and the Bluetooth device is applicable to audio transmission. The audio transmission module of the Bluetooth device mainly stores the program code of the transmission module in the NVM data memory external to the main chip. After power-on, the main chip loads the code in the NVM memory into the main core. The internal SRAM, and run the program code, thus requires that the data format in the NVM memory must conform to the code format requirements of the main chip. The user needs to manually search and transmit the pairing verification information through the Bluetooth manual pairing method, and encrypt and establish a Bluetooth wireless connection between the mobile device and the Bluetooth audio transmission module. In order to more easily and reliably establish the connection between the mobile device and the Bluetooth audio transmission module, the applicable Bluetooth audio transmission module is close to the mobile device integrated with the NFC TAG reader, and through the wireless connection conforming to the IS014443, IS015693 communication protocol, The Bluetooth pairing verification information containing the current Bluetooth audio transmission module in the TAG is transmitted to the mobile device for establishing a Bluetooth wireless connection between the two parties. The solution needs to add an NFC-compliant TAG tag chip in addition to the existing EEPROM data memory of the original Bluetooth audio transmission module. The personalized ID information and configuration information for Bluetooth pairing need to be written twice by the contact interface readout and the contactless interface, and the TAG file is established through the external data path. The Bluetooth device is configured based on the dual interface described in the present application, and the NFC Type 2 tag function and the Bluetooth audio transmission module program data storage function can be simultaneously implemented. The system master microcontroller (equivalent to the main controller C1) can directly write the TAG data file conforming to the NFC near field communication tag data format by directly contacting the serial interface and writing the data and programs required by the system itself. Enter TAG. The present invention has been disclosed in the preferred embodiments as described above, but it is not intended to limit the invention, and the present invention may be utilized by the method and technical contents disclosed above without departing from the spirit and scope of the invention. The technical solutions make possible changes and modifications, and therefore, the scope of protection of the technical solutions of the present invention is not deviated from the present invention.
+ +

Claims

权 利 要 求 Rights request
1、 一种具有存储功能的器件, 其特征在于, 包括: 第一存储区域, 适于存储通用数据; 第二存储区域, 适于存储标签数据; 接触式接口, 适于与外部器件进行交互; 非接触式接口, 适于与外部器件进行交互; 系统配置区域,适于存储系统配置数据, 所述系统配置数据包括存储区域 访问方式设定信息; 处理器,适于在所述接触式接口接收到来自外部器件的指令时,根据所述 存储区域访问方式设定信息控制所述接触式接口访问第一存储区域或第二存 储区域; 还适于在所述非接触式接口接收到来自外部器件的指令时,根据所述 指令的类型控制所述非接触式接口访问第一存储区域或第二存储区域。 1. A device with a storage function, characterized in that it includes: a first storage area, suitable for storing general data; a second storage area, suitable for storing tag data; a contact interface, suitable for interacting with external devices; Non-contact interface, suitable for interacting with external devices; System configuration area, suitable for storing system configuration data, the system configuration data includes storage area access mode setting information; Processor, suitable for receiving data at the contact interface When receiving an instruction from an external device, the contact interface is controlled to access the first storage area or the second storage area according to the storage area access mode setting information; It is also suitable for the non-contact interface to receive an instruction from an external device. When an instruction is given, the contactless interface is controlled to access the first storage area or the second storage area according to the type of the instruction.
2、 如权利要求 1所述的具有存储功能的器件, 其特征在于, 所述存储区 域访问方式设定信息包括指令类型和存储区域的对应关系; 所述处理器包括: 第一处理子单元, 适于在所述来自外部器件的指令为第一指令类型时响 应, 并控制所述接触式接口对所述第一存储区域的访问; 适于在所述来自外部 器件的指令为第二指令类型时响应,并控制所述接触式接口对所述第二存储区 域的访问。 2. The device with storage function according to claim 1, characterized in that, the storage area access mode setting information includes the correspondence between the instruction type and the storage area; the processor includes: a first processing subunit, Suitable to respond when the instruction from the external device is the first instruction type, and control the access of the contact interface to the first storage area; Suitable to respond when the instruction from the external device is the second instruction type respond in time and control the access of the contact interface to the second storage area.
3、 如权利要求 1所述的具有存储功能的器件, 其特征在于, 所述存储区 域访问方式设定信息包括地址范围和存储区域的对应关系; 所述处理器包括: 第一处理子单元,适于在所述来自外部器件的指令所携带的目标地址处于 第一地址范围时响应, 并控制所述接触式接口对所述第一存储区域的访问; 适 于在所述来自外部器件的指令所携带的目标地址处于第二地址范围时响应,并 控制所述接触式接口对所述第二存储区域的访问。 3. The device with storage function according to claim 1, wherein the storage area access mode setting information includes a correspondence between an address range and a storage area; the processor includes: a first processing subunit, Suitable to respond when the target address carried by the instruction from the external device is in the first address range, and control the access of the contact interface to the first storage area; Suitable to respond when the instruction from the external device respond when the carried target address is in the second address range, and Control access of the contact interface to the second storage area.
4、 如权利要求 1所述的具有存储功能的器件, 其特征在于, 在所述第一 存储区域中具有所述第二存储区域的镜像区域;所述存储区域访问方式设定信 息包括所述镜像地址的指向; 所述处理器包括: 第一处理子单元,适于所述来自外部器件的指令所携带的目标地址处于所 述镜像区域的地址范围时响应,并基于所述镜像地址的指向控制所述接触式接 口对所述第一存储区域镜像区域的访问, 以实现对所述第二存储区域的访问。 4. The device with storage function according to claim 1, characterized in that, the first storage area has a mirror area of the second storage area; the storage area access mode setting information includes the The pointing of the mirror address; the processor includes: a first processing subunit, adapted to respond when the target address carried by the instruction from the external device is within the address range of the mirror area, and based on the pointing of the mirror address Control the access of the contact interface to the mirror area of the first storage area to achieve access to the second storage area.
5、 如权利要求 1所述的具有存储功能的器件, 其特征在于, 所述处理器 包括: 第一处理子单元,适于在所述指令符合第一类规范时,控制所述非接触式 接口对所述第一存储区域进行访问; 第二处理子单元,适于在所述指令符合第二类规范时,控制所述非接触式 接口对所述第二存储区域进行访问。 5. The device with storage function according to claim 1, characterized in that the processor includes: a first processing subunit, adapted to control the non-contact device when the instruction complies with the first type of specification. The interface accesses the first storage area; the second processing subunit is adapted to control the non-contact interface to access the second storage area when the instruction complies with the second type of specification.
6、 如权利要求 5所述的具有存储功能的器件, 其特征在于, 所述非接触 式接口的访问遵循 IS014443或 IS015693通信协议, 所述第一类规范为私有 指令, 所述第二类规范为 NFC TYPE2 TAG指令。 6. The device with storage function according to claim 5, characterized in that: the access to the contactless interface follows the ISO14443 or ISO15693 communication protocol, the first type of specification is a private instruction, and the second type of specification It is the NFC TYPE2 TAG instruction.
7、 如权利要求 5所述的具有存储功能的器件, 其特征在于, 所述处理器 还包括: 接口仲裁子单元,适于对所述接触式接口和非接触式接口所接收指令的优 先级进行判断,根据所述优先级选通所述处理器和所述接触式接口或所述非接 触式接口的链路。 7. The device with storage function according to claim 5, wherein the processor further includes: an interface arbitration subunit, adapted to prioritize the instructions received by the contact interface and the non-contact interface. A judgment is made to select a link between the processor and the contact interface or the non-contact interface according to the priority.
8、 如权利要求 5所述的具有存储功能的器件, 其特征在于, 还包括: 保 护位区域; 所述保护位区域适于存储保护位的配置数据, 所述处理器还包括: 读写保护单元,适于根据所述保护位的配置数据对所述第一存储区域或第 二存储区域内存储位的访问进行权限管理。 8. The device with storage function according to claim 5, further comprising: a protection bit area; the protection bit area is suitable for storing configuration data of the protection bit, and the processor further includes: read and write protection The unit is adapted to perform authority management on access to storage bits in the first storage area or the second storage area according to the configuration data of the protection bit.
9、 如权利要求 8所述的具有存储功能的器件, 其特征在于, 所述处理器 还包括: 密码保护单元,适于对所述系统配置区域及保护位区域的配置数据改写进 行密码保护。 9. The device with storage function according to claim 8, wherein the processor further includes: a password protection unit adapted to password protect the rewriting of configuration data in the system configuration area and protection bit area.
10、 如权利要求 1、 5至 9任一项所述的具有存储功能的器件, 其特征在 于, 还包括: 天线,适于感知非接触场内的电磁信号, 当所述电磁信号为所述来自外部 器件的指令时, 所述非接触式接口接收该电磁信号。 10. The device with storage function according to any one of claims 1, 5 to 9, further comprising: an antenna, adapted to sense electromagnetic signals in a non-contact field, when the electromagnetic signal is the When receiving instructions from an external device, the non-contact interface receives the electromagnetic signal.
11、 如权利要求 1所述的具有存储功能的器件, 其特征在于, 还包括: 主控制器、 电源管理单元及第一输出管脚; 所述电源管理单元适于在所述非接触式接口接收到来自外部器件的指令 时被触发, 对该指令进行逻辑处理, 并产生场检测信号及电源信号; 所述第一输出管脚适于输出所述场检测信号至所述主控制器,以唤醒所述 主控制器。 11. The device with storage function according to claim 1, further comprising: a main controller, a power management unit and a first output pin; the power management unit is adapted to operate on the non-contact interface It is triggered when receiving an instruction from an external device, performs logical processing on the instruction, and generates a field detection signal and a power signal; the first output pin is adapted to output the field detection signal to the main controller to Wake up the main controller.
12、 如权利要求 11所述的具有存储功能的器件, 其特征在于, 还包括: 第二输出管脚; 所述第二输出管脚适于在所述处理器处理所述非接触式接口接收到来自 外部器件的指令时, 输出提示信号至所述主控制器。 12. The device with storage function according to claim 11, further comprising: a second output pin; the second output pin is adapted to process the non-contact interface reception when the processor When receiving instructions from the external device, a prompt signal is output to the main controller.
13、 如权利要求 12所述的具有存储功能的器件, 其特征在于, 所述提示 信号为非接触式接口及处理器通道的占线信息或基于所述非接触式接口对所 述第一存储区域第二存储区域的访问信息。 13. The device with storage function according to claim 12, characterized in that, the prompt signal is busy information of a non-contact interface and a processor channel or a request to the first storage area based on the non-contact interface. Access information of the second storage area.
+ +
PCT/CN2014/073457 2014-01-28 2014-03-14 Device having storage function WO2015113319A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410042669.7A CN104809420B (en) 2014-01-28 2014-01-28 Device with store function
CN201410042669.7 2014-01-28

Publications (1)

Publication Number Publication Date
WO2015113319A1 true WO2015113319A1 (en) 2015-08-06

Family

ID=53694231

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/073457 WO2015113319A1 (en) 2014-01-28 2014-03-14 Device having storage function

Country Status (2)

Country Link
CN (1) CN104809420B (en)
WO (1) WO2015113319A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229574A (en) * 2016-03-23 2017-10-03 上海复旦微电子集团股份有限公司 Caching and its control method
CN109367332B (en) * 2018-11-02 2021-03-02 深圳市道通科技股份有限公司 Tire pressure receiver burning method and device, tire pressure receiver and burning system
CN113127402A (en) * 2021-04-29 2021-07-16 广东湾区智能终端工业设计研究院有限公司 SPI (Serial peripheral interface) access control method, system, computing equipment and storage medium
CN116627360B (en) * 2023-07-24 2023-11-03 苏州浪潮智能科技有限公司 Data issuing method, data management system, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882233A (en) * 2010-06-02 2010-11-10 方亚南 Multifunctional chip card
CN102799393A (en) * 2012-06-27 2012-11-28 大唐微电子技术有限公司 Method and device for working condition management on dual-interface smart card chip
CN103186812A (en) * 2011-12-28 2013-07-03 国民技术股份有限公司 Smart memory card and method for visiting smart memory card

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4150701B2 (en) * 2004-06-30 2008-09-17 株式会社東芝 Information processing apparatus, information processing method, and information processing program
US20090327597A1 (en) * 2006-07-14 2009-12-31 Nxp B.V. Dual interface memory arrangement and method
CN101584178A (en) * 2006-08-15 2009-11-18 Nxp股份有限公司 Device with an EEPROM having both a near field communication interface and a second interface
US20120290793A1 (en) * 2011-05-10 2012-11-15 Jaewoong Chung Efficient tag storage for large data caches

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882233A (en) * 2010-06-02 2010-11-10 方亚南 Multifunctional chip card
CN103186812A (en) * 2011-12-28 2013-07-03 国民技术股份有限公司 Smart memory card and method for visiting smart memory card
CN102799393A (en) * 2012-06-27 2012-11-28 大唐微电子技术有限公司 Method and device for working condition management on dual-interface smart card chip

Also Published As

Publication number Publication date
CN104809420A (en) 2015-07-29
CN104809420B (en) 2018-06-12

Similar Documents

Publication Publication Date Title
US8280304B2 (en) Device with an EEPROM having both a near field communication interface and a second interface
KR101425181B1 (en) Method for communication with a multi-function memory card
JP2007226796A (en) Smart card supporting a plurality of interfaces and smart card system including the same
US8266713B2 (en) Method, system and controller for transmitting and dispatching data stream
US9214986B2 (en) Non-volatile memory for NFC router
WO2015113319A1 (en) Device having storage function
EP2704021B1 (en) SRAM handshake
US8904087B2 (en) Memory medium having different ways of accessing the memory medium
US9514067B2 (en) Interface arbitration for a wired tag
US10257870B2 (en) Pairing of electronic devices using near field wireless communication
JP5293231B2 (en) IC chip, IC card, issuing device, issuing method and issuing system
US10191679B2 (en) Data accessing method and system and memory storage apparatus
JP2007199847A (en) Nonvolatile memory medium with rfid function and its system
US10095638B2 (en) Memory system capable of wireless communication and method of controlling memory system
US20080162479A1 (en) Memory card system and method for transmitting background information thereof
US20150340075A1 (en) Portable electronic device, program, terminal device and method of controlling decoding of data
US20120278536A1 (en) Memory device capable of preventing specific data from being erased
US9277409B2 (en) Security chip of a communication device
JP5932588B2 (en) IC card, portable electronic device, and IC card processing device
KR101346905B1 (en) Method for Providing Control Interface of SD Memory, SD Memory
JP2016212779A (en) Portable electronic device and IC card
CN105809067A (en) Data access method and system as well as memory storage apparatus
JP2022074099A (en) Secure memory card and control method thereof
US20070067513A1 (en) Method for a control device to command another control device
JP2007058599A (en) Memory card and its control method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14881005

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14881005

Country of ref document: EP

Kind code of ref document: A1