Low cost audio function generator(DDS)


Closed Thread
Results 1 to 31 of 31

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563

    Unhappy Low cost audio function generator(DDS)

    Hi,

    I need to design a low cost digital audio function generator. For the sinewave generation I would use a lookup table. To keep the control digital I need to scale (modulate) the peak sine values in software and softare PWM. Cannot use a PGA for cost restriction.
    What is the best principal for that ?

    I am restricted in terms of PIC throughput considering the soft pwm and other housekeeping functions. I must use a PIC16 @ 20MHz series to keep down the cost lower. So calculating the sine values on the fly (when doing a modulation) may eat up to much cycles to fit within the update routine

    Please guide if it is at all possible and how ?
    Regards

    Sougata

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Is there a specific reason why you want to use a PIC for that?

    What is your frequency range?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Unavailability of components

    Dear Steve,

    Thanks for replying. Actually I live in a part of my country where sourcing of specialized components is a real problem. Initially I considered using a DDS chip. But set back due to unavailability. Frequency range is within 10K. I haven't done the homework yet. Just trying to get some guidelines whether to base it on a 16F. The possibility you can say. If it is technically possible then I might consider using a 18F too. That depends on the overall BOM cost.
    Regards

    Sougata

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,651


    Did you find this post helpful? Yes | No

    Default

    Hi, Sougata

    ICL 8038, voltage controlled ??? ... you use the Pic as the freq regulator ... say, you build a simple PLL !!! but 8038 outputs some sinewaves ...

    bad idea ???


    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Down memory lane

    Dear Alain,

    Thanks for your reply. I just don't want to go the conventional (traditional)way. I have used MAX038 (big brother of XR8038) earlier but it was a pure analogue design with some fancy digital control as you mentioned. This project is all about low cost and best control. In fact with a PC side software the lookup tables could be modified to generate other waveforms as well. I am asking you guys for the possibility on a 16F. Storing one quadrant of data in the lookup table and building the sinewave is easy. But while modulating it, for a 8bit modulation index, I am doubtful on the processor througput considering 16/32 bit math. If there is an easy way out to do this in software please guide.
    Regards

    Sougata

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,651


    Did you find this post helpful? Yes | No

    Default Commercial example ...

    Hi, Sougata

    Here, you will find such a DDS module ... for the price ... just tears left !!!

    http://shop.elv.de/output/controller...0&detail2=6325

    or here, with a PC interface:

    http://shop.elv.de/output/controller...&detail2=10617

    Alain
    Last edited by Acetronics2; - 12th December 2006 at 10:24.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    Join Date
    Oct 2005
    Location
    Pinckney, Michigan
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    Below is the link for an audio sine wave generator chip. Works good.

    http://www.mix-sig.com/prodsh_MSLOSC.html

  8. #8
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Low cost audio function generator?

    Audio?

    What about using the PC Sound Card as Signal Generator?
    http://www.virtins.com/page2.html#Signal%20Generator

    Tons of freeware available.

    Best regards,

    Luciano

  9. #9
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Thanks Luciano

    Hi,

    Thanks Luciano. I am aware of the Freewares available and the application is a product. However the issue is a little different. Its all about the scope of a 16F performing DDS. Without using much of additional circuitry.
    Mark thanks for the link. The scope of the project does not permit to use it. Otherwise I would have gone for waveform generator chip. Also it is hard to find (if not impossible) in low quantities (less than 0.5K). If I at all go on with this project then I would be going for a 18F with a R-2R DAC.
    Regards

    Sougata

  10. #10
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,651


    Did you find this post helpful? Yes | No

    Wink a convenient tool ???

    Hi, Sougata

    a look at CYPRESS Application notes could give you the solution and soft ...

    I know ... it's not PICs !!! but Free ICD and simple programmer.

    Worth it !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  11. #11
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default I will lookup

    Hi,

    Thanks Alain for the info. I have played a little bit with the PSOC from cypress sometimes back. But not so skilled. I will though hunt the appnotes there and find out if the project is possible in low cost .
    Regards

    Sougata

Similar Threads

  1. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  2. Pic16f84 and RC5 kode
    By terminator in forum Bluetooth
    Replies: 5
    Last Post: - 18th June 2007, 21:40
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. Problems with RC2 and RC3
    By Christopher4187 in forum General
    Replies: 11
    Last Post: - 29th May 2006, 17:19
  5. 4-line LCD Help - using PortA instead of B
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 31st March 2005, 03:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts