05 - Codes & Displays - 2022-23
05 - Codes & Displays - 2022-23
LOGIC DESIGN
CODES
DISPLAYS
Exp:
Decimal Binary BCD
0 0 0
9 1001 1001
10 1010 0001 0000
141 10001101 0001 0100 0001
8421 code
tn : weight 8421
23 22 -2 -1
BCD (Binary Coded Decimal) Addition
7
Remember:
If sum =< 9
Each digit in the decimal
system is represented by 5 0101 45 0100 0101
4 bits. + 4 + 0100 + 33 + 0011 0011
9 1001 78 0111 1000
64
- 22 take complement according to base t
42 22 78
and make addition
64 0100 0100
78 + 0111 1000
1101 1100
9< >9
+ 0110 0110 iki tarafa da 6 ekle.
1 0100 0010
ignore result is: 0100 0010
Self Complementing code
9
Example:
Convert 48 given in decimal (base 10) to excess3 code.
0100 1000
+ 0011 0011
(0111 1011)excess3
Reflecting code (Yansımalı Kod)
11
3 bit gray
4 bit gray
UDBC
Types of Codes…
13
Exp: Find and correct the bit error (according to odd parity).
10011 number of 1’s : 3 OK
10111 number of 1’s : 4 X
01000
Error at 10000
intersection.
Take the 10011 number of 1’s: 1 OK
complement to number of 1’s: 4 X
correct !
18
PART B: Displays
19
LED diplays
Seven –segment display Seven –segment display
18-segment display
5x7 dotmatrix display
Seven –segment display
20
Dec a b c d e f g
0 0 0 0 0 0 0 1 Dec a b c d e f g
9 0 0 0 1 1 0 0 0 1 1 1 1 1 1 0
9 1 1 1 1 0 1 1
BCD-7segment converter (7447)
21