CN202364197U - Button detection and LED control circuit - Google Patents

Button detection and LED control circuit Download PDF

Info

Publication number
CN202364197U
CN202364197U CN2011204732706U CN201120473270U CN202364197U CN 202364197 U CN202364197 U CN 202364197U CN 2011204732706 U CN2011204732706 U CN 2011204732706U CN 201120473270 U CN201120473270 U CN 201120473270U CN 202364197 U CN202364197 U CN 202364197U
Authority
CN
China
Prior art keywords
button
led control
led
shift register
control circuit
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN2011204732706U
Other languages
Chinese (zh)
Inventor
黄硕茂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN COMET SCIENCE & TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN COMET SCIENCE & TECHNOLOGY Co Ltd
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 SHENZHEN COMET SCIENCE & TECHNOLOGY Co Ltd filed Critical SHENZHEN COMET SCIENCE & TECHNOLOGY Co Ltd
Priority to CN2011204732706U priority Critical patent/CN202364197U/en
Application granted granted Critical
Publication of CN202364197U publication Critical patent/CN202364197U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The utility model discloses a button detection and LED control circuit, comprising a one-chip microcomputer, a button, an LED, and several sets of button detection and LED control units, wherein the button detection and LED control unit comprises a shift register used for data serial input and parallel output; the data input terminal of the shift register is electrically connected with the IO port of the one-chip micrcocomputer; and the data output terminal of the shift register is electrically connected with the button and LED respectively. The utility model provides a button detection circuit and a LED control circuit, featuring simple structure, high reliability, stable performance, substantial reduction of hardware resources, and the decrease of system configuration cost.

Description

