CN203399091U - Indicating lamp/key port-multiplexing circuit - Google Patents

Indicating lamp/key port-multiplexing circuit Download PDF

Info

Publication number
CN203399091U
CN203399091U CN201320378653.4U CN201320378653U CN203399091U CN 203399091 U CN203399091 U CN 203399091U CN 201320378653 U CN201320378653 U CN 201320378653U CN 203399091 U CN203399091 U CN 203399091U
Authority
CN
China
Prior art keywords
button
indicator light
port
interface
key
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.)
Withdrawn - After Issue
Application number
CN201320378653.4U
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.)
Hangzhou Silan Microelectronics Co Ltd
Original Assignee
Hangzhou Silan Microelectronics 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 Hangzhou Silan Microelectronics Co Ltd filed Critical Hangzhou Silan Microelectronics Co Ltd
Priority to CN201320378653.4U priority Critical patent/CN203399091U/en
Application granted granted Critical
Publication of CN203399091U publication Critical patent/CN203399091U/en
Anticipated expiration legal-status Critical
Withdrawn - After Issue legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The utility model relates to an indicating lamp/key port-multiplexing circuit. The indicating lamp/key port-multiplexing circuit includes an I/O interface unit, an indicating lamp display unit, a key switch unit and a resistor unit; the indicating lamp display unit is an indicating lamp matrix array; each indicating lamp is connected between a common port and any one of scanning ports; the key switch unit is a step-shaped key array; each key is connected between any two I/O interfaces; the resistor unit is connected in series between the indicating lamp display unit and the key switch unit; and the resistor unit is resistors connected between each I/O interface and each key. According to the indicating lamp/key port-multiplexing circuit of the utility model, the scanning ports and the common ports can multiplex key control; the scanning ports and the common ports are connected with the step-shaped key array, such that maximum keys can be extended in the circuit; key scan control is additionally realized between the I/O interfaces, and the utilization rate of I/O interface multiplexing control can be improved, and therefore, key extension can be realized with low cost.

Description

