CN106598660A - Program memory management device used for microcontroller - Google Patents

Program memory management device used for microcontroller Download PDF

Info

Publication number
CN106598660A
CN106598660A CN201611122074.8A CN201611122074A CN106598660A CN 106598660 A CN106598660 A CN 106598660A CN 201611122074 A CN201611122074 A CN 201611122074A CN 106598660 A CN106598660 A CN 106598660A
Authority
CN
China
Prior art keywords
program
microcontroller
program memory
program storage
chip
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.)
Pending
Application number
CN201611122074.8A
Other languages
Chinese (zh)
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.)
SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd
Original Assignee
SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd filed Critical SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd
Priority to CN201611122074.8A priority Critical patent/CN106598660A/en
Publication of CN106598660A publication Critical patent/CN106598660A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a program memory management device used for a microcontroller. The program memory management device comprises an MCU core, a chip option control unit, a program memory and a program memory address decoding unit. The program memory management device has the beneficial effects that firstly, in the device, the access modes of the program memory comprise a common mode and a paging mode; and secondly, the device has the advantage of low cost. Due to the fact that the cost of a one-time programmable memory is low, the one-time programmable memory is frequently applied into the microcontroller to be used as a program memory. In the common one-time programmable memory, user program is burnt once, and when the user program needs to be upgraded, an original microcontroller chip is replaced. In the scheme, when the application program needs to be upgraded, the program needing to be updated is burnt in other paging storage areas of the one-time programmable program memory, the original chip does not need to be replaced, and a repeatedly programmable memory with relatively high cost does not need to be used as the program memory of the microcontroller chip.

Description

