SyncMOS Technologies International, Inc.
SM5964A
8-Bit Micro-controller
With 64KB ISP Flash & TWSI & PWM & 1KB RAM embedded
ISPFAH ($F4H)
Bit7
FA15
Bit6
FA14
Bit5
FA13
Bit4
FA12
Bit3
FA11
Bit2
FA10
Bit1
FA9
Bit0
FA8
FA15 ~ FA8: flash address-high for ISP function
ISPFAL ($F5H)
Bit7
FA7
Bit6
FA6
Bit5
FA5
Bit4
FA4
Bit3
FA3
Bit2
FA2
Bit1
FA1
Bit0
FA0
FA7 ~ FA0: flash address-low for ISP function
The ISPFAH & ISPFAL provide the 16-bits 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.
ISPFD ($F6H)
Bit7
FD7
Bit6
FD6
Bit5
FD5
Bit4
FD4
Bit3
FD3
Bit2
FD2
Bit1
FD1
Bit0
FD0
FD7 ~ FD0: flash data for ISP function
The ISPFD provide the 8-bits data for ISP function.
ISPC ($F7H)
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
START
ISPF1
ISPF0
ISPF[1: 0]: ISP function select bit
START: ISP function start bit
= 1: start ISP function which indicated by bit 1, bit 0 (ISPF1, ISPF0)
= 0: no operation
The START bit is read-only by default, software must write three specific values 55H, AAH and 55H sequentially to the
ISPFD register to enable the START bit write attribute. That is:
Ex:Open ISP function:
MOV ISPFD, #55H
MOV ISPFD, #0AAH
MOV ISPFD, #55H
Any attempt to set START bit will not be allowed without the procedure above.
After START bit set to 1 then the SM5964A hardware circuit will latch address and data bus and hold the program counter
until the START bit reset to 0 when ISP function finished. User does not need to check START bit status by software
method
ISPF [1:0]
ISP function
00
01
10
11
Byte Program
Chip Protect
Page erase (512 Bytes)
Chip Erase
ISPF[1:0]: ISP function select bits
One page of flash memory is 512 bytes.
To perform byte program / page erase ISP function, user need to specify flash address at first. When performing page
erase function, SM5964A will erase entire page which flash address indicated by ISPFAH registers located within the
page.
To perform chip erase ISP function, SM5964A will erase all the flash program memory and data flash memory except the
Specifications subject to change without notice contact your sales representatives for the most recent information.
Ver 2.3 SM5964A 10/2006
23