CN105024680A - Data sending and button detection multiplexing circuit and processing method of program thereof - Google Patents

Data sending and button detection multiplexing circuit and processing method of program thereof Download PDF

Info

Publication number
CN105024680A
CN105024680A CN201510427621.2A CN201510427621A CN105024680A CN 105024680 A CN105024680 A CN 105024680A CN 201510427621 A CN201510427621 A CN 201510427621A CN 105024680 A CN105024680 A CN 105024680A
Authority
CN
China
Prior art keywords
data
holding wire
button
key
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510427621.2A
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.)
Guangdong Galanz Enterprises Co Ltd
Original Assignee
Guangdong Galanz Enterprises 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 Guangdong Galanz Enterprises Co Ltd filed Critical Guangdong Galanz Enterprises Co Ltd
Priority to CN201510427621.2A priority Critical patent/CN105024680A/en
Publication of CN105024680A publication Critical patent/CN105024680A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

A data sending and button detection multiplexing circuit is composed of an MCU, a display screen module, a power supply, an STB signal wire, a CLK signal wire, a DATA signal wire, a button matrix circuit, a pull-down resistor and a filtering capacitor. A data sending circuit and a button detection circuit are multiplexed, and display data sending and button signal detection are realized by time sharing processing of software. By the improvement of the above structure, the number of MCU ports is effectively reduced, and the number of flexible flat cables is reduced, so that the material cost and the processing cost are lowered. The data sending and button detection multiplexing circuit is advantageous by being simple and reasonable in structure, reliable in performance, low in material cost, convenient to process, easy to produce, easy to realize and high in practicability.

Description

Data send and detect multiplexing circuit and the processing method of program thereof with button
Technical field
The present invention relates to the transmission of a kind of data and detect multiplexing circuit and the processing method of program thereof with button.
Background technology
In the household electrical appliances of prior art and field of consumer electronics, it is generally essential that display driver and button detect.In the current age with keen competition, the cost pressure of enterprise is comparatively large, and as when MCU type selecting, sometimes in order to the how several port of needs, may will change the chip of another specification, result causes the wasting of resources, cost increase.In addition, in the application scenario that mainboard is separated with keypad, winding displacement is more, and process more complicated, cost also goes up thereupon, cannot meet the Production requirement of enterprise.Therefore, further improvement is necessary.
Summary of the invention
Object of the present invention aims to provide a kind of simple and reasonable, dependable performance, and Material Cost is low, easy to process, easily produces, and the data easily realized send and detect multiplexing circuit and the processing method of program thereof, to overcome weak point of the prior art with button.
A kind of data designed by this object send and detect multiplexing circuit with button, it is characterized in that: be made up of MCU, display screen module, power supply, STB holding wire, CLK holding wire, DATA holding wire, key-press matrix circuit, pull down resistor and filter capacitor.
Described power supply passes through+5V line and GND line is supplied and C4 and C5 be connected in order to steady voltage and filter out power clutter by mainboard;
Described STB holding wire, CLK holding wire, DATA holding wire are connected to the MCU port of mainboard respectively, and are connected to pull down resistor R4, R5, R6 and filter capacitor C1, C2, C3 respectively, with set key-press input signal as high level effective;
Described key-press matrix circuit is cross connected to STB holding wire, CLK holding wire, DATA holding wire respectively by R1, R2, R3 and D1, D2, D3, D4, D5, D6 and K1, K2, K3, K4, K5, K6;
Described filter capacitor is in order to eliminate the interference of key-press input signal.
A kind of data send and detect multiplexing circuit program processing method with button, comprise above-mentioned data transmission and detect multiplex circuit with button, it is characterized in that: data transmit circuit and key press detecting circuit multiplexing, realize the display transmission of data and the detection of push button signalling by software time-division processing.
Described software time-division processing is during scanning button, and in turn one of them port is set to delivery outlet respectively, and exports high level, another two ports are set to input port, and whether detection is high level, thus judges which button is pressed; After key scan, just perform data to send, when sending data to the LED drive chip of display screen module, the STB holding wire that MCU connects, CLK holding wire, DATA holding wire port are all set to delivery outlet, during sending data to display screen module, because each button have been connected a diode by the unified sense of current of specifying, so whether button is pressed also do not affect the level of holding wire, namely key-press status does not affect the transmission of data, actuation of keys is left in the basket, and does not namely now detect key-press status.
The present invention by the improvement of said structure, 1, reduce and take the hardware resource of MCU, and decrease the quantity of winding displacement, reduce Material Cost and processing cost; 2, software deals with simple and convenient, clear logic, neither affects the transmission of data, also accurately can detect the state of button; 3, the method is easy-to-understand, can not be designed person well and grasps and be applied in actual design.
The features such as it has simple and reasonable, dependable performance, and Material Cost is low, easy to process, easily produces, easy realization, practical.
Accompanying drawing explanation
Fig. 1 is the circuit frame figure of first embodiment of the invention.
Fig. 2 is the circuit theory diagrams of first embodiment of the invention.
Fig. 3 is the sequential chart of the software process of first embodiment of the invention.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described.
See Fig. 1, Fig. 2, notebook data sends and detects multiplexing circuit with button, is made up of MCU, display screen module, power supply, STB holding wire, CLK holding wire, DATA holding wire, key-press matrix circuit, pull down resistor and filter capacitor.
First, STB holding wire, CLK holding wire, DATA holding wire and+5V line, GND line directly dock with display screen module; Then, STB holding wire, CLK holding wire, DATA holding wire are connected to pull down resistor R4, R5, a R6 respectively, under setting button detected state, button is not pressed as low level, button is pressed as high level, STB holding wire, CLK holding wire, DATA holding wire are connected to filter capacitor C1, C2, C3 respectively, disturb in order to filtering clutter.
Key-press matrix circuit is cross connected to STB holding wire, CLK holding wire, DATA holding wire respectively by R1, R2, R3 and D1, D2, D3, D4, D5, D6 and K1, K2, K3, K4, K5, K6.
Specifically, STB holding wire, CLK holding wire, DATA holding wire connect successively in the following manner: a wherein holding wire is received in wherein one end (as push button signalling input) of two buttons, the other end (as push button signalling output) of these two buttons receives other two holding wires respectively, get off like this and have 3 to combination, namely can connect at most 6 buttons.And each button to be connected a diode by the unified sense of current of specifying, and when preventing two buttons from pressing, causes short circuit between two holding wires and cannot normally work simultaneously.
Filter capacitor is in order to eliminate the interference of key-press input signal.
Data send and detect multiplexing circuit program processing method, see Fig. 3 with button.
In the t1 moment, STB port is set to delivery outlet, and exports high level, CLK and DATA port is set to input state.Then read the input state of CLK and DATA port respectively, if CLK Port detecting is to high level, then K1 by under, if DATA Port detecting is to high level, then K2 by under.
In the t2 moment, CLK port is set to delivery outlet, and exports high level, STB and DATA port is set to input state.Then read the input state of STB and DATA port respectively, if STB Port detecting is to high level, then K3 by under, if DATA Port detecting is to high level, then K4 by under.
In the t3 moment, DATA port is set to delivery outlet, and exports high level, CLK and STB port is set to input state.Then read the input state of CLK and STB port respectively, if CLK Port detecting is to high level, then K5 by under, if STB Port detecting is to high level, then K6 by under.
To the t4 moment, STB, CLK and DATA port is all set to delivery outlet, press the agreement of the LED drive chip in display screen module, send chip to LED drive chip and instruction and display data are set, now key-press status is left in the basket, namely do not detect key-press status, after waiting pending data to be sent, repeat the process of above-mentioned t1 ~ t4.
Above-mentioned is preferred version of the present invention, and those of ordinary skill in the art, to its simple modification or transformation, all drop within protection scope of the present invention.

