SyncMOS Technologies International, Inc.
SM59128
8-Bits Micro-controller
Embedded 128KB flash & 1KB RAM & IIC & SPWM
ISPF [1:0]
ISP function
※The ISP chip erase function is able to erase all of the 128KB
flash memory space except the locked ISP service program space
of bank0 ( Note: The locked ISP service program space of bank1
will be erased if user executes ISP chip erase function).
00
01
10
11
Byte program
Chip protect
Page erase (512Byte)
Chip erase
START: ISP function start bit
= 1: start ISP function which indicated by bit 1, bit 0 (ISPF1, ISPF0)
= 0: no operation
FAU0: 64K program Flash bank select bit (only in ISP mode used)
= 1: selected 64K bank1 flash
= 0: selected 64K bank0 flash
Note: The default START bit is read-only , user’s software must write three specific values 55H, AAH and 55H
sequentially to the ISPFD register to enable the START bit write attribute. That is:
MOV ISPFD, #55H
MOV ISPFD, #0AAH
MOV ISPFD, #55H
After START bit is set to 1 then the SM59128 hardware circuit will latch flash address and data bus and hold the
program counter until the START bit reset to 0 when ISP function was finished. The program counter (PC) will point to
next instruction after START bit reset to 0. User does not need to check START bit status by software method.
Before executing byte program/page erase ISP function, user needs to specify flash address at first. When executing
page erase function, SM59128 will erase whole page of flash address indicated by ISPFAH & ISPFAL registers
within the page.
Example: flash address: $XYMN
Page erase function will erase address from $XY00 to $X(Y+1)FF (Y: even number), or
Page erase function will erase address from $X(Y-1)00 to $XYFF (Y: odd number)
To perform the ISP chip erase function, SM59128 will erase all the flash program memory and data flash memory
except the ISP service program space if lock bit N has been configured. Also, SM59128 will de-protect the flash
memory automatically. After chip protect ISP function is executed, all the flash memory will be read as #00H.
Example: ISP service program performs the “byte program” - to program #22H to the address $1005H
MOV ISPFD, #55H
MOV ISPFD, #0AAH
MOV ISPFD, #55H
MOV 0BFh, #04H
MOV 0F4h, #10H
MOV 0F5h, #05H
MOV 0F6h, #22H
MOV 0F7h, #80H
; enable SM59128 ISP function
; set flash address-high, 10H
; set flash address-low, 05H
; set flash data to be programmed, data = 22H
; start to program #22H to the flash address $1005H
; after byte program finished, START bit of FCR will be reset to 0 automatically
; program counter then point to the next instruction
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M027Ver: B SM59128
06/2009
15