Professional Documents
Culture Documents
2-Data Formats
2-Data Formats
2-Data Formats
NETWORKING
Data Formats
Objectives
Understand how data is
represented, and stored, inside a
computer.
■ Computers
– Process and store all forms of data in binary format.
■ Data formats
– Specifications for converting data into computer-usable form.
– Define the different ways human data may be represented, stored and
processed by a computer.
Digital vs. Analog
– The goal is to represent enough of the real world data to satisfy our
computational needs and our senses of sight and sound.
– The information can be represented in one or two ways: analog or
digital.
Digital vs. Analog
1 1 Threshold
1 1 1 1 1 1
0 0 0 0 0 0 0 0
Digital Signal
Digital Signal Degradation
■ Decimal to Binary
– 2510 = 1 10012
– 14510 = 1001 00012
– 210 = 102
■ Binary to Decimal
– 1111 00002 = 24010
– 11112 = 1510
– 1002 = 410
Binary Conversion
■ Octal to Binary
– 258 = 010 1012
– 1458 = 001 100 1012
– 28 = 0102
■ Binary to Octal
– 1111 00002 = 3608
– 11112 = 178
– 1002 = 48
Binary Conversion
■ Hexadecimal to Binary
– 2516 = 0010 01012
– 14516 = 0001 0100 01012
– 216 = 00102
■ Binary to Hexadecimal
– 1111 00002 = F016
– 11112 = F16
– 1002 = 416
Binary Conversion
• ASCII
• EBCDIC
• Unicode
Data Representation - ASCII
• A subset of ASCII
• Uses 2 bytes (16 bits) for each character, instead of 1
byte (8 bits)
• Coding scheme capable for representing all world‘s
language
• Takes up twice as much memory space and hard disk
space
Data Representation
Step 1.
The user presses Step 2.
the capital letter An electronic signal for the
D (shift+D key) capital letter D is sent to the
on the keyboard. system unit.
Step 4. Step 3.
After processing, the binary code for the
The signal for the capital letter D is converted
capital letter D is converted to an image, to its ASCII binary code (01000100) and is
and displayed on the output device. stored in memory for processing.