Interrupt control IO pin circuit

By interrupting the control IO pin circuit and using hardware to detect changes in key level signals, the problem of MCU software detection delay is solved, fast and accurate key judgment is achieved, and customer experience is improved.

CN223231168UActive Publication Date: 2025-08-15HANGZHOU ZHENHE ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422428768.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-08-15
Estimated Expiration
2034-10-09

AI Technical Summary

Technical Problem

In the prior art, the MCU software detects whether the button is pressed and there is a time delay, which affects the customer experience.

Method used

The interrupt control IO pin circuit is adopted, including a button circuit and a filter circuit, and the level signal changes at the falling edge are generated by buttons and diodes for hardware detection, which is used to replace the MCU software judgment.

Benefits of technology

Faster and accurate key detection is achieved, reducing costs and simplifying structure and improving customer experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223231168U_ABST
    Figure CN223231168U_ABST
Patent Text Reader

Abstract

The utility model discloses an interrupt control IO pin circuit. The interrupt control IO pin circuit is characterized by comprising a key circuit and a filter circuit, wherein the key circuit is used for converting a level signal on an IO pin into a high level signal or a low level signal; the filter circuit is connected with the key circuit; the key circuit comprises a power supply, a resistor R1 and a resistor R2 which are connected with the power supply, a diode D1 connected with the resistor R1, a diode D2 connected with the resistor R2, a button K1 connected with the diode D1, and a button K2 connected with the diode D2. According to the utility model, a pure hardware mode is adopted to replace MCU software, so that the used time is shorter than the judgment time of the MCU software, and the device has the characteristics of low cost, quick response, simple structure and convenience in use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of control circuits, in particular to an interrupt control IO pin circuit. Background Art

[0002] At present, in the field of new energy vehicles, the number of buttons on cars is increasing. In the existing technology, MCU software is usually used to detect whether a button is pressed. However, the time used by MCU software detection is delayed compared to hardware circuit judgment. In order to better judge the button function triggered by the customer during use and to provide customers with a better experience, an interrupt control IO pin circuit is proposed. Utility Model Content

[0003] The purpose of the utility model is to solve the above problems and to provide an interrupt control IO pin circuit.

[0004] In order to achieve the above-mentioned objectives, the present invention provides the following technical solution: an interrupt control IO pin circuit, characterized in that it includes a key circuit for converting the level signal on the IO pin into a high-level or low-level signal and a filter circuit connected to the key circuit; the key circuit includes a power supply, a resistor R1 and a resistor R2 connected to the power supply, a diode D1 connected to the resistor R1, a diode D2 connected to the resistor R2, a button K1 connected to the diode D1, and a button K2 connected to the diode D2.

[0005] Further preferably, the other ends of the button K1 and the button K2 are grounded.

[0006] Further preferably, the filtering circuit includes a resistor R3 connected to K1 and a diode D1, a resistor R4 connected to K2 and a diode D2, a capacitor C1 connected to the resistor R3, a capacitor C2 connected to the resistor R4, and an electrostatic protector CD1 and an electrostatic protector CD2 connected to the capacitor C1 and the capacitor C2.

[0007] Further preferably, one end of the capacitor C1, the capacitor C2, the electrostatic protector CD1, and the electrostatic protector CD2 is grounded.

[0008] Further preferably, the resistor R3 and the electrostatic protector CD1 are connected to the AC KEY MCU; the resistor R4 and the electrostatic protector CD2 are connected to the LOOP KEY MCU.

[0009] The beneficial effects of the utility model are as follows: by adopting pure hardware to replace MCU software, the time taken is faster than MCU software judgment, and it has the characteristics of low cost, fast response, simple structure and easy use;

[0010] The falling edge generated after button K1 or K2 is pressed is detected by the external interrupt of the microcontroller to determine whether the button is pressed. At this time, the IO port of the microcontroller is grounded at a low potential, so it can be determined which IO port-related button is pressed, thereby determining the use of the corresponding button, making the microcontroller response more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Attachment Figure 1 It is a circuit principle diagram of the utility model. DETAILED DESCRIPTION

[0012] Next, we further explain the interrupt control IO pin circuit of the present invention with reference to the accompanying drawings.

