Abstract:
An electronic device includes a battery supplying power to the electronic device, a power management module transferring a first low-voltage interrupt to a processor if a voltage of the battery is lower than or equal to a first voltage, and the processor entering a sleep mode if the first low-voltage interrupt is received from the power management module, wherein the processor ignores other interrupt except an interrupt received from the power management module during the sleep mode. A power managing method of an electronic device, the method comprising generating a first low-voltage interrupt from a power management module if a battery voltage is lower than or equal to a first voltage, entering a sleep mode if the first low-voltage interrupt is generated, and ignoring other interrupts except an interrupt generated from the power management module during the sleep mode.

Description:
CROSS-REFERENCE TO RELATED APPLICATION AND CLAIM OF PRIORITY 
       [0001]    The present application is related to and claims the benefit under 35 U.S.C. §119(a) of a Korean patent application filed on May 28, 2015 in the Korean Intellectual Property Office and assigned Serial number 10-2015-0075274, the entire disclosure of which is hereby incorporated by reference. 
       TECHNICAL FIELD 
       [0002]    The present disclosure relates to an electronic device and a power managing method thereof. 
       BACKGROUND 
       [0003]    With advancement of electronic devices, a variety of electronic products are developed and popularized for consumers. In particular, portable electronic devices such as smart phones, tablet computers are widely commercialized in recent years. Portable electronic devices employ embedded or detachable batteries as power supplies for their portability. As batteries have finite capacities, electronic devices can be operable after replacing or recharging the batteries in the case that the batteries become short in residual. 
         [0004]    Reduced battery residual may drop a voltage of the battery. If a battery voltage is lower than or equal to a specific level, an electronic device thereof may be turned off because of insufficient drivability. If power of an electronic device is repaired by replacement or recharge after turn-off, the electronic device begins with a booting process at the first turn-on time. Although a battery of an electronic device begins to be charged even in a power-off state, a user is not able to use the electronic device immediately. An electronic device in charge needs a time for obtaining least power to stably boot itself or needs a given time for booting itself. 
       SUMMARY 
       [0005]    To address the above-discussed deficiencies, it is a primary object to provide at least the advantages described below. Accordingly, an aspect of the present disclosure is to provide an electronic device that enters a state of using least power without turning off the electronic device even if a battery voltage is lower than or equal to a specific voltage, and a power managing method thereof. 
         [0006]    In accordance with an aspect of the present disclosure, an electronic device includes a battery configured to supply power to the electronic device, a power management module configured to transfer a first low-voltage interrupt to a processor if a voltage of the battery is lower than or equal to a first voltage, and the processor configured to enter a sleep mode if the first low-voltage interrupt is received from the power management module, wherein the processor is configured to ignore other interrupt except an interrupt, which is received from the power management module, in the sleep mode. 
         [0007]    In accordance with an aspect of the present disclosure, a power managing method of an electronic device includes generating a first low-voltage interrupt from a power management module if a battery voltage is lower than or equal to a first voltage, entering a sleep mode if the first low-voltage interrupt is generated, and ignoring other interrupt except an interrupt that is generated from the power management module in the sleep mode. 
         [0008]    In accordance with an aspect of the present disclosure, a computer-readable recording medium may record a program, which is executed, causing an electronic device, to perform a method. The method may include generating a first low-voltage interrupt from a power management module if a battery voltage is lower than or equal to a first voltage, entering a sleep mode if the first low-voltage interrupt is generated, and ignoring other interrupt except an interrupt that is generated from the power management module in the sleep mode. 
         [0009]    Other aspects, advantages, and salient features of the disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses various embodiments of the present disclosure. 
         [0010]    Before undertaking the DETAILED DESCRIPTION below, it may be advantageous to set forth definitions of certain words and phrases used throughout this patent document: the terms “include” and “comprise,” as well as derivatives thereof, mean inclusion without limitation; the term “or,” is inclusive, meaning and/or; the phrases “associated with” and “associated therewith,” as well as derivatives thereof, may mean to include, be included within, interconnect with, contain, be contained within, connect to or with, couple to or with, be communicable with, cooperate with, interleave, juxtapose, be proximate to, be bound to or with, have, have a property of, or the like; and the term “controller” means any device, system or part thereof that controls at least one operation, such a device may be implemented in hardware, firmware or software, or some combination of at least two of the same. It should be noted that the functionality associated with any particular controller may be centralized or distributed, whether locally or remotely. Definitions for certain words and phrases are provided throughout this patent document, those of ordinary skill in the art should understand that in many, if not most instances, such definitions apply to prior, as well as future uses of such defined words and phrases. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0011]    For a more complete understanding of the present disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which like reference numerals represent like parts: 
           [0012]      FIG. 1  is a block diagram illustrating a configuration of an electronic device according to various embodiments of the present invention; 
           [0013]      FIGS. 2A and 2B  illustrate user interfaces according to various embodiments of the present invention; 
           [0014]      FIG. 3  is a flow chart showing a power management method according to various embodiments of the present invention; and 
           [0015]      FIG. 4  is a block diagram illustrating an electronic device according to various embodiments of the present invention. 
       
    
    
       [0016]    Throughout the drawings, it should be noted that like reference numbers are used to depict the same or similar elements, features, and structures. 
       DETAILED DESCRIPTION 
       [0017]      FIGS. 1 through 4 , discussed below, and the various embodiments used to describe the principles of the present disclosure in this patent document are by way of illustration only and should not be construed in any way to limit the scope of the disclosure. Those skilled in the art will understand that the principles of the present disclosure may be implemented in any suitably arranged electronic device. Hereinafter, various embodiments of the present disclosure will be described in conjunction with the accompanying drawings. Various embodiments described herein, however, may not be intentionally confined in specific embodiments, but should be construed as including diverse modifications, equivalents, and/or alternatives. With respect to the descriptions of the drawings, like reference numerals refer to like elements. 
         [0018]    The terms “have”, “may have”, “include”, “may include”, “comprise”, or “may comprise” used herein indicate existence of corresponding features (e.g., numerical values, functions, operations, or components) but does not exclude other features. 
         [0019]    As used herein, the terms “A or B”, “at least one of A or/and B”, or “one or more of A or/and B” may include all allowable combinations which are enumerated together. For example, the terms “A or B”, “at least one of A and B”, or “at least one of A or B” may indicate all cases of: (1) including at least one A, (2) including at least one B, or (3) including both at least one A, and at least one B. 
         [0020]    As used herein, the terms such as “1st”, “2nd”, “first”, “second”, and the like may be used to qualify various elements regardless of their order and/or priority, simply differentiating one from another, but do not limit those elements thereto. For example, both a first user device and a second user device indicate different user devices. For example, a first element may be referred to as a second element and vice versa without departing from the scope of the present disclosure. 
         [0021]    As used herein, if one element (e.g., a first element) is referred to as being “operatively or communicatively connected with/to” or “connected with/to” another element (e.g., a second element), it should be understood that the former may be directly coupled with the latter, or connected with the latter via an intervening element (e.g., a third element). Otherwise, it will be understood that if one element is referred to as being “directly coupled with/to” or “directly connected with/to” with another element, it may be understood that there is no intervening element (e.g., a third element) existing between them. 
         [0022]    In the description or claims, the term “configured to” (or “set to”) may be changeable with other implicative meanings such as “suitable for”, “having the capacity to”, “designed to”, “adapted to”, “made to”, or “capable of” and may not simply indicate “specifically designed to”. Alternatively, in some circumstances, a term “a device configured to” may indicate that the device “may do” something together with other devices or components. For instance, a tem′ “a processor configured to (or set to) perform A, B, and C” may indicate a generic-purpose processor (e.g., CPU or application processor) capable of performing its relevant operations by executing one or more software or programs which is stored in an exclusive processor (e.g., embedded processor), which is prepared for the operations, or in a memory. 
         [0023]    The terms used in this specification are just used to describe various embodiments of the present disclosure and may not be intended to limit the scope of the present disclosure. The terms of a singular form may include plural forms unless otherwise specified. Unless otherwise defined herein, all the terms used herein, which include technical or scientific terms, may have the same meaning that is generally understood by a person skilled in the art. It will be further understood that terms, which are defined in a dictionary and commonly used, should also be interpreted as is customary in the relevantly related art and not in an idealized or overly formal detect unless expressly so defined herein in various embodiments of the present disclosure. In some cases, terms even defined in the specification may not be understood as excluding embodiments of the present disclosure. 
         [0024]    An electronic device according to various embodiments of the present disclosure may include, for example, at least one of smart phones, tablet personal computers (tablet PC), mobile phones, video telephones, electronic book readers, desktop PCs, laptop PCs, netbook computers, workstations, servers, personal digital assistants (PDA), portable multimedia players (PMP), MP3 players, mobile medical devices, cameras, wearable devices. According to various embodiments, the wearable devices may include at least one of accessories (e.g., watches, rings, bracelets, anklets, necklaces, glasses, contact lenses, or head-mounted devices (HMD)), assembled textiles or clothes (e.g., electronic apparel), body-attachable matters (e.g., skin pads or tattoos), or implantable devices (e.g., implantable circuits). 
         [0025]    In some embodiments, an electronic device may be a smart home appliance. The smart home appliance, for example, may include at least one of televisions (TV), digital versatile disc (DVD) players, audios, refrigerators, air conditioners, cleaners, ovens, microwave ovens, washing machines, air cleaners, set-top boxes, home automation control panels, security control panels, TV boxes (e.g., Samsung HomeSync™, Apple TV™, Google TV™, and the like), game consoles (e.g., Xbox™, PlayStation™, and the like), electronic dictionaries, electronic keys, camcorders, electronic picture frames, and the like. 
         [0026]    In other embodiments, an electronic device may include at least one of diverse medical devices (e.g., portable medical measuring instruments (blood-sugar measuring instruments, heart-pulsation measuring instruments, blood-pressure measuring instruments, or body-temperature measuring instruments), magnetic resonance angiography (MRA) equipment, magnetic resonance imaging (MRI) equipment, computed tomography (CT) equipment, scanners, and ultrasonic devices), navigation device, global positioning system (GPS) receiver, event data recorder (EDR), flight data recorders (FDR), vehicle infotainment devices, electronic equipment for vessels (e.g., navigation systems and gyrocompasses), avionics, security devices, head units for vehicles, industrial or home robots, automatic teller&#39;s machines (ATM) for financial agencies, points of sales (POS) for stores, and internet of things (e.g., electric bulbs, diverse sensors, electric or gas meter, spring cooler units, fire alarms, thermostats, road lamps, toasters, exercise implements, hot water tanks, boilers, and the like). 
         [0027]    According to some embodiments, an electronic device may include at least one of parts of furniture or buildings/structures having communication functions, electronic boards, electronic-signature receiving devices, projectors, and diverse measuring instruments (e.g., water meters, electricity meters, gas meters, and wave meters) including metal cases. In various embodiments, an electronic device may be one or more combinations of the above-mentioned devices. Electronic devices according to some embodiments may be flexible electronic devices. Additionally, electronic devices according to various embodiments of the present disclosure may not be restrictive to the above-mentioned devices, rather may include new electronic devices emerging by way of technical development. 
         [0028]    Hereinafter, an electronic device according to various embodiments will be described in conjunction with the accompanying drawings. In description for various embodiments, the term “user” may refer to a person using an electronic device or a device (e.g., an artificial intelligent electronic device) using an electronic device. 
         [0029]      FIG. 1  is a block diagram illustrating a configuration of an electronic device according to various embodiments of the present invention. 
         [0030]    Referring to  FIG. 1 , the electronic device  100  can include a battery  110 , a power management module  120 , a display  130 , a communication module  140 , an input module  150 , a memory  160 , and a processor  170 . 
         [0031]    The battery  110  can supply power to respective elements included in the electronic device  100  under control of the power management module  120 . For example, the battery  110  can supply power the power management module  120 , the display  130 , the communication module  150 , the memory  160 , or the processor  170 . According to an embodiment, the battery  110  can include a rechargeable cell (e.g., lithium-ion cell) and/or a solar cell. 
         [0032]    The power management module  120  can control the battery  110  to manage power of the electronic device  100 . According to an embodiment, the power management module  120  can include a power management integrated circuit (PMI), a charger integrated circuit (IC), or a battery or fuel gauge. A PMIC can operate in a wired and/or wireless charge mode. A wireless charge mode, for example, can include the mode of magnetic resonance, magnetic induction, or electromagnetic wave, and can further include additional circuits such as coil loop, resonance circuit, or rectifier. A battery gauge, for example, can measure residual, voltage, current, or temperature of the battery  120 . 
         [0033]    According to an embodiment, if a voltage of the battery is lower than or equal to a first voltage (e.g., 3.5 V), the power management module  120  can generate a first low-voltage interrupt. The first voltage, for example, can be set to the least voltage for stably driving the electronic device  100 . 
         [0034]    According to an embodiment, if a voltage of the battery is lower than or equal to the first voltage, the power management module  120  can calculate the maximum duration according to battery residual. For example, the power management module  120  can calculate a time of allowing the processor  170  to maintain a sleep mode with the current battery residual. The power management module  120  can transfer information of the maximum duration to the processor  170 . 
         [0035]    According to an embodiment, if a voltage of the battery is lower than or equal to a second voltage (e.g., 3 V), the power management module  120  can generate a second low-voltage interrupt to the processor  170 . The second voltage, for example, can be set to be lower than the first voltage. The second voltage, for example, can be set to the least voltage for stably driving the electronic device  100  in the sleep mode (or inactive mode). 
         [0036]    According to an embodiment, the power management module  120  can generate a charge start interrupt to the processor  170  if the battery  110  begins to be charged. 
         [0037]    The display  130  can display a user interface. For example, the display  130  can display an application execution screen, a lockup screen, and a main screen. 
         [0038]    According to an embodiment, the display  130  can display a user interface to inform entry of the sleep mode. According to an embodiment, the display  130  can display a user interface to inform entry of an awaking mode (or wakeup mode). According to an embodiment, if a voltage of the battery  110  is lower than or equal to the first voltage (or if the first low-voltage interrupt is generated), the display  130  can display a user interface to select whether to enter the sleep mode or whether to turn off power of the electronic device  100 . 
         [0039]    The communication module  140  can transmit and receive data through a network (e.g., mobile communication network or internet network) to provide voice call, video call, message service, or internet service. According to an embodiment, the communication module  140  can include a wireless-fidelity (Wi-Fi) module, a Bluetooth module, a near field communication (NFC) module, or a global navigation satellite system (GNSS) module. According to an embodiment, the communication module  140  can identify and authenticate the electronic device  100 , using a subscriber identification module such as subscriber identification module (SIM) card, when being connected with a mobile communication module. 
         [0040]    The input module  150  can input a user instruction. According to an embodiment, the input module  150  can include a touch sensor for sensing touch manipulation by a user, or a pen sensor panel for sensing pen manipulation by a user. According to an embodiment, the input module  150  can sense a user&#39;s manipulation which is input in a specific distance even without direct touch to a panel (e.g., touch sensor panel or pen sensor panel), as well as a user&#39;s manipulation with direct touch to the panel. According to an embodiment, the input module  150  can include a gesture sensor for recognizing a user&#39;s gesture or a voice sensor for detecting a user&#39;s voice. 
         [0041]    According to an embodiment, if a voltage of the battery  110  is lower than or equal to the first voltage, the input module  150  can input a user&#39;s manipulation to select whether to enter the sleep mode. For example, a user can be able to input his manipulation through a user interface, which is displayed on the display  130 , to set whether to enter the sleep mode according to a battery status. 
         [0042]    According to an embodiment, the memory  160  can include a volatile memory (e.g., random access memory (RAM) and nonvolatile memory (e.g., flash memory)). According to an embodiment, the memory  160  can store data. For example, the memory  160  can store software, programs, applications, and user contents (e.g., photographs, motion pictures, etc.). According to an embodiment, the processor  170  can load data into a volatile memory from a nonvolatile memory and can process diverse instructions or calculations. 
         [0043]    The processor  170  can perform general operations of the electronic device  100 . The processor  170  can independently control the power management module  120 , the display  130 , the communication module  140 , and the input module  150  to manage power of the electronic device  100  according to various embodiments of the present invention. 
         [0044]    According to an embodiment, the processor can operate in the awaking mode (or active mode) or in the sleep mode (or inactive mode). The awaking mode, for example, can mean a state for which the processor  170  is executing an application or a specific operation by an application which is on execution, or a state for which that the processor  170  is ready to execute a specific operation by an application is on execution. The processor  170  can execute an application to provide a user with diverse services such as social network service (SNS), instant messages, games, and so on. The sleep mode, for example, can mean a state for which the processor  170  does not any operation or is incapable of performing an operation. 
         [0045]    According to an embodiment, if a specific condition is satisfied in the awaking mode, the processor  170  can enter the sleep mode. For example, if there is no input of an instruction from a user for a specific time, the processor  170  can enter the sleep mode. For another example, the processor  170  can enter the sleep mode if there is an input of a sleep-mode entry instruction from a user. 
         [0046]    According to an embodiment, the processor  170  can identify an interrupt for entering the awaking mode from the sleep mode. According to an embodiment, if a specific interrupt is received in the sleep mode, the processor  170  can enter the awaking mode. For example, if a user&#39;s manipulation (e.g., touch manipulation or hardware key manipulation) is received in the sleep mode or if an interrupt is received (e.g., by message or call) from an application which is on execution in the background, the processor  170  can enter the awaking mode to perform its corresponding operation. The application on execution in the background, for example, can mean an application which has been executed by the processor  170  and loaded in a nonvolatile memory, or which is not executed by the processor  170 . 
         [0047]    According to an embodiment, the processor  170  can enter the sleep mode if the first low-voltage interrupt is received from the power management module  120 . According to an embodiment, the processor  170  can enter the sleep mode after a specific time (e.g., 10 seconds) since the first low-voltage interrupt is received from the power management module  120 . According to an embodiment, the processor  170  can turn off the electronic device  100  in the case that the processor  170  is not set to enter the sleep mode when a voltage of the battery  10  is lower than or equal to the first voltage (or if the first low-voltage interrupt is generated). 
         [0048]    According to an embodiment, the processor  170  can ignore other interrupt except an interrupt, which is input from the power management module  120 , if the processor  170  enters the sleep mode in response to the first low-voltage interrupt. For example, even if an interrupt is received from an application which is on execution in the background, the processor  170  can ignore the interrupt without execution of an operation corresponding to the interrupt. For another example, even if an interrupt is received by message reception through the communication module  140  or by a user&#39;s instruction input into the input module  150 , the processor  170  can ignore the interrupt without execution of an operation corresponding to the interrupt. 
         [0049]    According to an embodiment, if the first low-power interrupt is received from the power management module  120 , processor  170  can inactivate a part of other elements (e.g., the display  130 , the communication module  140 , and the input module  150 ) in the electronic device  100 . For example, the processor  170  can inactivate the communication module  140  to interrupt connection to a network or can inactivate the input module  150  to control a user instruction not to be sensed. 
         [0050]    According to various embodiments of the present invention, in the case that the processor  170  enters the sleep mode according to the first low-voltage interrupt, the processor  170  can stably maintain power of the electronic device  100 , even when the battery  110  is laid on a low voltage state, by ignoring other interrupt except an interrupt received from the power management module  120  and by inactivating a part of the elements of the electronic device  100 . 
         [0051]    According to an embodiment, if the first low-voltage interrupt is received from the power management module  120 , the processor  170  can control the display  130  to display an object to inform entry of the sleep mode. According to an embodiment, if information of the maximum duration is received from the power management module  120 , the processor  170  can control the display to display an object to inform the maximum duration. 
         [0052]    According to an embodiment, if the second low-voltage interrupt is received from the power management module  120 , the processor  170  can turn off power of the electronic device. According to an embodiment, the processor  170  can turn off power of the electronic device after the maximum duration since entry of the sleep mode. That is, after the maximum duration time or if a voltage of the battery  110  is lower than or equal to the second voltage, the processor  170  can turn off power of the electronic device  100  by determining that it is impossible to stably drive the electronic device  100  even in the sleep mode. 
         [0053]    According to an embodiment, if the charge start interrupt is received from the power management module in the sleep mode according to the first low-voltage interrupt, the processor  170  can enter the awaking mode. According to an embodiment, in the case of inactivating a part of the elements of the electronic device  100 , the processor  170  can activate the inactivated elements if the processor enters the awaking mode. For example, the processor  170  can activated the communication module  140  to connect the electronic device  100  with a network. For another example, the processor  170  can activate the input module  150  to be changed into a state for detecting a user instruction. According to an embodiment, if the processor  170  enters the awaking mode, the processor  170  can allow the display  130  to display an object to inform the entry of the awaking mode. 
         [0054]    According to an embodiment, in the case that the processor  170  enters the awaking mode according to the charge start interrupt after entering the sleep mode according to the first low-voltage interrupt, a user can be able to stably use the electronic device  100  in a short time because there is no need of booting the electronic device. 
         [0055]      FIGS. 2A and 2B  illustrate user interfaces according to various embodiments of the present invention. 
         [0056]      FIG. 2A  illustrates a user interface displayed in the display  130  in response to generation of the first low-voltage interrupt. Referring to  FIG. 2A , if the first low-voltage interrupt is generated from the power management module  120 , the display  130  can display a message  10  to inform entry of the sleep mode. For example, the display  130  can display a text object like “Entering into inactive state due to low battery”. For another example, the display  130  can display an object of empty battery shaped icon (or image). If the first low-voltage interrupt is generated from the power management module  120 , the display  130  can display a message  20  which indicates the maximum duration. For example, the display  130  can display a text object like “Stay on in inactive state for 30 min at maximum”. If battery charging begins within the maximum duration, the display  130  can display a message  30  to inform that the electronic device  100  is available without rebooting if battery charge begins within a certain time. For example,  130  can display a text object like “Available without rebooting if battery charge begins within 30 min”. 
         [0057]    According to embodiment, if the first low-voltage interrupt is generated from the power management module  120 , the display  130  can display a user interface for a specific time. After a specific time, the processor  170  can inactivate the display  140  and then can enter the sleep mode. 
         [0058]      FIG. 2B  illustrates a user interface displayed in the display  130  in response to generation of the charge start interrupt. Referring to  FIG. 2B , if the charge start interrupt is generated from the power management module  120  after the processor  170  enters the sleep mode in response to generation of the first low-voltage interrupt, the display  130  can display an object to inform entry of the awaking mode. For example, the display  130  can display a text object “You entered normal state”. 
         [0059]      FIG. 3  is a flow chart showing a power management method according to various embodiments of the present invention. 
         [0060]    The flow chart shown in  FIG. 3  can be composed of operations processed in the electronic device  100  illustrated in  FIG. 1 . Therefore, the descriptions stated in conjunction with  FIGS. 1 to 2B , even omitted hereafter, can be applicable to the flow chart of  FIG. 3 . 
         [0061]    Referring to  FIG. 3 , if a voltage of the battery is lower than or equal to the first voltage, the electronic device  100  can generate the first low-voltage interrupt. According to an embodiment, if a voltage of the battery is lower than or equal to the first voltage, the power management module  120  can generate the first low-voltage interrupt. According to an embodiment, if the first low-voltage interrupt is received from the power management module  120 , the processor  170  can display an object to inform entry of the sleep mode on the display  130 . 
         [0062]    According to an embodiment, if a voltage of the battery is lower than or equal to the first voltage, the electronic device  100  can calculate the maximum duration. For example, the electronic device  100  can calculate a time for retaining the sleep mode with current battery residual. According to an embodiment, the electronic device  100  can control the display  130  to display an object to inform the maximum duration. 
         [0063]    According to an embodiment, in operation  320 , the electronic device  100  can enter the sleep mode. According to an embodiment, if the first low-voltage interrupt is generated, the electronic device  100  can enter the sleep mode. According to an embodiment, after a specific time (e.g., 10 seconds) since the first low-voltage interrupt is received from the power management module  120 , the electronic device  100  can enter the sleep mode. According to an embodiment, the electronic device  100  can be even turned off without entering the sleep mode although the first low-voltage interrupt is generated. 
         [0064]    According to an embodiment, if the sleep mode begins in response to the first low-voltage interrupt, the electronic device  100  can ignore other interrupt except an interrupt, which is generated from the power management module  120 , in operation  330 . For example, even if an interrupt is received from an application which is on execution in the background, the electronic device  100  can ignore the interrupt without execution of an operation corresponding to the interrupt. For another example, even if an interrupt is received by message reception through the communication module  140  or by a user&#39;s instruction input into the input module  150 , the electronic device  100  can ignore the interrupt without execution of an operation corresponding to the interrupt. 
         [0065]    According to an embodiment, if the first low-voltage interrupt is generated, the electronic device  100  can inactivate a part of the elements thereof (e.g., the display  130 , the communication module  140 , and the input module  150 ). 
         [0066]    According to an embodiment, if the sleep mode begins according to the first low-voltage interrupt, in operation  340 , the electronic device  100  can determine whether the charge start interrupt begins. 
         [0067]    According to an embodiment, if the charge start interrupt begins, the electronic device  100  can enter the awaking mode in operation  350 . According to an embodiment, if the awaking mode begins in the case of inactivating a part of the elements, the electronic device  100  can activate the inactivated elements. According to an embodiment, if the awaking mode begins, the electronic device  100  can display an object to inform entry of the awaking mode on the display  130 . 
         [0068]    According to an embodiment, if a voltage of the battery is lower than or equal to the second voltage which is lower than the first voltage, the electronic device  100  can generate the second low-voltage interrupt. According to an embodiment, if a voltage of the battery is lower than or equal to the first voltage, the power management module  120  of the electronic device  120  can generate the first low-voltage interrupt. If the second low-voltage interrupt is generated, the electronic device  100  can be turned off in power. According to an embodiment, the electronic device  100  can be turned off in power after the maximum duration since the entry of the sleep mode. 
         [0069]      FIG. 4  is a block diagram illustrating an electronic device according to various embodiments of the present invention. 
         [0070]    Referring to  FIG. 4 , the electronic device  400  can include, for example, all or a part of elements of the electronic device  100  shown in  FIG. 1 . The electronic device  400  can include at least one of one or more application processors (AP)  410 , a communication module  420 , a subscriber identification module (SIM) card  424 , a memory  430 , a sensor module  440 , an input unit  450 , a display  460 , an interface  470 , an audio module  480 , a camera module  491 , a power management module  495 , a battery  496 , an indicator  497 , or a motor  498 . 
         [0071]    The processor (AP)  410  can drive an operating system (OS) or an application to control a plurality of hardware or software elements connected to the processor  410  and can process and compute a variety of data including multimedia data. The processor  410  can be implemented with a system-on-chip (SoC), for example. According to an embodiment, the processor  410  can further include a graphic processing unit (GPU) and/or an image signal processor. The processor  410  can even include at least a part of the elements shown in  FIG. 4 . The processor  410  can process instructions or data, which are received from at least one of other elements (e.g., a nonvolatile memory), and then store diverse data into such a nonvolatile memory. 
         [0072]    The communication module  420 , for example, can include a cellular module  421 , a Wi-Fi module  423 , a Bluetooth module  425 , a GPS module  427 , an NFC module  428 , and a radio frequency (RF) module  429 . 
         [0073]    The cellular module  421 , for example, can provide voice call, video call, a character service, or an Internet service through a communication network. According to an embodiment, the cellular module  421  can perform discrimination and authentication of an electronic device within a communication network using a subscriber identification module (e.g., a SIM card)  424 . According to an embodiment, the cellular module  421  can perform at least a portion of functions that the processor  410  provides. According to an embodiment, the cellular module  421  can include a communication processor (CP). 
         [0074]    In some embodiments, at least a part (e.g., two or more elements) of the cellular module  421 , the Wi-Fi module  423 , the Bluetooth module  425 , the GPS module  427 , and the NFC module  428  can be included within one integrated circuit (IC) or an IC package. 
         [0075]    The RF module  429  can transmit and receive, for example, communication signals (e.g., RF signals). The RF module  429  can include a transceiver, a power amplifier module (PAM), a frequency filter, a low noise amplifier (LNA), or an antenna. According to another embodiment, at least one of the cellular module  421 , the Wi-Fi module  423 , the Bluetooth module  425 , the GPS module  427 , and the NFC module  428  can transmit and receive an RF signal through a separate RF module. 
         [0076]    The SIM card  424  can include, for example, a card, which has a subscriber identification module, and/or an embedded SIM, and include unique identifying information (e.g., integrated circuit card identifier (ICCID)) or subscriber information (e.g., integrated mobile subscriber identify (IMSI)). 
         [0077]    The memory  430  can include, for example, an embedded memory  432  or an external memory  434 . For example, the embedded memory  432  can include at least one of a volatile memory (e.g., a dynamic RAM (DRAM), a static RAM (SRAM), a synchronous dynamic RAM (SDRAM), etc.), a nonvolatile memory (e.g., a one-time programmable ROM (OTPROM), a programmable ROM (PROM), an erasable and programmable ROM (EPROM), an electrically erasable and programmable ROM (EEPROM), a mask ROM, a flash ROM, a NAND flash memory, a NOR flash memory, etc.), a hard drive, or solid state drive (SSD). 
         [0078]    The external memory  434  can further include a flash drive, for example, a compact flash (CF), a secure digital (SD), a micro-secure digital (SD), a mini-SD, an extreme digital (xD), or a memory stick. The external memory  434  can be functionally and/or physically connected with the electronic device  400  through various interfaces. 
         [0079]    The sensor module  440  can measure, for example, a physical quantity, or detect an operation state of the electronic device  400 , to convert the measured or detected information to an electric signal. The sensor module  440  can include at least one of a gesture sensor  440 A, a gyro sensor  440 B, a barometer pressure sensor  440 C, a magnetic sensor  440 D, an acceleration sensor  440 E, a grip sensor  440 F, a proximity sensor  440 G, a color sensor  440 H (e.g., RGB sensor), a biometric sensor  440 I, a temperature/humidity sensor  440 J, an illuminance sensor  440 K, or an UV sensor  440 M. Additionally or generally, though not shown, the sensor module  440  can further include an E-nose sensor, an electromyography sensor (EMG) sensor, an electroencephalogram (EEG) sensor, an electrocardiogram (ECG) sensor, an infrared (IR) sensor, an iris sensor, or a fingerprint sensor, for example. The sensor module  440  can further include a control circuit for controlling at least one or more sensors included therein. In some embodiments, the electronic device  401  can further include a processor, which is configured to control the sensor module  440 , as a part or additional element, thus controlling the sensor module  440  while the processor  410  is in a sleep state. 
         [0080]    The input unit  450  can include, for example, a touch panel  452 , a (digital) pen sensor  454 , a key  456 , or an ultrasonic input unit  458 . The touch panel  452  can recognize, for example, a touch input using at least one of a capacitive type, a resistive type, an infrared type, or an ultrasonic wave type. Additionally, the touch panel  452  can further include a control circuit. The touch panel  452  can further include a tactile layer to provide a tactile reaction for a user. 
         [0081]    The (digital) pen sensor  454  can be a part of the touch panel  452 , or a separate sheet for recognition. The key  456 , for example, can include a physical button, an optical key, or a keypad. The ultrasonic input unit  458  can allow the electronic device  400  to detect a sound wave using a microphone (e.g., a microphone  488 ), and determine data through an input tool generating an ultrasonic signal. 
         [0082]    The display  460  (e.g., the display  130 ) can include a panel  462 , a hologram device  464 , or a projector  466 . The panel  462 , for example, can be implemented to be flexible, transparent, or wearable. The panel  462  and the touch panel  452  can be implemented in one module. The hologram device  464  can show a three-dimensional image in a space using interference of light. The projector  466  can project light onto a screen to display an image. The screen, for example, can be positioned in the inside or outside of the electronic device  400 . According to an embodiment, the display  460  can further include a control circuit for controlling the panel  462 , the hologram device  464 , or the projector  466 . 
         [0083]    The interface  470 , for example, can include a high-definition multimedia interface (HDMI)  472 , a USB  474 , an optical interface  476 , or a D-sub (D-subminiature)  478 . The interface  470 , for example, can include a mobile high definition link (MHL) interface, an SD card/multi-media cared (MMC) interface, or an Infrared data association (IrDA) standard interface. 
         [0084]    The audio module  480  can convert a sound and an electric signal in dual directions. The audio module  480 , for example, can process sound information that is input or output through the speaker  482 , the receiver  484 , the earphone  486 , or the microphone  488 . 
         [0085]    The camera module  491  can be a unit which is capable of taking a still picture and a moving picture. According to an embodiment, the camera module  491  can include one or more image sensors (e.g., a front sensor or a rear sensor), a lens, an image signal processor (ISP), or a flash (e.g., an LED or a xenon lamp). 
         [0086]    The power management module  495  can manage, for example, power of the electronic device  400 . The power management module  495  can include, for example, a power management integrated circuit (PMIC) a charger integrated circuit (IC), or a battery or fuel gauge. The PMIC can operate in wired and/or wireless charging mode. A wireless charging mode can include, for example, diverse types of magnetic resonance, magnetic induction, or electromagnetic wave. For the wireless charging, an additional circuit, such as a coil loop circuit, a resonance circuit, or a rectifier, can be further included therein. The battery gauge, for example, can measure a remnant of the battery  496 , a voltage, a current, or a temperature during charging. The battery  496  can measure, for example, a residual, a voltage on charge, a current, or temperature thereof. The battery  496  can include, for example, a rechargeable battery and/or a solar battery. 
         [0087]    The indicator  497  can display the following specific state of the electronic device  400  or a part (e.g., the processor  410 ) thereof: a booting state, a message state, or a charging state. The motor  498  can convert an electric signal into mechanical vibration and generate a vibration or haptic effect. Although not shown, the electronic device  400  can include a processing unit (e.g., a GPU) for supporting a mobile TV. The processing unit for supporting the mobile TV, for example, can process media data that is based on the standard of digital multimedia broadcasting (DMB), digital video broadcasting (DVB), or media flow (MediaFlo™). 
         [0088]    Each of the above-described elements of the electronic device according to an embodiment of the present disclosure can be implemented using one or more components, and a name of a relevant component can vary with on the kind of the electronic device. The electronic device according to various embodiments of the present disclosure can include at least one of the above components. Also, a part of the components can be omitted, or additional other components can be further included. Also, some of the components of the electronic device according to the present disclosure can be combined to form one entity, thereby making it possible to perform the functions of the relevant components substantially the same as before the combination. 
         [0089]    The term “module” used for the present disclosure, for example, can mean a unit including one of hardware, software, and firmware or a combination of two or more thereof. A “module”, for example, can be interchangeably used with terminologies such as a unit, logic, a logical block, a component, a circuit, etc. The “module” can be a minimum unit of a component integrally configured or a part thereof. The “module” can be a minimum unit performing one or more functions or a portion thereof. The “module” can be implemented mechanically or electronically. For example, the “module” according to various embodiments of the present disclosure can include at least one of an application-specific integrated circuit (ASIC) chip performing certain operations, a field-programmable gate arrays (FPGAs), or a programmable-logic device, those of which have been known or to be developed in the future. 
         [0090]    At least a part of an apparatus (e.g., modules or functions thereof) or a method (e.g., operations) according to various embodiments of the present disclosure, for example, can be implemented by instructions stored in a computer-readable storage medium in the form of a programmable module. In the case that the instruction executed by a processor (e.g., the processor  170 ), the one or more processors can perform a function corresponding to the instruction. 
         [0091]    The computer-readable recording medium can include a hard disk, a magnetic media such as a floppy disk and a magnetic tape, an optical media such as compact disc read only memory (CD-ROM) and a digital versatile disc (DVD), a magneto-optical media such as a floptical disk, and the following hardware devices specifically configured to store and perform a program instruction (e.g., a programming module): read only memory (ROM), random access memory (RAM), and a flash memory. Also, a program instruction can include not only a mechanical code such as things generated by a compiler but also a high-level language code executable on a computer using an interpreter. The above hardware unit can be configured to operate via one or more software modules for performing an operation of the present disclosure, and vice versa. 
         [0092]    A computer-readable recording medium recording a program, that when executed, causes an electronic device to perform a method comprising generating a first low-voltage interrupt from a power management module if a battery voltage is lower than or equal to a first voltage, entering a sleep mode if the first low-voltage interrupt is generated, and ignoring other interrupt except an interrupt that is generated from the power management module in the sleep mode. 
         [0093]    A module or a programming module according to various embodiments of the present disclosure can include at least one of the above elements, or a part of the above elements can be omitted, or additional other elements can be further included. Operations performed by a module, a programming module, or other elements according to an embodiment of the present disclosure can be executed sequentially, in parallel, repeatedly, or in a heuristic method. Also, a portion of operations can be executed in different sequences, omitted, or other operations can be added thereto. 
         [0094]    According to various embodiments, a computer-readable recording medium according to an embodiment can include an instruction which is executable by at least one processor. The instruction can be set to perform an operation of requesting page allocation of a process, an operation of allocating pages in a page group including the pages contiguous to the process. 
         [0095]    According to various embodiments of the present invention, it may be allowable to stably maintain drivability of an electronic device without turning off even though a battery voltage is equal to or lower than a specific voltage. 
         [0096]    According to various embodiments of the present invention, it may be permissible for a user to normally use an electronic device at the same time with the beginning of charge by driving the electronic device without an additional booting sequence if the charge begins from the condition that a battery voltage is equal to or lower than a specific voltage. 
         [0097]    Although the present disclosure has been described with an exemplary embodiment, various changes and modifications may be suggested to one skilled in the art. It is intended that the present disclosure encompass such changes and modifications as fall within the scope of the appended claims.