Foc 1st Chapter Notes
Foc 1st Chapter Notes
Definition:
A number system is defined as a system of writing to express
numbers. It is the mathematical notation for representing numbers of
a given set by using digits or other symbols in a consistent manner.
Based on the base value and the number of allowed digits, number
systems are of many types.
The four common types of Number System are:
1)Decimal Number System (Base 10 Number System)
The decimal number system has a base of 10 because it uses ten digits from 0
to 9. In the decimal number system, the positions successive to the left of the
decimal point represent units, tens, hundreds, thousands and so on. This
system is expressed in decimal numbers. Every position shows a particular
power of the base (10).
Example:
Write (14)10 as a binary number.
2 14 Reminder
2 7 0
2 3 1
∴ ( 1 4 ) 1 0 =(1110)2
1 1
Example:
Convert 2158 into decimal.
Method
2158 = 2 × 82 + 1 × 81+ 5 × 80
= 2 × 64 + 1 × 8 + 5 × 1
= 128 + 8 + 5= (141)10
Explanation:
The correct characteristic is that the 'The size of base is more than the number
of digits’, that is
•In binary system, the digits can be 0 and 1 and the base is 2.
• In octal system, the digits are 0, 1, 2, 3, 4, 5, 6 and 7 and the base is 8.
•In decimal system, the digits are 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 and the base is
10.
a. Binary additions
and subtractions are performed as same in decimal additions and
subtractions. When we perform binary additions, there will have two outputs:
Sum (S) and Carry (C). There are four rules for binary addition. These are
given as following below,
b.
Input A Input B Sum(s)=A+B Carry (c)
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Binary subtraction
. These are given as following below,
Borrow 1 is required from next higher order bit to subtract 1 from 0.So,result
become 0
d.Binary division:
Dividend, Divisor, quotient, and remainder. These are given as following
rules for binary division,
Types of codes
Gray code
•Differs from leading and following number by a single bit.
•Gray code for 2 is 0011 and for 3 is 0010.
•No weights are assigned to the bit positions.
•Extensively used in shaft encoders.
Excess-3 code
•4-bit code is obtained by adding binary 0011 to the natural BCD code of the
digit.
•Example - decimal 2 is coded as 0010 + 0011 = 0101 as Excess-3 code.
•It not weighted code.
•Its self-complimenting code, means 1's complement of the coded number
yields 9's complement of the number itself.
•Used in digital system for performing subtraction operations.
Unicode:
A standard for representing characters as integers. Unlike ASCII, which uses
7 or 8 bits for each character,Unicode uses 16 bits, which means that it can
represent more than 65,000 unique characters. This is a bit of overkill for
English and Western-European languages, but it is necessary for some other
languages, such as Greek, Chinese and Japanese. Many analysts believe
that as the software industry becomes increasingly global, Unicode will
eventually supplant ASCII as the standard character coding format.
1.5Logic gates
Computers and digital component use binary 0and 1, where 0 is low voltage (0
volts) and 1 is high voltage (+5 volts). Binary information is carried by signals
and manipulation of binary information is done by logic circuits called as
gates. A circuit whose input and output signals are two states on and off. A
gate is logic circuit with one or more input signals but only one output signal.
AND Gate
•Two or more input signals and one output signal.
•Output is high when both the inputs are high.
•Logic equation Y = A X B called as Boolean equation.
•Where A and B are the inputs and Y is the output for all standard symbols of
gates shown below.
OR Gate
•Two or more input signals and one output signal.
•Output is low when both the inputs are low.
•Logic equation Y = A + B.
NOT Gate
•One input signal and one output signal, also called asinverter.
•Output is always opposite state of the input.
•Logic equation Y =A
•Where is A is the complement of A.
Boolean algebra is a branch of algebra that only uses ‘false’ and ‘true’ values for
variables and is usually denoted by 0 and 1.
It is defined as a system of logic where variables are represented as whole
numbers between 0 and 1.
The values that you take on the numbers are true or false, but not both at the
same time.
A variable is either true or false, but never both true and false simultaneously.
The variables of Boolean algebra can take only one of two possible values,
zero and one.
Still, like any other mathematical expression, Boolean expressions too can
have an infinite number of variables, all of which represent different
individual inputs to the expression.
A complete understanding of the laws and theorems must be grasped to
use Boolean algebra properly.
Boolean expressions can also be converted using logic gates like OR gate,
AND gate, NOT gate, NOR gates,XOR gates, XNOR gates, NAND gates,
etc.
The three basic Boolean operations are:
1.OR gate returns ‘true’ or ‘1’ if either of the input variables is true.
A B A OR B=A+B
0 O O
0 1 1
1 0 1
1 1 1
2.AND gate returns ‘true’ or ‘1’ only if all the input variables
are true.
A B A AND B=A.B
0 O O
0 1 0
1 0 0
1 1 1
2.A × 1 = A
3.A × A = A
4.A × A = 0
5.A + 0 = A
6.A + 1 = 1
7.A + A = 1
8.A + A = A
Some basic Boolean algebra laws that are used to simplify Boolean
expressions are:
1. Idempotent Law
A × A = A
A + A = A
2. Associative Law
(AxB)xC=Ax(BxC)
(A+B)+C=A+(B+C)
3. Commutative Law
AxB=BxA
A+B=B+A
4. Distributive Law
Ax(BxC)=AxB+AxC
A+(B+C)=(A+B)x(A+C)
5. Identity Law
A×0=0 A×1=
A+1=1 A+0=A
6. Complement Law
A × A = 0
A + A = 1
7. Involution Law
(A )̅ = A
(A × B)̅ = A + B
(A + B)̅ = A × B
A + (A × B) = A
A × (A + B) = A
(A × B ) + (A × B ) = A
(A+ B ) × (A + B ) = A
A + (A × B) = A + B
A × (A + B) = A × B