CN103136017A - Programming method and device for one-time programmable memory (OTPM) - Google Patents

Programming method and device for one-time programmable memory (OTPM) Download PDF

Info

Publication number
CN103136017A
CN103136017A CN2011103991483A CN201110399148A CN103136017A CN 103136017 A CN103136017 A CN 103136017A CN 2011103991483 A CN2011103991483 A CN 2011103991483A CN 201110399148 A CN201110399148 A CN 201110399148A CN 103136017 A CN103136017 A CN 103136017A
Authority
CN
China
Prior art keywords
programming
otpm
address
data
register
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
CN2011103991483A
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.)
TRULY SEMICONDUCTORS (SHANWEI) CO Ltd
Original Assignee
TRULY SEMICONDUCTORS (SHANWEI) 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 TRULY SEMICONDUCTORS (SHANWEI) CO Ltd filed Critical TRULY SEMICONDUCTORS (SHANWEI) CO Ltd
Priority to CN2011103991483A priority Critical patent/CN103136017A/en
Publication of CN103136017A publication Critical patent/CN103136017A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a programming method and a device for a one-time programmable memory (OTPM). The programming method includes the following steps: initializing a photosensitive chip; judging whether an area which needs to be programmed is empty or not, if the area which needs to be programmed is not empty, existing from programming process, if the area which needs to be programmed is empty, designating a register address for programming; starting programming instructions and writing data which needs to be programmed to a register of the designated address in the OTPM; and judging whether the programming is successful or not, if the programming is successful, ending the programming process, and if the programming is unsuccessful, restarting the programming. Correspondingly, the invention provides a programming device for the OTPM. The programming device for the OTPM comprises an initialization module, a first judging module, an address setting unit, a programming unit, and a second judging unit. According to the programming method for the OTPM, any address of any programming area can be designated, so that the problem that an existing programming method can only program a complete data area, but cannot refine the positioning to a target address, so that the problem that the programming area is too big is solved. In addition, the programming method for the OTPM can designate the data to be programmed according to the needs.

Description

