2. DIGITAL ELECTRONICS
• Information representation
Sign and magnitude.
Complement number systems, addition, subtraction,
division, multiplication of binary numbers.
Character coding ASCII, hexadecimal number systems.
Hexadecimal.
• Digital fundamentals
Difference between analog and digital systems.
Logic levels and families.
Logic values, truth tables and logical operations.
Boolean algebra.
De Morgan’s Theorem
3. DIGITAL ELECTRONICS
• Function of combination logic
Conversion of BCD to 7 segment decoder.
Multiplexer, tri-state output, fan out, address, half
adder, full adder, comparator.
Logic minimisation and Karnaugh maps.
• Function of sequential logic
Sequential logic.
Latches gated and edge-triggered S-R latch.
Edge-trigged D-type latches.
Toggle flip-flop.
Asynchronous counters, registers.
State machines.
4. DIGITAL ELECTRONICS
• Memory organisation
Principles of storage, RAM, ROM, PROM, EPROM.
Dynamic theory, logic diagram of a single bit within a
RAM and its operation.
Coincident address selection.
Block diagram of a single bit within a RAM and its
operation.
• Conversation between analoque and systems
function of A-D and D-A Converters.
Principle of operation of a D-A converter.
Principle of operation of a single ramp.
A continuously balanced and successive
approximation A-D converter.
5. INFORMATION REPRESENTATION
Information representation
- Number systems actually represent data
before they are processed by any digital
system
- There are various number systems but all
number systems are related to a
common parameter
6. INFORMATION REPRESENTATION
- Different characteristics define different
number systems including
number of independent digits
place values of different digits
maximum number able to be written in the
number system
• The most fundamental characteristic is the
number of independent digits or symbols used
in the number system known as radix or base
7. INFORMATION REPRESENTATION
• the most familiar number system is the decimal
system which has 10 independent digits or a
radix of 10
the decimal number consists of 0,1,2,3,4,5,6,7,8,9
• the binary number system has only 2
independent digits, i.e. 0,1
• the octal and hexadecimal number system has
8 and 16 independent digits respectively
octal: 0,1,2,3,4,5,6,7
hexadecimal: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
8. INFORMATION REPRESENTATION
• the place value of different digits in the
integer are given as rn
, where r is the radix of
the system and represents the maximum
number that can be written with n digits:
24
23
22
21
20
=16 =8 =4 =2 =1
1 0 1 1 0
= 101102 = 2210
9. INFORMATION REPRESENTATION
Sign/magnitude notation
• is the simplest and one of the most obvious
methods of encoding positive and negative
numbers.
– Assign the leftmost (most significant) bit to be
the sign bit. If the sign bit is 0, this means the
number is positive. If the sign bit is 1, then the
number is negative. The remaining m-1 bits are
used to represent the magnitude of the binary
number in the unsigned binary notation.
13. INFORMATION REPRESENTATION
Sign/magnitude notation
Example:
Add –5 + -4
5 = 00101. Flip the bits to get 11010, and add 1 to get 11011
4 = 00100. Flip the bits to get 11011, and add 1 to get 11100
11011
+ 11100
----------
110111 = 10111 when we discard the carry
10111 is negative, as indicated by the leading 1.
Flip the bits to get 01000. Add 1 to get 01001. The result is
9. Since it is negative, we really have –9.
14. INFORMATION REPRESENTATION
• 1's Complement Arithmetic
The Formula
N *= (2n
-1) - N
where: n is the number of bits per word
• N is a positive integer
• N* is -N in 1's complement notation
• For example with an 8-bit word and N = 6, we
have:
N* = (28
-1) - 6 = 255 - 6 = 249 = 111110012
15. INFORMATION REPRESENTATION
• In Binary
An alternate way to find the 1's complement is to simply
take the bit by bit complement of the binary number.
For example: N = +6 = 000001102
N *= -6 = 111110012
Conversely, given the 1's complement we can find the
magnitude of the number by taking it's 1's complement.
The largest number that can be represented in 8-bit 1's
complement is 011111112 = 127 = $7F. The smallest is
100000002 = -127. Note that the values 000000002 and
111111112 both represent zero.
16. INFORMATION REPRESENTATION
• Addition
End-around Carry.
When the addition of two values results in a
carry, the carry bit is added to the sum in the
rightmost position. There is no overflow as
long as the magnitude of the result is not
greater than 2n
-1.
17. INFORMATION REPRESENTATION
• 2's Complement Arithmetic
The Formula
N ** = 2n
- N
where: n is the number of bits per word
• N is a positive integer
• N** is -N in 2's complement notation
• For example with an 8-bit word and N = 6, we
have:
N** = 28
- 6 = 256 - 6 = 250 = 111110102
18. INFORMATION REPRESENTATION
• In Binary
An alternate way to find the 2's complement is to
start at the right and complement each bit to the left
of the first "1".
For example: N = +6 = 000001102
N** = -6 = 111110102
Conversely, given the 2's complement we can find the
magnitude of the number by taking it's 2's complement.
The largest number that can be represented in 8-bit 2s
complement is 011111112 = 127. The smallest is
100000002 = -128.
19. INFORMATION REPRESENTATION
• Addition
When the addition of two values results in a
carry, the carry bit is ignored. There is no
overflow as long as the magnitude is not
greater than 2n
-1 nor less than -2n
.
36. INFORMATION REPRESENTATION
• ASCII code
- stands for American Standard Code for
Information Interchange
- a seven bit code based on the English
alphabet used to represent alphanumeric data
in computers or communication equipment
- able to represent 128 characters: A to Z, a to
z, 0 to 9, a few mathematical symbols,
punctuation marks and space character