A kind of button detects and the LED control circuit
Technical field
The utility model relates to the Single-chip Controlling field, relates in particular to a kind of monolithic processor controlled button and detects and the LED control circuit.
Background technology
Along with development of electronic technology, button detects and LED control is applied on the electronic equipments such as remote controller and mobile phone more and more.Present most of product adopts need not general I/O pin (IO mouth) accomplishing key scan and controlling with LED of single-chip microcomputers; Usually adopt the matrix form scan mode to accomplish; It is more that but this kind mode takies the IO mouth resource of single-chip microcomputer, and when needs scanned button in a large number with control LED, required single-chip microcomputer was also many more; So not only significantly improve manufacturing cost, also caused unnecessary waste.
The utility model content
The purpose of the utility model provides a kind of use amount that can reduce single-chip microcomputer, improves the utilization ratio of single-chip microcomputer IO mouth, can make the circuit structure simple key-press detect and the LED control circuit again.
In order to achieve the above object; The utility model provides a kind of button to detect and the LED control circuit; Comprise single-chip microcomputer, button and LED, comprise that also some groups of buttons detect and the LED control unit, said button detects and the LED control unit comprises a shift register that is used for data serial input and line output; The IO mouth of the data input pin of said shift register and single-chip microcomputer electrically connects, and the data output end of said shift register electrically connects with said button and LED respectively.
Said button detects with the LED control unit and also is provided with divider resistance R1 and R2, said divider resistance R1 respectively with the IO mouth and LED electric connection of single-chip microcomputer, said divider resistance R2 respectively with the IO mouth and the button electric connection of single-chip microcomputer.
Said button detects with the LED control unit and also is provided with some diodes that are used for unidirectional conducting, said diode respectively with the output electric connection of button and shift register.
Said shift register is that shift register 74HC164 is gone into and gone out to 8 bit strings.
The IO mouth of the IN_A of said shift register and IN_B pin and single-chip microcomputer electrically connects, and the data output end Q0-Q7 of said shift register electrically connects with 8 that are provided with unidirectional conducting diode D, LED respectively.
It is simple in structure that the utility model provides a kind of button to detect with the LED control circuit, and reliability is high, and hardware resource is significantly saved in stable performance, minimizing system configuration cost.
Description of drawings
Be described further below in conjunction with the embodiment of accompanying drawing the utility model:
Fig. 1 is the circuit structure block diagram of detection of the utility model button and LED control circuit
Fig. 2 is the circuit structure block diagram of the embodiment of the utility model
Fig. 3 is the circuit theory diagrams of the embodiment of the utility model
Embodiment
Extremely shown in Figure 3 like Fig. 1 is that the utility model button detects and the LED control circuit, and present embodiment adopts 8 bit strings to go into and go out shift register 74HC164, and pin is following:
1--serial input IN_A; 2--serial input IN_B; 3--exports Q0; 4--exports Q1; 5--exports Q2; 6--exports Q3; 10--exports Q4; 11--exports Q5; 12--exports Q6; 13--exports Q7; 7--GND; 8--clock CLK; 9--removes CLR; 14--VCC;
The utility model provides a kind of button to detect and the LED control circuit; Comprise single-chip microcomputer, button and LED; Comprise that also some groups of buttons detect and the LED control unit; Said button detects and the LED control unit comprises a shift register that is used for data serial input and line output, and the IO mouth of the IN_A of said shift register and IN_B pin and single-chip microcomputer electrically connects, and the data output end Q0-Q7 of shift register electrically connects with 8 that are provided with unidirectional conducting diode D, LED respectively.
Said button detects with the LED control unit and also is provided with divider resistance R1 and R2, said divider resistance R1 respectively with the IO mouth and LED electric connection of single-chip microcomputer, said divider resistance R2 respectively with the IO mouth and the button electric connection of single-chip microcomputer.
Said button detects with the LED control unit and also is provided with some diodes that are used for unidirectional conducting, said diode respectively with the output electric connection of button and shift register.
This button detects with the LED control circuit and is based on the new-type circuit that conventional keys and LED (light-emitting diode or common cloudy charactron) mixed sweep are improved; With logic chip 74HC164 is main element; Drive the LED and the button of maximum quantity; LED and button are one group with 8, and every group only need correspondingly increase LED_COM quantity and KEY_COM quantity (each indicates one group among Fig. 3, below describe with one group).Operation principle is following:
One, button detects scanning:
1) MCU is a low level through the output pin Q0-Q7 that SDA and CLK data wire set gradually shift register 74HC164, and all the other pin are high level;
Whether be low level, if low, show that then KEY1-KEY7 has key to press if 2) detecting LED_COM, MCU notes the detected state of each button;
3) scanned after again according to the height state of every group of button of MCU record, confirm that through program which key presses.
Two, LED shows control:
1) MCU confirms that at first which LED need light, and finds out the pin position Q0-Q7 that the LED that need light links to each other with shift register 74HC164;
2) 8 output pin Q0-Q7 that through SDA and CLK data wire shift register 74HC164 are set are corresponding level (pin that links to each other with LED that needs are lighted is set to high level, and what do not work is set to low level);
3) LED_COM being set is low level.
It is simple in structure that the utility model provides a kind of button to detect with the LED control circuit, and reliability is high, and hardware resource is significantly saved in stable performance, minimizing system configuration cost.
More than be that preferable enforcement to the utility model specifies; But the utility model is created and is not limited to said embodiment; Those of ordinary skill in the art also can make all equivalent variations or replacement under the prerequisite of the utility model spirit, distortion that these are equal to or replacement all are included in the application's claim institute restricted portion.

Claims (5)

1. a button detects and the LED control circuit; Comprise single-chip microcomputer, button and LED; It is characterized in that: comprise that also some groups of buttons detect and the LED control unit; Said button detects and the LED control unit comprises a shift register that is used for data serial input and line output, and the IO mouth of the data input pin of said shift register and single-chip microcomputer electrically connects, and the data output end of said shift register electrically connects with said button and LED respectively.
2. button according to claim 1 detects and the LED control circuit; It is characterized in that: said button detects and the LED control unit also is provided with divider resistance R1 and R2; Said divider resistance R1 electrically connects with the IO mouth of single-chip microcomputer and LED respectively, said divider resistance R2 respectively with the IO mouth and button electric connection of single-chip microcomputer.
3. button according to claim 1 detects and the LED control circuit; It is characterized in that: said button detects with the LED control unit and also is provided with some diodes that are used for unidirectional conducting, said diode respectively with the output electric connection of button and shift register.
4. button according to claim 1 detects and the LED control circuit, and it is characterized in that: said shift register is that shift register 74HC164 is gone into and gone out to 8 bit strings.
5. button according to claim 4 detects and the LED control circuit; It is characterized in that: the IO mouth of the IN_A of said shift register and IN_B pin and single-chip microcomputer electrically connects, and the data output end Q0-Q7 of said shift register electrically connects with 8 that are provided with unidirectional conducting diode D, LED respectively.
CN2011204732706U 2011-11-24 2011-11-24 Button detection and LED control circuit Expired - Fee Related CN202364197U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011204732706U CN202364197U (en) 2011-11-24 2011-11-24 Button detection and LED control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011204732706U CN202364197U (en) 2011-11-24 2011-11-24 Button detection and LED control circuit

