SlideShare a Scribd company logo
1 of 23
B.Abinaya Bharathi,
I-M.Sc[Cs&IT]
Nadar Saraswathi college of Arts and Science,
Theni.
Binary to decimal
Steps:
* Multiply each bit by 2n, where n is the “weight” of the
bit
* The weight is the position of the bit, starting from 0 on
the right
* Add the results
Ex:
 10112 => 1 x 20 = 1
1 x 21 = 2
0 x 22 = 0
1 x 23 = 8
1110
Octal to Decimal
Steps:
* Multiply each bit by 8n, where n is the “weight” of the
bit
* The weight is the position of the bit, starting from 0 on
the right
* Add the results
Ex:
7248 => 4 x 80 = 4
2 x 81 = 16
7 x 82 = 448
46810
Hexadecimal to Decimal
Steps
* Multiply each bit by 16n, where n is the “weight” of the
bit
* The weight is the position of the bit, starting from 0 on
the right
* Add the results
Ex:
ABC16=>C x 160 = 12 x 1 = 12
B x 161 = 11 x 16 = 176
A x 162 = 10 x 256 = 2560
274810
Decimal to Binary
* Divide by two, keep track of the remainder
* First remainder is bit 0 (LSB, least-significant
bit)
* Second remainder is bit 1
EX
7510 = ?2
2 75
2 37 – 1
2 18 – 1
2 9 – 0
2 4 – 1
2 2 – 0
1 – 0
10010112
 Octal to Binary
* Convert each octal digit to a 3-bit equivalent binary
representation.
Ex:
2078 = ?
2 0 7
010 000 111
0100001112
* The digital data is represented, stored and transmitted as
group of binary bits. This group is also called as binary code.
* The binary code is represented by the number as well as
alphanumeric letter.
* Binary codes are suitable for the computer applications
and digital communications.
* Binary codes make the analysis and designing of digital
circuits if we use the binary codes.
* Since only 0 & 1 are being used, implementation
becomes easy.
It is classifed into different categories
* Weighted Codes
* Non-Weighted Codes
* Binary Coded Decimal Code
* Alphanumeric Codes
* Error Detecting Codes
* Error Correcting Codes
Weighted Codes
* Binary code use the positional weight principle.
* Each position of the number represents a specific
weight
* decimal digit is represented by a group of four bits.
Non weighted codes
Excess 3 code
* It is non-weighted code used to express decimal
numbers. The Excess-3 code words are derived from the 8421
BCD code words adding (0011)2 or (3)10 to each code word in
8421s-3 codes
Ex:
87
8 7
+3 +3
----- ----
11 10
----- -----
1011 1010
* Gray code evaluates the nature of binary code or data
that is composed of on and off indicators, commonly
represented by ones and zeros.
* Gray code is also known as reflected binary code.
* only one bit will change each time the decimal number
is incremented
* IT cannot be used for arithmetic operation.
* A binary digit it has only two states '0' or '1‘.
But this is not enough for communication .So alphanumeric
codes are used.
* The alphanumeric codes are the codes that represent
numbers and alphabetic characters.
* It represent 10 digits and 26 letters of alphabet i.e. total
36 items.
* American Standard Code for Information Interchange
(ASCII). - 7 bit - commonly used
* Extended Binary Coded Decimal Interchange Code
(EBCDIC). – 8 bit code
* Five bit Baudot Code.
* Above three alphanumeric codes are very commonly
used
Error deducting codes
* Error is a condition when the output information does
not match with the input information.
* we use error-detecting codes to find a data is
scrambled by noise or data may get corrupted.
* We use parity check to deduct error.
Parity checking
* technique to deduct error.
* ASCII character has 7 bit for a parity we are using 8th
bit i.e parity.
The parity of 8-bits transmitted word can be either even parity
or odd parity.
 Even parity -- Even parity means the number of 1's in the
given word including the parity bit should be even (2,4,6,....).
 Odd parity -- Odd parity means the number of 1's in the given
