Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-2
votes
3answers
73 views

Why does a full adder need an OR gate?

I have read and I understand how the full adder works (or atleast I think I do :D). It combines two half adders and either one of them can have a carry over, hence the OR gate. But why do we need ...
1
vote
3answers
258 views

When adding binary numbers, how do you just ignore the overflow?

So lets say I used 2's complement to put -17 in binary and then I added it to +27, e.g.: ...
0
votes
1answer
34 views

Do binary numbers move in sequence ones and zeros or parallel at once to ALU for addition?

Do binary numbers move in sequence ones and zeros or parallel at once to ALU for addition, I mean ones and zeros in sequence vertically to ALU or parallel horizontally AT ONCE?
0
votes
1answer
67 views

How do I make a double dabble circuit with logic gates

Im attempting to make a 8 bit binary calculator that displays on multiple seven segment displays. Can double dabble be done with logic gates. If so, how?
1
vote
2answers
35 views

Addition and subtraction of binary digits

I have to solve the following exercise : Extend the circuit of the first part (the first part was an adder of integer numbers of 2 binary digits) in order to execute addition and subtraction of ...
0
votes
1answer
49 views

How can I convert binary into multiple 7 segment displays [closed]

I've been trying to make a decimal calculator using binary adders that feed into 3 x 7 segment displays. I cant find an efficient way to do this. If someone could point me to the correct resources, or ...
0
votes
0answers
53 views

How to implement Y=AX+B with full adder

Let X be 4-bit binary number, A between 0-9 and B between 0-15 integers. How can I implement this function with full adders? I thought to seperate AX like if A is 7, then AX = 4X+2X+X and shift left ...
0
votes
2answers
48 views

How to get the MSB into a logic gate which will check if a number is negative or not?

I need to create a logic gate which will find out whether a number is negative or not. The input is 8 bits and the output is 1 bit, and if the input is 1 (i.e. negative number) then the output ...
0
votes
1answer
73 views

How to find out if the input of a logic gate is negative in two's complement?

I'm trying to create something which will output whether the input of the logic gate is a negative number or not in two's complement. I understand how twos complement works etc, but i'm not entirely ...
0
votes
3answers
57 views

How to find out if a binary number is zero or not using logic gates?

I'm trying to put some logic gates together which would perform a task of finding out whether a number is zero or not. I came across a thread like this on here already (How to find out if a binary ...
0
votes
2answers
66 views

subtracting binary numbers using 2's complement [closed]

Is it usually to not have a carry in the two's complement method for subtracting two binary numbers when we subtract a large number from small one ?
1
vote
1answer
51 views

Subtracting a larger binary number from a smaller binary number

Is it possible to subtract a larger binary number from a smaller one column wise . For example subtracting 1000 from 0111 ? I always use the 2s complement but is it possible to do it column wise ?
-2
votes
1answer
426 views

Difference between Full Adder, Parallel Adder and Ripple Carry Adder?

I am a student and i cannot find any prominent difference between the full adder, parallel adder and ripple carry adder. The full adder for n-bit number requires n full adder cascaded, so as the ...
3
votes
1answer
127 views

4-bit binary multiplier circuit

I have made this 4-bit binary multiplier circuit, but the product of, for example: B3B2B1B0 (1100) x A3A2A1A0 (0001) = P7P6P5P4P3P2P1P0 (00101000) and not 1100, What have I done wrong?
0
votes
1answer
47 views

Convert analog voltages to digital using 5 Volt 4bit ADC

Computer Science major here, I have some idea but not really sure about it. I have a bunch of analog voltage readings. I need to convert them to digitized values (in volts). I am getting a 'Digital ...
3
votes
3answers
111 views

sequencing binary numbers

Is there a method for sequencing 4-bit binary numbers, where no 4 consecutive bits are repeated anywhere else in the stream? For example; Is there a method that would work for 5 and 6 bit numbers? ...
0
votes
3answers
89 views

Measuring a binary number with maximum electrical certainty [closed]

