4 sector erase – Samsung S3F401F User Manual

Page 66

Advertising
background image

INTERNAL FLASH ROM

S3F401F_UM_REV1.00

5-6

4.4 SECTOR ERASE

; Address set
; Data set

; Key value set whenenver starts

; Program command select & start
Command: FMUCON.1 - USERSR

; Check command bit to know
if operation is completed or not

; Next address/data set

FINISH

No

Yes

FMADDR Sector Base Address

; Enable flash osc

; Compare End address

FMKEY

0x5A5A5A5A

FMUCON

+ UOSCEN Bit

FMUCON

+ CommandBit + CPUStatus Bit + Start Bit

FMADDR New 32-bit Address
FMDATA New 32-bit Data

COUNT=END?

START

No

+

Yes

Another instruction can be

executed in SRAM/SDRAM

32-bit Data Writing

Command Bit Clear

CPUHOLD?

Figure 5-4. Sector Erase Flowchart

Advertising