The circuit with indicator light and button multiplexed port
Technical field
The utility model relates to indicator light and button multiplexing control technology field, relates in particular to a kind of circuit with indicator light and button multiplexed port.
Background technology
In the prior art, together with button can be used limited I/O interface duplex with indicator light, by timesharing, control indicator light and button, reach the non-interfering object that works alone, the multiplex mode of above-mentioned port is generally applied on the control panel of various small household appliances.But, the I/O interface limited amount of control chip, and the quantity of indicator light and button is along with the requirement of product function is in continuous growth, these have all caused the in short supply of chip I/O interface resource.If also need to expand button or indicator light on above-mentioned basis, can only realize by the quantity of expensive increase chip I/O interface.
More ripe a kind of electric fan control system in prior art for example, it has comprised various common control functions, simultaneously also integrated key-press input and indicator light output are controlled etc., are generally to adopt the mode of I/O interface duplex rationally to utilize the I/O Interface realization function of chip to control.Suppose that it has 12 indicator light demand motives, also have 6 buttons simultaneously, with reference to Fig. 1, generally adopt in the prior art 9 I/O interfaces to realize above-mentioned indicator light and button multiplexing function, in these 9 I/O interfaces, generally need 3 I/O interfaces as public port COM, 4 I/O interfaces, as scanning port SEG, also need 2 I/O interfaces as independent button detection port KEYIO.Simultaneously between each public port COM and arbitrary scan port SEG, be connected indicator light, and at 4 scanning port SEG, be connected button with on 2 button detection port KEYIO respectively, the other end of button is connected to fixed level V by resistance, and in Fig. 1, fixed level is ground.Wherein, resistance is poor in order to maintain indicator light both end voltage, makes between corresponding public port and scanning port, to have effective pressure reduction in button process, guarantees that indicator light can normally show in button process.With reference to Fig. 2, this circuit first drives control to all indicator lights in the course of the work, then carries out key scan, and the control port of realizing a plurality of indicator lights and a plurality of buttons with this is multiplexing.But technique scheme, as need be again expanded number of keys, often needs to increase extra button port KEYIO, the easy like this increase that causes cost, the while also can increase the complexity of circuit and PCB fabric swatch.
Summary of the invention
Technical problem to be solved in the utility model is to have the difficult low-cost expansion of number of keys, the not high the problems referred to above of I/O interface duplex control effect for existing indicator light and button multiplexing circuit, provides a kind of I/O interface duplex to control the high circuit with indicator light and button multiplexed port with realizing the low-cost expansion of number of keys of utilance.
For addressing the above problem, the technical solution of the utility model is:
A kind of circuit with indicator light and button multiplexed port, comprise I/O interface unit, indicator light display unit, key switch unit and for keeping the poor resistance unit of indicator light both end voltage, I/O interface unit is provided with a plurality of for driving the I/O interface of indicator light, I/O interface is divided into scanning port and public port, indicator light display unit is provided with a plurality of indicator lights, key switch unit is provided with a plurality of buttons, indicator light is connected between scanning port and public port, it is characterized in that, described indicator light display unit is indicator light matrix array, indicator light is connected between public port and any one scanning port, described key switch unit is stepped push-button array, button is connected between any two I/O interfaces, described resistance unit is connected between indicator light display unit and key switch unit, resistance unit is the resistance being connected between each I/O interface and button.
Be compared to prior art, the circuit with indicator light and button multiplexed port of the utility model, the equal reusable of its scanning port and public port is by key control, and be connected with stepped push-button array with public port by scanning port, circuit can be expanded maximum by bond number, realize a plurality of functions and control; And between all I/O interfaces, increased key scan control, effectively utilized public port resource, reasonably optimizing the I/O interface arrangement of I/O interface unit, improved the utilance that I/O interface duplex is controlled, with lower cost, realized the expansion of button.
Preferably, in described resistance unit, the resistance of one of them resistance is zero.When guaranteeing that any button is pressed, the port between two buttons all has at least a resistance to isolate, and it is zero that one of them resistance is set, and has so also saved a resistance, has further optimized circuit.Be equipped with in resistance unit reasonably resistance value, poor in order to maintain the indicator light both end voltage being connected with this resistance, make between corresponding public port and scanning port, to have effective pressure reduction in button process, guarantee that indicator light can normally show in button process.
Preferably, described key switch unit also comprises single push-button array, and button one end is connected with I/O interface, and the button other end is connected with fixed level, and single push-button array is connected with stepped push-button array in turn.In the time of single push-button array and stepped push-button array, use, can control button in scanning port and public port concurrent multiplexing, farthest expanded the number of keys of multiplex circuit, the low cost being conducive in control of product function is expanded.
Preferably, described scanning port is 3, and public port is 4, between any two I/O interfaces, is all connected with button.
Preferably, described scanning port is 3, and public port is 4, and key switch unit also comprises the button being connected between each I/O interface and fixed level.
Accompanying drawing explanation
Fig. 1 is the circuit theory diagrams of indicator light and button multiplexing circuit in prior art.
Fig. 2 is the workflow diagram of indicator light and button multiplexing circuit in prior art.
Fig. 3 is the circuit theory diagrams that the utlity model has the circuit embodiments 1 of indicator light and button multiplexed port.
Fig. 4 is the workflow diagram of circuit in embodiment 1 that the utlity model has indicator light and button multiplexed port.
Fig. 5 is the circuit theory diagrams that the utlity model has 7 I/O Interface realization modes in the circuit embodiments 1 of indicator light and button multiplexed port.
Fig. 6 is the circuit theory diagrams that the utlity model has 7 I/O Interface realization modes in the circuit embodiments 2 of indicator light and button multiplexed port.
Embodiment
Below in conjunction with drawings and Examples, further describe the utility model, but protection range of the present utility model is not limited to this.
Embodiment 1:
With reference to Fig. 3, the circuit with indicator light and button multiplexed port of the present embodiment comprises I/O interface unit 001, indicator light display unit 002, key switch unit and for keeping the poor resistance unit of indicator light both end voltage 003, I/O interface unit 001, indicator light display unit 002 are connected in turn with key switch unit, and resistance unit is connected between indicator light display unit 002 and key switch unit or is connected between fixed level V and key switch unit.Wherein, it is individual for driving the I/O interface of indicator light that I/O interface unit 001 is provided with (N+M), I/O interface is subdivided into again N scanning port and M public port, and N scanning port is expressed as SEG1-SEGN in the drawings, and M public port is respectively COM1-COMM.Indicator light display unit 002 is provided with a plurality of indicator lights, forms indicator light matrix array, and concrete connected mode, for to be all connected with indicator light between each public port and any one scanning port, can realize the control of M*N indicator light.
Key switch unit is provided with a plurality of buttons, comprises stepped push-button array 004, or comprises stepped push-button array 004 and single push-button array 005 simultaneously.The present embodiment be take simultaneously and the button of depositing two kinds of different arrangements describes as example, maximum by bond number to realize.Wherein, the button in stepped push-button array 004 is connected between any two I/O interfaces, is labeled as in the drawings KT0-KTx, and the value of x is 1/2(N+M) * (N+M-1).Button one end in single push-button array 005 is connected with corresponding I/O interface, and the button other end is connected with fixed level V, is labeled as in the drawings K1-K(N+M).If two kinds of push-button arrays exist simultaneously, single push-button array 005 is connected to after stepped push-button array 004 in turn.
Resistance unit is resistance unit 003, and resistance unit 003 is connected between indicator light display unit 002 and stepped push-button array 004, and resistance unit 003, for to be connected to the resistance between each I/O interface and button, is designated R1-R(M+N in the drawings).Resistance in resistance unit 003 is to keep poor being as the criterion of indicator light both end voltage, according to the reasonable resistance of concrete actual set, if resistance is zero, represent to be directly communicated with, will certainly affect the driving of corresponding indicator light, there is enough pressure reduction at the resistance guarantee indicator light two ends that configure certain resistance, and while guaranteeing button, logic level detects saltus step simultaneously.If single push-button array 005 is not used, the resistance R 1-R(M+N in resistance unit 003), in, the resistance that allows one of them resistance is zero, while being enough to like this guarantee that any button is pressed, port between two buttons has at least a resistance to isolate, and also can save a resistance.Under the prerequisite that single push-button array 005 and stepped push-button array 004 are used simultaneously, allow to use resistance unit 003, a resistance is non-vanishing arbitrarily simultaneously.
By described above, each I/O interface can connect respectively a button to fixed level V, simultaneously also can between every two I/O interfaces, connect a button, that can support at most number of keys to be 1/2 * (M+N) * (M+N+1), and the resistance using is at most that (M+N) is individual.Compared with prior art, not only scanning port is multiplexing by key control, and public port is also multiplexing by key control, has also increased key scan control between all I/O interfaces simultaneously.
The present embodiment is realized by indicator light and button time-sharing multiplex in scanning process, multiplexing realization based on being provided with single push-button array and stepped push-button array simultaneously, there is the circuit of indicator light and button multiplexed port, specifically comprise the steps:
A) indicator light actuation step: with reference to Fig. 2, the scanning process of indicator light display unit 002, the scanning process of indicator light is divided into M time, a corresponding unique public port each time, establishing this public port is COMi(i=1~M).In the scanning process of corresponding public port COMi, this public port COMi exports the first level, and in exporting the first level state, other public port output second electrical level, in output second electrical level state, the first level and second electrical level logic reversal.If the scanning port of the indicator light other end being connected with public port COMi output second electrical level, this indicator light is bright; Otherwise this indicator light does not work.The indicator light being connected with other public port does not all work at this beat, configures successively all public port COMi that are connected with indicator light, scans all indicator lights.
B) key scan and detecting step: with reference to Fig. 4, after indicator light been scanned, I/O interface unit 001 is controlled all public ports and all weak driver output second electrical level of scanning port, and all indicator lights all knock out, and start to carry out key scan and detection.Key scan is divided into M+N+1 step, and the button being divided between I/O interface detects, and I/O interface detects the button of fixed level V.Fixed level state is the first level.
When b1) configuring all I/O interfaces that are connected with button and all keep weak driver output second electrical level state, if from any I/O interface monitor to level saltus step, indicate that corresponding I/O interface is pressed to the button of fixed level V, and output key value.
B2) establishing corresponding I/O interface is j(j=1~M+N), while scanning I/O interface j, this I/O interface j exports the first level, and I/O interface j is in exporting the first level state, and other I/O interface keeps weak driver output second electrical level state.If only, in I/O interface j scanning process, from other any I/O interface monitor to level saltus step, indicate that I/O interface j is pressed to the button of other I/O interface, and output key value.
C) if all buttons are all scanned, return to step a according to the scan period, otherwise return to step b, continue scanning.
Wherein, it is two independently processes that key scan and button detect, and whether no matter have button to be detected, corresponding key scan process all can be carried out successively.When keyboard array configuration is different, corresponding step b1 can not need.When only having stepped push-button array 004, step b1 can save; When these two kinds of keyboards exist simultaneously, the scanning sequency of step b1 and b2 can also convert order.
For concrete indicator light quantity and number of keys, describe the present embodiment in detail below, with reference to Fig. 5, using I/O interface is 7, i.e. 7 control ports, the number M=3 of indicator light public port wherein, number N=4 of scanning port, can realize number of keys 1/2(M+N at most) * (M+N+1)=28.All buttons are touch key, two ends conducting while pressing, and two ends cut-off while unclamping, resistance R 1~R7 resistance is 10K Ω.Wherein, indicator light is emitting led, is respectively indicator light public port common cathode and common-anode.In commoncathode, public port connects the negative electrode of LED, and scanning port connects the anode of LED.In common-anode, public port connects the anode of LED, and scanning port connects the negative electrode of LED.Between any one public port and any one scanning port, can connect a LED light, maximum support indicator light number is M * N=12.Wherein, Fig. 5 is public port commoncathode, and the first level is VSS, and second electrical level is VDD, if common-anode, the first level is VDD, and second electrical level is VSS.The present embodiment makes full use of each indicator light control port, expands maximum number of keys, uses control method simultaneously rationally, reaches the non-interfering control object of button and indicator light, and makes system realize cost to reach and minimize.
Scanning step comprise above-mentioned in steps.
Embodiment 2:
With reference to Fig. 6, the present embodiment is 6 required buttons of certain fan control scheme of structure and the circuit with indicator light and button multiplexed port of 11 indicator lights.This circuit comprises that the connected mode between I/O interface unit 001, indicator light display unit 002, stepped push-button array 004 and resistance unit 003,Ge unit refers in embodiment 1, does not repeat them here.In the present embodiment, indicator light is emitting led, and button KT0~KT5 is touch key, two ends conducting while pressing, two ends cut-off while unclamping.Resistance R 1~R4 wherein any one resistance is zero, and other resistance is 10K Ω.
In the present embodiment, for 11 indicator lights, need 3 * 4 array, for the reason of controlling indicator light public port number as far as possible, structure public port M=3, scanning port N=4.Wherein, scanning port is expressed as SEG1-SEG4 in the drawings, and public port is COM1-COM3, indicator light is L11-L14, L21-L24 and L31-L34, totally 12 indicator lights, resistance unit 003 comprises resistance R 1-R4, and stepped push-button array 004 comprises button KT0-KT5, totally 6 buttons.For 6 buttons, according to prior art, except connecing button to fixed level after these 4 scanning port series resistors, also need other 2 independent key-press input mouths.And according to circuit of the present utility model, the mode that interconnects button between 4 scanning port can realize 6 buttons, can save a resistance simultaneously.This fan control scheme can be removed any one indicator light in above-described embodiment schematic diagram, and any one button and end resistance thereof are to obtain 6 buttons and 11 indicator lights.
The present embodiment is realized by indicator light and button time-sharing multiplex in scanning process, and multiplexing realization, based on being provided with circuit stepped push-button array, that have indicator light and button multiplexed port, specifically comprises the steps:
A) indicator light actuation step: configure any one public port being connected with indicator light in exporting the first level state, other I/O interface is in output second electrical level state, the first level and second electrical level logic reversal, if the scanning port of the indicator light being connected with this public port, in output second electrical level state, scans all indicator lights.Specific as follows:
A1. public port COM1 exports the first level low level, COM2 and COM3 output second electrical level high level.If scanning port SEG1~SEG4 exports high level, corresponding indicator light L11~L14 lights.Scanning port SEG4~SEG4 output low level else if, corresponding indicator light L11~L14 extinguishes.Proceed to step a2.
A2. public port COM2 exports the first level low level, COM1 and COM3 output second electrical level high level.If scanning port SEG1~SEG4 exports high level, corresponding indicator light L21~L24 lights.Scanning port SEG1~SEG4 output low level else if, corresponding indicator light L21~L24 extinguishes.Proceed to step a3.
A3. public port COM3 exports the first level low level, COM1 and COM2 output second electrical level high level.If scanning port SEG1~SEG4 exports high level, corresponding indicator light L31~L34 lights.Scanning port SEG1~SEG4 output low level else if, corresponding indicator light L31~L34 extinguishes.Proceed to step a4.
A4. the weak driver output second electrical level high level of all I/O interfaces, enters key scan process.
Key scan process is as follows:
A) key scan and detecting step: configure all scanning port and public port in weak driver output second electrical level state, all indicator lights all extinguish;
From SEG1~SEG4, COM1~COM3, only has an I/O interface to export the first level low level in scanning each time, and other I/O interface keeps the state of weak driver output second electrical level high level, monitors the level saltus step of these the weak I/O of driving interfaces simultaneously.If level saltus step detected, illustrate that this I/O interface is pressed to the button detecting between the I/O interface of level saltus step.Such as when SEG1 output low level, from SEG3, level saltus step detected, illustrate that button KT1 is pressed.If without button, end key scanning process, continues to be transferred to indicator light scanning process.In the present embodiment, COM1~COM3 has neither part nor lot in by key control, can in actual implementation process, not carry out key scan.
In above-mentioned explanation, all special instructions that do not add, all adopt technological means of the prior art.

