CN101943742A - Key detection and display driving integrated circuit and control method thereof - Google Patents

Key detection and display driving integrated circuit and control method thereof Download PDF

Info

Publication number
CN101943742A
CN101943742A CN 201010236772 CN201010236772A CN101943742A CN 101943742 A CN101943742 A CN 101943742A CN 201010236772 CN201010236772 CN 201010236772 CN 201010236772 A CN201010236772 A CN 201010236772A CN 101943742 A CN101943742 A CN 101943742A
Authority
CN
China
Prior art keywords
gpio
button
display
integrated circuit
detects
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.)
Granted
Application number
CN 201010236772
Other languages
Chinese (zh)
Other versions
CN101943742B (en
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.)
Midea Group
Original Assignee
Midea Group
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 Midea Group filed Critical Midea Group
Priority to CN 201010236772 priority Critical patent/CN101943742B/en
Publication of CN101943742A publication Critical patent/CN101943742A/en
Application granted granted Critical
Publication of CN101943742B publication Critical patent/CN101943742B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention relates to a key detection and display drive integrated circuit and a control method thereof, which comprises a central processing unit (MCU), a key detection circuit, a display drive circuit and a general purpose input/output (GPIO) line, wherein the key detection circuit and the display drive circuit are connected with the MCU through the GPIO line. The invention solves the problems of identification and display drive of increasing the number of key detection under the condition of less GPIO, does not need to expand any other device, can improve the use efficiency of the GPIO on the premise of not influencing the product performance, effectively reduces the product cost, and is suitable for various electrical equipment needing key detection and display circuits.

Description