Claims (4)

1. data send and detect a multiplexing circuit with button, it is characterized in that: be made up of MCU, display screen module, power supply, STB holding wire, CLK holding wire, DATA holding wire, key-press matrix circuit, pull down resistor and filter capacitor.
2. data send and detect multiplexing circuit with button according to claim 1, it is characterized in that: described power supply passes through+5V line and GND line is supplied and C4 and C5 be connected in order to steady voltage and filter out power clutter by mainboard;
Described STB holding wire, CLK holding wire, DATA holding wire are connected to the MCU port of mainboard respectively, and are connected to pull down resistor R4, R5, R6 and filter capacitor C1, C2, C3 respectively, with set key-press input signal as high level effective;
Described key-press matrix circuit is cross connected to STB holding wire, CLK holding wire and DATA holding wire respectively by R1, R2, R3 and D1, D2, D3, D4, D5, D6 and K1, K2, K3, K4, K5, K6;
Described filter capacitor is in order to eliminate the interference of key-press input signal.
3. data send and detect multiplexing circuit program processing method with button, comprise data according to claim 2 transmission and detect multiplex circuit with button, it is characterized in that: data transmit circuit and key press detecting circuit multiplexing, realize the display transmission of data and the detection of push button signalling by software time-division processing.
4. data send and detect multiplexing circuit program processing method with button according to claim 3, it is characterized in that: described software time-division processing is during scanning button, in turn one of them port is set to delivery outlet respectively, and export high level, another two ports are set to input port, and whether detection is high level, thus judge which button is pressed; After key scan, just perform data to send, when sending data to the LED drive chip of display screen module, the STB holding wire that MCU connects, CLK holding wire, DATA holding wire port are all set to delivery outlet, during sending data to display screen module, because each button have been connected a diode by the unified sense of current of specifying, so whether button is pressed also do not affect the level of holding wire, namely key-press status does not affect the transmission of data, actuation of keys is left in the basket, and does not namely now detect key-press status.
CN201510427621.2A 2015-07-20 2015-07-20 Data sending and button detection multiplexing circuit and processing method of program thereof Pending CN105024680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510427621.2A CN105024680A (en) 2015-07-20 2015-07-20 Data sending and button detection multiplexing circuit and processing method of program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510427621.2A CN105024680A (en) 2015-07-20 2015-07-20 Data sending and button detection multiplexing circuit and processing method of program thereof

