Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


On the binary system and codes. Radio - for beginners

Radio - for beginners

Directory / Radio - for beginners

Comments on the article Comments on the article

In digital technology, the transmitted, received or converted information is expressed by a set of symbols of the binary number system - a binary code.

Any decimal number familiar to us can be represented as a set of ones and zeros of this system. The decimal number 7, for example, in the binary system is written like this: 0111. Here, the leftmost character is the most significant bit, and the rightmost character is the least significant bit of a four-bit binary code number. The translation of this binary number into a decimal number is performed in the following order: 0111=0X23+1X22+1X21+1x20 =0+4+2+1 =7.

The basis for converting a binary number to decimal is the number 2. The code itself in this case is called the binary natural or code 8-4-2-1.

Table 1 will help you convert decimal numbers to binary and vice versa within a four-digit code.

Table 1

Decimal Binary number
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
10 1010
11 1011
12 1100
13 1101
14 1110
15 1111

In order to more firmly fix in memory the principle of encoding digital information in a binary system, we propose to experimentally analyze the operation of a four-bit binary counter, assembled, for example, on JK flip-flops according to the circuit shown in Fig. one.

About the binary system and codes
Rice. 1 Four-digit counter

Mount all parts of the counter on the breadboard. Connect LEDs or other indicators to the direct outputs of all triggers, by which it would be possible to visually observe the logical states of the triggers. The function of a source of input counting pulses of long duration is performed by an RS flip-flop assembled on logical elements 2I-NOT DD1.1, DD1.2 and controlled by the SB1 button.

Prepare a table (Table 2) in which you will record the logical states of the triggers of the pulse counter with the symbols of the binary number system. In the leftmost column "Count" immediately write down the sequence numbers of input pulses from 0 to 15. In the second column from the left (Q1) write down the logical state of the first trigger at each next pulse, in the third column (Q2) - the logical state of the second trigger, etc. d.

So, check the installation, the reliability of soldering and, if you do not find any errors, turn on the power. In this case, some LEDs may light up, signaling that the triggers related to them were in a single state at the time of power-up. Press the SB2 button to. apply a low-level voltage to the input R of the triggers and thereby set all the triggers of the counter to the zero state. Now all indicators are off. This logical state of all flip-flops of a four-digit pulse counter is indicated in the table by zeros.

Table 2

Account Q1 Q2 Q3 Q4
0 0 0 0 0
1 1 0 0 0
2 0 1 0 0
3 1 1 0 0
4 0 0 1 0
5 1 0 1 0
6 0 1 1 0
7 1 1 1 0
8 0 0 0 1
9 1 0 0 1
10 0 1 0 1
11 1 1 0 1
12 0 0 1 1
13 1 0 1 1
14 0 1 1 1
15 1 1 1 1

Now briefly press and release the SB1 button. In this case, the RS-trigger will switch from the zero state to the single state itself and, by means of a high-level voltage at the direct output, will switch the first trigger of the counter to the same state. As a result, the HL1 LED will turn on. The remaining triggers of the counter will keep the zero state, and their LEDs, of course, should not shine.

Record this state of the triggers in the table: in the Ql-1 column, in the rest-0. Press the second time on the SB1 button, simulating the second input pulse. Immediately the first LED will go out and the second one will turn on - HL2. Now the second trigger is in the single state, and the rest are in the zero state. Write these logical states of the flip-flops to the line corresponding to the second input pulse.

The third input pulse will again set the first trigger of the counter to a single state and will not change the state of the second trigger, so the indicators HL1 and HL2 will light up. In the table, write down this state of the counter in the following form: 1100. At the fourth input pulse, only the HL3 LED will light, and the entry 0010 should appear in the table.

So, slowly, by pressing the SB1 button and reading by the glow of the trigger status indicators, you will gradually fill in the entire table of logical states of the four-digit counter. After that, disconnect the RS-trigger from the input of the counter and apply a sequence of pulses to it from the generator, following at a frequency of 1 ... 2 Hz. The order of plowing the indicators, which at such a frequency can be traced, will confirm your records characterizing the operation of a binary four-digit counter.

Let's summarize. The first trigger of your advanced counter is the LSB, and the fourth is the MSB of the four-digit counter. Accordingly, the columns of symbols of logical states of triggers are located in the table. But in the binary system, the characters of the lower digits in relation to the older ones are located on the right side. Therefore, in order to determine the code state of the counter from the table you compiled for each of the fifteen input pulses, the entries in it should be read from right to left or the table should be flipped in a mirror.

The result is: at the first input pulse - 0001, at the second - 0010, at the third - 0011, etc. until the fifteenth pulse, when the code state of the counter is 1111, after which the pulse count is repeated. In short, this meter status code table, but of course upside down..

Similar experiments with the corresponding outputs can, of course, be carried out with a four-digit counter on D-flip-flops, connecting their inverse outputs to the D inputs so that the flip-flops work in counting mode. It is useful to conduct such a study with the K155IE2 chip. Turning it on according to the scheme shown in Fig. 2, it is possible to compile a table of code states of such a pulse counter from 0 to 9.

