Lesson 10 MMW Codes
Lesson 10 MMW Codes
BINARY CODE 01
BINARY
02 OPERATIONS
• A system of counting
• a base-2 number system invented by Gottfried
Leibniz that is made up of only two numbers: 0 and 1.
• Tens
• Hundreds
• Thousands
• Ten-thousands, and so on
DECIMAL NUMBER SYSTEM
• Hundredths
• Thousandths
• Ten-thousandths
• Hundred-thousandths, and so on
DECIMAL NUMBER SYSTEM
BINARY NUMBER SYSTEM
EXAMPLE
Convert the decimal numeral 139 to its binary equivalent.
DECIMAL-BINARY CONVERSION
EXAMPLE
DECIMAL-BINARY CONVERSION
EXAMPLE
BINARY –DECIMAL
CONVERSION
BINARY-DECIMAL CONVERSION
EXAMPLE
Convert the binary number 10001011 to its decimal
equivalent.
BINARY-DECIMAL CONVERSION
EXAMPLE
BINARY-DECIMAL CONVERSION
EXAMPLE
BINARY TO
CHARACTERS
ASCII
• Pronounced ask-ee
EXAMPLE
BINARY ADDITION
EXAMPLE
BINARY ADDITION
EXAMPLE
BINARY
SUBTRACTION
BINARY SUBTRACTION
EXAMPLE
BINARY SUBTRACTION
EXAMPLE
BINARY SUBTRACTION
EXAMPLE
BINARY
MULTIPLICATION
BINARY MULTIPLICATION
EXAMPLE
BINARY DIVISION
BINARY DIVISION
EXAMPLE
ERRORS
ERRORS
EXAMPLE
a) 111 - transmit using odd parity
b) 100100 - transmit using odd parity
c) 1100 - transmit using even parity
d) 10110 - transmit using even parity
PARITY CHECK
EXAMPLE
a) 111 - parity bit: 0
b) 100100 - parity bit: 1
c) 1100 - parity bit: 0
d) 10110 - parity bit: 1
CHECKSUM
CHECKSUM
In this error detection scheme, the following procedure is
applied
• Data is divided into fixed sized frames or segments.
• The sender adds the segments using 1’s complement arithmetic to get
the sum. It then complements the sum to get the checksum and sends
it along with the data frames.
• The receiver adds the incoming segments along with the checksum
using 1’s complement arithmetic to get the sum and then complements
it.
• If the result is zero, the received frames are accepted; otherwise, they
are discarded.
CHECKSUM
EXAMPLE
Transmit the binary code “101111010010” using
checksum.
CHECKSUM
EXAMPLE
Transmit the binary code “101111010010” using
checksum.
STEP 1:
STEP 2:
CHECKSUM
STEP 2:
CHECKSUM
STEP 2:
CHECKSUM
STEP 2:
COMPLEMENT
OF THE SUM
CHECKSUM
STEP 2:
CHECKSUM
CHECKSUM
STEP 2:
The new binary code that will then be transmitted is
STEP 3:
The receiver will then verify if the transmitted data is
correct by adding all the blocks of binary code.
CHECKSUM
STEP 3:
CHECKSUM
STEP 3:
CHECKSUM
STEP 3:
CHECKSUM
STEP 3:
Since the complement of the sum are all 0’s, the data
transmitted is accepted with no errors.
ERROR CORRECTING
CODES
ERROR CORRECTING CODES
EXAMPLE
What is the original binary code transmitted as
“111010111000110” using repetition code.
REPITITION CODES
EXAMPLE
What is the original binary code transmitted as
“111010111000110” using repetition code.
EXAMPLE
After encoding the transmitted data, the original binary
code is "10101“.
HAMMING CODES
HAMMING CODES
https://www.youtube.com/watch?v=b3NxrZOu_CE
THANK YOU
Does anyone have any questions?
[email protected]
Fonts & colors used
This presentation has been made using the following fonts:
Passion One
(https://fonts.google.com/specimen/Passion+One)
Abel
(https://fonts.google.com/specimen/Abel)
#f9e9d9 #5b72b7