CN101425287B - Apparatus and method for functional programming display - Google Patents
Apparatus and method for functional programming display Download PDFInfo
- Publication number
- CN101425287B CN101425287B CN2007101680197A CN200710168019A CN101425287B CN 101425287 B CN101425287 B CN 101425287B CN 2007101680197 A CN2007101680197 A CN 2007101680197A CN 200710168019 A CN200710168019 A CN 200710168019A CN 101425287 B CN101425287 B CN 101425287B
- Authority
- CN
- China
- Prior art keywords
- program code
- preset length
- storer
- display
- preset
- 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 - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 16
- 230000015654 memory Effects 0.000 claims abstract description 26
- 230000006870 function Effects 0.000 claims abstract description 20
- 238000010586 diagram Methods 0.000 description 8
- 238000012797 qualification Methods 0.000 description 3
- 230000014759 maintenance of location Effects 0.000 description 1
- NHDHVHZZCFYRSB-UHFFFAOYSA-N pyriproxyfen Chemical compound C=1C=CC=NC=1OC(C)COC(C=C1)=CC=C1OC1=CC=CC=C1 NHDHVHZZCFYRSB-UHFFFAOYSA-N 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a device for programming the functions of a monitor, which comprises a memory, a program code programming device and a program code checking module. The memory is used for storing program codes. The program code programming device is coupled with the memory and used for reading a program code with a preset length from the memory, and the program code with a preset length is part of the program codes. The program code checking module is coupled with the program code programming device and used for checking whether the program code with a preset length conforms to a preset state and generating a control signal; and the program code programming device is controlled by the control signal to determine whether the program code with a preset length is to be written into the memory of a monitor.
Description
Technical field
The invention provides a kind of apparatus and method, especially refer to a kind of apparatus and method that can shorten the programming time by the check program code to the display function programming.
Background technology
When the function of programming display, normally utilized device shown in Figure 1 to finish, display function programmer 100 includes storer 110 and program code programmer 120 in the past.Store in the storer 110 and be used for refresh display functional programs code.Program code programmer 120 is except being coupled to this storer, and be coupled to the storer 130 of display, program code programmer 120 is program code read in storer 110, and program code is write the storer 130 of display, with the function of refresh display.
The storer 130 of display is generally flash memory (Flash memory), be to be unit of program during its programming data with data page (page), the data volume of data page has the maximal value of its qualification, be generally 256 bytes (Byte), the data volume of each page must not be greater than the maximal value that limits, and therefore each page can be set at 256 bytes, 128 bytes, 64 bytes and wait the programming of carrying out program code.
Fig. 2 shows the synoptic diagram that program code is write flash memory 220 from storer 210.Storer 210 is drawn is divided into a plurality of data pages 212,214,216, supposes that now each data page has 256 bytes, and then data page 212,214 and 216 has 256 bytes separately.In programming flash storer 220, at first can read the data volume of a data page from the reference position of storer 210, just the reading of data page or leaf 212, and data page 212 is write in the register (not shown).Then the data page in the register 212 is write flash memory 220, the reference position that writes is found out relative position then according to the position of data page 212 in storer 210 in flash memory 220; That is to say that in flash memory 220 data page 222 that is written into is the reference positions from flash memory 220, occupy the data volume (, being 256 bytes) of a data page with this example.
Then reading of data page or leaf 214 and write register from storer 210 again, and then data page 214 write flash memory 220 by register, form data page 224, the position that writes then is with respect to the position of data page 214 in storer 210, just in flash memory 220, data page 224 is right after behind data page 222.Repeat above-mentioned step, each data page in the storer 210 is moved in regular turn to (promptly writing) flash memory 220, extremely last data page 216 to storer 210 is read and writes flash memory 220, forms data page 226.
Yet in this way during programming flash storer 220, no matter the content of the data page that is read in storer 210 why, this data page all can intactly be write in the flash memory 220.Even the content of the data page that is read is for blank, the program of this data page of programming still can be performed in flash memory 220, has therefore promptly wasted many times virtually.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of devices and methods therefor to the display function programming, whether utilization meets a preset state at the preceding program code of this preset length of checking earlier of the program code that writes a preset length, shortens the programming time of program code.
The present invention discloses a kind of device to the display function programming, includes a storer, program code programmer and program code checking module.This storer is used for program code stored; This program code programmer is coupled to this storer, uses from the program code that reads a preset length in this storer, and the program code of this preset length is the part of this program code; And this program code checking module is coupled to this program code programmer, be used for checking the program code of this preset length whether to meet a preset state, and produce a control signal, wherein this preset state refers to that each data of the program code of this preset length are all logical value 1; Wherein this program code programmer is subjected to this control signal control to determine whether the program code of this preset length is write the storer of a display.
The present invention also discloses a kind of method to the display function programming, includes: the program code that reads a preset length in a storer; Check the program code of this preset length whether to meet a preset state, and produce a control signal, wherein this preset state refers to that each data of the program code of this preset length are all logical value 1; And the storer that determines whether the program code of this preset length is write a display according to this control signal.
Description of drawings
Fig. 1 is known schematic representation of apparatus to the display function programming.
Fig. 2 shows the synoptic diagram that data is write flash memory from storer
Fig. 3 is the embodiment synoptic diagram of the present invention to the device of display function programming.
Fig. 4 works out the process flow diagram of display function for the present invention.
Fig. 5 is the data mode synoptic diagram of block 510 and the block to be written 520 of the storer of display in the storer.
The main element symbol description
100,300 display function programmers
110,310 storeies
120,320 program code programmers
130, the storer of 330 displays
210 storeies
212,214,216,222,224,226 data pages
220 flash memories
340 program code checking module
510 program code stored blocks
512, the program code of 514,516 preset length
520 blocks to be written
522,524,526 data pages
Embodiment
In the middle of instructions and follow-up claim, used some vocabulary to censure specific element.The person with usual knowledge in their respective areas should understand, and hardware manufacturer may be called same element with different nouns.This instructions and follow-up claim are not used as distinguishing the mode of element with the difference of title, but the criterion that is used as distinguishing with the difference of element on function.Be an open term mentioned " comprising " in the middle of instructions and the follow-up request in the whole text, so should be construed to " comprise but be not limited to ".In addition, " couple " speech and comprise any indirect means that are electrically connected that directly reach at this.Therefore, be coupled to one second device, then represent this first device can directly be electrically connected in this second device, or be electrically connected to this second device indirectly by other devices or connection means if describe one first device in the literary composition.
See also Fig. 3, Fig. 3 is the embodiment synoptic diagram of the present invention to the device of display function programming.Display function programmer 300 includes storer 310, program code programmer 320 and program code checking module 340.Storer 310 stores and is used for the functional programs code of refresh display.Program code programmer 320 is coupled to the storer 330 of storer 310 and display, and 340 of program code checking module are coupled to program code programmer 320.In the present embodiment, display can be monitor, simulated television or Digital Television.The present invention who please consults Fig. 4 simultaneously works out the process flow diagram of display function, with further understanding operating process of the present invention.In the time of the refresh display function, program code programmer 320 reads the program code (step S410) of one section preset length from storer 310, and the program code with this preset length sends program code checking module 340 to then.The program code of this preset length is a part that is stored in the program code in the storer 310.As described in prior art, the storer 330 of display is generally flash memory, is to be unit of program with the data page during its programming data, and the data volume of data page has a maximal value that limits; The data volume that program code comprised of this preset length promptly is equal to the data volume of data page, therefore can not surpass the maximal value of this qualification.The maximal value of supposing this qualification is 256 bytes, and then the data volume that program code comprised of the data volume of this data page or this preset length can be less than or equal to 256 bytes, may be 256 bytes, 128 bytes, 64 bytes or the like.
In step S420, program code checking module 340 checks whether the program code of this preset length meets certain preset state, if the program code of this preset length meets this preset state, then program code checking module 340 will produce a control signal and be sent to this program code programmer 320.On behalf of the logical value of all positions (bit) of the program code of this preset length, this preset state be all 1, if be unit with the byte, the data mode of then representing each byte and being presented is all FF (hexadecimal).Therefore if the program code with preset length of 256 bytes meets this preset state, then its all positions (256x8) are all logical value 1, or the data mode of 256 bytes is all FF (hexadecimal).The personage who has the knack of flash memory can understand, flash memory is before writing data, and the operation that can remove earlier is after removing finishes, the logical value of each of flash memory can become 1, that is the data mode of each byte is all FF (hexadecimal).Therefore the program code when preset length meets this preset state, then when the program code with this preset length writes the storer 320 of display, the storer 320 of display need not the logical value of dirty bit, that is to say, when in fact writing this kind data, do not need fully physically the storer 320 of display is carried out any operation.So when program code programmer 320 does not receive this control signal, program code programmer 320 is with regard to the program code with the current preset length that reads, according to its relative position in storer 310, write the storer 330 (step S430) of display; And when program code programmer 320 received this control signal, program code programmer 320 was not just carried out the operation that writes.
In order more clearly to describe above-mentioned operation, see also Fig. 5, Fig. 5 be block program code stored in the storer 310 510 with the storer 330 of display in the synoptic diagram of data mode of block to be written 520.Show as Fig. 5, part in block 510 required storages 310, block 520 is a block to be written in the storer 330 of display, the program code 512,516 of preset length does not meet this preset state, and the program code 514 of preset length meets this preset state, that is to say, the program code 512,516 of preset length can be considered as the non-blank-white section of program code, and the program code 514 of preset length can be considered as the blank section of program code.When operation, program code programmer 320 reads the program code 512 of preset length from block 510, and the program code 512 of preset length is sent to program code checking module 340 tests, because the program code of preset length 512 does not meet above-mentioned preset state, so program code checking module 340 does not produce control signal, and program code programmer 320 is promptly according to the relative position of program code 512 in block 510 of preset length, it is write in the block 520, form a data page 522 of block 520.
Then, whether program code programmer 320 determining program codes have all read finish (step 440), finish if all read, and then finish the flow process of program code; And it is described to hold epimere, because the program code in the block 510 does not read as yet and finishes, this moment, the program code programmer can read the program code 514 of next section preset length again from storer 310, and the program code 514 of preset length is sent to program code checking module 340 tested.Because the program code of preset length 514 meets above-mentioned preset state, so program code checking module 340 can produce control signal, and program code programmer 320 promptly can skip over the operation that the program code 514 of preset length is write block 520 according to this control signal, therefore can save the time of the program code 514 of programmed preset length.Similarly, the mode that reads, checks and write of the program code 516 of preset length is identical with the program code 512 of preset length, therefore can produce data page 526 on the corresponding position of block 520, data page 524 then is the program code 514 that corresponds to preset length.Above-mentioned step repeats always, all is written into the storer 330 of display up to program code.
As mentioned above, in device of the present invention, program code is before the storer that is written into display, all can be subjected to the check of program code checking module, if the program code that is about to be written into is the section of a blank, then can skip over the step that writes this blank procedure code, make the process of whole program code can save a large amount of time.
The above only is preferred embodiment of the present invention, and all equivalences of carrying out according to claim of the present invention change and revise, and all should belong to covering scope of the present invention.
Claims (8)
1. device to display function programming includes:
One storer is used for program code stored;
The program code programmer is coupled to this storer, uses from the program code that reads a preset length in this storer, and the program code of this preset length is the part of this program code; And
Program code checking module, be coupled to this program code programmer, be used for checking the program code of this preset length whether to meet a preset state, and produce a control signal, wherein this preset state refers to that each data of the program code of this preset length are all logical value 1;
Wherein this program code programmer is subjected to this control signal control to determine whether the program code of this preset length is write the storer of a display.
2. device as claimed in claim 1, wherein the data volume that program code comprised of this preset length equals a data programing unit of the storer of this display.
3. device as claimed in claim 1, wherein the storer of this display is a flash memory.
4. device as claimed in claim 1, wherein the program code when this preset length meets this preset state, and this control signal indicates this program code programmer the program code of this preset length not to be write the storer of this display.
5. method to display function programming includes:
In a storer, read the program code of a preset length;
Check the program code of this preset length whether to meet a preset state, and produce a control signal, wherein this preset state refers to that each data of the program code of this preset length are all logical value 1; And
Determine whether the program code of this preset length is write the storer of a display according to this control signal.
6. method as claimed in claim 5, wherein this memory stores has program code, and the program code of this preset length is the part of this program code.
7. method as claimed in claim 5, wherein the data volume that program code comprised of this preset length equals a data programing unit of the storer of this display.
8. method as claimed in claim 5, wherein the program code when this preset length meets this preset state, then the program code of this preset length is not write the storer of this display.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101680197A CN101425287B (en) | 2007-10-31 | 2007-10-31 | Apparatus and method for functional programming display |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101680197A CN101425287B (en) | 2007-10-31 | 2007-10-31 | Apparatus and method for functional programming display |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101425287A CN101425287A (en) | 2009-05-06 |
CN101425287B true CN101425287B (en) | 2010-12-01 |
Family
ID=40615856
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101680197A Expired - Fee Related CN101425287B (en) | 2007-10-31 | 2007-10-31 | Apparatus and method for functional programming display |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101425287B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1955866A (en) * | 2005-10-24 | 2007-05-02 | 广东科龙电器股份有限公司 | Programmable test controller, user program method and control method of components and parts |
CN101004897A (en) * | 2005-12-19 | 2007-07-25 | 瑞昱半导体股份有限公司 | Method for programming display controller and related apparatus thereof |
-
2007
- 2007-10-31 CN CN2007101680197A patent/CN101425287B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1955866A (en) * | 2005-10-24 | 2007-05-02 | 广东科龙电器股份有限公司 | Programmable test controller, user program method and control method of components and parts |
CN101004897A (en) * | 2005-12-19 | 2007-07-25 | 瑞昱半导体股份有限公司 | Method for programming display controller and related apparatus thereof |
Also Published As
Publication number | Publication date |
---|---|
CN101425287A (en) | 2009-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6731538B2 (en) | Semiconductor memory device including page latch circuit | |
CN101202106B (en) | Non-volatile memory system and corresponding programming method | |
US6772276B2 (en) | Flash memory command abstraction | |
US8000153B2 (en) | Enhanced erase for flash storage device | |
US8086785B2 (en) | System and method of page buffer operation for memory devices | |
KR920005163A (en) | Semiconductor memory device | |
CN107291377A (en) | Data storage device and data maintenance method thereof | |
CN106155582B (en) | Non-volatile memory device and controller | |
US8914602B2 (en) | Display controller having an embedded non-volatile memory divided into a program code block and a data block and method for updating parameters of the same | |
CN107045423B (en) | Memory device and data access method thereof | |
US8423701B2 (en) | Flash memory device with a low pin count (LPC) communication interface | |
EP3057100B1 (en) | Memory device and operating method of same | |
US10338843B2 (en) | Methods for moving data internally and apparatuses using the same | |
CN101425287B (en) | Apparatus and method for functional programming display | |
CN1695131A (en) | Address decode | |
US20070101049A1 (en) | Redundant purge for flash storage device | |
CN107402887B (en) | Counter in flash memory | |
US5542092A (en) | Method and system for setting bus addresses in order to resolve or prevent bus address conflicts between interface cards of a personal computer | |
WO2001054134A3 (en) | Test method for a data memory | |
KR20110001581A (en) | Method of copy-back operation for non-volatile memory device | |
US20070101048A1 (en) | Verified purge for flash storage device | |
US7966461B2 (en) | Apparatus and method for programming functions of display | |
CN106155581A (en) | Data storage device and data maintenance method thereof | |
SU1589282A1 (en) | Memory controller | |
KR970022700A (en) | Program Device and Method of Nonvolatile Memory |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200415 Address after: No.1, Duhang 1st Road, Hsinchu City, Hsinchu Science Park, Taiwan, China Patentee after: MEDIATEK Inc. Address before: Hsinchu County, Taiwan, China Patentee before: MSTAR SEMICONDUCTOR Inc. |
|
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: 20101201 |