A kind of button detection and display driving integrated circuit and control method thereof
Technical field
The present invention relates to a kind of button and detect and display driving integrated circuit, be applicable to that the button of various electric equipments detects and display driver.The present invention also comprises the control method of this integrated circuit.
Background technology
Existing control system more after a little while, can only be supported less button and LED luminotron usually at general input/output port line (being called for short GPIO), and the GPIO utilization factor is lower.The central processor MCU that for example is connected to 3 GPIO can only detect 2-3 button usually, drives 2-3 LED luminotron, and as shown in Figure 1,3 GPIO are independent separately, and 1 GPIO connects 1 key press detecting circuit and 1 display driver circuit.When Circuits System is comparatively complicated, when needing more button of expansion and luminotron, then need the more GPIO of respective extension, cost is higher.
Summary of the invention
The objective of the invention is to consider the problems referred to above and provide the less relatively button of a kind of GPIO to detect and display driving integrated circuit that another object of the present invention is to provide the control method of this integrated circuit.
To achieve these goals, the present invention includes following technical characterictic: a kind of button detects and display driving integrated circuit, comprise central processor MCU, key press detecting circuit, display driver circuit and general input/output port line GPIO, key press detecting circuit is connected MCU with display driver circuit by GPIO, it is characterized in that the multiplexing one or more GPIO of described key press detecting circuit and display driver circuit, the GPIO that connects key press detecting circuit is simultaneously as the AD conversion port.
Further, described key press detecting circuit comprises plurality of keys detection module and two or more resistance, and an end was connected with power supply after resistance was in series, and the other end connects MCU by GPIO; Per two adjacent resistor contacts connect button detection module one end, button detection module other end ground connection.
Described button detection module comprises the button and the stake resistance of series connection.
Further, described display driver circuit comprises display driver unit Q1, the Q2 of some display units and the complementation of two control polarity, the anodal display unit that links to each other with GPIO, and its negative pole links to each other with the Q1 collector, the display unit that negative pole links to each other with GPIO, its positive pole links to each other with the Q2 collector; Per two opposite polarity display units of connection connect same GPIO, and the control port of Q1, Q2 is connected same GPIO with key press detecting circuit.
Described Q1 is a NPN type triode; Described Q2 is the positive-negative-positive triode.
Or described display driver unit is a switching device.
Described display unit is the luminotron device.
The present invention comprises that also a kind of button detects and the control method of display driving integrated circuit, and the steering logic with GPIO realizes by the following method:
A. central processor MCU connects the GPIO port that button detects and is set to input state, port voltage is converted to AD value, thereby judges current key-press status, enters step b after the button judgement is finished.
B. central processor MCU connects the GPIO port that button detects and is set to output state, and high and low level is exported in timesharing, as the display driver unit control signal; Display port is exported corresponding high and low level according to the actual displayed content, thus control display unit state.
The invention solves a kind of identification problem and display driver problem that under the less situation of GPIO, increases the button amount detection, do not need to expand any other device, can under the prerequisite that does not influence properties of product, improve the service efficiency of GPIO, effectively reduce cost of products.Button favorable expandability of the present invention can detect infinite many buttons in theory.Because on system control logic, it is the mode of employing time-sharing multiplex that button detects with display driver, display tube brightness stability, button good reliability, being specially adapted to all kinds of low costs, human-computer interaction interface simply needs in the electric equipment of button detection and display circuit.
Description of drawings
Fig. 1 is the block diagram of existing button detection and display driver circuit.
Fig. 2 is the circuit block diagram of button detection of the present invention and display driver.
Fig. 3 is the circuit theory diagrams of the embodiment of the invention.
Fig. 4 detects and the display driver circuit schematic diagram for existing button.
Omitted the miscellaneous part related among the figure with coreless of the present invention.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described further.
As Fig. 2, shown in Figure 3, a kind of button detects and display driving integrated circuit, comprises central processor MCU, key press detecting circuit 1, display driver circuit 2 and 3 general input/output port line GPIO.
Key press detecting circuit 1 comprises 9 resistance and 4 buttons, wherein, first resistance R 1, second resistance R 2, the 3rd resistance R 3, the 4th resistance R 4,5 series connection of the 5th resistance R, first resistance R, 1 other end detects GPIO with button and is connected, and the 5th resistance R 5 other ends are connected with power supply VCC.The first button KEY1, one end connects the connection contact of first resistance R 1, second resistance R 2, and the other end is by the 6th resistance R 6 ground connection; The second button KEY2, one end connects the connection contact of second resistance R 2, the 3rd resistance R 3, and the other end is by the 7th resistance R 7 ground connection; The 3rd button KEY3 one end connects the connection contact of the 3rd resistance R 3, the 4th resistance R 4, and the other end is by the 8th resistance R 8 ground connection; The 4th button KEY4 one end connects the connection contact of the 4th resistance R 4, the 5th resistance R 5, and the other end is by the 9th resistance R 9 ground connection.
Display driver circuit 2 comprises the first triode Q1, the second triode Q2 of LED LED 1, LED2, LED3, LED4 and the complementation of control polarity, wherein LED1, LED2 positive pole are connected with GPIO2, GPIO3 respectively, and negative pole is connected with the first triode Q1 collector; LED3, LED4 negative pole are connected with GPIO2, GPIO3 respectively, and positive pole is connected with the second triode Q2 collector, and the control port of the first triode Q1, the second triode Q2 is connected with the GPIO1 that is connected key press detecting circuit.
Button detects and the control method of display driver circuit is: at first the GPIO1 of system is set to input state, converts the GPIO1 port voltage to the AD value, and by processing such as delaying time, go to tremble, detects current key-press status; Then, system GPIO1 is set to output state, the output high level, and GPIO2, GPIO3 export high or low level respectively according to actual conditions, are used to light or do not light LED1, LED2; At last, system keeps the GPIO1 output state constant, and output low level, and GPIO2, GPIO3 export low or high level respectively according to actual conditions, is used to light or does not light LED3, LED4; Like this through 3 time-sharing multiplexs, finished once to the detection of all buttons with to the driving of all LED light emitting diodes.
As shown in Figure 4, existing button detects and the display driver circuit technology, as need 4 buttons and 4 LED light emitting diodes is set, then need 5 GPIO, then only need 3 in the present embodiment, and can expand the infinite button that detects more in theory simultaneously, improved the utilization factor of GPIO greatly.

Claims (8)

