Sector Erase - Samsung S3C8275X User Manual

8-bit cmos microcontrollers
Table of Contents

Advertisement

EMBEDDED FLASH MEMORY INTERFACE
The Sector Erase Procedure in User Program Mode
1. Set Flash Memory User Programming Enable Register (FMUSR) to "10100101B".
2. Set Flash Memory Sector Address Register (FMSECH/FMSECL).
3. Check user's ID code (written by user).
4. Set Flash Memory Control Register (FMCON) to "10100001B".
5. Set Flash Memory User Programming Enable Register (FMUSR) to "00000000B"
6. Check the "sector erase status bit" whether "sector erase" is success or not.
PROGRAMMING TIP ⎯ Sector Erase
SB1
reErase:
LD
LD
LD
CP
JR
LD
NOP
NOP
LD
TM
JR
Not_ID_Code:
SB1
LD
16-8
FMUSR,#0A5H
FMSECH,#10H
FMSECL,#00H
UserID_Code,#User_value ; Check user's ID code (written by user)
NE,Not_ID_Code
FMCON,#10100001B
FMUSR,#0
FMCON,#00001000B
NZ,reErase
FMUSR,#0
; User program mode enable
; Set sector address (1000H − 107FH)
; User_value is any value by user
; If not equal, jump to Not_ID_Code
; Start sector erase
; Dummy instruction, this instruction must be needed
; Dummy instruction, this instruction must be needed
; User program mode disable
; Check "Sector erase status bit"
; Jump to reErase if fail
; User Program mode disable
S3F8275X

Advertisement

Table of Contents
loading

This manual is also suitable for:

F8275xF8274xC8278xC8274xF8278x

Table of Contents