TWI486831B - Power saving device and power saving method - Google Patents

Power saving device and power saving method Download PDF

Info

Publication number
TWI486831B
TWI486831B TW101138589A TW101138589A TWI486831B TW I486831 B TWI486831 B TW I486831B TW 101138589 A TW101138589 A TW 101138589A TW 101138589 A TW101138589 A TW 101138589A TW I486831 B TWI486831 B TW I486831B
Authority
TW
Taiwan
Prior art keywords
signal
circuit
comparison
analog
microprocessor
Prior art date
Application number
TW101138589A
Other languages
Chinese (zh)
Other versions
TW201416926A (en
Inventor
Wen Yuh Shieh
Cheng Hsun Yang
Original Assignee
Elan Microelectronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Elan Microelectronics Corp filed Critical Elan Microelectronics Corp
Priority to TW101138589A priority Critical patent/TWI486831B/en
Priority to CN201210530393.8A priority patent/CN103777736B/en
Publication of TW201416926A publication Critical patent/TW201416926A/en
Application granted granted Critical
Publication of TWI486831B publication Critical patent/TWI486831B/en

Links

Landscapes

  • Power Sources (AREA)
  • Position Input By Displaying (AREA)

Description

省電裝置及其省電方法Power saving device and power saving method thereof

本發明係一種省電裝置,尤指一種可應用在觸控裝置上的高效率省電裝置及方法。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 the analog-to-digital conversion circuit 62 receives the touch panel 50'. After the analog sensing signal of the line 52, the analog digital signal is converted into a digital sensing signal by the analog digital conversion circuit 62, and then output to the microprocessor 63 in full, and the firmware and preset value built in the microprocessor 63 are built-in. Vr1~Vr4 are 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 and a timer. (TIMER) 632, interrupt instruction unit (IRC) 633, read only memory (ROM) 634, static random access memory (SRAM) 635, and watchdog timer (WDT) 636, in the conventional touch panel driving circuit In the sleep mode, the timer 632 will continue to count in the schedule and wake up the microprocessor 63 periodically, so when the drive circuit 60 is woken up into the active mode by the sleep mode, as shown in FIG. 4B, the microprocessor The device 63 sequentially sets (IRC, ROM, SRAM, WDT), calculation and judgment until entering the sleep mode; therefore, as shown in FIGS. 3A and 3B, the total power of the drive circuit 60 in the operation mode and the sleep mode. Schematic diagram of the consumption; as shown in the figure, after entering the operation mode S61, the first stage program is executed, and after the microprocessor 63 is woken up, the scanning circuit S62 and S63 are enabled to be sent to the transmission circuit 61 and the analog-to-digital conversion circuit 62. The power consumption of the first stage program is L1; then, the second stage process is performed, at which time the analog-to-digital conversion circuit 62 converts the signal of the analog-to-digital conversion circuit 62 into a digital sensing signal, and the microprocessor 63 also Order IRC, RO The setting of M, SRAM, TIMER, WDT, then the microprocessor 63 receives the digital sensing signal of the analog digital conversion circuit 62, and performs coordinate operation on the digital sensing signal through the firmware to determine whether the object is in or not, etc., S64, wherein the second The power consumption (hardware and firmware power consumption) of the phase program is L2; finally, after the microprocessor 63 obtains the object or coordinate information obtained by the above steps, it judges to execute its corresponding function S65, and then enters the sleep mode S66 again after completion. The power consumption (firmware power consumption) of the third 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 power consumption L2 of the second-stage program is naturally higher than the power consumption of the first and third-stage programs, and is a program that must be executed under the current driving 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 analog signal to be compared; and a comparison circuit for connecting at least one reference signal and the signal output circuit to Receiving the at least one analog analog signal to be compared, the comparing circuit compares the analog signal to be compared with the reference signal and generates a comparison signal; and a microprocessor is connected to the comparison circuit, and the comparison signal is output according to the comparison circuit Decide whether to 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. The signal is compared, and the comparison signal is transmitted to the microprocessor only when the signal to be compared is greater than the reference signal, to wake up the microprocessor to perform the corresponding function; thus, the microprocessor can be reduced for a long time. Electricity, and achieve the power saving effect.

又本發明另一省電裝置係包含有:一觸控板,係包含有驅動線及感應線;一發送電路,係連接至該觸控板的驅動線; 一比較電路,係連接至該觸控板的複數感應線,以接收類比感應訊號,該比較電路另連接有複數觸控臨界訊號,並於接收複數類比感應訊號後對該類比感應訊號及觸控臨界訊號進行比較,並產生一比較訊號;一類比數位轉換電路,係連接至該比較電路的輸出端,並將比較訊號轉換為數位感應訊號後輸出;及一微處理器,係連接至該類比數位轉換電路,該微處理器接收該類比數位轉換電路輸出之數位感應訊號,並依據該數位感應訊號執行對應功能。Another power saving device of the present invention comprises: a touch panel comprising a driving line and a sensing line; and a transmitting circuit connected to the driving line of the touch panel; a comparison circuit is connected to the plurality of sensing lines of the touch panel to receive an analog sensing signal, the comparison circuit is further connected with a plurality of touch threshold signals, and the analog sensing signal and the touch are received after receiving the plurality of analog sensing signals The threshold signals are compared and a comparison signal is generated; 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 connected to the analogy The digital conversion circuit receives the digital sensing signal output by the analog digital conversion circuit and performs a corresponding function 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 analog-like analog signal outputted by one of the signal output circuits of the electronic device via a comparison circuit; the comparison circuit continues Receiving at least one analog analog signal to be compared with at least one reference signal, and generating a comparison signal; and determining, according to the comparison signal, whether to wake up a microprocessor for subsequent operations and performing 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, and the power saving effect can be achieved.

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‧‧‧ analog digital conversion 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.

本發明係針對採用微處理器進行週期掃描、輪詢檢知特定物件或情況有無,作為微處理器執行相應功能依據之電路提供一省電裝置,首先請參閱圖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, wherein the comparison signal includes at least Have to wait Compare the numerical information in the signal (for example: amount of induction, etc.). 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 to TX4. In the embodiment, the transmitting circuit 40 is connected to a timing circuit 401. The timing circuit 401 provides a one-cycle 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 for respectively connecting to the touch panel. a 50' complex sensing line 52 for periodically receiving a plurality of sensing signals and having a plurality of touch threshold signals connected thereto Vr1~Vr4 (reference signal), and after receiving the complex sensing signal, when the comparison sensing signals R1~R4 are greater than the corresponding touch threshold signals Vr1~Vr4, the comparing circuit 10' outputs a comparison signal; an analog-to-digital conversion The circuit 20 is connected to the output end of the comparison circuit 10', and is awakened after receiving the comparison signal of the comparison circuit 10', and converts the comparison signal into a digital sensing signal and outputs the same; and a microprocessor 30, The system is connected to the analog-to-digital conversion circuit 20, and is awakened after receiving the analog-to-digital conversion circuit 20 to output a 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. The power consumption of the board driving circuit, although 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, if no object 53 touches the touch panel 50' Since the present invention does not need to wake up the microprocessor 30, there is 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,再返回休眠模式517,其中第三階段程序的電力消耗為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 517, wherein the power consumption of the third stage program is L3'.

再請同時比對圖3B,本發明省電裝置於工作模式下雖然判斷物件座標並執行該物件座標對應功能(如輸出座標、輸出手勢指令等等),但在此時本發明微處理器30並不需要喚醒中央處理器及唯讀記憶體來對複數個數位感應訊號R1~R4逐一進行比對運算,故本發明省電裝置於第二階段程序的電力消耗L2’仍較習用觸控板驅動電路的第二階段程序的電力消耗L2來得低。再者,本發明之微處理器30僅於接收到數位感應訊號才會被喚醒且進行設定、運算及執行對應觸控功能,不會因為對複數個數位感應訊號逐一進行比對及判斷而有時間累積誤差,造成座標運算的錯誤。Referring to FIG. 3B at the same time, the power saving device of the present invention determines the object coordinates and performs the object coordinate corresponding function (such as output coordinates, output gesture command, etc.) in the working mode, but at this time, the microprocessor 30 of the present invention. There is no need to wake up the central processing unit and the read-only memory to perform a comparison operation on the plurality of digital sensing signals R1 to R4 one by one. Therefore, the power consumption of the power saving device of the present invention in the second stage is still better than that of the conventional touch panel. The power consumption L2 of the second stage program of the drive circuit is low. 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 reduced, and the purpose of further power saving is achieved. 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.

Claims (8)

一種省電裝置,包含有:一訊號輸出電路,輸出至少一待比較類比訊號;一比較電路,係連接有至少一參考訊號及該訊號輸出電路,以接收該至少一待比較類比訊號,該比較電路對該待比較類比訊號及參考訊號進行比較並產生一比較訊號;及一微處理器,係連接至該比較電路,依據該比較電路輸出的比較訊號決定是否喚醒該微處理器來執行對應功能。 A power saving device includes: a signal output circuit for outputting at least one analog signal to be compared; and a comparison circuit for connecting at least one reference signal and the signal output circuit to receive the at least one analog signal to be compared, the comparison The circuit compares the analog signal and the reference signal to be compared and generates a comparison signal; and a microprocessor is connected to the comparison circuit, and determines whether to wake up the microprocessor to perform a corresponding function according to the comparison signal output by the comparison circuit. . 如請求項1所述之省電裝置,該訊號輸出電路係連接一計時電路,該計時電路控制該訊號輸出電路週期地輸出該至少一待對比訊號。 The power saving device of claim 1, wherein the signal output circuit is connected to a timing circuit, and the timing circuit controls the signal output circuit to periodically output the at least one to be compared signal. 如請求項1或2所述之省電裝置,係進一步包含有一類比數位轉換電路,係連接於該比較電路的輸出端及微處理器之間,以將比較訊號轉換為數位訊號後輸出至該微處理器。 The power saving device according to claim 1 or 2, further comprising an analog-to-digital conversion circuit connected between the output end of the comparison circuit and the microprocessor to convert the comparison signal into a digital signal and output the same microprocessor. 一種省電裝置,係包含有:一觸控板,係包含有複數驅動線及感應線;一發送電路,係連接至該觸控板的驅動線;一比較電路,係連接至該觸控板的複數感應線,以接收類比感應訊號,該比較電路另連接有複數觸控臨界訊號,並於接收複數類比感應訊號後對該類比感應訊號及觸控臨界訊號進行比較,並產生一比較訊號;一類比數位轉換電路,係連接至該比較電路的輸出端,並將比較訊號轉換為數位感應訊號後輸出;及一微處理器,係連接至該類比數位轉換電路,該微處理器接收該類比數位轉換電路輸出之數位感應訊號,並依據該數位感應訊號執行對應功能。 A power saving device includes: a touch panel comprising a plurality of driving lines and sensing lines; a transmitting circuit connected to the driving lines of the touch panel; and a comparison circuit connected to the touch panel The plurality of sensing lines are configured to receive analog sensing signals, and the comparing circuit is further connected with a plurality of touch threshold signals, and comparing the analog sensing signals and the touch threshold signals after receiving the plurality of analog sensing signals, and generating a comparison signal; An analog-to-digital conversion circuit is coupled to the output of the comparison circuit and converts the comparison signal into a digital sense signal for output; and a microprocessor is coupled to the analog-to-digital conversion circuit, the microprocessor receives the analogy The digital conversion circuit outputs a digital sensing signal, and performs a corresponding function according to the digital sensing signal. 如請求項4所述之省電裝置,該發送電路係連接有一計時電路,該計時電路控制該發送電路周期地發送驅動訊號至該發送電路。 The power saving device of claim 4, wherein the transmitting circuit is coupled to a timing circuit that controls the transmitting circuit to periodically transmit a driving signal to the transmitting circuit. 一種電子裝置的省電方法,係包含有:經由一比較電路接收該電子裝置之一訊號輸出電路輸出的至少一待比較類比訊號;該比較電路持續將所接收至少一待比較類比訊號與至少一參考訊號進行比較,並產生一比較訊號;及依該比較訊號決定是否喚醒一微處理器進行後續運算並執行對應功能。 A power saving method for an electronic device includes: receiving, by a comparison circuit, at least one analog-to-comparison analog signal outputted by a signal output circuit of the electronic device; the comparison circuit continuously receiving at least one analog signal to be compared with at least one The reference signal is compared and a comparison signal is generated; and the comparison signal is used to determine whether to wake up a microprocessor for subsequent operations and perform corresponding functions. 如請求項6所述之省電方法,其先將該比較訊號轉換為數位訊號後再輸出至該微處理器。 The power saving method of claim 6, wherein the comparison signal is first converted into a digital signal and then output to the microprocessor. 如請求項6所述之省電方法,其中該比較訊號至少包含該待比較訊號中的數值資訊。 The power saving method of claim 6, wherein the comparison signal includes at least the numerical information in the signal to be compared.
TW101138589A 2012-10-19 2012-10-19 Power saving device and power saving method TWI486831B (en)

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 TW201416926A (en) 2014-05-01
TWI486831B true 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)

