CS215918B1 - Digital circuit for converting BCD to binary - Google Patents
Digital circuit for converting BCD to binary Download PDFInfo
- Publication number
- CS215918B1 CS215918B1 CS710579A CS710579A CS215918B1 CS 215918 B1 CS215918 B1 CS 215918B1 CS 710579 A CS710579 A CS 710579A CS 710579 A CS710579 A CS 710579A CS 215918 B1 CS215918 B1 CS 215918B1
- Authority
- CS
- Czechoslovakia
- Prior art keywords
- bcd
- binary
- units
- code
- digital circuit
- Prior art date
Links
Landscapes
- Communication Control (AREA)
Abstract
Vynález se týká digitálního obvodu, převádějícího čtyřmístné číslo, zapsané v kódu BCD na totéž číslo zapsané dvojkovým kódem. Podstata vynálezu spočívá v tom, že sestává ze dvou bloků na sčítání cifer řádů jednotek a stovek, jejichž výstupy jsou napojeny na blok sčítání jednotek a desítek. Obvod lze využít v zařízeních, zajišíujících komunikaci např. měřičů, indikátorů a přepínačů, které mají výstup v BCD kódu, s počítači, paměími, indikátory a pod., které mají digitální vstup v dvojkovém kódu.The invention relates to a digital circuit that converts a four-digit number written in BCD code to the same number written in binary code. The essence of the invention is that it consists of two blocks for adding the digits of the units and hundreds, the outputs of which are connected to the block for adding the units and tens. The circuit can be used in devices that ensure communication, for example, of meters, indicators and switches that have an output in BCD code with computers, memories, indicators, etc. that have a digital input in binary code.
Description
(54)(54)
Digitální obvod pro převod kódu BCD na dvojkovýDigital circuit for converting BCD to binary code
Vynález se týká digitálního obvodu, převádějícího čtyřmístné číslo, zapsané v kódu BCD na totéž číslo zapsané dvojkovým kódem.The invention relates to a digital circuit converting a four-digit number written in a BCD code to the same number written in a binary code.
Podstata vynálezu spočívá v tom, že sestává ze dvou bloků na sčítání cifer řádů jednotek a stovek, jejichž výstupy jsou napojeny na blok sčítání jednotek a desítek.The essence of the invention consists in that it consists of two blocks for adding up the digits of the order of units and hundreds, whose outputs are connected to the block of addition of units and tens.
Obvod lze využít v zařízeních, zajišíujících komunikaci např. měřičů, indikátorů a přepínačů, které mají výstup v BCD kódu, s počítači, paměími, indikátory a pod., které mají digitální vstup v dvojkovém kódu.The circuit can be used in devices providing communication eg meters, indicators and switches, which have output in BCD code, with computers, memories, indicators, etc., which have digital input in binary code.
213 918213 918
OBR. 1GIANT. 1
215 91.8215 91.8
215 918215 918
Vynález se týká digitálního obvodu, převádějícího čtyřmístné číslo, zapsané v kódu BCD na totéž číslo zapsané dvojkovým kódem,The invention relates to a digital circuit converting a four-digit number written in a BCD code to the same number written in a binary code,
Měřioí přístroje bývají opatřeny výstupem, který udává výsledek v digitálním tvaru v kódu BOD, což umožňuje přehledný výstup čísla v desítkovém zápisu. Naproti tomu pro další zpracování počítačem bývá vyžadován zápis ve dvojkovém kódu, vhodnějším pro digitální operace* V takovém případě je nutno provést konverzi kódu BCD na dvojkový kód. Pro běžné přístroje přitom plně postačuje převod čtyř desítkových čísel, odpovídající přesnosti údaje 0,05 až 0,5 %·The measuring instruments are usually equipped with an output, which gives the result in digital form in the BOD code, which enables a transparent output of the number in decimal notation. On the other hand, binary code entry is more suitable for further computer processing. * In this case, it is necessary to convert the BCD code to binary code. Conversion of four decimal numbers, corresponding to an accuracy of 0.05 to 0.5% ·
Dosud se převod provádí buň pomocí sériového zpracování realizovaného počítačem, například mikroprocesorem, nebo paralelním čítačem BCD a dvojkovým anebo paralelním zpracováním pomocí speciálního převodníku, konstruovaného z obvodů na bázi paměti ROM, například typu '184. Doporučené zapojení podle firemního katalogu vyžaduje jedenáct obvodů typu '184 a převádí čtyřmístné číslo z kódu BCD do dvojkového v typickém čase 196 ns.To date, the conversion is performed by a cell by means of a serial processing by a computer, for example a microprocessor, or a parallel BCD counter, and a binary or parallel processing using a special converter constructed from ROM-based circuits, such as '184'. The recommended wiring according to the company catalog requires eleven '184 circuits and converts a four-digit number from BCD to binary at typical 196 ns.
Dosavadní stav techniky zlepšuje digitální obvod pro převod BCD kódu na dvojkový podle vynálezu. Jeho podstata spočívá v tom, že sestává ze dvou bloků na sčítání cifer řádů jednotek a stovek, jejichž výstupy jsou napojeny na blok sčítání jednotek a desítek.The prior art improves the digital circuit for converting BCD code to binary code according to the invention. Its essence lies in the fact that it consists of two blocks for addition of digits of the order of units and hundreds, whose outputs are connected to the block of addition of units and tens.
Vhodným sdružením argumentů a užitím šumátorů se realizuje převod z kódu BCD do dvojkového.Conversion of the BCD code to the binary one is done by appropriate grouping of arguments and by using noise controllers.
Výhodou vynálezu proti sériovému zpracování je vyšěí rychlost a dále skutečnost, že jde o kombinační obvod, nevyžadujíoí synchronizační signály a přídavné paměti. Proti dosavadnímu paralelnímu zpraoování obvody typu '184 má digitální obvod podle vynálezu nižší počet integrovaných obvodů, vyšší rychlost - pro obvody typu '283 resp. 's 283 jsou typické časy 89 ns resp. 60 ns proti 196 ns pro obvody typu '184· Další výhodou je nižší cena a snadnější dosažitelnost obvodů '83 resp· '283.The advantage of the invention over serial processing is the higher speed and the fact that it is a combination circuit, does not require synchronization signals and additional memories. In contrast to the prior art paralleling of the '184' circuit, the digital circuit according to the invention has a lower number of integrated circuits, a higher speed - for the '283 < 's 283 are typical times of 89 ns resp. 60 ns vs 196 ns for '184' circuits · Another advantage is lower cost and easier access to '83 or 283 'circuits.
Vynález a jeho výhody jsou blíže objasněny na příkladu provedení pomocí připojeného výkresu, na němž obr. 1 znázorňuje blokové schéma zapojení, obr. 2 znázorňuje vnitřní struk turu bloku na sčítání oifer řádu jednotek á stovek a obr. 3 znázorňuje vnitřní strukturu bloku na sčítání jednotek a desítek.BRIEF DESCRIPTION OF THE DRAWINGS The invention and its advantages are illustrated in more detail with reference to the accompanying drawing, in which: Figure 1 shows a block diagram, Figure 2 shows the internal structure of a unit for counting hundreds of units and Figure 3 shows the internal structure of a unit for counting units and tens.
Digitální obvod podle vynálezu na obr. 1 sestává z dvou bloků £ a 2 na sčítání cifer řádů jednotek a stovek', jejichž výstupy jsou napojeny na blok £ sčítání jednotek a desítek. Převáděné číslo je zobrazeno v BCD kódu šestnáctibitovým zápisem a v této formě je přivedeno na čtyřbitové vstupy Ϊ a Ϊ obou bloků £ a £ na sčítání cifer řádu jednotek a stovek.The digital circuit according to the invention in FIG. 1 consists of two blocks 8 and 2 for counting unit and hundreds of digits, the outputs of which are connected to the block and unit counting tens. The converted number is displayed in the BCD code by a 16-bit notation and in this form is fed to the four-bit inputs Ϊ and Ϊ of both blocks £ and £ to sum the digits of the order of units and hundreds.
Je-li x resp. y číselná hodnota zobrazená v kódu BCD na čtyřbitovýoh vstupech X resp.If x resp. y numeric value displayed in the BCD code on the four-bit X or X inputs.
Y a je-li z číselná hodnota zobrazená binárně na desetlbitovém výstupu Z, pak platí z «Y and if z is a numerical value displayed binary on the 10-bit Z output, then z is valid «
100x + y.100x + y.
Zápis je přiveden z desetibitového výstupu Z prvního bloku £ na sčítání oifer řádu jednotek a stovek na první desetibltový vstup V bloku £ sčítání jednotek a desítek a z deset ibitového výstupu 2 druhého bloku 2 na sčítání oifer řádu jednotek a stovek na druhý desetibltový vstup W bloku £ sčítání jednotek a desítek. Je-li v resp. v číselná hodnota zobrazená binárně na desetibltovýoh vstupeoh χ resp. W a u číselná hodnota zobrazená bi2The entry is taken from the 10-bit output From the first block £ to add units of hundreds of order and hundreds to the first 10-bit input in the block £ to add units and tens and from 10 bit output 2 of the second block 2 addition of units and tens. If it is resp. v A numerical value displayed binary on a 10-bit input. W and u the numeric value displayed by bi2
215 918 námě na čtmáctibitovém výstupu U, pak platí u 10v + w.215 918 at the 8-bit U output, then it applies to 10v + w.
Vnitřní zapojení bloků na sčítání cifer řádu jednotek a stovek resp. desítek a tisíců je znázorněno na obr. 2. Jednotlivé bity až Χθ resp. až Υθ vstupujících oifer x resp.Internal wiring of blocks to sum the digits of the order of units and hundreds respectively. The individual bits up to Χθ resp. to Υθ of the input variables x resp.
y jsou zavedeny na. sumátory těchto bloků i a 2 na ečítání cifer řádu jednotek a stovek podle binárního rozkladu 100-64+32+4. Na nevyužité vstupy je zavedena logická nula 0. Čárkovaně je naznačeno sdružení čtyř jednobitových sumátorů do jednoho běžného čtyřbitového sumátoru. Součet vyjádřený jednotlivými bity Zg až Ζθ vystupujícího čísla je proveden v jediné sčítaoí úrovni díky výhodnému rozkladu.y are introduced at. summation of these blocks i and 2 for reading digits of the order of units and hundreds according to binary decomposition 100-64 + 32 + 4. A logical zero of 0 is introduced for unused inputs. A dashed line indicates the association of four single-bit summers into one common four-bit summation. The sum expressed by the individual bits Zg to θ of the output number is performed at a single additive level due to the advantageous decomposition.
Vnitřní zapojení bloku 2. sčítání jednotek a desítek je naznačeno na obr. 3. Jednotlivé bity V^ až νθ resp. ϊθ až ϊθ vstupujících čísel v resp. w jsou zavedeny na sumátory podle binárního rozkladu 10 8 + 2 a na nevyužité bity je zavedena logická nula. Součet je proveden ve dvou sčítacíoh úrovních, takže celkový převod se realizuje pouze ve třech sčítacích úrovních a je vyjádřen jednotlivými bity —13 až U*) na čtmáctibitovém výstupu bloku 2 sčítání jednotek a desítek. Vhodným rozkladem je dosažena úspora počtu obvodu, času převodu i ceny obvodu podle vynálezu.The internal wiring of the second unit of addition of tens and units is shown in Fig. 3. The individual bits V ^ to νθ resp. ϊθ to ϊθ of input numbers in resp. w are applied to the summers according to binary decomposition 10 8 + 2 and logic zero is applied to the unused bits. The sum is performed in two addition levels so that the total conversion is only performed in three addition levels and is expressed by individual bits –13 to U *) on the 7-bit output of block 2 of unit and tens counting. By suitable decomposition, the number of circuits, the time of conversion and the cost of the circuit according to the invention are saved.
Digitální obvod pro převod kódu BCD na dvojkový je použitelný v zařízeních, zajištujících komunikaci například měřičů, indikátorů a přepínačů, které mají výstup v BCD kódu, s počítači, paměími, indikátory a podobně, které mají digitální vstup v dvojkovém kódu.A digital BCD to binary code circuit is useful in devices providing, for example, meters, indicators, and switches that output BCD code to computers, memories, indicators, and the like that have digital input in binary code.
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CS710579A CS215918B1 (en) | 1979-10-19 | 1979-10-19 | Digital circuit for converting BCD to binary |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CS710579A CS215918B1 (en) | 1979-10-19 | 1979-10-19 | Digital circuit for converting BCD to binary |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CS215918B1 true CS215918B1 (en) | 1982-10-29 |
Family
ID=5419562
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CS710579A CS215918B1 (en) | 1979-10-19 | 1979-10-19 | Digital circuit for converting BCD to binary |
Country Status (1)
| Country | Link |
|---|---|
| CS (1) | CS215918B1 (en) |
-
1979
- 1979-10-19 CS CS710579A patent/CS215918B1/en unknown
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| GB1254722A (en) | Improved logical shifting devices | |
| CS215918B1 (en) | Digital circuit for converting BCD to binary | |
| US3691554A (en) | Code converters | |
| GB811267A (en) | Analog to digital translators | |
| GB792513A (en) | Counting register and adder therefor | |
| SU1670684A1 (en) | Device for comparison of two binary numbers | |
| US3207888A (en) | Electronic circuit for complementing binary coded decimal numbers | |
| US3798434A (en) | Electronic device for quintupling a binary-coded decimal number | |
| US3611349A (en) | Binary-decimal converter | |
| JPH04500572A (en) | Circuit device for addition or subtraction of operands coded in BCD code or dual code | |
| US3576562A (en) | Decoding arrangement for binary code decimal groups | |
| SU401994A1 (en) | DEVICE FOR DETERMINATION OF MINORANT BINARY CODES | |
| US3867617A (en) | Conversion unit for electrical signal sequences | |
| SU1072260A1 (en) | Voltage-to-decimal-code converter | |
| US4301504A (en) | Input-output apparatus for a microprocessor | |
| JPH0381175B2 (en) | ||
| GB965749A (en) | Improvements relating to devices for dividing numbers | |
| US4376275A (en) | Very fast BCD-to-binary converter | |
| US3649823A (en) | Digital translator | |
| SU983566A1 (en) | Frequency digital measuring device | |
| SU1587637A1 (en) | Code converter | |
| SU424142A1 (en) | DEVICE COMPARISON OF TWO NUMBERS IN DIGITAL CODE | |
| JPH0997165A (en) | Pure binary conversion circuit for binary-coded decimal and binary-coded decimal conversion circuit for pure binary | |
| SU427340A1 (en) | DEVICE FOR ISOLATION OF THE YOUNGER SIGNIFICANT DISCHARGE | |
| SU911725A1 (en) | Converter of position code to libau-kraio code |