Binary subtraction , Electrical Engineering

Assignment Help:

Binary Subtraction

Negative numbers are represented in 2 complement form and subtraction is also  per formed  using  2 complement  method in microprocessor. Hence we will  discuss only 2  compliment method  of subtraction in this book.

To find  2 compliment of any binary  number

Use followings  steps

Find 1 complement  of the given  binary  number convert all 0 to 1 and  all 1 to 0 s.

Add 1  to the obtained d1  complement number to get the 2 complement of the original number.

The  obtained  binary number will  be the  negative  of the given  number.

Example :  Find 2 complement  of 010110112.  ( equal to + 9110)

Solution : 1 complement  of the given number is:    10100100

    Add 1                                                                            1

The 2 complement  form of the number                  101000101

This  will represent  -9110 in microprocessor.


Related Discussions:- Binary subtraction

Obtain the expression for the steady-state coil current, Q. Let the coil of...

Q. Let the coil of the solenoid of have a resistance R and be excited by a voltage v = Vm sin ωt. Consider a plunger displacement of g = g 0 . (a) Obtain the expression for the

Define smoothing the output, Define Smoothing the Output? The output of...

Define Smoothing the Output? The output of a DAC is stepped, such as the analog waveforms which were sampled and held. This stepped, or staircase effect is a distortion, and it

CAO, conditional branch instruction

conditional branch instruction

Microcontroller, Project Garage door opener with password. Wrong password ...

Project Garage door opener with password. Wrong password "door close" on lcd screen, correct password "door open" on lcd Screen no need the motor. Material used - Microcontroller

Effective mass, Effective Mass The electrons' "wave-particle" motio...

Effective Mass The electrons' "wave-particle" motion in a lattice is not the same as that for a free electron, because of the interaction with the periodic potential of the

Obtain the z-parameters for the circuit, Q. (a) Consider the capacitor -...

Q. (a) Consider the capacitor - input filter circuit of Figure and obtain the z-parameters for the circuit. (b) Determine the transfer function V 2 /V 1 when I 2 is zero.

Difference between the shifts and rotate instructions, What is the differen...

What is the difference between the shifts and rotate instructions? A rotate instruction is a closed loop instruction. That is, the data moved out at single end is put back in a

Determine the energy fluence - fluence rate, 1. The photon fluence rate is ...

1. The photon fluence rate is 10 7 photons mm -2 sec -1 for a beam of γ rays. One fourth of the photons have energies of 100 keV, one half have energies of 80 keV and the remain

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