SM39A16M1
8-Bit Micro-controller
16KB with ISP Flash
& 1K+256B RAM embedded
16. LVI & LVR – Low Voltage Interrupt and Low Voltage Reset
The interrupt vector 63h
Mnemonic
Description
Dir.
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
RST
Watchdog Timer
Reset status
register
Low voltage
control register
LVRLP
INTF
LVRLP
F
RSTS
LVC
A1h
E6h
-
PDRF WDTF SWRF LVRF
LVRLP
PORF
00H
20H
LVI_E
N
LVRLPE
LVRE
LVIF
-
LVIS[1:0]
INTE
Mnemonic: RSTS
Address: A1h
7
-
6
5
4
3
2
1
0
Reset
00H
LVRLP INTF
LVRLPF
PDRF WDTF SWRF
LVRF
PORF
LVRLPINTF “Internal” Low voltage reset flag.
When MCU is reset by LVR_LP_INT, LVRLPINTF flag will be set to one by hardware.
This flag clear by software.
LVRLPF “External” Low voltage reset flag.
When MCU is reset by LVR(External Low Power), LVRLPF flag will be set to one by
hardware. This flag clear by software.
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.
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.
Mnemonic: LVC
Address: E6h
Reset
20H
7
6
5
4
LVIF
3
2
-
1
0
LVI_EN
LVRLPE
LVRE
LVRLP INTE
LVIS[1:0]
LVI_EN: Low voltage interrupt function enable bit.
LVI_EN = 0 - disable low voltage detect function.
LVI_EN = 1 - enable low voltage detect function.
LVRLPE External low voltage reset function (Low Power)enable bit.
LVRLPE = 0 - disable external low voltage reset(Low Power) function.
LVRLPE = 1 - enable external low voltage reset(Low Power) function.
LVRE: External low voltage reset function enable bit.
LVRXE = 0 - disable external low voltage reset function.
LVRXE = 1 - enable external low voltage reset function.
Note: LVR = 1.50 V
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M069 Ver C SM39A16M1 7/31/2013
- 89 -