A kind of OTPM programming method and device
Technical field
The present invention relates to miniature video camera module application, relate in particular to a kind of OTPM programming method and device.
Background technology
Disposable programmable memory (OTPM) refers to that this segment memory space only allows to write once, does not allow to wipe.The original intention that OTPM produces is mainly for lens correction LSC, namely solves specific camera lens, the rear caused brightness of infrared filter IR combination and the inhomogeneous problem of color.For the combination of camera lens, write the OTPM the inside with its parameter of mating the most, when camera module was worked, by dependent instruction, the parameter of calling inside OTPM was improved the LSC problem.
Along with miniature video camera module on market use universal, what of pixel people require not only to be confined to it, good image effect will become an important technology index of client's reference, this proposes stricter requirement to effect optimization undoubtedly.Yet, in the design proposal of reality, particularly adopt high pixel chip, tend to occur the bad problem of module consistance, namely, use same set of parameter setting to be difficult to make all modules all to reach satisfied effect, the solution that adopts is, for each module configures a special-purpose LSC parameter of cover.
In current application, two kinds of solutions are arranged: a kind of is to adopt the EEPROM scheme, but this scheme needs the separate configurations eeprom chip, this space and appearance design to camera module has certain requirement, must significantly change principle design, component placement etc., in addition, owing to being the chip that configures separately, material need to increase extra budget; Another kind is the OTPM scheme, adopt OTPM not need to change principle design, only need to draw a pin gets final product more, and OTPM is integrated on sensitive chip, therefore do not affect for camera module space and appearance design, in addition, because OTPM is built on sensitive chip, so do not need the extra cost budget, saved cost.The OTPM scheme is compared with the EEPROM scheme, will more and more be used with significant price advantage.Yet, the original intention that produces due to OTPM is in order to be LSC, therefore, traditional programming method is carried out the programming of data take the district ZONE of OTPM as unit, each district's programming one cover LSC parameter, be that traditional programming method can only solely be carried out the programming of whole regional ZONE, this makes terminal applies and conceptual design be subject to serious restriction.
Summary of the invention
In view of this, the invention provides a kind of OTPM programming method and device, can only solely carry out the programming in whole zone in order to solve traditional programming method, thus the problem that makes the variation of terminal applies and conceptual design be severely limited, and its technical scheme is as follows:
A kind of disposable programmable memory OTPM programming method, described OTPM is divided into a plurality of districts, and there are a plurality of registers in each district, and the method comprises:
A: initialization sensitive chip;
B: whether the zone that judgement need to be carried out programming is empty, if so, and execution in step C; If not, withdraw from the programming flow process;
C: the register address of specifying programming;
D: start the programming instruction, data programming that will programming is specified in the register of register address in OTPM;
E: judge that whether programming is successful, if so, finishes the programming flow process; If not, return to steps A, again programming.
It is wherein, described that to want the data of programming be lens correction LSC parameter or client's specific data.
Wherein, the process of obtaining the LSC parameter is: with the data layout image output of RAW, then cover the even flat-plate light source of corresponding colour temperature, and start the LSC parameter that zero offset capability generates correspondence.Wherein, describedly judge whether programming successfully is specially: adopt the yuv data form to light module, then enable the LSC parameter of programming, judge whether the LSC parameter effect of module meets standard, if so, programming successfully; If not, programming failure.
A kind of OTPM programming device, described device comprises:
Initialization unit is used for sensitive chip is carried out initialization;
The first judging unit is used for judgement and need to carries out whether the zone of programming is empty;
The address setting unit is for the address of set-up register;
The programming unit, be used for will programming data write in the register of OTPM assigned address;
The second judging unit is used for judging whether programming is successful.
Described device also comprises acquiring unit, is used for obtaining the LSC parameter of wanting programming.
OTPM programming method provided by the invention, can specify the arbitrary address in any programming zone, therefore having solved existing programming method can only carry out programming for a complete data area, and can't refinement navigate to destination address, the problem that the programming scope is too large.In addition, programming method provided by the invention also can be specified the data of programming as required, thereby solved the problem that existing programming method can't artificially be specified the programming data, programming method provided by the invention provides more flexible and hommization ground design proposal for terminal applies.
Description of drawings
The OTPM programming method flow diagram that Fig. 1 provides for the embodiment of the present invention one;
The OTPM programming device structural representation that Fig. 2 provides for the embodiment of the present invention two.
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment one
The embodiment of the present invention one provides a kind of OTPM programming method, and Fig. 1 is the process flow diagram of this programming method, and the method comprises:
S11: initialization sensitive chip;
S12: whether the zone that judgement need to be carried out programming is empty, if so, and execution in step S13; If not, withdraw from the programming flow process;
In the present embodiment, adopt software that the zone that needs carry out programming is scanned, if its value is all 0x0000, judge that this zone is sky.
S13: the register address of specifying programming;
In the present embodiment, specifying the register address of programming only need download relevant addressing instruction can realize.Take this sensitive chip of MT9P111-SOC5140 as example, adopt to give an order assigned address:
REG=0x098E,0x6024//
LOGICAL_ADDRESS_ACCESS[IO_NV_MEM_ADDR]
REG=0xE024,0x0020//IO_NV_MEM_ADDR
Wherein, 0x0020 is the address of the register of appointment.For different chips, the instruction that assigned address adopts is also different.
S14: start the programming instruction, data programming that will programming is specified in the register of register address in OTPM;
Not merely be used for the storage efficacy parameter in the storage space of OTPM, also can deposit the data of client's appointment in, in the present embodiment namely, the data of programming except being lens correction LSC parameter, also can be client's specific data.
Equally take this sensitive chip of MT9P111-SOC5140 as example, OTPM on this sensitive chip is divided into three district ZONE1, ZONE2 and ZONE3, the user can specify first address 0x0100 of the ZONE1 of OTPM on this sensitive chip, burned data 0x0001 is as the identifier of module producer, subsequent clients only need use software to read this value just can identify producer corresponding to module, this can't realize in traditional OTPM programming method, because in traditional OTPM programming method, the content of programming generates automatically according to software, therefore can't artificially specify.
Wherein, the LSC parameter obtains in the following manner: with the data layout image output of RAW, then cover the even flat-plate light source of corresponding colour temperature, and start the LSC parameter that zero offset capability generates correspondence.By the OTPM programming method that the embodiment of the present invention provides, can be with the programming of LSC parameter to the arbitrary address of distinguishing arbitrarily.
S15-S16: judge that whether programming is successful, if so, finishes the programming flow process; If not, return to step S11, again programming.
In the present embodiment, adopt the yuv data form to light module, then enable the LSC parameter of programming, judge whether the LSC parameter effect of module meets standard, if so, programming success; If not, programming failure.
A plurality of districts are arranged in OTPM, there are a plurality of registers in each district, in existing programming method, can only be take the district come the programming data as unit, and OTPM programming method provided by the invention can be specified the arbitrary address programming data in any programming zone, and therefore having solved existing programming method can only carry out programming for a complete data area, and can't refinement navigate to destination address, the problem that the programming scope is too large.In addition, in existing programming method, want the data of programming automatically to be generated by software, therefore can't artificially specify, and programming method provided by the invention also can be specified the data of programming as required, thereby solved the artificially problem of appointment of existing programming method, programming method provided by the invention provides more flexible and hommization ground design proposal for terminal applies.
Embodiment two
The embodiment of the present invention two provides a kind of OTPM programming device, and Fig. 2 is the structural representation of this OTPM programming device.This device comprises initialization unit 21, the first judging unit 22, address setting unit 23, programming unit 24 and the second judging unit 25.
Initialization unit 21 is used for sensitive chip is carried out initialization; The first judging unit 22 is used for judgement and need to carries out whether the zone of programming is empty; Address setting unit 23 is used for setting the register address of wanting programming; Programming unit 24, be used for will programming data write in the register that OTPM specifies register address; The second judging unit 25 is used for judging whether programming is successful.
Above-mentioned OTPM programming device also comprises acquiring unit, is used for obtaining the LSC parameter of wanting programming.
OTPM programming device provided by the invention can be realized the arbitrary address programming data in any programming zone.In addition, programming device provided by the invention also can be specified the data of programming as required.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be apparent concerning those skilled in the art, and General Principle as defined herein can be in the situation that do not break away from the spirit or scope of the present invention, realization in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (6)

