Professional Documents
Culture Documents
with DSK6713
EE433
Session 8 30th Mar 2009 Department of Electrical Engineering
Air University
Todays Agenda
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
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
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.
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?