Publications (1)

Publication Number Publication Date
CN105024680A true CN105024680A (en) 2015-11-04

Family

ID=54414439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510427621.2A Pending CN105024680A (en) 2015-07-20 2015-07-20 Data sending and button detection multiplexing circuit and processing method of program thereof

Country Status (1)

Country Link
CN (1) CN105024680A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027067A (en) * 2016-02-29 2016-10-12 苏州达方电子有限公司 Key matrix
CN108958090A (en) * 2017-05-22 2018-12-07 比亚迪股份有限公司 Circuit and control method, the household electrical appliance and consumer electronics device of multiplexing port
CN110190841A (en) * 2019-06-06 2019-08-30 深圳市兆威机电股份有限公司 I/O port multiplexing control circuit and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2746454Y (en) * 2004-11-25 2005-12-14 朱衡 LED display device of computer main frame
CN101738951A (en) * 2008-11-24 2010-06-16 苏州市职业大学 Key input and display output dual-purpose circuit of singlechip
US20110102053A1 (en) * 2008-07-31 2011-05-05 Actions Semiconductor Co., Ltd. Method and soc for implementing time division multiplex of pin
CN102523003A (en) * 2011-12-15 2012-06-27 蚌埠依爱消防电子有限责任公司 Time-sharing multiplexing keyboard display scanning circuit applied to fire alarm controller
CN203870425U (en) * 2014-05-22 2014-10-08 深圳飞安瑞电子科技有限公司 I/o port time division multiplexing circuit
CN104778916A (en) * 2014-12-02 2015-07-15 深圳市视维科技有限公司 All-character LED nixie tube display driving circuit
CN204794958U (en) * 2015-07-20 2015-11-18 广东格兰仕集团有限公司 Data transmission detects multiplexing circuit with button

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2746454Y (en) * 2004-11-25 2005-12-14 朱衡 LED display device of computer main frame
US20110102053A1 (en) * 2008-07-31 2011-05-05 Actions Semiconductor Co., Ltd. Method and soc for implementing time division multiplex of pin
CN101738951A (en) * 2008-11-24 2010-06-16 苏州市职业大学 Key input and display output dual-purpose circuit of singlechip
CN102523003A (en) * 2011-12-15 2012-06-27 蚌埠依爱消防电子有限责任公司 Time-sharing multiplexing keyboard display scanning circuit applied to fire alarm controller
CN203870425U (en) * 2014-05-22 2014-10-08 深圳飞安瑞电子科技有限公司 I/o port time division multiplexing circuit
CN104778916A (en) * 2014-12-02 2015-07-15 深圳市视维科技有限公司 All-character LED nixie tube display driving circuit
CN204794958U (en) * 2015-07-20 2015-11-18 广东格兰仕集团有限公司 Data transmission detects multiplexing circuit with button

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027067A (en) * 2016-02-29 2016-10-12 苏州达方电子有限公司 Key matrix
CN106027067B (en) * 2016-02-29 2019-04-16 苏州达方电子有限公司 Key-press matrix
CN108958090A (en) * 2017-05-22 2018-12-07 比亚迪股份有限公司 Circuit and control method, the household electrical appliance and consumer electronics device of multiplexing port
CN110190841A (en) * 2019-06-06 2019-08-30 深圳市兆威机电股份有限公司 I/O port multiplexing control circuit and electronic equipment

Similar Documents

Publication Publication Date Title
CN105024680A (en) Data sending and button detection multiplexing circuit and processing method of program thereof
CN110166868A (en) A kind of charging box and charging system communicated with wireless headset
CN103813196A (en) Intelligent remote controller for testing television functions
CN109307833A (en) Apparatus for testing chip and chip detecting method
CN103926853A (en) Programmable resistance output device and method
CN103605303B (en) The injection moulding machine Digital I/O of a kind of band redundancy detection turns terminal box
CN102523508B (en) Intelligent television control method based on local area network
JP5529809B2 (en) Power supply device and power supply system using the same
CN202956653U (en) Smart home remote control system
CN204794958U (en) Data transmission detects multiplexing circuit with button
CN105336273B (en) A kind of mosaic screen
CN202364197U (en) Button detection and LED control circuit
US20130275632A1 (en) Key detection circuit
CN105335126B (en) A kind of mosaic screen
CN102279574A (en) Compatible equipment and method for master control board and slave control board
CN107153456A (en) OTG connections control method, OTG connection control devices and electronic equipment
CN106776410A (en) A kind of handheld terminal with serial ports
CN107272524B (en) Smart machine control device and system
CN104881340B (en) Electronic device
CN202720638U (en) Serial conversion circuit
CN104579197A (en) Audio power amplifying circuit and mode control circuit thereof
CN202935897U (en) Sudden-stop lock switch position recognition device of belt conveyor
CN103051736B (en) A kind of processing method of control information and I2C bus apparatus
CN207488755U (en) A kind of portable IIC command control systems
CN201051243Y (en) Key control circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151104

RJ01 Rejection of invention patent application after publication