SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
Table 21-1 ISP code area
ISP service program address
No ISP service program
0
1
2
3
4
5
6
7
8
9
256 bytes (0xFF00h ~ 0xFFFFh)
512 bytes (0xFE00h ~ 0xFFFFh)
768 bytes (0xFD00h ~ 0xFFFFh)
1.0 K bytes (0xFC00h ~ 0xFFFFh)
1.25 K bytes (0xFB00h ~ 0xFFFFh)
1.5 K bytes (0xFA00h ~ 0xFFFFh)
1.75 K bytes (0xF900h ~ 0xFFFFh)
2.0 K bytes (0xF800h ~ 0xFFFFh)
2.25 K bytes (0xF700h ~ 0xFFFFh)
10 2.5 K bytes (0xF600h ~ 0xFFFFh)
11 2.75 K bytes (0xF500h ~ 0xFFFFh)
12 3.0 K bytes (0xF400h ~ 0xFFFFh)
13 3.25 K bytes (0xF300h ~ 0xFFFFh)
14 3.5 K bytes (0xF200h ~ 0xFFFFh)
15 3.75 K bytes (0xF100h ~ 0xFFFFh)
16 4.0 K bytes (0xF000h ~ 0xFFFFh)
ISP service program configurable in N*256 byte (N= 0 ~ 16)
21.3 Program the ISP Service Program
After Lock Bit N is set and ISP service program been programmed, the ISP service program memory will be protected
(locked) automatically. The lock bit N has its own program/erase timing. It is different from the flash memory
program/erase timing so the locked ISP service program can not be erased by flash erase function. If user needs to
erase the locked ISP service program, he can do it by writer only. User can not change ISP service program when
SM59A16U1 was in system.
21.4
Initiate ISP Service Program
To initiate the ISP service program is to load the program counter (PC) with start address of ISP service program and
execute it. There are four ways to do so:
(1) Blank reset. Hardware reset with first flash address blank (0x0000h = 0xFFH) will load the PC with start address of
ISP service program. The hardware reset includes Internal (power on reset) and external pad reset.
(2) Execute jump instruction can load the start address of the ISP service program to PC.
(3) Enters ISP service program by hardware setting. User can force SM59A16U1 enter ISP service program by
setting P3.4 “active low” during hardware reset period. The hardware reset includes Internal (power on reset) and
external pad reset. In application system design, user should take care of the setting of P3.4 at reset period to
prevent SM59A16U1 from entering ISP service program.
(4) Enter‟s ISP service program by UART setting, the RXD0 received 0x55h data (baud rate: 57600bps) during
hardware reset period. The hardware reset includes internal (power on reset) and external pad reset.
(5) Enter‟s ISP service program by USB setting, the USB setup command (Endpoint 0) received sequence data: 0x40,
0x20, 0x5A, 0xA5, 0x69, 0x96, 0x02, 0x00 during hardware reset period. The hardware reset includes internal
(power on reset) and external pad reset.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071
Ver A SM59A16U1 04/12/2013
- 135 -