English
Language : 

SM59D03G2 Datasheet, PDF (35/67 Pages) SyncMOS Technologies,Inc – 8-Bits Micro-controller
SM59D03G2
8-Bits Micro-controller
8KB+ ISP Flash & 1KB RAM embedded
Ex: Open ISP function:
MOV ISPFD,#055h
MOV ISPFD,#0AAh
MOV ISPFD,#055h
Any attempt to set START bit will not be allowed without procedure above.
After the START bit set to 1, the SM59D03G2 hardware circuit will latch
the address and data bus and hold the program counter until the START
bit resets to 0 when the ISP function finished. The user does not need to
check the START bit status by software method.
To perform byte program or page erase ISP function, the user needs to first specify the Flash
address. When performing the page erase function, the SM59D03G2 will erase the entire page
indicated by the Flash address in the ISPFAH register located within the page.
To perform chip erase ISP function, the SM59D03G2 will erase all the Flash program memory and
data Flash memory except the ISP program space. Also, the SM59D03G2 will unprotect the Flash
memory automatically if it has been protected by setting the information block bit LOCK=0. If
LOCK is 0, all the Flash memory will be read all zeros.
The following example is to show how the ISP service program does byte program – to program
data of #22h to the address of the $1005h
MOV ISPFD, #055h
MOV ISPFD, #0AAh
MOV ISPFD, #055h
MOV SCONF, #04h
MOV ISPFAH, #10h
MOV ISPFAL, #05h
MOV ISPFD, #22h
MOV ISPFC, #80h
; Open ISP function
; enable ISP function
; Set Flash address high byte
; Set Flash address low byte
; Set Flash data to be programmed
; Start to program data of 22h to the Flash address of the $1005h
; After byte program finished, START bit of ISPC will reset to 0 automatically
; and program counter then point to the next instruction.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M030
35
Ver.C SM59D03G2 07/2009