TWI385560B - Method and device for generating touch program - Google Patents

Method and device for generating touch program Download PDF

Info

Publication number
TWI385560B
TWI385560B TW97146835A TW97146835A TWI385560B TW I385560 B TWI385560 B TW I385560B TW 97146835 A TW97146835 A TW 97146835A TW 97146835 A TW97146835 A TW 97146835A TW I385560 B TWI385560 B TW I385560B
Authority
TW
Taiwan
Prior art keywords
touch
program
sensing
parameter
touch program
Prior art date
Application number
TW97146835A
Other languages
Chinese (zh)
Other versions
TW201023001A (en
Inventor
Cheng Ping Yueh
Meng Che Lee
Original Assignee
Best Solution Inc
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 Best Solution Inc filed Critical Best Solution Inc
Priority to TW97146835A priority Critical patent/TWI385560B/en
Publication of TW201023001A publication Critical patent/TW201023001A/en
Application granted granted Critical
Publication of TWI385560B publication Critical patent/TWI385560B/en

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Description

觸控程序產生方法及裝置Touch program generation method and device

本發明是關於一種程序產生方法,特指一種觸控開關(touch switch)的程序產生方法。The invention relates to a program generation method, in particular to a program generation method of a touch switch.

近年來各種電子裝置包括手機、筆記型電腦、大型機具、家電用品等設備上的按鍵開關,都逐漸捨棄傳統的按鍵而被觸控開關所取代。事實上,連廣泛使用的觸控面板,也可看做是配置在顯示器上的大量的觸控開關集合體,因其原理與觸控開關相同。In recent years, various electronic devices, including push-button switches on mobile phones, notebook computers, large-sized machines, home appliances, and the like, have gradually abandoned traditional buttons and been replaced by touch switches. In fact, even the widely used touch panel can be regarded as a large number of touch switch assemblies disposed on the display, because the principle is the same as the touch switch.

觸控開關主要分為電容式(capacitance)與電阻式(resistance)。以電容式觸控開關為例,電容式開關只需要一個電極就能運作,電極則配置於木材、玻璃、塑膠所製成的非導體面板後方。這種觸控開關根據人體電容(body capacitance)運作,當人或觸控器具觸碰它時,會增加電容導致電容值變化,當其電容變化值達到或超過一預先設定的閾值,則判斷開關已被按壓而觸發。關於上述觸控與否的判斷,都是以燒錄在IC內的軟體,即觸控程序來處理。Touch switches are mainly divided into capacitive (capacitance) and resistive (resistance). Taking a capacitive touch switch as an example, a capacitive switch requires only one electrode to operate, and an electrode is disposed behind a non-conductor panel made of wood, glass, or plastic. The touch switch operates according to the body capacitance. When a person or a touch device touches it, the capacitance is increased to cause a change in the capacitance value. When the capacitance change value reaches or exceeds a predetermined threshold, the switch is judged. Triggered by being pressed. Regarding the above-mentioned touch or not, the judgment is performed by the software programmed in the IC, that is, the touch program.

至於電阻式觸控開關則需要兩個電極,並以電阻值變化為是否接觸判斷依據。兩種觸控開關最主要的差別在於電阻式需要直接按壓才能被觸發,但電容式卻可以經由間接按壓而被觸發,兩者雖然原理不同,但同樣需要觸控程序來處理被觸控與否的判斷。As for the resistive touch switch, two electrodes are required, and the resistance value is changed as a basis for judging whether or not the contact is made. The main difference between the two types of touch switches is that the resistive type needs to be directly pressed to be triggered, but the capacitive type can be triggered by indirect pressing. Although the two principles are different, the touch program is also required to handle the touched or not. Judgment.

在觸控開關的製造過程中,產品機構外殼材質與電路佈線會影響環境的離散電容值或電阻值,因此觸控程序在編寫時需要依據個別產品的差異,「量身訂做」其專屬的觸控程序。以往的程序開發方式都是以手工方式填寫觸控端的輸入值,在沒有相關數據或先前已產品的數據無法使用的情況下,開發人員在每次處理新產品時,只能不斷以嘗試錯誤的方式測試輸入值 是否合適,以獲得最佳的觸控敏感度。而且,每次不同的電路佈線與材質都會影響敏感度,使得參數要重新調整。如果造成敏感度不足的原因並非程序而是其他因素,則浪費更多開發時間,不但效率差更容易延誤產品上市的時程。In the manufacturing process of the touch switch, the material structure and circuit wiring of the product mechanism will affect the discrete capacitance value or resistance value of the environment. Therefore, the touch program needs to be tailor-made according to the difference of individual products. Touch program. In the past, the program development method was to manually fill in the input value of the touch terminal. In the absence of relevant data or the data of the previous product could not be used, the developer could only try to make mistakes every time he processed the new product. Method test input value Is it right to get the best touch sensitivity? Moreover, each different circuit layout and material will affect the sensitivity, so that the parameters have to be re-adjusted. If the cause of the lack of sensitivity is not the program but other factors, it will waste more development time, not only the efficiency is more likely to delay the time-to-market of the product.

因此,若是能夠讓觸控程序的產生過程更為簡便,則可以在較短的時間內解決產品製程中關於觸控程序的問題,以便於處理其他因素所造成的敏感度問題,提高產品開發效率以及加速上市的時程。有鑑於上述習知技術的缺點,本案發明人乃經悉心試驗與研究,並一本鍥而不捨之精神,終於發明出「觸控程序產生方法」,經由特殊的運算公式以及簡便的觸控輸入測試過程,充分提高觸控程序的產生效率,加速產品上市的速度。Therefore, if the process of generating the touch program can be made easier, the problem of the touch program in the product process can be solved in a short time, so as to deal with the sensitivity problem caused by other factors and improve the product development efficiency. And the time schedule for accelerating the listing. In view of the shortcomings of the above-mentioned prior art, the inventor of the present invention has carefully tested and researched, and has invented the "touch program generation method" through a special operation formula and a simple touch input test process. Fully improve the efficiency of the touch program and speed up the time to market.

本案之原始構想為觸控程序產生方法,針對不同的佈線與材質的觸控開關,經由測試產生感應變化量,以特殊運算公式加以計算而產生出較佳的觸控程序,本案方法不但能加速觸控程序的開發,使觸控開關具有符合需要的敏感度,並能提高生產效率及增加市場競爭力。The original concept of the case is the touch program generation method. For different touch and material touch switches, the amount of induced change is generated through testing, and a special calculation formula is used to generate a better touch program, and the method can not only accelerate The development of the touch program enables the touch switch to have the sensitivity required, and can improve production efficiency and increase market competitiveness.

依據上述構想,提出一種觸控程序產生方法,其包括下列步驟:觸發一觸控開關,產生複數個感應變化量;比例化該些感應變化量而獲得一倍率參數;根據該倍率參數計算一新感應變化量;及選擇該倍率參數與該新感應變化量設定一觸控程序輸入值。According to the above concept, a touch program generating method is provided, which includes the following steps: triggering a touch switch to generate a plurality of sensing variations; scaling the sensing variations to obtain a magnification parameter; calculating a new one according to the magnification parameter Sensing the amount of change; and selecting the magnification parameter and the new sensing variation to set a touch program input value.

較佳地,本發明所提出的觸控程序產生方法,其中該些感應變化量的一算數平均數與該些感應變化量成比例關係。Preferably, the method for generating a touch program according to the present invention, wherein an arithmetic mean of the amount of induced changes is proportional to the amount of induced changes.

較佳地,本發明所提出的觸控程序產生方法,更包括:將該倍率參數設定為一整數。Preferably, the method for generating a touch program according to the present invention further includes: setting the magnification parameter to an integer.

較佳地,本發明所提出的觸控程序產生方法,其中該倍率參數與該算數平均數相乘而得到該新感應變化量。Preferably, the touch program generating method of the present invention, wherein the magnification parameter is multiplied by the arithmetic mean to obtain the new sensing variation.

較佳地,本發明所提出的觸控程序產生方法,其中該些感 應變化量是該觸控開關被觸發與未被觸發下的複數個電容變化值。Preferably, the touch program generating method of the present invention, wherein the feelings The amount of change is the value of the plurality of capacitance changes when the touch switch is triggered and not triggered.

較佳地,本發明所提出的觸控程序產生方法,其中該些感應變化量是該觸控開關被觸發與未被觸發下的複數個電阻變化值。Preferably, the touch program generating method of the present invention, wherein the sensing variation is a plurality of resistance change values when the touch switch is triggered and not triggered.

較佳地,本發明所提出的觸控程序產生方法,其中該些感應變化量與該新感應變化量更包括一感應補償量,能修正該觸控開關的敏感度。Preferably, the touch program generating method of the present invention, wherein the sensing variation and the new sensing variation further comprise an inductive compensation amount, which can correct the sensitivity of the touch switch.

較佳地,本發明所提出的觸控程序產生方法,其中該觸控程序輸入值為一感應範圍值,根據該感應範圍值判斷該觸控開關是否被觸發。Preferably, the touch program generating method of the present invention, wherein the touch program input value is a sensing range value, and determining whether the touch switch is triggered according to the sensing range value.

較佳地,本發明所提出的觸控程序產生方法,其步驟包括:設定一觸控程序參數,將該觸控程序參數燒錄至一積體電路;及設定該觸控程序參數,將該觸控程序參數與該觸控程序輸入值燒錄至該積體電路。Preferably, the touch program generating method of the present invention comprises the steps of: setting a touch program parameter, burning the touch program parameter to an integrated circuit; and setting the touch program parameter, The touch program parameters and the touch program input values are burned to the integrated circuit.

較佳地,本發明所提出的觸控程序產生方法,其中該觸控程序參數更包括一觸控開關數目、一積體電路封裝形式以及一積體電路傳輸格式。Preferably, the touch program generation method of the present invention further includes a touch switch number, an integrated circuit package form, and an integrated circuit transfer format.

復依據上述構想,提出一種觸控程序產生裝置,其包括:一觸控開關,經由觸發而產生複數個感應變化量;一計算單元,連接於該觸控開關,將該些感應變化量以比例化計算而獲得一倍率參數,並根據該倍率參數計算一新感應變化量;及一程序編輯單元,連接於該計算單元,能根據該計算單元所計算之該倍率參數與該新感應變化量,設定一觸控程序輸入值。According to the above concept, a touch program generating device is provided, which includes: a touch switch that generates a plurality of sensing changes via a trigger; and a computing unit connected to the touch switch to proportionally change the sensing amounts Calculating a doubling parameter, and calculating a new sensing variation according to the magnification parameter; and a program editing unit connected to the computing unit, according to the magnification parameter calculated by the computing unit and the new sensing variation, Set a touch program input value.

較佳地,本發明所提出的觸控程序產生裝置,其中該程序編輯單元能設定一觸控程序參數,且該觸控程序參數更包括一觸控開關數目、一積體電路封裝形式以及一積體電路傳輸格式。Preferably, the touch program generating device of the present invention, wherein the program editing unit can set a touch program parameter, and the touch program parameter further includes a number of touch switches, an integrated circuit package form, and a Integrated circuit transmission format.

較佳地,本發明所提出的觸控程序產生裝置,其中該程序 編輯單元能將該觸控程序輸入值設定為一感應範圍值,使該感應範圍值能做為判斷該觸控開關是否被觸發的依據。Preferably, the touch program generating device of the present invention, wherein the program The editing unit can set the touch program input value to a sensing range value, so that the sensing range value can be used as a basis for determining whether the touch switch is triggered.

較佳地,本發明所提出的觸控程序產生裝置,更包括一編譯單元,連接於該程序編輯單元,能將該觸控程序輸入值與該觸控程序參數編譯為一燒錄檔。Preferably, the touch program generating device of the present invention further includes a compiling unit connected to the program editing unit, and the touch program input value and the touch program parameter can be compiled into a burning file.

較佳地,本發明所提出的觸控程序產生裝置,更包括一燒錄單元,連接於該編譯單元,能將該燒錄檔燒錄至一積體電路。Preferably, the touch program generating device of the present invention further includes a burning unit connected to the compiling unit to burn the burning file to an integrated circuit.

本案得藉由下列圖式及詳細說明,以助深入了解本發明的優點:請參閱第一圖,其為本發明觸控程序產生裝置的一實施例的結構圖。該觸控程序產生裝置1包括:觸控開關11、計算單元12及程序編輯單元13。觸控開關11可為電容式或電阻式的觸控開關,能經由使用者觸發而產生複數個感應變化量。觸控開關11同時也是觸控程序的運作對象,本發明所產生的觸控程序,是為了讓各種不同材質與電路設計的觸控開關能順利進行感應以發揮功能,因此在每次產生新的觸控程序前,可更換觸控開關11。The following drawings and detailed description are provided to facilitate an in-depth understanding of the advantages of the present invention: refer to the first figure, which is a structural diagram of an embodiment of the touch program generating apparatus of the present invention. The touch program generating device 1 includes a touch switch 11, a calculation unit 12, and a program editing unit 13. The touch switch 11 can be a capacitive or resistive touch switch, and can generate a plurality of sensing variations through user triggering. The touch switch 11 is also the object of operation of the touch program. The touch program generated by the present invention is designed to enable various touch switches of different materials and circuit designs to perform functions smoothly, so that each time a new one is generated. The touch switch 11 can be replaced before the touch program.

計算單元12連接於觸控開關11,當觸控開關11被觸發,計算單元12能接收來自於觸控開關11的複數個感應變化量,然後計算單元12將該些感應變化量依照特定公式予以比例化計算而獲得倍率參數,並根據該倍率參數再計算出新感應變化量。The computing unit 12 is connected to the touch switch 11. When the touch switch 11 is triggered, the computing unit 12 can receive a plurality of sensing variations from the touch switch 11, and then the calculating unit 12 applies the sensing variations according to a specific formula. The magnification parameter is obtained by proportional calculation, and the new induction variation is calculated according to the magnification parameter.

需要特別指出,在本發明的觸控開關11所產生的感應變化量,是經由計算單元12自動記錄並計算觸控開關11被觸發(感應值)與未被觸發(環境值)的電容差值或電阻差值而獲得。It should be noted that the amount of change in the sensing generated by the touch switch 11 of the present invention is automatically recorded by the computing unit 12 and calculates the capacitance difference between the triggered (sensed value) and the untriggered (environmental value) of the touch switch 11. Or obtained by the difference in resistance.

程序編輯單元13,連接於計算單元12,能根據該計算單 元12所計算的倍率參數與該新感應變化量等計算結果,來設定為適合觸控程序運作的觸控程序輸入值,並可依觸控程序運作需要,而將倍率參數設定為整數,且該程序編輯單元13還能設定觸控程序參數,該觸控程序參數包括觸控開關的按鍵材質、觸控開關數目、積體電路封裝形式以及積體電路傳輸格式等觸控程序運作所必須的設定參數。此外,為便於觸控程序運作,程序編輯單元13能將該觸控程序輸入值設定為一感應範圍值,使該感應範圍值能做為判斷觸控開關11是否被觸發的依據。當程序編輯單元13有了符合需要的觸控程序輸入值與觸控程序參數後,就能夠產生符合需要的觸控程序。The program editing unit 13 is connected to the computing unit 12 and can be based on the calculation sheet. The calculation result of the magnification parameter calculated by the element 12 and the new sensing variation amount is set as a touch program input value suitable for the operation of the touch program, and the magnification parameter is set to an integer according to the operation requirement of the touch program, and The program editing unit 13 can also set the touch program parameters, and the touch program parameters include the button material of the touch switch, the number of touch switches, the integrated circuit package form, and the integrated circuit transmission format. Setting parameters. In addition, in order to facilitate the operation of the touch program, the program editing unit 13 can set the touch program input value to a sensing range value, so that the sensing range value can be used as a basis for determining whether the touch switch 11 is triggered. When the program editing unit 13 has the touch program input value and the touch program parameter that meet the requirements, it can generate a touch program that meets the needs.

此外,本發明的觸控程序產生裝置,還包括編譯單元14,連接於該程序編輯單元13,能將該觸控程序輸入值與該觸控程序參數等觸控程序相關資訊編譯為一燒錄檔。至於連接該編譯單元14的燒錄單元15,則將編譯完成的燒錄檔燒錄至一積體電路(IC)16。且觸控程序產生裝置1為了方便使用者操作,還連接或包括一操作介面17,除了能夠顯示觸控開關11的電容或電阻變化波形圖,更能夠顯示讓使用者設定各項觸控程序參數,以及選擇是否燒錄積體電路或建構中間檔等步驟細節。In addition, the touch program generating device of the present invention further includes a compiling unit 14 connected to the program editing unit 13, and can compile the touch program input value and the touch program related information such as the touch program parameter into a burning program. files. As for the programming unit 15 connected to the compiling unit 14, the compiled burning file is burned to an integrated circuit (IC) 16. The touch program generating device 1 is connected or includes an operation interface 17 in addition to being capable of displaying the capacitance or resistance change waveform of the touch switch 11, and is capable of displaying the touch program parameters. And the details of the steps such as whether to burn the integrated circuit or construct the intermediate file.

在特定情況下,本發明的計算單元12、程序編輯單元13、編譯單元14、燒錄單元15、操作介面17可以為各自獨立的裝置彼此相連結,或是將上述五元件中任兩個以上合併為一個裝置或元件,只要能發揮與上述元件相同的功能,並能執行本發明所揭露的方法即可。且上述12~15及17等元件的連接關係也可隨特定需要做調整。換句話說,只要是能執行本發明方法的裝置,都屬於本發明所欲保護的範圍。In a specific case, the computing unit 12, the program editing unit 13, the compiling unit 14, the programming unit 15, and the operation interface 17 of the present invention may be connected to each other independently, or two or more of the above five components. The combination is a device or an element as long as it can perform the same functions as those described above and can perform the method disclosed in the present invention. And the connection relationship of the above 12~15 and 17 components can also be adjusted according to specific needs. In other words, any device capable of performing the method of the present invention is within the scope of the present invention.

此外,根據第一圖,計算單元12、程序編輯單元13、編譯單元14、燒錄單元15是屬於觸控程序產生裝置1中的工作部1A,工作部1A可連接或包括操作介面17。觸控開關11與積體電路16則是包括在觸控部1B內。一般來說,一個觸控部 1B更包括觸控電路(圖未顯示)與由不同材質製成的觸控按鍵(圖未顯示)。In addition, according to the first figure, the calculation unit 12, the program editing unit 13, the compiling unit 14, and the burning unit 15 belong to the working part 1A in the touch program generating apparatus 1, and the working part 1A can be connected or include the operation interface 17. The touch switch 11 and the integrated circuit 16 are included in the touch portion 1B. Generally, a touch unit 1B further includes a touch circuit (not shown) and touch buttons made of different materials (not shown).

請參閱第二圖,其為本發明觸控程序產生方法的一實施例的流程圖。首先,在欲開發的觸控開關11及可燒錄的積體電路16連接到觸控程序產生裝置1後,觸控程序產生裝置1會讀取積體電路16的IC描述檔,使用者可經由觸控程序產生裝置1連接或包括的操作介面17來設定觸控程序參數值(步驟21),該觸控程序參數包括觸控開關的按鍵材質、觸控開關數目、積體電路封裝形式以及積體電路傳輸格式等觸控程序運作所必須的設定參數。設定觸控開關數目為例如1個以及積體電路傳輸格式為例如UART_TEST(測試模式)。設定完成後建立一中間檔(步驟21A),將硬體程式碼與中間檔結合(步驟21B),然後經由編譯單元14將原本低階的程序語言經編譯而產生一IC燒錄檔(步驟22),用燒錄單元15將該燒錄檔燒錄至一積體電路16(步驟23)。上述步驟21~23,簡單來說,就是設定觸控程序參數,並將觸控程序參數燒錄至積體電路16的步驟。Please refer to the second figure, which is a flowchart of an embodiment of a touch program generating method of the present invention. First, after the touch switch 11 and the programmable integrated circuit 16 to be developed are connected to the touch program generating device 1, the touch program generating device 1 reads the IC description file of the integrated circuit 16, and the user can The touch program parameter value is set via the operation interface 17 connected or included by the touch program generating device 1 (step 21), and the touch program parameters include a button material of the touch switch, a number of touch switches, an integrated circuit package form, and The setting parameters necessary for the operation of the touch program such as the integrated circuit transmission format. The number of touch switches is set to, for example, one and the integrated circuit transmission format is, for example, UART_TEST (test mode). After the setting is completed, an intermediate file is created (step 21A), the hardware code is combined with the intermediate file (step 21B), and then the original low-level programming language is compiled via the compiling unit 14 to generate an IC burning file (step 22). The burn-in unit 15 is used to burn the burn-in file to an integrated circuit 16 (step 23). The above steps 21 to 23 are simply steps of setting the touch program parameters and burning the touch program parameters to the integrated circuit 16.

接下來,觸控程序產生裝置1會判斷積體電路傳輸格式是否為測試模式(步驟24),若為「是」(YES)則進入使用者進行觸發觸控開關的測試步驟,經由手指或治具按壓等各種觸發手段來觸發觸控開關,產生複數個感應變化量(步驟25)。計算單元12根據特定計算公式,比例化該些感應變化量獲得倍率參數(步驟26),根據該倍率參數計算新感應變化量(步驟27),然後選擇該倍率參數與該新感應變化量以設定觸控程序輸入值(步驟28)。Next, the touch program generating device 1 determines whether the integrated circuit transmission format is the test mode (step 24). If YES, the user enters the test step of triggering the touch switch, and the finger or the rule is pressed. Various triggering means such as pressing are used to trigger the touch switch, and a plurality of sensing variations are generated (step 25). The calculating unit 12 scales the inductive changes according to a specific calculation formula to obtain a magnification parameter (step 26), calculates a new inductive change amount according to the magnification parameter (step 27), and then selects the magnification parameter and the new inductive variation to set The touch program enters a value (step 28).

在上述步驟26中提到計算單元12所採用的特定計算公式為例如下述: The specific calculation formula employed by the calculation unit 12 in the above step 26 is, for example, the following:

在上述公式中,倍率參數(Scale)是任一感應變化量(Offset_count)除以該些感應變化量的算數平均數(AVG_Offset)的商,通常為了調整觸控開關的敏感度,感應變化量可再加上一個額外的感應補償量(Sensivity_Compensate),再去除以該些感應變化量的算數平均數以計算出倍率參數。因此,該些感應變化量的算數平均數與該些感應變化量成比例關係。In the above formula, the scale parameter (Scale) is the quotient of any sensed change amount (Offset_count) divided by the arithmetic mean of the sensed change amounts (AVG_Offset). Generally, in order to adjust the sensitivity of the touch switch, the sense change amount may be In addition, an additional amount of inductive compensation (Sensivity_Compensate) is added, and the arithmetic mean of the induced variations is removed to calculate the magnification parameter. Therefore, the arithmetic mean of the amount of induced changes is proportional to the amount of induced changes.

此外,為方便程序語言的編寫,倍率參數以整數為較佳,但根據上述公式計算並不能保證倍率參數一定是整數,這導致無法界定更寬廣的感應範圍值的問題。例如,當倍率參數為1.336,卻只能用為1或2等整數來描述,在經過數學運算後所得到的感應變化量可能與實際值差距太大,導致會產生過度敏感或不夠敏感的狀況。因此,本發明可根據上述公式得到非整數的倍率參數(例如1.336)後,將其設定為近似的整數,例如1與2,再採用數值為1與2的倍率參數,乘以該些感應變化量的算數平均數得到的乘積,以回推出新感應變化量做為設定觸控輸入值的依據。由於上述公式為不等式,因此可以獲得具有範圍界定的較佳的新感應變化量,且該新感應變化量甚至可再經由使用者適當選擇或是經由觸控程序產生裝置1根據預先設定好的觸控程序參數等相關條件進行篩選出較佳值。In addition, in order to facilitate the programming language, the magnification parameter is preferably an integer, but the calculation according to the above formula does not guarantee that the magnification parameter must be an integer, which leads to the problem that a wider sensing range value cannot be defined. For example, when the magnification parameter is 1.336, but it can only be described by an integer such as 1 or 2, the amount of induced change after mathematical operation may be too far from the actual value, resulting in an oversensitive or insensitive condition. . Therefore, the present invention can obtain a non-integer magnification parameter (for example, 1.336) according to the above formula, and then set it to an approximate integer, such as 1 and 2, and then multiply the inductive changes by using a magnification parameter having a value of 1 and 2. The product of the arithmetic mean of the quantity is used to push back the new sensing variation as the basis for setting the touch input value. Since the above formula is an inequality, a better new sensing variation with a range can be obtained, and the new sensing variation can be further selected by the user or via the touch program generating device 1 according to the preset touch. The relevant conditions such as the control program parameters are selected to select the preferred values.

經過上述步驟獲得了新感應變化量與倍率參數後,就可以將其設定為一觸控輸入值,該觸控輸入值用於觸控程序中,做為觸控開關是否被觸發的判斷依據,並再次設定觸控程序參數。由於經過步驟24~28後,觸控輸入值已經測試且設定完畢,因此積體電路16的傳輸格式就不用設定為測試模式(例如改設為UART),然後重複步驟21~23,即設定觸控程序參數,經由程序編輯單元13產生具有較佳的新感應變化值與倍率參數的觸控程序,經編譯元件14產生IC燒錄檔,再把IC 燒錄檔燒錄至積體電路16,由於該積體電路16已非測試模式,因此不需進入測試開關的步驟,而是完成產品開發,結束觸控開關所使用的觸控程序的產生工作。After obtaining the new sensing change amount and the magnification parameter through the above steps, the touch input value can be set as a touch input value, and the touch input value is used in the touch program as a judgment basis for whether the touch switch is triggered. And set the touch program parameters again. After the steps 24~28, the touch input value has been tested and set, so the transmission format of the integrated circuit 16 does not need to be set to the test mode (for example, changed to UART), and then steps 21~23 are repeated, that is, the touch is set. Control the program parameters, generate a touch program with a better new inductive change value and magnification parameter via the program editing unit 13, generate an IC burning file by the compiling component 14, and then IC The burn-in file is burned to the integrated circuit 16. Since the integrated circuit 16 is not in the test mode, the step of testing the switch is not required, but the product development is completed, and the touch program used by the touch switch is terminated. .

以上所述之實施例僅為說明本發明之原理及其功效,而非限制本發明。因此,熟悉本技藝之人士可在不違背本發明之精神對上述實施例進行修改及變化,然皆不脫如附申請專利範圍所欲保護者。The embodiments described above are merely illustrative of the principles of the invention and its advantages, and are not intended to limit the invention. Therefore, those skilled in the art can make modifications and changes to the embodiments described above without departing from the spirit and scope of the invention.

1‧‧‧觸控程序產生裝置1‧‧‧ touch program generating device

1A‧‧‧工作部1A‧‧‧Working Department

1B‧‧‧觸控部1B‧‧‧ Touch Department

11‧‧‧觸控開關11‧‧‧Touch switch

12‧‧‧計算單元12‧‧‧Computation unit

13‧‧‧程序編輯單元13‧‧‧Program editing unit

14‧‧‧編譯元件14‧‧‧Compiled components

15‧‧‧燒錄單元15‧‧‧ burning unit

16‧‧‧積體電路16‧‧‧Integrated circuit

17‧‧‧操作介面17‧‧‧Operator interface

21‧‧‧設定觸控程序參數21‧‧‧Set touch program parameters

21A‧‧‧建立一中間當21A‧‧‧ Establishing an intermediate

21B‧‧‧結合硬體程式碼21B‧‧‧ combined with hardware code

22‧‧‧產生IC燒錄檔22‧‧‧Generating IC burning files

23‧‧‧將IC燒錄檔燒錄至IC23‧‧‧ Burn IC burning files to IC

24‧‧‧判斷積體電路傳輸格式是否為測試模式24‧‧‧Review whether the integrated circuit transmission format is the test mode

25‧‧‧觸發觸控開關,產生複數個感應變化量25‧‧‧Turning the touch switch to generate a plurality of sensing variations

26‧‧‧比例化該些感應變化量獲得倍率參數26‧‧‧Proportionalizing these inductive variations to obtain magnification parameters

27‧‧‧根據該倍率參數計算新感應變化量27‧‧‧ Calculate the new induced change based on the magnification parameter

28‧‧‧選擇該倍率參數與該新感應變化量以設定觸控程序輸入值28‧‧‧Select the magnification parameter and the new sensing variation to set the touch program input value

第一圖:本發明觸控程序產生裝置的一實施例的結構圖;及第二圖:本發明觸控程序產生方法的一實施例的流程圖。1 is a structural diagram of an embodiment of a touch program generating apparatus of the present invention; and a second diagram: a flowchart of an embodiment of a touch program generating method of the present invention.

21‧‧‧設定觸控程序參數21‧‧‧Set touch program parameters

21A‧‧‧建立一中間檔21A‧‧‧Create an intermediate file

21B‧‧‧結合硬體程式碼21B‧‧‧ combined with hardware code

22‧‧‧產生IC燒錄檔22‧‧‧Generating IC burning files

23‧‧‧將IC燒錄檔燒錄至IC23‧‧‧ Burn IC burning files to IC

24‧‧‧判斷積體電路傳輸格式是否為測試模式24‧‧‧Review whether the integrated circuit transmission format is the test mode

25‧‧‧觸發觸控開關,產生複數個感應變化量25‧‧‧Turning the touch switch to generate a plurality of sensing variations

26‧‧‧比例化該些感應變化量獲得倍率參數26‧‧‧Proportionalizing these inductive variations to obtain magnification parameters

27‧‧‧根據該倍率參數計算新感應變化量27‧‧‧ Calculate the new induced change based on the magnification parameter

28‧‧‧選擇該倍率參數與該新感應變化量以設定觸控程序輸入值28‧‧‧Select the magnification parameter and the new sensing variation to set the touch program input value

Claims (15)

一種觸控程序產生方法,用於為不同的觸控開關適應性地建置運作時所須要的觸控程序,其包括下列步驟:(a)提供一待開發觸控開關,該待開發觸控開關係受控於一控制晶片;(b)觸發該待開發觸控開關,產生複數個感應變化量;(c)比例化該些感應變化量而獲得一倍率參數;(d)根據該倍率參數計算一新感應變化量;(e)選擇該倍率參數與該新感應變化量確定一觸控程序輸入值;及(f)將該觸控程序輸入值燒錄到該控制晶片。 A touch program generating method for adaptively configuring a touch program required for operation of a different touch switch includes the following steps: (a) providing a touch switch to be developed, the touch to be developed The open relationship is controlled by a control chip; (b) triggering the touch switch to be developed to generate a plurality of sensing variations; (c) scaling the sensing variations to obtain a magnification parameter; (d) according to the magnification parameter Calculating a new amount of sensing change; (e) selecting the magnification parameter and the new sensing variation to determine a touch program input value; and (f) burning the touch program input value to the control chip. 如申請專利範圍第1項所述的方法,其中該些感應變化量的一算術平均數與該些感應變化量成比例關係。 The method of claim 1, wherein an arithmetic mean of the amount of induced variations is proportional to the amount of induced changes. 如申請專利範圍第2項所述的方法,其中步驟(b)更包括:將該倍率參數設定為一整數。 The method of claim 2, wherein the step (b) further comprises: setting the magnification parameter to an integer. 如申請專利範圍第3項所述的方法,其中該倍率參數與該算術平均數相乘而得到該新感應變化量。 The method of claim 3, wherein the magnification parameter is multiplied by the arithmetic mean to obtain the new induced change amount. 如申請專利範圍第1項所述的方法,其中該些感應變化量是該觸控開關被觸發與未被觸發下的複數個電容變化值。 The method of claim 1, wherein the sensing change amount is a plurality of capacitance change values when the touch switch is triggered and not triggered. 如申請專利範圍第1項所述的方法,其中該些感應變化量是該觸控開關被觸發與未被觸發下的複數個電阻變化值。 The method of claim 1, wherein the sensing change amount is a plurality of resistance change values when the touch switch is triggered and not triggered. 如申請專利範圍第1項所述的方法,其中該些感應變化量與該新感應變化量更包括一感應補償量,能修正該觸控開關的敏感度。 The method of claim 1, wherein the sensing variation and the new sensing variation further comprise an inductive compensation amount, which can correct the sensitivity of the touch switch. 如申請專利範圍第1項所述的方法,其中該觸控程序輸入值為一感應範圍值,根據該感應範圍值判斷該觸控開關是否被觸發。 The method of claim 1, wherein the touch program input value is a sensing range value, and determining whether the touch switch is triggered according to the sensing range value. 如申請專利範圍第1項所述的方法,還包括:設定一觸控程序參數,將該觸控程序參數燒錄至該控制晶片。 The method of claim 1, further comprising: setting a touch program parameter, and burning the touch program parameter to the control chip. 如申請專利範圍第9項所述的方法,其中該觸控程序參數更包括一觸控開關數目、一積體電路封裝形式以及一積體電路傳輸格式。 The method of claim 9, wherein the touch program parameter further comprises a number of touch switches, an integrated circuit package form, and an integrated circuit transfer format. 一種觸控程序產生裝置,用於為不同的觸控開關適應性地建置運作時所須要的觸控程序,其包括:一待開發觸控開關,其受控於一控制晶片並經由觸發而產生複數個感應變化量;一計算單元,電性連接於該待開發觸控開關,將該些感應變化量以比例化計算而獲得一倍率參數,並根據該倍率參數計算一新感應變化量;一程序編輯單元,電性連接於該計算單元,能根據該計算單元所計算之該倍率參數與該新感應變化量,確定一觸控程序輸入值;及一燒錄單元,電性耦接於該程序編輯單元以及該控制晶片,用於將該觸控程序輸入值燒錄到該控制晶片。 A touch program generating device is configured to adaptively configure a touch program required for operation for different touch switches, including: a touch switch to be developed, controlled by a control chip and triggered by a trigger Generating a plurality of sensing changes; a computing unit electrically connected to the touch switch to be developed, calculating the amount of the induced changes by a proportional calculation to obtain a magnification parameter, and calculating a new sensing variation according to the magnification parameter; a program editing unit electrically connected to the computing unit, capable of determining a touch program input value according to the magnification parameter calculated by the calculation unit and the new sensing variation amount; and a programming unit electrically coupled to the The program editing unit and the control chip are configured to burn the touch program input value to the control chip. 如申請專利範圍第11項所述的裝置,其中該程序編輯單元能設定一觸控程序參數,且該觸控程序參數更包括一觸控開關數目、一積體電路封裝形式以及一積體電路傳輸格式。 The device of claim 11, wherein the program editing unit can set a touch program parameter, and the touch program parameter further includes a number of touch switches, an integrated circuit package form, and an integrated circuit. Transport format. 如申請專利範圍第11項所述的裝置,其中該程序編輯單元能將該觸控程序輸入值設定為一感應範圍值,使該感應範圍值能做為判斷該觸控開關是否被觸發的依據。 The device of claim 11, wherein the program editing unit can set the touch program input value to a sensing range value, so that the sensing range value can be used as a basis for determining whether the touch switch is triggered. . 如申請專利範圍第12項所述的裝置,更包括一編譯單元,連接於該程序編輯單元,能將該觸控程序輸入值與該觸控程序參數編譯為一燒錄檔。 The device of claim 12, further comprising a compiling unit connected to the program editing unit, capable of compiling the touch program input value and the touch program parameter into a burning file. 如申請專利範圍第14項所述的裝置,其中該燒錄單元,連接於該編譯單元,能將該燒錄檔燒錄至控制晶片。The device of claim 14, wherein the programming unit is coupled to the compiling unit, and the burning file can be burned to the control wafer.
TW97146835A 2008-12-02 2008-12-02 Method and device for generating touch program TWI385560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97146835A TWI385560B (en) 2008-12-02 2008-12-02 Method and device for generating touch program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97146835A TWI385560B (en) 2008-12-02 2008-12-02 Method and device for generating touch program

Publications (2)

Publication Number Publication Date
TW201023001A TW201023001A (en) 2010-06-16
TWI385560B true TWI385560B (en) 2013-02-11

Family

ID=44833201

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97146835A TWI385560B (en) 2008-12-02 2008-12-02 Method and device for generating touch program

Country Status (1)

Country Link
TW (1) TWI385560B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201403541A (en) * 2012-07-12 2014-01-16 Yu-Shan Wang Display capability identification generator with data editing function

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI285829B (en) * 2004-11-29 2007-08-21 Holtek Semiconductor Inc Determination method of touch sensing device
WO2007145433A1 (en) * 2006-06-13 2007-12-21 Atlab Inc. Semiconductor device and touch sensor device
TWI297857B (en) * 2005-11-29 2008-06-11
TWI299496B (en) * 2006-04-21 2008-08-01 Holtek Semiconductor Inc

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI285829B (en) * 2004-11-29 2007-08-21 Holtek Semiconductor Inc Determination method of touch sensing device
TWI297857B (en) * 2005-11-29 2008-06-11
TWI299496B (en) * 2006-04-21 2008-08-01 Holtek Semiconductor Inc
WO2007145433A1 (en) * 2006-06-13 2007-12-21 Atlab Inc. Semiconductor device and touch sensor device

Also Published As

Publication number Publication date
TW201023001A (en) 2010-06-16

Similar Documents

Publication Publication Date Title
TWI478015B (en) Method for controlling electronic apparatus and apparatus and computer program product using the method
TWI584164B (en) Emulating pressure sensitivity on multi-touch devices
Hudson et al. Rapid construction of functioning physical interfaces from cardboard, thumbtacks, tin foil and masking tape
US9411477B2 (en) Method and apparatus for identification of touch panels
US20130215056A1 (en) Method for determining a sensor value and sensor system
EP2634552A1 (en) Electronic device and method for determining a temperature of an electronic device
CN105243345B (en) The method and electronic equipment of a kind of electronic equipment false-touch prevention
CN104756064B (en) For managing the technology and equipment for touching interface
TW200919288A (en) Calibration of single-layer touch-sensor device
TWI491859B (en) Method of detecting touch force and detector
TWI385560B (en) Method and device for generating touch program
JP2016015181A (en) User interface device, program, and function starting method capable of starting different function according to degree of pressing force
CN106527935A (en) Screen capturing method and mobile terminal
JP6003166B2 (en) Touch panel system, touch panel device, and program
CN104516570B (en) Flip-type electronic device and calibration method thereof
CN101769970B (en) Method for producing touch control procedure
Kim et al. Analyzing thumb interaction on mobile touchpad devices
TWI507960B (en) Touch control system and coordinate correcting method thereof
JP5833511B2 (en) User interface device capable of discriminating pressing position under multi-touch state, program and function invocation method
US20110037715A1 (en) Touch panel correcting apparatus and the method therefor
TWI537809B (en) Tactile display device and tactile display method
TWI536251B (en) Operating method of object and electronic apparatus thereof
TW201411470A (en) Control method of touch input device, method for generating definition file, and touch input device
TWI502476B (en) Electronic apparatus and touch operating method thereof
TW201508600A (en) Method for determining touch position

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees