SyncMOS Technologies International, Inc.
SM5964A
8-Bit Micro-controller
With 64KB ISP Flash & TWSI & PWM & 1KB RAM embedded
ISP service program space if lock bit N been configured. Also, SM5964A will un-protect the flash memory automatically.
To perform chip protect ISP function, all the flash memory will be read all zero.
e.g. ISP service program to do the byte program - to program data of #22H to the address of the $1005H
MOV ISPFD, #55H
MOV ISPFD, #0AAH
MOV ISPFD, #55H
MOV SCONF, #04H
MOV ISPFAH, #10H
MOV ISPFAL, #05H
MOV ISPFD, #22H
MOV ISPFC, #80H
; open ISP function
; enable SM5964A ISP function
; set flash address-high, 10H
; set flash address-low, 05H
; set flash data to be programmed, data = 22H
; 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
; program counter then point to the next instruction
The Power Down Wake Up (PDWU) function
The device can be put into Power Down mode by writing 1 to bit PCON.1. The instruction that does this will be the last
instruction to be executed before the device goes into Power Down mode. In the Power Down mode, all the clocks are
stopped and the device comes to a halt. All activity is completely stopped and the power consumption is reduced to the
lowest possible value. In this state the ALE and PSEN pins are pulled low. The port pins output the values held by their
respective SFRs.
PCON ($87H)
Bit7
SMOD
Bit6
Bit5
Bit4
Bit3
GF1
Bit2
GF0
Bit1
PD
Bit0
IDLE
SMOD: This bit set to ‘1’ to make the UART baud-rate double.
GF1: General-purpose flag bit.
GF0: General-purpose flag bit.
PD: When set to ‘1’ , the MCU will into Power Down mode
IDLE: When set to ‘1’ , the MCU will into IDLE mode
SCONF ($BFH)
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
PDWUE
ISPE
OME
ALEI
PDWUE: When set to ‘1’, enable the PDWU function.
ISPE: When set to ‘1’, enable the ISP function.
IE ($A8H)
Bit7
EA
Bit6
Bit5
ET2
Bit4
ES0
Bit3
ET1
Bit2
EX1
Bit1
ET0
Bit0
EX0
EA: When set to ‘1’, enable interrupt global.
ET2: When set to ‘1’, enable Timer2 interrupt.
ES0: When set to ‘1’, enable UART interrupt.
ET1: When set to ‘1’, enable Timer1 interrupt.
EX1: When set to ‘1’, enable external interrupt 1.
ET0: When set to ‘1’, enable Timer0 interrupt.
EX0: When set to ‘1’, enable external interrupt 0.
IE1 ($A9H)
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
ETWSI
Specifications subject to change without notice contact your sales representatives for the most recent information.
Ver 2.3 SM5964A 10/2006
24