1. a button detects and display driving integrated circuit, comprise central processor MCU, key press detecting circuit (1), display driver circuit (2) and general input/output port line GPIO, key press detecting circuit is connected MCU with display driver circuit by GPIO, it is characterized in that the multiplexing one or more GPIO of described key press detecting circuit and display driver circuit, the GPIO that connects key press detecting circuit is simultaneously as the AD conversion port.
2. button according to claim 1 detects and display driving integrated circuit, it is characterized in that described key press detecting circuit (1) comprises plurality of keys detection module (11) and two or more resistance, an end was connected with power supply after resistance was in series, and the other end connects MCU by GPIO; Per two adjacent resistor contacts connect button detection module (11) one ends, button detection module (11) other end ground connection.
3. button according to claim 2 detects and display driving integrated circuit, it is characterized in that described button detection module (11) comprises the button and the stake resistance of series connection.
4. button according to claim 1 detects and display driving integrated circuit, it is characterized in that described display driver circuit (2) comprises display driver unit Q1, the Q2 of some display units and the complementation of two control polarity, the anodal display unit that links to each other with GPIO, its negative pole links to each other with the Q1 collector, the display unit that negative pole links to each other with GPIO, its positive pole links to each other with the Q2 collector; Per two opposite polarity display units of connection connect same GPIO, and the control port of Q1, Q2 is connected same GPIO with key press detecting circuit.
5. button according to claim 4 detects and display driving integrated circuit, it is characterized in that described Q1 is a NPN type triode; Described Q2 is the positive-negative-positive triode.
6. button according to claim 4 detects and display driving integrated circuit, it is characterized in that described display driver unit is a switching device.
7. detect and display driving integrated circuit according to each described button of claim 4-6, it is characterized in that described display unit is the luminotron device.
8. a button detects and the control method of display driving integrated circuit, it is characterized in that, detect and display driving integrated circuit based on the described a kind of button of claim 1, by the following method with the steering logic realization of GPIO:
A. central processor MCU connects the GPIO port that button detects and is set to input state, port voltage is converted to AD value, thereby judges current key-press status, enters step b after the button judgement is finished.
B. central processor MCU connects the GPIO port that button detects and is set to output state, and high and low level is exported in timesharing, as the display driver unit control signal; Display port is exported corresponding high and low level according to the actual displayed content, thus control display unit state.
CN 201010236772 2010-07-23 2010-07-23 Keypad test and display driver integrated circuit and control method thereof Expired - Fee Related CN101943742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010236772 CN101943742B (en) 2010-07-23 2010-07-23 Keypad test and display driver integrated circuit and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010236772 CN101943742B (en) 2010-07-23 2010-07-23 Keypad test and display driver integrated circuit and control method thereof

Publications (2)

Publication Number Publication Date
CN101943742A true CN101943742A (en) 2011-01-12
CN101943742B CN101943742B (en) 2013-04-17

Family

ID=43435832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010236772 Expired - Fee Related CN101943742B (en) 2010-07-23 2010-07-23 Keypad test and display driver integrated circuit and control method thereof

Country Status (1)

