Show the r’s complement, Electrical Engineering

Assignment Help:

Q. Show the r’s Complement?

Step1- get the (r-1)'s complement

Step 2- add 1 to the result ex.

           93510

                                    9 9 9

                                    9 3 5 -

                           0 6 4  (r-1)'s complement

                          0 6 4

                              1 +

                           0 6 5

  • When using the r's complement we add usually, and ignore any carry from the most significant digit (MSD)
  • If the result is in negative, it will be in r's complement form ex.

            395 - 210

210 is 789 + 1 = 790 in 10's complement form

            395

            790+

            185     

Why Use 2's Complement

  • The left-most bit is still a sign bit

            1  for negative

            0  for positive

  • One way to write 0

            +0 0000 0000

            -0  0000 0000  (how?)

  • With n bits we can represent -2n-1 to ( 2n-1 - 1)

Let's now consider the subtraction 22 - 35, again both represented as 7-bit numbers with a sign bit.

                        +22 in binary is:                 00010110
                        +35 in binary is:                 00100011
                        -35 in binary is:                  10100011
                        -35 in 1's complement is:    11011100

The sum to be calculated is now:

                                            00010110
                                         + 11011100
                                            11110010 

This time the addition does not produce a 9th bit, but the sign bit is 1. In this case it again tells us two things:

  • the answer is negative
  • the answer is represented in 1's complement notation

So to get the final answer we need to turn our answer into binary. If the 1's complement notation is 11110010 then the binary representation is 10001101 (note - the sign bit doesn't change, it's still a negative number!). This is the binary for -13, again, the correct answer.


Related Discussions:- Show the r’s complement

Find the meter reading for sine wave, Q. ADMM (digital multi meter) reads t...

Q. ADMM (digital multi meter) reads true rms values of current. If the peak value of each of the following periodic current waves is 5 A, find the meter reading for: (a) a sine wav

Find the value of noncoherent source, If E b /N 0 = 20 in a coherent ASK s...

If E b /N 0 = 20 in a coherent ASK system, find the value of Eb/N0 that is needed in a noncoherent ASK system to yield the same value of Pe as the coherent system.

Why the gain of the amplifier decreases if the ce is avoided, Q. Why the ga...

Q. Why the gain of the amplifier decreases if the CE is avoided? When the ce is connected in the circuit, ac signals get bypassed through it to the ground. In the absence of Ce

Armature winding, what is use of dummy coil in DC m/c????

what is use of dummy coil in DC m/c????

Hall effect, Describe hall effect?also describe it''s mathematical analysis...

Describe hall effect?also describe it''s mathematical analysis and it''s properties

Covalent bonding, Covalent Bonding Exhibited through the diamond la...

Covalent Bonding Exhibited through the diamond lattice semiconductors. Each atom enclosed by four nearest neighbors, each comprising four electrons in the outermost orbi

Circuit theory, contribution of circuit theory on the health and quality of...

contribution of circuit theory on the health and quality of life of the citizen

The value of resistance in the regulator circuit, A zener regulator consume...

A zener regulator consumes a zener diode with an internal zener resistance of 5 ohm and the value of resistance in the regulator circuit is 82 ohm. If the supply voltage alters by

What do you mean by most and least significant digits, Q. What do you mean ...

Q. What do you mean by Most and least significant digits? The MSD (most significant digit) in a number is the digit which represents the largest part of the number. Therefore i

Show output characteristic of common emitter configuration, Q. Show output ...

Q. Show output Characteristic Of Common Emitter Configuration? Output characteristics: This family of curves may be divided into three regions just as was done for common base

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd