In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to realize static digital tube circuit with 51 single-chip microcomputer". In daily operation, I believe that many people have doubts about how to realize static digital tube circuit with 51 single-chip microcomputer. I have consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to realize static digital tube circuit with 51 single-chip microcomputer". Next, please follow the editor to study!
Schematic diagram
First take a look at the schematic diagram of this part:
As can be seen from the schematic diagram, the eight digital tubes are not directly connected to the IO port of the single-chip microcomputer, but use the 74HC595 chip, so if we want to drive the digital tube, we must understand what the chip is. Most development boards do not use this chip.
74HC595
The function of 74HC595 chip is to convert serial signal into parallel signal. About the detailed information and timing of this chip, I do not describe in detail here, you go to ask Baidu, Baidu a lot of information.
Just talk about the steps of using 74HC595 chip.
Step 1: move the unique data to be entered into the 74HC595 data input. Send bit data to the 595 chip.
The second step: gradually move the bit data into the 74HC595, that is, the SCL produces a rising edge, and the data on the SI is moved into the 74HC595 shift register, sending the low bit first, then the high bit.
Step 3: output data in parallel, that is, data output. The RCK generates a rising edge to feed the data that has been moved into the data register on the QA-QH into the output latch.
According to the schematic diagram, the digital tube driver is designed to two 74HC595 chips, the output of one chip is used to control the bit selection of the digital tube, the output of the other chip controls the segment selection of the digital tube, the 12 pins of the two chips are simultaneously controlled by the P2.5 pin of the single chip, the 11 pins of the two chips are simultaneously controlled by the P2.6 pin of the single chip, and the segment selection data and position selection data are sent through the single chip pin P2.7. Under the control of the clock pin P2.6, when the rising edge of P2.6 appears, the single-chip microcomputer sends data to the 505 chip through the P2.7 pin. The bit selection data should be sent first.
According to the 8 rising edges produced by the P2.7 pin, it is stored on the Q7--Q0 from high position to low position at one time. I feel that having said so much, some people are already confused and feel very annoyed. Forget it. Just go to the code and have a look at it. I will only show you the driver code. As for the main main function, I believe you can do it yourself:
At this point, on "51 single-chip microcomputer how to achieve static digital tube circuit" study is over, I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.