1. disposable programmable memory OTPM programming method, described OTPM is divided into a plurality of districts, and there are a plurality of registers in each district, it is characterized in that, and the method comprises:
A: initialization sensitive chip;
B: whether the zone that judgement need to be carried out programming is empty, if so, and execution in step C; If not, withdraw from the programming flow process;
C: the register address of specifying programming;
D: start the programming instruction, data programming that will programming is specified in the register of register address in OTPM;
E: judge that whether programming is successful, if so, finishes the programming flow process; If not, return to steps A, again programming.
2. method according to claim 1, is characterized in that, described to want the data of programming be lens correction LSC parameter or client's specific data.
3. method according to claim 2, is characterized in that, the process of obtaining the LSC parameter is:
With the data layout image output of RAW, then cover the even flat-plate light source of corresponding colour temperature, and start the LSC parameter that zero offset capability generates correspondence.
4. method according to claim 3, is characterized in that, describedly judges whether programming successfully is specially:
Adopt the yuv data form to light module, then enable the LSC parameter of programming, judge whether the LSC parameter effect of module meets standard, if so, programming success; If not, programming failure.
5. an OTPM programming device, is characterized in that, described device comprises:
Initialization unit is used for sensitive chip is carried out initialization;
The first judging unit is used for judgement and need to carries out whether the zone of programming is empty;
The address setting unit is for the address of set-up register;
The programming unit, be used for will programming data write in the register that OTPM specifies register address;
The second judging unit is used for judging whether programming is successful.
6. OTPM programming device according to claim 1, is characterized in that, described device also comprises acquiring unit, is used for obtaining the LSC parameter of wanting programming.
CN2011103991483A 2011-12-05 2011-12-05 Programming method and device for one-time programmable memory (OTPM) Pending CN103136017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103991483A CN103136017A (en) 2011-12-05 2011-12-05 Programming method and device for one-time programmable memory (OTPM)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103991483A CN103136017A (en) 2011-12-05 2011-12-05 Programming method and device for one-time programmable memory (OTPM)

Publications (1)

Publication Number Publication Date
CN103136017A true CN103136017A (en) 2013-06-05

Family

ID=48495887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103991483A Pending CN103136017A (en) 2011-12-05 2011-12-05 Programming method and device for one-time programmable memory (OTPM)

