Professional Documents
Culture Documents
Digital Systems
Number Systems
Class Notes – 01*
– The most primitive digital systems (circuits) are the AND, OR and NOT
gates which perform the logical AND, OR and NOT operations.
2
Dr. Ghassan Z. Qadah
Digital Systems
3
Dr. Ghassan Z. Qadah
Number Systems
• Definition: Number system
A collection of rules that are used to represent and
compute numbers in that system.
For the hex system ( with r = 16) and to avoid confusion, the hex digits 10, 11,
12, 13, 14, and 15 are represented with the letters A, B, C, D, E and F,
respectively.
Ex. The binary number (101.101)2 (positional real binary number)
– (binary) (101.101)2
6
Dr. Ghassan Z. Qadah
Value of Positional Numbers
• The decimal value of a positional number with a base r is:
– (Octal) (76.7)8 =
= 7 * 81 + 6 * 80 * 7 x 8-1
= 56 + 6 + .875
= 62.875
- (Hex) (B.C3)16 =
7
Dr. Ghassan Z. Qadah
Binary to Decimal Numbers Conversion: Example
8
Dr. Ghassan Z. Qadah
Decimal to Binary Conversion
– Two steps:
– Convert the integer part: Repeated Division-by-2 method
– Convert the fractional part: Repeated Multplication-by-2 method
(19.6875)10 (???)2
9
Dr. Ghassan Z. Qadah
Decimal to Binary Conversion
(19.6875)10 (???)2
10
Dr. Ghassan Z. Qadah
Decimal Numbers-to-binary Conversion:
Another Example
Convert the following decimal number to binary one:
11
Dr. Ghassan Z. Qadah
Decimal Numbers-to-binary Conversion: in class
Example
Convert the following decimal number to binary one:
12
Dr. Ghassan Z. Qadah
Binary Numbers: Simple Arithmetic operations(3)
• Binary Arithmetic:
– Addition
– Subtraction
+7 0 111
-7 1 111
method:
– 1’s complement of number (11111000) (0000111) 7, that is
the number is -7
– Ex.
• Overflow Occurs when both numbers are positive or both numbers are
negative.
• Overflow is detected when:
– Both numbers are positive and the sum is negative or
– Both numbers are negative and the sum is positive.
28
Dr. Ghassan Z. Qadah
Conversion between Binary and Octal
• Convert from Octal to binary: replace each octal digit with its
equivalent 3-bit binary number, as shown in the example below.
1. Convert decimal numbers to/from binary, octal, hexadecimal and carry out
simple and signed arithmetic operations in these base systems.
5. Understand functional and timing properties of different kinds of latches and flip
flops.
38
Dr. Ghassan Z. Qadah
Course Outcomes (continues)
6. Translate verbal description of a given sequential system to a circuit design
following procedures for designing synchronous sequential circuits.
7. Design a sequential circuit starting from a state diagram, using flip-flops and
basic MSI sequential components such as shift registers, counters, one shot and
register banks.
8. Build and test simple digital circuits using SSI/MSI/LSI components on logic
breadboards, and to use schematic captures to create and simulate simple circuits
using the Multisim software tool.
39
Dr. Ghassan Z. Qadah