SN8F2270B Series
USB 2.0 Low-Speed 8-Bit Micro-Controller
11.4 PROGRAMMING/ERASE DATA REGISTER
0BDH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PERAML
Read/Write
After reset
PERAML7 PERAML6 PERAML5 PERAML4 PERAML3 PERAML2 PERAML1 PERAML0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
0BEH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2 Bit 1
Bit 0
PERAML8
R/W
PERAMCNT PERAMCNT4 PERAMCNT3 PERAMCNT2 PERAMCNT1 PERAMCNT0
Read/Write
After reset
-
-
-
-
-
-
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
0
{PERAMCNT [0], PERAML [7:0]}: Define the starting RAM address [8:0], which stores the data wanted to be
programmed. The valid RAM addresses are 00H ~ 07FH.
PERAMCNT [7:3]: Defines the number of words wanted to be programmed. The maximum PERAMCNT [7:3] is 01FH,
which program 32 words (64 bytes RAM) to the Flash. The minimum PERAMCNT [7:3] is 00H, which program only 1
word to the Flash.
Note: 1. If the code option SECURITY0 = 1 (SECURITY enable), the FLASH ROM ADDRESS = 0x1380 ~ 0x13FF
will not allow to do the “page erase and page program”.
2. If the code option SECURITY0 = 0 (SECURITY disable), the code option address 0x13FC ~ 0x13FF will
not be protected by hardware. And the code option can be “erase and program” by the
in-system-programming function.
11.4.1 Flash In-system-programming mapping address
RAM (byte)
bit7 ~ bit0
DATA0
Flash ROM (word)
bit15 ~ bit8
bit7 ~ bit0
X
X+1
Y
Y+1
DATA1
DATA3
DATA0
DATA2
DATA1
X+2
DATA2
DATA3
Y+2
=>
X+3
…
Y+3
…
X+N
DATAN
Y+M
DATAN
DATAN-1
SONiX TECHNOLOGY CO., LTD
Page 97
Version 1.2