A mobile phone camera otp memory allocation, information writing and reading method
A mobile phone camera and memory allocation technology, applied in memory address/allocation/relocation, image communication, television, etc., can solve problems such as failure to write information once, scrapping of camera modules, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] Embodiment 1 is a mobile phone camera OTP memory allocation method provided by the present invention. combine figure 1 . figure 1 It is a flowchart of Embodiment 1 of the present invention. The mobile phone camera OTP memory allocation method that the present embodiment provides, comprises the following steps:
[0039] S101. Obtain the capacity of the OTP memory:
[0040] The OTP of the mobile phone camera module will be equipped with a certain capacity of OTP memory when it is manufactured, and the capacity of the OTP memory is obtained, assuming that the capacity of the OTP memory is A bytes.
[0041] S102. Obtain the total number of bytes of all parameters to be written into the OTP memory:
[0042] The mobile phone camera module has various parameters, such as the basic parameters of the module, white balance parameters, lens correction parameters and so on. Each parameter will occupy a certain memory space when it is written into the OTP, and the total number ...
Embodiment 2
[0053] Embodiment 2 provides a method for writing OTP memory information of a mobile phone camera.
[0054] combine figure 2 . figure 2 It is a flow chart of the method for writing OTP memory information of the mobile phone camera of the present embodiment. The method for writing OTP memory information of the mobile phone camera includes the following steps:
[0055] S201. Allocate the OTP memory:
[0056] The OTP memory is allocated according to any one of the mobile phone camera OTP memory allocation methods provided in Embodiment 1 above.
[0057] In order to clearly understand the solution of the present invention, this embodiment is described with the example of Embodiment 1. That is: the capacity of the OTP memory is 256 bytes, including 8 layer addresses (bank0, bank1, ..., bank7). The capacity of each layer address is 32 bytes. Among them, a layer address bank0 is selected as a predetermined layer address, and only predetermined parameters can be stored, and oth...
Embodiment 3
[0089] Embodiment 3 provides a method for reading OTP memory information of a mobile phone camera. see image 3 . image 3 It is a flowchart of a method for reading OTP memory information of a mobile phone camera. The reading method comprises the following steps:
[0090] S301. Read the flag register of the first section of the predetermined layer address:
[0091] Start OTP, and read the flag register of the first section on the predetermined layer address. The flag register contains information about whether the predetermined parameter x1 is successfully written: if the write is successful, the highest bit of information in the flag register is 0, and other bits are not all 0; if the write fails, the highest bit of information in the flag register is 1. The information in the flag register is stored when writing information into the OTP memory. When reading, it is best to write in the same order as the information, so that the information stored in the OTP memory can b...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 