EL 6183 Week 2

EL 6183 Week 2 - EL 6183 EE 4163 EL Digital Signal...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: EL 6183 EE 4163 EL Digital Signal Processing Lab Digital Monday 09/21/09 EL 6183 / EE 4163 DIGITAL SIGNAL PROCESSING LAB EL 6183 EE 4163 Digital Signal Processing Lab Digital 3 lab sessions: Monday 3:00 PM – 6:00 PM Tuesday 3:00 PM – 6:00 PM Thursday 3:00 PM – 6:00 PM 16 students per group EL 6183 EE 4163 Digital Signal Processing Lab Digital Introduction: From Lab #1: Signal Generation Input-Output Dot Product C6711 DSP Processor Analog Input CODEC Analog Output to Speaker EL 6183 EE 4163 Digital Signal Processing Lab Digital The TLC320AD535 Codec EL 6183 EE 4163 Digital Signal Processing Lab Digital Features of the AD535 Codec • Analog-to-digital and digital-to-analog conversions • 16-Bit Signal Processing in 2’s complement format: • -215= -32768 to +215-1=32767 • Input: 3 Volt Peak to peak maximum • Independent Voice and Data Channel Sample Rates up to 11.025 kHz EL 6183 EE 4163 EL Digital Signal Processing Lab Digital Features of the TLVAIC23B Codec EL 6183 EE 4163 EL Digital Signal Processing Lab Digital Features of the AIC23B Codec • 16, 20, 24, 32-Bit Signal Processing in 2’s complement format. • Stereo-Line Inputs and Stereo-Line Outputs • Sample Rates: 8, 16, 24, 32, 44.1 or 48 Samples per second EL 6183 EE 4163 EL Digital Signal Processing Lab Digital Features of the AIC23B Codec (Continued) In the declaration section of your C/C++ code,you need to have: #include “dsk6713_aic23.h” Uint32 fs=DSK6713_AIC23_FREQ_xxKHZ EL 6183 EE 4163 EL Digital Signal Processing Lab Digital The TLVAIC23B Codec Interface EL 6183 EE 4163 Digital Signal Processing Lab Digital Data Types with CCS C6000 compiler defines a size for each data type a. b. c. d. e. f. char 8 bits short 16 bits int 32 bits long 40 bits float 32 bits double 64 bits EL 6183 EE 4163 Digital Signal Processing Lab Digital Communication Functions AAAA=input_sample() output_sample(BBBB) AAAA and BBBB are of type integer Functions are defined in: c6xdskinit.c EL 6183 EE 4163 EL Digital Signal Processing Lab Digital Whenever AAAA=input_sample() is used You have to use in the declaration section • • • • #define DSK6713_AIC23_INPUT_MIC 0x0015 #define DSK6713_AIC23_INPUT_LINE 0x0011 Uint16 inputsource=DSK6713_AIC23_INPUT_MIC; Uint16 inputsource=DSK6713_AIC23_INPUT_MIC; EL 6183 EE 4163 Digital Signal Processing Lab Digital Communication takes place via: Interruption or Polling Communication via Interruption. An interruption forces the DSP processor to stop its current task to take care of another event. The codec interrupts the C671X every Sampling Period (125 μs for 8000 sps) EL 6183 EE 4163 Digital Signal Processing Lab Digital Communication via Interruption. The comm_intro() function must be called in main {….} followed by while(1) loop. The interrupt function is the ISR. interrupt void int_handler() { Task to perform ... } EL 6183 EE 4163 Digital Signal Processing Lab Digital Communication via Polling. The comm_poll() function must be called in main {….} followed by while(1) loop. The task is performed inside the while(1) While(1) { Task to be performed … } EL 6183 EE 4163 EL Digital Signal Processing Lab Digital The *.GEL file The • Real Time Variable Modification menuitem "My Functions"; slider param_definition( minVal, maxVal, increment, slider pageIncrement, pageIncrement, paramName) { statements } EL 6183 EE 4163 EL Digital Signal Processing Lab Digital The *.GEL file The • Real Time Variable Modification • Example menuitem "Sine Gain" slider gain(10,30,5,1,gainparameter) { gain = gainparameter; gain } / EL 6183 EE 4163 Digital Signal Processing Lab Digital Sinusoidal Signal Generator 1.- Sinusoidal Signal Generated Analytically F output = 1000 * Amplitude * sin( 2π n) 8000 2.- Sinusoidal Signal Generated by an Array of N Points F f= 8000 1 f= N 8000 F= N EL 6183 EE 4163 Digital Signal Processing Lab Digital Sinusoidal Signal Generator 3.- Sinusoidal Signal Generated by a difference equation y ( n) = Ay ( n − 1) − y (n − 2) F y (−1) = − sin( 2π ) 8000 F A = 2 cos(2π ) 8000 F y (−2) = − sin( 4π ) 8000 A sinusoidal can also be generated by using the Taylor series expansion EL 6183 EE 4163 Digital Signal Processing Lab Digital Open Lab Hours: Thursdays: 10:00 AM – 2:00 PM Fridays: 10:00 AM – 4:00 PM Fridays: EL 6183 EE 4163 EL Digital Signal Processing Lab Digital Homework Policy Homework • Write your code ahead of time • Hand in a hard copy to the TA’s before Hand starting the lab starting • You will, therefore, only have to build You the project and troubleshoot it the EL 6183 EE 4163 Digital Signal Processing Lab Digital Activities: 1. One tone using analytically generated sine wave via interrupt Use a slider to vary the frequency. 2.- One tone using analytically generated sine wave via polling 3.- One tone using array of points (interrupt or polling) EL 6183 EE 4163 Digital Signal Processing Lab Digital Activities: 4.- One tone using difference equation (by both interrupt and polling) 5.- Two-tone DTMF using any method of generating the sine waves using either polling or interrupt. 6.- View the signal in the time and in the frequency domain using the Graph feature of CCS EL 6183 EE 4163 Digital Signal Processing Lab Digital EXAM # 1 EXAM MONDAY OCTOBER 5, 2009 On Lab #1 and Lab #2 Open Documents No sharing of Documents among students students ...
View Full Document

This note was uploaded on 11/18/2009 for the course EL EL6183 taught by Professor Selesnick during the Fall '09 term at NYU Poly.

Ask a homework question - tutors are online