word including the parity bit should be odd (1,3,5,....).
Use of Parity Bit
* The parity bit can be set to 0 and 1 depending on the
type of the parity required.
* For even parity, this bit is set to 1 or 0 such that the no.
of "1 bits" in the entire word is even.
* For odd parity, this bit is set to 1 or 0 such that the no.
of "1 bits" in the entire word is odd.
How parity checking works
* The receiver can detect the presence of an error if the
parity of the receiver signal is different from the expected
parity.
i.e if it is known that the parity of the transmitted signal
is always going to be "even" and if the received signal has an
odd parity, that the received signal is not correct.
* If an error is detected, then the receiver will ignore the
received byte and request for retransmission.
Data Representation
* We use many different data forms .
* One of the commonly used data form is decimal form.
Data types
* Data is commonly stored as a series of 8 bits which is
equal to one byte.
* Information can be given in any form to computer as
audio, video, digits, pictures etc.
* Computer’s memory required to store these forms must
be large enough to handle such forms of information.
Data types
* The data types found in registers of digital computers
may be classified as (1) Characters.
* Series of these characters can be taken as String.
* Numbers used in arithmetic computations.
* These can be represented in two forms integers and real
numbers.
THANK YOU

More Related Content

What's hot

Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Lovely Singh
 
Sparse matrix and its representation data structure
Sparse matrix and its representation data structureSparse matrix and its representation data structure
Sparse matrix and its representation data structureVardhil Patel
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
Signed Addition And Subtraction
Signed Addition And SubtractionSigned Addition And Subtraction
Signed Addition And SubtractionKeyur Vadodariya
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE Tamim Tanvir
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbersMOHAN MOHAN
 
Floating point representation
Floating point representationFloating point representation
Floating point representationmissstevenson01
 
EE5440 – Computer Architecture - Lecture 2
EE5440 – Computer Architecture - Lecture 2EE5440 – Computer Architecture - Lecture 2
EE5440 – Computer Architecture - Lecture 2Dilawar Khan
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & DecoderSyed Saeed
 
11 octal number system
11   octal number system11   octal number system
11 octal number systemLee Chadwick
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 

What's hot (20)

Binary codes
Binary codesBinary codes
Binary codes
 
Code conversion
Code conversionCode conversion
Code conversion
 
Unit 4-booth algorithm
Unit 4-booth algorithmUnit 4-booth algorithm
Unit 4-booth algorithm
 
Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)
 
Sparse matrix and its representation data structure
Sparse matrix and its representation data structureSparse matrix and its representation data structure
Sparse matrix and its representation data structure
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
Signed Addition And Subtraction
Signed Addition And SubtractionSigned Addition And Subtraction
Signed Addition And Subtraction
 
Binary codes
Binary codesBinary codes
Binary codes
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE
 
Data representation
Data representationData representation
Data representation
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbers
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 
Flipflop
FlipflopFlipflop
Flipflop
 
Collision in Hashing.pptx
Collision in Hashing.pptxCollision in Hashing.pptx
Collision in Hashing.pptx
 
Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
 
EE5440 – Computer Architecture - Lecture 2
EE5440 – Computer Architecture - Lecture 2EE5440 – Computer Architecture - Lecture 2
EE5440 – Computer Architecture - Lecture 2
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
15 bitwise operators
15 bitwise operators15 bitwise operators
15 bitwise operators
 
11 octal number system
11   octal number system11   octal number system
11 octal number system
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 

Similar to Digital principles basic

Similar to Digital principles basic (20)

Codes
CodesCodes
Codes
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codes
 
Lecture_Computer_Codes.ppt
Lecture_Computer_Codes.pptLecture_Computer_Codes.ppt
Lecture_Computer_Codes.ppt
 
Number system
Number systemNumber system
Number system
 
Error detection and correction codes r006
Error detection and correction codes   r006Error detection and correction codes   r006
Error detection and correction codes r006
 
Digital Logic Rcs
Digital Logic RcsDigital Logic Rcs
Digital Logic Rcs
 
Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
DLD-W3-L1.pptx
DLD-W3-L1.pptxDLD-W3-L1.pptx
DLD-W3-L1.pptx
 
