English
Language : 

SM39R16A2 Datasheet, PDF (16/82 Pages) SyncMOS Technologies,Inc – Dual 16-bit Data Pointers
SM39R16A2/SM39R12A2/SM39R08A2
8-Bit Micro-controller
16KB/12KB/8KB with ISP Flash
& 256B RAM embedded
1.5.3 Reset status
Mnemonic: RSTS
Address: A1h
7
6
5
4
3
2
1
0
Reset
-
-
-
PDRF WDTF SWRF LVRF PORF 00H
PDRF: Pad reset flag.
When MCU is reset by reset pad, PDRF flag will be set to one by hardware. This flag clear by
software.
WDTF: Watchdog timer reset flag.
When MCU is reset by watchdog, WDTF flag will be set to one by hardware. This flag clear by
software.
SWRF: Software reset flag.
When MCU is reset by software, SWRF flag will be set to one by hardware. This flag clear by
software.
LVRF: Low voltage reset flag.
When MCU is reset by LVR, LVRF flag will be set to one by hardware. This flag clear by
software.
PORF: Power on reset flag.
When MCU is reset by POR, PORF flag will be set to one by hardware. This flag clear by
software.
1.5.4 Time Access Key register (TAKEY)
Mnemonic: TAKEY
7
6
5
4
3
2
TAKEY [7:0]
Address: F7H
1
0
Reset
00H
Software reset register (SWRES) is read-only by default; software must write three specific values 55h, AAh
and 5Ah sequentially to the TAKEY register to enable the SWRES register write attribute. That is:
MOV TAKEY, #55h
MOV TAKEY, #0AAh
MOV TAKEY, #5Ah
1.5.5 Software Reset register (SWRES)
Mnemonic: SWRES
Address: E7H
7
6
5
4
3
2
1
0
Reset
SWRES [7:0]
00H
SWRES [7:0]: Software reset register bit. These 8-bit is self-reset at the end of the reset procedure.
SWRES [7:0] = FFh, software reset.
SWRES [7:0] = 00h ~ FEh, MCU no action.
1.5.6 Example of software reset
MOV TAKEY, #55h
MOV TAKEY, #0AAh
MOV TAKEY, #5Ah ; enable SWRES write attribute
MOV SWRES, #0FFh ; software reset MCU
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M057
16
Ver.H SM39R16A2 07/2012