About the binary system and codes
Rice. 2 Experience with the K155IE2 chip

As you already know, the maximum decimal number that can be expressed in binary four-digit code is 15. And if this number is three-digit, for example, 137? In binary code, it will look cumbersome and not always convenient for processing: 10001001. Therefore, in digital technology, in addition to binary code, they also use binary-decimal code, where each digit of a decimal number is represented in binary form. With binary coded decimal code, the same three-digit number 137 looks like this:

0001

0011

0111

1

3

7

And how are the binary or binary-decimal code states of the pulse counters translated into digits of the decimal number system? This is done with the help of decoders and sign-synthesizing indicators.

See other articles Section Beginner radio amateur.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Traffic noise delays the growth of chicks 06.05.2024

The sounds that surround us in modern cities are becoming increasingly piercing. However, few people think about how this noise affects the animal world, especially such delicate creatures as chicks that have not yet hatched from their eggs. Recent research is shedding light on this issue, indicating serious consequences for their development and survival. Scientists have found that exposure of zebra diamondback chicks to traffic noise can cause serious disruption to their development. Experiments have shown that noise pollution can significantly delay their hatching, and those chicks that do emerge face a number of health-promoting problems. The researchers also found that the negative effects of noise pollution extend into the adult birds. Reduced chances of reproduction and decreased fertility indicate the long-term effects that traffic noise has on wildlife. The study results highlight the need ... >>

Wireless speaker Samsung Music Frame HW-LS60D 06.05.2024

In the world of modern audio technology, manufacturers strive not only for impeccable sound quality, but also for combining functionality with aesthetics. One of the latest innovative steps in this direction is the new Samsung Music Frame HW-LS60D wireless speaker system, presented at the 2024 World of Samsung event. The Samsung HW-LS60D is more than just a speaker system, it's the art of frame-style sound. The combination of a 6-speaker system with Dolby Atmos support and a stylish photo frame design makes this product the perfect addition to any interior. The new Samsung Music Frame features advanced technologies including Adaptive Audio that delivers clear dialogue at any volume level, and automatic room optimization for rich audio reproduction. With support for Spotify, Tidal Hi-Fi and Bluetooth 5.2 connections, as well as smart assistant integration, this speaker is ready to satisfy your ... >>

A New Way to Control and Manipulate Optical Signals 05.05.2024

The modern world of science and technology is developing rapidly, and every day new methods and technologies appear that open up new prospects for us in various fields. One such innovation is the development by German scientists of a new way to control optical signals, which could lead to significant progress in the field of photonics. Recent research has allowed German scientists to create a tunable waveplate inside a fused silica waveguide. This method, based on the use of a liquid crystal layer, allows one to effectively change the polarization of light passing through a waveguide. This technological breakthrough opens up new prospects for the development of compact and efficient photonic devices capable of processing large volumes of data. The electro-optical control of polarization provided by the new method could provide the basis for a new class of integrated photonic devices. This opens up great opportunities for ... >>

Random news from the Archive

Ultrabook Lenovo Yoga 2 Pro with IPS 3200x1800 screen 15.09.2013

In addition to thin mobile devices (Vibe X and S5000), Lenovo brought to IFA 2013 the second generation of Yoga hybrid ultrabook called Yoga 2 Pro. The device turned out in every sense more curious than its predecessor.

The first step is to pay attention to the display. The first model a year and a half ago received a 13,3-inch touch screen with a resolution of 1600 x 900 pixels, which looked quite good. Yoga 2 Pro boasts a similar diagonal with the highest resolution to date (in this segment) of 3200 x 1800 pixels. The display recognizes up to 10 simultaneous touches and is made using IPS technology.

Also, our Yoga Slim ultrabook has become thinner and lighter: 15,5 mm versus 17,1 mm for the first model and 1,39 kg versus 1,54 kg. Of course, Intel Haswell ULT processors up to Core i7 will act as CPUs. In addition, we know about solid-state drives up to 512 GB, keyboard backlight, support for Intel WiDi and a battery that can provide up to nine hours of battery life.

Of course, the main feature of the device in the form of transformation into a tablet (and intermediate options) has not gone away, otherwise it would not be Yoga anymore. The manufacturer has added a new software feature Lenovo Picks. Depending on what "position" the yoga ultrabook is in, different lists of applications suitable for that position will be displayed on the screen.

The novelty will be on sale in October at a price of $1100.

Other interesting news:

▪ Refractory clay supercapacitor

▪ Samsung Full Solid State Battery

▪ The smell of rain

▪ Vitamin B6 helps you remember dreams better

▪ ultrasound for diabetes

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Application of microcircuits. Article selection

▪ article Inorganic chemistry. Crib

▪ article Who, when and how first determined the size of the globe? Detailed answer

▪ article Make an air barometer. Children's Science Lab

▪ article ADC operation with COM port, a simple data acquisition system. Encyclopedia of radio electronics and electrical engineering

▪ article Stabilized power supply for six output voltages, 220 / 3,4,5,6,7.5,9,12 volts 0,25 amperes. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024