I want to be sure, with arbitrary precision (let say, for example, with 10^-100 certainty), that I can check the following statement (in binary): x = 49 That is, I want to check that a number that ...
0
votes
0answers
25 views

Can Binary to BCD conversion generalize to multiple of 8 bits?

I am trying to solve Problem 16 of Project Euler without using Big Integer libraries like GMP. I came across Binary-To-BCD algorithm to encode 8 bit number as corresponding digits in decimal ...
0
votes
0answers
37 views

Ladder Logic BCD Communications

I have a very limited number of outputs available (4 to be exact) on my existing PLC and need to share 5-7 bits of information to another PLC without having the expense off add-on communication cards. ...
1
vote
0answers
51 views

LED-Monitor-Firmware reverse engineering / disassembly => replace manufacturer startup logo

I have a display from a disassembled led-monitor (Wortmann Terra 2446W), that I want to use for a SmartMirror-project. Unfortunately, the monitor shows a big manufacturer logo when connected to power, ...
2
votes
0answers
179 views

A curious 433 MHz signal to decode

I bought a cheap set of remote controlled power sockets and I want to integrate them into my home automation system. So I got a 433 MHz receiver for 1€, connected it to my Arduino and tried to decode ...
6
votes
5answers
710 views

How is binary data 'split'?

If one computer sends data, for example 001101, how does the other computer know, where one bit starts and the other one ends? If you were just to monitor the change, you would get 0101, which is ...
0
votes
2answers
67 views

How a Computer Represents a Number Electronically

I understand how computers represent decimal numbers using binary. I have yet to absorb this video on how computers add numbers, which looks helpful. Before understanding that though, I would like to ...
0
votes
0answers
72 views

Multiplication implementation in Xilinx VHDL

I've been trying to develop a small multiplication engine using some shift registers on XilinX and some custom made functional blocks. The numbers to multiply is Z and T. The purpose of the engine ...
0
votes
2answers
74 views

SN74HC595N Seems to misread bits

A prenote; I'm not sure if this falls more into electronics or Arduino, but I think Shift Registers are more so electronic and binary related. I'm using a single SN74HC595N shift register connected ...
0
votes
2answers
63 views

Infinitely expandable binary decoder circuit

I tried to make some binary to decimal decoders, but I had no idea how to build them, so I ended up using the "combination checker" (basically providing one checker for each number). That was really ...
1
vote
2answers
161 views

Does 8b/10b decoding take running disparity into account?

What's unclear to me in reading literature about 8b/10b encoding is how it is decoded. How an 8b word is translated to a 10b symbol clearly relies on the running disparity. But when it comes to ...
0
votes
1answer
84 views

convert Ascii value to Binary or text

I have a GPS Tracker that connects and send data to a defined public server: port through GPRS connection. I am getting the result on the terminal. I have provided with a manual. I don't understand ...
2
votes
1answer
99 views

Confusion with calculating the mantissa of a floating point from a binary number

I use this converter to convert a 32-bit binary number to a floating point number. I first find the hexadecimal of the 32-bit binary number and convert to decimal by using the converter. In my case ...
-7
votes
1answer
77 views

How the first programming language and compiler was made? [closed]

How to get access to processor?I know that our OS don't allow to do that. Can we delete our OS to get the access?
4
votes
6answers
1k views

How to deal with signed int overflows

Brief background first; I have data from CAN bus of a steering angle which is obviously in hex. The steering angle covers two bytes of a message. The specification document I have says that those two ...
0
votes
0answers
88 views

Binary Multiplication

I was tasked with creating a binary multiplier that can multiply two digit numbers together. The logic table that resulted is as follows: ...
0
votes
2answers
117 views

Will my decimal to binary converter work

I got into electronics recently and I hope to make a 8 bit ripple carry adder with a decimal input and output. This input is the first schematic I designed from scratch without a tutorial to go off ...
0
votes
1answer
40 views

Correcting error while reading a number in binary format

Suppose I have a binary string: 1111 1001 which in decimal is -121 (sign magnitude form). But the computer read this as two number: -7 and -1. From -7 and -1, how can I recover -121.?
0
votes
1answer
40 views

