Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 10:10:09 10:10


Login with username, password and session length


Pages: [1]
Print
Author Topic: [REQ] DSPIC audio frequency shift.  (Read 4566 times)
0 Members and 1 Guest are viewing this topic.
oldvan
Senior Member
****
Offline Offline

Posts: 372

Thank You
-Given: 154
-Receive: 107


If the van is a Rockin'...


WWW
« on: September 03, 2009, 11:11:31 23:11 »

I'm working on an idea using a DSPIC30F6014 and would like to be able
to take the audio spectrum and shift it up by 20 KHz, such that what
was 20 Hz is now 20020Hz and what was 20000 Hz is now 40000 Hz.  At
the receiving end I'd like to reverse the process, moving everything
back to where it started out.  I'd like to be able to do this with
reasonable audio fidelity, perhaps 10-bit and 40K samples per second.

My biggest problem is I have no experience whatsoever with DSP
functions, so am in it up to my shoelaces head-first on this.

Could those with experience in this matter please let me know if my
plans are reasonable with the chip I have in mind, perhaps suggest
some code to get me started, and let me know some of the likely
pitfalls I'll encounter along the way.
« Last Edit: September 03, 2009, 11:55:23 23:55 by oldvan » Logged

Give a man a fish and you feed him for a day.
Teach a man to fish and he will sit around in a boat drinking beer all day.
Prommer
Newbie
*
Offline Offline

Posts: 29

Thank You
-Given: 55
-Receive: 24


« Reply #1 on: September 04, 2009, 06:43:27 06:43 »

Hi, oldvan

The dsPIC30F is to slow for 80 KSample !  I have made my Frequency-Shifting Projekt with an FPGA (CYCLONE III).
On the web is an dsPIC-Sampleproject with F-Shifting but it work for 8 KSample. You neet an Hilbert-Filter, Multiplier and an NCO. The Hilbert must have 128 TAPS and more (256 TAPS) for optimal shifting (Bandpass i.e. the lower frequency part is critical fg = 0.005 * fs and 0.995 * fs). For more Information see SSB-Modulation !!!

best regards,

Prommer
Logged
mitsos
Hero Member
*****
Offline Offline

Posts: 841

Thank You
-Given: 2999
-Receive: 4283


« Reply #2 on: September 04, 2009, 10:29:33 10:29 »

hi

instead of using digital means why you don't try analog ones, a multiplier is all you need and you can find in cheap fm stereo decoder chips.

regards
mitsos
Logged
Mr. Spock
Senior Member
****
Offline Offline

Posts: 260

Thank You
-Given: 465
-Receive: 827



« Reply #3 on: September 04, 2009, 11:32:12 11:32 »

Quote
instead of using digital means why you don't try analog ones, a multiplier is all you need and you can find in cheap fm stereo decoder chips.
That would be my solution too
Logged
oldvan
Senior Member
****
Offline Offline

Posts: 372

Thank You
-Given: 154
-Receive: 107


If the van is a Rockin'...


WWW
« Reply #4 on: September 05, 2009, 04:39:13 04:39 »

Perhaps the SA602 Double-balanced mixer and oscillator would be a good start
to an analog solution?

http://www.nxp.com/acrobat_download/datasheets/SA602A.pdf

Sometimes I get TOO carried away and try to do everything in the digital domain,
forgetting that KISS should be applied to all engineering problems.
Logged

Give a man a fish and you feed him for a day.
Teach a man to fish and he will sit around in a boat drinking beer all day.
tAhm1D
Senior Member
****
Offline Offline

Posts: 326

Thank You
-Given: 103
-Receive: 180



« Reply #5 on: September 05, 2009, 06:12:30 06:12 »

Yes, you can consider mitsos's idea as a KISS (keep it simple stupid) but simple and workability depends on design and preference, which varies individual to individual.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC