CN101599020A - Download and method of executing program code and communication device in microprocessor - Google Patents

Download and method of executing program code and communication device in microprocessor Download PDF

Info

Publication number
CN101599020A
CN101599020A CN 200810110438 CN200810110438A CN101599020A CN 101599020 A CN101599020 A CN 101599020A CN 200810110438 CN200810110438 CN 200810110438 CN 200810110438 A CN200810110438 A CN 200810110438A CN 101599020 A CN101599020 A CN 101599020A
Authority
CN
China
Prior art keywords
microprocessor
program codes
external memory
agreement
watchdog routine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200810110438
Other languages
Chinese (zh)
Other versions
CN101599020B (en
Inventor
黄志华
张至岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MStar Software R&D Shenzhen Ltd
MStar Semiconductor Inc Taiwan
Original Assignee
MStar Software R&D Shenzhen Ltd
MStar Semiconductor Inc Taiwan
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 MStar Software R&D Shenzhen Ltd, MStar Semiconductor Inc Taiwan filed Critical MStar Software R&D Shenzhen Ltd
Priority to CN 200810110438 priority Critical patent/CN101599020B/en
Publication of CN101599020A publication Critical patent/CN101599020A/en
Application granted granted Critical
Publication of CN101599020B publication Critical patent/CN101599020B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of method and communication device in microprocessor download and execution program codes, they have high flexibility and can support the microprocessor function mode of multiple radio frequency read-write program.Whether this method is at first carried out a watchdog routine, receive corresponding to one of the program codes request of downloading to monitor a microprocessor.After this microprocessor is received this download request, this program codes will be downloaded in the internal storage of this microprocessor from an external memory storage.Then, this method restarts this microprocessor, enters one first pattern to make this microprocessor.This program codes in this internal storage will be performed in this first pattern.

Description

Download and method of executing program code and communication device in microprocessor
Technical field
The present invention relates to a kind of microprocessor, relate in particular to a kind of in microprocessor download and method of executing program code and communication device.
Background technology
(Radio Frequency Identification, RFID) technology is a kind of communication technology of utilizing wireless signal identification specific objective and reading and writing related data to radio-frequency (RF) identification.Owing to need not to set up entity between the data reading system that adopts REID and the specific objective or optics contacts, so its data identification/read or write speed is more even better than traditional bar code device.
Whether RFID tag (RFID tag) can comprise power supply according to its inside chip is divided into active and passive type two classes.With the passive radio frequency identification label is example, and its antenna can receive the wireless signal that the radio frequency read-write equipment (RFID reader) in the specific range is launched, and provides chip circuit required power supply with the electric wave that receives then.Chip circuit in the RFID tag is once startup, will automatic decode, the signal that receives of interpretation antenna, and provide the information (for example production site and the build date of the accompanying article of the identification number of label itself or this label) of radio frequency read-write equipment requirement with wireless signal.
Can be widely used in fields such as logistics management, purchase and consumption, status identification, intelligent household and office in view of REID, the radio frequency read-write equipment is incorporated in the portable electronic product of user (for example mobile phone and PDA), to promote the convenience that the user utilizes various applying in radio frequency identification, become an inevitable trend.
Present most portable electronic product has all faced many restrictions and requirements such as low-power consumption, low cost, volume be light and handy, and the function of integrating the more just means that such challenge is more harsh therein.In other words, the software and hardware resources in the portable electronic product is all quite limited and valuable, and how effectively integrating the radio frequency read-write capability under the situation that does not take too much software and hardware also is the problem that can not be ignored.
Yet existing radio-frequency (RF) identification standard is multifarious, and all size corresponds respectively to different program codes again; Therefore general single chip microcomputer is difficult to have both the read-write capability of containing multiple radio-frequency (RF) identification standard.With 8051 microprocessors of quite popularizing and be used to often as core of embedded system is example, owing to wherein have only size to be at most the internal processes internal memory of 64K byte, adopt 8051 microprocessors can only hold a few radio frequency read-write program code usually as the electronic product of the running core of radio frequency module for reading and writing.
Hence one can see that, if wish multiple radio frequency read-write program code is contained in the single microprocessor, is bound to such an extent that adopt the big but comparatively high microprocessor of price of memory size, or adopts a plurality of microprocessors to be responsible for different read-write standards separately simultaneously.Thus, the cost of electronic product integral body just has to significantly promote.
Summary of the invention
Technical matters to be solved by this invention provides a kind of in microprocessor download and method of executing program code, and it has high flexibility and can support the microprocessor function mode of multiple radio frequency read-write program.In addition, it also provides a kind of communication device, and it has the low advantage of cost.
In order to solve above technical matters, the invention provides following technical scheme.
According to one embodiment of the invention is one to download and carry out the method for program codes in microprocessor.Whether this method is at first carried out a watchdog routine, receive corresponding to one of the program codes request of downloading to monitor a microprocessor.After this microprocessor is received this download request, this program codes will be downloaded in the internal storage of this microprocessor from an external memory storage.Then, this method restarts this microprocessor, to make this microprocessor enter beginning to carry out the pattern of this program codes.
Be a communication device according to another embodiment of the present invention, wherein comprise an external memory storage and a microprocessor.Store a program codes in this external memory storage corresponding to a target communications protocol.Itself also comprises an internal storage this microprocessor.Whether this microprocessor system is in order to carrying out a watchdog routine, receive corresponding to one of this program codes and download request to monitor this microprocessor.After receiving this download request, this microprocessor will be downloaded to this program codes in this internal storage from this external memory storage.After this program codes was downloaded to this internal storage, this microprocessor was restarted and is begun to carry out this program codes in this internal storage.
Compared to prior art, as long as utilize the microprocessor of single internal storage less (so cost is lower) can reach the effect of supporting multiple radio frequency read-write program according to How It Works of the present invention and communication device.
Description of drawings
Below in conjunction with the drawings and specific embodiments the present invention is described in further detail.
Figure 1A is the calcspar of the electronic system in one embodiment of the invention.
Figure 1B is the internal configurations example according to external memory storage of the present invention.
Fig. 2 is according to downloading the also process flow diagram of the How It Works of executive routine code in microprocessor in one embodiment of the invention.
Fig. 3 downloads and the process flow diagram of the How It Works of executive routine code in microprocessor in according to another embodiment of the present invention.
[primary clustering symbol description]
10: electronic system 12: microprocessor
12A: internal storage 14: central control unit
16: external memory storage S21 ~ S23: process step
S31 ~ S36: process step
Embodiment
According to one embodiment of the invention is a kind of How It Works in microprocessor download and executive routine code.In this embodiment, this microprocessor system is arranged in certain electronic system (a for example action communication system).Shown in Figure 1A, except microprocessor 12, this electronic system 10 has also comprised a central control unit 14 and an external memory storage 16.Microprocessor 12 itself comprises an internal storage 12A again.On the practice, internal storage 12A can be a static random access memory (static random accessmemory), and 16 of external memory storages can be a flash memory (flash memory).
Figure 1B is an internal configurations example of external memory storage 16.According to the present invention, a plurality ofly external memory storage 16 can be stored in advance corresponding to the pre-set programs code of different communications protocol separately.In this example, external memory storage 16 stores N pre-set programs code (the first pre-set programs code ~ N pre-set programs code), and N is the positive integer greater than 1.For instance, these pre-set programs codes can correspond respectively to multiple different radio-frequency (RF) identification agreement, for example ISO 14443A agreement, ISO 14443B agreement, ISO 15693 agreements, ISO 18092 agreements or EPC UHF C1G2 agreement.
The capacity of internal storage 12A may be type and the specification that is decided by microprocessor 12.Relatively, the capacity of external memory storage 16 then can have sizable adjustment elasticity according to practical application request, can't be restricted because of the type and the specification of microprocessor 12.More particularly, the deviser of electronic system 10 can be according to electronic system 10 with the communications protocol quantity of cooperation and the capacity of program code size decision external memory storage 16 thereof.
See also Fig. 2, Fig. 2 is the process flow diagram according to How It Works of the present invention.At first, step S21 system continues or periodically carries out a watchdog routine, the download request of whether receiving corresponding to a program codes with monitoring microprocessor 12.If its judged result is that then step S21 can repeatedly not be performed.Relatively, if the judged result of step S21 is for being that then this method will continue execution in step S22, from external memory storage 16 this program codes will be downloaded among the internal storage 12A.Then, step S23 system restarts microprocessor 12, enters the pattern that will carry out the program codes in the internal storage 12A to make microprocessor 12.
For instance, when 14 decisions of central control module will ask microprocessor 12 to carry out radio frequency read-write capability corresponding to EPC UHFC1G2 agreement, central control unit 14 will transmit corresponding to the download request of EPC UHF C1G2 agreement and give microprocessor 12.After receiving this download request, just can be downloaded among the internal storage 12A from external memory storage 16 corresponding to that pre-set programs code of EPC UHF C1G2 agreement (that is the program codes of indication) herein.
After this, if central control unit 14 wishes that microprocessor 12 changes the radio frequency read-write capability of execution corresponding to ISO 14443A agreement into, central control unit 14 is as long as transmit corresponding to the download request of ISO 14443A agreement and give microprocessor 12, will be downloaded among the internal storage 12A from external memory storage 16 corresponding to the pre-set programs code of ISO 14443A agreement.
According to the present invention, the program code corresponding to EPC UHF C1G2 agreement that originally was stored in the internal storage 12A can be erased before internal storage 12A receives new program code or directly be covered by new program code.Therefore, as long as the capacity of internal storage 12A is even as big as holding single kind of program code.
On the practice, if microprocessor 12 all has direct memory access (DMA) (directmemory access with external memory storage 16, DMA) ability, microprocessor 12 can utilize the mode of DMA to download the said procedure code, save the trouble of coordinating through central control unit 14 intermediaries by this.
Shown in Figure 1B, can comprise one in the external memory storage 16 in order to store the block of address translation table.The function of this table of comparisons is to list externally start address, length and the corresponding communications protocol in the storer 16 of each pre-set programs code.By this, microprocessor 12 can find out the storage location of program codes easily according to communications protocol.
See also Fig. 3, Fig. 3 is the process flow diagram of the microprocessor How It Works in according to another embodiment of the present invention.In this embodiment, comprise a block (shown in Figure 1B) that stores an initial program code in the external memory storage 16.And, all be included in this initial orders code corresponding to above-mentioned watchdog routine and the program code that downloads.
Microprocessor 12 among this embodiment can remove to read the initial orders code (step S31) that is stored in the external memory storage 16 earlier after being predetermined to be start.Therefore, set under the situation of not change at this, microprocessor 12 will be begun watchdog routine and the downloading among the execution in step S33 optionally among the execution in step S32 automatically after the start again.
As shown in Figure 3, this method is set execution in step S34 microprocessor 12 and can be gone to read the program codes that is stored among the internal storage 12A after the start next time after step S33, but not is stored in the initial orders code in the external memory storage 16.Then, step S35 promptly restarts microprocessor 12, reads and carry out this program codes to make microprocessor 12.In addition, in step S36, microprocessor 12 can be set to next time can be removed to read the initial orders code that is stored in the external memory storage 16 after the start again.By this, when microprocessor 12 was started shooting again next time, step S31 and step S32 can be performed again once more, whether transmitted new download request with monitoring central control unit 14.
On the practice, can be contained in each pre-set programs code corresponding to the program code of step S36.In other words, no matter be which pre-set programs code is downloaded and carried out by microprocessor 12, the start of microprocessor 12 is set all can then be reduced to preset state.
Be a kind of computer program that is stored in the computer fetch medium according to another embodiment of the present invention.This computer fetch medium stores and is used to one embedded (embedded) computer program that a program codes was downloaded and carried out to a microprocessor.When this computer program was carried out by this microprocessor, this microprocessor of this computer program military order was carried out as Fig. 2 or process step shown in Figure 3.
Be a kind of mobile communication device, for example mobile phone of various kenels or PDA according to still another embodiment of the invention.This action communication device has comprised the microprocessor that Figure 1A illustrated 12, central control unit 14 and external memory storage 16.See through the utilization How It Works that Fig. 2 or Fig. 3 provided, this action communication device can have the ability of supporting multiple radio frequency read-write program.The more important thing is, owing to be stored in the external memory storage 16 corresponding to the program code system of various radio-frequency (RF) identification agreements, so the internal storage 12A in the microprocessor 12 does not need too big.
Can understand by above explanation, compared to prior art, as long as utilize the microprocessor of single internal storage less (so cost is lower) can reach the effect of supporting multiple radio frequency read-write program according to How It Works of the present invention and communication device.From another angle, under the situation that the whole cost of electronic installation does not need significantly to increase, can provide the radio frequency literacy more polynary than prior art according to electronic installation of the present invention.
By the detailed description of above specific embodiment, be that hope can be known description feature of the present invention and spirit more, and be not to come category of the present invention is limited with above-mentioned disclosed specific embodiment.On the contrary, its objective is that hope can contain in the category of claim of being arranged in of various changes and tool equality institute of the present invention desire application.

Claims (11)

1, a kind ofly download and carry out the method for a program codes, it is characterized in that it comprises the following step in a microprocessor:
(a) carry out a watchdog routine, whether receive corresponding to one of this program codes and download request to monitor this microprocessor;
(b), this program codes is downloaded in the internal storage of this microprocessor from an external memory storage in response to this download request; And
(c) restart this microprocessor, enter first pattern to make this microprocessor, this program codes in this internal storage will be performed in this first pattern.
2, the method for claim 1 is characterized in that, it further comprises the following step:
(d) afterwards, carry out the setting of restarting of this microprocessor, to make this microprocessor if restarted once more, this microprocessor will enter second pattern, and this watchdog routine will be performed in this second pattern in step (c).
3, the method for claim 1, it is characterized in that, store a plurality of pre-set programs codes in the described external memory storage, this program codes for this a plurality of pre-set programs codes one of them, and each pre-set programs code is to reach an agreement on corresponding to a radio-frequency (RF) identification separately.
4, the method for claim 1, it is characterized in that described radio-frequency (RF) identification agreement is one that is selected from the following agreement: ISO 14443A agreement, ISO 14443B agreement, an ISO 15693 agreements, an ISO 18092 agreements and an EPC UHF C162 agreement.
5, the method for claim 1 is characterized in that, in described watchdog routine, be performed corresponding to a watchdog routine code of this watchdog routine, and this watchdog routine code system is stored in this external memory storage.
6, a kind of communication device is characterized in that, it comprises:
One external memory storage wherein stores the program codes corresponding to a target communications protocol; And
Whether one microprocessor, this microprocessor are coupled to this external memory storage and comprise an internal storage, and this microprocessor system is in order to carrying out a watchdog routine, receive corresponding to one of this program codes and download request to monitor this microprocessor; In response to this download request, this microprocessor is downloaded to this program codes in this internal storage from this external memory storage;
Wherein after this program codes was downloaded to described internal storage, this microprocessor was restarted and is entered first pattern, and this program codes in this internal storage will be performed in this first pattern.
7, communication device as claimed in claim 6, it is characterized in that, after described microprocessor enters this first pattern, one of this microprocessor restarts to set and is performed, make this microprocessor by this if restarted once more, to enter second pattern, and this watchdog routine will be performed in this second pattern.
8, communication device as claimed in claim 6, it is characterized in that described target communications protocol is one that is selected from the following radio-frequency (RF) identification agreement: ISO 14443A agreement, ISO 14443B agreement, an ISO 15693 agreements, an ISO 18092 agreements and an EPC UHF C1G2 agreement.
9, communication device as claimed in claim 6 is characterized in that, in described watchdog routine, be performed corresponding to a watchdog routine code of this watchdog routine, and this watchdog routine code system is stored in this external memory storage.
10, communication device as claimed in claim 6 is characterized in that, described external memory storage is a flash memory, and this internal storage is a random access memory.
11, communication device as claimed in claim 6 is characterized in that, described program codes is that the form with a direct storage access is downloaded to this internal storage from this external memory storage.
CN 200810110438 2008-06-03 2008-06-03 Method for downloading and executing program codes from microprocessor and communication device thereof Expired - Fee Related CN101599020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810110438 CN101599020B (en) 2008-06-03 2008-06-03 Method for downloading and executing program codes from microprocessor and communication device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810110438 CN101599020B (en) 2008-06-03 2008-06-03 Method for downloading and executing program codes from microprocessor and communication device thereof

Publications (2)

Publication Number Publication Date
CN101599020A true CN101599020A (en) 2009-12-09
CN101599020B CN101599020B (en) 2013-03-06

Family

ID=41420475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810110438 Expired - Fee Related CN101599020B (en) 2008-06-03 2008-06-03 Method for downloading and executing program codes from microprocessor and communication device thereof

Country Status (1)

Country Link
CN (1) CN101599020B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100426220C (en) * 2001-12-29 2008-10-15 中兴通讯股份有限公司 Device for realizing software down loading using single-chip processor in communication system and its method
CN1323361C (en) * 2003-06-14 2007-06-27 中兴通讯股份有限公司 Processor system and method using multi memory of start-up procedure
KR100557601B1 (en) * 2004-04-20 2006-03-10 주식회사 하이닉스반도체 Transport protocol programable radio frequency tag

Also Published As

Publication number Publication date
CN101599020B (en) 2013-03-06

Similar Documents

Publication Publication Date Title
JP5175215B2 (en) Method and device for emulating multiple RFID tags in a single portable electronic device
US20050088285A1 (en) Mobile communication terminal with RFID function and RFID programming method in the same
EP3493067A1 (en) Extended utilization area for a memory device
US9418224B2 (en) Portable electronic device and control method of portable electronic device
US11409975B2 (en) Passive near field communication (NFC) device, method and system
JP2008536431A (en) Improved transponder
KR101636354B1 (en) Passive wireless memory device
US12008171B2 (en) Program download method for intelligent terminal with memory card identifier and intelligent terminal with memory card identifier
CN102163296A (en) Object storage management system based on passive data storage
US20090128294A1 (en) Data streaming apparatus for radio frequency identification tag
CN103208021A (en) RFID (Radio Frequency Identification) chip with built-in double memory
CN202153360U (en) Portable 134.2 KHz RFID multi-interface reader-writer
CN104639317A (en) System and method for key update of smart card based on app (Application) module
CN101599020B (en) Method for downloading and executing program codes from microprocessor and communication device thereof
CN101561862B (en) Reader/writer, communication processing device, communication processing method, data management system and communication system
CN204595905U (en) RFID tag, label recognizer, label reader
CN102135577A (en) Method and device for tracking service life of electronic and electrical products
TWI389030B (en) Method and computer program product for loading and executing program code at micro-processor and communication device including the micro-processor
CN202548851U (en) Active RFID card-issuing device
CN113343724B (en) Method for writing data into a memory of a contactless transponder and transponder device
CN203838734U (en) Hand-held type internet of things terminal
CN203054880U (en) Intelligent staple gun of electronic tag
CN201936329U (en) UHF (UltraHigh Frequency) RFID (Radio Frequency Identification) antenna demultiplexer
CN101887529A (en) Radio-frequency identification card for replacing encryption algorithm by user and method thereof
CN106529360A (en) Radio frequency read-write device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130306

Termination date: 20190603