* Cited by examiner, † Cited by third party
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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515202A (en) * 2008-02-18 2009-08-26 罗格朗法国公司 Touch-sensitive interface device and method
CN101825962A (en) * 2009-03-04 2010-09-08 联咏科技股份有限公司 Touch control device for saving electrical energy and related method thereof
CN101866231A (en) * 2009-04-14 2010-10-20 联咏科技股份有限公司 Control method and related device for detecting touch event in touch panel
CN102033638A (en) * 2009-09-28 2011-04-27 北京汇冠新技术股份有限公司 Method for awakening touch and touch system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
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
JP2011095818A (en) * 2009-10-27 2011-05-12 Sharp Corp Content output device and power consumption management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515202A (en) * 2008-02-18 2009-08-26 罗格朗法国公司 Touch-sensitive interface device and method
CN101825962A (en) * 2009-03-04 2010-09-08 联咏科技股份有限公司 Touch control device for saving electrical energy and related method thereof
CN101866231A (en) * 2009-04-14 2010-10-20 联咏科技股份有限公司 Control method and related device for detecting touch event in touch panel
CN102033638A (en) * 2009-09-28 2011-04-27 北京汇冠新技术股份有限公司 Method for awakening touch and touch system

Also Published As

Publication number Publication date
CN103777736A (en) 2014-05-07
CN103777736B (en) 2016-12-21
TW201416926A (en) 2014-05-01

