You are on page 1of 6

Digital Signal Processing

with DSK6713

EE433
Session 8 30th Mar 2009 Department of Electrical Engineering

Air University

Todays Agenda

Sine generation with codec Quiz

Sine Generation with Codec

In lab exercise 3 we have used following 8 sample values to generate a sine wave. 0, 7070, 10000, 7070, 0, -7070, -10000, -7070, 0 These samples were calculated as sine values of 8 angle values on circle and multiplied by 10000. These samples are 10000*sin(0) 10000*sin(45) 10000*sin(90) 10000*sin(135) and so on.
The circle is divided into 8 sections and we have got 8 digital samples.
90 135 180 225 270 45 0 315

Sine Generation with Codec

If you want to have 10 digital samples per cycle, you will have to divide the circle into 10 sections. These samples will be sin(0), sin(36), sin(72), sin(108), sin(144),.. multiplied by a factor such as 10000. The selection of number of samples 10000 per cycle depends on the sampling frequency and signal frequency. 7070
0

7070

8 samples 10 samples per cycle per cycle


-7070 -10000 -7070

Sine Generation with Codec

In lab exercise 3, we have configured the codec for sampling frequency 8 kHz, and we wanted to generate 1 kHz. In other words we had 8000 samples per second and 1000 cycles per second. Then it becomes very easy to find samples / cycles.

Number of samples/s Number of samples per cycle = Number of cycles/s

Example

Select the digital samples to generate a sine wave with frequency 4 kHz and sampling frequency 48 kHz. Can you generate 5 kHz with sampling frequency 8 kHz?

You might also like