NCO Calculator


Closed Thread
Results 1 to 25 of 25

Thread: NCO Calculator

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: NCO Calculator

    Hi mpgmike:

    At the risk of seeming like a troll, may I make a couple suggestions, just in case you ever revisit your NCO Calc program, please?

    (1) Allow entry of NCO Frequencies such as 8388608-Hz without rounding.
    (2) Correct the NCO bit width constant (2097152) in your calculations.
    (3) Display the NCO frequency resolution.
    (4) Display the output frequency error.

    I whipped up a quick spreadsheet to highlight the calculation problems I'm experiencing. Your NCO Calc app' introduces errors by rounding the NCO frequency and by using the incorrect NCO bit width constant in your calculations.

    Have fun. Best wishes. Cheerful regards, Mike, K8LH

    Name:  K8LH NCO Calc.png
Views: 5688
Size:  37.5 KB
    Last edited by Mike, K8LH; - 11th May 2018 at 01:03.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default Re: NCO Calculator

    Isn't easier all these calculation done in a Excel file?

    Ioannis

  3. #3
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: NCO Calculator

    Thoughts I never thought. There are 2 modes for NCO, toggle (the one used) and a pulse-out, which yields 2X the frequency output of toggle mode. I had thought of possibly adding calculations for pulse-out mode.

  4. #4
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: NCO Calculator

    Quote Originally Posted by Ioannis View Post
    Isn't easier all these calculation done in a Excel file?

    Ioannis
    A spreadsheet is easier to make but I don't think it's easier to use. Mike's stand-alone app' is a seriously cool accomplishment. Personally, I'd rather use a small stand-alone app' instead of a spreadsheet.

    Many years ago I built an SPBRG Calculator spreadsheet followed by an SPBRG Calculator app' written in JustBASIC. I much prefer using the app'.

    Cheerful regards, Mike, K8LH

    Name:  K8LH SPBRG Calc.png
Views: 4544
Size:  44.7 KB

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,653


    Did you find this post helpful? Yes | No

    Default Re: NCO Calculator

    if only pbp was still being kept relevant, all these things and more are built into mplabx and easy to use
    Attached Images Attached Images   
    Warning I'm not a teacher

  6. #6
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: NCO Calculator

    I forced myself to work with MPLABX over the past few days. I needed a combination of features only found in the PIC16F18426, which is too new for PBP3. I'm building the software in ASM using MPLABX. I like the Debug feature. As I'm not that familiar with ASM, the Debug showed me where I got stuck in an endless loop and helped me catch a few other problems in my code. It's taking me about 10X longer in ASM than it would in PBP3, but I'm learning a bunch through the experience.

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default Re: NCO Calculator

    You are a herο! Two times, for ASM and MPLABX!

    I started using PIC with plain ASM coding but never go back again.

    Ioannis
    Last edited by Ioannis; - 26th January 2020 at 21:24.

  8. #8
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: NCO Calculator

    Anyone know if mpgmike ever fixed the errors and updated his nco calculator app'?

Similar Threads

  1. help with calculator
    By minssss in forum General
    Replies: 3
    Last Post: - 10th November 2009, 00:12
  2. Calculator LCD
    By menze in forum General
    Replies: 0
    Last Post: - 26th June 2006, 21:31
  3. help with my calculator project
    By loayaouad in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th May 2005, 07:42
  4. Calculatorīs LCD
    By srspinho in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 4th May 2005, 10:27
  5. Calculator
    By neiron21 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st February 2005, 00:53

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