Similar Documents

Publication Publication Date Title
US11009933B2 (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
TW201421223A (en) Power control system and method thereof
US9401141B2 (en) Computer system having voice-control function and voice-control method
JP2004139547A (en) Power source control method of portable computer
CN103257716B (en) A kind of low-power consumption keyboard and Scan orientation method thereof
WO2018053714A1 (en) Single-chip microcomputer system, and reset method for single-chip microcomputer system
CN105120314A (en) Energy-saving method of touchpad remote controller
US8769326B2 (en) Computer system and operation method for changing operation state by capacitive button group
TWI539275B (en) Touch control device and controller, testing method and system of the same
TWI549449B (en) Maintenance method for network connection and computer system
TWI486831B (en) Power saving device and power saving method
CN1858725A (en) Interrupt controller, interrupt signal pretreating circuit and its interrupt control method
CN202522610U (en) Direct current power supply power failure monitoring device
US9672048B2 (en) Electronic device and method for waking up operating system thereof
US20150134728A1 (en) Computer system and remote control method thereof
TW201608367A (en) Chip device and electronic system thereof
TWI641944B (en) Electronic device having an auxiliary device for waking and an auxiliar method for waking applied therein
US10146367B2 (en) Synchronization method and touch signal processing system using the same
WO2020140500A1 (en) Analogue watchdog apparatus and control method therefor
TW201435663A (en) Electronic device for preventing accidental touch and operating method thereof
CN201788460U (en) Reset circuit
CN108874449A (en) With the electronic system for waking up auxiliary device and it is applied to wake-up householder method therein
KR0150752B1 (en) Power operating system