201111970 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及電子技術領域,特別涉及一種電子裝置及斷 電保護方法。 【先前技術】 [0002] 有些電子裝置係採用交流電源供電,當交流電源突然斷 電時,電子裝置往往來不及保存正在運行的程式或數據 ,從而導致數據丟失,甚至損壞電子裝置的硬體。 [0003] 另外,有些電子設備係採用電池供電,該電池一般係彈 性地安裝於電子設備内,以方便拆卸舊電池及安裝新電 池。然而,在電子設備上電工作時,該電池可能會由於 振動等原因從電子設備上脫落,'使得電子設備瞬間斷電 ’因而導致電子設備中正在運行的數據丟失,給使用者 造成了煩惱。 【發明内容】 [0004]有鑒於此,有必要提供一種在斷電時可及時保存數據的 電子裝置。 剛還有必要提供-種在斷電時可及時保存數據的斷電保護 方法。 [0006] 一種電子裝置 ,用於接收電源單元提供的供電電壓。該 電子裝置包括存儲單元'儲能電路及電壓提升電路,該 存儲單元用於存儲電子裝置正常蹲時的數據難 電路連接電源單元,其祕接㈣供電電壓 : ,該儲能於在供«壓切第-基準電ί = 098131875 表單編號A0101 第4 1/共π頁 201111970 敌電能以生成輔助電壓。該電壓提升電路接收該輔助電 壓’使輔助電壓的電壓值增大,並將電愿值增大的輔助 電壓提供給存儲單元,以維持存儲單元繼續工作。 [0007] 種斷電保護方法,其包括以下步驟: [0008] 接收電源單元的供電電壓以存儲電能; [0009] 檢測該供電電壓的大小’在供電電壓較低時產生第一控 制訊號; [0010] 根據第一控制訊號控制開關單元關閉負載,使電子裝置 進入睡眠模式; [0011] 在供電電壓較低時釋放電能以產生輔助電壓; [0012] 接收該辅助電壓,使得輔助電壓的電壓值增大,並將電 壓值增大的輔助電壓提供給存儲單元。 [0013] 〇 上述電子裝置及斷電保護梓,藉由設置檢測單元、儲 能電路及電壓提升電路,儲能電路接收供電電壓以儲存 電能,控制單元在供電電壓轉低時控制開關單元關閉負 載’以節省電能消耗。同時難電路釋放電能以生成— 輔助電壓為存料元供電,輯持存料元的正常工作 。由於採用了電壓提升電路使輔助電壓的電壓值增大, 因而進一步地延長了存儲單元的玉作時間,使存^單_ 有足夠的時間保存電子裝置中正在運行的數據,防= 據丟失。 【實施方式】 [0014] 請參閱圖1,-較佳實施方式的電子裝置1〇〇用於接收電 098131875 表單編號A0101 第5頁/共17頁 0982054702-0 201111970 源單元ίο提供的供電電壓以正常工作。本實施方式中, .電源單元10可為一電源適配器,用於提供直流電壓。電 子裝置100包括檢測單元12、控制單元14、開關單元15 、負載16、斷電保護單元20及存儲單元30。 [0015] 檢測單元1 2與電源單元1 0相連,其用於檢測供電電壓的 大小,並在供電電壓較低時產生第一控制訊號。具體地 ,檢測單元1 2預設有第一基準電壓,檢測單元1 2將供電 電壓與第一基準電壓進行比較,在供電電壓小於第一基 準電壓時判斷出供電電壓較低。 Ο [0016] 控制單元14用於根據第一控制訊號控制開關單元1 5關閉 負載16,從而負載16停止工作,使電子裝置100進入睡眠 模式,以節省電能消耗。負載16可為顯示幕、馬達、射 頻(RF,Radio Frequency)模組、Wi-Fi模組、全球 定位系統(GPS,Global Positioning System)模組 、3G模組及揚聲器等。 [0017] 斷電保護單元20連接電源單元10,用於接收該供電電壓 以儲存電能,並在供電電壓較低時釋放電能以產生輔助 I* 電壓給存儲單元30。當電源單元10正常工作時,供電電 壓藉由斷電保護單元20被提供給存儲單元30,使存儲單 元30正常工作。當電源單元10突然斷電或者出現故障, 使得供電電壓為零或供電電壓降低不足以驅動存儲單元 30時,斷電保護單元20釋放電能以產生輔助電壓給存儲 單元30,以維持存儲單元30繼續工作一時間段。在該時 間段内,存儲單元30可及時保存數據,有效地避免了數 據丟失。 098131875 表單編號A0101 第6頁/共17頁 0982054702-0 201111970 [0018] [0019] _單元12與斷電保護單元⑽連,其用於檢測輔助電 壓的大小,並在輔助電錄低時產生第二控制訊號。具 體也該檢測早疋12預設有第二基準電壓,該檢測單元 12將輔助„與第二基準電壓進行比較,在輔助電壓小 於第一基準電壓時判斷㈣助電壓較低。, 控制單/U4還用於根據第二控制訊號關閉存儲單元3〇, 以使電子裝置1_人關機模式。 咖]7 —併參_,斷電保護單元20包括儲能電路22及電壓 〇 提升電路24。雜電路22歸接收㈣單itlG提供的供 電電壓以儲存電能’並在母電電墨較低時釋放電能以產 生辅助電壓給電壓提升電路24。 [_電壓提升電路24料在電源單元1()正常卫料接收供電 電愿,使得供電電㈣電純增大,並將電Μ值增大的 供電電燃提供給存儲單元3〇,使得存儲單元如正常工作 Ο ϊ f =: ;/ .... :: ◎ [ 221 S電源單7010突然斷電或出現故障使得供電電愿為零或 者較低時,電麼提升電路24還用於接收辅助·,使得 輔助電虔的電隸增大,並將電愿值增大的輔助電麼提 供給存料元3G,轉持存料元3()_卫作—時間段 ,使存儲單元30有足夠的時間來保存數據。 [0023] 098131875 儲能電路22包括第-電容π、第二電容C2、第一二極體 D1及第二二極體D2。第—二極體D1的陽極連接於電源單 元1〇與斷電保護單元20之間,第—二極舰的陰極藉由 第一電容C1接地。第二二極舰的陰極與第—二極體 表單編號A0101 第7頁/共π頁 0982054702-0 201111970 的陽極相連,第二二極體D2的陽極連接第一電容Cl。第 二電容C2的一端連接於第一二極體D1的陰極與第二二極 體D2的陽極之間,另一端接地。在本實施方式中,第一 電容C1及第二電容C2均為電容值較大的電解電容。 [0024] 電壓提升電路24包括電感L1、三極管Q1、第三二極體D3 、第三電容C3、第四電容C4及振蕩器25。三極管Q1的基 極連接振蕩器25,發射極接地,集電極連接電感L1的一 端,電感L1的另一端連接電源單元10。第三二極體D3的 陽極連接於電感L1與三極管Q1的集電極之間,陰極連接 f 存儲單元30,第三電容C3的一端連接第三二極體D3的陽 極,另一端接地。第四電容C4的一端連接第三二極體D3 的陰極,另一端接地。 [0025] 斷電保護單元20實現斷電保護功能的工作原理如下: [0026] 電源單元10提供的供電電壓藉由第一二極體D1對第一電 容C1及第二電容C2進行充電,第一電容C1及第二電容C2 存儲電能。 - y [0027] 當電源單元10突然斷電或者出現故障,使得供電電壓為 零或者較低時,該較低的供電電壓經過電壓提升電路24 的升壓作用後不足以驅動存儲單元30工作時,第一電容 C1及第二電容C2釋放電能,以產生輔助電壓VI給電壓提 升電路24。 [0028] 振蕩器25用於提供振蕩訊號給三極管Q1的基極,振蕩訊 號的頻率為50KHz~100KHz。本實施方式中,振蕩訊號為 脈衝電壓訊號,三極管Q1為NPN型三極管。當振蕩訊號處 098131875 表單編號A0101 第8頁/共17頁 0982054702-0 201111970 [0029] Ο [0030] [0031] [0032] 〇 [0033] [0034] 於高電平,即三極管Q1的基極接收高電平電壓時,三極 管Q1導通。電感L1將第一電容C1及第二電容C2釋放的電 能轉換為磁能,並存儲磁能。 ' 當振蕩訊號處於低電平,即三極管Q1的基極接收低電平 電壓時,三極管Q1截止,第一電容C1及第二電容C2存儲 的電能及電感L1存儲的磁能藉由第三二極體D3被釋放給 存儲單元30,使得存儲單元30接收的電壓為Va=2Vl-VD3 ,其中VD3為第三二極體D3導通時其兩端的電壓。因而斷 電保護電路24實現了對輔助電壓VI的電壓提升,進一步 地延長了存儲單元30的工作時間,以使存儲單元30有足 夠的時間保存數據。i^pl ΐ|1ι . 請一併參閱圖3,一較佳實施方式之斷電保護方法200包 括以下步驟: 步驟202,儲能電路22接收電源單元10之供電電壓以存儲 電能。 步驟204,檢測單元12檢測該供電電壓的大小,在供電電 壓較低時產生第一控制訊號,本實施方式中,檢測單元 12預設有第一基準電壓,檢測單元12將供電電壓與第一 基準電壓進行比較,在供電電壓小於該第一基準電壓時 判斷出供電電壓較低。 步驟206,控制單元14根據第一控制訊號控制開關單元15 關閉負載16,從而負載16停止工作,使電子裝置100進入 睡眠模式,以節省電能消耗。 步驟208,儲能電路22在供電電壓較低時釋放電能以產生 098131875 表單編號A0101 第9頁/共17頁 0982054702-0 201111970 輔助電壓。 [0035] 步驟210,電壓提升電路24接收該輔助電壓,使輔助電壓 的電壓值增大,並將電壓值增大的輔助電壓提供給存儲 單元30,以維持存儲單元30正常工作時所需的電壓,存 儲單元30用於儲存電子裝置100正常工作時的數據。存儲 單元30用於接收該電壓值增大的輔助電壓,以繼續工作 並及時保存正在運行的數據,防止數據丟失。 [0036] 步驟212,檢測單元12還用於檢測輔助電壓的大小,在輔 助電壓較低時產生第二控制訊號;本實施方式中,檢測 € 單元12預設有第二基準電壓,檢測單元12將輔助電壓與 第二基準電壓進行比較,在輔助電壓小於該第二基準電 壓時判斷出輔助電壓較低。 [0037] 步驟214,控制單元14根據第二控制訊號關閉存儲單元30 ,使得電子裝置100進入關機模式。 [0038] 綜上所述,本發明符合發明專利要件,爰依法提出專利 申請。惟,以上所述僅為本發明之較佳實施方式,舉凡 ❹ 熟悉本案技藝之人士,在援依本案創作精神所作之等效 修飾或變化,皆應包含於以下之申請專利範圍内。 【圖式簡單說明】 [0039] 圖1為一較佳實施方式的電子裝置之功能模組圖。 [0040] 圖2為圖1所示電子裝置中斷電保護單元之電路圖。 [0041] 圖3為一較佳實施方式的斷電保護方法之流程圖。 【主要元件符號說明】 098131875 表單編號A0101 第10頁/共17頁 0982054702-0 201111970 [0042] 電源單元:10 [0043] 檢測單元:12 [0044] 儲能電路:22 [0045] 電容:Cl、C2、C3、C4 [0046] 二极體:Dl、D2、D3 [0047] 電壓提升電路:24 [0048] 振蕩器:25 [0049] 電感:L1 [0050] 三極體:Q1 [0051] 電壓:VI、Va、VnQ V 0 [0052] 存儲單元:30 [0053] 電子裝置:100 [0054] 控制單元:14 [0055] 開關單元:1 5 [0056] 負載:16 [0057] 斷電保護單元:20 [0058] 斷電保護方法:200 [0059] 步驟:202〜214201111970 VI. Description of the Invention: [Technical Field] The present invention relates to the field of electronic technology, and in particular to an electronic device and a power-off protection method. [Prior Art] [0002] Some electronic devices are powered by an AC power source. When the AC power supply is suddenly turned off, the electronic device often has no time to save the running program or data, resulting in data loss or even damage to the hardware of the electronic device. In addition, some electronic devices are powered by batteries, which are typically resiliently mounted in an electronic device to facilitate removal of old batteries and installation of new batteries. However, when the electronic device is powered on, the battery may be detached from the electronic device due to vibration or the like, causing the electronic device to be powered off instantaneously, thereby causing the data that is running in the electronic device to be lost, causing trouble to the user. SUMMARY OF THE INVENTION [0004] In view of the above, it is necessary to provide an electronic device that can save data in time when power is off. It is also necessary to provide a power-off protection method that can save data in time when power is off. [0006] An electronic device for receiving a supply voltage provided by a power supply unit. The electronic device includes a storage unit 'storage circuit and a voltage boosting circuit, and the storage unit is configured to store data when the electronic device is normally closed. The hard circuit is connected to the power supply unit, and the secret connection is (4) the supply voltage: the energy storage is at the pressure Cut-reference power ί = 098131875 Form No. A0101 No. 4 1 / π page 201111970 Enemy power to generate auxiliary voltage. The voltage boosting circuit receives the auxiliary voltage 'to increase the voltage value of the auxiliary voltage, and supplies the auxiliary voltage whose electric value is increased to the storage unit to maintain the memory unit to continue to operate. [0007] A power-off protection method includes the following steps: [0008] receiving a power supply voltage of a power supply unit to store electrical energy; [0009] detecting a magnitude of the supply voltage to generate a first control signal when the supply voltage is low; 0010] controlling the switch unit to turn off the load according to the first control signal to cause the electronic device to enter a sleep mode; [0011] releasing the electric energy to generate the auxiliary voltage when the supply voltage is low; [0012] receiving the auxiliary voltage such that the voltage value of the auxiliary voltage The auxiliary voltage is increased and the voltage value is increased to the storage unit. [0013] The electronic device and the power-off protection device, by providing a detecting unit, a storage circuit and a voltage boosting circuit, the energy storage circuit receives the power supply voltage to store the power, and the control unit controls the switch unit to turn off the load when the power supply voltage is low. 'To save power consumption. At the same time, it is difficult for the circuit to release electrical energy to generate - the auxiliary voltage supplies power to the storage element, and the normal operation of the storage element is captured. Since the voltage boosting circuit is used to increase the voltage value of the auxiliary voltage, the storage unit's jade time is further extended, so that the storage unit has sufficient time to save the running data in the electronic device, and the data is lost. [Embodiment] [0014] Please refer to FIG. 1, the electronic device 1 of the preferred embodiment is used for receiving electricity 098131875 Form No. A0101 Page 5 of 17 0982054702-0 201111970 Source unit ίο Provided power supply voltage normal work. In this embodiment, the power supply unit 10 can be a power adapter for providing a DC voltage. The electronic device 100 includes a detecting unit 12, a control unit 14, a switching unit 15, a load 16, a power-off protection unit 20, and a storage unit 30. [0015] The detecting unit 12 is connected to the power supply unit 10 for detecting the magnitude of the power supply voltage and generating a first control signal when the power supply voltage is low. Specifically, the detecting unit 12 is pre-set with a first reference voltage, and the detecting unit 12 compares the power supply voltage with the first reference voltage, and determines that the power supply voltage is lower when the power supply voltage is less than the first reference voltage. [0016] The control unit 14 is configured to control the switch unit 15 to turn off the load 16 according to the first control signal, so that the load 16 stops working and the electronic device 100 enters a sleep mode to save power consumption. The load 16 can be a display screen, a motor, an RF (Radio Frequency) module, a Wi-Fi module, a Global Positioning System (GPS) module, a 3G module, and a speaker. [0017] The power-off protection unit 20 is connected to the power supply unit 10 for receiving the supply voltage to store electrical energy, and discharging the electrical energy to generate the auxiliary I* voltage to the storage unit 30 when the supply voltage is low. When the power supply unit 10 is operating normally, the power supply voltage is supplied to the storage unit 30 by the power-off protection unit 20, so that the storage unit 30 operates normally. When the power supply unit 10 is suddenly powered off or fails, such that the supply voltage is zero or the supply voltage is insufficient to drive the storage unit 30, the power-off protection unit 20 releases the power to generate an auxiliary voltage to the storage unit 30 to maintain the storage unit 30 to continue. Work for a period of time. During this time period, the storage unit 30 can save data in time, effectively avoiding data loss. 098131875 Form No. A0101 Page 6 of 17 0982054702-0 201111970 [0019] _ Unit 12 is connected to the power-off protection unit (10) for detecting the magnitude of the auxiliary voltage and generating the first when the auxiliary recording is low. Two control signals. Specifically, the detecting unit 12 is pre-set with a second reference voltage, and the detecting unit 12 compares the auxiliary „ with the second reference voltage, and determines that the auxiliary voltage is lower when the auxiliary voltage is less than the first reference voltage. The U4 is further configured to turn off the storage unit 3A according to the second control signal, so that the electronic device 1_person shuts down the mode. The power-off protection unit 20 includes the energy storage circuit 22 and the voltage clamp circuit 24. The hybrid circuit 22 receives (4) the supply voltage supplied by the single itlG to store the power 'and releases the power when the mother electric ink is low to generate the auxiliary voltage to the voltage boosting circuit 24. [_ The voltage boosting circuit 24 is in the power supply unit 1 () normal The Guardian receives the power supply, so that the power supply (4) power is purely increased, and the power supply igniting with the increased power 提供 value is supplied to the storage unit 3〇, so that the storage unit works normally ϊ = f =: ; :: ◎ [ When the 221 S power supply unit 7010 suddenly loses power or fails, so that the power supply is willing to be zero or low, the electric power boosting circuit 24 is also used to receive the auxiliary, so that the electric power of the auxiliary electric power is increased, and Auxiliary power that increases the value of electricity Provided to the storage element 3G, the storage unit 3 () _ guard - time period, so that the storage unit 30 has enough time to save the data. [0023] 098131875 The energy storage circuit 22 includes the first capacitance π, the first The second capacitor C2, the first diode D1 and the second diode D2. The anode of the second diode D1 is connected between the power unit 1 and the power-off protection unit 20, and the cathode of the second-pole ship is used The first capacitor C1 is grounded. The cathode of the second diode ship is connected to the anode of the second diode form number A0101, the anode of the second diode D2 is connected to the first capacitor C1. One end of the second capacitor C2 is connected between the cathode of the first diode D1 and the anode of the second diode D2, and the other end is grounded. In the embodiment, the first capacitor C1 and the second capacitor C2 are both The electrolytic capacitor having a large capacitance value. [0024] The voltage boosting circuit 24 includes an inductor L1, a transistor Q1, a third diode D3, a third capacitor C3, a fourth capacitor C4, and an oscillator 25. The base of the transistor Q1 is connected and oscillated. 25, the emitter is grounded, the collector is connected to one end of the inductor L1, and the other end of the inductor L1 is connected The source unit 10. The anode of the third diode D3 is connected between the inductor L1 and the collector of the transistor Q1, the cathode is connected to the f memory unit 30, and one end of the third capacitor C3 is connected to the anode of the third diode D3, and the other end is connected. One end of the fourth capacitor C4 is connected to the cathode of the third diode D3, and the other end is grounded. [0025] The working principle of the power-off protection function of the power-off protection unit 20 is as follows: [0026] The power supply voltage provided by the power supply unit 10 The first capacitor C1 and the second capacitor C2 are charged by the first diode D1, and the first capacitor C1 and the second capacitor C2 store electrical energy. - y [0027] When the power supply unit 10 is suddenly powered off or fails, such that the supply voltage is zero or low, the lower supply voltage is insufficient to drive the storage unit 30 after being boosted by the voltage boosting circuit 24. The first capacitor C1 and the second capacitor C2 release electrical energy to generate an auxiliary voltage VI to the voltage boosting circuit 24. [0028] The oscillator 25 is used to provide an oscillation signal to the base of the transistor Q1, and the frequency of the oscillation signal is 50 kHz to 100 kHz. In this embodiment, the oscillation signal is a pulse voltage signal, and the transistor Q1 is an NPN type transistor. When the oscillation signal is at 098131875, the form number A0101, page 8 / page 17 0982054702-0 201111970 [0029] Ο [0030] [0032] 003 [0033] [0034] at a high level, that is, the base of the transistor Q1 When receiving a high level voltage, the transistor Q1 is turned on. The inductor L1 converts the electric energy released by the first capacitor C1 and the second capacitor C2 into magnetic energy and stores magnetic energy. When the oscillation signal is at a low level, that is, the base of the transistor Q1 receives a low level voltage, the transistor Q1 is turned off, and the energy stored by the first capacitor C1 and the second capacitor C2 and the magnetic energy stored by the inductor L1 are passed through the third pole. The body D3 is released to the memory unit 30 such that the voltage received by the memory unit 30 is Va=2V1-VD3, where VD3 is the voltage across the third diode D3 when it is turned on. Thus, the power-off protection circuit 24 effects voltage boosting of the auxiliary voltage VI, further extending the operating time of the memory unit 30 so that the memory unit 30 has sufficient time to store data. Referring to FIG. 3, a power-off protection method 200 according to a preferred embodiment includes the following steps: Step 202: The energy storage circuit 22 receives the power supply voltage of the power supply unit 10 to store electrical energy. In step 204, the detecting unit 12 detects the magnitude of the power supply voltage, and generates a first control signal when the power supply voltage is low. In this embodiment, the detecting unit 12 is pre-configured with a first reference voltage, and the detecting unit 12 supplies the power supply voltage with the first voltage. The reference voltage is compared, and when the power supply voltage is less than the first reference voltage, it is determined that the power supply voltage is low. In step 206, the control unit 14 controls the switch unit 15 to turn off the load 16 according to the first control signal, so that the load 16 stops working, and the electronic device 100 enters the sleep mode to save power consumption. Step 208, the tank circuit 22 releases the power when the supply voltage is low to generate 098131875 Form No. A0101 Page 9 of 17 0982054702-0 201111970 Auxiliary voltage. [0035] Step 210, the voltage boosting circuit 24 receives the auxiliary voltage, increases the voltage value of the auxiliary voltage, and supplies the auxiliary voltage whose voltage value is increased to the storage unit 30 to maintain the normal operation of the storage unit 30. The voltage and storage unit 30 is configured to store data when the electronic device 100 is in normal operation. The storage unit 30 is configured to receive the auxiliary voltage whose voltage value is increased to continue working and save the running data in time to prevent data loss. [0036] Step 212, the detecting unit 12 is further configured to detect the magnitude of the auxiliary voltage, and generate a second control signal when the auxiliary voltage is low. In the embodiment, the detecting unit 12 is pre-set with the second reference voltage, and the detecting unit 12 The auxiliary voltage is compared with the second reference voltage, and when the auxiliary voltage is less than the second reference voltage, it is determined that the auxiliary voltage is lower. [0037] Step 214, the control unit 14 turns off the storage unit 30 according to the second control signal, so that the electronic device 100 enters the shutdown mode. [0038] In summary, the present invention complies with the requirements of the invention patent, and submits a patent application according to law. However, the above description is only the preferred embodiment of the present invention. Any equivalent modifications or variations made by the person skilled in the art of the present invention should be included in the following patent application. BRIEF DESCRIPTION OF THE DRAWINGS [0039] FIG. 1 is a functional block diagram of an electronic device according to a preferred embodiment. 2 is a circuit diagram of the electronic device interrupting electrical protection unit of FIG. 1. 3 is a flow chart of a power-off protection method according to a preferred embodiment. [Main component symbol description] 098131875 Form No. A0101 Page 10 of 17 0982054702-0 201111970 [0042] Power supply unit: 10 [0043] Detection unit: 12 [0044] Energy storage circuit: 22 [0045] Capacitance: Cl, C2, C3, C4 [0046] Diode: Dl, D2, D3 [0047] Voltage boosting circuit: 24 [0048] Oscillator: 25 [0049] Inductance: L1 [0050] Triode: Q1 [0051] Voltage :VI, Va, VnQ V 0 [0052] Storage unit: 30 [0053] Electronic device: 100 [0054] Control unit: 14 [0055] Switch unit: 1 5 [0056] Load: 16 [0057] Power-off protection unit :20 [0058] Power-off protection method: 200 [0059] Steps: 202~214
098131875 表單編號A0101 第11頁/共17頁 0982054702-0098131875 Form No. A0101 Page 11 of 17 0982054702-0