![Nuvoton NuMicro MS51 Series Скачать руководство пользователя страница 181](http://html1.mh-extra.com/html/nuvoton/numicro-ms51-series/numicro-ms51-series_technical-reference-manual_1720304181.webp)
MS51
Dec. 17, 2019
Page
181
of 316
Rev 1.01
M
S51
SE
RIES
TE
CHNICA
L REF
ERE
N
CE MA
NU
A
L
IAP Mode
IAPCN
IAPA[15:0]
{IAPAH, IAPAL}
IAPFD[7:0]
IAPB
[1:0]
FOEN
FCEN
FCTRL
[3:0]
CONFIG byte-read
11
0
0
0000
CONFIG0: 0000H
CONFIG1: 0001H
CONFIG2: 0002H
CONFIG4: 0004H
CONFIG6: 0005H
Data out
Note:
1.
“X” means “don’t care”.
2. Each page is 128 bytes size. Therefore, the address should be the address pointed to the target page
Table 6.3-1 IAP Modes and Command Codes
Control register
6.3.1.2
The following registers are related to IAP processing.
CONFIG2
7
6
5
4
3
2
1
0
CBODEN
CBOV[2:0]
BOIAP
CBORST
-
-
R/W
R/W
R/W
R/W
-
-
Factory default value: 1111 1111b
Bit
Name
Description
3
BOIAP
Brown-out inhibiting IAP
This bit decide whether IAP erasing or programming is inhibited by brown-out status. This bit is
valid only when brown-out detection is enabled.
1 = IAP erasing or programming is inhibited if V
DD
is lower than V
BOD
.
0 = IAP erasing or programming is allowed under any workable V
DD
.
CHPCON
– Chip Control
Regiser
Address
Reset Value
CHPCON
9FH, all pages,TA protected
Software: 0000_00U0b
Others 0000_00C0b
7
6
5
4
3
2
1
0
SWRST
IAPFF
-
-
-
-
BS
IAPEN
W
R/W
-
-
-
-
R/W
R/W
Bit
Name
Description
6
IAPFF
IAP fault flag
The hardware will set this bit after IAPGO (IAPTRG.0) is set if any of the following condition is met:
(1) The accessing address is oversize.
(2) IAPCN command is invalid.
(3) IAP erases or programs updating un-enabled block.
(4) IAP erasing or programming operates under V
BOD
while BOIAP (CONFIG2.5) remains un-
programmed 1 with BODEN (BODCON0.7) as 1 and BORST (BODCON0.2) as 0.
This bit should be cleared via software.