TW201416926A - Power saving device and power saving method - Google Patents
Power saving device and power saving method Download PDFInfo
- Publication number
- TW201416926A TW201416926A TW101138589A TW101138589A TW201416926A TW 201416926 A TW201416926 A TW 201416926A TW 101138589 A TW101138589 A TW 101138589A TW 101138589 A TW101138589 A TW 101138589A TW 201416926 A TW201416926 A TW 201416926A
- Authority
- TW
- Taiwan
- Prior art keywords
- signal
- circuit
- comparison
- microprocessor
- power saving
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 10
- 238000006243 chemical reaction Methods 0.000 claims description 26
- 230000006870 function Effects 0.000 claims description 21
- 230000001939 inductive effect Effects 0.000 claims 3
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 230000007774 longterm Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 4
- 230000003068 static effect Effects 0.000 description 4
- 238000009825 accumulation Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000006698 induction Effects 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000011045 prefiltration Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Power Sources (AREA)
- Position Input By Displaying (AREA)
Abstract
Description
本發明係一種省電裝置,尤指一種可應用在觸控裝置上的高效率省電裝置及方法。 The invention relates to a power saving device, in particular to a high efficiency power saving device and method applicable to a touch device.
以習用觸控板驅動電路來說,如圖4A所示,該觸控板驅動電路60係主要包含有一發送電路61、一接收電路62及一微處理器63,其中該微處理器63係連接於該發送電路61及該類比數位轉換電路62,以控制該發送電路61對觸控板50的複數驅動線51發出驅動訊號,再由該類比數位轉換電路62接收該觸控板50’感應線52的類比感應訊號後,由該類比數位轉換電路62將類比感應訊號轉換為數位感應訊號後,再全數輸出至該微處理器63,由微處理器63內建的韌體及預設值Vr1~Vr4進行比對,以判斷是否執行對應觸控功能,如輸出座標、手勢指令等等。 As shown in FIG. 4A, the touch panel driving circuit 60 mainly includes a transmitting circuit 61, a receiving circuit 62 and a microprocessor 63, wherein the microprocessor 63 is connected. The transmitting circuit 61 and the analog-digital conversion circuit 62 control the transmitting circuit 61 to send a driving signal to the plurality of driving lines 51 of the touch panel 50, and then receive the touch panel 50' sensing line by the analog-to-digital conversion circuit 62. After the analog sensing signal of 52, the analog-to-digital conversion circuit 62 converts the analog sensing signal into a digital sensing signal, and then outputs the digital signal to the microprocessor 63. The firmware built into the microprocessor 63 and the preset value Vr1. ~Vr4 is compared to determine whether to perform corresponding touch functions, such as output coordinates, gesture commands, and the like.
誠如上述,與觸控驅動電路60需要週期性地掃描或輪詢及判斷待接收訊號大小的類似電路,一旦使用者長時間未使用,則持續掃描及判斷將會造成電力浪費;是以,該等類似電路均會設計休眠模式及工作模式。以觸控板的驅動電路60來說,當驅動電路60在工作模式下檢測觸控板50’上已達一預設時間內無物件出現或輪詢無結果者,則該驅動電路60會進入休眠模式,以達到省電效果。請配合參閱圖5所示,由於該驅動電路60一般以微處理器63作為主要控制元件,但微處理器63至少基本組成有中央處理器 (CPU)631、計時器(TIMER)632、中斷指令單元(IRC)633、唯讀記憶體(ROM)634、靜態隨機存取記憶體(SRAM)635及看門狗計時器(WDT)636,在習用觸控板驅動電路的休眠模式下該計時器632仍會在排程中持續記數且定時喚醒該微處理器63,因此當該驅動電路60由休眠模式被喚醒進入工作模式時,如圖4B所示,該微處理器63即依序進行設定(IRC、ROM、SRAM、WDT)、運算及判斷,直到進入休眠模式;因此如圖3A、3B所示,即是該驅動電路60於工作模式及休眠模式的總電量消耗示意圖;由此圖可知,在進入工作模式S61後,係進行第一階段程序,該微處理器63被喚醒後致能給該發送電路61及接收電路62進行掃描程序S62、S63,其第一階段程序的電力消耗為L1;接著,進行第二階段程序,此時該類比數位轉換電路62將該接受電路62的訊號轉換成數位感應訊號,同時該微處理器63也依序進行IRC、ROM、SRAM、TIMER、WDT的設定,接著該微處理器63接收該類比數位轉換電路62的數位感應訊號,並透過韌體對該數位感應訊號進行座標運算並判斷物件有無等S64,其中第二階段程序的電力消耗(硬體及韌體電力消耗)為L2;最後,該微處理器63依據上述步驟得到的物件或座標資訊後,判斷執行其對應功能S65,完成後再次進入休眠模式S66,其中第三階段程序的電力消耗(韌體電力消耗)為L3。在工作模式下,該類比數位轉換電路62會持續轉換數位感應訊號至該微處理器63,由微處理器63的韌體對數位感應訊號執行比對及運算,以計算出有效的座標;因此,第二階段程序的電力消耗L2自然較第一、 三階段程序的電力消耗來得高,而且在目前驅動電路架構下為必須執行的程序。再者,微處理器63對於複數個數位感應訊號R1~R4逐一且依序的與預設值Vr1~Vr4比對,亦會造成時間累積誤差,令觸控板50反應其上物件的座標位置的靈敏度及正確性均受到影響。 As described above, the touch drive circuit 60 needs to periodically scan or poll and determine the similar circuit size of the signal to be received. Once the user has not used it for a long time, continuous scanning and judgment will cause power waste; These similar circuits all design sleep mode and working mode. In the driving circuit 60 of the touch panel, when the driving circuit 60 detects that no object appears in the touch panel 50' for a predetermined time in the working mode, or the polling has no result, the driving circuit 60 enters. Sleep mode to achieve power saving effect. Referring to FIG. 5, since the driving circuit 60 generally has the microprocessor 63 as the main control component, the microprocessor 63 is at least basically composed of a central processing unit. (CPU) 631, timer (TIMER) 632, interrupt command unit (IRC) 633, read only memory (ROM) 634, static random access memory (SRAM) 635, and watchdog timer (WDT) 636, In the sleep mode of the conventional touch panel driving circuit, the timer 632 will continue to count and wake up the microprocessor 63 in the schedule, so when the driving circuit 60 is woken up from the sleep mode into the working mode, such as As shown in FIG. 4B, the microprocessor 63 sequentially sets (IRC, ROM, SRAM, WDT), operations and judgments until it enters the sleep mode; therefore, as shown in FIGS. 3A and 3B, the drive circuit 60 is Schematic diagram of the total power consumption of the operating mode and the sleep mode; as can be seen from the figure, after entering the operating mode S61, the first phase of the program is performed, and the microprocessor 63 is awakened to enable the transmitting circuit 61 and the receiving circuit 62. The scanning program S62, S63, the power consumption of the first stage program is L1; then, the second stage program is performed, at which time the analog digital conversion circuit 62 converts the signal of the receiving circuit 62 into a digital sensing signal, and the micro processing The device 63 also performs IRC, ROM, and The SRAM, the TIMER, the WDT are set, and then the microprocessor 63 receives the digital sensing signal of the analog-to-digital conversion circuit 62, and performs a coordinate operation on the digital sensing signal through the firmware to determine whether the object is present or the like, etc., wherein the second stage program The power consumption (hardware and firmware power consumption) is L2; finally, the microprocessor 63 determines to execute the corresponding function S65 according to the object or coordinate information obtained in the above steps, and then enters the sleep mode S66 again after completing, The power consumption (firmware power consumption) of the three-stage program is L3. In the working mode, the analog-to-digital conversion circuit 62 continuously converts the digital sensing signal to the microprocessor 63, and the firmware of the microprocessor 63 performs a comparison and operation on the digital sensing signal to calculate a valid coordinate; The second phase of the program's power consumption L2 is naturally better than the first, The power consumption of the three-stage program is high, and it is a program that must be executed under the current drive circuit architecture. Moreover, the microprocessor 63 compares the plurality of digital sensing signals R1 R R4 one by one with the preset values Vr1 VVr4 one by one, and also causes a time accumulation error, so that the touch panel 50 reflects the coordinate position of the upper object. Sensitivity and correctness are affected.
綜上所述,現行採用如上述驅動電路架構進行掃描或輪詢以檢知特定情況後執行對應功能的程序,在工作模式下仍消耗過多電力,以及因時間累積造成運算誤差均有必要進一步改善之。 In summary, the current program that uses the above-mentioned driving circuit architecture to scan or poll to detect a specific situation and then execute the corresponding function still consumes too much power in the working mode, and the operation error due to time accumulation needs to be further improved. It.
有鑑於上述技術缺失,本發明主要目的係提供一種省電裝置及其省電方法,以提供更佳的省電功效。 In view of the above-mentioned technical deficiencies, the main object of the present invention is to provide a power saving device and a power saving method thereof to provide better power saving effects.
欲達上述目的所使用的主要技術手段係令該省電裝置包含有:一訊號輸出電路,輸出至少一待比較訊號;一比較電路,係連接有至少一參考訊號及該訊號輸出電路,以接收該至少一待比較訊號,該比較電路對該待比較訊號及參考訊號進行比較並產生一比較訊號;及一微處理器,係連接至該該比較電路,依據該比較電路輸出的比較訊號決定是否喚醒該微處理器來執行對應功能。 The main technical means for achieving the above purpose is that the power saving device comprises: a signal output circuit for outputting at least one signal to be compared; and a comparison circuit for connecting at least one reference signal and the signal output circuit for receiving The comparison circuit compares the signal to be compared with the reference signal and generates a comparison signal; and a microprocessor is connected to the comparison circuit, and determines whether the signal is compared according to the comparison signal output by the comparison circuit. Wake up the microprocessor to perform the corresponding function.
上述省電裝置主要將原本微處理器以韌體長時間進行運算及判斷的程序由外部的比較電路取代之,由於比較電路為硬體電路,故可在一接收到待比較訊號後快速與參考訊號比較,而且只有在待比較訊號大於該參考訊號時,才 將比較訊號傳送至該微處理器,以喚醒微處理器來執行對應功能;如此,即能減少微處理器長時間進行所消耗的電力,而達到省電之功效。 The power saving device mainly replaces the original microprocessor with a firmware for long time calculation and judgment by an external comparison circuit. Since the comparison circuit is a hardware circuit, it can be quickly and referenced after receiving the signal to be compared. Signal comparison, and only when the signal to be compared is greater than the reference signal The comparison signal is transmitted to the microprocessor to wake up the microprocessor to perform the corresponding function; thus, the power consumed by the microprocessor for a long time can be reduced, thereby achieving the power saving effect.
又本發明另一省電裝置係包含有:一觸控板,係包含有驅動線及感應線;一發送電路,係連接至該觸控板的驅動線;一比較電路,係連接至該觸控板的複數感應線,以接收感應訊號,該比較電路另連接有複數觸控臨界訊號,並於接收複數感應訊號後對該感應訊號及觸控臨界訊號進行比較,並產生一比較訊號;一類比數位轉換電路,係連接至該比較電路的輸出端,並將比較訊號轉換為數位感應訊號後輸出;及一微處理器,係連接至該類比數位轉換電路,該微處理器接收該類比數位轉換電路輸出之數位感應訊號,並依據該數位感應訊號執行對應功能。 Another power saving device of the present invention comprises: a touch panel comprising a driving line and a sensing line; a transmitting circuit connected to the driving line of the touch panel; and a comparison circuit connected to the touch The plurality of sensing lines of the control board receive the sensing signal, and the comparing circuit is further connected with the plurality of touch threshold signals, and after receiving the plurality of sensing signals, comparing the sensing signal and the touch threshold signal, and generating a comparison signal; An analog-to-digital conversion circuit is connected to the output of the comparison circuit and converts the comparison signal into a digital sensing signal for output; and a microprocessor is coupled to the analog-to-digital conversion circuit, the microprocessor receives the analog digital The digital sensing signal output by the conversion circuit performs corresponding functions according to the digital sensing signal.
由於上述省電裝置的發送電路係發送驅動訊號,故該比較電路會自該觸控板的感應線上持嬻接收感應訊號,又因該比較電路係連接有複數觸控臨界訊號,故只有在感應訊號大於觸控臨界訊號,該比較電路才會將比較訊號輸出至該類比數位轉換電路,並由該類比數位轉換電路轉換為數位感應訊號後再輸出至該微處理器;是以,對於既有觸控電路長時間以微處理器韌體比對複數數位感應訊號來說,可節省相當多的消耗電力;再者,由於本發明係以硬體電路實現該比較電路,故亦能免除時間誤差對於物件座標運算靈敏性及正確性。 Since the transmitting circuit of the power saving device transmits the driving signal, the comparison circuit continuously receives the sensing signal from the sensing line of the touch panel, and because the comparison circuit is connected with the plurality of touch threshold signals, only the sensing is performed. The signal is greater than the touch threshold signal, and the comparison circuit outputs the comparison signal to the analog digital conversion circuit, and the analog digital conversion circuit converts the digital signal into a digital sensing signal and outputs the signal to the microprocessor; The touch circuit can save a considerable amount of power consumption by using the microprocessor firmware for a plurality of digital sensing signals for a long time. Moreover, since the present invention implements the comparison circuit by a hardware circuit, the time error can be eliminated. Sensitivity and correctness of object coordinates.
又,欲達上述目的所使用的主要技術手段係令本發明的省電方法包含有:經由一比較電路接收該電子裝置之一訊號輸出電路輸出的至少一待比較訊號;該比較電路持續將所接收至少一待比較訊號與至少一參考訊號進行比較,並產生一比較訊號;及依該比較訊號決定是否喚醒該微處理器進行後續運算並執行對應功能。 Moreover, the main technical means for achieving the above object is that the power saving method of the present invention includes: receiving at least one to-be-compared signal outputted by one of the signal output circuits of the electronic device via a comparison circuit; the comparison circuit continues to be Receiving at least one to-be-compared signal and comparing at least one reference signal, and generating a comparison signal; and determining, according to the comparison signal, whether to wake up the microprocessor for subsequent operations and perform a corresponding function.
本發明省電方法係對於持續輸出待比較訊號的應用中提供一比較電路,令該比較電路於接收到待比較訊號後快速與其連接的參考訊號比較,而且只有在待比較訊號大於該參考訊號時,才將比較訊號傳送至該微處理器,以喚醒微處理器來執行對應功能;如此,即能減少微處理器長時間進行所消耗的電力,而達到省電之功效。 The power saving method of the present invention provides a comparison circuit for continuously outputting the signal to be compared, so that the comparison circuit quickly compares the reference signal connected thereto after receiving the signal to be compared, and only when the signal to be compared is greater than the reference signal. The comparison signal is transmitted to the microprocessor to wake up the microprocessor to perform the corresponding function; thus, the power consumed by the microprocessor for a long time can be reduced, thereby achieving the power saving effect.
本發明係針對採用微處理器進行週期掃描、輪詢檢知特定物件或情況有無,作為微處理器執行相應功能依據之電路提供一省電裝置,首先請參閱圖1所示,其至少包含有一訊號輸出電路50、一比較電路10及一微處理器30,其中該訊號輸出電路50係可選自一觸控電路、鍵盤掃描電路或主機板連接器的輪詢電路等能夠周期地輸出至少一待比較訊號的電路。該比較電路10連接該訊號輸出電路50及至少一參考訊號Vr1~Vr4,當該待比較訊號大於其對應參考訊號Vr1~Vr4時,該比較電路10係輸出一比較訊號,其 中該比較訊號至少包含有該待比較訊號中的數值資訊(例如:感應量等)。該微處理器30連接該比較電路10,並於接收該比較訊號後被喚醒,並進行座標運算且以韌體執行該比較訊號及輸出座標對應的功能;又,該微處理器30係透過一類比數位轉換電路20連接至該比較電路10,由該類比數位轉換電路20先將比較訊號轉換為數位訊號後輸出至該微處理器30;其中該微處理器30至少包含有中央處理器(CPU)、計時器(TIMER)、中斷指令單元(IRC)、唯讀記憶體(ROM)、靜態隨機存取記憶體(SRAM)及看門狗計時器(WDT)。 The present invention is directed to the use of a microprocessor for periodic scanning, polling to detect the presence or absence of a particular object or condition, and providing a power saving device as a circuit for the microprocessor to perform the corresponding function. Referring first to FIG. 1, it includes at least one The signal output circuit 50, a comparison circuit 10, and a microprocessor 30, wherein the signal output circuit 50 can be selected from a touch circuit, a keyboard scan circuit, or a polling circuit of a motherboard connector, etc., to periodically output at least one The circuit to be compared to the signal. The comparison circuit 10 is connected to the signal output circuit 50 and the at least one reference signal Vr1 VVr4. When the to-be-compared signal is greater than the corresponding reference signals Vr1 VVr4, the comparison circuit 10 outputs a comparison signal. The comparison signal includes at least the numerical information (for example, the amount of induction, etc.) in the signal to be compared. The microprocessor 30 is connected to the comparison circuit 10, and is woken up after receiving the comparison signal, and performs a coordinate operation and performs a function corresponding to the comparison signal and the output coordinate with a firmware. Moreover, the microprocessor 30 transmits a The analog-to-digital conversion circuit 20 is connected to the comparison circuit 10, and the analog-to-digital conversion circuit 20 first converts the comparison signal into a digital signal and outputs the same to the microprocessor 30; wherein the microprocessor 30 includes at least a central processing unit (CPU) ), timer (TIMER), interrupt command unit (IRC), read only memory (ROM), static random access memory (SRAM), and watchdog timer (WDT).
本發明之省電裝置主要透過該比較電路10來對該待比較訊號及參考訊號進行比較,並依照比較結果決定是否喚醒該微處理器30進行後續的運算及執行動作。本發明之省電裝置並不需要透過該微處理器30進行訊號的比較,因此在不需要執行座標運算或指令執行的前提下,該微處理器30可維持在休眠模式而不用被喚醒。除此之外,本發明省電裝置的微處理器30在休眠模式下係關閉該計時器,相較習用觸控板驅動電路仍需開啟該計時器來得更為省電。由此可知,本發明若應用在長時間執行輪詢動作的電子裝置上,可大幅減少其耗電量,達到節能的目的。請配合參閱圖2A所示,其為本發明應用於觸控裝置上並構成一省電裝置的實施樣態,該省電裝置包含有:一觸控板50’,係包含有驅動線51及感應線52;一發送電路40,係連接至該觸控板50’的驅動線51,以周期發送驅動訊號TX1~TX4;於本實施例中,該發送電 路40係連接有一計時電路401,該計時電路401係提供該發送電路40一周期訊號,令該發送電路40周期地輸出至該觸控板50’;一比較電路10’,係包含複數比較器11,以分別連接至該觸控板50’的複數感應線52,以周期性接收複數感應訊號,並連接有複數觸控臨界訊號Vr1~Vr4(參考訊號),並於接收複數感應訊號後,比對感應訊號R1~R4大於其對應觸控臨界訊號Vr1~Vr4時,該比較電路10’係輸出一比較訊號;一類比數位轉換電路20,係連接至該比較電路10’的輸出端,並於接收該比較電路10’的比較訊號後即被喚醒,並將比較訊號轉換為數位感應訊號後輸出;及一微處理器30,係連接至該類比數位轉換電路20,並於接收該類比數位轉換電路20輸出數位感應訊號後即被喚醒,並依據數位感應訊號執行對應功能。 The power saving device of the present invention mainly compares the to-be-compared signal and the reference signal through the comparison circuit 10, and determines whether to wake up the microprocessor 30 for subsequent operations and execution operations according to the comparison result. The power saving device of the present invention does not need to perform signal comparison through the microprocessor 30, so the microprocessor 30 can be maintained in the sleep mode without being woken up without performing coordinate operations or instruction execution. In addition, the microprocessor 30 of the power saving device of the present invention turns off the timer in the sleep mode, and the timer is required to be turned on to save more power than the conventional touch panel driving circuit. Therefore, the present invention can be applied to an electronic device that performs a polling operation for a long period of time, thereby greatly reducing power consumption and achieving energy saving. As shown in FIG. 2A , the present invention is applied to a touch device and constitutes a power saving device. The power saving device includes: a touch panel 50 ′ including a driving line 51 and The sensing circuit 52 is connected to the driving line 51 of the touch panel 50' to periodically transmit the driving signals TX1~TX4. In this embodiment, the transmitting power is The circuit 40 is connected to a timing circuit 401. The timing circuit 401 provides a periodic signal of the transmitting circuit 40, and the transmitting circuit 40 is periodically outputted to the touch panel 50'. A comparison circuit 10' includes a plurality of comparators. 11. The plurality of sensing lines 52 are respectively connected to the touch panel 50' to receive the plurality of sensing signals periodically, and the plurality of touch threshold signals Vr1 to Vr4 (reference signals) are connected, and after receiving the plurality of sensing signals, The comparison circuit 10' outputs a comparison signal when the comparison sensing signals R1~R4 are greater than the corresponding touch threshold signals Vr1~Vr4; an analog-to-digital conversion circuit 20 is connected to the output end of the comparison circuit 10', and After receiving the comparison signal of the comparison circuit 10', it is woken up, and the comparison signal is converted into a digital sensing signal and output; and a microprocessor 30 is connected to the analog digital conversion circuit 20 and receives the analog digital The conversion circuit 20 is awakened after outputting the digital sensing signal, and performs a corresponding function according to the digital sensing signal.
請配合參閱圖2B,當該省電裝置進入工作模式後係進行第一階段程序,該發送電路40及該比較電路10’即致能,由該發送電路40輸出驅動訊號至該觸控板50’,再由該比較電路10’的各比較器11接收觸控板50’各感應線52的類比感應訊號,若觸控板50’上沒有物件,則比較器11所接收到的類比感應訊號低於其所連接的觸控臨界訊號Vr1~Vr4,而不會輸出比較訊號,因此該類比數位轉換電路20並不會被致能,而該微處理器30也持續維持在休眠狀態。如圖3A及3C所示,該省電裝置雖在工作模式下,但觸控板50’上並無物件,故主要電力消耗元件為發送電路40及比較電路10’,相較於習用觸控板驅動電路的耗電量,雖 然本發明在第一階段程序的電力消耗L1’略高於圖3B的第一階段電力消耗L1,但若無物件53碰觸該觸控板50’的前提下,因為本發明無須喚醒該微處理器30,故並無第二及第三階段程序的電力消耗L2、L3,使得本發明得以大幅節省整體耗能。 Referring to FIG. 2B, when the power saving device enters the working mode, the first phase program is performed, and the transmitting circuit 40 and the comparing circuit 10' are enabled, and the driving circuit 40 outputs a driving signal to the touch panel 50. Then, the comparator 11 of the comparison circuit 10' receives the analog sensing signal of each sensing line 52 of the touch panel 50'. If there is no object on the touch panel 50', the analog sensing signal received by the comparator 11 It is lower than the touch threshold signals Vr1~Vr4 to which it is connected, and the comparison signal is not output. Therefore, the analog-to-digital conversion circuit 20 is not enabled, and the microprocessor 30 is continuously maintained in a sleep state. As shown in FIGS. 3A and 3C, although the power saving device is in the working mode, there is no object on the touch panel 50', so the main power consuming components are the transmitting circuit 40 and the comparing circuit 10', compared to the conventional touch. Board drive circuit power consumption, though However, the power consumption L1' of the first stage program of the present invention is slightly higher than the first stage power consumption L1 of FIG. 3B, but if the object 53 does not touch the touch panel 50', since the present invention does not need to wake up the micro The processor 30 has no power consumption L2, L3 of the second and third stage programs, so that the present invention can greatly save overall energy consumption.
請參閱圖2B及3C所示,當觸控板50’於工作模式S10下且有物件53碰觸該觸控板50'時,對應物件53位置的感應線52的類比感應訊號即會升高S11,此時該比較電路10’對應該感應線52的比較器11會因為其接收的類比感應訊號高於其所連接的觸控臨界訊號Vr1~Vr4,而輸出比較訊號S12(以上為第一階段程序)。接著,進行第二階段程序,其中該類比數位轉換電路20及微處理器30即被致能而被喚醒作動,該類比數位轉換電路20係將該比較訊號轉換為數位感應訊號S13後輸出至該微處理器30,此時該微處理器30係自休眠狀態中被喚醒,會依序對中央處理器、計時器、中斷指令單元、唯讀記憶體、靜態隨機存取記憶體及看門狗計時器等元件進行設定S14,接著該微處理器30之中央處理器會透過韌體存取該唯讀記憶體所接收之數位感應訊號並進行運算,以求得所對應物件的位置及座標資訊S15,第二階段程序的整體電力消耗略為提升至第二階段電力消耗L2’;最後,進行第三階段程序,其中該微處理器30依據前述第二階段程序運算得到的物件位置或座標資訊等訊息判斷對應的觸控功能,並執行該觸控功能S16,再返回休眠模式S17,其中第三階段程序的電力消耗為L3’。 Referring to FIGS. 2B and 3C, when the touch panel 50' is in the working mode S10 and the object 53 touches the touch panel 50', the analog signal of the sensing line 52 corresponding to the position of the object 53 is raised. S11, at this time, the comparator 11 of the comparison circuit 10' corresponding to the sensing line 52 outputs a comparison signal S12 because the analog sensing signal received by the comparator 11 is higher than the connected touch threshold signals Vr1 to Vr4 (the above is the first Stage program). Then, the second stage process is performed, wherein the analog-to-digital conversion circuit 20 and the microprocessor 30 are enabled to be woken up, and the analog-to-digital conversion circuit 20 converts the comparison signal into a digital sensing signal S13 and outputs the same The microprocessor 30, at this time, the microprocessor 30 is awakened from the sleep state, and sequentially pairs the central processing unit, the timer, the interrupt instruction unit, the read only memory, the static random access memory, and the watchdog. The timer and other components perform setting S14, and then the central processing unit of the microprocessor 30 accesses the digital sensing signal received by the read-only memory through the firmware and performs operations to obtain the position and coordinate information of the corresponding object. S15, the overall power consumption of the second-stage program is slightly increased to the second-stage power consumption L2'; finally, the third-stage program is performed, wherein the microprocessor 30 calculates the object position or coordinate information obtained according to the foregoing second-stage program. The message determines the corresponding touch function, and executes the touch function S16, and then returns to the sleep mode S17, wherein the power consumption of the third stage program is L3'.
再請同時比對圖3B,本發明省電裝置於工作模式下雖 然判斷物件座標並執行該物件座標對應功能(如輸出座標、輸出手勢指令等等),但在此時本發明微處理器30並不需要喚醒中央處理器及唯讀記憶體來對複數個數位感應訊號R1~R4逐一進行比對運算,故本發明省電裝置於第二階段程序的電力消耗L2’仍較習用觸控板驅動電路的第二階段程序的電力消耗L2來得低。再者,本發明之微處理器30僅於接收到數位感應訊號才會被喚醒且進行設定、運算及執行對應觸控功能,不會因為對複數個數位感應訊號逐一進行比對及判斷而有時間累積誤差,造成座標運算的錯誤。 Please also compare FIG. 3B at the same time, although the power saving device of the present invention is in the working mode. However, the object coordinates are determined and the object coordinate corresponding functions (such as output coordinates, output gesture commands, etc.) are performed, but at this time, the microprocessor 30 of the present invention does not need to wake up the central processing unit and the read-only memory to form a plurality of digits. The sensing signals R1 R R4 are compared one by one, so that the power consumption L2 ′ of the power saving device of the present invention in the second stage is still lower than the power consumption L 2 of the second stage program of the conventional touch panel driving circuit. Furthermore, the microprocessor 30 of the present invention can only wake up and perform setting, calculation and execution of the corresponding touch function only when receiving the digital sensing signal, and does not have to compare and judge the plurality of digital sensing signals one by one. Time accumulation error, causing errors in coordinate operations.
本發明省電裝置除了圖2A所示可應用於觸控板作為驅動電路外,例如鍵盤掃描電路、主機板連接器的輪詢電路等等,均可於該些應用的待比較訊號輸出端直接設置一比較電路,先以硬體電路快速且預先過濾是否有按鍵已被按下、連接器是否已插上等等特定狀況的產生;若有,再將對應的比較訊號透過類比數位轉換電路傳送至該微處理器,該微處理器只要負責轉換該數位訊號進行運算,判斷該數位訊號對應的功能,再加以執行即可。 The power saving device of the present invention can be applied to the touch panel as a driving circuit as shown in FIG. 2A, for example, a keyboard scanning circuit, a polling circuit of a motherboard connector, etc., which can be directly used at the signal output end of the applications to be compared. Setting a comparison circuit, firstly using a hardware circuit to quickly and pre-filter whether a button has been pressed, whether the connector has been plugged in, or the like; if so, the corresponding comparison signal is transmitted through the analog digital conversion circuit. To the microprocessor, the microprocessor is only responsible for converting the digital signal for calculation, and determining the function corresponding to the digital signal, and then executing it.
綜上所述,本發明省電裝置主要將原本微處理器以韌體進行運算及判斷的程序由外部的比較電路取代之,由於比較電路為硬體電路,故可在一接收到待比較訊號後快速與參考訊號比較,而且只有在待比較訊號大於該參考訊號時,即確定對應執行功能的情況已產生,此時才透過類比數位轉換電路傳送至該微處理器,由微處理器執行對應功能;因此,以應用在觸控板的驅動電路來說,在於工作模式下,接收電路及微處理器的電力消耗時間及量均能有效 減縮,而達到更進一步電力節省的目的。再者,由於本發明係以硬體電路實現該比較電路,故亦能免除時間誤差影響的運算正確性,提高整體掃描或輪詢速度。 In summary, the power saving device of the present invention mainly replaces the program for calculating and judging the original microprocessor with the firmware by an external comparison circuit. Since the comparison circuit is a hardware circuit, the signal to be compared can be received at one time. After the fast comparison with the reference signal, and only when the signal to be compared is greater than the reference signal, it is determined that the corresponding execution function has been generated, and then the analog digital conversion circuit is transmitted to the microprocessor, and the microprocessor performs the corresponding Function; therefore, in the driving circuit applied to the touch panel, in the working mode, the power consumption time and amount of the receiving circuit and the microprocessor can be effectively effective. Reduce the size and achieve further power savings. Furthermore, since the present invention implements the comparison circuit with a hardware circuit, the accuracy of the operation of the time error can be eliminated, and the overall scanning or polling speed can be improved.
10、10’‧‧‧比較電路 10, 10'‧‧‧ comparison circuit
11‧‧‧比較器 11‧‧‧ Comparator
20‧‧‧類比數位轉換電路 20‧‧‧ analog digital conversion circuit
30‧‧‧微處理器 30‧‧‧Microprocessor
40‧‧‧發送電路 40‧‧‧Transmission circuit
50‧‧‧訊號輸出電路 50‧‧‧ Signal output circuit
50’‧‧‧觸控板 50'‧‧‧ Trackpad
51‧‧‧驅動線 51‧‧‧ drive line
52‧‧‧感應線 52‧‧‧Induction line
53‧‧‧物件 53‧‧‧ objects
60‧‧‧驅動電路 60‧‧‧ drive circuit
61‧‧‧發送電路 61‧‧‧Transmission circuit
62‧‧‧接收電路 62‧‧‧ receiving circuit
63‧‧‧微處理器 63‧‧‧Microprocessor
631‧‧‧中央處理器 631‧‧‧Central Processing Unit
632‧‧‧計時器 632‧‧‧Timer
633‧‧‧中斷指令單元 633‧‧‧Interrupt command unit
634‧‧‧唯讀記憶體 634‧‧‧Read-only memory
635‧‧‧靜態隨機存取記憶體 635‧‧‧Static Random Access Memory
636‧‧‧看門狗計時器 636‧‧‧Watchdog Timer
圖1:係本發明省電裝置的一電路方塊圖。 Figure 1 is a block diagram of a circuit of the power saving device of the present invention.
圖2A:係本發明省電裝置一較佳實施例的電路方塊圖。 2A is a circuit block diagram of a preferred embodiment of the power saving device of the present invention.
圖2B:係圖2A執行物件檢測及座標輸出的流程圖。 Figure 2B: Flowchart of Figure 2A performing object detection and coordinate output.
圖3A:係一觸控板上物件出現時序圖。 Figure 3A is a timing diagram showing the appearance of an object on a touch panel.
圖3B:係既有觸控板之驅動電路配合圖3A的電力消耗示意圖。 FIG. 3B is a schematic diagram of the power consumption of the driving circuit of the existing touch panel in conjunction with FIG. 3A.
圖3C:係本發明配合圖3A的電力消耗示意圖。 FIG. 3C is a schematic diagram of the power consumption of the present invention in conjunction with FIG. 3A.
圖4A:係既有驅動電路的電路方塊圖。 Figure 4A is a circuit block diagram of an existing drive circuit.
圖4B:係圖4A執行物件檢測及座標輸出的流程圖。 Figure 4B: Flowchart of Figure 4A performing object detection and coordinate output.
圖5:係微處理器的功能方塊圖。 Figure 5: Functional block diagram of the microprocessor.
Claims (8)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101138589A TWI486831B (en) | 2012-10-19 | 2012-10-19 | Power saving device and power saving method |
CN201210530393.8A CN103777736B (en) | 2012-10-19 | 2012-12-10 | Power saving device and power saving method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101138589A TWI486831B (en) | 2012-10-19 | 2012-10-19 | Power saving device and power saving method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201416926A true TW201416926A (en) | 2014-05-01 |
TWI486831B TWI486831B (en) | 2015-06-01 |
Family
ID=50570085
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW101138589A TWI486831B (en) | 2012-10-19 | 2012-10-19 | Power saving device and power saving method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103777736B (en) |
TW (1) | TWI486831B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109491540B (en) * | 2018-10-31 | 2020-11-13 | 上海海栎创微电子有限公司 | Touch detection system and method applied to system on chip and low in power consumption |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0926838A (en) * | 1995-07-13 | 1997-01-28 | Nec Gumma Ltd | Power saving circuit for logic circuit by means of monitoring of power consumption |
KR100224085B1 (en) * | 1996-08-14 | 1999-10-15 | 윤종용 | Power saving display device and method for controlling power thereof |
FR2927710B1 (en) * | 2008-02-18 | 2011-04-15 | Legrand France | TOUCH INTERFACING METHOD AND DEVICE |
CN101825962B (en) * | 2009-03-04 | 2012-05-23 | 联咏科技股份有限公司 | Touch device capable of saving electric energy and related method thereof |
CN101866231B (en) * | 2009-04-14 | 2013-01-30 | 联咏科技股份有限公司 | Control method for detecting touch event in touch panel and related device thereof |
CN102033638A (en) * | 2009-09-28 | 2011-04-27 | 北京汇冠新技术股份有限公司 | Method for awakening touch and touch system |
JP2011095818A (en) * | 2009-10-27 | 2011-05-12 | Sharp Corp | Content output device and power consumption management method |
-
2012
- 2012-10-19 TW TW101138589A patent/TWI486831B/en active
- 2012-12-10 CN CN201210530393.8A patent/CN103777736B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103777736A (en) | 2014-05-07 |
TWI486831B (en) | 2015-06-01 |
CN103777736B (en) | 2016-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12271245B2 (en) | Apparatus and method for waking up a processor | |
TWI614661B (en) | Scan method for a touch panel and touch device | |
AU2009291819B2 (en) | Circuit having a low power mode | |
US8456136B2 (en) | Method and apparatus for battery gauging in portable terminal | |
TWI475368B (en) | Power control system and method thereof | |
CN201600668U (en) | Touch system | |
CN107515662B (en) | Low-power-consumption management method in MCU chip for keying application | |
US9401141B2 (en) | Computer system having voice-control function and voice-control method | |
CN101598986B (en) | Touch detection device that saves power consumption | |
CN103064486B (en) | Computer device and method for resetting real-time clock signal thereof | |
CN105120314A (en) | Energy-saving method of touchpad remote controller | |
US8769326B2 (en) | Computer system and operation method for changing operation state by capacitive button group | |
CN100410911C (en) | Interrupt controller, interrupt signal preprocessing circuit and interrupt control method thereof | |
TWI549449B (en) | Maintenance method for network connection and computer system | |
CN105183509A (en) | Apparatus and method for realizing shutdown of system power after soft-off | |
TWI397807B (en) | Energy-efficient touch panel device and related method | |
CN103425275A (en) | Sensing module with power saving function applied to optical mouse and method thereof | |
TWI486831B (en) | Power saving device and power saving method | |
CN101825962B (en) | Touch device capable of saving electric energy and related method thereof | |
US9672048B2 (en) | Electronic device and method for waking up operating system thereof | |
CN103825595A (en) | Method and circuit for awakening intelligent control system of household appliance | |
TWI641944B (en) | Electronic device having an auxiliary device for waking and an auxiliar method for waking applied therein | |
CN103488270A (en) | Power saving method and electronic device thereof | |
US10146367B2 (en) | Synchronization method and touch signal processing system using the same | |
JP2007299367A5 (en) |