JPS6030137B2 - Binary code converter - Google Patents
Binary code converterInfo
- Publication number
- JPS6030137B2 JPS6030137B2 JP7153174A JP7153174A JPS6030137B2 JP S6030137 B2 JPS6030137 B2 JP S6030137B2 JP 7153174 A JP7153174 A JP 7153174A JP 7153174 A JP7153174 A JP 7153174A JP S6030137 B2 JPS6030137 B2 JP S6030137B2
- Authority
- JP
- Japan
- Prior art keywords
- binary code
- code
- address
- codes
- converted
- 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
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
本発明は例えば6ビットあるいは8ビットから成る2進
コードをIG隼数、文字、符号あるいはこれらの組合せ
から成る少なくとも2桁以上のコードに変換する変換装
置に関する。
以下2進コードを6ビットとし、また変換されるコード
を2桁として本発明を説明する。第1図において、1は
被変換2進コードを記憶するラッチ回路、2は前記2進
コードの上位桁すなわちZ,ヂビットを入力とする論理
ゲートであって、例えば第2図に示すように2個のィン
バータおよび4個のナンドゲートから成る。
3は4ビット2進加算器であって、前記ぞ,メビットを
除いた2進コードの各ビットを2倍して加え合せるもの
である。
4は該加算器3の5ビットの出力を入力とするカウンタ
、5は2桁目の変換後コードが読み出された後に該カウ
ソタ4に1を加えるパルス発生器、6〜9は各々8ビッ
ト32蚤地の書き込み可能な読出し専用記憶器(Pro
grammableRead OnlyMemo沙、P
−ROM)であって、各々数字、文字、符号あるいはこ
れらの組合せから成る2桁で1筋鯉のコードを夫々連続
した番地内に収納している。
また記憶器6〜9は前記カゥンタ4の出力を番地指定入
力とすると共に各付勢入力端CE端を前記論理ゲート2
の各出力端に接続している。1川ま各記憶器3〜6の1
桁ごとの出力を受取り、パルス発生器11からのクロツ
クパルスで記憶するメモリーである。
今2進コードを下表のような2桁のコード‘こ変換する
ものとする。
なお、下表中bはブランクを示す。従って前記記憶器3
には第3図に示すように16組の2桁の変換コードが各
々連続して2番地ごとに記隠れている。
勿論Aや4等がそのまま記憶されているのではなく対応
した8ビットの2進数によって記憶されている。2進コ
ードが〔000110〕で〔AB〕の2桁のコードーこ
変換する場合について説明する。
これら2進コードの上位桁すなわち公および炎ビットの
The present invention relates to a conversion device for converting a binary code consisting of, for example, 6 bits or 8 bits into a code of at least two or more digits consisting of an IG number, a character, a code, or a combination thereof. The present invention will be described below assuming that the binary code is 6 bits and the code to be converted is 2 digits. In FIG. 1, 1 is a latch circuit that stores a binary code to be converted, and 2 is a logic gate that receives the high-order digits of the binary code, that is, Z and digit bits.For example, as shown in FIG. It consists of 4 inverters and 4 NAND gates. 3 is a 4-bit binary adder which doubles each bit of the binary code except for the mebit and adds them together. 4 is a counter which inputs the 5-bit output of the adder 3; 5 is a pulse generator that adds 1 to the counter 4 after the second digit post-conversion code is read; 6 to 9 are 8 bits each 32 Flea writable read-only memory (Pro
grammableRead OnlyMemosa,P
-ROM), each of which is a two-digit code consisting of numbers, letters, codes, or a combination thereof, and stores a single carp code in consecutive addresses. Further, the memory devices 6 to 9 use the output of the counter 4 as an address designation input, and each energizing input terminal CE terminal is connected to the logic gate 2.
are connected to each output end of the 1 River and each memory device 3 to 6 1
This memory receives the output of each digit and stores it using the clock pulse from the pulse generator 11. Let us now convert the binary code into a two-digit code as shown in the table below. Note that b in the table below indicates a blank. Therefore, the memory 3
As shown in FIG. 3, 16 sets of two-digit conversion codes are successively recorded every two addresses. Of course, A, 4, etc. are not stored as they are, but as corresponding 8-bit binary numbers. A case where the binary code is [000110] and the two-digit code [AB] is converted will be explained. The upper digits of these binary codes, i.e. the public and flame bits,
〔00〕が論理ゲート2に加えられその出力端CEIの
みが0となる。
この結果記憶器6のみが付勢されて動作可能となる。加
算器3への入力ビットは〔0110〕であるからこれら
が2倍されて加え合わされた出力は〔01100〕とな
る。これがカウン夕4を介して記憶器6の入力となるか
ら最初に読み出される2桁目のコードは12番地に書込
まれていることを示しており、この12蚤地には第3図
に示す如く〔A〕(に対応するコード)が記憶されてい
る。この〔A〕がメモリー10に記憶された後パルス発
生器5からのパルスによりカウン夕4に1が加えられる
。
この結果記憶器6の入力コードは〔01101〕となる
から1桁目のコードが1群蜜地に書き込まれており、こ
こには〔B〕が記憶されていることがわかる。従ってこ
の〔B〕がメモリー9に記憶されるとコード〔AB〕が
読み出され〔000110〕が〔AB〕に変換されたこ
とになる。
以上の説明においては被変換2進コードが6ビット、変
換コードが2桁とし、記憶器6〜9が32番地としたが
、本発明はこれらの数に限定されるものではなく、例え
ば6ビット以上の2進コードでも変換加能であり、この
場合には論理ゲート2への入力ビット数を多くすると共
に記憶器の数を多くするかまたは番地数を多くすればよ
い。
また変換後のコードが3なし、し4桁の場合には各記憶
器6〜9の4番地ごとに変換後のコードの各組を記憶さ
せ、かつ加算器3で番地指定の2進コードの各ビットを
4倍した後加え合わせればよい。すなわちm(m=2,
3,4……)桁のコード‘こ変換する場合、m=2n(
n=1,2,3・・・・・・)の時には各記憶器6〜9
の2n番地ごとにm個のコードを記憶させ、かつ番地指
定の2進コードの各ビットを2n倍した後加え合てせれ
ばよい。また2n<m<2帆の時には各記憶器6〜9の
2n+1番地ごとにm個のコードを記憶させ、かつ番地
指定の2進コードの各ビットを2M1倍した後加え合わ
せればよい。以上のように本発明は予め変換後の各組の
m桁のコードが連続して記憶されている記憶器の番地を
2進コードの下位桁所定数ビットの数で指定して講出し
、以後1番地ごとのデータを(m−1)個読出して変換
するようにしたものであるから、2進IG隼変換をはじ
め2進コードから文字、符号あるいはこれらの組合わせ
コードへの変換が可能になると共にそのための構成、方
法も非常に簡単である等の効果がある。[00] is applied to logic gate 2, and only its output terminal CEI becomes 0. As a result, only the memory device 6 is energized and becomes operational. Since the input bit to the adder 3 is [0110], these bits are doubled and added, and the output becomes [01100]. This becomes the input to the memory device 6 via the counter 4, so the second digit code that is read out first indicates that it is written at address 12, and this 12-digit code is shown in Figure 3. Like [A] (the code corresponding to) is stored. After this [A] is stored in the memory 10, one is added to the counter 4 by a pulse from the pulse generator 5. As a result, the input code of the memory 6 becomes [01101], so it can be seen that the first digit code is written in the first group, and that [B] is stored here. Therefore, when this [B] is stored in the memory 9, the code [AB] is read out and [000110] is converted to [AB]. In the above description, the converted binary code is 6 bits, the conversion code is 2 digits, and the memory devices 6 to 9 are at addresses 32, but the present invention is not limited to these numbers; for example, 6 bits are used. The above binary code can also be converted and added, and in this case, it is sufficient to increase the number of input bits to the logic gate 2, as well as increase the number of memories or addresses. In addition, if the code after conversion is 3 or 4 digits, each set of converted codes is stored at every 4 addresses of each memory device 6 to 9, and the adder 3 is used to store the binary code specified by the address. All you have to do is multiply each bit by 4 and then add them together. That is, m (m=2,
When converting a 3, 4...) digit code, m=2n(
When n=1, 2, 3...), each memory device 6 to 9
m codes may be stored for each 2n address, and each bit of the binary code designated by the address may be multiplied by 2n and then added together. When 2n<m<2, m codes may be stored for each 2n+1 address in each of the memory devices 6 to 9, and each bit of the binary code designated by the address may be multiplied by 2M1 and then added. As described above, the present invention specifies in advance the address of the memory where each set of m-digit codes after conversion is stored consecutively by the number of lower digit bits of the binary code, and then Since it is designed to read and convert (m-1) pieces of data for each address, it is possible to convert binary codes to characters, codes, or combinations of these, including binary IG Hayabusa conversion. At the same time, the configuration and method for this purpose are also very simple.
第1図は本発明装置の一実施例を示すブロック図、第2
図は本発明指定手段を構成する論理ゲートの一例を示す
ブロック図、第3図は記憶手段の記憶内容を示す概略図
である。
図において、1はラツチ回路、2は論理ゲート、3は全
加算器、4はカウンタ、5,11はパルス発生器、6〜
9は記憶器、10はメモリーである。次丁図
才2図
グう図FIG. 1 is a block diagram showing one embodiment of the device of the present invention, and FIG.
The figure is a block diagram showing an example of a logic gate constituting the specifying means of the present invention, and FIG. 3 is a schematic diagram showing the storage contents of the storage means. In the figure, 1 is a latch circuit, 2 is a logic gate, 3 is a full adder, 4 is a counter, 5 and 11 are pulse generators, 6-
9 is a storage device, and 10 is a memory. Next drawing diagram 2 drawings
Claims (1)
、文字、符号あるいはこれらの組合せからなるコードに
変換するものにおいて、 m個の変換後コードの各組が
夫々m=2^n(n=1,2,3,……)の時2^n番
地、2^n<m<2^n^+^1の時2^n^+^1番
地ごとに記憶している複数個の記憶手段と、被変換2進
コードの上位桁の所定数のビツトを入力とし、その所定
数ビツトに対応して前記記憶手段の一つを選択指定する
指定手段と、該指定手段への入力ビツトを除いた被変換
2進コードの各ビツトを夫々、m=2^nの時2^n倍
、2^n<m<2^n^+^1の時2^n^+^1倍し
てから加算する加算手段と、該加算手段の出力を入力と
し、前記記憶手段の番地を指定する計数手段と、前記記
憶手段から出力が発生されるごとに前記計数手段にパル
スを(m−1)回加えるパルス発生手段と、前記記憶手
段から出力されるm個のコードを記憶するメモリーとを
備えたことを特徴とする2進コード変換装置。1 In a device that converts a binary code into a code consisting of m (m = 2, 3, 4, ...) digit numbers, characters, codes, or a combination thereof, each set of m converted codes is When = 2^n (n = 1, 2, 3, ...), it stores each 2^n address, and when 2^n<m<2^n^+^1, it stores every 2^n^+^1 address. a plurality of storage means, a designating means for receiving a predetermined number of high-order bits of the binary code to be converted, and selecting and designating one of the storage means in accordance with the predetermined number of bits; Each bit of the binary code to be converted, excluding the input bit to the means, is multiplied by 2^n when m=2^n, and by 2^n^ when 2^n<m<2^n^+^1. an adding means that multiplies by +^1 and then adds; a counting means that takes the output of the adding means as an input and specifies an address in the storage means; and a pulse is sent to the counting means every time an output is generated from the storage means. A binary code conversion device comprising: pulse generating means for applying (m-1) times; and a memory for storing m codes outputted from the storage means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7153174A JPS6030137B2 (en) | 1974-06-21 | 1974-06-21 | Binary code converter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7153174A JPS6030137B2 (en) | 1974-06-21 | 1974-06-21 | Binary code converter |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS511040A JPS511040A (en) | 1976-01-07 |
| JPS6030137B2 true JPS6030137B2 (en) | 1985-07-15 |
Family
ID=13463398
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7153174A Expired JPS6030137B2 (en) | 1974-06-21 | 1974-06-21 | Binary code converter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6030137B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS528739A (en) * | 1975-07-10 | 1977-01-22 | Fujitsu Ltd | Electronic circuit |
| JPS5841792B2 (en) * | 1976-06-11 | 1983-09-14 | 株式会社東芝 | Method for manufacturing single domain single crystal |
| JPS6046153A (en) * | 1983-08-23 | 1985-03-12 | Amada Co Ltd | Transmitting method of bit pattern |
-
1974
- 1974-06-21 JP JP7153174A patent/JPS6030137B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS511040A (en) | 1976-01-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3823390A (en) | Musical tone wave shape generating apparatus | |
| US3675211A (en) | Data compaction using modified variable-length coding | |
| GB1317385A (en) | Apparatus for addressing a memory of selectively controlled rates | |
| ES394738A1 (en) | Unlimited roll keyboard circuit | |
| JPH07101840B2 (en) | Digital noise signal generator | |
| NL7504984A (en) | LONGITUDINAL PARITY GENERATOR FOR A MAIN MEMORY. | |
| JPS6030137B2 (en) | Binary code converter | |
| KR910002191A (en) | Dial signal generator for dial pulse signal and dual tone multi-frequency signal generation | |
| HU176883B (en) | Digital signal generator generating periodic signals | |
| KR850002717A (en) | D / A conversion | |
| US6079007A (en) | System and method for generating pseudo-random codes | |
| WO1981000314A1 (en) | Digital waveform generator having constant signal to noise ratio | |
| US4342026A (en) | Number conversion apparatus | |
| KR920007187A (en) | Semiconductor memory | |
| JPS5934939Y2 (en) | Memory addressing circuit | |
| SU549835A1 (en) | Permanent storage device | |
| US6237075B1 (en) | System and method for generating pseudo-random codes | |
| SU433512A1 (en) | ||
| JPS5918229B2 (en) | Print control storage device | |
| GB1384576A (en) | Analogue-to-digital convertors | |
| SU1171995A1 (en) | Non-recursive digital filter | |
| SU809155A1 (en) | Binary-to-bcd and bcd-to-binary converter | |
| SU1265975A1 (en) | Device for generating time intervals | |
| SU1206820A1 (en) | Stochastic piece-linear interpolator | |
| RU2012135C1 (en) | Code converter |