Stack Exchange Network

Stack Exchange network consists of 175 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.

-1
votes
1answer
33 views
0
votes
1answer
44 views

Number systems and binary [closed]

I am new to number systems and binary. Can someone tell me why is X>=11 and Y>=6 in this problem? Can someone also explain how the values X=12 and Y=16 are obtained from the conditions shown in the ...
0
votes
2answers
51 views

Building a BCD to 7-segment using 3x8 decoder

So.. I know how to build a BCD to 7-segment using 3x8 decoder but the question provides 4-digit binaries and asks to only input 3 of those.. my question is that won't two different digits be regarded ...
1
vote
1answer
51 views

Multiplying signed to unsigned binary numbers in verilog

How can I multiply a signed number to unsigned number in verilog for example: a = 6'b111111 ; //which is means -1 as it is signed b = 6'b111111 ; //which is means 63 as it is unsigned I want the ...
0
votes
1answer
75 views

How do I convert 1/3 to signed float 8 bit?

The formula is as follows: (-1)^[signed bit] * (1.[significant bit]) * (2^[excess bit -3]) or (-1)^[s] * (1.[f]) * (2^[x-3]) It is a question posed by my signals and systems instructor, hence the ...
-1
votes
1answer
41 views

How to design a multiplier using only multiplexer?

I am asked to make a multipier that takes a three bits input $$x=(x_1, x_2,x_3)$$ and a control signal \$s\$ so that the results will be a hexadecimal 4 bit number $$z=(z_3,z_2,z_1,z_0)$$ such that \$...
1
vote
2answers
145 views

A circuit to convert 4-bit Gray numbers to BCD

I'm sorry for asking this specific question here but can some one please tell me what's wrong with this solution. Question: design a circuit to convert 4bit Gray numbers to BCD I have to say I ...
-2
votes
3answers
79 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
282 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
38 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
100 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
39 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
96 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
2answers
64 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
113 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
64 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
88 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
132 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
987 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
372 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
61 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
112 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
90 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
30 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
42 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
57 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
243 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
719 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
68 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
76 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
86 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
67 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
182 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
91 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
118 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
2answers
125 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
41 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
78 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
221 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
303 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
104 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 ...
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
90 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
900 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
192 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 ...