Professional Documents
Culture Documents
Example:
11
Binary Numbers
The binary number system has two digits (bits). The two binary digits
(bits) are 1 and 0.
The position of 1 or 0 in a binary number indicates its weight. The
weights in a binary number are based on powers of two.
The right-most bit is the LSB (least significant bit) in a binary whole
number and has a weight of 2°= 1.
The weights increase from right to left by a power of two for each bit.
The left-most bit is the MSB (most significant bit). The left-most bit is
the MSB in a binary fractional number and has a weight of 2-1= 0.5.
The fractional weights decrease from left to right by a negative power
of two for each bit.
Example:
12
Hexadecimal numbers
Hexadecimal numbers are used extensively in microprocessor work.
To begin with, they are much shorter than binary numbers.
This makes them easy to write and remember. Furthermore, you can
mentally convert them to binary whenever necessary.
The hexadecimal number system has a base of 16.
Although any 16 digits may be used, everyone uses 0 to 9 and A to F
In other words, after reaching 9 in the hexadecimal system, it
continues as follows:
A,B,C,D,E,F
In the hexadecimal system, we allow 16 values for each digit of a number:
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", and "F".
13
…
Hexadecimal digits
14 Conversion among radices
As an example, let's start with a decimal number 1234 and convert
it to decimal notation.
To extract the last digit, you move the decimal point left by one
digit, which means that you divide the given number by its base 10.
1234/10 = 123 + 4/10
The remainder of 4 is the last digit.
To extract the next last digit, you again move the decimal point left
by one digit and see what drops out.
123/10 = 12 + 3/10
The remainder of 3 is the next last digit.
Repeat this process until there is nothing left.
15 …
In summary, you do the following:
LSB
MSB
which are different. The rule which is used is that ‘.’ is always
performed before '+'. Thus X . Y + Z is (X.Y) + Z.
37 Laws & Rules of Boolean Algebra
Commutative Laws
38 …
Associative Laws
39 …
Distributive Law
40 Basic identities of Boolean algebra
41 Standard forms of Boolean expressions
AB+A(B+C)+B(B+C)
(distributive law)
AB+AB+AC+BB+BC
(rule 7; BB=B)
AB+AB+AC+B+BC
(rule 5; AB+AB=AB)
AB+AC+B+BC
(rule 10; B+BC=B)
AB+AC+B
(rule 10; AB+B=B)
B+AC
67 Universality of logic gates
Any logic expression can be implemented using only NAND gates or
only NOR gates and no other type of gate.
NAND gates alone in the proper combination, can be used to perform
each of the basic Boolean operations OR, AND, and INVERT.
68 …
Using NOR gate Similarly, it can be shown that NOR gates
can be arranged to implement any of the Boolean operations.
69 Some Common Applications of Logic Gates
OR Gate: the OR gate is used to detect either temperature or pressure
exceeding a preset threshold value and produce the necessary
command signal for the system.