Assignment 2 Line Coding Lab

Similar documents
CS311: Data Communication. Transmission of Digital Signal - I

CAP240 First semester 1430/1431. Sheet 4

UNIVERSITY OF BAHRAIN COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING

DIGITAL COMMUNICATION

Communication Lab. Assignment On. Bi-Phase Code and Integrate-and-Dump (DC 7) MSc Telecommunications and Computer Networks Engineering

EC 6501 DIGITAL COMMUNICATION

CPE 400L Computer Communication Laboratory. Laboratory Exercise #9 Baseband Digital Communication

BASE-LINE WANDER & LINE CODING

German Jordanian University. Department of Communication Engineering. Digital Communication Systems Lab. CME 313-Lab. Experiment 3.

Experiment 13 Sampling and reconstruction

ISCEV SINGLE CHANNEL ERG PROTOCOL DESIGN

3rd Slide Set Computer Networks

R3B Si TRACKER CABLE TEST REPORT

NENS 230 Assignment #2 Data Import, Manipulation, and Basic Plotting

MIE 402: WORKSHOP ON DATA ACQUISITION AND SIGNAL PROCESSING Spring 2003

Digital Signal. Continuous. Continuous. amplitude. amplitude. Discrete-time Signal. Analog Signal. Discrete. Continuous. time. time.

Department of Communication Engineering Digital Communication Systems Lab CME 313-Lab

Experiment 7: Bit Error Rate (BER) Measurement in the Noisy Channel

Spectral Decomposition in HRS

Lab P-6: Synthesis of Sinusoidal Signals A Music Illusion. A k cos.! k t C k / (1)

COSC3213W04 Exercise Set 2 - Solutions

BER MEASUREMENT IN THE NOISY CHANNEL

Dektak Step by Step Instructions:

HYBRID CONCATENATED CONVOLUTIONAL CODES FOR DEEP SPACE MISSION

BTV Tuesday 21 November 2006

PCM ENCODING PREPARATION... 2 PCM the PCM ENCODER module... 4

Lab experience 1: Introduction to LabView

Analysis of local and global timing and pitch change in ordinary

BBN ANG 141 Foundations of phonology Phonetics 3: Acoustic phonetics 1

Test Report: Gamma Vibration & Shock

LAB 1: Plotting a GM Plateau and Introduction to Statistical Distribution. A. Plotting a GM Plateau. This lab will have two sections, A and B.

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

Supplementary Course Notes: Continuous vs. Discrete (Analog vs. Digital) Representation of Information

Analog Circuits Prof. Nagendra Krishnapura Department of Electrical Engineering Indian Institute of Technology, Madras. Module - 04 Lecture 12

Tutorial on Technical and Performance Benefits of AD719x Family

An Introduction to the Spectral Dynamics Rotating Machinery Analysis (RMA) package For PUMA and COUGAR

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

Realizing Waveform Characteristics up to a Digitizer s Full Bandwidth Increasing the effective sampling rate when measuring repetitive signals

Supervised Learning in Genre Classification

Activity P32: Variation of Light Intensity (Light Sensor)

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

400GbE AMs and PAM4 test pattern characteristics

Using Manchester and NRZ Configurable Protocol Decoders

Psychoacoustic Evaluation of Fan Noise

LeCroy Digital Oscilloscopes

ECE438 - Laboratory 4: Sampling and Reconstruction of Continuous-Time Signals

HDBMn: A Novel Line Coding Scheme with Re-encoding Detection Assistance

Revision History. SDG2000X Firmware Revision History and Update Instructions

ECE438 - Laboratory 1: Discrete and Continuous-Time Signals

Exercise 1-2. Digital Trunk Interface EXERCISE OBJECTIVE

SNG-2150C User s Guide

Test time metrics for TP2 waveforms

Project Summary EPRI Program 1: Power Quality

technical note flicker measurement display & lighting measurement

The Measurement Tools and What They Do

E X P E R I M E N T 1

HBI Database. Version 2 (User Manual)

Instruction Manual. Universal Flow Controller Model 261 / 261-EC-01

Course Web site:

Electrical and Electronic Laboratory Faculty of Engineering Chulalongkorn University. Cathode-Ray Oscilloscope (CRO)

Digital Image and Fourier Transform

Agilent PN Time-Capture Capabilities of the Agilent Series Vector Signal Analyzers Product Note

Application Note. Serial Line Coding Converters AN-CM-264

Pre-Processing of ERP Data. Peter J. Molfese, Ph.D. Yale University

Experiment 9 Analog/Digital Conversion

ASK THE EXPERTS: Procedure for Verifying Magnetic Pickup Signal Integrity Using a Windrock Portable Analyzer

