Codes - PowerPoint PPT Presentation

1 / 24
About This Presentation
Title:

Codes

Description:

Channel. Error. PS. PR. 311_05. 15. Hamming Codes. Overlapping Parity. Distance-3 ... CW. CW. CW. error. error. D. min = 3. correct. 311_05. 16. Hamming Parity ... – PowerPoint PPT presentation

Number of Views:20
Avg rating:3.0/5.0
Slides: 25
Provided by: drron6
Category:
Tags: channel | codes | cw

less

Transcript and Presenter's Notes

Title: Codes


1
Codes
  • ELEC 311
  • Digital Logic and Circuits
  • Dr. Ron Hayne
  • Images Courtesy of John Wakerly and Prentice-Hall

2
Binary-Coded Decimal (BCD)
  • Encodes digits 0 thru 9
  • 4-bit unsigned binary
  • 0000 thru 1001
  • 6 unused code words
  • 1010 thru 1111
  • Packed BCD
  • 8-bit byte
  • 2 BCD digits

3
BCD Arithmetic
  • Correction made if result exceeds 1001
  • Add 6
  • Produces carry

36 0011 0110 27 0010 0111 63 0101
1101 0000 0110 0110 0011
4
Decimal Codes
5
Device Select Encoding
6
Code Adjacency
  • Mechanical boundary problem

7
3-bit Reflected Gray Code
  • Angle Codeword
  • 0-44 0 0 0
  • 45-89 0 0 1
  • 90-134 0 1 1
  • 135-179 0 1 0
  • 180-224 1 1 0
  • 225-269 1 1 1
  • 270-314 1 0 1
  • 315-359 1 0 0
  • Only 1 bit changes between code words

8
Gray Code
9
Character Codes
  • ASCII (7-bits)
  • American Standard Code for Information
    Interchange

10
Code Distance
  • Hamming Distance (HD)
  • number of bits by which two binary words differ
  • HD( 101, 100 ) 1
  • HD( 111, 000 ) 3
  • Code Distance (Dmin)
  • minimum Hamming Distance between any two code
    words

11
Distance-2 Code
12
Parity Codes
  • Distance-2

13
Even Parity Generator-Checker
  • Compute parity bit at source
  • Ps I1 ? I2 ? I3 ? I4
  • Transmit information bits plus parity bit
  • Recompute parity bit at receiver
  • PR I1 ? I2 ? I3 ? I4
  • Compare transmitted and received parity
  • Error PS ? PR

14
Even Parity Generator-Checker
Source
Receiver
Channel
I1
I1
I2
I2
I3
I3
I4
I4
PR
Error
PS
15
Hamming Codes
  • Overlapping Parity
  • Distance-3
  • Error detection and correction

16
Hamming Parity Generation
P2 I4 ? I3 ? I2 P1 I4 ? I3 ? I1 P0 I4 ?
I2 ? I1
S2 I4 ? I3 ? I2 ? P2 S1 I4 ? I3 ? I1 ?
P1 S0 I4 ? I2 ? I1 ? P0
Syndrome S2S1S0 indicates bit position in error
17
Hamming Code Sizes
18
CRC Codes
  • Cyclic-Redundancy-Check (CRC) Codes
  • Include Hamming Codes
  • Applications
  • Disk Drives
  • Data Networks
  • Burst-error detecting properties

19
RAID
  • Redundant Array of Inexpensive Disks

20
Checksum Codes
  • Expansion of parity from bits to bytes
  • 8-bit information bytes
  • 0 to 255
  • Checksum
  • modulo-256 addition of information bytes
  • single check byte
  • detect single byte error

21
Serial Data Transmission
  • Data transmitted (or stored) one bit at a time
  • Bit Rate / Clock Frequency
  • bits per second (bps)
  • cycles per second (Hz)

22
Serial Line Codes
  • Non-Return-to-Zero (NRZ)
  • Non-Return-to-Zero Invert-on-1s (NRZI)
  • Return-to-Zero (RZ)
  • Bipolar Return-to-Zero (BPRZ)
  • Manchester (diphase) Code
  • Digital Phase-Locked Loop (DPLL)
  • Recovers clock signal from serial data stream

23
Serial Line Codes
24
Summary
  • Decimal Codes
  • Gray Code
  • Parity Codes
  • Serial Codes
Write a Comment
User Comments (0)
About PowerShow.com