English
Language : 

SM5964A Datasheet, PDF (24/30 Pages) SyncMOS Technologies,Inc – 8-Bit Micro-controller With 64KB ISP Flash & TWSI & PWM & 1KB RAM embedded
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
; open ISP function
MOV SCONF, #04H
; enable SM5964A ISP function
MOV ISPFAH, #10H
; set flash address-high, 10H
MOV ISPFAL, #05H
; set flash address-low, 05H
MOV ISPFD, #22H
; set flash data to be programmed, data = 22H
MOV ISPFC, #80H
; 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
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
SMOD
GF1
GF0
PD
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
PDWUE
PDWUE: When set to ‘1’, enable the PDWU function.
ISPE: When set to ‘1’, enable the ISP function.
Bit2
ISPE
Bit1
OME
Bit0
ALEI
IE ($A8H)
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
EA
ET2
ES0
ET1
EX1
ET0
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.
24
Ver 2.3 SM5964A 10/2006