CN208384969U - A kind of device of drive digital tube and button multiplexing - Google Patents
A kind of device of drive digital tube and button multiplexing Download PDFInfo
- Publication number
- CN208384969U CN208384969U CN201821032324.3U CN201821032324U CN208384969U CN 208384969 U CN208384969 U CN 208384969U CN 201821032324 U CN201821032324 U CN 201821032324U CN 208384969 U CN208384969 U CN 208384969U
- Authority
- CN
- China
- Prior art keywords
- chip
- latch
- shifting
- shifting chip
- output end
- 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
Links
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The utility model discloses a kind of drive digital tube and the devices of button multiplexing, including the first Shifting chip, the second Shifting chip and latch, the input terminal of first Shifting chip and an I/O port of single-chip microcontroller connect, the connection of the input terminal of output end and latch, the output end of latch select interface to connect with digital pipeline section;The input terminal of second Shifting chip is connect with an output end of the first Shifting chip, and output end selects interface to connect with charactron position;First Shifting chip, the second Shifting chip are all made of 74HC164 Shifting chip.Second Shifting chip and charactron position are selected and are equipped with multiplexing key between interface, and the corresponding all pins of multiplexing key are connect with the I/O port of the second Shifting chip, and the enable port of the output end and latch that are multiplexed key connects.It is scanned detection by the level of the enable port to latch, can determine whether the key value of input, and then realize button multiplexing.The I/O interface that the utility model can save single-chip microcontroller is used to external more equipment, realizes more multi-functional.
Description
Technical field
The utility model relates to I/O pin multiplexing technology field, in particular to the dress of a kind of drive digital tube and button multiplexing
It sets.
Background technique
It is usually all that digital pipeline section choosing is used for using one group of I/O port, with other 4 in various numeral method machine applications
A I/O port is selected for charactron position.Only numeral method just occupies 12 I/O ports, and there are four general such machine also bands
Regulating key, and occupy 4 I/O ports.Only display module just occupies 16 I/O ports fully in this way, wastes single-chip microcontroller significantly
I/O port resource, I/O port needed for reducing the machinery equipment external equipment.
For this purpose, drive for charactron, the device for studying a kind of I/O port quantity used when can reduce driving has
Important practical value.
Utility model content
The shortcomings that the purpose of the utility model is to overcome the prior arts and insufficient provides a kind of drive digital tube and key
The device of multiplexing, the device are based on 74HC164 Shifting chip and latch, it is only necessary to by 3 common I/O ports of single-chip microcontroller, i.e.,
Controllable charactron and realization button multiplexing.
The purpose of this utility model is realized by the following technical solution: the dress of a kind of drive digital tube and button multiplexing
It sets, including the first Shifting chip, the second Shifting chip and latch, the input terminal of the first Shifting chip and an IO of single-chip microcontroller
The input terminal of mouth connection, output end and latch connects, and the output end of latch selects interface to connect with digital pipeline section;Second displacement
The input terminal of chip is connect with an output end of the first Shifting chip, and output end selects interface to connect with charactron position;Described
One Shifting chip, the second Shifting chip are all made of 74HC164 Shifting chip.After Shifting chip, so that only needing by list
3 common I/O ports of piece machine, in addition latch, i.e., controllable charactron.
Preferably, second Shifting chip and charactron position are selected and are equipped with multiplexing key between interface, and multiplexing key is corresponding
All pins connect with the I/O port of the second Shifting chip, be multiplexed key output end and latch enable port connect.
It is scanned detection by the level of the enable port to latch, can determine whether the key value of input, and then realize button multiplexing.
Preferably, the latch uses the latch chip of model 74HC573.Whether the chip is for controlling data
It is transferred to charactron.
The utility model compared with prior art, is had the following advantages and beneficial effects:
In the prior art, single-chip microcontroller directly drives charactron and needs using 12 I/O ports.The utility model passes through setting two
A chip and a latch, it is only necessary to which 3 I/O ports can be achieved with drive digital tube and button multiplexing, can save monolithic
The I/O interface of machine is used to external more equipment, realizes more multi-functional.The utility model can be widely used in many need using number
On a large amount of middle-size and small-size machines of demands such as code pipe displays temperature, interface or calendar scheduling, such as micro-wave oven, intelligent washing machine, stage
Equipment etc..
Detailed description of the invention
Fig. 1 is the structural block diagram of the present embodiment device.
Fig. 2 is the operation principle schematic diagram of the present embodiment device.
Specific embodiment
The present invention will be further described in detail with reference to the embodiments and the accompanying drawings, but the implementation of the utility model
Mode is without being limited thereto.
Embodiment
As shown in Figure 1, the device of a kind of drive digital tube of the present embodiment and button multiplexing, including the first Shifting chip,
Two Shifting chips, latch and multiplexing key, are below specifically described all parts.
First Shifting chip uses 74HC164 Shifting chip, which only needs three single-chip I/O mouths, according to function
Three I/O ports of single-chip microcontroller can be defined as to CLOCK pulse mouth, EN enables mouth and Data data transmission mouth, the first Shifting chip
Input terminal and the Data data transmission mouth of single-chip microcontroller connect, the input terminal of output end and latch connects, the output of latch
Interface is selected to connect with digital pipeline section in end.
Second Shifting chip also uses 74HC164 Shifting chip, and the last one of input terminal and the first Shifting chip are defeated
Outlet connection, output end select interface to connect with charactron position.
Latch uses the latch chip of model 74HC573, which can control whether data are transmitted, only when
When the enable end EN of latch is low level 0, the data of the input pin of latch can just pass to the output pin of latch.Use this
Chip can open enable end when needing numeral method or changing numeral method again, and other times can utilize
Data I/O port realizes other functions, such as key scan etc..
It is selected in the second Shifting chip and charactron position and is equipped with multiplexing key between interface, the corresponding all pins of multiplexing key
It is connect with the I/O port of the second Shifting chip, the enable port of the output end and latch that are multiplexed key connects.
Referring to fig. 2, the working principle of the present embodiment is as follows: the enable port EN of latch is opened, from the Data of single-chip microcontroller
Data transmission mouth is passed to the section code selection and position code selection of charactron, every biography with starting one bit of a bit to the first Shifting chip
One is given a pulse signal in single-chip microcontroller CLOCK pulse mouth, and the first Shifting chip and the second Shifting chip carry out shifting function,
When shifting here, such as 16 data in fruit chip, last a data will lose.After having passed data, closing latch EN makes
Energy port, charactron will show required information to be shown.
For button multiplexing, the IO foot on corresponding second Shifting chip of each key is first set 0, the EN of latch is made
Energy port shutdown, i.e., it is enabled to set 1.In data transmission procedure, whether the current enable end EN of real-time detection is 0, once it is 0,
Then indicate that corresponding key is pressed, by the corresponding chip I/O of which key when checking previous secondary data transmission before this at this time
Mouth sets 0, it can judges it is which key is pressed on earth.After key pressing, so that it may be passed to number after changing again
The section code selection and position code selection of the code pipe information of being shown.Latch EN mouthfuls is opened, it can charactron variation effect after display button
?.
Above-described embodiment is the preferable embodiment of the utility model, but the embodiments of the present invention is not by above-mentioned
The limitation of embodiment, it is made under other any spiritual essence and principles without departing from the utility model to change, modify, replacing
In generation, simplifies combination, should be equivalent substitute mode, is included within the protection scope of the utility model.
Claims (3)
1. the device of a kind of drive digital tube and button multiplexing, which is characterized in that including the first Shifting chip, the second Shifting chip
And latch, the input terminal of the first Shifting chip and an I/O port of single-chip microcontroller connect, the input terminal of output end and latch connects
It connects, the output end of latch selects interface to connect with digital pipeline section;The one of the input terminal of second Shifting chip and the first Shifting chip
A output end connection, output end select interface to connect with charactron position;First Shifting chip, the second Shifting chip are all made of
74HC164 Shifting chip.
2. the device of drive digital tube according to claim 1 and button multiplexing, which is characterized in that the second displacement core
Piece and charactron position are selected and are equipped with multiplexing key between interface, IO of the corresponding all pins of multiplexing key with the second Shifting chip
The enable port of mouth connection, the output end and latch that are multiplexed key connects.
3. the device of drive digital tube according to claim 1 and button multiplexing, which is characterized in that the latch uses
The latch chip of model 74HC573.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201821032324.3U CN208384969U (en) | 2018-07-02 | 2018-07-02 | A kind of device of drive digital tube and button multiplexing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201821032324.3U CN208384969U (en) | 2018-07-02 | 2018-07-02 | A kind of device of drive digital tube and button multiplexing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN208384969U true CN208384969U (en) | 2019-01-15 |
Family
ID=64966352
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201821032324.3U Expired - Fee Related CN208384969U (en) | 2018-07-02 | 2018-07-02 | A kind of device of drive digital tube and button multiplexing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN208384969U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110148370A (en) * | 2019-05-23 | 2019-08-20 | 福建船政交通职业学院 | A kind of novel scanning circuit |
-
2018
- 2018-07-02 CN CN201821032324.3U patent/CN208384969U/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110148370A (en) * | 2019-05-23 | 2019-08-20 | 福建船政交通职业学院 | A kind of novel scanning circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101339738B (en) | Single line cascade chip for lamp point display | |
CN208384969U (en) | A kind of device of drive digital tube and button multiplexing | |
CN109307833A (en) | Apparatus for testing chip and chip detecting method | |
CN109541994A (en) | A kind of real-time acquisition system and its acquisition method of high anti-interference ability | |
CN201233711Y (en) | Single line cascade chip for lamp point display | |
CN101751115B (en) | Method for solving data transmission matching of DSP and low-speed output device | |
CN202720638U (en) | Serial conversion circuit | |
CN209247916U (en) | General purpose I based on fpga chip/O test device | |
CN201927018U (en) | Automatic wire holder for 2<8N>/2 paths of household appliances capable of realizing output data management through interconnecting lines of serial port | |
CN203166877U (en) | Control circuit using same I/O port to carry out keyboard and display synchronous scanning | |
CN203350652U (en) | Arbitrarily extensible multi-relay circuit control system | |
CN107346295A (en) | A kind of data transmission cable and data transmission method | |
CN201878131U (en) | Matrix key and light-emitting diode (LED) scanning circuit | |
CN202145647U (en) | Protocol converter | |
CN201667071U (en) | Signal transfer system | |
CN204783775U (en) | Intelligence control by temperature change speed governing fan | |
CN205959158U (en) | Automatic switch circuit and display of display | |
CN104767514A (en) | Integrated circuit pin multi-mode representing method and external circuit thereof | |
CN100440122C (en) | Signal acquisition circuit | |
CN213426140U (en) | Level conversion device capable of controlling communication interface | |
CN2414437Y (en) | Reprogrammable universal remote controller | |
CN109257034B (en) | PWM modulation circuit based on data control | |
CN107342765A (en) | A kind of design with flexible adjustable divider ratio function digit frequency divider | |
CN105322950B (en) | Multichannel final election device | |
CN212541068U (en) | Household appliance control platform with Internet of things function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190115 Termination date: 20210702 |