[0013] It should be noted that all directional indications such as up, down, left, right, front, back, etc. in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the various components in a certain specific posture as shown in the accompanying drawings. If the specific posture changes, the directional indication will also change accordingly.

[0014] In this utility model, unless otherwise specified or limited, the terms "connection" and "fixation" should be understood in a broad sense. For example, "fixation" can mean fixed connection, detachable connection, or integration; it can mean mechanical connection or electrical connection; it can mean direct connection or indirect connection through an intermediate medium; it can mean internal communication between two elements or interaction between two elements, unless otherwise specified. For those skilled in the art, the specific meanings of the above terms in this utility model can be understood according to specific circumstances.

[0015] See Figure 1 As shown in , an interrupt control IO pin circuit is characterized by including a key circuit for converting the level signal on the IO pin into a high-level or low-level signal and a filter circuit connected to the key circuit; the key circuit includes a power supply, a resistor R1 and a resistor R2 connected to the power supply, a diode D1 connected to the resistor R1, a diode D2 connected to the resistor R2, a button K1 connected to the diode D1, and a button K2 connected to the diode D2;

[0016] The other ends of the button K1 and the button K2 are grounded;

[0017] The falling edge generated by button K1 or K2 after being pressed is detected by the external interrupt of the microcontroller to determine whether the button is pressed. At this time, the IO port of the microcontroller is grounded at a low potential, so that it can be determined which IO port related button is pressed, thereby determining the use of the corresponding button, making the microcontroller response more accurate;

[0018] By pressing button K1 or K2, the power supply is directly connected to the ground after passing through resistor R1 or resistor R2, causing the high level of the IO pin to change to a low level. At this time, the interrupt can detect the falling edge, thereby completing the judgment of the IO pin's quick response. Diodes D1 and D2 are used to prevent the impact of other related circuits when one button is pressed.

[0019] In one embodiment, the filtering circuit includes a resistor R3 connected to K1 and a diode D1, a resistor R4 connected to K2 and a diode D2, a capacitor C1 connected to the resistor R3, a capacitor C2 connected to the resistor R4, and an electrostatic protector CD1 and an electrostatic protector CD2 connected to the capacitor C1 and the capacitor C2;

[0020] One end of the capacitor C1, capacitor C2, electrostatic protector CD1, and electrostatic protector CD2 is grounded;

[0021] The resistor R3 and the electrostatic protector CD1 are connected to the AC KEY MCU; the resistor R4 and the electrostatic protector CD2 are connected to the LOOP KEY MCU.

[0022] When the key circuit is not in use, the IO pin is at a high level. At this time, a filter circuit is needed to filter out noise and stabilize the voltage to prevent the microcontroller from being damaged.

[0023] The protection scope of the present invention is not limited to the above embodiment and its variations. Conventional modifications and replacements made by those skilled in the art based on the contents of this embodiment fall within the protection scope of the present invention.

Claims

1. An interrupt control IO pin circuit, characterized in that It includes a key circuit for converting the level signal on the IO pin into a high-level or low-level signal and a filter circuit connected to the key circuit; the key circuit includes a power supply, resistors R1 and R2 connected to the power supply, a diode D1 connected to the resistor R1, a diode D2 connected to the resistor R2, a button K1 connected to the diode D1, and a button K2 connected to the diode D2.

2. The interrupt control IO pin circuit according to claim 1, wherein: The other ends of the button K1 and the button K2 are grounded.

3. The interrupt control IO pin circuit according to claim 1, wherein: The filtering circuit includes a resistor R3 connected to K1 and a diode D1, a resistor R4 connected to K2 and a diode D2, a capacitor C1 connected to the resistor R3, a capacitor C2 connected to the resistor R4, and electrostatic protectors CD1 and CD2 connected to capacitors C1 and C2.

4. The interrupt control IO pin circuit according to claim 3, wherein: One end of the capacitor C1, the capacitor C2, the electrostatic protector CD1, and the electrostatic protector CD2 is grounded.

5. The interrupt control IO pin circuit according to claim 3, wherein: The resistor R3 and the electrostatic protector CD1 are connected to the AC KEY MCU; the resistor R4 and the electrostatic protector CD2 are connected to the LOOP KEY MCU.