SM59R16A5/SM59R09A5/SM59R05A5
8-Bit Micro-controller
64KB/36KB/20KB with ISP Flash
& 2KB RAM embedded
Interface Control
register
ISP Flash
Address - High
register
IFCON
8Fh
E1h
ITS
CDPR
-
-
ALEC[1:0]
EMEN
ISPE
00H
FFH
ISPFAH
ISPFAH [7:0]
ISP Flash
ISPFAL
Address - Low
register
ISP Flash Data
register
ISP Flash Control
register
E2h
ISPFAL [7:0]
ISPFD [7:0]
FFH
ISPFD
ISPFC
E3h
E4h
FFH
00H
EMF1
EMF2
EMF3
3
EMF4
-
ISPF.2 ISPF.1 ISPF.0
Mnemonic: TAKEY
Address: F7H
7
6
5
4
2
1
0
Reset
00H
TAKEY [7:0]
ISP enable bit (ISPE) is read-only by default, software must write three specific values 55h, AAh and 5Ah
sequentially to the TAKEY register to enable the ISPE bit write attribute. That is:
MOV TAKEY, #55h
MOV TAKEY, #AAh
MOV TAKEY, #5Ah
Mnemonic: IFCON
Address: 8FH
7
ITS
6
5
-
4
-
3
2
1
0
Reset
00H
CDPR
ALEC[1:0]
EMEN
ISPE
The bit 0 (ISPE) of IFCON is ISP enable bit. User can enable overall SM59R16A5 ISP function by setting ISPE
bit to 1, to disable overall ISP function by set ISPE to 0. The function of ISPE behaves like a security key. User
can disable overall ISP function to prevent software program be erased accidentally. ISP registers ISPFAH,
ISPFAL, ISPFD and ISPFC are read-only by default. Software must be set ISPE bit to 1 to enable these 4
registers write attribute.
Mnemonic: ISPFAH
Address: E1H
7
6
5
4
3
2
1
0
Reset
FFH
ISPFAH7 ISPFAH6 ISPFAH5 ISPFAH4 ISPFAH3 ISPFAH2 ISPFAH1 ISPFAH0
ISPFAH [7:0]: Flash address-high for ISP function
Mnemonic: ISPFAL
Address: E2H
7
6
5
4
3
2
1
0
Reset
FFH
ISPFAL7 ISPFAL6 ISPFAL5 ISPFAL4 ISPFAL3 ISPFAL2 ISPFAL1 ISPFAL0
ISPFAL [7:0]: Flash address-Low for ISP function
The ISPFAH & ISPFAL provide the 16-bit flash memory address for ISP function. The flash memory address
should not include the ISP service program space address. If the flash memory address indicated by ISPFAH
& ISPFAL registers overlay with the ISP service program space address, the flash program/page erase of ISP
function executed thereafter will have no effect.
Mnemonic: ISPFD
Address: E3H
7
6
5
4
3
2
1
0
Reset
FFH
ISPFD7
ISPFD6
ISPFD5 ISPFD4
ISPFD3
ISPFD2
ISPFD1
ISPFD0
ISPFD [7:0]: Flash data for ISP function.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M047 77 Ver.G SM59R16A5 01/2014