0% found this document useful (0 votes)
67 views

Data Storage: Dr. M. Tanvir Afzal

Bits are the basic unit of digital information that can have a value of 0 or 1. They are used to represent numeric, text, audio, video, and image data through patterns of 0s and 1s. The document discusses the basics of bits and how they are used to represent information, defines units like bytes for measuring digital storage, shows the patterns produced by different numbers of bits, and provides an example of converting a decimal number to binary.
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views

Data Storage: Dr. M. Tanvir Afzal

Bits are the basic unit of digital information that can have a value of 0 or 1. They are used to represent numeric, text, audio, video, and image data through patterns of 0s and 1s. The document discusses the basics of bits and how they are used to represent information, defines units like bytes for measuring digital storage, shows the patterns produced by different numbers of bits, and provides an example of converting a decimal number to binary.
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 8

Data Storage

Bits

Dr. M. Tanvir Afzal


Bits

Basics:

 Information is coded as pattern of 0 or 1


 Short form of Binary Digits
 One bit can contain only one value 0 or 1

2 Dr. M. Tanvir Afzal


Bits

What they can represent:


 Representing numbers, text, audio, video,
image etc
 In Chip electric Charge 0/1

3 Dr. M. Tanvir Afzal


Bytes and other units

Different Units

Bytes 1 Bits 8
Kilo Byte 1 Bytes 1024
Mega Byte 1 Kilo Bytes 1024
Giga Byte 1 Mega Byte 1024
Tera Byte 1 Giga Byte 1024
4 Dr. M. Tanvir Afzal
Patterns using Bits
 1 bit - 2 patterns
 2 bits - 4
 3 bits - 8
 4 bits - 16
 5 bits - 32
 6 bits - 64
 7 bits - 128
 8 bits - 256 - one byte
5 Dr. M. Tanvir Afzal
Bytes and Characters

 A = 65
 B = 66
 a = 97
 Space = 32

6 Dr. M. Tanvir Afzal


Decimal to Binary

Lets represent 25 in binary

128 64 32 16 8 4 2 1
0 0 0 1 1 0 0 1

7 Dr. M. Tanvir Afzal


Summary

Bits and Bytes


 Basics
 Binary Representation
 Units
 Patterns
 How to represent a decimal value in
Binary

8 Dr. M. Tanvir Afzal

You might also like