Claims (5)

1. a circuit with indicator light and button multiplexed port, comprise I/O interface unit, indicator light display unit, key switch unit and for keeping the poor resistance unit of indicator light both end voltage, I/O interface unit is provided with a plurality of for driving the I/O interface of indicator light, I/O interface is divided into scanning port and public port, indicator light display unit is provided with a plurality of indicator lights, key switch unit is provided with a plurality of buttons, indicator light is connected between scanning port and public port, it is characterized in that, described indicator light display unit is indicator light matrix array, indicator light is connected between public port and any one scanning port, described key switch unit is stepped push-button array, button is connected between any two I/O interfaces, described resistance unit is connected between indicator light display unit and key switch unit, resistance unit is the resistance being connected between each I/O interface and button.
2. the circuit with indicator light and button multiplexed port according to claim 1, is characterized in that, in described resistance unit, the resistance of one of them resistance is zero.
3. the circuit with indicator light and button multiplexed port according to claim 1, it is characterized in that, described key switch unit also comprises single push-button array, button one end is connected with I/O interface, the button other end is connected with fixed level, and single push-button array is connected with stepped push-button array in turn.
4. the circuit with indicator light and button multiplexed port according to claim 1 and 2, is characterized in that, described scanning port is 3, and public port is 4, between any two I/O interfaces, is all connected with button.
5. the circuit with indicator light and button multiplexed port according to claim 3, is characterized in that, described scanning port is 3, and public port is 4, and key switch unit also comprises the button being connected between each I/O interface and fixed level.
CN201320378653.4U 2013-06-27 2013-06-27 Indicating lamp/key port-multiplexing circuit Withdrawn - After Issue CN203399091U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201320378653.4U CN203399091U (en) 2013-06-27 2013-06-27 Indicating lamp/key port-multiplexing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201320378653.4U CN203399091U (en) 2013-06-27 2013-06-27 Indicating lamp/key port-multiplexing circuit

