Docsity

Digital Electronics: 1.Number systems, Study notes of Programmable Logic Circuits

Toggle sidebar
bg1
Analogue Versus Digital
•There are two basic ways of representing the numerical values of
the various physical quantities with which we constantly deal in our
day-to-day lives.
•One of the ways, referred to as analogue, is to express the
numerical value of the quantity as a continuous range of values
between the two expected extreme values.
•For example, the temperature of an oven settable anywhere from 0
to 100 °C may be measured to be 65 °C or 64.96 °C or 64.958 °C or
even 64.9579 °C and so on, depending upon the accuracy of the
measuring instrument.
•Similarly, voltage across a certain component in an electronic circuit
may be measured as 6.5 V or 6.49 V or 6.487 V or 6.4869 V.
•The underlying concept in this mode of representation is that
variation in the numerical value of the quantity is continuous and
could have any of the infinite theoretically possible values between
the two extremes.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20

Partial preview of the text

Download Digital Electronics: 1.Number systems and more Study notes Programmable Logic Circuits in PDF only on Docsity!

Analogue Versus Digital

  • There are two basic ways of representing the numerical values of the various physical quantities with which we constantly deal in our day-to-day lives.
  • One of the ways, referred to as analogue , is to express the numerical value of the quantity as a continuous range of values between the two expected extreme values.
  • For example, the temperature of an oven settable anywhere from 0 to 100 °C may be measured to be 65 °C or 64.96 °C or 64.958 °C or even 64.9579 °C and so on, depending upon the accuracy of the measuring instrument.
  • Similarly, voltage across a certain component in an electronic circuit may be measured as 6.5 V or 6.49 V or 6.487 V or 6.4869 V.
  • The underlying concept in this mode of representation is that variation in the numerical value of the quantity is continuous and could have any of the infinite theoretically possible values between the two extremes.

Analogue Versus Digital

  • Digital , represents the numerical value of the quantity in steps of discrete values.
  • The numerical values are mostly represented using binary numbers.
  • For example, the temperature of the oven may be represented in steps of 1 °C as 64 °C, 65 °C, 66 °C and so on.
  • While an analogue representation gives a continuous output, a digital representation produces a discrete output.
  • Analogue systems contain devices that process or work on various physical quantities represented in analogue form.
  • Digital systems contain devices that process the physical quantities represented in digital form.
  • Digital techniques and systems have the advantages of being relatively much easier to design and having higher accuracy, programmability, noise immunity, easier storage of data and ease of fabrication in integrated circuit form, leading to availability of more complex functions in a smaller size.

Digital and Analog Quantities

Binary Digits, Logic Levels, and Digital

Waveforms

Decimal Number System

  • The decimal number system is a radix-10 number system and therefore has 10 different digits or symbols.
  • These are 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
  • All higher numbers after ‘9’ are represented in terms of these 10 digits only.
  • The place values of different digits in a mixed decimal number, starting from the decimal point, are 10 0 , 10 1 , 10 2 and so on (for the integer part) and 10 − , 10 − , 10 − and so on (for the fractional part).
  • The value or magnitude of a given decimal number can be expressed as the sum of the various digits multiplied by their place values or weights.
  • As an illustration, in the case of the decimal number 3586.265, the integer part (i.e. 3586) can be expressed as and the fractional part can be expressed as

Binary Number System

  • The binary number system is a radix-2 number system with ‘0’ and ‘1’ as the two independent digits.
  • All larger binary numbers are represented in terms of ‘0’ and ‘1’.
  • The procedure for writing higher order binary numbers after ‘1’ is similar to the one explained in the case of the decimal number system.
  • For example, the first 16 numbers in the binary number system would be 0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1100, 1101, 1110 and 1111
  • The largest number which can be represented by n bits is 2 n^ − 1.
  • For example, with 4 bits the largest number is 1111 2 = 15.
  • The most signicant bit (MSB) is the bit representing the highest power of 2, and the LSB represents the lowest power of 2.
  • Arithmetic with unsigned binary is analogous to decimal.
  • For example 1-bit addition and multiplication are as follows: 0 + 0 = 0, 0 + 1 = 1, 1 + 1 =10, 0 x 0 = 0,
  • 0 x1 = 0, and 1 x 1 = 1.
  • Note that this is different from Boolean algebra , where 1 + 1 = 1.

