How to display the real frequency for an AD9850


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326

    Default How to display the real frequency for an AD9850

    Good day to all of you !
    I have an AD9850 DDS board now and I have to display the real output frequency on a standard LCD .
    I saw some programs but they do dispaly the counter content only and not the real output frequency of the 9850.
    I am running PICbasic Pro 2.50 .
    Thanks in advance for any help.
    Best regards,
    Ambrogio
    Last edited by Ioannis; - 29th March 2013 at 12:45.

  2. #2
    Join Date
    Apr 2011
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Re: How to display the real frequency for an AD9850

    The counter content IS the frequency - unlesss the device is defective! Whilst you could use a PIC as a frequency counter you're just adding unnecessary complication and, possible accuracy errors. To use the AD9850 properly you use a filter on the output so any defect in output would be outside the passband anyway therefore (in theory) shouldn't cause problems.
    Last edited by kellyseye; - 29th March 2013 at 12:53.

  3. #3
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default Re: How to display the real frequency for an AD9850

    Thanks,
    I am just a little bit puzzled: if the alorithm is the following: ( this is an example )

    Tuning word for 500kHz = 500000*2^32/125000000 = 17179869 or, in HEX, $010624DD

    How could I display 500,000 Hz on the LCD ?

    Thanks for helping.
    regards,
    Ambrogio

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: How to display the real frequency for an AD9850

    Hi,
    Well, the basic answer is to take the tuning value and divide it by 2^32/125M or, in this case 17179869/(2^32/125000000) or, in short, 17179869/34.359738 = 500000.
    Now, how to do this in PBP depends on if you're able to use LONG variables or not and to what accuracy you need the result. I don't know if you've seen my Wiki-article regarding the AD9850 or not but it describes two possible ways to calculate the tuning value when you know the frequency, it should be pretty straight forward to adapt any of the two methods to do the reverse.

    /Henrik.

  5. #5
    Join Date
    Apr 2011
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Re: How to display the real frequency for an AD9850

    If you are using keyboard input for frequency selection just port the keypresses directly to the display at the same time you use it in the calculation for register coding.

  6. #6
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default Re: How to display the real frequency for an AD9850

    Kellyseye,

    if I enter the output frequency then I have to compute the Tuning word.
    If I enter the tuning word I have to compute the frequency to be displayed .
    Tell me if I am wrong .
    Thanks,
    Ambrogio

  7. #7
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default Re: How to display the real frequency for an AD9850

    Thanks Henrik for having understood my problem.
    I have seen all your implementations: they are great.
    Congratulation.
    I can use the LONG variables in PBP.
    Thanks
    Regards,
    Ambrogio
    IW2FVO

Similar Threads

  1. Real Ice and PBP
    By MikeBZH in forum General
    Replies: 21
    Last Post: - 25th November 2019, 22:21
  2. Display real clock and date by using pic16877a on lcd
    By eepro in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th August 2008, 07:06
  3. Me again, but need REAL help now
    By gringobomba14 in forum General
    Replies: 33
    Last Post: - 19th June 2008, 20:51
  4. Real time the right way?
    By Michael in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st March 2007, 18:38
  5. Real Time Clock
    By savnik in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th December 2006, 02:02

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