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

Define voltage source multiplying dac, Define Voltage Source Multiplying DA...

Define Voltage Source Multiplying DAC? Voltage source multiplying DACs use a reference voltage which is switched in or out by the digital data.  The converter is so-named becau

Superposition theroem, what are the limitations of superposition theroem

what are the limitations of superposition theroem

Define sampling frequency, Define Sampling Frequency? Since real analog...

Define Sampling Frequency? Since real analog signals consist of several frequencies, spectrum of the input signals should be limited to make sure that no signal energy exists a

Gis technology, GIS technology: GIS could be used to derive diverse in...

GIS technology: GIS could be used to derive diverse information for efficient technical and commercial management of a power distribution utility, e.g., capacity analysis, inv

Evaluate the four parameters of the hybrid model, Q. Show that any amplifie...

Q. Show that any amplifier represented by the model of Figure of the text can also be represented by themore general hybridmodel of Figure. Evaluate the four parameters of the hybr

Compute the full-load speed, A 10 - hp, 250-V shunt motor has an armature c...

A 10 - hp, 250-V shunt motor has an armature circuit resistance of 0.5  and a ?eld resistance of 200 . At no load, rated voltage, and 1200 r/min, the armature current is 3 A. At

Static scherbius drive - motor control , Static  scherbius  Drive B...

Static  scherbius  Drive By using  this scheme, below and above  synchronous speed can be obtained for an induction motor. There are  two possible  configurations to obtain  s

Fourier deconstruction, Find the Fourier series as far as the third harmoni...

Find the Fourier series as far as the third harmonic, to represent the periodic function y, given by the values in the following table. x 0 o 30

Find the efficiency of the transformer, Q. A three-phase, 600-kVA, 2300:230...

Q. A three-phase, 600-kVA, 2300:230-V,Y-Y trans-former bank has an iron loss of 4400Wand a full-load copper loss of 7600 W. Find the efficiency of the transformer for 70%full load

DC machine, importance of dummy coils and equalizer connections

importance of dummy coils and equalizer connections

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