Dave_PL
Member level 2
Hi,
Is it (if is then how) possible to generate sine wave with frequency lets say 15kHz and 20kHz having only CLK of 48kHz ? Im asking because I wanted to generate this type of a signal and send it through I2S to the AC97 codec on my board and connect it to PC and see signal and its spectrum in SpectraLAB (or any other program which has FFT option). I thought about having sine values in ROM and read data every CLK but when I want to generate 20kHz sine with CLK = 48kHz I need to read a little over 2 samples per period (Nyquist) am I right? If so how can I now which values should I choose. Or maybe there is another method. I would appreciate your help.
Regards,
Dave
Is it (if is then how) possible to generate sine wave with frequency lets say 15kHz and 20kHz having only CLK of 48kHz ? Im asking because I wanted to generate this type of a signal and send it through I2S to the AC97 codec on my board and connect it to PC and see signal and its spectrum in SpectraLAB (or any other program which has FFT option). I thought about having sine values in ROM and read data every CLK but when I want to generate 20kHz sine with CLK = 48kHz I need to read a little over 2 samples per period (Nyquist) am I right? If so how can I now which values should I choose. Or maybe there is another method. I would appreciate your help.
Regards,
Dave