Chapter 3 Data Processing Circuit

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 26

CHAPTER 3

DATA PROCESSING CIRCUIT

HAK CIPTA TERPELIHARA


Mafuzah Nor Binti Radzi

1
WHAT COMES IN YOUR MIND AT
THE 1ST SIGHT?

Raihana Binti Sam Hun 2


Digital System In Calculator
INPUT DISPLAY

KEYBOARD ENCODER CPU DECODER

 If you push keypad 7, code binary for


decimal 7 (0111) will be processed by CPU.
 Therefore the data will be change by
decoder circuit so that it can be displayed
in general form which user will be
understood.

3
DECIMAL TO BCD CODE

BCD CODE
Decimal
D C B A
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1

4
A. ENCODER
 The function of encoder is to change
input data either in number or
symbol (decimal number) to code
(BCD code) before it processed by
computer. Formula :

 2n input line = n output line


 Example :
24 input line = 4 output line
Or 10 lines to 4 lines
5
24 input line = 4 output line

0
1
2
3 A BCD
Decimal
4 B Code
Input
5 C Output
6 D
7
8
9

BCD code
0~9 only even
the input is 24 = 16

Encoder decimal number to BCD code block

6
+5V

BCD output

9 8 7 6 5 4 3 2 1 Decimal input
desimal

Decimal number to BCD code basic encoder circuit

7
INPUT OUTPUT
Decimal
SW1 SW2 SW3 SW4 SW5 SW6 SW7 SW8 SW9 D C B A

0 H H H H H H H H H 0 0 0 0
1 L H H H H H H H H 0 0 0 1
2 H L H H H H H H H 0 0 1 0
3 H H L H H H H H H 0 0 1 1
4 H H H L H H H H H 0 1 0 0
5 H H H H L H H H H 0 1 0 1
6 H H H H H L H H H 0 1 1 0
7 H H H H H H L H H 0 1 1 1
8 H H H H H H H L H 1 0 0 0
9 H H H H H H H H L 1 0 0 1

8
B. DECODER
 Decoder is a device which process
BCD code to data that user can be
understood.
 n input line = 2n output line

n input signal

Formula :

2n output signal

9
Binary Decimal
input Decoder 2 to 4 output
lines

Symbol/ block diagram decoder 2 to 4 lines

INPUT
S1 S0

B OUTPUT
C

Logic circuit for decoder 2-to-4

10
Input Output (LED)

S1 S0 D C B A

0 0 0 0 0 1

0 1 0 0 1 0

1 0 0 1 0 0

1 1 1 0 0 0

Decoder 2-to-4 truth table

11
1. Decoder Integrated Circuit

Binary to
7442 decimal
Common decoder IC
decoder IC 7 segment
7447 display
decoder

12
1.1 Binary to Decimal Decoder (IC 7442)

0 0
1 16 Vcc 1
1
1 2 15 A 2
3
2 ACTIVE LOW
2 A
3 14 B
15 4 3 Output
B
3 4 13 C
14 5 4
C
4 5 12 D 13 6 5
D
5 6 11 9 7 6
9 7
6 7 10 8
10 8
GND 8 9 9
7 11
(a)

Decimal INPUT OUTPUT


D C B A 0 1 2 3 4 5 6 7 8 9
0 0 0 0 0 L H H H H H H H H H
1 0 0 0 1 H L H H H H H H H H
2 0 0 1 0 H H L H H H H H H H
3 0 0 1 1 H H H L H H H H H H
4 0 1 0 0 H H H H L H H H H H
5 0 1 0 1 H H H H H L H H H H
6 0 1 1 0 H H H H H H L H H H
7 0 1 1 1 H H H H H H H L H H
8 1 0 0 0 H H H H H H H H L H
9 1 0 0 1 H H H H H H H H H L

13
Application

CPU Bus data


PRINTER

EN

7442 KEYBOARD

EN
1
A0 2
A1 3
MODEM
I/O A2 15 4
PORT A3 14 5 EN
13 6
7
9
10
11

I/O Computer Port System

14
7447 : 7 SEGMENT DISPLAY

15
1.1 7- Segment Display Decoder (IC 7447)
a

f g b

e c
(b)
d

(a)

(a): Block diagram 7- Segment Display Decoder


(b): 7- Segment Display from 0 to 9.
16
17
MULTIPLEXER & DEMULTIPLEXER :

 Cable line : use to send data for long distance.


 Data transmission in parallel method : high cost.
 Data transmission in serial method : low cost.

18
MULTIPLEXER & DEMULTIPLEXER
ILLUSTRATION

19
C. MULTIPLEXER
 One tool which allowed digital
information from several cause sent
through one transmission line.
 Some input and only one product line
(transmission line).
 Also known as data selectors.
 If multiplexer having 2 selector
lines then, line total entry was 4
(22).
20
Formula :
2n input line = n selector line

output line
2n input line

n selector line

Multiplexer 4 to 1 line block diagram

21
D0

A
D1

Data B
input
D2
Y
C
Data output
D3
D

Selector lines Output


S1 S0 (Y)
0 0 Y = D0
S1 S0
0 1 Y = D1

Selector line 1 0 Y = D2
1 1 Y = D3
Multiplexer 4 to 1 line basic circuit
Multiplexer 4 to 1 line truth table

22
D. DEMULTIPLEXER
 Demultiplexer is contrary from
multiplexer.
 It with function for accepts data
through one transmission lines
(series) and after that distribute to
one of the several output lines.
 If demultiplexer has n selector line so
the output line is 2n.

23
Formula :
2n output line = n selector
line

DEMUX Output line


Input line

1 to 2n

n selector line

Demultiplexer 1line to 4 lines block diagram

24
Data Input D0

D1

S0 (SW1)
D2

S1 (SW2) D3

Demultiplexer 1line to 4 lines basic circuit

Selector line Output


S1 S0 D0 D1 D2 D3
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1

Demultiplexer 1 line to 4 lines truth table


25
ONE MINUTE PAPER :

WHAT DO YOU
UNDERSTAND FROM
TODAY’S LESSON?

26

You might also like