English
Language : 

SM59R16A2 Datasheet, PDF (59/67 Pages) SyncMOS Technologies,Inc – 8-Bit Micro-controller
SM59R16A2/SM59R08A2
8-Bit Micro-controller
64KB/32KB ISP Flash & 2KB RAM embedded
17 EEPROM
For any byte in the 64KB/32KB Flash memory which is not programmed, it can be used to record the
data. The data can be stored and updated as if there is EEPROM embedded. Since it is not really
saved into EEPROM, it is also called “virtual EEPROM” function. The EEPROM function in
SM59R16A2/SM59R08A2 is easy to be used. Basically, it is done by hardware circuits to reduce the
efforts in firmware coding. The necessary data move, page erase and write back, etc, are executed
automatically by this hardware.
It is worth reminding again that the location of the EEPROM can be any byte within the program
Flash where no program code occupies. Users must be very careful in doing EEPROM write, not to
write to the program area.
The users can only set the PMW (program memory write) bit to do the EEPROM function through
ACC register. If PMW = 1, the MOVX instruction will read/write the data from/to the Flash memory
directly, instead of the internal or external SRAM. Data overwrite (update) is also supported because
the hardware circuits will erase the original data first, then write the new data.
Mnemonic Description
PCON
PES
Power Control
Program Memory
Page Erase
Control Register
Direct Bit 7 Bit 6 Bit 5 Bit 4
EEPROM Function
87h SMOD MDUF -
PMW
A1h EPE
-
-
-
Bit 3
-
-
Bit 2 Bit 1 Bit 0 RESET
-
STOP IDLE 00h
-
-
-
00h
Mnemonic: PCON
7
6
5
4
3
SMOD MDUF
-
PMW
-
Address: 87h
2
1
0
Reset
-
STOP IDLE 00h
When the PMW is cleared or after reset, the MOVX instructions allow read/write access to the data
memory address space again. The software switches the PMW bit to enable access to the program
memory address space. The following table shows the program memory instructions when the
PMW bit is set.
Mnemonic
MOVX A,@Ri
MOVX A,@DPTR
MOVX @Ri,A
MOVX @DPTR,A
Description
Move program memory data (8-bits addr.) to ACC
Move program memory data (16-bits addr.) to ACC
Move ACC to program memory (8-bits addr.)
Move ACC to program memory (16-bits addr.)
Mnemonic: PES
Address: A1h
7
6
5
4
3
2
1
0
Reset
EPE
-
-
-
-
-
-
-
00h
When enable the EPE bit,the Page Erase(Each page include 512 bytes) function can be executed
by below Instructions。
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M034
59
Ver.B SM59R16A2/SM59R08A2 06/2009