Getting Started. Connect green audio output of SpikerBox/SpikerShield using green cable to your headphones input on iphone/ipad.

Specification of interfaces for 625 line digital PAL signals CONTENTS

Part No. ENC-LAB01 Users Manual Introduction EncoderLAB

Collecting Data Name:

Physics 105. Spring Handbook of Instructions. M.J. Madsen Wabash College, Crawfordsville, Indiana

Lecture 2 Video Formation and Representation

The EMC, Signal And Power Integrity Institute Presents

A Matlab toolbox for. Characterisation Of Recorded Underwater Sound (CHORUS) USER S GUIDE

Implementation of a turbo codes test bed in the Simulink environment

ENGIN 100: Music Signal Processing. PROJECT #1: Tone Synthesizer/Transcriber

ECE-320 Lab 5: Modeling and Controlling a Pendulum

EECS 373 Design of Microprocessor-Based Systems

Virtual Vibration Analyzer

MP212 Principles of Audio Technology II

On Figure of Merit in PAM4 Optical Transmitter Evaluation, Particularly TDECQ

Draft 100G SR4 TxVEC - TDP Update. John Petrilla: Avago Technologies February 2014

AP Statistics Sec 5.1: An Exercise in Sampling: The Corn Field

MICROLINK 304x A-D Converter User Manual

PulseCounter Neutron & Gamma Spectrometry Software Manual

EDL8 Race Dash Manual Engine Management Systems

Outline. CPE/EE 422/522 Advanced Logic Design L03. Review: Clocked D Flip-Flop with Rising-edge Trigger. Sequential Networks

Sensoray. Model 819. Tests Conducted by: ElectroMagnetic Investigations, LLC. May 10, 2013

MachineryMate 800 operating guide Handheld vibration meter

Version : 1.0: klm. General Certificate of Secondary Education November Higher Unit 1. Final. Mark Scheme

Instructions for Carrying Out Generic Spectral Analysis Measurements with the HP-3562A Dynamic Signal Analyzer

Operating Instructions (ed. 5.97) Electronic Preset Counter Type Series 904

Release Notes. Multi-Band EPI C2P. Release February 2013

WaveDriver 20 Potentiostat/Galvanostat System

Calibrating the timecode signal input

T sors, such that when the bias of a flip-flop circuit is

100Gb/s Single-lane SERDES Discussion. Phil Sun, Credo Semiconductor IEEE New Ethernet Applications Ad Hoc May 24, 2017

CZT vs FFT: Flexibility vs Speed. Abstract

Boosting Performance Oscilloscope Versatility, Scalability

Normalization Methods for Two-Color Microarray Data

Transcription:

Version 2 March 22, 2015 281.273 Assignment 2 Line Coding Lab By: Year 2: Hamilton Milligan ID: 86009447

281.273 Assignment 2 Line Coding Lab 1 OBJECTIVE The Objective of this lab / assignment 2 is to investigate and gain a better understanding of line coding schemes, produce appropriate digital signal waveforms and observe their spectra through the use of MATLAB. 2 SETUP Create a data sequence 1. MATLAB: 2. Num_bits=5 3. data=randint(1,num_bits) 1 UNIPOLAR NRZ SCHEME START UP 1. Map data to voltage levels 1,0,+1 Unipolar_NRZ=data 2. Use script digiwave to plot digiwave(unipolar_nrz,1) 3. Title Plot title('unipolar NZR') 4. To save time, reuse code and ensure we have the same random data to compare later on. The follow script was created: MATLAB code Initialiser Script Results from above Start Up (before initaliser script) 281.273 Assignment 2 Line Coding Lab 1

2.1 UNIPOLAR NRZ Setup data sequence 10 bits and generate Unipolar NZR waveform. The following script was created and run after the initialiser script (see above) 2 POLAR SCHEMES: NRZ L AND NRZ I Generate the polar NRZ L and NRZ I waveforms and compare with unipolar NRZ 2.2 NRZ L POLAR SCHEME 281.273 Assignment 2 Line Coding Lab 2

2.3 NRZ I POLAR SCHEME 2.4 COMPARE NZR L AND NZR I WITH UNIPLOAR Comparision: NRZ L looks like the inverse of Unipolar, but twice the height. NRZ I is harder to understand. 281.273 Assignment 2 Line Coding Lab 3

3 POLAR SCHEME: RZ 3.1 GENERATE A POLAR RZ WAVEFORM AND Polar RZ waveform is represented by two different levels with each level lasting half of the bit duration. 0=> 1 then 0, 1 => +1 then 0 3.2 COMPARE RZ WITH NRZ, NRZ L AND NRZ I Although the markers may seem confusing they do help. I find Polar RZ easier to interpret than NRZ I 281.273 Assignment 2 Line Coding Lab 4

