Download as pdf or txt
Download as pdf or txt
You are on page 1of 31

BLG 231E- Digital Circuits

Code

Ali Sinan ÇABUK, PhD

CODING

Ali Sinan
ELKCABUK,
226E PhD

1
BCD Code
Binary coded decimal (BCD) is a system of writing numerals that
assigns a four-digit binary code to each digit 0 through 9 in a decimal
(base-10) numeral. The four-bit BCD code for any particular single
base-10 digit is its representation in binary notation, as follows:
0 = 0000. 1 = 0001. 2 = 0010.

Ali Sinan
ELKCABUK,
226E PhD

BCD Code
Binary coded decimal (BCD) is a system of writing numerals that
assigns a four-digit binary code to each digit 0 through 9 in a decimal
(base-10) numeral. The four-bit BCD code for any particular single
base-10 digit is its representation in binary notation, as follows:
0 = 0000. 1 = 0001. 2 = 0010.

Example: (263) decimal to BCD

Ali Sinan
ELKCABUK,
226E PhD

2
BCD Code
Example: (100100110110) BCD to decimal

Ali Sinan
ELKCABUK,
226E PhD

Gray Code

Ali Sinan
ELKCABUK,
226E PhD

3
Gray Code

Ali Sinan
ELKCABUK,
226E PhD

Gray Code

Ali Sinan
ELKCABUK,
226E PhD

4
Gray Code

MSB

Ali Sinan
ELKCABUK,
226E PhD

Gray Code

Ali Sinan
ELKCABUK,
226E PhD

5
Gray Code

Ali Sinan
ELKCABUK,
226E PhD

Gray Code

Ali Sinan
ELKCABUK,
226E PhD

6
Excess-3 Code

Ali Sinan
ELKCABUK,
226E PhD

Excess-3 Code

Ali Sinan
ELKCABUK,
226E PhD

7
Excess-3 Code

Ali Sinan
ELKCABUK,
226E PhD

Excess-3 Code

Ali Sinan
ELKCABUK,
226E PhD

8
Excess-3 Code

Excess-3 Code

Ali Sinan
ELKCABUK,
226E PhD

Excess-3 Code

Decimal

Ali Sinan
ELKCABUK,
226E PhD

9
Excess-3 Code

Ali Sinan
ELKCABUK,
226E PhD

Excess-3 Code

Ali Sinan
ELKCABUK,
226E PhD

10
Two-out-of-five code

Ali Sinan
ELKCABUK,
226E PhD

Two-out-of-five code

Two-out-of-five code

5 to 2

5 to 2

5 to 2

Ali Sinan
ELKCABUK,
226E PhD

11
Parity codes

Ali Sinan
ELKCABUK,
226E PhD

Parity codes

Ali Sinan
ELKCABUK,
226E PhD

12
Parity codes

Ali Sinan
ELKCABUK,
226E PhD

Parity codes

Ali Sinan
ELKCABUK,
226E PhD

13
Parity codes

Ali Sinan
ELKCABUK,
226E PhD

Parity codes

Ali Sinan
ELKCABUK,
226E PhD

14
Parity codes

with even parity

3 bits, so add 1

with even parity

2 bits, so add 0

Ali Sinan
ELKCABUK,
226E PhD

Parity codes

with odd parity

2 bits, so add 1

with odd parity

3 bits, so add 0

Ali Sinan
ELKCABUK,
226E PhD

15
Aiken codes

Ali Sinan
ELKCABUK,
226E PhD

Aiken codes

Ali Sinan
ELKCABUK,
226E PhD

16
Aiken codes

Aiken codes

Aiken codes

Ali Sinan
ELKCABUK,
226E PhD

Bar codes

A barcode is a square or rectangular image consisting of a series of


parallel black lines and white spaces of varying widths. Barcode
stores product related data like the date of manufacturing, expiry
date, name of the manufacturer, country of the origin and price
quantity of the product.

Ali Sinan
ELKCABUK,
226E PhD

17
Bar codes

Ali Sinan
ELKCABUK,
226E PhD

Bar codes

Ali Sinan
ELKCABUK,
226E PhD

18
Bar codes

Ali Sinan
ELKCABUK,
226E PhD

Bar codes

Ali Sinan
ELKCABUK,
226E PhD

19
Bar codes

Ali Sinan
ELKCABUK,
226E PhD

Bar codes

Ali Sinan
ELKCABUK,
226E PhD

20
Bar codes

Ali Sinan
ELKCABUK,
226E PhD

Bar codes

Ali Sinan
ELKCABUK,
226E PhD

21
Bar codes

Ali Sinan
ELKCABUK,
226E PhD

Bar codes

Ali Sinan
ELKCABUK,
226E PhD

22
Bar codes

Ali Sinan
ELKCABUK,
226E PhD

Bar codes

Ali Sinan
ELKCABUK,
226E PhD

23
Bar codes
Two Dimensional Barcodes
Data Matrix

Ali Sinan
ELKCABUK,
226E PhD

Bar codes
Two Dimensional Barcodes
Data Matrix

Ali Sinan
ELKCABUK,
226E PhD

24
Bar codes
Two Dimensional Barcodes
QR Code

Ali Sinan
ELKCABUK,
226E PhD

Bar codes
Two Dimensional Barcodes
QR Code

Ali Sinan
ELKCABUK,
226E PhD

25
Ali Sinan
ELKCABUK,
226E PhD

American Standard Code for Information Interchange. It is a code for


representing 128 English characters as numbers, with each letter
assigned a number from 0 to 127. For example, the ASCII code for
uppercase M is 77. Most computers use ASCII codes to represent text,
which makes it possible to transfer data from one computer to another.

Ali Sinan
ELKCABUK,
226E PhD

26
Ali Sinan
ELKCABUK,
226E PhD

Ali Sinan
ELKCABUK,
226E PhD

27
Ali Sinan
ELKCABUK,
226E PhD

Ali Sinan
ELKCABUK,
226E PhD

28
Ali Sinan
ELKCABUK,
226E PhD

Ali Sinan
ELKCABUK,
226E PhD

29
The standard ASCII Character Set
The standard ASCII character set uses just 7 bits for each character.
There are several larger character sets that use 8 bits, which gives
them 128 additional characters. The extra characters are used to
represent non-English characters, graphics symbols, and mathematical
symbols.

Several companies and organizations have proposed extensions for


these 128 characters. The DOS operating system uses a superset of
ASCII called extended ASCII or high ASCII. A more universal standard
is the ISO Latin 1 set of characters, which is used by many operating
systems, as well as Web browsers.

Another set of codes that is used on large IBM computers is EBCDIC

Ali Sinan
ELKCABUK,
226E PhD

Alfa Sayısal Kodlar

Ali Sinan
ELKCABUK,
226E PhD

30
Extended binary coded decimal interchange code (EBCDIC) is an 8-bit
binary code for numeric and alphanumeric characters. It was
developed and used by IBM. It is a coding representation in which
symbols, letters and numbers are presented in binary language.

Ali Sinan
ELKCABUK,
226E PhD

31

You might also like