5.Error correction-Hamming Code.pptx
5.Error correction-Hamming Code.pptx5.Error correction-Hamming Code.pptx
5.Error correction-Hamming Code.pptx
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Dr.naveen electronics binary codes
Dr.naveen electronics binary codesDr.naveen electronics binary codes
Dr.naveen electronics binary codes
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Computer-codes.pptx
Computer-codes.pptxComputer-codes.pptx
Computer-codes.pptx
 
review of number systems and codes
review of number systems and codesreview of number systems and codes
review of number systems and codes
 
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit ModelSingle-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
UNIT 1 (1).pptx
UNIT 1 (1).pptxUNIT 1 (1).pptx
UNIT 1 (1).pptx
 
Number Codes and Registers
Number Codes and RegistersNumber Codes and Registers
Number Codes and Registers
 

More from Abinaya B

Overview of bigdata
Overview of bigdataOverview of bigdata
Overview of bigdataAbinaya B
 
exception handling in java
exception handling in javaexception handling in java
exception handling in javaAbinaya B
 
data structures
data structuresdata structures
data structuresAbinaya B
 
graphics programming in java
graphics programming in javagraphics programming in java
graphics programming in javaAbinaya B
 
data structures- back tracking
data structures- back trackingdata structures- back tracking
data structures- back trackingAbinaya B
 
exception handling in java
exception handling in javaexception handling in java
exception handling in javaAbinaya B
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processingAbinaya B
 
software engineering
software engineeringsoftware engineering
software engineeringAbinaya B
 
software cost factor
software cost factorsoftware cost factor
software cost factorAbinaya B
 
Basic topic on os
Basic topic on osBasic topic on os
Basic topic on osAbinaya B
 
Managing I/O & String function in C
Managing I/O & String function in CManaging I/O & String function in C
Managing I/O & String function in CAbinaya B
 
Introduction to 80386
Introduction to 80386Introduction to 80386
Introduction to 80386Abinaya B
 
Network standardization
Network standardizationNetwork standardization
Network standardizationAbinaya B
 

More from Abinaya B (18)

Multimedia
MultimediaMultimedia
Multimedia
 
Overview of bigdata
Overview of bigdataOverview of bigdata
Overview of bigdata
 
exception handling in java
exception handling in javaexception handling in java
exception handling in java
 
data structures
data structuresdata structures
data structures
 
graphics programming in java
graphics programming in javagraphics programming in java
graphics programming in java
 
data structures- back tracking
data structures- back trackingdata structures- back tracking
data structures- back tracking
 
exception handling in java
exception handling in javaexception handling in java
exception handling in java
 
digital image processing
digital image processingdigital image processing
digital image processing
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
software engineering
software engineeringsoftware engineering
software engineering
 
software cost factor
software cost factorsoftware cost factor
software cost factor
 
Data Mining
Data MiningData Mining
Data Mining
 
Datamining
DataminingDatamining
Datamining
 
Basic topic on os
Basic topic on osBasic topic on os
Basic topic on os
 
Rdbms1
Rdbms1Rdbms1
Rdbms1
 
Managing I/O & String function in C
Managing I/O & String function in CManaging I/O & String function in C
Managing I/O & String function in C
 
Introduction to 80386
Introduction to 80386Introduction to 80386
Introduction to 80386
 
Network standardization
Network standardizationNetwork standardization
Network standardization
 

Recently uploaded

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 

Recently uploaded (20)

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 

