Samsung S3F80P5X User Manual page 282

S3f80p5 microcontrollers
Table of Contents

Advertisement

EMBEDDED FLASH MEMORY INTERFACE
SECTOR_ERASE:
LD
NOCARRY:
ERASE_START:
ERASE_STOP:
14-10
R12,SecNumH
LD
R14,SecNumL
MULT
RR12,#80H
MULT
RR14,#80H
ADD
R13,R14
LD
R10,R13
LD
R11,R15
SB1
LD
FMUSR,#0A5H
LD
FMSECH,R10
LD
FMSECL,R11
LD
FMCON,#10100001B
LD
FMUSR,#00H
SB0
RET
; Calculation the base address of a target sector
; The size of one sector is 128-bytes
; BTJRF FLAGS.7,NOCARRY
; INC
R12
; User program mode enable
; Set sector address
; Select erase mode enable & Start sector erase
; User program mode disable
S3F80P5_UM_ REV1.00

Advertisement

Table of Contents
loading

Table of Contents