TWI544392B - Capacitive touch electronic apparatus, touch control device, and mode selection method for the capacitive touch electronic apparatus - Google Patents

Capacitive touch electronic apparatus, touch control device, and mode selection method for the capacitive touch electronic apparatus Download PDF

Info

Publication number
TWI544392B
TWI544392B TW103122738A TW103122738A TWI544392B TW I544392 B TWI544392 B TW I544392B TW 103122738 A TW103122738 A TW 103122738A TW 103122738 A TW103122738 A TW 103122738A TW I544392 B TWI544392 B TW I544392B
Authority
TW
Taiwan
Prior art keywords
operation mode
controller
touch
recognition program
scan data
Prior art date
Application number
TW103122738A
Other languages
Chinese (zh)
Other versions
TW201602878A (en
Inventor
林昆柏
曾耀進
Original Assignee
義隆電子股份有限公司
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 義隆電子股份有限公司 filed Critical 義隆電子股份有限公司
Priority to TW103122738A priority Critical patent/TWI544392B/en
Priority to CN201410408553.0A priority patent/CN105278777B/en
Publication of TW201602878A publication Critical patent/TW201602878A/en
Application granted granted Critical
Publication of TWI544392B publication Critical patent/TWI544392B/en

Links

Landscapes

  • Position Input By Displaying (AREA)

Description

電容式觸控電子裝置、觸控裝置及其模式選擇方法Capacitive touch electronic device, touch device and mode selection method thereof

本發明係關於一種電容式觸控裝置,尤指一種可選擇資料運算模式的電容式觸控裝置。 The present invention relates to a capacitive touch device, and more particularly to a capacitive touch device that can select a data operation mode.

目前電容式觸控裝置主要包含有一觸控板及一控制器,該控制器電性連接至該觸控板,以驅動及接收該觸控板的感應訊號,因此該控制器會依據其配合使用的該觸控板規格及觸控需求而設計其內部韌體(Firmware),使該觸控板可依不同觸控功能需求而加以使用。 At present, the capacitive touch device mainly includes a touch panel and a controller. The controller is electrically connected to the touch panel to drive and receive the sensing signal of the touch panel, so the controller is used according to the same. The internal firmware (Firmware) is designed for the touch panel specifications and touch requirements, so that the touch panel can be used according to different touch function requirements.

用於該電容式觸控裝置之控制器,可依據微處理器內部唯讀記憶體的特性有幾種儲存元件的選擇,如光罩式唯讀記憶體(Mask ROM)、一次性可程式化唯讀記憶體(OTP ROM)以及快閃記憶體(Flash Memory),目前通常採用具有快閃記憶體的微處理器作為控制器使用,最直接的優點在於快閃記憶體所儲存的韌體可被抹除改寫,有利於開發不同觸控裝置使用或便於重置內建的演算程序;相對地,該快閃記憶體因光罩製程多且複雜,故而較其它二種的製程成本高。 The controller for the capacitive touch device can select several storage components according to the characteristics of the internal read-only memory of the microprocessor, such as a mask-type read-only memory (Mask ROM), one-time programmable Read-only memory (OTP ROM) and flash memory (Flash Memory) are currently used as a controller with a flash memory. The most direct advantage is that the firmware stored in the flash memory can be used. It is erased and rewritten to facilitate the development of different touch devices or to facilitate the reset of the built-in calculation program; relatively speaking, the flash memory is more expensive than the other two processes because of the complicated and complicated process of the photomask.

目前對於設計該觸控裝置的控制器廠商而言,因選擇大量使用具快閃記憶體的微處理器作為控制器,所以整體成本難以下降,有必要進一步改良之。 At present, for the controller manufacturer who designs the touch device, since a large number of microprocessors with flash memory are selected as the controller, the overall cost is difficult to be reduced, and further improvement is necessary.

有鑑於上述觸控裝置採用具快閃唯讀記憶體的微處理器作為控制器的缺點,本發明主要目的係提供一種可選擇資料運算模式的電容式觸控電子裝置及其觸控裝置,可改採如具有光罩式唯讀記憶體或一次性可程式化唯讀記憶體的低成本微處理器作為控制器,減低製作成本。 The main purpose of the present invention is to provide a capacitive touch electronic device capable of selecting a data computing mode and a touch device thereof, in view of the disadvantages of the above-mentioned touch device using a microprocessor with a flash-only memory. Reduce the cost of production by using a low-cost microprocessor with a reticle-like read-only memory or a one-time programmable read-only memory as a controller.

欲達上述目的所使用的主要技術手段係令該可選擇資料運算模式的電容式觸控裝置係包含有:一觸控板,係包含有複數感測單元;一控制器,係電性連接至該觸控板的該複數感測單元,並且包含有:一非改寫型唯讀記憶體,係儲存一座標識別程序;一記憶體單元,係接收一暫存設定檔,該暫存設定檔包含有一操作模式選擇參數;該控制器依據該操作模式選擇參數,決定執行一第一操作模式或一第二操作模式,其中:當執行該第一操作模式,係依據該暫存設定檔掃描該觸控板以獲得掃描資料,並將該掃描資料予以輸出;當執行該第二操作模式,係依據該暫存設定檔掃描該觸控板,並讀取該非改寫型唯讀記憶體所儲存的該座標識別程序,將所獲得的該掃描資料透過該座標識別程序來計算出至少一觸控物件的座標,並輸出該座標。 The main technical means for achieving the above purpose is that the capacitive touch device of the selectable data computing mode comprises: a touch panel comprising a plurality of sensing units; and a controller electrically connected to The plurality of sensing units of the touch panel include: a non-rewriting type read-only memory for storing a label recognition program; and a memory unit for receiving a temporary setting file, the temporary setting file includes Having an operation mode selection parameter; the controller selects a parameter according to the operation mode, and determines to execute a first operation mode or a second operation mode, wherein: when the first operation mode is executed, scanning the touch according to the temporary storage profile The control board obtains the scan data, and outputs the scan data; when the second operation mode is executed, the touch panel is scanned according to the temporary configuration file, and the non-rewriteable read-only memory is stored. The coordinate recognition program calculates the coordinates of the at least one touch object through the coordinate recognition program through the coordinate recognition program, and outputs the coordinate.

欲達上述目的所使用的主要技術手段係令該可選擇資料運算模式的電容式觸控裝置係包含有: 一主電路板,係包含有一主處理器,該主處理器係包含有一儲存單元,該儲存單元係儲存有一設定檔及一第一座標識別程序;其中該設定檔包含有一操作模式選擇參數;及一觸控裝置,係包含有一觸控板及一控制器;其中該觸控板係包含有複數感測單元,而該控制器係電性連接至該觸控板的該複數感測單元,並包含有:一非改寫型唯讀記憶體,係儲存一第二座標識別程序;及一記憶體單元,係自該主電路板的主處理器接收該設定檔並將其暫存為一暫存設定檔;其中,該控制器依據該暫存設定檔的操作模式選擇參數,決定執行一第一操作模式或一第二操作模式,其中:當執行該第一操作模式,該控制器係依據該暫存設定檔掃描該觸控板以獲得掃描資料,並將該掃描資料輸出予該主處理器,由該主處理器執行該第一座標識別程序,以依據該掃描資料計算出至少一觸控物件的座標;當執行該第二操作模式,該控制器係依據該暫存設定檔掃描該觸控板以獲得掃描資料,並讀取及執行該第二座標識別程序,將所獲得的該掃描資料透過該第二座標識別程序計算出至少一觸控物件的座標。 The main technical means used to achieve the above purpose is to enable the capacitive touch device of the selectable data computing mode to include: a main circuit board includes a main processor, the main processor includes a storage unit, the storage unit stores a configuration file and a first coordinate recognition program; wherein the configuration file includes an operation mode selection parameter; A touch device includes a touch panel and a controller; wherein the touch panel includes a plurality of sensing units, and the controller is electrically connected to the plurality of sensing units of the touch panel, and The method includes: a non-rewriteable read-only memory storing a second coordinate recognition program; and a memory unit receiving the configuration file from the main processor of the main circuit board and temporarily storing the temporary file as a temporary storage a configuration file, wherein the controller selects a parameter according to an operation mode of the temporary storage file, and determines to execute a first operation mode or a second operation mode, wherein: when the first operation mode is executed, the controller is configured according to the The temporary configuration file scans the touch panel to obtain scan data, and outputs the scan data to the main processor, and the main processor executes the first coordinate recognition program to calculate the scan data according to the scan data. a coordinate of at least one touch object; when performing the second operation mode, the controller scans the touch panel according to the temporary configuration file to obtain scan data, and reads and executes the second coordinate recognition program, The obtained scan data calculates coordinates of at least one touch object through the second coordinate recognition program.

欲達上述目的所使用的主要技術手段係令上述電容式觸控電子裝置的資料運算模式選擇方法係包含有:讀入該設定檔,其中該設定檔包含有一操作模式選擇參數;依據該設定檔的操作模式選擇參數,決定執行一第一操作模式;其中:當執行該第一操作模式,係依據該設定檔掃描該觸控板,直接將掃描資料予以輸出,由該主處理器執行該第一座標識別程序,以計算出該掃描資料的至少一觸控物件的座標。 The main technical means for achieving the above purpose is to enable the data operation mode selection method of the capacitive touch electronic device to include: reading the configuration file, wherein the configuration file includes an operation mode selection parameter; according to the configuration file The operation mode selection parameter determines to execute a first operation mode; wherein: when the first operation mode is executed, the touch panel is scanned according to the configuration file, and the scan data is directly output, and the main processor executes the first A label recognition program calculates the coordinates of at least one touch object of the scanned data.

由上述電容式觸控電子裝置、觸控裝置及其模式選擇方法可知,本發明主要藉由暫存設定檔內的操作模式選擇參數,決定是否執行第一操作模式,以直接將觸控裝置所獲得的掃描資料輸出予該主處理器,由該主處理器進行座標計算;如此一來,該觸控裝置確實可使用較低成本的具非改寫型唯讀記憶體的控制器,為無法更改該非改寫型唯讀記憶體所儲存韌體之控制器提供另一種彈性的資料輸出形式。 According to the above-mentioned capacitive touch electronic device, the touch device and the mode selection method thereof, the present invention mainly determines whether to execute the first operation mode by temporarily selecting an operation mode selection parameter in the temporary setting file, so as to directly touch the touch device. The obtained scan data is output to the main processor, and the main processor performs coordinate calculation; thus, the touch device can use a lower cost controller with non-rewriteable read-only memory, which cannot be changed. The controller of the firmware stored in the non-rewriteable read-only memory provides another flexible form of data output.

10‧‧‧觸控裝置 10‧‧‧ touch device

11‧‧‧觸控板 11‧‧‧ Trackpad

111‧‧‧感測單元 111‧‧‧Sensor unit

111a‧‧‧第一感測單元 111a‧‧‧First sensing unit

111b‧‧‧第二感測單元 111b‧‧‧Second sensing unit

12‧‧‧控制器 12‧‧‧ Controller

121‧‧‧處理單元 121‧‧‧Processing unit

122‧‧‧非改寫型唯讀記憶體 122‧‧‧Non-rewriteable read-only memory

123‧‧‧記憶體單元 123‧‧‧ memory unit

124‧‧‧周邊介面電路 124‧‧‧ peripheral interface circuit

30‧‧‧主電路板 30‧‧‧ main board

31‧‧‧主處理器 31‧‧‧Main processor

311‧‧‧儲存單元 311‧‧‧ storage unit

圖1:本發明一電容式觸控電子裝置的系統架構示意圖。 FIG. 1 is a schematic diagram of a system architecture of a capacitive touch electronic device according to the present invention.

圖2:本發明一觸控裝置之控制器的功能方塊圖。 2 is a functional block diagram of a controller of a touch device of the present invention.

圖3:圖2控制器開機後之流程圖。 Figure 3: Flow chart of Figure 2 after the controller is powered on.

圖4A:圖1開機後之流程圖。 Figure 4A: Flow chart of Figure 1 after power on.

圖4B:圖1開機後之流程圖。 Figure 4B: Flow chart of Figure 1 after power on.

本發明係提出一種採用具有非改寫型唯讀記憶體的控制器的電容式觸控裝置,以同時滿足低成本及彈性應用的需求。 The present invention provides a capacitive touch device using a controller having a non-rewriteable read-only memory to simultaneously meet the needs of low cost and flexible applications.

首先請參閱圖1所示,係為本發明的電容式觸控裝置10,其包含有一觸控板11及一控制器12。其中該觸控板11係包含有複數感測單元111a,111b,通常為複數呈相互交錯排列的第一軸感測單元111a及第二軸感測單元111b。該控制器12則電性連接至該觸控板11的該複數第一軸感測單元111a及第二軸感測單元111b。 First, referring to FIG. 1 , the capacitive touch device 10 of the present invention includes a touch panel 11 and a controller 12 . The touch panel 11 includes a plurality of sensing units 111a, 111b, and is generally a plurality of first axis sensing units 111a and second axis sensing units 111b that are staggered with each other. The controller 12 is electrically connected to the plurality of first axis sensing units 111a and the second axis sensing units 111b of the touch panel 11.

再請配合參閱圖2所示,該控制器12係包含有一處理單元121、一非改寫型唯讀記憶體122、一記憶體單元123及一周邊介面電路124;其中該 處理單元121係電性連接該非改寫型唯讀記憶體122、該記憶體單元123及該周邊介面電路124。該非改寫型唯讀記憶體122係預先儲存一第二座標識別程序,而該記憶體單元123則儲存有一暫存設定檔,該暫存設定檔包含有掃描參數及操作模式選擇參數;其中該掃描參數及操作模式選擇參數係可視需求修改編輯,有關該暫存設定檔之相關說明將於後面更進一步詳細介紹。又,該周邊介面電路124係包含有複數通訊介面(IIC、GPIO、特殊觸控介面)及至少一通用輸入輸出介面埠(General Purposes I/O Port;GPIO port)。另外,該記憶體單元123可為隨機存取記憶體(Random Access Memory,RAM)。又,該非改寫型唯讀記憶體122可為光罩式唯讀記憶體(Mask ROM)或一次性可程式化唯讀記憶體(OTP ROM)。 Referring to FIG. 2, the controller 12 includes a processing unit 121, a non-rewriteable read-only memory 122, a memory unit 123, and a peripheral interface circuit 124. The processing unit 121 is electrically connected to the non-rewriteable read-only memory 122, the memory unit 123, and the peripheral interface circuit 124. The non-rewriteable read-only memory 122 stores a second coordinate recognition program in advance, and the memory unit 123 stores a temporary storage profile, where the temporary storage profile includes scan parameters and operation mode selection parameters; wherein the scan The parameter and operation mode selection parameters are edited and edited according to the requirements. The relevant description of the temporary storage profile will be described in further detail later. Moreover, the peripheral interface circuit 124 includes a plurality of communication interfaces (IIC, GPIO, special touch interface) and at least one general purpose input/output interface (GPIO port). In addition, the memory unit 123 can be a random access memory (RAM). Moreover, the non-rewriteable read-only memory 122 can be a mask-type read-only memory (Mask ROM) or a one-time programmable read only memory (OTP ROM).

請配合參閱圖3所示,當該控制器12的處理單元121於啟動後,會讀取該記憶體單元123之暫存設定檔的操作模式選擇參數S10,以決定執行一第一操作模式或第二操作模式。一種較佳的作法係以1位元的“1”或“0”來分別表示該第一操作模式與該第二操作模式,以下假設“1”代表第一操作模式,而“0”代表第二操作模式。 Referring to FIG. 3, when the processing unit 121 of the controller 12 is activated, the operation mode selection parameter S10 of the temporary storage profile of the memory unit 123 is read to determine to execute a first operation mode or The second mode of operation. A preferred method is to use the 1-bit "1" or "0" to indicate the first mode of operation and the second mode of operation, respectively. It is assumed that "1" represents the first mode of operation, and "0" represents the first mode. Two modes of operation.

當該處理單元121讀取的操作模式選擇參數為“1”時,即選擇並執行相對應的該第一操作模式,意即先以該暫存設定檔的掃描參數進行初始化S11,並對該觸控板11的第一軸及第二軸感測單元111a、111b進行自容式或互容式掃描S12,藉以依序接收該第一軸及第二軸感測單元111a、111b的類比感應訊號,並將所接收的類比感應訊號轉換為數位的掃描資料S13,該掃描資料即是對觸控板11進行自容式或互容式掃描後依據該等感測單元111a、111b之電容值改變而換算所獲得之資料。在此同時亦改變該周邊介面電路124的其中一腳位的電壓準位(拉高或拉低),令一外部電路可參考該電壓準位的變化而得 以讀取該控制器12所輸出的掃描資料,由該外部電路加以應用,並將該掃描資料輸出S14。 When the operation mode selection parameter read by the processing unit 121 is “1”, the corresponding first operation mode is selected and executed, that is, the initialization parameter S11 is first performed with the scan parameter of the temporary storage profile, and the The first axis and the second axis sensing units 111a, 111b of the touch panel 11 perform self-capacitive or mutual-capacitance scanning S12, thereby sequentially receiving the analog sensing of the first and second axis sensing units 111a, 111b. The signal is converted into the digital scanning data S13, and the scanning data is self-capacitive or mutual-capacitance scanning of the touch panel 11 according to the capacitance values of the sensing units 111a and 111b. Change and convert the information obtained. At the same time, the voltage level (pull-up or pull-down) of one of the pins of the peripheral interface circuit 124 is also changed, so that an external circuit can refer to the change of the voltage level. The scan data outputted by the controller 12 is read, applied by the external circuit, and the scan data is output to S14.

當該處理單元121讀取的操作模式選擇參數為“0”,則選擇並執行相對應的該第二操作模式,意即先以該設定檔的掃描參數進行初始化S15,並對該觸控板121的第一軸及第二軸感測單元111a、111b進行自容式或互容式掃描S16,藉以依序接收該第一軸及第二軸感測單元111a、111b的類比感應訊號,並將所接收的類比感應訊號轉換為數位的掃描資料S17;接著,再利用該第二座標識別程序計算出該掃描資料中的至少一觸碰物件的座標S18,並將識別出的座標予以輸出S19。同第一操作模式,在此同時亦改變該周邊介面電路124的其中一腳位的電壓準位(拉高或拉低),令該外部電路取得該觸碰物件的座標。 When the operation mode selection parameter read by the processing unit 121 is “0”, the corresponding second operation mode is selected and executed, that is, the initialization parameter S15 is first performed with the scan parameter of the configuration file, and the touchpad is The first axis and the second axis sensing units 111a, 111b of the 121 perform self-capacitive or mutual-capacitance scanning S16, thereby sequentially receiving the analog sensing signals of the first and second axis sensing units 111a, 111b, and Converting the received analog sensing signal into digital scanning data S17; then, using the second coordinate recognition program, calculating coordinates S18 of at least one touch object in the scanned data, and outputting the identified coordinates to S19 . In the same manner as the first mode of operation, the voltage level (pull-up or pull-down) of one of the pins of the peripheral interface circuit 124 is also changed, so that the external circuit obtains the coordinates of the touch object.

由上述說明可知,本發明控制裝置的該控制器12可藉由改變其操作模式選擇參數,選擇是否透過預存在該非改寫型唯讀記憶體122的一第二座標識別程序,來決定輸出掃描資料或座標資料。 It can be seen from the above description that the controller 12 of the control device of the present invention can determine whether to output the scanned data by changing its operation mode selection parameter to select whether to pass through a second coordinate recognition program pre-existing in the non-rewriteable read-only memory 122. Or coordinate information.

再請參閱圖1及圖2所示,係為本發明使用上述觸控裝置10的一電子裝置,該電子裝置進一步包含有一主電路板30,該主電路板30係包含有一主處理器31,該主處理器31包含有一儲存單元311,該儲存單元311可為可重覆改寫型記憶體,例如:快閃記憶體(Flash Memory)等,而該儲存單元311係儲存有一設定檔及一第一座標識別程序;其中該設定檔包含有掃描參數及操作模式選擇參數。 Referring to FIG. 1 and FIG. 2 , an electronic device using the touch device 10 of the present invention further includes a main circuit board 30 , and the main circuit board 30 includes a main processor 31 . The main processor 31 includes a storage unit 311. The storage unit 311 can be a rewriteable memory, such as a flash memory, and the storage unit 311 stores a configuration file and a first A label recognition program; wherein the configuration file includes scan parameters and operation mode selection parameters.

該電子裝置係整合該觸控裝置10及該主電路板30,而該主電路板30的該主處理器31係電性連接至該觸控裝置10的控制器12的周邊介面電路124,以藉由判斷該周邊介面電路124的腳位之電壓準位改變,而進一步接收該觸控裝置10輸出的掃描資料或座標資料。 The electronic device is integrated with the touch device 10 and the main circuit board 30. The main processor 31 of the main circuit board 30 is electrically connected to the peripheral interface circuit 124 of the controller 12 of the touch device 10 to The scan data or the coordinate data output by the touch device 10 is further received by determining that the voltage level of the pin of the peripheral interface circuit 124 is changed.

實際應用上,在該主電路板30的儲存單元311內預存或建立一設定檔S20,因此於該電子裝置開機後,如圖4A及圖4B所示,該主處理器31會將該設定檔存入至該觸控裝置10的記憶體單元123,使觸控裝置10之記憶體單元123內具有一相同內容的暫存設定檔。因此,當使用者對該儲存單元311內部之設定檔進行更,在電子裝置下次開機時即可將新的設定檔載入至該記憶體單元123,故該控制器12可獲得來自主電路板30最新的設定檔內容,選擇並執行上述第一操作模式或第二操作模式。此時,因該主處理器31會讀取該設定檔的操作模式選擇參數,當設定檔的操作模式選擇參數為“1”,則執行該第一操作模式,如圖4A所示,該主處理器31在判斷該控制器12的周邊介面電路124的其中一腳位之電壓準位改變後,即讀取該觸控面板驅動程式以執行該第一座標識別程序S21,該主處理器31係將該控制器12經由步驟S10~S14後輸出的掃描資料以該第二座標識別程序進行分析與計算,以計算出至少一觸控物件的座標S22。 In a practical application, a configuration file S20 is pre-stored or established in the storage unit 311 of the main circuit board 30. Therefore, after the electronic device is powered on, as shown in FIG. 4A and FIG. 4B, the main processor 31 will set the configuration file. The memory unit 123 of the touch device 10 is stored in the memory unit 123 of the touch device 10 to have a temporary profile of the same content. Therefore, when the user performs the setting of the internal storage unit 311, the new configuration file can be loaded into the memory unit 123 when the electronic device is turned on next time, so that the controller 12 can obtain the main circuit. The latest profile content of the board 30 selects and executes the first mode of operation or the second mode of operation described above. At this time, since the main processor 31 reads the operation mode selection parameter of the profile, when the operation mode selection parameter of the profile is "1", the first operation mode is executed, as shown in FIG. 4A, the main After determining the voltage level of one of the pins of the peripheral interface circuit 124 of the controller 12, the processor 31 reads the touch panel driver to execute the first coordinate recognition program S21. The main processor 31 The scan data outputted by the controller 12 through the steps S10 to S14 is analyzed and calculated by the second coordinate recognition program to calculate the coordinates S22 of the at least one touch object.

再如圖4B所示,又當該主處理器31讀取該設定檔的操作模式選擇參數為“0”,則執行該第二操作模式,該主處理器31在判斷該控制器12的周邊介面電路124的其中一腳位之電壓準位改變後,該主處理器31係接收該控制器12經由步驟S10~S19傳來的座標資料,直接獲得至少一觸控物件的座標S23。由於在該第二操作模式下,該控制器12已藉由該第一座標識別程序獲得該至少一觸控物件的座標,因此該主處理器31後續不必另作座標識別。 As shown in FIG. 4B, when the main processor 31 reads the operation mode selection parameter of the profile as "0", the second operation mode is executed, and the main processor 31 determines the periphery of the controller 12. After the voltage level of one of the pins of the interface circuit 124 is changed, the main processor 31 receives the coordinate data transmitted by the controller 12 via steps S10 to S19, and directly obtains the coordinate S23 of at least one touch object. Since the controller 12 has obtained the coordinates of the at least one touch object by the first coordinate recognition program in the second operation mode, the main processor 31 does not need to perform coordinate recognition subsequently.

綜上所述,本發明電容式觸控電子裝置於執行資料運算模式選擇方法係主要包含有:(a)讀入該設定檔並將其暫存成為一暫存設定檔,其中該暫存設定檔包含有掃描參數及操作模式選擇參數;及 (b)依據該暫存設定檔的操作模式選擇參數,決定執行一第一操作模式或一第二操作模式。 In summary, the method for selecting a data operation mode of the capacitive touch electronic device of the present invention mainly includes: (a) reading the configuration file and temporarily storing it as a temporary storage configuration file, wherein the temporary storage setting The file includes scanning parameters and operating mode selection parameters; (b) determining whether to execute a first operation mode or a second operation mode according to the operation mode selection parameter of the temporary storage profile.

當執行該第一操作模式,係依據該暫存設定檔的掃描參數掃描該觸控板,直接將掃描資料輸出至該主處理器31,由該主處理器31執行該第一座標識別程序,以依據該掃描資料計算出至少一觸控物件的座標。而當決定執行一第二操作模式,同樣依據該暫存設定檔的掃描參數掃描該觸控裝置的觸控板11,並讀取及執行該控制器12所儲存的第二座標識別程序,該第二座標識別程序依據掃描資料計算出至少一觸控物件的座標,並輸出該座標予主處理器31,由該主處理器31讀取該座標。 When the first operation mode is executed, the touch panel is scanned according to the scan parameter of the temporary storage profile, and the scan data is directly output to the main processor 31, and the first coordinate recognition program is executed by the main processor 31. Calculating coordinates of at least one touch object based on the scanned data. When it is determined that the second operation mode is executed, the touch panel 11 of the touch device is scanned according to the scan parameter of the temporary storage file, and the second coordinate recognition program stored by the controller 12 is read and executed. The second coordinate recognition program calculates the coordinates of the at least one touch object based on the scan data, and outputs the coordinates to the main processor 31, and the main processor 31 reads the coordinates.

由上述說明可知,該電子裝置可透過該主電路板的主處理器建立或修改該設定檔,並傳送至該觸控裝置的該控制器;如此,該控制器的非改寫型唯讀記憶體即可儲存一第二座標識別程序以輸出計算後的觸控物件的座標,對該觸控裝置開發不同觸控板尺寸或其它觸控功能需求的專案時,可避免在日後變更該第一座標識別程序卻因採用非改寫型唯讀記憶體的控制器,導致需整批汰換已儲入該第一座標識別程序的控制器之問題。本發明觸控裝置的控制器可依據暫存設定檔的內容,選擇直接輸出座標資料,或將該掃描資料提供予外部讓該主處理器透過變更後的該第一座標識別程序進行座標計算,前述問題確實得以解決。 As can be seen from the above description, the electronic device can establish or modify the configuration file through the main processor of the main circuit board and transmit the configuration file to the controller of the touch device; thus, the non-rewriteable read-only memory of the controller A second coordinate recognition program can be stored to output the coordinates of the calculated touch object, and when the touch device is developed with different touchpad sizes or other touch function requirements, the first coordinate can be avoided in the future. The identification procedure is based on the use of a non-rewriteable read-only memory controller, resulting in the need to replace the controller that has been stored in the first coordinate recognition program. The controller of the touch device of the present invention may select to directly output coordinate data according to the content of the temporary storage profile, or provide the scan data to the outside for the main processor to perform coordinate calculation through the changed first coordinate recognition program. The aforementioned problems have indeed been resolved.

以上所述僅是本發明的較佳實施例而已,並非對本發明做任何形式上的限制,雖然本發明已較佳實施例揭露如上,然而並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明技術方案的範圍內,當可利用上述揭示的技術內容作出些許更動或修飾為等同變化的等效實施例,但凡是未脫離本發明技術方案的內容,依據本發明的技術實質對以上實施 例所作的任何簡單修改、等同變化與修飾,均仍屬於本發明技術方案的範圍內。 The above is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Although the preferred embodiments of the present invention are disclosed above, the present invention is not limited thereto, and is generally Those skilled in the art can make some modifications or modifications to equivalent embodiments using the above-disclosed technical contents without departing from the technical scope of the present invention, but the present invention does not deviate from the technical solution of the present invention. Technical essence of the above implementation Any simple modifications, equivalent changes and modifications made by the examples are still within the scope of the technical solutions of the present invention.

Claims (11)

一種電容式觸控裝置,包括: 一觸控板,係包含有複數感測單元; 一控制器,係電性連接至該觸控板的該複數感測單元,並且包含有: 一非改寫型唯讀記憶體,係儲存一座標識別程序;及 一記憶體單元,係接收一暫存設定檔,該暫存設定檔包含一操作模式選擇參數; 該控制器依據該操作模式選擇參數,決定執行一第一操作模式或一第二操作模式;其中: 當執行該第一操作模式,係依據該暫存設定檔掃描該觸控板以獲得掃描資料,並將該掃描資料予以輸出; 當執行該第二操作模式,係依據該暫存設定檔掃描該觸控板,並讀取該非改寫型唯讀記憶體所儲存的該座標識別程序,將所獲得的該掃描資料透過該座標識別程序來計算出至少一觸控物件的座標,並輸出該座標。A capacitive touch device includes: a touch panel comprising a plurality of sensing units; a controller electrically coupled to the plurality of sensing units of the touch panel, and comprising: a non-rewrite type The read-only memory stores a mark recognition program; and a memory unit receives a temporary set file, the temporary set file includes an operation mode selection parameter; the controller selects a parameter according to the operation mode, and determines execution a first operation mode or a second operation mode; wherein: when the first operation mode is executed, scanning the touch panel according to the temporary configuration file to obtain scan data, and outputting the scan data; The second operation mode is to scan the touchpad according to the temporary storage profile, and read the coordinate recognition program stored in the non-rewriteable read-only memory, and calculate the obtained scan data through the coordinate recognition program. At least one coordinate of the touch object is output, and the coordinate is output. 如請求項1所述的電容式觸控裝置,該暫存設定檔的操作模式選擇參數係為1個位元的1或0,以分別代表該第一操作模式及該第二操作模式。The capacitive touch device of claim 1, wherein the operation mode selection parameter of the temporary storage profile is 1 or 0 of 1 bit to represent the first operation mode and the second operation mode, respectively. 如請求項1或2所述的電容式觸控裝置,該控制器係以自容式掃描或互容式掃描對該觸控板進行掃描以獲得該掃描資料。The capacitive touch device of claim 1 or 2, wherein the controller scans the touch panel with a self-capacitance scan or a mutual capacitive scan to obtain the scan data. 一種電容式觸控電子裝置,包括: 一主電路板,係包含有一主處理器,該主處理器係包含有一儲存單元,該儲存單元係儲存有一設定檔及一第一座標識別程序;其中該設定檔包含有一操作模式選擇參數;及 一觸控裝置,係包含有一觸控板及一控制器;其中該觸控板係包含有複數感測單元,該控制器係電性連接至該觸控板的該複數感測單元,並包含有: 一非改寫型唯讀記憶體,係儲存一第二座標識別程序;及 一記憶體單元,係自該主電路板的主處理器接收該設定檔並將其暫存為一暫存設定檔; 其中,該控制器依據該暫存設定檔的操作模式選擇參數,決定執行一第一操作模式或一第二操作模式,其中: 當執行該第一操作模式,該控制器係依據該暫存設定檔掃描該觸控板以獲得掃描資料,並將該掃描資料輸出予該主處理器,由該主處理器執行該第一座標識別程序,以依據該掃描資料計算出至少一觸控物件的座標; 當執行該第二操作模式,該控制器係依據該暫存設定檔掃描該觸控板以獲得掃描資料,並讀取及執行該第二座標識別程序,將所獲得的該掃描資料透過該第二座標識別程序計算出至少一觸控物件的座標。A capacitive touch electronic device includes: a main circuit board including a main processor, the main processor includes a storage unit, wherein the storage unit stores a configuration file and a first coordinate recognition program; The configuration file includes an operation mode selection parameter; and a touch device includes a touch panel and a controller; wherein the touch panel includes a plurality of sensing units, and the controller is electrically connected to the touch The plurality of sensing units of the board, and comprising: a non-rewriteable read-only memory storing a second coordinate recognition program; and a memory unit receiving the configuration file from a main processor of the main circuit board And temporarily storing the data as a temporary storage profile; wherein the controller selects a parameter according to an operation mode of the temporary storage profile, and determines to execute a first operation mode or a second operation mode, wherein: In the operation mode, the controller scans the touchpad according to the temporary storage profile to obtain scan data, and outputs the scan data to the main processor, and the first processor executes the first Identifying a coordinate of the at least one touch object according to the scan data; when performing the second operation mode, the controller scans the touch panel according to the temporary configuration file to obtain scan data, and reads And executing the second coordinate recognition program, and calculating the coordinates of the at least one touch object through the second coordinate recognition program. 如請求項4所述的電容式觸控電子裝置,該觸控裝置的控制器具有一周邊介面電路;該主電路板之主處理器參考該周邊介面電路其中一腳位的電壓準位變化而讀取該控制器所輸出的掃描資料或觸控物件的座標。The capacitive touch control device of claim 4, wherein the controller of the touch device has a peripheral interface circuit; the main processor of the main circuit board reads the voltage level of one of the pins of the peripheral interface circuit and reads Take the scan data output by the controller or the coordinates of the touch object. 如請求項5所述的電容式觸控電子裝置,該暫存設定檔的操作模式選擇參數係為1個位元的1或0,以分別代表該第一操作模式及第二操作模式。The capacitive touch electronic device of claim 5, wherein the operating mode selection parameter of the temporary storage profile is 1 or 0 of 1 bit to represent the first operating mode and the second operating mode, respectively. 如請求項5或6所述的電容式觸控電子裝置,其中該控制器係以自容式掃描或互容式掃描對該觸控板進行掃描以獲得該掃描資料。The capacitive touch electronic device of claim 5 or 6, wherein the controller scans the touch panel with self-capacitance scanning or mutual capacitive scanning to obtain the scanned data. 一種電容式觸控電子裝置的模式選擇方法,其中電容式觸控電子裝置係包含有一具有一主處理器的主電路板,以及一具有一控制器及一觸控板 的觸控裝置,令該主處理器儲存一第一座標識別程序及一設定檔,該控制器儲存一第二座標識別程序;其中,該模式選擇方法係包含有: 讀入該設定檔,該控制器係讀入該設定檔並將其暫存成為一暫存設定檔,其中該暫存設定檔包含有一操作模式選擇參數; 該控制器係依據該暫存設定檔的操作模式選擇參數,決定執行一第一操作模式或一第二操作模式;其中: 當執行該第一操作模式,該控制器係依據該暫存設定檔掃描該觸控板以獲得掃描資料,並將該掃描資料輸出予該主處理器,由該主處理器執行該第一座標識別程序,以依據該掃描資料計算出至少一觸控物件的座標; 當執行該第二操作模式,該控制器係依據該暫存設定檔掃描該觸控板以獲得掃描資料,並讀取及執行第二座標識別程序,將所獲得的該掃描資料透過該第二座標識別程序計算出至少一觸控物件的座標,並輸出該座標予該主處理器,由該主處理器執行一座標讀取程序。A mode selection method for a capacitive touch electronic device, wherein the capacitive touch electronic device includes a main circuit board having a main processor, and a touch device having a controller and a touch panel, The main processor stores a first coordinate recognition program and a configuration file, and the controller stores a second coordinate recognition program; wherein the mode selection method comprises: reading the configuration file, the controller reading the setting And temporarily storing the file as a temporary storage profile, wherein the temporary storage profile includes an operation mode selection parameter; the controller selects a parameter according to an operation mode of the temporary storage profile, and determines to execute a first operation mode or a second mode of operation; wherein: when the first mode of operation is performed, the controller scans the touchpad according to the temporary profile to obtain scan data, and outputs the scan data to the main processor, The main processor executes the first coordinate recognition program to calculate coordinates of at least one touch object according to the scan data; when the second operation mode is executed, the controller is Scanning the touchpad according to the temporary configuration file to obtain scan data, and reading and executing the second coordinate recognition program, and calculating the coordinates of the at least one touch object through the second coordinate recognition program And outputting the coordinate to the main processor, and the main processor executes a standard reading program. 如請求項8所述電容式觸控電子裝置的模式選擇方法,其中: 該控制器係具有一非改寫型唯讀記憶體,以儲存該第一座標識別程序;及 該主處理器係具有一儲存單元,以儲存第二座標識別程序。The mode selection method of the capacitive touch electronic device of claim 8, wherein: the controller has a non-rewriteable read-only memory to store the first coordinate recognition program; and the main processor has a A storage unit to store the second coordinate recognition program. 如請求項9所述電容式觸控電子裝置的模式選擇方法,上述暫存設定檔的操作模式選擇參數係為1個位元的1或0,以分別代表該第一操作模式及該第二操作模式。The mode selection method of the capacitive touch electronic device according to claim 9, wherein the operation mode selection parameter of the temporary storage profile is 1 or 0 of 1 bit to represent the first operation mode and the second Operating mode. 如請求項8至10中任一項所述電容式觸控電子裝置的模式選擇方法,該控制器係以自容式掃描或互容式掃描對該觸控板進行掃描以獲得該掃描資料。The mode selection method of the capacitive touch electronic device according to any one of claims 8 to 10, wherein the controller scans the touch panel with a self-capacitance scan or a mutual capacitive scan to obtain the scan data.
TW103122738A 2014-07-01 2014-07-01 Capacitive touch electronic apparatus, touch control device, and mode selection method for the capacitive touch electronic apparatus TWI544392B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW103122738A TWI544392B (en) 2014-07-01 2014-07-01 Capacitive touch electronic apparatus, touch control device, and mode selection method for the capacitive touch electronic apparatus
CN201410408553.0A CN105278777B (en) 2014-07-01 2014-08-19 Capacitive touch electronic device, touch device and mode selection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103122738A TWI544392B (en) 2014-07-01 2014-07-01 Capacitive touch electronic apparatus, touch control device, and mode selection method for the capacitive touch electronic apparatus

Publications (2)

Publication Number Publication Date
TW201602878A TW201602878A (en) 2016-01-16
TWI544392B true TWI544392B (en) 2016-08-01

Family

ID=55147899

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103122738A TWI544392B (en) 2014-07-01 2014-07-01 Capacitive touch electronic apparatus, touch control device, and mode selection method for the capacitive touch electronic apparatus

Country Status (2)

Country Link
CN (1) CN105278777B (en)
TW (1) TWI544392B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479820B (en) * 2017-08-24 2021-01-08 深圳恒远智信科技有限公司 Identification method of touch device, terminal equipment and server

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4583893B2 (en) * 2004-11-19 2010-11-17 任天堂株式会社 GAME PROGRAM AND GAME DEVICE
JP4853507B2 (en) * 2008-10-30 2012-01-11 ソニー株式会社 Information processing apparatus, information processing method, and program
CN101825962B (en) * 2009-03-04 2012-05-23 联咏科技股份有限公司 Touch control device for saving electrical energy and related method thereof
CN102622136B (en) * 2012-02-29 2016-03-30 广东威创视讯科技股份有限公司 A kind of multi-point touch system data processing method and device
CN102981675B (en) * 2012-12-07 2015-09-09 广东威创视讯科技股份有限公司 A kind of multiple point touching data processing method and system thereof

Also Published As

Publication number Publication date
TW201602878A (en) 2016-01-16
CN105278777B (en) 2018-02-02
CN105278777A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
US11195000B2 (en) Swipe gesture detection systems and methods
TWI419047B (en) Apparatus and methods for controlling image sensors and computer-readable medium thereof
TWI470462B (en) Panel parameter setting method and related control chip
CN103823698A (en) Method and device for programming and starting FPGA target program and DSP target program
US20100207905A1 (en) Method of Performing Timely Calibration of a Touch Parameter and Related Apparatus and System
JP2010219789A5 (en) Image processing system, control method thereof, and program
WO2023070823A1 (en) Bootloader loading method, apparatus and system, electronic device and medium
TWI594188B (en) System-on-chip and booting method thereof
TW201818253A (en) Detection system and detection method
EP2660713A1 (en) Patch mechanism in embedded controller for memory access
US20120084548A1 (en) Method and Module for Simulating Keyboard
US9166573B2 (en) Semiconductor device and command control method for the same
WO2020206879A1 (en) Method and device for automatically adapting link width of pcie port, electronic apparatus and storage medium
TW201716999A (en) Method for startup inspection and computer system using the same
TWI544392B (en) Capacitive touch electronic apparatus, touch control device, and mode selection method for the capacitive touch electronic apparatus
US20100153622A1 (en) Data Access Controller and Data Accessing Method
WO2016008447A1 (en) Method and apparatus for realizing switching between intelligent key device modes
US20120098796A1 (en) Optical touch module and data loading method thereof
CN104111845A (en) Processing device and system program changing method
CN107479938B (en) Electronic equipment and starting method thereof
CN112069102B (en) GPIO controller configuration method and system
TWI413904B (en) Universal Serial Bus (USB) controller and its execution method
JP2018112995A (en) Bypass wiring check program, bypass wiring check method, and information processing device
US11126292B2 (en) Electronic apparatus with touch panel and method for updating touch panel
CN109491870A (en) A kind of detection method and device of the access state of sensor