[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN101943742B - Keypad test and display driver integrated circuit and control method thereof - Google Patents

Keypad test and display driver integrated circuit and control method thereof Download PDF

Info

Publication number
CN101943742B
CN101943742B CN 201010236772 CN201010236772A CN101943742B CN 101943742 B CN101943742 B CN 101943742B CN 201010236772 CN201010236772 CN 201010236772 CN 201010236772 A CN201010236772 A CN 201010236772A CN 101943742 B CN101943742 B CN 101943742B
Authority
CN
China
Prior art keywords
gpio
display
button
circuit
display driver
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
CN 201010236772
Other languages
Chinese (zh)
Other versions
CN101943742A (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 Co Ltd
Original Assignee
Midea Group 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 Midea Group Co Ltd filed Critical Midea Group Co Ltd
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

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

Abstract

The invention relates to a keypad test and display driver integrated circuit and a control method thereof. The integrated circuit comprises a macro control unit (MCU), a keypad test circuit, a display driving circuit and general purpose input/output (GPIO) lines, wherein the keypad test circuit and the display driver circuit are connected with the MCU through the GPIO. The integrated circuit is characterized in that the keypad test circuit and the display driver circuit multiplex one or a plurality of the GPIO; and the GPIO connected with the keypad test circuit serves as an AD conversion port simultaneously. The invention solves the recognition problem of increased keypad tests and the display driver problem under the condition of less GPIO, is in no need of expanding any other device, can improve the GPIO service efficiency and effectively reduce the product cost on the premise of not influencing the product performance, and is applicable to various electrical equipment requiring the keypad test and display circuit.

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, the button that is applicable to various electric equipments detects and display driver.The present invention also comprises the control method of this integrated circuit.
Background technology
Existing control system can only be supported less button and LED luminotron usually when general input/output port line (being called for short GPIO) is less, the GPIO utilization factor is lower.The microcontroller 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 the more button of expansion and luminotron, then need the more GPIO of respective extension, cost is higher.
Summary of the invention
The object of the invention is to consider the problems referred to above and provide the relatively less 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 microcontroller, key press detecting circuit, display driver circuit and universal input and output port 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, connect the GPIO of key press detecting circuit simultaneously as the AD conversion port.
Further, described key press detecting circuit comprises some button detection modules and two above resistance, and an end was connected with power supply after resistance was in series, and the other end connects microcontroller 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 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 NPN type triode; Described Q2 is the positive-negative-positive triode.
Or described display driver unit is 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, realizes by the following method control:
A. the microcontroller GPIO port that connects key press detecting circuit is set to input state, the GPIO port voltage is converted to the AD value, thereby judges current key-press status, and button is judged and entered step b after finishing.
B. the microcontroller GPIO port that connects key press detecting circuit is set to output state, and high and low level is exported in timesharing, as the control signal of display driver unit; Display port is exported corresponding high and low level according to the actual displayed content, thus the control display location mode.
The invention solves a kind of identification problem and display driver problem that in 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 affect 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 that adopts 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 with coreless of the present invention among the figure.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described further.
Such as Fig. 2, shown in Figure 3, a kind of button detects and display driving integrated circuit, comprises microcontroller, key press detecting circuit 1, display driver circuit 2 and 3 universal input and output port GPIO.
Key press detecting circuit 1 comprises 9 resistance and 4 buttons, wherein, the first resistance R 1, the second resistance R 2, the 3rd resistance R 3, the 4th resistance R 4,5 series connection of the 5th resistance R, the 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 the first resistance R 1, the 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 the 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 time-delay, debounces, detects current key-press status; Then, system GPIO1 is set to output state, the output high level, and GPIO2, GPIO3 export respectively high or low level according to actual conditions, are used for lighting or not lighting LED1, LED2; At last, system keeps the GPIO1 output state constant, and output low level, and GPIO2, GPIO3 export respectively low or high level according to actual conditions, are used for lighting or not lighting 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, such 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 simultaneously in theory the infinite button that detects more, greatly improved the utilization factor of GPIO.

Claims (6)

1. a button detects and display driving integrated circuit, comprise microcontroller, key press detecting circuit (1), display driver circuit (2) and universal input and output port GPIO, key press detecting circuit is connected microcontroller 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, connect the GPIO of key press detecting circuit simultaneously as the AD conversion port.
Described key press detecting circuit (1) comprises some button detection modules (11) and two above resistance, and an end was connected with power supply after resistance was in series, and the other end connects microcontroller by GPIO; Per two adjacent resistor contacts connect button detection module (11) one ends, button detection module (11) other end ground connection.
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, and 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.
2. button according to claim 1 detects and display driving integrated circuit, it is characterized in that described button detection module (11) comprises button and the stake resistance of series connection.
3. button according to claim 1 detects and display driving integrated circuit, it is characterized in that described Q1 is NPN type triode; Described Q2 is the positive-negative-positive triode.
4. button according to claim 1 detects and display driving integrated circuit, it is characterized in that described display driver unit Q1, Q2 are switching device.
5. each described button detects and display driving integrated circuit according to claim 1-4, it is characterized in that described display unit is the luminotron device.
6. a button detects and the control method of display driving integrated circuit, it is characterized in that, detects and display driving integrated circuit based on a kind of button claimed in claim 1, realizes by the following method controlling:
A. the microcontroller GPIO port that connects key press detecting circuit is set to input state, the GPIO port voltage is converted to the AD value, thereby judges current key-press status, and button is judged and entered step b after finishing.
B. the microcontroller GPIO port that connects key press detecting circuit is set to output state, and high and low level is exported in timesharing, as the control signal of display driver unit; Display port is exported corresponding high and low level according to the actual displayed content, thus the control display location mode.
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 CN101943742A (en) 2011-01-12
CN101943742B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984260B (en) * 2014-04-14 2017-06-16 美的集团股份有限公司 The interconnected system and method for functional circuit and its driver
CN104930812A (en) * 2015-06-03 2015-09-23 合肥美的电冰箱有限公司 Electric control board integrated with power supply, display, control and illumination and refrigerator
CN105227187B (en) * 2015-09-15 2018-03-16 浙江卓奥科技股份有限公司 Electrical equipment LED drives and button reading circuit and control method
CN109920355B (en) * 2017-12-13 2022-11-04 佛山市顺德区美的电热电器制造有限公司 Detection method and detection system for display panel
CN109471012B (en) * 2018-10-23 2021-10-08 浙江慧控科技有限公司 Input signal detection circuit and method in universal input circuit
CN111465147A (en) * 2020-05-12 2020-07-28 无锡中微爱芯电子有限公司 L ED control drive circuit with multiplexed ports
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* 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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN101943742A (en) 2011-01-12

Similar Documents

Publication Publication Date Title
CN101943742B (en) Keypad test and display driver integrated circuit and control method thereof
CN102175943B (en) Load overcurrent protector state detection device and method
CN205080242U (en) Power strip function test system
CN201812029U (en) Key detection and display driving integrated circuit
CN203950000U (en) Simple and easy direct-connected twisted-pair feeder and coaxial cable tester
CN104267781B (en) The reusable mobile terminal of docking station and its method of docking station multiplexing
CN103313459A (en) Control device for indicating lamp
CN102063868B (en) Electronic device with backlight control and control method thereof
CN202394744U (en) Circuit and terminal capable of indicating key states through LED (light-emitting diode) lamps
CN203299316U (en) Line sequence detector
CN102118904B (en) LED illuminating system and control method thereof
CN105657947B (en) Circuit fault detecting apparatus, LED luminaire and light and/or sender unit
CN201583940U (en) Device for indicating running state of network and network terminal
CN103376748A (en) Electronic device
CN202435015U (en) Power supply system
CN216595395U (en) Open circuit detection circuit of LED parallel circuit and electronic equipment
CN203909271U (en) Voltage drop tool
CN205987459U (en) A start control circuit for LED lamp
CN204390954U (en) Vehicle-mounted button indicating circuit and vehicle intelligent terminal
CN202931275U (en) Button circuit and electronic apparatus
CN209513999U (en) A kind of test device of nonpolarity stem grafting dot circuit
CN202841104U (en) Button detection circuit
CN203399090U (en) Indicating lamp/key port-multiplexing circuit
CN102857232A (en) Key detection circuit and key detection method
CN203883814U (en) Key detection circuit and electronic device

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

Granted publication date: 20130417

Termination date: 20210723

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