EMBEDDED FLASH MEMORY INTERFACE S3F80P5_UM_ REV1.00
SB1
Start
; Select Bank1
; User Program Mode Enable
; Set Secotr Base Address
; Write data at flash
; User Program Mode Disable
FMSECH High Address of Sector
FMSECL Low Address of Sector
R(n) High Address to Write
R(n+1) Low Address to Write
R(data) 8-bit Data
LDC @RR(n),R(data)
FMUSR #00H
SB0
; Mode Select
FMCON #01010000B
FMUSR #0A5H
; Select Bank0
; Set Address and Data
Finish 1-BYTE Writing
Figure 14-9. Byte Program Flowchart in a User Program Mode
14-12