SN8F2250B Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
11.3 PROGRAMMING/ERASE ADDRESS REGISTER
0BBH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PEROML
Read/Write
After reset
PEROML7 PEROML6 PEROML5 PEROML4 PEROML3 PEROML2 PEROML1 PEROML0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
Bit [7:0] PEROML[7:0]: Define the target starting low byte address [7:0] of Flash memory (10K x 16) which is going
to be programmed or erased.
0BCH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PEROMH
Read/Write
After reset
PEROMH7 PEROMH6 PEROMH5 PEROMH4 PEROMH3 PEROMH2 PEROMH1 PEROMH0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
Bit [7:0] PEROMH [7:0]: Define the target starting high address [15:8] of Flash memory (10K x 16) which is going to
be programmed or erased.
The valid PAGE ERASE starting addresses are 0x0, 0x80, 0x100, 0x180, 0x 200, 0x280, 0x300, 0x380 … 0x2780.
The page erase function is used to erase a page of 128 contiguous words in Flash ROM.
Note: If the code option SECURITY1 = 0 (SECURITY1 disable), the code option address 0x27FC ~ 0x27FF will
NOT be protected by hardware. And the code option can be “erase and program” by the
in-system-programming function. To avoid the error occur, when SECUIRTY1 = 0 (SECURITY1 disable),
please DO NOT set the PAGE ERASE starting address at 0x2780.
The valid PAGE PROGRAM starting addresses are 0x0, 0x20, 0x40, 0x60, 0x80, 0xA0, 0xC0, 0xE0 … 0x27E0. The
page program function is used to program a page of 32 contiguous words in Flash ROM.
10Kx16 FLASH
User reset vector
Jump to user start address
0000H
Reset vector
0001H
.
.
General purpose area
Interrupt vector
0007H
0008H
0009H
.
User interrupt vector
User program
.
000FH
0010H
0011H
.
General purpose area
.
.
2000H
.
27FBH
27FCH
27FDH
27FEH
27FFH
End of user program
SECURITY1 protect &
Reserved (Code option)
Flash ROM mapping
Note: 1. If the code option SECURITY1 = 1 (SECURITY1 enable), the FLASH ROM ADDRESS = 0x2000 ~
0x27FF will not allow to do the “page erase and page program”.
2. If the code option SECURITY1 = 0 (SECURITY1 disable), the code option address 0x27FC ~ 0x27FF
will not be protected by hardware. And the code option can be “erase and program” by the
in-system-programming function.
SONiX TECHNOLOGY CO., LTD
Page 116
Version 1.1