# Questions tagged [binary]

Related to binary arithmetic and number system - Base-2 system which represents numeric values using two symbols 0(zero) and 1(one). Use boolean tag for logical operations related questions that does not involve binary arithmetic.

227 questions
Filter by
Sorted by
Tagged with
73 views

### Is there a standard way to convert from a fixed point notation to a floating point notation?

Fixed point numbers can be in many different forms depending on the number of bits before and after the decimal expressed as Qm.n. Floating point numbers can be in many forms depending on the number ...
41 views

### How do you algorithmically calculate the booth recoding truth table for different radix?

Basically what I am trying to figure out is how one generates algorithmically the truth table for Booth's recoding for different radices of his algorithm. How would you generalize this into a truth ...
92 views

### Can I have some help compacting this?

I am trying to build a transistor computer, and I want to save as much resources as possible. However, I also want it to be practical, so I am implementing a binary-decimal conversion. In order to ...
306 views

### How does the OV(Overflow flag) of the 8051 work and how does it differentiate between signed and unsigned digits?

If a number is 8 bit, the maximum value it can have is 2^8 or (1111 1111). In the OV flag, the last digit or the MSB decides the sign, but how does the overflow flag know if it is the "signed MSB&...
34 views

### Any good resources to practice efficiency of code modulation?

I want some resources to practice code efficiency problems like this: I looked around online and could not find anything. I also looked in two books and only found a section concerning code ...
94 views

### JK Flip-Flop 0-9 up/down counter [closed]

I designed a 4-bit JK up/down counter. I want the circuit to be reset to 0 when counting up when it reaches 9, and to be reset to 9 when counting down when it reaches 0. Anyone know how ? I tried a ...
89 views

Given : ...
37 views

### How to implement a 2 digit BCD subtractor with only 2 7483s?

I need to build a 2 digit BCD subtractor with the limitation of only having 2 7483 (4 bit adders). Additionally, 20 > minuend >= subtraend. With those limitations in mind, i can see that if the ...
109 views

### Logical Bitwise Operations Problem

I am reading data from an IR sensor array (8 sensors) and converting the ADC result to binary via a set threshold. If n is the current result, for example: (N.B: n-1 is the previous result) ...
34 views

### How to know whether addition has been done in a parallel binary adder?

I am little new to electronics and getting some high level overview of digital electronics. The question is that how to know whether addition has been performed in a logic circuit. For example I have ...
81 views

### Are carry flags set even when we discard the carry in an arithmetic logic unit?

Currently I am learning simple binary math for a microprocessors course and have a trivial question on signed addition in 2's complement notation. My professor mentioned that when we substract two ...
111 views

### Is it possible to build a binary divider with this design?

So I am working on this ALU, and I have made this 8-bit multiplier based on this design: . Is it possible to adapt this design into a binary divider by using Subtractors instead of Adders, and maybe ...
57 views

### Convert a Ngspice rawfile to binary format [duplicate]

I have these NgSpice rawfiles that are generated in ASCII format instead of binary format. I would like to know please what command to use to force their generation in binary instead or ASCII format ...
59 views

### How to find what circuitry is required for synthesis of following digital VLSI design problem?

My thoughts: Here price of chocolate is increasing in Geometric progression with common ratio 2 and first term 1, so on nth day price of chocolate will be $T_{n}=2^{n-1}$\ irrespective of wheather ...
103 views

### Conceptual vs real world signal transmission [closed]

When data or information is sent through any medium, (be it through phone lines, cable, fiber optics or through empty space or some other means), is it volts, current of charges, 0s and 1s, codes, ...
614 views

### Is it possible to set starting count on binary counters like CD4020?

Can I set starting count on binary counters like CD4020, CD4060? Only solution I know is to use reset pin and increase the frequency till you get desired count then resume normal operation. If there ...
105 views

### CD4060 with external clock pulse

I am trying to make realtime, low power 1hr audio indicator using binary counters. I don't need display so not using decade counters or 7 segment display ICs. So I bought bunch of CD4060 binary ...
114 views

### Converting hexadecimal digit to two's complement

So I have the number 'E' which is 14 in decimal and 1110 in binary. To get the two's complement I first get the one's complement and add 1, so I get: One's complement: 0001 Two's complement: 0010 So ...
30 views

### Using a binary counter with ic sram

I am using the as6c62256 ic sram, this is the datasheet: datasheet I am trying to write 1000 words of 8 bit, and then read them from the sram is it possible to connect a binary counter to the adress ...
80 views

### How do I set a value within an if statement using logic gates? [closed]

I have a value B that I want to set if a variable A = 1. I know how to create the if statement by applying an AND gate on a 1 constant and A, but how do I set B within that if statement using logic ...
68 views

### How do I create a 1-bit full adder that outputs a 2-bit sum?

I am trying to build a 1-bit full adder that outputs a 2-bit sum. I know that the standard 1-bit FA outputs a 1-bit sum and a carry bit, but I was wondering how can I modify the FA such that the carry ...
69 views

### Assigning binary value to decimal value using counter [closed]

I don't know muach about verilog, but i started to study it lately. So if these codes doesn't make sense at all, forgive me :D I am writing a verilog code for Sinus lookup table. for instance, ...
190 views

### How does a repeater convert light from a fibre-optic cable into binary?

I'm just starting out in Computer Science and currently learning about transmission of data in fibre-optic cables. I understand fibre-optic attenuation and that a repeater will then take this light ...
209 views

