Example of binary subtraction - positive number , Electrical Engineering

Example  of binary  subtraction - positive number

Case 1.  Positive  number is more than negative number ( i e, answer is positive)

 Example   subtract  4510 ( 1011012 ) form 9210 ( 10111002.

 Solution: write  both numbers  is in 8 bit  form

01011100                                                                   9210

-00101101                                                                  -4510

1 s complement  of the negative number  =              11010010

Add 1                                                                                 1

2 s complement of the negative number =                11010011

This will represent -4510 in microprocessor                

Adding 2 s complement  of the  negative  number with the  first (positive ) number

      01011100 (9210)

      +11010011( -4510)

 Carry   00101111( +4710)

 Ignoring carry the  answer is  + 0010 11112 ( +4710)

 

Posted Date: 4/3/2013 6:21:25 AM | Location : United States







Related Discussions:- Example of binary subtraction - positive number , Assignment Help, Ask Question on Example of binary subtraction - positive number , Get Answer, Expert's Help, Example of binary subtraction - positive number Discussions

Write discussion on Example of binary subtraction - positive number
Your posts are moderated
Related Questions
For the 3-bit 2 n -R D/A converter of Figure, calculate the analog output voltage when the input is (a) 100, and (b) 010. Solution a. For the binary input 100, switches con

The five addressing modes are given below: Immediate, Register, Direct, Implied addressing modes           Register indirect,

Voltage divider bias: The voltage divider is made by using external resistors R 1  and R 2 . The voltage beyond than R 2  forward biases the emitter junction. Via prop

Q. What is the voltage gain? voltage gain is the ratio of output voltage to input voltage. It is represented as Av,vo-voltage output,Vi-voltage input,Ic-collector current,Ie

explian briefly with in diagram and numerical examples

Q. J and K are the external inputs to the JKFF shown in Figure. Note that gates 1 and 2 are enabled only when the clock pulse is high. Consider the four cases of operation and expl

Consider the arrangement shown in Figure. A conductor bar of length l is free to move along a pair of conducting rails. The bar is driven by an external force at a constant velocit

(a) Design a passive high pass filter that has a maximally flat response with a 50  Ω resistive load. Assume that the cut-off frequency is 40 kHz and that at a frequency of 25 kHz,

For a helical antenna, the half-power beamwidth and directive gain are given by where C = πD, N = L/S, and S = C tan α,in which α is called the pitch angle, and The

Q. Let v(t) = Vmax cos ωt be applied to (a) a pure resistor, (b) a pure capacitor (with zero initial capacitor voltage, and (c) a pure inductor (with zero initial inductor current)