







本發明涉及一種無線感測的技術,且特別是一種觸控筆的雜訊抑制方法以及使用其之具有觸控筆之行動裝置。The present invention relates to a wireless sensing technology, and in particular to a noise suppression method of a touch pen and a mobile device with a touch pen using the same.
觸控筆(stylus)是一種用於行動裝置或平板電腦的輸入設備,它的外型類似於傳統的筆或鉛筆,但具有特殊的設計,以便與觸控螢幕互動。觸控筆通常有一個較為尖銳的筆頭,允許使用者在螢幕上進行精確的點觸、繪畫、書寫或操作,而不需要使用手指。A stylus is an input device for mobile devices or tablet computers that looks like a traditional pen or pencil, but has a special design to interact with a touch screen. A stylus usually has a sharp tip that allows the user to accurately touch, draw, write or operate on the screen without using a finger.
觸控筆的設計和功能可以因不同裝置而異,但一般而言,觸控筆的工作原理是用電容式觸控技術配合調變後的數位化訊號,使其訊號內包含有關筆的位置、壓力、傾斜角度等信息。一旦觸控筆的訊號被傳輸到行動裝置,裝置上的觸控控制器(touch controller)會解碼這些訊號。觸控控制器會識別筆的位置、動作和其他相關信息,然後將其轉換為應用程序可以理解的數據。The design and functionality of a stylus can vary from device to device, but in general, a stylus works by using capacitive touch technology with a modulated digital signal that contains information about the pen's position, pressure, tilt angle, etc. Once the stylus's signals are transmitted to the mobile device, the touch controller on the device decodes the signals. The touch controller identifies the pen's position, movement, and other relevant information, and then converts it into data that the application can understand.
第1圖是先前技術的觸控筆系統的解碼電路之電路圖。請參考第1圖,此觸控筆系統的解碼電路包括觸控筆101以及觸控筆接收裝置102。觸控筆101即為訊號發射端,觸控筆接收裝置102則是接收端。觸控筆101(發射端)將傳輸資料經由相位偏移調變(PSK modulation)與加入的載波調變之後進行傳輸,觸控筆接收裝置102(接收端)經由ADC取樣後進入數位系統解調變(de-modulation)。然而,整機環境上會有許多噪聲來源,若取樣頻率不夠高會造成各種高頻噪聲反折機率提高以及(白)噪聲水位過高等現象。雖然能在數位解調之後,接收端可使用濾波器(IIR or FIR filter)來濾除噪聲提升效能,但濾波器的頻寬又與取樣點數相關連。在取樣率不高的情況下濾波器的效果將被大大打折扣。FIG. 1 is a circuit diagram of a decoding circuit of a touch pen system of the prior art. Referring to FIG. 1, the decoding circuit of the touch pen system includes a
本發明提供一種觸控筆的雜訊抑制方法以及使用其之具有觸控筆之行動裝置,用以在降採樣(down-sampling)之前,壓抑、抑制取樣後的觸控筆訊號之雜訊。The present invention provides a touch pen noise suppression method and a mobile device with a touch pen using the same, which is used to suppress the noise of the sampled touch pen signal before down-sampling.
本發明的實施例提供了一種行動裝置,此行動裝置包括一觸控筆以及一顯示觸控裝置。觸控筆用以發射一觸控筆訊號。顯示觸控裝置包括、多數個觸控電極、多數個訊號取樣裝置以及多數個雜訊抑制電路。每一該些訊號取樣裝置包括一輸入端以及一輸出端,其中,上述多數個訊號取樣裝置的輸入端分別耦接上述多數個觸控電極。每一該些雜訊抑制電路包括一輸入端以及一輸出端,其中,上述多數個雜訊抑制電路的輸入端分別耦接上述多數個訊號取樣裝置的輸出端。An embodiment of the present invention provides a mobile device, which includes a touch pen and a display touch device. The touch pen is used to emit a touch pen signal. The display touch device includes a plurality of touch electrodes, a plurality of signal sampling devices, and a plurality of noise suppression circuits. Each of the signal sampling devices includes an input end and an output end, wherein the input ends of the plurality of signal sampling devices are respectively coupled to the plurality of touch electrodes. Each of the noise suppression circuits includes an input end and an output end, wherein the input ends of the plurality of noise suppression circuits are respectively coupled to the output ends of the plurality of signal sampling devices.
上述多數個雜訊抑制電路中之一特定雜訊抑制電路,用以將對應之訊號取樣裝置取樣的取樣訊號與對應之訊號取樣裝置取樣的鄰近時間之取樣訊號進行比較。當對應之訊號取樣裝置取樣的取樣訊號與對應之訊號取樣裝置取樣的鄰近時間之取樣訊號之差值大於一訊號容許值,則該特定雜訊抑制電路輸出該對應之訊號取樣裝置取樣的取樣訊號作為一第一雜訊抑制訊號作為一輸出訊號。當對應之訊號取樣裝置取樣的取樣訊號與對應之訊號取樣裝置取樣的鄰近時間之取樣訊號之差值小於一訊號容許值,則該特定雜訊抑制電路輸出一第二雜訊抑制訊號作為上述輸出訊號,其中,第二雜訊抑制訊號的數值在對應之訊號取樣裝置取樣的取樣訊號與對應之訊號取樣裝置取樣的鄰近時間之取樣訊號之間。A specific noise suppression circuit among the plurality of noise suppression circuits is used to compare the sampled signal sampled by the corresponding signal sampling device with the sampled signal sampled by the corresponding signal sampling device at a time close to the sampled signal. When the difference between the sampled signal sampled by the corresponding signal sampling device and the sampled signal sampled by the corresponding signal sampling device at a time close to the sampled signal is greater than a signal allowable value, the specific noise suppression circuit outputs the sampled signal sampled by the corresponding signal sampling device as a first noise suppression signal as an output signal. When the difference between the sampling signal sampled by the corresponding signal sampling device and the sampling signal sampled by the corresponding signal sampling device at a nearby time is less than a signal allowable value, the specific noise suppression circuit outputs a second noise suppression signal as the above-mentioned output signal, wherein the value of the second noise suppression signal is between the sampling signal sampled by the corresponding signal sampling device and the sampling signal sampled by the corresponding signal sampling device at a nearby time.
依照本發明較佳實施例所述的行動裝置,上述每一訊號取樣裝置更包括電荷放大器(charge amplifier)以及類比數位轉換器。電荷放大器包括一輸入端以及一輸出端,其中,電荷放大器的輸入端耦接訊號取樣裝置的輸入端,電荷放大器用以接收所耦接的觸控電極之訊號,以輸出一放大觸控訊號。類比數位轉換器包括一輸入端以及一輸出端,其中,類比數位轉換器的輸入端耦接電荷放大器的輸出端以接收放大觸控訊號,類比數位轉換器的輸出端耦接訊號取樣裝置的輸出端,以輸出對應該訊號取樣裝置之取樣訊號。According to the mobile device described in the preferred embodiment of the present invention, each of the above-mentioned signal sampling devices further includes a charge amplifier and an analog-to-digital converter. The charge amplifier includes an input end and an output end, wherein the input end of the charge amplifier is coupled to the input end of the signal sampling device, and the charge amplifier is used to receive the signal of the coupled touch electrode to output an amplified touch signal. The analog-to-digital converter includes an input end and an output end, wherein the input end of the analog-to-digital converter is coupled to the output end of the charge amplifier to receive the amplified touch signal, and the output end of the analog-to-digital converter is coupled to the output end of the signal sampling device to output a sampling signal corresponding to the signal sampling device.
依照本發明較佳實施例所述的行動裝置,上述每一該些雜訊抑制電路更包括一前置暫存器、一後置暫存器、一數字比較電路、一加減法電路以及一多工選擇電路。前置暫存器接收上述對應該訊號取樣裝置之取樣訊號,並暫存之。後置暫存器用以儲存先前輸出之取樣訊號,並用以輸出上述輸出訊號。數字比較電路的第一輸入埠耦接該前置暫存器,以接收上述對應該訊號取樣裝置之取樣訊號,數字比較電路的第二輸入埠耦接該後置暫存器,數字比較電路的輸出端輸出一選擇訊號,其中,數字比較電路根據該數字比較電路的第一輸入埠與數字比較電路的第二輸入埠的輸入數值之差值,決定該選擇訊號的邏輯。According to the mobile device described in the preferred embodiment of the present invention, each of the noise suppression circuits further includes a pre-register, a post-register, a digital comparison circuit, an addition and subtraction circuit, and a multiplexing selection circuit. The pre-register receives and temporarily stores the sampling signal corresponding to the signal sampling device. The post-register is used to store the previously output sampling signal and to output the output signal. The first input port of the digital comparison circuit is coupled to the pre-register to receive the sampling signal corresponding to the signal sampling device. The second input port of the digital comparison circuit is coupled to the post-register. The output end of the digital comparison circuit outputs a selection signal, wherein the digital comparison circuit determines the logic of the selection signal according to the difference between the input values of the first input port of the digital comparison circuit and the second input port of the digital comparison circuit.
加減法電路的第一輸入埠耦接該後置暫存器,以接收上述先前輸出之取樣訊號,加減法電路的第二輸入埠接收一變動容許值,其輸出端輸出第二雜訊抑制訊號。多工選擇電路的第一輸入埠耦接前置暫存器,以接收上述對應該訊號取樣裝置之取樣訊號,多工選擇電路的第二輸入埠耦接該加減法電路的輸出埠,以接收該第二雜訊抑制訊號,該多工選擇電路的選擇端耦接該數字比較電路的輸出端,以接收該選擇訊號,其中,多工選擇電路的輸出埠根據選擇訊號的邏輯,決定輸出多工選擇電路的第一輸入埠的資料或多工選擇電路的第二輸入埠的資料。The first input port of the add-subtract circuit is coupled to the post-register to receive the previously outputted sampling signal, the second input port of the add-subtract circuit receives a variation allowable value, and the output end thereof outputs a second noise suppression signal. The first input port of the multiplex selection circuit is coupled to the pre-register to receive the sampling signal corresponding to the signal sampling device, the second input port of the multiplex selection circuit is coupled to the output port of the add-subtract circuit to receive the second noise suppression signal, and the selection end of the multiplex selection circuit is coupled to the output end of the digital comparison circuit to receive the selection signal, wherein the output port of the multiplex selection circuit determines to output the data of the first input port of the multiplex selection circuit or the data of the second input port of the multiplex selection circuit according to the logic of the selection signal.
依照本發明較佳實施例所述的行動裝置,上述後置暫存器的輸入埠耦接該多工選擇電路的輸出埠,以接收多工選擇電路的輸出埠所輸出之資料作為上述先前輸出之取樣訊號,其中,該後置暫存器的輸出埠根據所暫存的資料,輸出該第一雜訊抑制訊號或該第二雜訊抑制訊號。According to the mobile device described in the preferred embodiment of the present invention, the input port of the post-register is coupled to the output port of the multiplexing selection circuit to receive the data output by the output port of the multiplexing selection circuit as the previously output sampling signal, wherein the output port of the post-register outputs the first noise suppression signal or the second noise suppression signal according to the stored data.
依照本發明較佳實施例所述的行動裝置,上述前置暫存器更包括一儲存區塊,耦接該後置暫存器的輸出埠,用以儲存該後置暫存器的輸出埠所輸出的資料,作為一第二先前輸出之取樣訊號,其中,每一雜訊抑制電路更包括第二多工選擇電路,其中,第二多工選擇電路的第一輸入埠耦接該前置暫存器的儲存區塊,以接收第二先前輸出之取樣訊號,第二多工選擇電路的第二輸入埠耦接該後置暫存器的輸出埠,以接收該後置暫存器的輸出埠所輸出的資料,該多工選擇電路的選擇端接收一延遲選擇訊號,該第二多工選擇電路的輸出埠耦接該多工選擇電路的第二輸入埠以及該數字比較電路的第二輸入埠。According to the mobile device described in the preferred embodiment of the present invention, the pre-register further includes a storage block coupled to the output port of the post-register for storing the data outputted from the output port of the post-register as a second previously outputted sampling signal, wherein each noise suppression circuit further includes a second multiplexing selection circuit, wherein the first input port of the second multiplexing selection circuit is coupled to the output port of the pre-register. A storage block is provided to receive a second previously output sampling signal, a second input port of a second multiplex selection circuit is coupled to the output port of the post-register to receive data outputted by the output port of the post-register, a selection end of the multiplex selection circuit receives a delay selection signal, and an output port of the second multiplex selection circuit is coupled to the second input port of the multiplex selection circuit and the second input port of the digital comparison circuit.
本發明的實施例另外提供了一種觸控筆的雜訊抑制方法。此觸控筆的雜訊抑制方法包括:取樣一觸控感測電極接收之訊號作為一取樣訊號;將該取樣訊號與鄰近時間之取樣訊號進行比較;當該取樣訊號與該鄰近時間之取樣訊號之差值大於一訊號容許值,則輸出一第一雜訊抑制訊號,其中,該第一雜訊抑制訊號等於該取樣訊號;以及當該取樣訊號與該鄰近時間之取樣訊號之差值小於該訊號容許值,則輸出一第二雜訊抑制訊號,其中,該第二雜訊抑制訊號的數值在該取樣訊號與該鄰近時間之取樣訊號之間。The embodiment of the present invention further provides a noise suppression method for a touch pen. The noise suppression method for the touch pen includes: sampling a signal received by a touch sensing electrode as a sampling signal; comparing the sampling signal with a sampling signal at a nearby time; when the difference between the sampling signal and the sampling signal at the nearby time is greater than a signal allowable value, outputting a first noise suppression signal, wherein the first noise suppression signal is equal to the sampling signal; and when the difference between the sampling signal and the sampling signal at the nearby time is less than the signal allowable value, outputting a second noise suppression signal, wherein the value of the second noise suppression signal is between the sampling signal and the sampling signal at the nearby time.
綜上所述,本發明之實施例採用將接收的訊號取樣,並與先前取樣的訊號做比較,並依照比較的結果是否大於訊號容許值,決定目前所取樣的訊號是否變動。當比較結果大於訊號容許值,則直接輸出目前所取樣的訊號。當比較結果小於訊號容許值,則將先前取樣的訊號加上或減去一變動容許值,作為輸出的訊號。藉此,讓處理後的訊號,在雜訊影響的情況下,變動可以維持在上述變動容許值,而真實變動時,才會輸出目前所取樣的訊號。藉此,降低各式噪聲能量大小,增加訊號雜訊比。In summary, the embodiment of the present invention samples the received signal and compares it with the previously sampled signal, and determines whether the currently sampled signal changes according to whether the comparison result is greater than the signal allowable value. When the comparison result is greater than the signal allowable value, the currently sampled signal is directly output. When the comparison result is less than the signal allowable value, the previously sampled signal is added or subtracted by a change allowable value as the output signal. In this way, the processed signal can maintain the change within the above-mentioned change allowable value under the influence of noise, and the currently sampled signal will be output only when there is a real change. In this way, the energy of various noises is reduced and the signal-to-noise ratio is increased.
為了進一步理解本發明的技術、手段和效果,可以參考以下詳細描述和附圖,從而可以徹底和具體地理解本發明的目的、特徵和概念。然而,以下詳細描述和附圖僅用於參考和說明本發明的實現方式,其並非用於限制本發明。In order to further understand the technology, means and effects of the present invention, reference may be made to the following detailed description and accompanying drawings, so that the purpose, features and concepts of the present invention can be thoroughly and specifically understood. However, the following detailed description and accompanying drawings are only used for reference and explanation of the implementation of the present invention, and are not used to limit the present invention.
現在將詳細參考本發明的示範實施例,其示範實施例會在附圖中被繪示出。在可能的情況下,在附圖和說明書中使用相同的元件符號來指代相同或相似的部件。另外,示範實施例的做法僅是本發明之設計概念的實現方式之一,下述的該等示範皆非用於限定本發明。Reference will now be made in detail to exemplary embodiments of the present invention, which are illustrated in the accompanying drawings. Where possible, the same reference numerals are used in the drawings and the specification to refer to the same or similar components. In addition, the exemplary embodiments are only one of the implementation methods of the design concept of the present invention, and the following examples are not intended to limit the present invention.
第2圖繪示為本發明一較佳實施例的使用觸控筆之行動裝置的解碼電路之電路方塊圖。請參考第2圖,使用觸控筆之行動裝置的解碼電路之實施例中,包含一觸控筆201以及一行動裝置202,解碼電路設置於行動裝置202中,此解碼電路包含多個觸控電極203、多數個訊號取樣裝置204以及多數個雜訊抑制電路205。上述每一個訊號取樣裝置204包含一電荷放大器(Charge Amplifier,CA)206以及多數個類比數位轉換器(Analog-to-Digital Converter,ADC)207。FIG. 2 is a block diagram of a decoding circuit of a mobile device using a touch pen according to a preferred embodiment of the present invention. Referring to FIG. 2, the decoding circuit of the mobile device using a touch pen includes a
第3圖繪示為在理想情況下,本發明一較佳實施例的使用觸控筆之行動裝置的訊號取樣裝置204所取樣之訊號示意圖。請參考第3圖,由第3圖可以看出,理想情況下,觸控電極203接收到來自觸控筆201的訊號,經過類比數位轉換器之後應當是一個完美的方波。故理想情況下,取樣時,只會得到兩種數值。FIG. 3 is a schematic diagram showing the signal sampled by the
第4圖繪示為在有訊號干擾的情況下,本發明一較佳實施例的使用觸控筆之行動裝置的訊號取樣裝置204所取樣之訊號示意圖。請參考第4圖,由第4圖可以看出,在實際訊號傳輸的情況下,由觸控電極203接收到的觸控筆201訊號會因為高頻雜訊、混疊效應(aliasing effect)以及白噪音,讓原本應當只有包含兩個數值的完美方波,實際接收並類比數位轉換後變成有其他高低起伏的訊號。FIG. 4 is a schematic diagram of a signal sampled by the
第5圖繪示為本發明一較佳實施例的雜訊抑制電路205的電路方塊圖。請參考第5圖,雜訊抑制電路205包括一前置暫存器501、一後置暫存器502、一數字比較電路503、一加減法電路504以及一多工選擇電路505。前置暫存器501接收上述對應訊號取樣裝置之取樣訊號A[n],並暫存之。後置暫存器502用以儲存先前輸出,且處理後之取樣訊號B[n-1]。FIG. 5 is a block diagram of a
在此實施例中,數字比較電路503會接收儲存在前置暫存器501的取樣訊號A[n]和儲存在後置暫存器502的前一時間之取樣訊號B[n-1],並將兩者比較。當取樣訊號A[n]和取樣訊號B[n-1]的差異足夠大,超過一設定的訊號容許值,表示從取樣時間n-1到取樣時間n,正好是訊號轉態。此時,數字比較電路503所輸出的選擇訊號SEL_1會設置為邏輯1,此時,輸入至多工選擇電路505對應邏輯1的輸入端的取樣訊號A[n]便會導入多工選擇電路505的輸出端,故後置暫存器502會把接收到取樣訊號A[n]當作是下一時間的輸出訊號B[n],也就是說A[n]=B[n]。In this embodiment, the
然,當取樣訊號A[n]和取樣訊號B[n-1]的差異不足,並未超過一設定的訊號容許值,表示從取樣時間n-1到取樣時間n的訊號差異可能是受到干擾的影響而變動。此時,數字比較電路503所輸出的選擇訊號SEL_1會設置為邏輯0。此時,輸入至多工選擇電路505對應邏輯0的輸入端的訊號便會導入多工選擇電路505的輸出端。由於輸入至多工選擇電路505對應邏輯0的輸入端的訊號是透過加減法電路504運算。在此實施例中,加減法電路504的輸出可以被視為是B[n-1]+VAR,其中,VAR在此實施例中代表變動容許值。也就是說,雖然取樣訊號A[n]和取樣訊號B[n-1]實際上是存在差異,但是此差異被認為可能是雜訊,故在此實施例中,僅允許此訊號可以在變動容許值VAR的限制下部份變動。上述變動容許值VAR的規則是當A[n]>B[n-1]時,B[n]=B[n-1]+VAR,當A[n]<B[n-1]時,B[n]=B[n-1]-VAR。之後,後置暫存器502會把接收到取樣訊號B[n-1]+VAR或B[n-1]-VAR當作是下一時間的輸出訊號B[n]。However, when the difference between the sampling signal A[n] and the sampling signal B[n-1] is insufficient and does not exceed a set signal tolerance value, it means that the signal difference from sampling time n-1 to sampling time n may be affected by interference and change. At this time, the selection signal SEL_1 output by the
第6圖繪示為本發明一較佳實施例的雜訊抑制電路205所輸出的訊號之示意圖。請參考第6圖,所屬技術領域具有通常知識者應當可以看出,標號601、602、603經過雜訊抑制電路205處理後,變動量大幅縮小,藉此,也抑制了雜訊的影響,讓輸出的訊號更加接近理想。FIG6 is a schematic diagram of a signal output by the
第7圖繪示為本發明一較佳實施例的雜訊抑制電路205的電路方塊圖。請參考第7圖,雜訊抑制電路205除了上述的前置暫存器501、後置暫存器502、數字比較電路503、加減法電路504、多工選擇電路505之外,還包括了一第二多工選擇電路701。另外,前置暫存器501更包括一額外儲存區塊702,耦接後置暫存器的輸出埠,用以儲存後置暫存器的輸出埠所輸出的資料B[n-2]。第二多工選擇電路701的第一輸入埠耦接前置暫存器501的儲存區塊702,接收先前輸出之取樣訊號B[n-2],第二多工選擇電路701的第二輸入埠耦接後置暫存器502的輸出埠,接收後置暫存器的輸出埠所輸出的資料B[n-1],第二多工選擇電路701的選擇端接收一延遲選擇訊號SEL_2。此延遲選擇訊號SEL_2係用以決定數字比較電路503所接收的取樣訊號是延遲一單位時間的取樣訊號B[n-1]或是延遲兩單位時間的取樣訊號B[n-2]。FIG. 7 is a block diagram of a
在本發明的較佳實施例中,在取樣率足夠高的情況下,當前的取樣訊號A[n] 和遲一單位時間的訊號B[n-1] 做比較或和延遲兩單位時間的訊號B[n-2] 做比較並不會影響本發明的運作。因此,使用者可以根據不同的實施環境,選擇延遲不同單位時間的訊號進行比較以獲得較佳的結果。本發明不以此為限。In a preferred embodiment of the present invention, when the sampling rate is high enough, the current sampling signal A[n] is compared with the signal B[n-1] delayed by one unit time or with the signal B[n-2] delayed by two unit time and does not affect the operation of the present invention. Therefore, the user can choose to compare signals delayed by different unit time to obtain better results according to different implementation environments. The present invention is not limited to this.
由上述實施例,可以歸納成一個觸控筆的雜訊抑制方法。第8圖繪示為本發明一較佳實施例的觸控筆的雜訊抑制方法的流程圖。請參考第8圖,此觸控筆的雜訊抑制方法包括下列步驟:The above embodiments can be summarized into a stylus noise suppression method. FIG. 8 is a flow chart of a stylus noise suppression method according to a preferred embodiment of the present invention. Referring to FIG. 8 , the stylus noise suppression method includes the following steps:
步驟S800:開始。Step S800: Start.
步驟S801:取樣一觸控感測電極接收之訊號作為一取樣訊號A[n]。Step S801: sampling a signal received by a touch sensing electrode as a sampling signal A[n].
步驟S802:將取樣訊號A[n]與鄰近時間之取樣訊號B[n-1]進行比較,判斷比較結果是否大於訊號容許值VT。當比較結果是大於訊號容許值VT,進行步驟S803,當比較結果是小於訊號容許值VT,進行步驟S804。Step S802: Compare the sampled signal A[n] with the sampled signal B[n-1] of the adjacent time to determine whether the comparison result is greater than the signal allowable value VT. When the comparison result is greater than the signal allowable value VT, proceed to step S803; when the comparison result is less than the signal allowable value VT, proceed to step S804.
步驟S803:當取樣訊號A[n]與鄰近時間之取樣訊號B[n-1]之差值大於訊號容許值VT,則輸出一第一雜訊抑制訊號,其中,第一雜訊抑制訊號等於取樣訊號A[n]。Step S803: When the difference between the sampling signal A[n] and the sampling signal B[n-1] at the adjacent time is greater than the signal allowable value VT, a first noise suppression signal is output, wherein the first noise suppression signal is equal to the sampling signal A[n].
步驟S804:當取樣訊號A[n]與鄰近時間之取樣訊號B[n-1]之差值小於訊號容許值VT,則輸出一第二雜訊抑制訊號,其中,第二雜訊抑制訊號的數值在取樣訊號A[n]與鄰近時間之取樣訊號之間B[n-1]。例如上述的B[n-1]+VAR或B[n-1]-VAR,讓訊號波動抑制在變動容許值VAR。Step S804: When the difference between the sampled signal A[n] and the sampled signal B[n-1] at the adjacent time is less than the signal allowable value VT, a second noise suppression signal is output, wherein the value of the second noise suppression signal is between the sampled signal A[n] and the sampled signal B[n-1] at the adjacent time. For example, the above-mentioned B[n-1]+VAR or B[n-1]-VAR allows the signal fluctuation to be suppressed within the variation allowable value VAR.
上述觸控筆的雜訊抑制方法中,雖然是以取樣訊號A[n] 與鄰近時間之取樣訊號B[n-1],也就是前一時間做比對,然所屬技術領域具有通常知識者,參考上述實施例後,應當知道,前兩單位時間、三單位時間或前N單位時間都是可以實施的方式。端看取樣率的高低與應用。故本發明不以此為限。另外,上述實施例雖然是以處理後的訊號B[n-1]做舉例,然所屬技術領域具有通常知識者應當知道,使用未經處理的鄰近時間之取樣訊號A[n-1] 亦可以作為實施例。故本發明亦不以此為限。In the above-mentioned noise suppression method of the touch pen, although the sampling signal A[n] is compared with the sampling signal B[n-1] of the adjacent time, that is, the previous time, those with ordinary knowledge in the relevant technical field should know, after referring to the above-mentioned embodiments, that the first two units of time, three units of time or the first N units of time are all feasible methods. It depends on the sampling rate and the application. Therefore, the present invention is not limited to this. In addition, although the above-mentioned embodiments use the processed signal B[n-1] as an example, those with ordinary knowledge in the relevant technical field should know that the unprocessed sampling signal A[n-1] of the adjacent time can also be used as an example. Therefore, the present invention is not limited to this.
綜合以上所述,本發明之實施例採用將接收的訊號取樣,並與先前取樣的訊號做比較,並依照比較的結果是否大於訊號容許值,決定目前所取樣的訊號是否變動。當比較結果大於訊號容許值,則直接輸出目前所取樣的訊號。當比較結果小於訊號容許值,則將先前取樣的訊號加上或減去一變動容許值,作為輸出的訊號。藉此,讓處理後的訊號,在雜訊影響的情況下,變動可以維持在上述變動容許值,而真實變動時,才會輸出目前所取樣的訊號。藉此,降低各式噪聲能量大小,增加訊號雜訊比。In summary, the embodiment of the present invention samples the received signal and compares it with the previously sampled signal, and determines whether the currently sampled signal changes according to whether the comparison result is greater than the signal allowable value. When the comparison result is greater than the signal allowable value, the currently sampled signal is directly output. When the comparison result is less than the signal allowable value, the previously sampled signal is added or subtracted by a change allowable value as the output signal. In this way, the processed signal can maintain the change within the above-mentioned change allowable value under the influence of noise, and the currently sampled signal will be output only when there is a real change. In this way, the energy of various noises is reduced and the signal-to-noise ratio is increased.
應當理解,本文描述的示例和實施例僅用於說明目的,並且鑑於其的各種修改或改變將被建議給本領域技術人員,並且將被包括在本申請的精神和範圍以及所附權利要求的範圍之內。It should be understood that the examples and embodiments described herein are for illustrative purposes only and that various modifications or changes thereto will be suggested to those skilled in the art and are to be included within the spirit and scope of the present application and the scope of the appended claims.
101:觸控筆 102:觸控筆接收裝置 201:觸控筆 202:行動裝置 203:觸控電極 204:訊號取樣裝置 205:雜訊抑制電路 206:電荷放大器 207:類比數位轉換器 501:前置暫存器 502:後置暫存器 503:數字比較電路 504:加減法電路 505:多工選擇電路 A[n]:訊號取樣裝置之取樣訊號 B[n-1]:前一時間之取樣訊號 VAR:變動容許值 601、602、603:經過雜訊抑制電路205處理後,變動量縮小的取樣訊號 S800~S804:本發明一較佳實施例的觸控筆的雜訊抑制方法的流程步驟101: stylus102: stylus receiver201: stylus202: mobile device203: touch electrode204: signal sampling device205: noise suppression circuit206: charge amplifier207: analog-to-digital converter501: pre-register502: post-register503: digital comparison circuit504: addition and subtraction circuit505: multiplexing selection circuitA[n]: sampling signal of signal sampling deviceB[n-1]: sampling signal of the previous timeVAR: variation
提供的附圖用以使本發明所屬技術領域具有通常知識者可以進一步理解本發明,並且被併入與構成本發明之說明書的一部分。附圖示出了本發明的示範實施例,並且用以與本發明之說明書一起用於解釋本發明的原理。The accompanying drawings are provided to enable a person with ordinary knowledge in the art to which the present invention belongs to further understand the present invention, and are incorporated into and constitute a part of the specification of the present invention. The accompanying drawings show exemplary embodiments of the present invention, and are used together with the specification of the present invention to explain the principles of the present invention.
第1圖是先前技術的觸控筆系統的解碼電路之電路圖。FIG. 1 is a circuit diagram of a decoding circuit of a touch pen system in the prior art.
第2圖繪示為本發明一較佳實施例的使用觸控筆之行動裝置的解碼電路之電路圖。FIG. 2 is a circuit diagram of a decoding circuit of a mobile device using a touch pen according to a preferred embodiment of the present invention.
第3圖繪示為本發明一較佳實施例的使用觸控筆之行動裝置的訊號取樣裝置204所取樣之訊號的理想情況示意圖。FIG. 3 is a schematic diagram showing an ideal situation of a signal sampled by a
第4圖繪示為本發明一較佳實施例的使用觸控筆之行動裝置的訊號取樣裝置204所取樣之訊號的現實情況示意圖。FIG. 4 is a schematic diagram showing a real situation of a signal sampled by a
第5圖繪示為本發明一較佳實施例的雜訊抑制電路205的電路方塊圖。FIG. 5 is a circuit block diagram of a
第6圖繪示為本發明一較佳實施例的雜訊抑制電路205所輸出的訊號之示意圖。FIG. 6 is a schematic diagram showing a signal output by the
第7圖繪示為本發明一較佳實施例的雜訊抑制電路205的電路方塊圖。FIG. 7 is a circuit block diagram of a
第8圖繪示為本發明一較佳實施例的觸控筆的雜訊抑制方法的流程圖。FIG. 8 is a flow chart of a noise suppression method for a touch pen according to a preferred embodiment of the present invention.
501:前置暫存器501: Pre-register
502:後置暫存器502: Post register
503:數字比較電路503: Digital comparison circuit
504:加減法電路504: Addition and subtraction circuit
505:多工選擇電路505:Multi-tasking selection circuit
A[n]:訊號取樣裝置之取樣訊號A[n]: sampling signal of the signal sampling device
B[n-1]:前一時間之取樣訊號B[n-1]: sampling signal of the previous time
VAR:變動容許值VAR: variable allowable value
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW112140754ATWI860139B (en) | 2023-10-25 | 2023-10-25 | Noise suppression method for stylus and mobile device with stylus using the same |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW112140754ATWI860139B (en) | 2023-10-25 | 2023-10-25 | Noise suppression method for stylus and mobile device with stylus using the same |
| Publication Number | Publication Date |
|---|---|
| TWI860139Btrue TWI860139B (en) | 2024-10-21 |
| TW202518243A TW202518243A (en) | 2025-05-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW112140754ATWI860139B (en) | 2023-10-25 | 2023-10-25 | Noise suppression method for stylus and mobile device with stylus using the same |
| Country | Link |
|---|---|
| TW (1) | TWI860139B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5594215A (en)* | 1995-01-20 | 1997-01-14 | Jeng; James H. | Wireless digitizer and stylus pen unit |
| TW200941314A (en)* | 2008-03-12 | 2009-10-01 | Atlab Inc | Touch sensor device and pointing coordinate determination method thereof |
| TW201407427A (en)* | 2012-08-13 | 2014-02-16 | Lg Display Co Ltd | Input system and method for detecting touch using the same |
| US20150091857A1 (en)* | 2013-09-27 | 2015-04-02 | Sensel, Inc. | Touch Sensor Detector System and Method |
| CN104699288A (en)* | 2013-12-09 | 2015-06-10 | 义隆电子股份有限公司 | Electronic device and noise detection and operation mode setting method thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5594215A (en)* | 1995-01-20 | 1997-01-14 | Jeng; James H. | Wireless digitizer and stylus pen unit |
| TW200941314A (en)* | 2008-03-12 | 2009-10-01 | Atlab Inc | Touch sensor device and pointing coordinate determination method thereof |
| TW201407427A (en)* | 2012-08-13 | 2014-02-16 | Lg Display Co Ltd | Input system and method for detecting touch using the same |
| US20150091857A1 (en)* | 2013-09-27 | 2015-04-02 | Sensel, Inc. | Touch Sensor Detector System and Method |
| CN104699288A (en)* | 2013-12-09 | 2015-06-10 | 义隆电子股份有限公司 | Electronic device and noise detection and operation mode setting method thereof |
| Publication number | Publication date |
|---|---|
| TW202518243A (en) | 2025-05-01 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110462571B (en) | Capacitance detection method of touch display panel, capacitance detection circuit of touch display panel and touch display panel | |
| US11755148B2 (en) | Touch detection method, touch detection circuit, touch chip and electronic device | |
| US20060223581A1 (en) | Mobile device interface for input devices | |
| US20190354408A1 (en) | Method for Preloading Application, Storage Medium, and Terminal | |
| US11799476B2 (en) | Capacitive touch-sensing channel | |
| CN110488228B (en) | Linear frequency modulation signal generation method and device and storage medium | |
| CN109104203A (en) | Communication means, electronic device and computer readable storage medium | |
| TWI860139B (en) | Noise suppression method for stylus and mobile device with stylus using the same | |
| US11686753B2 (en) | Capacitance detection method and circuit | |
| US8542721B2 (en) | System and method for television signal demodulation and decoding | |
| FR2721467A1 (en) | Method and converter for converting rectangular signals into phase signals. | |
| CN109119097B (en) | Pitch detection method, device, storage medium and mobile terminal | |
| CN111587415B (en) | Touch detection method, touch chip and electronic device | |
| CN112988289A (en) | Method and system for calling interface | |
| CN112104949A (en) | Method and device for detecting pickup assembly and electronic equipment | |
| CN113126818A (en) | Processing circuit of touch screen display and method for judging touch event | |
| CN119883010A (en) | Noise suppression method of touch pen and mobile device | |
| CN217606544U (en) | Signal transmitter | |
| US11303497B2 (en) | Method and apparatus for generating a quadrature modulated signal near zero frequency for transmission | |
| CN116594930A (en) | Data transmission control method and system based on assembly line and electronic equipment | |
| CN115249022A (en) | Near field communication receiver | |
| CN114979344A (en) | Echo cancellation method, device, equipment and storage medium | |
| US10693490B1 (en) | Sigma-delta analog-to-digital converter and operation method thereof | |
| CN113889067A (en) | Noise reduction method, apparatus, electronic device and readable storage medium | |
| CN107945822B (en) | Audio playing circuit, audio player, chip and electronic equipment |