[go: up one dir, main page]

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

Indicating lamp/key port-multiplexing circuit Download PDF

Info

Publication number
CN203399090U
CN203399090U CN201320377969.1U CN201320377969U CN203399090U CN 203399090 U CN203399090 U CN 203399090U CN 201320377969 U CN201320377969 U CN 201320377969U CN 203399090 U CN203399090 U CN 203399090U
Authority
CN
China
Prior art keywords
indicator light
port
key
button
unit
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 - Lifetime
Application number
CN201320377969.1U
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 CN201320377969.1U priority Critical patent/CN203399090U/en
Application granted granted Critical
Publication of CN203399090U publication Critical patent/CN203399090U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Push-Button Switches (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 one common port and any one of scanning ports; the key switch unit is a single-row key array; one end of each key is connected with one I/O interface, and the other end of each key is connected with a fixed electric level; and the resistor unit is connected in series between the indicating lamp display unit and the key switch unit or connected in series between the fixed electric level and the key switch unit. According to the indicating lamp/key port-multiplexing circuit of the utility model, the scanning ports multiplex key control, and the common ports also multiplex key control, and key scanning control is additionally realized between all I/O interfaces, and therefore, the resources of the common ports can be effectively utilized, and I/O interface layout of the I/O interface units is reasonably optimized, and the utilization rate of I/O interface multiplexing control can be improved, and 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, 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 single push-button array, button one end is connected with I/O interface, the button other end is connected with fixed level, described resistance unit is connected between indicator light display unit and key switch unit or is connected between fixed level and key switch unit.
Be compared to prior art, in the circuit with indicator light and button multiplexed port of the present utility model scanning port multiplexing by key control, public port is also multiplexing by key control, in scanning port and public port concurrent multiplexing, control button, and increased key scan control between all I/O interfaces, effectively utilized public port resource, reasonably optimizing the I/O interface arrangement of I/O interface unit, improve the utilance that I/O interface duplex is controlled, with lower cost, realized the expansion of button.
Preferably, the described resistance unit being connected with indicator light display unit is the resistance being connected between each I/O interface and button, and the resistance unit being connected with fixed level is a shared resistance.Shared resistance is to use under the prerequisite of using while being limited to two buttons differences, otherwise easily affects the driving of indicator light.Be equipped with the rational resistance value of resistance unit, 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 scanning port is 3, and public port is 4, on 3 scanning port and 4 public ports, is connected with respectively button.
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 of indicator light and button multiplexed port.
Fig. 4 is the workflow diagram that the utlity model has key scan in the circuit of 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 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.
With reference to Fig. 3, the circuit with indicator light and button multiplexed port of the present utility model 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, 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 Fig. 3, 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 at most the control of M*N indicator light.
Key switch unit is provided with a plurality of buttons, and key switch unit comprises single push-button array 005.This enforcement be take single push-button array 005 and is realized and maximumly by bond number, describing as example, wherein, button one end in single push-button array 005 is connected with corresponding I/O interface, button in single push-button array 005 is first connected with scanning port, under the inadequate situation of scanning port, use public port, the button other end is connected with fixed level V, and button is labeled as K1-K (N+M) in the drawings.
Resistance unit is resistance unit 003 or resistance unit 006, resistance unit 003 is connected between indicator light display unit 002 and single push-button array 005, 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 unit 006 is connected between fixed level V and single push-button array 005, and resistance unit 006 is a shared resistance, is labeled as in the drawings R0.Resistance in resistance unit 003 and resistance unit 006 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.General resistance unit 003 or resistance unit 006 can not exist jointly.If buttons are not pressed the impact on indicator light more than not considering two simultaneously, only use and share resistance R 0.
By described above, each I/O interface can connect respectively a button to fixed level V, and that can support that at most number of keys is (M+N), 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 utility model is realized by indicator light and button time-sharing multiplex in scanning process, and the circuit of multiplexing realization based on having indicator light and button multiplexed port, specifically comprises 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.Configure all I/O interfaces that are connected with button in weak driver output second electrical level state, if level saltus step detected from any I/O interface, represent that the button being connected between this I/O interface and fixed level is pressed, 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.
For concrete indicator light quantity and number of keys, describe the utility model in detail below, with reference to Fig. 5, 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.Using I/O interface is 7, i.e. 7 control ports, and the number M=3 of indicator light public port wherein, number N=4 of scanning port, can realize at most number of keys (M+N)=7.
This circuit comprises I/O interface unit 001, indicator light display unit 002, single push-button array 005 and resistance unit, wherein resistance unit can be resistance unit 003 or resistance unit 006, in the present embodiment, indicator light is emitting led, button K1~K7 is touch key, two ends conducting while pressing, two ends cut-off while unclamping.As need, consider that plural button is not pressed simultaneously indicator light is shown and exerted an influence, adopt resistance unit 003, resistance R 1~R7 resistance is 10K Ω, and R0 resistance is 0.As only considered that a button is not pressed, indicator light is shown and exerted an influence, adopt resistance unit 006, resistance R 1~R7 resistance is that 0, R0 resistance is 10K Ω.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 to be to obtain 6 buttons and 11 indicator lights, the course of work of the present embodiment comprise above-mentioned in steps.
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.
In above-mentioned explanation, all special instructions that do not add, all adopt technological means of the prior art.

Claims (3)

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 single push-button array, button one end is connected with I/O interface, the button other end is connected with fixed level, described resistance unit is connected between indicator light display unit and key switch unit or is connected between fixed level and key switch unit.
2. the circuit with indicator light and button multiplexed port according to claim 1, it is characterized in that, the described resistance unit being connected with indicator light display unit is the resistance being connected between each I/O interface and button, and the resistance unit being connected with fixed level is a shared resistance.
3. 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, on 3 scanning port and 4 public ports, is connected with respectively button.
CN201320377969.1U 2013-06-27 2013-06-27 Indicating lamp/key port-multiplexing circuit Expired - Lifetime CN203399090U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201320377969.1U CN203399090U (en) 2013-06-27 2013-06-27 Indicating lamp/key port-multiplexing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201320377969.1U CN203399090U (en) 2013-06-27 2013-06-27 Indicating lamp/key port-multiplexing circuit

Publications (1)

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

Family

ID=49910586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201320377969.1U Expired - Lifetime CN203399090U (en) 2013-06-27 2013-06-27 Indicating lamp/key port-multiplexing circuit

Country Status (1)

Country Link
CN (1) CN203399090U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106374937A (en) * 2016-11-17 2017-02-01 广州派高智能科技有限公司 Circuit in which indicator lamps and keys sharing ports for control
CN109922575A (en) * 2019-04-16 2019-06-21 捷卡(厦门)工业科技有限公司 A kind of more LED light control circuits

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106374937A (en) * 2016-11-17 2017-02-01 广州派高智能科技有限公司 Circuit in which indicator lamps and keys sharing ports for control
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
CN107463295B (en) Display panel, driving method thereof and display device
CN110716665B (en) Touch display panel and display device
CN104793827B (en) A kind of array base palte and self-capacitance touch control display apparatus
CN101943742B (en) Keypad test and display driver integrated circuit and control method thereof
CN104536609A (en) Display panel with touch function and fault detection method
CN203399091U (en) Indicating lamp/key port-multiplexing circuit
CN203399090U (en) Indicating lamp/key port-multiplexing circuit
CN104714695A (en) Display substrate and drive method thereof and display device
CN107066143A (en) A kind of touch-control display panel and its driving method, touch control display apparatus
EP2656504B1 (en) Methods and apparatus for efficient illumination of individual keys in a keyboard
CN105427775A (en) Display panel and electronic device
CN105867691B (en) Touch-control display panel and its driving method, touching display screen
CN107817920B (en) Pressure induction sensor driving circuit and driving method, display panel and device
CN213458027U (en) USB master-slave equipment switching circuit, control circuit and interactive panel
CN109347483B (en) Control circuit for IO shared by touch key and nixie tube
WO2014183621A1 (en) Profinet-based control panel with extended input and output
CN105446535B (en) Touch sensible element and touch control display apparatus
CN2594869Y (en) Switchable test set for accelerated graphics interface socket and built-in video processing interface
CN108132728A (en) It is a kind of to operate identification device, recognition methods and the intelligent terminal with the device
CN203643981U (en) Display substrate and touch display device
CN108520714B (en) Test method and system supporting multiple working modes of OLED screen
CN203166878U (en) Device used for button scanning under multidigit nixie tube driving environment
CN202632685U (en) Light-emitting diode (LED) display panel, system and device
CN204667360U (en) Utilize the multi-screen synchronous contactor control device from holding characteristic

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20140115

CX01 Expiry of patent term