Is parallel adder doing additions in each bit position simultaneously?

Does parallel binary adder actually make additions in each position simultaneously? I have read various sources and they all have this description relating to the parallel binary adder: "The additions ...
0
votes
1answer
61 views

4bit demultiplexer with address entries in the EXCESS-3 code

My question is: how to make truth table for inputs on E3? There is only space for 2 bits, and E3 is written on 4 bits as I saw. Should I add more inputs for this situation or do this in different way?
0
votes
1answer
153 views

negative binary representation and 4 bit BCD represenation are similar

While representing negative numbers in binary we use MSB as sign indication.In BCD we use 4 bits to represent numbers 8-15. How does a device(ex:computer) decide whether its a negative number or a ...
2
votes
1answer
302 views

A confusion regarding signed representation of binary numbers

Suppose I have an ADC that converts the analog input samples to 4-bit signed binary numbers. The resolution of the ADC is 0.5V. Since the binary o/p is of sign magnitude representation, the MSB has no ...
0
votes
1answer
101 views

how can I generate Output 2 to give a fixed delay pulse on a rising and falling edge of Input? [closed]

how can I generate Output 2 to give a fixed delay pulse (about half a second or less) on a rising AND falling edge of Input? ...
-2
votes
3answers
96 views

Store more than 4 bit data on 8 bit bus

I don't have electrical background, but yesterday after watching some videos on youtube about old 8 bit computer, I have some question about how they work. 8 bit computer has 8 bit bus data which ...
0
votes
0answers
53 views

Connecting a MCP42X1 to raspberry pi

I am trying to program my raspberry pi to a mcp42X1 digital pot. I have it hooked up and working the only problem is I cannot get the second pot to work. here is a forum of the single form: Digital ...
8
votes
3answers
3k views

Why is the Gray code called a cyclic code?

I understand why it is called reflexive and a unit distance code. I don't see any cyclic pattern which is repeating in the code. Why is it called a cyclic code?
7
votes
3answers
1k views

check if an unsigned binary number is divisible by 15

I'm a computer science student and I got stuck on this question for hours. We have a binary unsigned number X, represented by 12 bits. We would like to build a system with 1 bit output - Y, that will ...
0
votes
0answers
83 views

High/low order of the 4 select inputs of a 16-to-1 SN74150 MUX

I'm looking at a Texas Instrument Data sheet for an SN74150 16-to-1 MUX but I can't find which of the select inputs (A, B, C, D) is the higher order and which is the lower order. Does anyone know ...
0
votes
1answer
819 views

5bit signed magnitude comparator

I know how to compare unsigned binary numbers. But can you help me compare any signed binary numbers? Above is my simulation but I don't know how to integrate those signed bits in my circuit ...
-2
votes
2answers
166 views

DC motor single rotation using Photodiode-transistor [closed]

I am trying to build a system where a switch toggle (up then down) will cause a dc motor to do one full rotation and stop until the switch is flipped again. The only other input allowed is a hard ...
-1
votes
1answer
78 views

DC Motor causing photodiode emitter/detector into binary counter to malfunction

Schematic shown below, except the resistor on the phototransistor is now 4k and I took out the PNP. The system is supposed to activate the motor on an up-down switch, forcing the first t flip flop ...
-1
votes
2answers
118 views

Single rotation DC motor using 3 bit binary counter

My system activates when a thrown switch turns on a DC motor with an 8 hole optical wheel on its shaft. A photo emitter / detector is used to generate pulses sent to three negative edge T flip flops ...
0
votes
1answer
44 views

A different way for converting to 2's complement

One way to convert any number to 2's complement is by adding the number to 256, if the number can be represented by 8 bit number. For example if we want to convert -100 to 2's complement we do ...
0
votes
1answer
56 views

Detector of a 1 followed by 1 in a sequence of 0s

I need to design a digital circuit that detects when a sequence of 0s does NOT contain a 1 followed by 1 (or more). Example: 00000000010001000000000 Output: 1 00000011000000010000000 Output: 0 I ...