Static Display Interface and Programming Analysis of LED Nixie Tube

In single chip microcomputer system, led nixie tube display is often used to display various numbers or symbols. Because it has the characteristics of clear display, high brightness, low voltage and long service life, it is widely used.

Remember the "matchstick game" we played when we were children? Several matchsticks can be combined to form a variety of graphics. In fact, led nixie tube display is such a thing.

Eight Segment LED nixie tube display

MCU static display interface

The eight Segment LED nixie tube display is composed of eight light-emitting diodes. In the base, seven long strip-shaped light-emitting tubes are arranged in the shape of "day". Another dot shaped light-emitting tube is used to display the decimal point in the lower right corner of the nixie tube display. It can display various numbers and some English letters. Led nixie tube display has two different forms: one is that the anodes of 8 light-emitting diodes are connected together, which is called common anode led nixie tube display; The other is that the cathodes of 8 light-emitting diodes are connected together, which is called common cathode led nixie tube display.

The name and arrangement position of each stroke segment of LED nixie tube display with common Yin and common Yang structure are the same. When the diode is turned on, the corresponding stroke segments are illuminated, and various characters are displayed by the combination of the illuminated stroke segments. Eight stroke segments hgfedcba correspond to D7 D6 D5 D4 D3 D2 D1 d0 of one byte (8 bits), so the font code of the character to be displayed can be represented by an 8-bit binary code. For example, for the common cathode led nixie tube display, when the common cathode is grounded (zero level) and the anode hgfedcba sections are 011011, the nixie tube display displays the "P" character, that is, for the common cathode led nixie tube display, the font code of the "P" character is 73h. If it is a common anode led nixie tube display, the common anode is connected to high level, and the font code of "P" character shall be 10001100 (8CH). It must be noted here that in order to facilitate wiring, many products often do not correspond to the relationship between fields and bits in a regular way. At this time, the font code must be designed according to the wiring. We will give a routine later.

In the application system of single chip microcomputer, there are two common methods for nixie tube display: static display and dynamic scanning display.

The serial port mode of MCS-51 single chip microcomputer is shift register mode, 6 pieces of 74LS164 are connected externally as the static display interface of 6-bit led nixie tube display, RXD of 8031 is used as the data output line and TXD is used as the shift clock pulse. 74LS164 is a TTL unidirectional 8-bit shift register, which can realize serial input and parallel output. Among them, a and B (pins 1 and 2) are serial data input terminals. The two pins input signals according to the logic and operation law. When one input signal is common, it can be connected in parallel. T (pin 8) is the clock input terminal, which can be connected to the TXD terminal of the serial port. When the rising edge of each clock signal is added to the t end, the shift register is moved by one bit. After 8 clock pulses, all 8-bit binary numbers are moved into 74LS164. R (pin 9) is the reset end. When r = 0, each bit of the shift register is reset to 0. Only when r = 1, the clock pulse works. The parallel output terminals of Q1... Q8 (pins 3-6 and 10-13) are respectively connected to the corresponding pins of hg--- a segments of LED nixie tube display. The 74LS164 can also be introduced as follows: the so-called clock pulse end actually requires high, low, high and low pulses. No matter how the pulse comes, for example, we use a wire, one end is connected to t, the other end is held by hand, and the high level and low level are connected respectively. That is to give the clock pulse and obtain the clock pulse at the moment of 74LS164 (to be clear, it is at the edge of the pulse) if the data input terminal (pins 1 and 2) If it is a high level, a 1 will enter the 74LS164. If the data input is a low level, a 0 will enter the 74LS164. After eight pulses are given, the first data entering the 74LS164 reaches the highest level, and then what happens to another pulse? Another pulse, the first pulse will move out of the highest level, just like the station platoon When the team buys tickets, the railing is so long. If you want to go in from the back, you must go out from the front.

After understanding this point, let's look at the circuit. Six pieces of 7ls164 are connected in series, and the clock ends are connected together. In this way, when eight pulses are input, the data output from the RXD end of the single chip microcomputer enters the first piece of 74LS164. When the second eight pulses arrive, the data enters the second piece of 74LS164, and the new data enters the first piece of 74LS164. In this way, When the sixth eight pulses are completed, the data sent for the first time is sent to the leftmost 164, and other data appears in the first, second, third, fourth and fifth 74LS164 in turn. There is a problem. When the first pulse arrives, what are the other chips doing except receiving data in the first 74LS164? They are also receiving data, because their clock ends are connected together Yes, but the data has not been sent to other chips. What data are they receiving?

