![SONiX TECHNOLOGY CO. SN8F22711B Скачать руководство пользователя страница 105](http://html1.mh-extra.com/html/sonix-technology-co/sn8f22711b/sn8f22711b_user-manual_1321532105.webp)
SN8F2270B Series
USB 2.0 Low-Speed 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 105
Version 1.3
11.4 PROGRAMMING/ERASE DATA REGISTER
0BDH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PERAML
PERAML7 ERAML6 PE
RAML3 PERAML2 PERAML1 PERAML0
P
RAML5 PERAML4 PE
Read/Write
R/W R/W
R/W R
R/W R/W
R/W R/W
/W
After
reset
0 0 0 0 0 0 0 0
0BEH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2 Bit 1
Bit 0
PERAMCNT
PERAMCNT4 PERAMCNT3 PERAMCNT2 PERAMCNT1 PERAMCNT0 -
- PERAML8
Read/Write R/W
R/W
R/W R/W R/W
-
-
R/W
After
reset
0 0 0 0 0
-
-
0
{PERAMCNT [0], PERAML [7:0]}
:
Define the starting RAM address [8:0], which ores 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 (
RAM)
to the Flash. The minimum PERAM
ich program only 1
word to the Flash.
st
64 bytes
CNT [7:3] is 00H, wh
Note: 1. If the code option SECURITY0 = 1 (
e FLASH ROM ADDRESS = 0x1380 ~ 0x13FF
SECURITY enable), th
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
RAM (byte)
Flash ROM (word)
bit7 ~ bit0
bit15 ~ bit8
bit7 ~ bit0
X DATA0
Y
DATA1 DATA0
.1 Flash In-system-programming mapping address
X+1 DATA1
Y+1
DATA3 DATA2
X+2 DATA2
=>
Y+2
X+3 DATA3
Y+3
…
…
X+N DATAN
Y+M
DATAN DATAN-1