The document Signed Binary Electrical Engineering (EE) Notes | EduRev is a part of the Electrical Engineering (EE) Course Digital Electronics.

All you need of Electrical Engineering (EE) at this link: Electrical Engineering (EE)

All the binary arithmetic problems looked at in Module 1.3 used only POSITIVE numbers. The reason for this is that it is not possible in PURE binary to signify whether a number is positive or negative. This of course would present a problem in any but the simplest of arithmetic.

There are a number of ways in which binary numbers can represent both positive and negative values, 8 bit systems for example normally use one bit of the byte to represent either + or âˆ’ and the remaining 7 bits to give the value. One of the simplest of these systems is SIGNED BINARY, also often called â€˜Sign and Magnitudeâ€™, which exists in several similar versions, but is commonly an 8 bit system that uses the most significant bit (msb) to indicate a positive or a negative value. By convention, a 0 in this position indicates that the number given by the remaining 7 bits is positive, and a most significant bit of 1 indicates that the number is negative.

+45_{10} in signed binary is (0)0101101_{2}

-45_{10} in signed binary is (1)0101101_{2}

**Note:**

The brackets around the msb (the sign bit) are included here for clarity but brackets are not normally used. Because only 7 bits are used for the actual number, the values the system can represent range from is âˆ’127_{10} or 11111111_{2}, to +127_{10}.

A comparison between signed binary, pure binary and decimal numbers is shown in Table 1.4.1. Notice that in the signed binary representation of positive numbers between +0_{10} and +127_{10}, all the positive values are just the same as in pure binary. However the pure binary values equivalents of +128_{10} to +255_{10} are now considered to represent negative values âˆ’0 to âˆ’127.

This also means that 0_{10} can be represented by 00000000_{2} (which is also 0 in pure binary and in decimal) and by 10000000_{2} (which is equivalent to 128 in pure binary and in decimal).

Because the signed binary system now contains both positive and negative values, calculation performed with signed binary arithmetic should be more flexible. Subtraction now becomes possible by adding a negative number to a positive number, without the problems of borrow and payback described in Fig. 1.4.1 Adding Positive Number Systems Module 1.3. However there are still problems. Look at the two Numbers in Signed Binary examples illustrated in Fig. 1.4.1 and 1.4.2, using signed binary notation. Z

In Fig. 1.4.1 two positive (msb = 0) numbers are added and the correct answer is obtained. This is really no different to adding two numbers in pure binary.

In Fig. 1.4.2 however, the negative number âˆ’5 is added to +7, the same action in fact as SUBTRACTING 5 from 7, which means that subtraction should be possible by merely adding a negative number to a positive number. Although this principle works in the decimal version the result using signed binary is 10001100_{2} or âˆ’12_{10} which of course is wrong, the result of 7 âˆ’ 5 should be +2.

**Altho**ugh signed binary can represent positive and negative numbers, if it is used for calculations, some special action would need to be taken, depending on the sign of the numbers used, and how the two values for 0 are handled, to obtain the correct result. Whilst signed binary does solve the problem of REPRESENTING positive and negative numbers in binary, and to some extent carrying out binary arithmetic, there are better sign and magnitude systems for performing binary arithmetic. These systems are the ONES COMPLEMENT and TWOS COMPLEMENT systems, which are described in Number Systems

Offer running on EduRev: __Apply code STAYHOME200__ to get INR 200 off on our premium plan EduRev Infinity!

91 videos|75 docs|8 tests