![](http://datasheet.mmic.net.cn/300000/KFG1216Q2A_datasheet_16197796/KFG1216Q2A_81.png)
OneNAND512(KFG1216x2A-xxB5)
FLASH MEMORY
81
Even though the OTP area can only be programmed once without erase capability, it can be locked when the device starts up to
prevent any changes from being made.
Unlike the main area of the NAND Flash Array memory,
once the OTP block is locked, it cannot be unlocked.
Locking the OTP
Programming to the OTP area can be prevented by locking the OTP area. Locking the OTP area is accomplished by
programming XXXCh to 8th word of sector0 of page0 of the spare0 memory area.
At device power-up, this word location is checked and if XXXCh is found, the OTPL bit of the Controller Status Register is set to "1",
indicating the OTP is locked. When the Program Operation finds that the status of the OTP is locked, the device updates the Error Bit
of the Controller Status Register as "1" (fail).
OTP Lock Operation Steps
Issue the OTP Access Command
Fill data to be programmed into DataRAM (data can be input at anytime between the "Start" and "Write Program" commands)
Write 'XXXCH' data into the 8th word of sector0 of page0 of the spare0 memory area of the DataRAM.
Issue a Flash Block Address (FBA) to any address in the NAND Flash Array
address map.
Issue a Program command to program the data from the DataRAM into the OTP
When the OTP lock is complete, do a Cold Reset to exit the OTP Access mode and update OTP lock bit[6].
OTP lock bit[6] of the Controller Status Register will be set to "1" and the OTP will be locked.
3.11.3 OTP Lock Operation