sm59128 SyncMOS Technologies,Inc, sm59128 Datasheet - Page 15

no-image

sm59128

Manufacturer Part Number
sm59128
Description
8-bits Micro-controller Embedded 128kb Flash & 1kb Ram & Iic & Spwm
Manufacturer
SyncMOS Technologies,Inc
Datasheet
Note: The default START bit is read-only , user’s software must write three specific values 55H, AAH and 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
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
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M027Ver: B SM59128
START: ISP function start bit
FAU0: 64K program Flash bank select bit (only in ISP mode used)
ISPF [1:0]
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)
MOV ISPFD, #55H
MOV ISPFD, #0AAH
MOV ISPFD, #55H
MOV 0BFh, #04H
MOV 0F4h, #10H
MOV 0F5h, #05H
MOV 0F6h, #22H
MOV 0F7h, #80H
sequentially to the ISPFD register to enable the START bit write attribute. That is:
01
10
11
00
SyncMOS Technologies International, Inc.
= 1: start ISP function which indicated by bit 1, bit 0 (ISPF1, ISPF0)
= 0: no operation
MOV ISPFD, #55H
MOV ISPFD, #0AAH
MOV ISPFD, #55H
= 1: selected 64K bank1 flash
= 0: selected 64K bank0 flash
Byte program
Chip protect
Page erase (512Byte)
Chip erase
ISP function
; start to program #22H to the flash address $1005H
; set flash address-high, 10H
; set flash address-low, 05H
; set flash data to be programmed, data = 22H
; enable SM59128 ISP function
; after byte program finished, START bit of FCR will be reset to 0 automatically
; program counter then point to the next instruction
※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).
15
Embedded 128KB flash & 1KB RAM & IIC & SPWM
8-Bits Micro-controller
SM59128
06/2009

Related parts for sm59128