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.

257 questions
31
votes
9 answers

What is the process of going from machine code to electrically controlling individual transistors?

For someone who writes software but doesn't have a computer engineering background, the dozens of abstraction layers have always bewildered me. I know all source code in their most fundamental level is broken down into 1s and 0s. I also know all…
14
votes
7 answers

ISA opcodes---Where do they come from?

When engineers are designing an instruction set architecture, by what procedure or protocol, if any, do they follow when designating certain binary codes as instructions. For example, if I have an ISA that says 10110 is a load instruction, where did…
Steven
  • 189
  • 2
  • 9
12
votes
6 answers

What are advantages of Two's Complement?

In some ADC/DAC devices their are options to output/input the data in 2's Complement form. What are advantages of representing digital data in Two's Complement form When you can simply have straight binary code and save time of conversion?
rahulb
  • 570
  • 1
  • 6
  • 16
10
votes
2 answers

What is smallest addressable value in an octal number called?

In a binary number, the smallest addressable value is called as a bit. In a decimal number, the smallest addressable value is called as a digit. In an octal number, what is the smallest addressable value called as?
10
votes
4 answers

Avoiding confusion between no input and a zero in binary?

Suppose I'm transmitting data through FM where 0 is 2Hz and 1 is 4Hz. The transmitter is transmitting 2Hz when there is no input. If I fed the recieved binary to a UART port of a microcontroller, how would the microcontroller differentiate between…
Allenph
  • 707
  • 3
  • 12
  • 32
8
votes
3 answers

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?
Ramesh
  • 195
  • 1
  • 5
8
votes
3 answers

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 be '1' if X is divided by 15 without a…
sheldonzy
  • 183
  • 1
  • 7
6
votes
7 answers

Why is a register initialised through bitwise operations instead of a binary string?

I'm learning microcontrollers, and have picked AVRs to start with. In many AVR tutorials I find the registers are initialised by performing some bitwise operations on the assignment, for example something like this: PORTD = PORTD | (1<<3); There is…
Somanna
  • 317
  • 1
  • 4
  • 10
6
votes
5 answers

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 totally inaccurate. Is it just a timing thing? (I…
Some Guy
  • 83
  • 5
5
votes
4 answers

Memory capability and powers of 2

Why are computer memory capabilities often multiples of a power of two, such as 2^10 = 1024 bytes? I think it is something related to the binary logic, but I do not understand the precise reason for that.
Kinka-Byo
  • 3,340
  • 2
  • 19
  • 58
5
votes
3 answers

Normalized and denormalized floating point numbers

Regarding the normalized and denormalized representations of binary floating-point numbers (as described in the book by Patterson), I want to know how a denormalized number is really shown. See the table below which is saying that \$e=0\$,…
mahmood
  • 333
  • 1
  • 2
  • 12
4
votes
1 answer

How do we control a 7-segment display with a rotary switch to ground and 12v supply?

I am currently trying to add a 7 segment display to my motorbikes gear indicator. requirements dictated by the bike: there is a positional switch to ground for each gear. If you think it's like a rotary switch with the common connected to…
4
votes
2 answers

Transmitting binary data from scratch via radio (wireless)

What is the basic concept of transmit binary data wirelessly or from radio? Here are so far my knowledge about it. Any digital data (image, sound, video) is represented by binary digit (bit). Binary digit only have two possible state, it's zero…
4
votes
3 answers

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?
4
votes
6 answers

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 bytes form a 16-bit signed int which are the…
Shibalicious
  • 671
  • 1
  • 7
  • 20
1
2 3
17 18