Binary subtraction , Electrical Engineering

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.

Posted Date: 4/3/2013 6:14:52 AM | Location : United States







Related Discussions:- Binary subtraction , Assignment Help, Ask Question on Binary subtraction , Get Answer, Expert's Help, Binary subtraction Discussions

Write discussion on Binary subtraction
Your posts are moderated
Related Questions
Aims Exploring the analog output capabilities of the PIC trainer Write PIC assembly code to implement a simple multi-function signal generator Equipment PIC Trainer

1. A 1 μm long and 100 μm 2 cross-sectional area silicon bar is doped with 10 16 /cm 3 phosphorous. Use the graph below to: a. Find the current at 300°K with 10 V applie

Q. Determine voltage and current gains for the CE BJT amplifier shown in Figure with the following parameters: R 1 = 30,000, R 2 = 9000 ,R C = 750 ,R E = 250 , R L = 1000 

The following data apply to a 100-kW, 250-V, six-pole, 1000-r/min long-shunt compound generator: no-load rotational losses 4000 W, armature resistance at 75°C = 0.015 , series-fie

When I read the details of how a transformer works and apply those rules to a transformer where the primary core cross-sectional area is twice that of the secondary, I come up with

Explain a couple

A signal comprises a bandwidth of 1kHz centred around 1kHz.  A sine wave along with a frequency of 1250Hz is added to the signal. The bandwidth of the new signal is: 2250Hz

GIS Based Mapping of Electrical Network: You have learnt in which the Geographic Information System is a system of mapping of the complete electrical network. The question we

explain appropriate first aid procedure to be followed in case of electric shock

Derive Lame's equation for a thick cylinder subjected to internal pressure with clean diagrams. Evaluate the maximum and minimum hoop stresses across the section of a pipe of400