4 POLAR BIPHASE 4.1 MANCHESTER POLAR BIPHASE In Manchester: Each data bit is represented by two different levels with each level lasting half of the bit duration: 0=>+1 then 1 1 => 1 then +1 As a reminder the data used throughout this document (unless stated otherwise) is data = 0 1 1 0 1 0 0 1 1 1 MATLAB code MANCHESTER POLAR BIPHASE Results from data = 0 1 1 0 1 0 0 1 1 1 Comments / Observations: The encoding I have been instructed to do does NOT include a start of ½ cycle of 0 Appears to be Manchester as per IEE 802.3 standards. 4.2 DIFFERENTIAL MANCHESTER POLAR BIPHASE In Differential Manchester: Each data bit is represented by two different levels with each level lasting half of the bit duration: 0=> Invert previous level then previous level 1 => previous level, then inversion of previous level 281.273 Assignment 2 Line Coding Lab 5

MATLAB code: Differential Manchester Polar Biphase Results from data = 0 1 1 0 1 0 0 1 1 1 5 BIPOLAR SCHEMES: AMI AND PSEUDOTERNARY 5.1 AMI BIPOLAR 0=>0, 1=> +1 if previous 1 value is 1, otherwise 1 MATLAB code: Bipolar AMI Results from data = 0 1 1 0 1 0 0 1 1 1 NOTE: Following the rule provided, the first 1 value is 1 as it is "otherwise". If there are long runs of 1's there may be syncing problems. 281.273 Assignment 2 Line Coding Lab 6

5.2 PSEUDOTERNARY 1=>0, 0=> +1 if previous 0 value is 1, otherwise 1 MATLAB code: PSEUDOTERNARY Results from data = 0 1 1 0 1 0 0 1 1 1 NOTE: Very similar to AMI. Major change is that 0 takes on what 1 does in AMI and 1 takes on the role of 0 in AMI. For Pseudoternary if there are long runs of 1's there may be syncing problems. 5.3 TASK 5 1 Find suitable length of the data sequence that we can give meaningful spectrum plot. 2 Write M file that generates a random data sequence of the desired length, 3 performs mapping of various line coding schemes, and plots the spectra of generated digital signals. 4 Compare the spectrum plots with those discussed in the lecture notes. 5.3.1 Find Suitable Length of the data sequence Sampling needs to be at least twice the frequency (Nyquist Criteria).,, 2, is max frequency and is sampling rate. PSD metrics are Power and Frequency. digipsd has set at 2 and sampling. T is basically the length of the data sequence. In the lecture notes there seemed to be no information on best data sequence length. pwelsh in MATLAB does not appear to have the ideal sample size based on excep to say it is an integer multiple of T. So Assuming MATLAB is generating radomly, a population of 120 randomly generated 1 and zeros would produce a sampling rate of 2 Hz and a total number of samples of 120*2 = 240 samples. This should be ample and ensure that the welsh PSD shows a good representation of the actual signal Trying different options, I quite liked 120 for the data sequence. 90 and 60 also worked well. under 50 seemed to become more variable with a wider standard deviation. When sampling the general rule is that the size should be 30 or over. 5.3.2 Write M file see M File in zip file. It is called Lab2Task5.m. to change log y or not, comment out appropriate line in this file within the function digipsdc 281.273 Assignment 2 Line Coding Lab 7

5.3.3 Perform Various mapping of schemes and plot and compare See Lab2Task5.m file. Following is the comparison for the plots with data sequence length of 90. All have the same data. NRZ I is not visible as compared to others as the PSD quickly tends to zero as it has two values, 1 or 1 and the long term average of random generated numbers tends to 0. When changing to log for the y axis, we get the following: 281.273 Assignment 2 Line Coding Lab 8

5.3.4 Compare spectrum with lecture notes Please, I attended all lectures and wrote notes on slides presented. I was not able to compare my results to those in the lecture notes for PSD. As there were no graphs to compare in the notes. The graphs are as I expect on a longer average. Following are all the notes from the lectures concerning sampling and PSD. 281.273 Assignment 2 Line Coding Lab 9

6 SUMMARY Attached files with this document in a zip are: Lab2Task1to4.m Lab2Task5.m. To run with log in y axis, go to function digipsdc and follow comments. Overall a good assignment to action. Step 5 was the most difficult especially with interpretation, as there was nothing in our lectures or notes about this. I suspect my sample size could be reduced form 90 to around 50 to still get a reasonably good plot from random numbers, however I decided to keep with 90 as increasing sample size was with very little expense of computing power and speed. This lab overall to a lot of time to perform and write up. Examples and code provided did help. However showing comparisons in MATLAB did take quite a bit of time to write up. 281.273 Assignment 2 Line Coding Lab 10