em78f644nso28s ELAN Microelectronics Corp, em78f644nso28s Datasheet - Page 158

no-image

em78f644nso28s

Manufacturer Part Number
em78f644nso28s
Description
Flash Series 8-bit Microcontroller
Manufacturer
ELAN Microelectronics Corp
Datasheet
EM78F648/644/642/641/548/544/542/541N
8-Bit Microcontroller
148 •
6.13.2 LVD Interrupt
The LVD status and interrupt flag refers to Bank0 RC (Section 6.3.9) and Bank0 R1C
(Section 6.3.20). Their respective Bit 7 operation mode is as follows.
Bit 7 (LVDIF): Low voltage Detector interrupt flag.
Bits 7 (LVDIE): LVDIF interrupt enable bit
6.13.3 LVD Function Setup
To setup the LVD function, perform the following steps:
1) Set the LVDEN to “1”, then use Bits 1,0 (LVD1, LVD0) of Register RB to set LVD
2) Enable LVDIE
3) Wait for the LVD interrupt to occur
4) Clear LVD interrupt flag
LVDIE
LVD Interrupt Flag (Bank0 RC)
LVD Interrupt Enable (Bank0 R1C)
LVDIF
Bit 7
Bit 7
interrupt level
Bit 6
Bit 6
When LVD1, LVD0 = “0,0”, Vdd > 2.2V, LVDIF is “0”, Vdd<= 2.2V,
set LVDIF to “1”. LVDIF reset to “0” by software.
When LVD1, LVD0 = “0,1”, Vdd > 3.3V, LVDIF is “0”, Vdd<= 3.3V,
set LVDIF to “1”. LVDIF reset to “0” by software.
When LVD1, LVD0 = “1,0”, Vdd > 4.0V, LVDIF is “0”, Vdd<= 4.0V,
set LVDIF to “1”. LVDIF reset to “0” by software.
When LVD1, LVD0 = “1,1”, Vdd > 4.5V, LVDIF is “0”, Vdd<= 4.5V,
set LVDIF to “1”. LVDIF reset to “0” by software.
0
0
0: Disable LVDIF interrupt
1: Enable LVDIF interrupt
SPIE
Bit 5
SPIF
Bit 5
PWMBIE
PWMBIF
Bit 4
Bit 4
(This specification is subject to change without further notice)
PWMAIE
PWMAIF
Bit 3
Bit 3
Product Specification (V1.0) 05.05.2010
EXIE
Bit 2
Bit 2
EXIF
Bit 1
Bit 1
ICIE
ICIF
TCIE
Bit 0
Bit 0
TCIF

Related parts for em78f644nso28s