![Samsung S3F80JB Скачать руководство пользователя страница 289](http://html.mh-extra.com/html/samsung/s3f80jb/s3f80jb_user-manual_340834289.webp)
EMBEDDED FLASH MEMORY INTERFACE
S3F80JB
15-10
PROGRAMMING TIP — Sector Erase
Case1. Erase one sector
•
•
ERASE_ONESECTOR:
SB1
LD
FMUSR,#0A5H
; User program mode enable
LD
FMSECH,#40H ; Set sector address 4000H,sector 128,
LD
FMSECL,#00H ; among sector 0~511
LD
FMCON,#10100001B ; Select erase mode enable & Start sector erase
ERASE_STOP:
LD
FMUSR,#00H ; User program mode disable
SB0
Case2.Erase flash memory space from Sector (n) to Sector (n + m)
•
•
;;Pre-define the number of sector to erase
LD SecNumH,#00H
; Set sector number
LD SecNumL,#128
; Selection the sector128 ( base address 4000H )
LD R6,#01H
; Set the sector range (m) to erase
LD R7,#7DH
; into High-byte(R6) and Low-byte(R7)
LD R2,SecNumH
LD R3,SecNumL
ERASE_LOOP:
CALL SECTOR_ERASE
XOR P4,#11111111B
; Display ERASE_LOOP cycle
INCW RR2
LD SecNumH,R2
LD SecNumL,R3
DECW RR6
LD R8,R6
OR R8,R7
CP R8,#00H
JP NZ,ERASE_LOOP
•
•
Содержание S3F80JB
Страница 1: ...S3F80JB 8 BIT CMOS MICROCONTROLLERS USER S MANUAL Revision 1 1 ...
Страница 327: ...ELECTRICAL DATA 8MHz S3F80JB 18 14 NOTES ...
Страница 339: ...FLASH APPLICATION NOTES S3F80JB Programming By Tool ...
Страница 341: ...S3F80JB 2 This is only an example for setting Vdd This is SPW2 which is one of OPT MTP Writers ...
Страница 342: ...Important Note Subject Toggling phenomenon when serial writing programming on the S3F80JB ...