Country Link
CN (1) CN101943742B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984260A (en) * 2014-04-14 2014-08-13 美的集团股份有限公司 Functional circuit and driving program interacted system and method thereof
CN104930812A (en) * 2015-06-03 2015-09-23 合肥美的电冰箱有限公司 Electric control board integrated with power supply, display, control and illumination and refrigerator
CN105227187A (en) * 2015-09-15 2016-01-06 宁波卓奥电子科技有限公司 Electrical equipment LED drives and button reading circuit and control method
CN109471012A (en) * 2018-10-23 2019-03-15 浙江慧控科技有限公司 Circuit for checking input signals and method in universal input circuit
CN109920355A (en) * 2017-12-13 2019-06-21 佛山市顺德区美的电热电器制造有限公司 Detection method and detection system for display board
CN113433406A (en) * 2021-06-18 2021-09-24 上海润欣科技股份有限公司 Key detection circuit and terminal equipment
CN114325376A (en) * 2021-12-31 2022-04-12 北京德为智慧科技有限公司 Detection device and method for knob key and computer readable storage medium
CN113433406B (en) * 2021-06-18 2024-06-04 上海润欣科技股份有限公司 Key detection circuit and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030197677A1 (en) * 2002-04-17 2003-10-23 Hulvey Robert W. Keyboard/mouse/GPIO interface of a wireless interface device
US20080244147A1 (en) * 2007-03-29 2008-10-02 Inventec Corporation Device Recognition Circuit and the Method of Recognition
CN101394185A (en) * 2008-10-30 2009-03-25 四川长虹电器股份有限公司 Press-key detection circuit and method thereof
CN101738951A (en) * 2008-11-24 2010-06-16 苏州市职业大学 Key input and display output dual-purpose circuit of singlechip
CN201812029U (en) * 2010-07-23 2011-04-27 美的集团有限公司 Key detection and display driving integrated circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030197677A1 (en) * 2002-04-17 2003-10-23 Hulvey Robert W. Keyboard/mouse/GPIO interface of a wireless interface device
US20080244147A1 (en) * 2007-03-29 2008-10-02 Inventec Corporation Device Recognition Circuit and the Method of Recognition
CN101394185A (en) * 2008-10-30 2009-03-25 四川长虹电器股份有限公司 Press-key detection circuit and method thereof
CN101738951A (en) * 2008-11-24 2010-06-16 苏州市职业大学 Key input and display output dual-purpose circuit of singlechip
CN201812029U (en) * 2010-07-23 2011-04-27 美的集团有限公司 Key detection and display driving integrated circuit

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984260A (en) * 2014-04-14 2014-08-13 美的集团股份有限公司 Functional circuit and driving program interacted system and method thereof
CN104930812A (en) * 2015-06-03 2015-09-23 合肥美的电冰箱有限公司 Electric control board integrated with power supply, display, control and illumination and refrigerator
CN105227187A (en) * 2015-09-15 2016-01-06 宁波卓奥电子科技有限公司 Electrical equipment LED drives and button reading circuit and control method
CN105227187B (en) * 2015-09-15 2018-03-16 浙江卓奥科技股份有限公司 Electrical equipment LED drives and button reading circuit and control method
CN109920355A (en) * 2017-12-13 2019-06-21 佛山市顺德区美的电热电器制造有限公司 Detection method and detection system for display board
CN109920355B (en) * 2017-12-13 2022-11-04 佛山市顺德区美的电热电器制造有限公司 Detection method and detection system for display panel
CN109471012A (en) * 2018-10-23 2019-03-15 浙江慧控科技有限公司 Circuit for checking input signals and method in universal input circuit
CN113433406A (en) * 2021-06-18 2021-09-24 上海润欣科技股份有限公司 Key detection circuit and terminal equipment
CN113433406B (en) * 2021-06-18 2024-06-04 上海润欣科技股份有限公司 Key detection circuit and terminal equipment
CN114325376A (en) * 2021-12-31 2022-04-12 北京德为智慧科技有限公司 Detection device and method for knob key and computer readable storage medium

Also Published As

Publication number Publication date
CN101943742B (en) 2013-04-17

Similar Documents

Publication Publication Date Title
CN101943742B (en) Keypad test and display driver integrated circuit and control method thereof
CN201812029U (en) Key detection and display driving integrated circuit
CN103313459A (en) Control device for indicating lamp
CN102063868B (en) Electronic device with backlight control and control method thereof
KR20020041463A (en) I2c opto-isolator circuit
CN101394185A (en) Press-key detection circuit and method thereof
CN202394744U (en) Circuit and terminal capable of indicating key states through LED (light-emitting diode) lamps
CN204506783U (en) Vehicle-mounted condition indication circuit and vehicle intelligent terminal
CN202522881U (en) Dual-purpose circuit of button and demonstration
CN103354453A (en) Circuit and method having port multiplexing of indication lamp and button
CN102118904B (en) LED illuminating system and control method thereof
CN106683604A (en) LED display and key detection multiplexing circuit
CN105657947B (en) Circuit fault detecting apparatus, LED luminaire and light and/or sender unit
CN101140312B (en) Plasma display board electric pole short circuit, broken circuit detecting method and device thereof
CN201583940U (en) Device for indicating running state of network and network terminal
CN201716399U (en) Relay running-in aging and detection system
CN206863542U (en) Key press detecting circuit
CN103376406A (en) Key detection circuit
CN102890650A (en) Operation state indication circuit for electronic equipment
CN204390954U (en) Vehicle-mounted button indicating circuit and vehicle intelligent terminal
CN202841104U (en) Button detection circuit
CN203883814U (en) Key detection circuit and electronic device
CN202931275U (en) Button circuit and electronic apparatus
CN201616872U (en) Interface multiplexing circuit and television
CN102857232B (en) A kind of key press detecting circuit and detection method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 528311 Guangdong, Foshan, Beijiao, the United States, the United States and the United States on the avenue of the United States, the headquarters of the United States building B floor, District, 26-28

Applicant after: MIDEA GROUP Co.,Ltd.

Address before: 528311, Shunde Foshan District, Guangdong province Beijiao Penglai road beauty industrial city

Applicant before: Midea Group

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: MEIDI GROUP CO. LTD. TO: MIDEA GROUP CO., LTD.

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

Granted publication date: 20130417

Termination date: 20210723