DDS (generating sine waves) with onboard DAC using latest PIC 16F chips?


Results 1 to 40 of 77

Threaded View

  1. #36
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: DDS (generating sine waves) with onboard DAC using latest PIC 16F chips?

    Hi henrik,

    Perhaps I wasn't clear about what I was trying to put across ...the best way for me to learn is to find someone who has already done what I seek & establish what they've done by looking at their code ....this is where I'm coming unstuck....there's only assembly DDS code out there & I don't know how to interpret it!

    As an aside, when I was dabbling above, I was only using a 16 bit accumulator (on account I don't know how to go bigger!)... 24 bits ought to give me sufficient resolution.....but it's pointless having the resolution, if I can't work out how to get the pic/picbasic to do the 24/32 bit maths to resolve the correct tuning word value autonomously! (ie not offline on a spreadsheet!)

    tuning word = (desired frequency/interrupt frequency) * number of accumulator values available -......that's tricky on an 8 bit PIC using PICbasic for me at least!

    Agreed about the pwm method...but at 32mhz ....the pwm frequency can be rather high, which should make filtering much less attenuative in the 0-5khz range....I need to dabble!
    Last edited by HankMcSpank; - 2nd September 2011 at 22:35.

Members who have read this thread : 1

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