Program Flowchart In A User Program Mode - Samsung S3F80JB User Manual

8-bit cmos microcontrollers
Table of Contents

Advertisement

EMBEDDED FLASH MEMORY INTERFACE
NO
Same Sector?
NO
Continuous address?
INC
Different Data?
15-14
Start
SB1
FMSECH
FMSECL
R(n)
High Address to Write
R(n+1)
Low Address to Write
R(data)
8-bit Data
FMUSR
FMCON
LDC
@RR(n),R(data)
YES
Write again?
FMUSR
YES
SB0
Finish Writing
YES
R(n+1)
YES
R(data)
NO
Figure 15-10. Program Flowchart in a User Program Mode
High Address of Sector
Low Address of Sector
#0A5H
#01010000B
NO
#00H
; Select Bank0
New 8-bit Data
; Select Bank1
; Set Secotr Base Address
; Set Address and Data
; User Program Mode Enable
; Mode Select
; Write data at flash
; User Program Mode Disable
; User Program Mode Disable
;; Check Sector
;; Check Address
;; Increse Address
;; Update Data to Write
S3F80JB

Advertisement

Table of Contents
loading

Table of Contents