Laboratory Project 4 - Digital Baseband Communications

Objectives
In this project, you are required to setup an m-law companded PCM transceiver system for analog VF signals using a CODEC. In addition, you are asked to characterize the performance of the CODEC by obtaining its transfer characteristics and by introducing noise into the analog signal input.

Equipment and Software

* HP 33120A Function Generator/Arbitrary Waveform Generator
* HP/Agilent Infiniium Oscilloscope
* National Instruments (TI will NOT work) TP3054 Serial Interface CODEC . Download datasheet here .
* SG-531P 1.544 MHz Crystal Oscillator . Download datasheet here .
* CD74HCT93 4-Bit Binary Ripple Counter . Download datasheet here .
* Digital CODEC Module
* Modular Backplane
* PC speakers
* Audio Player
* CD or current media format with your favorite music!
* MATLAB (with Instrument Control Toolbox)
* MATLAB Connectivity Functions: >>writefunc(.), >>scopedat(.)

Click here for instrument connectivity guide and Matlab function downloads

Instrument Connectivity

In this lab you will be required to send or gather data to/from various instruments at the station. To do this, you will need an active connection with the instruments by opening and refreshing the instruments in Agilent IO Libraries. Click Start>All Programs>Agilent IO Libraries Suite>Agilent Connection Expert. When the software is open, click the refresh button until the instrument icons are green. Obvioulsy the instruments will need to be powered on and past initialization before they are seen by Connection Expert.

You will also need the board index (the 'number' of the interface card), and the GPIB address of the instrument. To find the board index, open the tmtool link under Matlab>Start>Toolboxes>Instrument Control>Test and Measurement Tool (tmtool) OR type >>tmtool in the Matlab command window. Expand the Hardware and then the GPIB tab on the lefthand pane. The board index should be either 7 or 8. You will see that boards that have instruments connected to them will be expandable. The GPIB addresses are consistent across all instruments in the Mixed Signals Laboratory:

Oscilloscope: 7
HP8648A: 9
HP33120A (Upper): 10
HP33120A (Lower): 11
HP34970A: 12
Keithley 2000/2100: 16
HP/Agilent E3631A: 5

-> Please read the full connectivity guide for further details

Project Requirements

* The circuit you are required to use is shown in Figure 1 below. The SG-531P Crystal Oscillator generates a a pulse train at 1.544 MHz that is used both as a Transmit/Receive Master Clock and a Bit Clock for shifting digital data out of and into the TP3054 CODEC. The CD74HCT93 4-Bit Binary Ripple Counter is used to divide the Master Clock frequency by a factor of 16; this is used to generate the frame synchronization pulses for the CODEC. Print out and study the data sheets for all of the chips before starting on this lab project.


Figure 1. click to enlarge

* As soon as you power on the circuit, check if the transmit master clock (MCLKX), bit clock (BCLKX) and frame sync (FSX) inputs are being fed accurately.

* Feed a 1 kHz sine wave into the non-inverting input of the transmit input amplifier (VFXI+). Observe the bitstream at the PCM data output pin (Dx). Vary the input signal amplitude and verify that the output bitstream also varies.

* Test whether your CODEC system is working by feeding the output bitstream into the receive data input pin (DR). The input analog signal must be resynthesized at the analog output pin (VFRO). What is the quantization error?

* Repeat the experiment using multi-tone audio-frequency signals obtained from the PC's sound card.

* Design and conduct an experiment to determine the input-output transfer characteristics of the CODEC. You are required to generate a table that contains the input analog voltage and the corresponding output bitstream.

Bonus Exercise : Design and conduct an experiment that introduces random bit-flips in the digital input bitstream of the CODEC - characterize its performance as the bit error rate is varied.

* Your lab project report should be in the usual format.

 

Click here for required lab project report format.

Click here for suggestions for a good lab report.

References:

* HP 33120A Function Generator/Arbitrary Waveform Generator User's Guide
* Zsolt Papay, Technical University of Budapest (TUB),"Experiments in Gaussian White-noise Generation," HP Test and Measurements Educator's Corner, http://www.home.agilent.com/upload/cmc_upload/All/Exp65.pdf


* Class Demos
* Section 3.3 in texbook