Hard Lock Protection - Samsung S3C8275X User Manual

8-bit cmos microcontrollers
Table of Contents

Advertisement

EMBEDDED FLASH MEMORY INTERFACE

HARD LOCK PROTECTION

User can set Hard Lock Protection by write '0110' in FMCON.7−4. If this function is enabled, the user cannot write
or erase the data in a flash memory area. This protection can be released by the chip erase execution (in the tool
program mode).
In terms of user program mode, the procedure of setting Hard Lock Protection is following that. Whereas in tool
mode the manufacturer of serial tool writer could support Hardware Protection. Please refer to the manual of serial
program writer tool provided by the manufacturer.
The Hard Lock Protection Procedure in User program Mode
1. Set Flash Memory User Programming Enable Register (FMUSR) to "10100101B".
2. Check user's ID code (written by user)
3. Set Flash Memory Control Register (FMCON) to "01100001B".
4. Set Flash Memory User Programming Enable Register (FMUSR) to "00000000B".
PROGRAMMING TIP ⎯ Hard Lock Protection
SB1
LD
CP
JR
LD
NOP
LD
Not_ID_Code:
SB1
LD
16-12
FMUSR,#0A5H
UserID_Code,#User_value ; Check user's ID code (written by user)
NE,Not_ID_Code
FMCON,#01100001B
FMUSR,#0
FMUSR,#0
; User Program mode enable
; User_value is any value by user
; If not equal, jump to Not_ID_Code
; Hard Lock mode set & start
; Dummy Instruction, This instruction must be needed
; User Program mode disable
; User Program mode disable
S3F8275X

Advertisement

Table of Contents
loading

This manual is also suitable for:

F8275xF8274xC8278xC8274xF8278x

Table of Contents