2’s Complement & 2’s Complement

Subtraction

  • The 2 ’s complement of a binary number is obtained by adding1 to the 1’s complement.
  • For example, the 2’s complement of (10010110) 2 is………………….
  • Subtraction of binary numbers can also be accomplished using 2’s complement method, which allows us to subtract using only addition
  • Method is follows: Subtracting smaller from larger no. 1) Determine the 2’s complement of the smaller number. 2) Add the 2’s complement to the larger number. 3) Discard the carry (there is always a carry in this case)
  • Method is follows: Subtracting larger from smaller no. 1) Determine the 2’s complement of the larger number. 2) Add the 2’s complement to the smaller number. 3) There is no carry. The result is in 2’s complement form and is negative. 4) Answer in true form, take the 2’s complement and change the sign.

Hexadecimal Number System

  • The hexadecimal number system is a radix-16 number system and its 16 basic digits are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F.
  • The place values or weights of different digits in a mixed hexadecimal number are 16^0 , 16^1 , 16^2 and so on (for the integer part) and 16−1, 16−2, 16 −3^ and so on(for the fractional part).
  • The decimal equivalent of A, B, C, D, E and F are 10, 11, 12, 13, 14 and 15 respectively, for obvious reasons.
  • The hexadecimal number system provides a condensed way of representing large binary numbers stored and processed inside the computer.
  • One such example is in representing addresses of different memory locations.
  • Let us assume that a machine has 64K of memory.
  • Such a memory has 64K (= 2^16 = 65 536) memory locations and needs 65 536 different addresses.
  • These addresses can be designated as 0 to 65 535 in the decimal number system and 00000000 00000000 to 11111111 11111111 in the binary number system.
  • The decimal number system is not used in computers and the binary notation here appears too cumbersome and inconvenient to handle.
  • In the hexadecimal number system, 65 536 different addresses can be expressed with four digits from 0000 to FFFF.

Sign-Bit Magnitude Representation

of Decimal Numbers

  • In the sign-bit magnitude representation of

positive and negative decimal numbers, the

MSB represents the ‘sign’, with a ‘0’ denoting a

plus sign and a ‘1’ denoting a minus sign.

  • The remaining bits represent the magnitude.
  • In eight-bit representation, while MSB represents

the sign, the remaining seven bits represent the

magnitude.

  • For example, the eight-bit representation of +

would be 00001001, and that for −9 would be

1’s Complement Representation in

Binary Numbers

  • In the 1’s complement format, the positive numbers remain unchanged.
  • The negative numbers are obtained by taking the 1’s complement of the positive counterparts.
  • For example, +9 will be represented as 00001001 in eight-bit notation, and −9 will be represented as 11110110, which is the 1’s complement of 00001001.

Binary-to-Decimal Conversion

• The decimal equivalent of the binary

number (1001.0101)

is determined as

follows:

• The integer part = 1001

• The decimal equivalent =?

• The fractional part =.

• Therefore, the decimal equivalent =?

• Therefore, the decimal equivalent of

Hexadecimal-to-Decimal

Conversion

  • The decimal equivalent of the hexadecimal

number (1E0.2A)

16

is determined as follows:

  • The integer part = 1E
  • The decimal equivalent =?
  • The fractional part = 2A
  • The decimal equivalent =?
  • Therefore, the decimal equivalent of (1E0.2A) 16

10

Decimal-to-Binary Conversion

• Find the binary equivalent of (13.375)

Decimal-to-Hexadecimal

Conversion

  • Determine the hexadecimal equivalent of (82.25)