### Why is it easier to implement bytes as 8 bits rather than 9 bits? [duplicate]

From book to book I always find the same sentence. For example: 8 bits is an even power of 2, which makes it somewhat easier to design computer hardware with 8-bit bytes than with 9-bit bytes. ...
46 views

### Verilog project - Binary to BCD - 0-49 2 digit display

I have an end of the year project where I must create an 4 operation ALU that outputs its result onto 7 segment displays in Verilog. 2 of those operations are multiplication and addition. Considering ...
382 views

### 32 bit to 7 segment display (FPGA)

After some research, I think I have quite a problem on my hands. I have a project on an FPGA where I store a 32 bit binary value in a 32 bit memory register. The stored value ranges from 0 to 4000 in ...
82 views

### Multiplying twos complement binary numbers

I have a project where I am developing a basic processing core on a FPGA from logic gates. So of course I have an ALU that I am building out of logic gates. I have no issues with the rest of the ALU ...
105 views

### How to make a LED bar display a binary value?

I have a 5-bit binary number from 0 to 11110 (30 decimal). I want to display it in a led bar using "bar" mode. It means that if the number is 10000 (see the picture below) I want ALL 16 leds ...
88 views

### How two or more consecutive zeros(off) or one (on) in digital circuits are recognized?

So in digital circuits work by using two states either on or off and i was wandering how two bits of zero(or one) be identified? is there like a timing circuit or anything like that?
47 views

### Chip Operation Mode selection in binary

For my project, I would like to design my own SATA->USB-C adaptor. For this, I'm using the Odroid schematic (here), and also the schematics of Cubieboard (here). My question is about the JMS539 ...
129 views

I am just a newbie starting out in electronics with no experience. Why do we need XOR and AND gate for the binary adder? is there any particular reason why only these two specific gates are needed ...
134 views

### Why does my synchronous up counter count enable not function properly?

I have designed a simple 4-bit synchronous up-counter, using master/slave JK flip flops in Logisim. Here is my JK design: And my counter design: It works perfectly as intended, however if the INC (...
50 views

### Binary Data encoding and decoding format

I am trying to understand what is the meaning of this data coding format as shown in the following image. It is not simple binary to decimal conversion. Can anyone tell how this conversion formula ...
143 views

### Problem with Octal to Binary in VHDL

it,s me... Again. I tried almost everything but i can't make it work properly. This is my code: ...
87 views

### What happens when you divide by zero with a binary divider?

I am curious what would happen if you have a number such as 2 (10 in binary) and divide by 0 (0 in binary). What would happen?
165 views

### How to find out the used code?

I have a data stream that looks like x\xdam\xdd]\xc4\xeemZ\xc7q)2\xcc\xd6cL\x1a1\x8c\xc9hc\x0c)\xeb^\xaf\xd7Z (...) How can I find out what I do see here? At the ...
135 views

### How to convert from 2s complement values to binary? [closed]

I am trying to build a calculator that can perform addition and subtraction and works like a real calculator(ie, you press the first number, than the operation, then the second number, and press = to ...
38 views

### How to make a binary counter

How do you make it so that a light goes on after a button has been pressed twice then off when pressed twice more? I'm pretty stumped on this one and searches don't yield results. Any help is much ...
402 views

### Is it possible to make a circuit that can convert binary to decimal?

I know that computers use binary to calculate instructions and perform tasks. But essentially no one I know can convert binary to decimal. I am working on a calculator project currently, and the ...
146 views

### offset binary from ADC to Decimal

Im trying to read data from ADC with ADC Inteface Im designing with FPGA. The data that coming out from the ADC is offset binary with 12 bits.. looks like that: I want to simulate this results using ...
115 views

### Binary Manipulation in arduino with 74HC595

I'm doing practice of bit manipulation in arduino with a 74HC595 shift register. I would like to create an algorithm that allows the binary digit to perform this way: 1 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 ...
3k views

### 2's complement subtraction with overflow

I studied binary subtraction using 2's complement method and understood the rules, which say that after the subtraction process (actually addition) discard any carry in case it occurs and take the ...
416 views

### 3 Bit Adder Logic Circuit Design

Im trying to design a logic circuit for a 3 bit adder using 6 inputs, A2, A1, A0, B2, B1, B0 and 4 outputs, s0, s1, s2 and c (the carry out). I already have circuits for a half adder, full adder and a ...
296 views

### Does RAM always use a big Mux to ‘read’ from its addresses?

I’ve designed a 64 bit (16 words * 4-Bits at each location) RAM in logic simulation software, using simple registers. I had to create a 16-to-1, 4-bit wide Mux (no mean feat) in order to ‘select’ one ...
183 views

### How do I get to a counter stops at five using logic gates?

I need a circuit to recieve the signal called "50" or "20s" and it trigger a single pulse with five seconds called "TRIP". I set up the circuit below, however, by keeping input J HIGH of the FF7473, ...
48 views

### How is the amplitude of an output signal of a binary input determined using a constellation pattern?

I understand using the pattern to find the output line single phase but how is the amplitude determined?
371 views

### Does using "16's complement" for hex always yield the same result as two's comp for binary?

I'm sure it's obvious as day, but i'm having a hard time convincing myself with all these carries and conversions... Given that i'm operating on the same number (say, ...
137 views

### What is the very basic electronic component to generate pulse wave (high or low) we commonly see in digital?

Very common we hear ON/OFF, HIGH/LOW, 1/0, or something similar in digital system. It is called binary. I would like to know what is the very basic component to generate such that binary system? I ...