A kind of program storage managing device for microcontroller
Technical field
The present invention relates to microcontroller technical field, specifically a kind of program storage management dress for microcontroller Put.
Background technology
MCU microcontrollers are the products for modernizing microelectric technique, and the application in electronic product is widely.MCU is micro- Program storage pipe in controller is an important module in MCU chip design.
A kind of program storage managing device for microcontroller of present invention description.In the present invention, program storage Access module includes general mode and paging mode.Because its low cost, Jing is often employed the memorizer of disposable programmable Use as program storage in microcontroller.In the microcontroller of common disposable programmable type, user program is only Can be programmed once, when user program needs upgrading, original microcontroller chip can only be replaced.During using this programme, when When application program needs upgrading, it is only necessary to by other pagings of the program storage of the burning program to disposable programmable type for updating Memory block, without replacing original chip, it is not required that the relatively high time-after-time programmable memory of use cost is used as micro- The program storage of controller chip, so the present invention has the advantages that low cost.The present invention can also save user program liter Required recordable time during level.When user program needs upgrading, it is only necessary to update a certain paging in program storage and deposit Data in storage area, it is not necessary to update the data of whole program storage, therefore during application upgrade, recordable time can be saved.
The content of the invention
It is an object of the invention to provide a kind of program storage managing device for microcontroller, to solve the above-mentioned back of the body The problem proposed in scape technology.
For achieving the above object, the present invention provides following technical scheme:
A kind of program storage managing device for microcontroller, including MCU kernels, chip option control unit, program deposit Reservoir and program memory address decoding unit, the MCU kernels difference linker memory program storage address decoding Unit, program storage is also respectively connected with chip option control unit and program memory address decoding unit.
As the further scheme of the present invention:Described program memorizer includes public area and paging area.
As the further scheme of the present invention:The paging area includes multiple subpages.
Compared with prior art, the invention has the beneficial effects as follows:1st, in the present invention, the access module of program storage includes General mode and paging mode.2nd, there is low cost.The memorizer of disposable programmable is because its low cost, and Jing is normal It is applied in microcontroller as program storage to use.In the microcontroller of common disposable programmable type, user Program can only be programmed once, when user program needs upgrading, can only replace original microcontroller chip.Using this programme When, when application program need upgrading when, it is only necessary to by update burning program to disposable programmable type program storage its Its Fragmentation area, without replacing original chip, it is not required that the relatively high time-after-time programmable memory of use cost As the program storage of microcontroller chip.3rd, recordable time required when user program is upgraded can be saved.When user's journey When sequence needs upgrading, it is only necessary to update the data in a certain Fragmentation area in program storage, it is not necessary to update whole The data of program storage, therefore during application upgrade, recordable time can be saved.
Description of the drawings:
Fig. 1 is the entire block diagram of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Refer to Fig. 1, a kind of program storage managing device for microcontroller, including MCU kernels(MCU_CORE)、 Chip option control unit(MCU_CORE), program storage(PMEM)With program memory address decoding unit (DECODEDER), program storage(PMEM)For storing the program of user, in some applications, it is also possible to by program storage A part for device is used as special data storage area.Such as, these special data are probably a series of related to application Parameter.Microcontroller can be read data from program storage by the table-look-up instruction of kernel.MCU kernels(MCU_CORE) Operationally, need from program storage(PMEM)In read back order code, then corresponding operation is performed according to order code.
In this programme, the program storage in microcontroller chip has 2 kinds of access modules, be respectively general mode and Paging mode.Program storage when microcontroller chip works in general mode, in microcontroller chip(PMEM)In not There is paging, whole program's memory space is all used for storing user program and data.When chip is applied to need not be to journey During the application scenario that sequence is upgraded, user can use chip general mode, such that it is able to use program storage in All of memory space, will not waste memory space valuable in program storage.
When microcontroller chip works in paging mode, whole program's memory space is divided into 2 panel regions:Program storage Public area and program storage paging area.Program storage public area is used to store the program that need not be updated in user's application And data.Program storage paging area is used to store program and the data that may be updated in the future in user's application.Program storage 4 subpages of device paging area paging, the chip that user can as needed by different Configuration Values burnings in microcontroller chip Option control unit(OPTION).When microcontroller chip works in paging mode, it will according to chip option control unit (OPTION)In Configuration Values option program memory paging area in a certain subpage, when needed, read order code in this subpage, Perform corresponding operation.
Chip option control unit(OPTION)It is responsible for preserving the configuration control information of overall importance to microcontroller chip. In this programme, program storage has 2 kinds of access modules can be by user by configuring chip option control unit(OPTION)In Mode select signal mode_sel being selected.When mode_sel is 0, program memory operation is in general mode;When Program memory operation is in paging mode when mode_sel is 1.It is program storage point when user selects the mode of operation of chip During page mode, in addition it is also necessary to configure paging and select control signal page_sel.Microcontroller chip will select control letter according to paging The value of number page_sel, selects corresponding Fragmentation area.
Microcontroller core sends reader memory requests (rd_req), while by corresponding source request address(addr_ org)It is input into program storage address decoding unit.Program memory address decoding unit(DECODEDER)It is responsible for microcontroller The source request address of device kernel enters row decoding.When program memory address decoding unit(DECODEDER)Detect model selection When signal mode_sel is low level state, will directly by source request address(addr_org)Directly as mapping request address (addr_adj)Export to program storage.When program memory address decoding unit(DECODEDER)Detect model selection When signal mode_sel is high level state, control signal will be selected according to paging(page_sel)To source request address(addr_ org)Enter row decoding, the mapping request address obtained after decoding, by the physical address with selected program storage paging area It is corresponding.Program storage detect rd_req signals it is effective after, will be according to penetrating request address(addr_adj), will be stored in it The value of interior corresponding address unit is back to microcontroller core by data signal dout, and microcontroller core is further according to return Data operated accordingly.
The present invention operation principle be:A kind of program storage managing device for microcontroller of present invention description.This In invention, the access module of program storage includes general mode and paging mode.The memorizer of disposable programmable because its into This is low, so Jing is often applied in microcontroller as program storage to use.In the micro- of common disposable programmable type In controller, user program can only be programmed once, when user program needs upgrading, can only replace original microcontroller core Piece.During using this programme, when application program needs upgrading, it is only necessary to by the journey of the burning program to disposable programmable type for updating Other Fragmentation areas of sequence memorizer, without replacing original chip, it is not required that use cost is relatively high multiple Programmable storage as microcontroller chip program storage, so the present invention there is low cost.The present invention is also Recordable time required when user program is upgraded can be saved.When user program needs upgrading, it is only necessary to more new procedures Data in memorizer in a certain Fragmentation area, it is not necessary to update the data of whole program storage, therefore during application upgrade, Recordable time can be saved.

Claims (3)