In fact, the so-called data is just a statement. In fact, it is the level. When the first pulse arrives, the first piece 164 certainly receives data from the single chip microcomputer, and other pieces are also connected to the Q8 of the previous piece, and Q8 is a wire. In the digital circuit, it can only have two states: low level or high level, that is, "0" and "1" So its next 74LS164 is also receiving data. It only receives 0 or 1. This problem is explained here. Some friends may ignore it, but some friends may still not know it. This actually involves the essence of numbers. If you don't understand it, please think carefully, find some numbers of digital circuits and understand the working principle of 164, Let's look at this problem again. Be sure to understand it. If you understand this, your level will be higher than the beginning learner and you can be called a beginner.

Entry: put the number to be displayed in 6 units of display buffer 60h-65h respectively, and correspond to each nixie tube led0-led5 respectively.

Exit: convert the 6 numbers preset in the display buffer into corresponding display font codes, and then output them to the nixie tube display for display.

The LED display program of single chip microcomputer is as follows:

Disp: mov scon, #00h; initialize serial port mode 0

Mov R1, #06h; display 6 digits

Mov R0, #65h; 60h-65h is the display buffer

Mov dptr, #segtab; entry address of font table

LOOP:

Mov a, @ R0; take the highest data to be displayed

MOVC a, @ a dptr; look up the table to get the font code

Mov SBUF, a; send serial port display

Delay: JNB Ti, delay; wait for sending

CLR Ti; clear send flag

Dec R0; the pointer moves down one bit, ready to take down a number to be displayed

Djnz R1, loop; until all 6 data are displayed.

RET

Settab: font table, which was introduced earlier. We will introduce the production of font table later.

DB 03H 9FH 27H 0DH 99H 49H 41H 1FH 01H 09H 0FFH

; 0 1 2 3 4 5 6 7 8 9 blanking code

Main program for single chip microcomputer display test

ORG 0000H

AJMP START

ORG 30H

START: MOV SP,#6FH

MOV 65H,#0

MOV 64H,#1

MOV 63H,#2

MOV 62H,#3

MOV 61H,#4

MOV 60H,#5

LCALL DISP

SJMP $

If the nixie tube is arranged as shown in the figure, the above main program will display 543210. Think about it. How to send data if 012345 is to be displayed?

Next, let's analyze the making of font table. Let's look at the above "standard" graphics first. Write the corresponding relationship between data bits and font and make a table as follows (set it as common Yang type, that is, when the corresponding output bit is 0, the pen segment is bright)

How about the font table? Just make a table like this. Write the 0 and 1 of the corresponding bits according to the requirements (0 or 1). Do an exercise and write the font code of a-f.

If the order of wiring is disrupted for the convenience of wiring, how to connect the font table? It is also very simple and the same list. Take the new experimental board as an example, common Yang type. The wiring is as follows:

P0.7 P0.6 P0.5 P0.4 P0.3 P0.2 P0.1 P0.0

C E H D G F A B

Then the font code is as follows:

;0 00101000 28H

;1 01111110 7EH

;2 10100100 0A4H

;3 01100100 64H

;4 01110010 72H

;5 01100001 61H

;6 00100001 21H

;7 01111100 7CH

;8 00100000 20H

;9 01100000 60H

As an exercise, write the font code of a-f.

Originally, this is to explain the static interface of single-chip microcomputer nixie tube display. This should be the end, but I also want to talk about the essence of numbers mentioned above. There are some terms and nouns in single-chip microcomputer that originally help us understand things, but sometimes we will be confused by the related semantics of these terms, so that we can't further understand their essence Only by deeply understanding the working characteristics of 74LS164 can we really understand what serial data is.

