Key detection circuit
The utility model discloses a key detection circuit which comprises an MCU, resistors RX1 and R3, a first key circuit and a second key circuit. And an IO pin IO1 of the MCU is connected with a resistor R3 through a resistor RX1 and then is grounded. The first key circuit comprises a resistor R1 and...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The utility model discloses a key detection circuit which comprises an MCU, resistors RX1 and R3, a first key circuit and a second key circuit. And an IO pin IO1 of the MCU is connected with a resistor R3 through a resistor RX1 and then is grounded. The first key circuit comprises a resistor R1 and a key K1, the VCC is connected with one end of the key K1 after being connected with the resistor R1, and the other end of the key K1 is connected with a resistor RX1 and a resistor R3. The second key circuit comprises a resistor R2 and a key K2. The resistor RX1 is connected with the resistor R2, then is connected with the key K2 and then is grounded. The IO pins IO1 of the MCU are configured respectively, so that the MCU can identify pressing of the key K1 and the key K2 respectively, and the design purpose is achieved.
本实用新型公开一种按键检测电路,包括MCU、电阻RX1和R3、第一按键电路和第二按键电路。MCU的IO管脚IO1通过电阻RX1与电阻R3连接后接地。第一按键电路包括电阻R1和按键K1,VCC与电阻R1连接后与按键K1一端连接,按键K1另一端分别与电阻RX1和电阻R3连接。第二按键电路包括电阻R2和按键K2,电阻RX1先与电阻R2连接后再与按键K2连接后接地。通过分别配置MCU的IO管脚IO |
---|