Question
Asked Dec 11, 2019
1 views

what is -4 (negative 4) in a 2's complement of 8 bits?

check_circle

Expert Answer

Step 1

8-bit representation of a binary number is extremely useful and it is often called sign-magnitude representation of binary numbers. In this case, the left most bit is called the sign bit and it is used to represent whether the number is positive or negative. The remaining 7 bits are called magnitude bits and they represents the magnitude of the binary number. It is illustrated below for a 8-bit binary number B:

help_outline

Image Transcriptionclose

B = B,B,B;B,B,B,B,B, B, = Sign bit (1 for negative number |0 for positive number

fullscreen
Step 2

So, the 8-bit binary representation of the number +4 will be as follows:

help_outline

Image Transcriptionclose

(00000100), ---> (1)

fullscreen
Step 3

Now, 1’s complement of a binary number can be obtained by replacing all the 1’s by 0’s and all the 0’s by 1’s. So, the 1’s complem...

help_outline

Image Transcriptionclose

(11111011), ---> (2)

fullscreen

Want to see the full answer?

See Solution

Check out a sample Q&A here.

Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in

Engineering

Electrical Engineering

Related Electrical Engineering Q&A

Find answers to questions asked by student like you
Show more Q&A
add
question_answer

Q: Answer all the questions.

A: 1. If an initially charged particle is suspended in a fluid having constant charge density and permi...

question_answer

Q: What will be the value of the current i?

A: We know :

question_answer

Q: 4. Z-Transform: Consider the following three discrete-time LTI systems: 1 1 H1(2) 1 H2(2) H3(2) = 1 ...

A: Given discrete-time LTI systems are

question_answer

Q: How to use optimal power flow using harmony optimization technique . expain this method and help me ...

A: Write the MATLAB code for optimal power flow using harmony optimization technique as follows:

question_answer

Q: For a silicon pn junction under forward biased condition, the reverse saturation current is 10 nA. I...

A: Using Shockley’s equation, the value of the current flowing through a p-n junction diode can be expr...

question_answer

Q: 2. Does ?a three digit color coding of resistor values? limit producible resistor value ranges? Why?...

A: In the three-digit color coding of the resistor, the first two color bands indicate the two-digit va...

question_answer

Q: A silicon (100) wafer with an initial oxide thickness of do is oxidized in a furnace at 1100 C with ...

A: First to determine a wet oxidation at 1100oC (That is, 1373 K).

question_answer

Q: For Si, the intrinsic carrier concentration at 300 K is given as 1.5x1016/m3. After doping,  the don...

A: In a semiconductor, there are majority carriers and minority carriers. In an intrinsic semiconductor...

question_answer

Q: Solve all parts.

A: Since we are entitled to answer up to 3 sub-parts, we’ll answer the first 3. Please resubmit the que...