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

Digital frequency meter, Q. Explain digital frequency meter. or E...

Q. Explain digital frequency meter. or Explain principle of digital frequency meter and discuss utility of time base selector with suitable diagrams. Sol. Digital Fr

What effect do non-tradable goods have on ppp, Q. What effect do non-tradab...

Q. What effect do non-tradable goods have on PPP? Answer: The consequence is quite substantial. In 1997 the production of non-tradable goods accounted for about 55% of U.S GN

Complex waveforms and transients in rlc circuits, can you let me know how m...

can you let me know how much it would be for the answer to a question that has 2 parts

Find the input resistance and output resistance, Quite often an amplifier i...

Quite often an amplifier is used as a component of an amplifier circuit. Consider the amplifier circuit shown in Figure, which contains an amplifier block as an internal component.

Filtering, Filtering  (i) Write an m-file "mymedian.m" which will ta...

Filtering  (i) Write an m-file "mymedian.m" which will take an image and filter size and perform median filtering. Display input and output image. Use  help median fun

Microcontroler based elevator system, -micro controller AT89C51 -dc motor -...

-micro controller AT89C51 -dc motor -magnetic sensors -load sensors -how to connect all the components? and give me a circuit diagrams -how to interface all the component with m

7 segment design, how to design 7 segment design using DSCH2 ?

how to design 7 segment design using DSCH2 ?

Compute the required value of external series resistance, A 200-V dc shunt ...

A 200-V dc shunt motor has a field resistance of 200  and an armature resistance of 0.5 . On no load, the machine operates with full field flux at a speed of 1000 r/min with an a

Calculate the maximum analog output voltage, Q. For the 4-bit D/A converter...

Q. For the 4-bit D/A converter of Figure, calculate: (a) The maximum analog output voltage. (b) The minimum analog output voltage. (c) The smallest detectable analog outpu

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