Professional Documents
Culture Documents
CPLGCT30
LO G IC C IR C U IT S A N D D ES IG N
INTRODUCTION
Logic & Circuits
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
1 2
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
3 4
1
3/26/24
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
5 6
2.) Add the decimal equivalents from the bits with 1s:
1 0 0 1 1 1 0 1 1 1 0
( 24) = 16 ( 2 3) = 0 ( 2 2) = 0 ( 2 1) = 2 ( 2 0) = 1 ( 25) = 32 ( 2 4) = 0 ( 2 3) = 8 ( 2 2) = 4 ( 2 1) = 2 ( 2 0) = 0
16 + 0 + 0 + 2 + 1 = 19 32 + 0 + 8 + 4 + 2 + 0 = 46
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
7 8
2
3/26/24
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
9 10
11 12
3
3/26/24
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
13 14
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
15 16
4
3/26/24
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
17 18
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
19 20
5
3/26/24
21 22
Binary Codes
2.1 Introduction
- Digital systems process only codes consisting of 0s and 1s (binary
codes). That is due to the bistable nature of digital electronic circuits.
- Special binary codes have evolved over the years to perform specific
functions in digital equipment. It operates on a
- In a digital system, electronic translators (called encoders and
decoders) are used for converting from code to code. The following
sections will detail the process of conversion from one code to
another.
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
23 24
6
3/26/24
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
25 26
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
27 28
7
3/26/24
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
29 30
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
31 32
8
3/26/24
Step 3.) illustrates the fractional part of the decimal number being translated into 1. The binary number is first converted to
binary. The 0.510 is converted into 0.1, by the repeated multiply-by-2 procedure. The its decimal equivalent. The binary
number 10001010.101 then equals
integer and fractional parts of the binary number are joined. The BCD number
138.62510.
000100000011.0101 then equals the binary number 1100111.1. 2. Each decimal digit is then translated
into its BCD equivalent. Figure 2-4
shows decimal 138.625 being
converted into the BCD number
000100111000.011000100101.
3. The entire conversion then translates
binary 10001010.101, into the BCD
number 000100111000.011000100101.
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
33 34
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
35 36
9
3/26/24
Convert to Binary
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
37 38
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
39 40
10
3/26/24
41 42
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
43 44
11
3/26/24
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
45 46
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
47 48
12
3/26/24
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
49 50
Prepared by: Engr. Mark Macawile, MSc, PMP Prepared by: Engr. Mark Macawile, MSc, PMP
51 52
13