201035817 六、發明說明: 【發明所屬之技術領域】 . 本發明涉及一種方向傳感電路及應用該電路的電子裝置。 【先前技術】 目前,越來越多的電子裝置使用方向傳感電路來實現相應功 能。例如,在數碼相框中,所述方向傳感電路用於控制顯示圖像 的狀態’或在其他電子裝置中執行其他控制功能。 〇 圖3為現有技術中方向傳感電路10的硬體架構圖。所述方向 傳感電路10包括一滚珠開關κι、一處理器及電阻R1、R2。 所述滾珠開關K1包括一第一引腳1、一第二引腳2、一第=引腳 3、一第四引腳4及一滚珠5。所述處理器Ln包括一第—輸入端 101及一第二輸入端1〇2。所述第一引腳工電連接於所述第一輸入 端ιοί’同時經由所述電阻R1電連接於一電源vcc;所述第二引 腳2電連接於所述第二輸入端102 ’同時經由所述電阻R2電連接 ❹於所述電源vcc ;所述第三引腳3及第四引腳4接地。當所述滾 珠5將所述第-、第二、第三及第四引腳按順時針兩兩接通時, 所述第-輸入端101與第二輸入端1〇2獲得的組合輸入狀態為 11 10、11及01 ’有效狀態為11、。所述處理器Ui存儲 一輸入端的組合輸入狀態對應的控制信號列表,根據檢測的組合 輸入狀態及所述列表輸出對應的控制信號,並根據該控制信號完 成方向控制。然而’上述方向傳感電路10應用於一電子裝置時, 只能探測到三種放置方位’ 一般情況下電子裝置有4種放置方位, 4 201035817 囟此其無法滿足這樣的要求。 , 解決上述問題的較常用途徑是增加處理器用於連接該方向傳 .· 感電路的引腳的輸入端(ίο 口),這樣會佔用處理器過多的輸入 端’增加方向傳感電路設計的難度。 蓉於上述問題’有必要發明一種方向傳感電路及運用該方向 傳感電路的電子裝置,在只使用處理器的兩個輸入端情況下,可 以探測到方向傳感電路4種放置方位,使得方向傳感電路及運用 〇 該方向傳感電路的電子裝置可以實現更多的應用或避免誤操作。 【發明内容】 本發明的目的在於提供一種佔用較少輸入端的方向傳感電 所提供的方向傳感電路,包括一滾珠開關,一處理器。所述 處理器包括-第-輸入端及一第二輸入端。所述滾珠開關具有一 第引腳、一第二引腳、一第三引腳及一第四引腳。所述電路還 © 包括-第-電流導通極串聯的互補導通的第―、第二開關管,一201035817 VI. Description of the Invention: [Technical Field of the Invention] The present invention relates to a direction sensing circuit and an electronic device using the same. [Prior Art] Currently, more and more electronic devices use directional sensing circuits to achieve the corresponding functions. For example, in a digital photo frame, the direction sensing circuit is used to control the state of displaying an image' or perform other control functions in other electronic devices. 3 is a hardware architecture diagram of the prior art direction sensing circuit 10. The directional sensing circuit 10 includes a ball switch κι, a processor, and resistors R1, R2. The ball switch K1 includes a first pin 1, a second pin 2, a third pin 3, a fourth pin 4, and a ball 5. The processor Ln includes a first input terminal 101 and a second input terminal 1〇2. The first pin is electrically connected to the first input terminal ιοί' while being electrically connected to a power source vcc via the resistor R1; the second pin 2 is electrically connected to the second input terminal 102' The power supply vcc is electrically connected via the resistor R2; the third pin 3 and the fourth pin 4 are grounded. When the ball 5 turns the first, second, third and fourth pins clockwise two or two, the combined input state obtained by the first input terminal 101 and the second input terminal 1〇2 For 11 10, 11 and 01 'the effective state is 11,. The processor Ui stores a control signal list corresponding to the combined input state of an input terminal, outputs a corresponding control signal according to the detected combined input state and the list, and performs direction control according to the control signal. However, when the above-mentioned direction sensing circuit 10 is applied to an electronic device, only three placement orientations can be detected. In general, the electronic device has four placement orientations, 4 201035817, which cannot meet such requirements. The more common way to solve the above problem is to increase the input end of the pin used by the processor to connect the directional circuit ( ίο port), which will occupy too many input terminals of the processor to increase the difficulty of designing the directional sensing circuit. . In the above problem, it is necessary to invent a directional sensing circuit and an electronic device using the directional sensing circuit. When only two input terminals of the processor are used, four orientations of the directional sensing circuit can be detected, so that The direction sensing circuit and the electronic device using the direction sensing circuit can realize more applications or avoid misoperation. SUMMARY OF THE INVENTION It is an object of the present invention to provide a direction sensing circuit provided by a direction sensing device that occupies fewer inputs, including a ball switch, a processor. The processor includes a -th input and a second input. The ball switch has a first pin, a second pin, a third pin and a fourth pin. The circuit further includes: a first and a second switch tube including a complementary current conduction of the -first current conduction pole series,
於所述第一電阻與第三電阻的咀佶 〇 __ 31 ΙΚηΛ* ,ι nThe first resistor and the third resistor are 佶 〇 __ 31 ΙΚηΛ* , ι n
於所述電源, 三電阻接 电迷郎點’該節點電連接於第—輸入端及第 開關管的第二驗導通極_所述第-電阻電連接 第二開關管的第二電流導通極經由所述第三 5 201035817 第,制極都與第二_電連接,並回應所述 第二引賴彻·爾断麟十和第二輸入 Γ組合輸Γ態對應的控制信號的列表,根據所述第一和第二 輸入端的組合輸入狀態及所述列表輪 置 該控制信號執行旋轉控制。1出對應的控制信號,並根據 本發明的另-目的在於提供—種應用方向傳感電路的電子裝 Ο Ο 所k供的應用方向傳感電路的電子裝置,包括—滾珠開關, ^理器。所述處麵m端及—第二輸入端。所述 滾珠開關具有—第—引腳、—第二引腳、—第三引腳及一第四引 腳所述電路還包括一第一電流導通極串聯的互補導通的第一、 第二開關管,一第一電阻、一第二電阻及—第三電阻爾二 電阻的阻值遠大於所述第一電阻與第三電阻的阻值。所述第一引 腳接地’第二引腳電連接於第二輸出端,第三引腳電連接於一電 源’第四引腳經由所述第二電阻電連接於所述第二引聊。第一鱼 紅開關管的第-電流導難電連胁-節點,該_電連麟 第i入端及細引腳,第—_管的第二電流導通極經由所述 第=電阻電連接於所述電源’第二開關管的第二電流導通極經由 所述第三電阻接地,第一、二開關管的控制極都與第二引腳電連 接,並回應所述第二引腳的電平輪流導通。所述處理器存儲有一 第和第二輸入端的組合輸入狀態對應的控制信號的列表,根據 所述第-和第二輸人端的組合輸人狀態及所述列表輸出對應的x控 6 201035817 、制信號,並根據該控制信號執行旋轉控制,實現電子裝置的相應 功能。 • · 本發明之優點在於,所述方向傳感電路及應用該方向傳感電 路的電子装置’在佔用較少輸入端的情況下,可以探測到方向傳 感電路4種放置方位,使得方向傳感電路及運用該方向傳感電路 的電子裝置可以實現更多的應用或避免誤操作。 【實施方式】 ❹ 請參考圖1,圖1為本發明方向傳感電路20的硬體架構圖。 所述電路20包括滾珠開關K10、處理器U10、一第一電阻RU、 一第二電阻R13、一第三電阻R12、一第一開關管Q1及一第二開 關管Q2。所述處理器U10包括一第一輸入端1〇1及一第二輸入端 102。在本實施例+,所述第一、二輸入端1〇1和1〇2輸入信號時, 被定義為尚阻狀態。所述第二電阻R13的阻值遠大於所述第一電 阻R11與第二電阻R12的阻值。所述第二電阻R13阻值例舉為 〇 1〇〇k ’所述第一電阻RU與第三電阻R12的阻值例舉為10k。所 述第-開關管Q1例舉為一 p溝道增強型金屬氧化物半導體場效應 管Q1 ’所述第二開關管被例舉為- N溝道耗盡型場效應管. 在其他實施方式中,所述第一場效應管Qi及所述第二場效應管 Q2亦可被例舉為結型場效應管。 所述滚珠開關⑽包括-第-引腳!…第二引腳2、-第三 引腳3第四引腳4及-滾珠5。所述第一引腳i接地,所述 二引腳2電連接於所述處理器咖的第二輸出端102,所述第三 7 201035817 、弓I腳3電連接於一電源Vcc,所述第四引腳4經由一第二電阻· •電連接於所述第二引腳2。第一開關管Q1的第一電流導通極即漏 極與第一開關管q2的第一電流導通極即漏極電連接,其連接點電 連接於所述處理器U1G的第-輸入端1〇1及所述第四引腳4,所 述第一開關管Q1的第二電流導通極即源極經由第一電阻R11電 連接於所述電源Vcc。第二開關管Q2的第二電流導通極即源極經 由第三電阻R12接地;第一開關管Q1與第二開關管⑴的控制極 〇即桃極都與所述第二引腳2電連接,第一管Q1與第二開關管 Q2回應所述第二引腳的電平輪流導通。 圖2A〜2D示出了方向傳感電路20應用於一電子裝置時,所 述滚珠5與引腳i_4之間的連接關係。在本發明具體實施方式中, 電子裳置被例舉為一數碼相框,所述的方向傳感電路2〇用於控制 數碼相框的顯示器12顯示的圖像。當所述顯示器12豎立時,所 述滾珠5將處於以下幾種狀態: 〇 1 .如圖2A所示,所述滾珠5將所述第一引腳丄與所述第二 引腳2電連接時,所述滾珠開關K10的第二引腳2經由所述第一 引腳1接地,所述第二輸入端102變為低電平。由於所述第一開 關管Q1與第二開關管Q2的控制極為低電平,則所述第一場效應 ί Q1導通’所述第一場效應管Q2戴止。此時’所述第一電阻 R11與第二電阻R13串聯於所述電源Vcc與地之間。由於所述第 二電阻R13遠大於所述第一電阻R11,故所述第一輸入端1〇1變 為高電平,所述第一、二輸入端101和102的組合輸入狀態為1〇 8 201035817 2 ·如圖2B所示,所述滾珠5將所述第二引腳2與所述第三 • 引腳3電連接時,所述滚珠開關U10的第二引腳2經由所述第三 ,. 引腳3電連接所述電源Vcc ’所述第二輸入端1〇2變為高電平。 所述第一開關管Q1與所述第二開關管Q2的控制極變為高電平, 則所述第一開關管Q1截止,所述第二開關管Q2導通。此時,第 三電阻R12與第二電阻R13串聯於所述電源Vcc與地之間。由於 所述第二電阻R13遠大於所述第三電阻R12,故所述第一輸入端 © 101變為低電平,所述第一、二輸入端101和102的組合輸入狀 態為01 ; 3 ·如圖2C所示,所述滾珠5將所述第三引腳3與所述第四 引腳4電連接時’所述滾珠開關uio的第四引腳4經由所述第三 引腳3電連接所述電源Vcc,所述第一輸入端1〇1變為高電平。 由於輸入端101和102被設置為高阻狀態,所述第二引腳2通過 所述第二電阻R13和第二輸入端102獲得一高電平。所述第一開 〇 關管Q1與所述第二開關管Q2的控制極為高電平,則所述第一開 關1 Q1截止所述第一開關管Q2導通。戶斤述第二輸入端變 為高電平’所述第-、二輸入端101和1〇2的組合輸入狀態為u ; 4如圖2D所示,戶斤述滚珠5將所述第—弓丨腳1與所述第四 弓1腳4電連接時’所述滾珠開關㈣的第㈣腳4經由所述第-弓I腳1接地’所迷第一輸入端1〇1變為低電平。所述第一開關管 Qi與所述第二開關管Q2的控制極為低電平,則所述第一場效應 管Qi導通,所述第二場效應管Q2截止。此時,所述第二輸入端 9 201035817 Γ〇2經由所述第二電阻R3接地,故所述第二輸入端1〇2變為低電 平’所述第一、二輸入端101和102的組合輸入狀態為〇〇。 所述處理窃U10存儲一列表1〇〇 ’所述列表1⑻定義了所述 處理器U10的輸入端1〇1、1〇2的組合狀態與控制信號的對應關係。 列表100 : 笛一4^ λ 楚—认、ubIn the power supply, the three-resistor is connected to the second current conducting pole of the second switching tube electrically connected to the first input terminal and the second detecting conducting pole of the second switching tube Via the third 5 201035817, the poles are electrically connected to the second _, and respond to the list of control signals corresponding to the second 赖 · 尔 和 和 and the second input Γ combined output state, according to The combined input state of the first and second inputs and the list wheel set the control signal to perform rotation control. 1 corresponding control signal, and according to another aspect of the present invention, is to provide an electronic device for applying a direction sensing circuit to an electronic device for applying a direction sensing circuit, including a ball switch, a processor . The m end of the surface and the second input end. The ball switch has a first pin, a second pin, a third pin and a fourth pin. The circuit further includes a first and a second switch that are connected in series with the first current conducting pole. The resistance of the first resistor, the second resistor, and the third resistor is much greater than the resistance of the first resistor and the third resistor. The first pin grounding 'second pin is electrically connected to the second output end, and the third pin is electrically connected to a power source. The fourth pin is electrically connected to the second chat frame via the second resistor. a first current-switching-to-node of the first fish-red switch, the first current terminal and the thin pin, and the second current conducting electrode of the first-tube is electrically connected via the first resistor The second current conducting pole of the second switching tube is grounded via the third resistor, and the control poles of the first and second switching tubes are electrically connected to the second pin, and are responsive to the second pin The levels are turned on in turn. The processor stores a list of control signals corresponding to the combined input states of the first and second input ends, and outputs a corresponding x-control according to the combined input state of the first and second input terminals and the list output. The signal is executed, and the rotation control is performed according to the control signal to implement the corresponding function of the electronic device. The advantage of the present invention is that the direction sensing circuit and the electronic device using the direction sensing circuit can detect four orientations of the direction sensing circuit when the input terminal is occupied, so that the direction sensing The circuit and the electronic device using the direction sensing circuit can realize more applications or avoid misoperation. Embodiments Please refer to FIG. 1. FIG. 1 is a hardware structural diagram of a direction sensing circuit 20 of the present invention. The circuit 20 includes a ball switch K10, a processor U10, a first resistor RU, a second resistor R13, a third resistor R12, a first switch transistor Q1, and a second switch transistor Q2. The processor U10 includes a first input terminal 1〇1 and a second input terminal 102. In the embodiment +, when the first and second input terminals 1〇1 and 1〇2 input signals, they are defined as the resistance state. The resistance of the second resistor R13 is much larger than the resistance of the first resistor R11 and the second resistor R12. The resistance of the second resistor R13 is exemplified as 〇 1〇〇k ’. The resistance values of the first resistor RU and the third resistor R12 are exemplified as 10 k. The first switch transistor Q1 is exemplified as a p-channel enhancement type metal oxide semiconductor field effect transistor Q1 'the second switch transistor is exemplified as an -N channel depletion field effect transistor. In other embodiments The first field effect transistor Qi and the second field effect transistor Q2 may also be exemplified as junction field effect transistors. The ball switch (10) includes a -th-pin! ...second pin 2, - third pin 3 fourth pin 4 and - ball 5. The first pin i is grounded, the two pins 2 are electrically connected to the second output end 102 of the processor, and the third 7 201035817 and the pin 3 are electrically connected to a power source Vcc. The fourth pin 4 is electrically connected to the second pin 2 via a second resistor. The first current conducting terminal of the first switching transistor Q1, that is, the drain is electrically connected to the first current conducting terminal, that is, the drain of the first switching transistor q2, and the connection point thereof is electrically connected to the first input terminal of the processor U1G. 1 and the fourth pin 4, the second current conducting pole of the first switching transistor Q1, that is, the source is electrically connected to the power source Vcc via the first resistor R11. The second current conducting pole of the second switching transistor Q2, that is, the source is grounded via the third resistor R12; the first switching transistor Q1 and the control pole of the second switching transistor (1), that is, the peach pole, are electrically connected to the second pin 2 The first tube Q1 and the second switching tube Q2 are turned on in response to the level of the second pin. 2A to 2D show the connection relationship between the ball 5 and the pin i_4 when the direction sensing circuit 20 is applied to an electronic device. In an embodiment of the invention, the electronic skirt is exemplified as a digital photo frame, and the direction sensing circuit 2 is used to control an image displayed by the display 12 of the digital photo frame. When the display 12 is erected, the ball 5 will be in the following states: 〇 1. As shown in FIG. 2A, the ball 5 electrically connects the first pin 丄 with the second pin 2 When the second pin 2 of the ball switch K10 is grounded via the first pin 1, the second input terminal 102 becomes a low level. Since the control of the first switch transistor Q1 and the second switch transistor Q2 is extremely low, the first field effect ί Q1 turns "the first field effect transistor Q2 is turned on." At this time, the first resistor R11 and the second resistor R13 are connected in series between the power source Vcc and the ground. Since the second resistor R13 is much larger than the first resistor R11, the first input terminal 1〇1 becomes a high level, and the combined input state of the first and second input terminals 101 and 102 is 1〇. 8 201035817 2 as shown in FIG. 2B, when the ball 5 electrically connects the second pin 2 and the third pin 3, the second pin 2 of the ball switch U10 passes through the Third, the pin 3 is electrically connected to the power source Vcc 'the second input terminal 1〇2 becomes a high level. When the control poles of the first switching transistor Q1 and the second switching transistor Q2 become a high level, the first switching transistor Q1 is turned off, and the second switching transistor Q2 is turned on. At this time, the third resistor R12 and the second resistor R13 are connected in series between the power source Vcc and the ground. Since the second resistor R13 is much larger than the third resistor R12, the first input terminal 101 becomes a low level, and the combined input state of the first and second input terminals 101 and 102 is 01; As shown in FIG. 2C, when the ball 5 electrically connects the third pin 3 and the fourth pin 4, the fourth pin 4 of the ball switch uio passes through the third pin 3 The power source Vcc is electrically connected, and the first input terminal 1〇1 becomes a high level. Since the input terminals 101 and 102 are set to a high resistance state, the second pin 2 obtains a high level through the second resistor R13 and the second input terminal 102. The control of the first opening switch Q1 and the second switching tube Q2 is extremely high, and the first switch 1 Q1 is turned off by the first switch Q2. The second input terminal becomes a high level, and the combined input state of the first and second input terminals 101 and 1〇2 is u; 4, as shown in FIG. 2D, the ball 5 will be the first- When the bow foot 1 is electrically connected to the fourth bow 1 foot 4, the first (fourth) foot 4 of the ball switch (four) is grounded via the first bow 1 foot 1 'the first input end 1 〇 1 becomes low Level. The first switching transistor Qi and the second switching transistor Q2 are controlled to be at a low level, and the first FET Qi is turned on, and the second FET Q2 is turned off. At this time, the second input terminal 9 201035817 Γ〇 2 is grounded via the second resistor R3, so the second input terminal 1 〇 2 becomes a low level 'the first and second input terminals 101 and 102 The combined input state is 〇〇. The processing thief U10 stores a list 1 〇〇 '. The list 1 (8) defines a correspondence relationship between the combined states of the input terminals 1 〇 1, 1 〇 2 of the processor U 10 and control signals. Listing 100: Flute a 4^ λ Chu-recognition, ub
如列表100所示,當輸入端101與102的組合輸入狀態為10 時,所述處理器U10根據所述列表100讀取控制信號S1;當輸入 端101與1〇2的組合輸入狀態為01時,所述處理器ul〇根據所述 列表100讀取控制信號幻;當輸入端1〇1與102的組合輸入狀態 為11時’所述處理器U10根據所述列表1〇〇讀取控制信號S3;當 輸入端101與102的組合輸入狀態為〇〇時,所述處理器ul〇根據 所述列表1GG讀取控制信號S4。所述處理器U1()根據讀取的控制 信號執行圖像的方向控制。 例如’如圖2A所示,若顯示器12正立時,所述輸入端1〇1、 1〇2的組合輸人狀態為1G,所述處理器mG根據該輸人端的組合 輸入狀態ίο及所述列表腦讀取對應的控制信號si,根據該控制 U虎S1獲知顯不n 12顯示的原始圖像的旋轉的角度為◦度,繼 201035817 •續顯示並維持圖像正立。 • 如圖2B所示,若當顯示器12逆時針或者順時針旋轉至顯示 .器左邊框平行於水平面時,所述輸入端1〇1、102的組合輸入狀態 為〇1,所述處理器ϋΐο根據該輸入端的組合輸入狀態〇1及所述 列表100讀取對應的控制信號S2 ’根據該控制信號S2獲知電子 裝置20顯示的原始圖像需要順時針旋轉9〇度,將旋轉後的原始 圖像顯示於所述顯示器12,並維持圖像正立。 〇 如圖2C所示’若當顯示器12倒立時,所述輸入端1〇1、1〇2 的組合輪碌_ 11,所述處理器_根據錄人端的組合輸入 狀態11及所述列表100讀取對應的控制信號s3,根據該控制信號 S3獲知電子裳置2〇顯示的原始圖像需要旋轉⑽度,將旋轉後的 原始圖像顯示於所述顯示器12,並維持圖像正立。 如圖2D所示’若當顯示器12逆時針或者順時針旋轉至顯示 器右邊框平行於水平面時,所述輸入端Ι〇ι、ι〇2的組合輸入狀態 為00 ’所述處理器㈣根據該輸入端的組合輸入狀態⑽及所述 列表100讀取對應的控制信號S2,根據該控制信號S2獲知電子 裝置20—顯不的原始圖像需要逆時針旋轉如度將旋轉後的原始 圖像顯示於所述顯示器12,並維持圖像正立。 在其他實施方式中,所述方向傳感電路20還包括-計時器(圖 未不)’用於計時所述第-及第二輸入端獲得組合輸入狀態的時 間,且在所述計時器計時時間達到一預設時間時,所述處理㈣〇 根據獲得的輸入端的組合輸人狀態和關係表輸峨的控制 201035817 信號,根據該控制信號執行相應控制。 ”’r上所C本發明所述方向傳感電路及應用該方向傳感電路 的電子《置’在只使用處理傭人端情況下,可以探 方向傳感電路4種放置方位,使得方向碱電路及運用該方 感電路的電子裝置可以實現更多的顧或避免誤操作。/ °傳 【圖式簡單說明】 圖1為本發明方向傳感電路的硬體架構圖。As shown in the list 100, when the combined input state of the input terminals 101 and 102 is 10, the processor U10 reads the control signal S1 according to the list 100; when the combined input state of the input terminals 101 and 1〇2 is 01 The processor ul 读取 reads the control signal illusion according to the list 100; when the combined input state of the input terminals 〇1 and 102 is 11 'the processor U10 reads control according to the list 1 〇〇 Signal S3; when the combined input state of the input terminals 101 and 102 is 〇〇, the processor ul 读取 reads the control signal S4 according to the list 1GG. The processor U1() performs directional control of the image based on the read control signal. For example, as shown in FIG. 2A, if the display 12 is erected, the combined input state of the input terminals 1〇1, 1〇2 is 1G, and the processor mG inputs the state according to the combined input state of the input terminal. The list brain reads the corresponding control signal si, and according to the control, the U tiger S1 knows that the angle of rotation of the original image displayed by n 12 is ◦, and continues to display and maintain the image erect. • As shown in FIG. 2B, if the display 12 is rotated counterclockwise or clockwise until the left border of the display is parallel to the horizontal plane, the combined input state of the input terminals 1〇1, 102 is 〇1, the processor ϋΐο According to the combined input state 〇1 of the input terminal and the list 100, the corresponding control signal S2′ is read. According to the control signal S2, it is learned that the original image displayed by the electronic device 20 needs to be rotated clockwise by 9 degrees, and the original image after the rotation is rotated. The image is displayed on the display 12 and the image is maintained erect. As shown in FIG. 2C, 'When the display 12 is inverted, the combination of the input terminals 1〇1, 1〇2 is _11, and the processor_ inputs the state 11 according to the combination of the recording terminal and the list 100. The corresponding control signal s3 is read, and based on the control signal S3, it is known that the original image displayed by the electronic display 2 turns (10) degrees, and the rotated original image is displayed on the display 12, and the image is maintained erect. As shown in FIG. 2D, if the display 12 is rotated counterclockwise or clockwise until the right border of the display is parallel to the horizontal plane, the combined input state of the input terminals Ι〇ι, ι2 is 00 'the processor (4) according to the The combined input state (10) of the input end and the list 100 read the corresponding control signal S2, and according to the control signal S2, the electronic device 20 is notified that the original image that is displayed needs to be rotated counterclockwise, such as the original image after the rotation is displayed. The display 12 maintains the image erect. In other embodiments, the direction sensing circuit 20 further includes a timer (not shown) for timing the first and second inputs to obtain a combined input state, and timing the timer When the time reaches a preset time, the processing (4) performs a corresponding control according to the control signal according to the obtained input state of the input terminal and the control 201035817 signal of the relationship table input. "The direction sensing circuit of the invention and the electronic "setting" of the direction sensing circuit can be used to detect the direction of the sensing circuit in the case of using only the processing maid, so that the direction of the alkali circuit And the electronic device using the square sensing circuit can realize more care or avoid misoperation. / ° [Simplified description of the drawings] Figure 1 is a hardware architecture diagram of the direction sensing circuit of the present invention.
滾珠與 圖2Α〜2D示出了方向傳感電路應用於一電子裝置時 引腳之間的連接關係。 圖3為現有技術中方向傳感電路的硬體架構圖。 【主要元件符號說明】 方向傳感電路 20 第一電阻 R11 第二電阻 R12 第三電阻 R13 第一開關管 Q1 第二開關管 Q2 滾珠開關 Κ10、幻 處理器 Ul〇l、Ul 電阻 Rl、R2 方向傳感電路 10 12Balls and Figures 2A to 2D show the connection relationship between the pins when the direction sensing circuit is applied to an electronic device. 3 is a hardware architecture diagram of a direction sensing circuit in the prior art. [Main component symbol description] Directional sensing circuit 20 First resistor R11 Second resistor R12 Third resistor R13 First switching transistor Q1 Second switching transistor Q2 Ball switch Κ10, Magic processor Ul1l, Ul Resistance Rl, R2 Direction Sensing circuit 10 12