get in touch with us
مقالات مقترحة
What Are the Advantages of LED Light Source DLP Splicing Products
As a new large screen video technology, LED light source DLP splicing products have always been one of the key industrial innovations concerned by the industry. The adoption of sub era light source LED technology is not only a simple change in light source technology, but also will fundamentally change the practical performance of DLP splicing products, and even create many new application modes. So, what unexpected new surprises will the new LED light source DLP splicing bring to industry customers?Lower system cost of ownershipThe first significant change in the application of LED light source to DLP splicing wall products is that the cost of users is significantly reduced. Although the use of LED technology will increase the first investment of DLP splicing wall project by 30%, the service life of LED light source reaches 60000 hours, which is about 20 times that of traditional mercury lamp. In other words, the customer's lifetime hit on the DLP splicing wall will save at least 20 bulb replacement costs. This cost can not only offset the increase of DLP splicing unit cost caused by LED technology, but also "save a lot of investment".Another feature of LED light source technology is that the three primary colors emit light independently. This makes the DLP projection system no longer need the previous color wheel beam splitter. As a mechanical operation product, the maintenance and replacement frequency of color wheel is also an important part of customer cost. Although color wheel components are not the core consumables of DLP splicing wall, the economy of LED light source products without color wheel can not be ignored.The long-life LED light source also greatly reduces the maintenance frequency of DLP splicing wall. The annual maintenance quantity can be reduced by at least 50%. This will also serve as an important "money saving" node and become one of the important added values for customers to purchase LED light source products. In addition, as an efficient light source product, LED will also bring higher luminous efficiency and higher light utilization, thus reflecting another part of the "low-cost" characteristics of saving electricity.Higher system reliabilityLED light source products are solid-state cold light source products. The utility model has the advantages of high working efficiency, low heat generation and less accidental damage in solid state. The traditional mercury lamp light source has the same vulnerability as an ordinary electric bulb. Its product temperature is very high in the high-light working state, and it is more likely to be damaged, burned or burst due to accidents. The solid-state emission of LED light source significantly increases the stability of the light source itself.Different from traditional mercury lamp products, LED light source is driven by low-voltage DC pulse. The power supply part does not contain high voltage and high current components, so the service life and stability of the power supply are more controllable. Combined with the natural luminescence of the three primary colors of the LED light source, there is no need for mechanical color wheel components for light splitting, which makes the LED light source more stable than the traditional mercury lamp in terms of power supply, control and light splitting.The three primary colors of LED light source work independently, which also makes the whole machine can still display the picture in the lack of color even if a "bulb" fails. This is in sharp contrast to the situation that the traditional single lamp DLP splicing unit cannot work once the bulb is burned out. It can display without color, so that once the light source appears unexpectedly, the LED light source can minimize the loss of customers to the greatest extent, or even no loss. Compared with the simple single lamp DLP splicing unit, the reliability of LED light source products is closer to the dual lamp backup system.Green environmental protection and low carbonLED light source technology is a famous green environmental protection technology. The characteristics of its semiconductor process make it easier to control toxic metals. Unlike the traditional mercury lamp, once damaged, it is likely to cause the leakage of toxic elements in the internal mercury lamp. As a semiconductor element, LED light source can also be recycled, and important metal elements can be recycled in the smelting process again.In addition, LED light source products are also light source products with high luminous efficiency.Under the same brightness conditions, it has lower energy consumption. Moreover, the LED light source emits light in digital pulse mode with independent three primary colors. The LED light source works only when the DLP light valve chip DMD needs light of a certain color. This is quite different from the continuous ignition mode of the traditional mercury lamp. LED light source does not work continuously. It only makes valuable luminescence when needed, which also makes it better meet the needs of low-carbon and environmental protection for future economic development.Bright colors make the picture more gorgeous
Holographic Cloud HCDP Online Display Platform Provides Low Data Rate Internet Access for Mobile Pho
What Are Your Feelings on My Remember Fathers Day Poem?
7 Reasons Dudes Should Be the Ones to Put the Toilet Seat Back Down Every. Single. Time.
If the Abs Doesnt Work Does That Mean the Traction Control Doesnt Either ?
MediaTek Helio X30 Specification Leakage, Transmission and Production TSMC 10 Nm
Car Parking Light Bulb Question?
Dear Chefs: Should I Use Extra Virgin Olive Oil with My Gourmet Pasta Or Regular Olive Oil?
What Is a Quartz Crystal Oscillator_ the Frequency of Quartz Crystal Oscillator Is Affected by the E
The next Generation VMC Will Realize by Wire Flight Technology and Autonomous Flight
related searches
Let's Talk About the Application of Thermal Conductive Silica Gel in LED Lighting Industry
7 Tips to Help You Sell Your Farm Fresh Eggs for More Money
Need Help Finding Kitchen Items and Sofa?
Can I Heat an Outside Chicken Coop with an Underground Heating System?
How Can I Get My Foundation Brush Clean?
My Boyfriend Wants to Get Married? We Known Each Other for a Year?
My Mom Won't Let Me Go to School Tomorrow?
Pease I Need Help Fast, I Have a Peugeot 306 1.4 Fuel Injector?
Physics Problem on Potential and Kinetic Energy...?