CN201145900Y - Microcontroller - Google Patents
Microcontroller Download PDFInfo
- Publication number
- CN201145900Y CN201145900Y CNU2008200547085U CN200820054708U CN201145900Y CN 201145900 Y CN201145900 Y CN 201145900Y CN U2008200547085 U CNU2008200547085 U CN U2008200547085U CN 200820054708 U CN200820054708 U CN 200820054708U CN 201145900 Y CN201145900 Y CN 201145900Y
- Authority
- CN
- China
- Prior art keywords
- data
- microcontroller
- program
- space
- carrier store
- 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.)
- Expired - Lifetime
Links
Images
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
The utility model relates to a microcontroller comprising a program storage, a data storage and an instruction buffer register; wherein, each of the program storage and the data storage is connected with a memory allocation module which is used for reading instructions from the data storage and then put the instructions into the instruction buffer register. In the scheme, the memory allocation module put the instructions in the data storage into the instruction buffer register, which leads a central processor in the microcontroller to execute the programs stored in the data, thereby leading the programs to be read in the data storage and then reducing the data storage space, enlarging the program storage space and realizing the dynamic regulation of the program storage space and data storage space in the microcontroller.
Description
Technical field
The utility model relates to integrated circuit technique, relates in particular to a kind of microcontroller.
Background technology
Along with developing rapidly of integrated circuit technique, computer system is that central processing unit (CPU) has been integrated on the chip with external unit, becomes the known single-chip microcomputer of present people, single card microcomputer or microcontroller.Increasing microcontroller applies to the every field of social life, and development and national economy has been played requisite facilitation.
In the prior art, the kernel of microcontroller comprises CPU, program storage, data-carrier store, clock circuit and reset circuit etc.; Wherein, the storage space of program storage and data-carrier store is fixed space, that is: storable procedure quantity of microcontroller and data volume all immobilize, space size as suppose program storer, data-carrier store is 1KByte, and then this microcontroller can only be stored the program of 1KByte and the data of 1KByte at most.Therefore, when procedure quantity less than 1KByte, data volume is during greater than 1KByte, this microcontroller can only deposit program in program storage fully, data-carrier store then can't satisfy call data storage, can only the storage area data.
In sum, the problem that existing microcontroller exists is, can not dynamically adjust the space size of program storage and data-carrier store according to actual needs, when the more jumbo program storage of needs or more during the large-capacity data storer, can only could satisfy this demand by production and processing or dilatation again, and this has increased the cost of microcontroller greatly.
The utility model content
The purpose of this utility model is to propose a kind of microcontroller, with the program's memory space in the realization microcontroller and the dynamic adjustment of data space.
For achieving the above object, the utility model embodiment provides a kind of microcontroller, comprise program storage, data-carrier store and instruction buffer register, wherein, described program storage and data-carrier store all are connected with memory configuration module, described memory configuration module is used for from described data-carrier store reading command, and puts into described instruction buffer register.
This programme is put into instruction buffer register by memory configuration module with the instruction in the data-carrier store, make the central processing unit in the microcontroller can carry out the program that is stored in the data-carrier store, thereby make calling program can write entry data memory, thereby reduced data space, enlarge program's memory space, realized the program's memory space in the microcontroller and the dynamic adjustment of data space.
As improvement, in the such scheme, also can comprise the control register that is used for from described program storage reading of data, make microcontroller can in program storage, store data further, thereby enlarged data space, reduced program's memory space, realized that program's memory space and the another kind of of data space in the microcontroller dynamically adjusted.Guaranteed that substantially a microcontroller satisfies the requirement of distinct program, data space, greatly reduces the cost of microcontroller.
Below by drawings and Examples, the technical solution of the utility model is described in further detail.
Description of drawings
Fig. 1 is the structural representation of the utility model microcontroller embodiment;
Fig. 2 is a structural representation of sharing storage space among the utility model microcontroller embodiment.
Embodiment
Fig. 1 is the structural representation of the utility model microcontroller embodiment, in the microcontroller 1, program storage 3 is connected with memory configuration module 2 with data-carrier store 4, and memory configuration module 2 can dynamically be adjusted program's memory space and data space according to user instruction.Suppose present procedure storer 3, the space size of data-carrier store 4 is 1024Byte, and the user needs very little data space such as 128Byte, need be greater than the program's memory space of 1024Byte, and will partly instruct designated store in data-carrier store in programming phases, during use, memory configuration module 2 reads corresponding address contents according to user instruction and promptly instructs from data-carrier store, put into the Instructions Cache register, as for 8 8-digit microcontrollers, because its program is 15 bit value, and 8 bit value are stored in each address of data-carrier store, therefore, and when programmed instruction deposits data-carrier store in, at first be divided into high 7 and least-significant byte numerical value, deposit two adjacent in data-carrier store addresses then in, promptly high 7 deposit high address in, and least-significant byte deposits low address in; Stored configuration module 2 is during from the data-carrier store reading command, read the instruction of high 7 bit instructions and least-significant byte respectively, put into instruction buffer register, be combined as 15 instruction, thereby make the program that deposits in the data-carrier store can access execution, promptly central processing unit obtains instruction and carries out from instruction buffer register, so just can write fashionable in program, program is deposited in the data-carrier store, dwindled data space, realized the dynamic adjustment of data space; The segment space of data-carrier store 4 is used for stored programme, has expanded program's memory space simultaneously, realized the dynamic adjustment of program's memory space.Wherein, instruction buffer register also can be arranged in the central processing unit.
Microcontroller also can comprise control register or table look-up module, reading of data from program storage.Need bigger data space for the user, and deposit appointments such as partial data such as preset parameter, the data of tabling look-up in program storage during programming, during use, by the data in control register or the table look-up module fetch program storer, make the data in the program storage to be applied, thereby write fashionable in data, can be in program storage with data storage, thereby enlarged the space of storage data, reduce stored program space, realized the dynamic adjustment of program's memory space and data space.Wherein, control register can be hardware module, and table look-up module can be a software module.
Above-mentioned control register can be arranged in the EEPROM (Electrically Erasable Programmable Read Only Memo) (EEPROM), also can integrate with memory configuration module, for ease of describing, the module that integrates is called the memory configurations interface.As shown in Figure 2, the user can be by programmed control memory configurations interface 5, program memory space outside the storage user program is used for the specific data of storage area, to realize the expansion of data space, the data memory space that perhaps will store outside the data is used for the storage area program, to realize the expansion of program's memory space.When the user needs data in the access program storer, send instruction to memory configurations interface 2, be sent to program storage 3 by control line 8 control data reference address 61 by Port Multiplier 6, and the data of being visited are read through bus by Port Multiplier 7; When the user needs program in the visit data preface storer, send instruction to memory configurations interface 2, be sent to data-carrier store 4 by control line 8 control program reference address 62 by Port Multiplier 6, and the data of being visited are read through bus by Port Multiplier 7.Wherein, control signal in the control line 8 comes from the memory configuration module in the memory configurations interface 5, in the memory configuration module control register can be set, when memory configurations interface 5 receives user instruction, send control signal by the control register in this memory configuration module, control Port Multiplier option program storer or data-carrier store; In order to simplify the memory configurations interface structure, this control function can be realized by the control register of data in the above-mentioned fetch program storer.Equally, also can be with certain customers' procedure stores in data-carrier store 4.The user program of being deposited is read from data-carrier store 4 with above-mentioned similar methods.Be that program storage and data-carrier store pass through memory configurations interface 5 mutual shared data, realized the dynamic adjustment of program's memory space and data space.Like this, a fixing microcontroller of storage space has just satisfied the demand of distinct program storage space, also satisfied the demand of different pieces of information storage space, guaranteed the maximum useization of a microcontroller, must must not produce a microcontroller again because of program's memory space or data space do not meet the demands, save resource greatly, reduced the cost of microcontroller.
It should be noted that at last: above embodiment only in order to the explanation the technical solution of the utility model, is not intended to limit; Although the utility model is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of each embodiment technical scheme of the utility model.
Claims (6)
1, a kind of microcontroller, comprise program storage, data-carrier store and instruction buffer register, it is characterized in that, described program storage and data-carrier store all are connected with memory configuration module, described memory configuration module is used for from described data-carrier store reading command, and puts into described instruction buffer register.
2, microcontroller according to claim 1 is characterized in that, also comprises:
Control register is used for from described program storage reading of data.
3, microcontroller according to claim 2 is characterized in that, described control register is arranged among the EEPROM (Electrically Erasable Programmable Read Only Memo) EEPROM.
4, microcontroller according to claim 1 is characterized in that, also comprises:
Table look-up module is used for from described program storage reading of data.
5, according to each described microcontroller among the claim 1-4, it is characterized in that, be provided with Port Multiplier between the described memory configuration module data-carrier store, be used for memory address according to the configuration signal option program of described memory configuration module.
6, according to claim 2 or 3 described microcontrollers, it is characterized in that, be provided with Port Multiplier between described control register and the program storage, be used for selecting the memory address of data according to the configuration signal of described control register.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNU2008200547085U CN201145900Y (en) | 2008-01-15 | 2008-01-15 | Microcontroller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNU2008200547085U CN201145900Y (en) | 2008-01-15 | 2008-01-15 | Microcontroller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN201145900Y true CN201145900Y (en) | 2008-11-05 |
Family
ID=40082783
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNU2008200547085U Expired - Lifetime CN201145900Y (en) | 2008-01-15 | 2008-01-15 | Microcontroller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN201145900Y (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103020010A (en) * | 2012-12-21 | 2013-04-03 | 中颖电子股份有限公司 | Storage framework of embedded system |
CN104679547A (en) * | 2013-12-02 | 2015-06-03 | 北京兆易创新科技股份有限公司 | Method and system for reading system configuration information in MCU |
-
2008
- 2008-01-15 CN CNU2008200547085U patent/CN201145900Y/en not_active Expired - Lifetime
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103020010A (en) * | 2012-12-21 | 2013-04-03 | 中颖电子股份有限公司 | Storage framework of embedded system |
CN104679547A (en) * | 2013-12-02 | 2015-06-03 | 北京兆易创新科技股份有限公司 | Method and system for reading system configuration information in MCU |
CN104679547B (en) * | 2013-12-02 | 2017-11-10 | 北京兆易创新科技股份有限公司 | The read method and system of a kind of system configuration information in MCU |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103034617B (en) | For realizing buffer structure and the management method of the storage of reconfigurable system configuration information | |
EP3493066B1 (en) | Apparatus and method to provide cache move with non-volatile mass memory system | |
US5657288A (en) | Efficient addressing of large memories | |
US9529712B2 (en) | Techniques for balancing accesses to memory having different memory types | |
CN103069400B (en) | Combining write buffer with dynamically adjustable flush metrics | |
CN110941395B (en) | Dynamic random access memory, memory management method, system and storage medium | |
US10365842B2 (en) | System and method for reducing power consumption of memory | |
JP3629519B2 (en) | Programmable SRAM and DRAM cache interface | |
JP2000242558A (en) | Cache system and operating method thereof | |
CN109669888A (en) | A kind of configurable and efficient embedded Nor-Flash controller and control method | |
CN102033734A (en) | Data processing engine | |
CN110825325A (en) | Mapping table dynamic loading-based SSD performance improving method and device, computer equipment and storage medium | |
CN111177027B (en) | Dynamic random access memory, memory management method, system and storage medium | |
JP2021034052A (en) | A memory system having different types of memory, a computer system including the memory system, and a data management method thereof. | |
CN105607862A (en) | Solid state disk capable of combining DRAM (Dynamic Random Access Memory) with MRAM (Magnetic Random Access Memory) and being provided with backup power | |
CN107562645A (en) | A kind of page management method and computing device | |
CN101527169A (en) | Flash memory data writing method and controller thereof | |
CN201145900Y (en) | Microcontroller | |
CN109521949A (en) | It is a kind of that frequency data distribution method is write based on the perception for mixing scratch ROM | |
US6393498B1 (en) | System for reducing processor workloads with memory remapping techniques | |
CN106445879B (en) | A kind of SoC devices | |
CN201060485Y (en) | A circuit for realizing on-chip shadow stack memory | |
CN108717395A (en) | A kind of method and device reducing dynamic address mapping information committed memory | |
CN104199619A (en) | Method and device for processing data in NAND | |
JP2000207203A (en) | Micro controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CX01 | Expiry of patent term | ||
CX01 | Expiry of patent term |
Granted publication date: 20081105 |