Country Status (1)

Country Link
CN (1) CN103136017A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412781A (en) * 2013-08-27 2013-11-27 信利光电股份有限公司 Burning method for one-time programmable (OTP) chips
CN103699452A (en) * 2013-11-29 2014-04-02 四川长虹电器股份有限公司 Method for automatically programming EEPROM (electrically erasable programmable read-only memory)
CN106850875A (en) * 2017-02-15 2017-06-13 湖南长城银河科技有限公司 A kind of MAC Address of Network Card method for burn-recording and device based on platform of soaring

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020188818A1 (en) * 2001-06-06 2002-12-12 Kazuaki Nimura Computer system
CN201532629U (en) * 2009-11-03 2010-07-21 亚旭电脑股份有限公司 Sequence number programming device
CN102158589A (en) * 2011-01-19 2011-08-17 宁波舜宇光电信息有限公司 High-pixel photographic module and burning method for chip

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020188818A1 (en) * 2001-06-06 2002-12-12 Kazuaki Nimura Computer system
CN201532629U (en) * 2009-11-03 2010-07-21 亚旭电脑股份有限公司 Sequence number programming device
CN102158589A (en) * 2011-01-19 2011-08-17 宁波舜宇光电信息有限公司 High-pixel photographic module and burning method for chip

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
三星单片机开发网: "《SSW V3.0C编程器用户手册》", 10 October 2010 *
三星单片机开发网: "《SSW V3.0C编程器用户手册》", 10 October 2010, article "SSW V3.0C编程器用户手册" *
赵星梅: "LED显示屏亮度非均匀性逐点校正技术的研究", 《万方学位论文》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412781A (en) * 2013-08-27 2013-11-27 信利光电股份有限公司 Burning method for one-time programmable (OTP) chips
CN103699452A (en) * 2013-11-29 2014-04-02 四川长虹电器股份有限公司 Method for automatically programming EEPROM (electrically erasable programmable read-only memory)
CN106850875A (en) * 2017-02-15 2017-06-13 湖南长城银河科技有限公司 A kind of MAC Address of Network Card method for burn-recording and device based on platform of soaring

Similar Documents

Publication Publication Date Title
US11221720B2 (en) Data processing device
CN103412781A (en) Burning method for one-time programmable (OTP) chips
CN102713812A (en) Variable rate browsing of an image collection
US20130111464A1 (en) Modular and open platform image capture devices and related methods
CN104392668A (en) Annular multi-faced display device
CN105632348A (en) LED display screen configuration method and device
CN104620212A (en) Control device and recording medium
CN103136017A (en) Programming method and device for one-time programmable memory (OTPM)
CN104501001A (en) Intelligent projection bulb and interaction and intelligent projection method thereof
CN203406037U (en) LED lamp panel, LED lamp box and LED display screen
CN104866081A (en) Terminal operation method and device as well as terminal
CN109710368B (en) Processing method, device and system
CN107111425A (en) Display device, projecting apparatus and display control method
CN110336907A (en) Terminal, image pickup method and storage medium
CN104580889A (en) Terminal
CN103996317A (en) Novel wireless multi-media interactive teaching system
CN103996315A (en) System safety setting method for novel wireless multi-media interactive teaching system
CN105791689A (en) Image processing method and image processing device
CN103123553A (en) Multi-touch point image identification interactive system
CN103019950A (en) Space allocation method and use method of one-time programmable chip and device
CN203241844U (en) Environmental parameter intelligent control device for flower greenhouse
CN103198808B (en) Liquid crystal display splicing wall curtain display control program
CN106648340B (en) A kind of display control method and mobile terminal of mobile terminal
US20110225327A1 (en) Systems and methods for controlling an electronic device
CN107481681B (en) A kind of digital photo frame system based on FPGA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 516600 Guangdong Industrial Zone, Shanwei City Road, Lee Lee Industrial City, a district of the building fifteenth

Applicant after: Truly Opto-Electronics Ltd.

Address before: 516600, Guangdong City, Shanwei Province Industrial Road, Xinli electronic industrial city

Applicant before: Truly Semiconductors (Shanwei) Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: TRULY OPTO-ELECTRONICS LIMITED TO: TRULY OPTO-ELECTRONICS LTD.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130605