Publications (1)

Publication Number Publication Date
CN203399091U true CN203399091U (en) 2014-01-15

Family

ID=49910587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201320378653.4U Withdrawn - After Issue CN203399091U (en) 2013-06-27 2013-06-27 Indicating lamp/key port-multiplexing circuit

Country Status (1)

Country Link
CN (1) CN203399091U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103354453A (en) * 2013-06-27 2013-10-16 杭州士兰微电子股份有限公司 Circuit and method having port multiplexing of indication lamp and button
CN107241829A (en) * 2017-07-04 2017-10-10 厦门芯阳科技股份有限公司 A kind of control method of LED and button multiplexing circuit
CN109922575A (en) * 2019-04-16 2019-06-21 捷卡(厦门)工业科技有限公司 A kind of more LED light control circuits

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103354453A (en) * 2013-06-27 2013-10-16 杭州士兰微电子股份有限公司 Circuit and method having port multiplexing of indication lamp and button
CN107241829A (en) * 2017-07-04 2017-10-10 厦门芯阳科技股份有限公司 A kind of control method of LED and button multiplexing circuit
CN109922575A (en) * 2019-04-16 2019-06-21 捷卡(厦门)工业科技有限公司 A kind of more LED light control circuits

Similar Documents

Publication Publication Date Title
CN103354453B (en) There is indicator light and the multiplexing circuit of Key pad port and method
CN105301822B (en) A kind of array substrate, display panel and display device
CN105528995B (en) Display panel and its driving method, display device
CN203399091U (en) Indicating lamp/key port-multiplexing circuit
CN107633818A (en) Backlight drive device and the display for including it
CN102629451B (en) LED (Light Emitting Diode) backlight driving circuit, liquid crystal display device and driving method
CN102789076A (en) Detection circuit and manufacturing method for liquid crystal display panel
CN201044164Y (en) Control system of split joint television wall
CN102723056B (en) A kind of LED display panel driving method, device, display system and equipment
CN101459993A (en) Background lamp apparatus for control panel and control apparatus thereof
CN105304000A (en) Liquid crystal display module aging test system
CN107066143A (en) A kind of touch-control display panel and its driving method, touch control display apparatus
CN101943742B (en) Keypad test and display driver integrated circuit and control method thereof
US20240045530A1 (en) Detection method, display panel, driver chip and display device
CN105427775A (en) Display panel and electronic device
CN203399090U (en) Indicating lamp/key port-multiplexing circuit
CN104317456B (en) In-cell touch panel and its driving method and display device
CN103795390B (en) Smart touch switch panel with multiple screen bit combinations
CN105929994B (en) A kind of display panel and its gesture awakening method and display device
CN101539771B (en) System for main device to automatically address auxiliary device
CN201812029U (en) Key detection and display driving integrated circuit
CN202339692U (en) Detection device for light emitting diode (LED) display screen driving plate
CN114201078B (en) Touch device, equipment and method for improving LED display performance
CN205177380U (en) Shift register unit, touch -control display panel and touch -sensitive display device
US9755664B2 (en) Methods and apparatus for efficient illumination of individual keys in a keyboard

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
AV01 Patent right actively abandoned

Granted publication date: 20140115

Effective date of abandoning: 20160113

C25 Abandonment of patent right or utility model to avoid double patenting