Publications (1)

Publication Number Publication Date
CN202364197U true CN202364197U (en) 2012-08-01

Family

ID=46575350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011204732706U Expired - Fee Related CN202364197U (en) 2011-11-24 2011-11-24 Button detection and LED control circuit

Country Status (1)

Country Link
CN (1) CN202364197U (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135054A (en) * 2013-01-31 2013-06-05 建荣集成电路科技(珠海)有限公司 Press key detection circuit integrating light-emitting diode (LED) driving and infrared remote control receiving function and integration achieving method
CN109379808A (en) * 2018-11-01 2019-02-22 广州源创网络科技有限公司 The circuit and its driving method of a kind of LED light, the LED light that can infinitely connect
CN109528210A (en) * 2018-11-15 2019-03-29 赤峰学院 LED electronic hand speed measuring instrument
CN109901062A (en) * 2019-02-22 2019-06-18 山东欧德利电气设备有限公司 A kind of circuit for realizing key detection by MCU controller
CN110147055A (en) * 2019-05-10 2019-08-20 厦门拓宝科技有限公司 A kind of automatic expansion structure of key and its method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135054A (en) * 2013-01-31 2013-06-05 建荣集成电路科技(珠海)有限公司 Press key detection circuit integrating light-emitting diode (LED) driving and infrared remote control receiving function and integration achieving method
CN109379808A (en) * 2018-11-01 2019-02-22 广州源创网络科技有限公司 The circuit and its driving method of a kind of LED light, the LED light that can infinitely connect
CN109379808B (en) * 2018-11-01 2021-10-08 广州源创网络科技有限公司 LED lamp, circuit capable of being infinitely connected in series with LED lamp and driving method of circuit
CN109528210A (en) * 2018-11-15 2019-03-29 赤峰学院 LED electronic hand speed measuring instrument
CN109901062A (en) * 2019-02-22 2019-06-18 山东欧德利电气设备有限公司 A kind of circuit for realizing key detection by MCU controller
CN110147055A (en) * 2019-05-10 2019-08-20 厦门拓宝科技有限公司 A kind of automatic expansion structure of key and its method

Similar Documents

Publication Publication Date Title
CN202364197U (en) Button detection and LED control circuit
CN201039440Y (en) A cable control earphone for multi-key and single detection end
CN202956653U (en) Smart home remote control system
CN201812029U (en) Key detection and display driving integrated circuit
CN202661818U (en) Novel button detection circuit
CN201662609U (en) Key detection circuit
CN203554420U (en) Matrix circuit
CN201113981Y (en) Press key detection circuit
CN202841104U (en) Button detection circuit
CN104202055B (en) Key circuit for detecting key trigger sate in real time, gamepad and method
CN201051243Y (en) Key control circuit
CN202931275U (en) Button circuit and electronic apparatus
CN202261244U (en) Combined key scanning panel and home appliance
CN102857232B (en) A kind of key press detecting circuit and detection method
CN201345086Y (en) Low-cost keying signal collection circuit
CN206863547U (en) A kind of button scan round circuit
CN206400348U (en) A kind of construction machinery controller
CN102565694B (en) Non-AD-port key detection circuit and detection method thereof
CN204104023U (en) Based on the quick supervisory keyboard of DVR
CN201994926U (en) Computer finger-print switch
CN200997592Y (en) Touch-controlled switch with multi-bearing control
CN203632650U (en) Matrix key scanning circuit
CN204794958U (en) Data transmission detects multiplexing circuit with button
CN206099829U (en) Stepper motor controller of low energy consumption
CN201708788U (en) Carbon film press key AD detection signal input circuit

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120801

Termination date: 20201124

CF01 Termination of patent right due to non-payment of annual fee