Chapter 3 Data Processing Circuit
Chapter 3 Data Processing Circuit
Chapter 3 Data Processing Circuit
1
WHAT COMES IN YOUR MIND AT
THE 1ST SIGHT?
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 :
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
6
+5V
BCD output
9 8 7 6 5 4 3 2 1 Decimal input
desimal
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
INPUT
S1 S0
B OUTPUT
C
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
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)
13
Application
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
14
7447 : 7 SEGMENT DISPLAY
15
1.1 7- Segment Display Decoder (IC 7447)
a
f g b
e c
(b)
d
(a)
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
21
D0
A
D1
Data B
input
D2
Y
C
Data output
D3
D
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
1 to 2n
n selector line
24
Data Input D0
D1
S0 (SW1)
D2
S1 (SW2) D3
WHAT DO YOU
UNDERSTAND FROM
TODAY’S LESSON?
26