1. a kind of program storage managing device for microcontroller, including MCU kernels, chip option control unit, program Memorizer and program memory address decoding unit, it is characterised in that the MCU kernels respectively deposit by linker memory program Memory address decoding unit, program storage is also respectively connected with chip option control unit and program memory address decoding is single Unit.
2. a kind of program storage managing device for microcontroller according to claim 1, it is characterised in that described Program storage includes public area and paging area.
3. a kind of program storage managing device for microcontroller according to claim 1, it is characterised in that described Paging area includes multiple subpages.
CN201611122074.8A 2016-12-08 2016-12-08 Program memory management device used for microcontroller Pending CN106598660A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611122074.8A CN106598660A (en) 2016-12-08 2016-12-08 Program memory management device used for microcontroller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611122074.8A CN106598660A (en) 2016-12-08 2016-12-08 Program memory management device used for microcontroller

Publications (1)

Publication Number Publication Date
CN106598660A true CN106598660A (en) 2017-04-26

Family

ID=58597539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611122074.8A Pending CN106598660A (en) 2016-12-08 2016-12-08 Program memory management device used for microcontroller

Country Status (1)

Country Link
CN (1) CN106598660A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268265A (en) * 2018-01-24 2018-07-10 深圳市道通科技股份有限公司 Link mapping method, software code method for burn-recording and the burning host in common code library
CN111176694A (en) * 2019-12-31 2020-05-19 无锡矽杰微电子有限公司 Multi-paging burning method for OTP type MCU

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604248A (en) * 2009-07-20 2009-12-16 北京海尔集成电路设计有限公司 A kind of embedded system and its implementation of revising program in the ROM (read-only memory)
CN101727987A (en) * 2008-10-29 2010-06-09 旺宏电子股份有限公司 Data programming and reading method and single time programmable memory applying the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727987A (en) * 2008-10-29 2010-06-09 旺宏电子股份有限公司 Data programming and reading method and single time programmable memory applying the same
CN101604248A (en) * 2009-07-20 2009-12-16 北京海尔集成电路设计有限公司 A kind of embedded system and its implementation of revising program in the ROM (read-only memory)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268265A (en) * 2018-01-24 2018-07-10 深圳市道通科技股份有限公司 Link mapping method, software code method for burn-recording and the burning host in common code library
WO2019144819A1 (en) * 2018-01-24 2019-08-01 深圳市道通科技股份有限公司 Link mapping method for common codebase, software code burning method, and burning host
CN111176694A (en) * 2019-12-31 2020-05-19 无锡矽杰微电子有限公司 Multi-paging burning method for OTP type MCU
CN111176694B (en) * 2019-12-31 2023-09-08 无锡矽杰微电子有限公司 Multi-paging burning method for OTP MCU

Similar Documents

Publication Publication Date Title
CN104750616A (en) Data storage device and flash memory control method
CN103019971A (en) Method of quickly responding to trim command, SSD (Solid State Disk) controller and system
CN105677580A (en) Method and device for accessing cache
CN102063943A (en) Nand flash memory parameter automatic detecting system
CN106354615A (en) Solid state disk log generating method and device
CN108628543B (en) Garbage collection method and device using same
EP3196767B1 (en) Method for writing data into flash memory device, flash memory device and storage system
CN104317732A (en) Large-capacity Flash chip space management method
US9032135B2 (en) Data protecting method, memory controller and memory storage device using the same
CN105426322B (en) A kind of forecasting method and device of data
CN108108191A (en) A kind of collocation method of SOC chip and SOC chip cpu instruction collection
CN105027067A (en) Method and system for object-based transactions in a storage system
CN106598660A (en) Program memory management device used for microcontroller
CN109634664A (en) A kind of method and device of CPU to hardware circuit transmitting order to lower levels descriptor
CN103412829A (en) Method and device for expanding MCU (Micro-programmed Control Unit) program address space
EP2784682A1 (en) Memory patching circuit
US20100153622A1 (en) Data Access Controller and Data Accessing Method
CN107133066A (en) A kind of storage multiplexed control system in MCU chip
CN103812739A (en) Communication apparatus and communication method between FPGA and DSP
CN204129729U (en) A kind of Flash storage control system based on DMA transmission
TW201512846A (en) Memory card access device, control method thereof, and memory card access system
CN111783163A (en) Method and device for realizing host protection area and electronic equipment
CN104346295A (en) Cache refreshing method and device
CN110334034A (en) Method, apparatus, computer equipment and the storage medium of mapping table dynamically load
CN107861895B (en) Programmable input and output PIO based on distributed arbitration program writes merging device and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426