Digital principles basic

  • 1. B.Abinaya Bharathi, I-M.Sc[Cs&IT] Nadar Saraswathi college of Arts and Science, Theni.
  • 2. Binary to decimal Steps: * Multiply each bit by 2n, where n is the “weight” of the bit * The weight is the position of the bit, starting from 0 on the right * Add the results Ex:  10112 => 1 x 20 = 1 1 x 21 = 2 0 x 22 = 0 1 x 23 = 8 1110
  • 3. Octal to Decimal Steps: * Multiply each bit by 8n, where n is the “weight” of the bit * The weight is the position of the bit, starting from 0 on the right * Add the results Ex: 7248 => 4 x 80 = 4 2 x 81 = 16 7 x 82 = 448 46810
  • 4. Hexadecimal to Decimal Steps * Multiply each bit by 16n, where n is the “weight” of the bit * The weight is the position of the bit, starting from 0 on the right * Add the results Ex: ABC16=>C x 160 = 12 x 1 = 12 B x 161 = 11 x 16 = 176 A x 162 = 10 x 256 = 2560 274810
  • 5. Decimal to Binary * Divide by two, keep track of the remainder * First remainder is bit 0 (LSB, least-significant bit) * Second remainder is bit 1 EX 7510 = ?2 2 75 2 37 – 1 2 18 – 1 2 9 – 0 2 4 – 1 2 2 – 0 1 – 0 10010112
  • 6.  Octal to Binary * Convert each octal digit to a 3-bit equivalent binary representation. Ex: 2078 = ? 2 0 7 010 000 111 0100001112
  • 7. * The digital data is represented, stored and transmitted as group of binary bits. This group is also called as binary code. * The binary code is represented by the number as well as alphanumeric letter.
  • 8. * Binary codes are suitable for the computer applications and digital communications. * Binary codes make the analysis and designing of digital circuits if we use the binary codes. * Since only 0 & 1 are being used, implementation becomes easy.
  • 9. It is classifed into different categories * Weighted Codes * Non-Weighted Codes * Binary Coded Decimal Code * Alphanumeric Codes * Error Detecting Codes * Error Correcting Codes
  • 10. Weighted Codes * Binary code use the positional weight principle. * Each position of the number represents a specific weight * decimal digit is represented by a group of four bits.
  • 11. Non weighted codes Excess 3 code * It is non-weighted code used to express decimal numbers. The Excess-3 code words are derived from the 8421 BCD code words adding (0011)2 or (3)10 to each code word in 8421s-3 codes
  • 12. Ex: 87 8 7 +3 +3 ----- ---- 11 10 ----- ----- 1011 1010
  • 13. * Gray code evaluates the nature of binary code or data that is composed of on and off indicators, commonly represented by ones and zeros. * Gray code is also known as reflected binary code. * only one bit will change each time the decimal number is incremented * IT cannot be used for arithmetic operation.
  • 14.
  • 15. * A binary digit it has only two states '0' or '1‘. But this is not enough for communication .So alphanumeric codes are used. * The alphanumeric codes are the codes that represent numbers and alphabetic characters. * It represent 10 digits and 26 letters of alphabet i.e. total 36 items. * American Standard Code for Information Interchange (ASCII). - 7 bit - commonly used * Extended Binary Coded Decimal Interchange Code (EBCDIC). – 8 bit code * Five bit Baudot Code. * Above three alphanumeric codes are very commonly used
  • 16. Error deducting codes * Error is a condition when the output information does not match with the input information. * we use error-detecting codes to find a data is scrambled by noise or data may get corrupted. * We use parity check to deduct error. Parity checking * technique to deduct error. * ASCII character has 7 bit for a parity we are using 8th bit i.e parity.
  • 17. The parity of 8-bits transmitted word can be either even parity or odd parity.  Even parity -- Even parity means the number of 1's in the given word including the parity bit should be even (2,4,6,....).  Odd parity -- Odd parity means the number of 1's in the given word including the parity bit should be odd (1,3,5,....).
  • 18. Use of Parity Bit * The parity bit can be set to 0 and 1 depending on the type of the parity required. * For even parity, this bit is set to 1 or 0 such that the no. of "1 bits" in the entire word is even. * For odd parity, this bit is set to 1 or 0 such that the no. of "1 bits" in the entire word is odd.
  • 19. How parity checking works * The receiver can detect the presence of an error if the parity of the receiver signal is different from the expected parity. i.e if it is known that the parity of the transmitted signal is always going to be "even" and if the received signal has an odd parity, that the received signal is not correct. * If an error is detected, then the receiver will ignore the received byte and request for retransmission.
  • 20. Data Representation * We use many different data forms . * One of the commonly used data form is decimal form. Data types * Data is commonly stored as a series of 8 bits which is equal to one byte. * Information can be given in any form to computer as audio, video, digits, pictures etc. * Computer’s memory required to store these forms must be large enough to handle such forms of information.
  • 22. * The data types found in registers of digital computers may be classified as (1) Characters. * Series of these characters can be taken as String. * Numbers used in arithmetic computations. * These can be represented in two forms integers and real numbers.