Problems with mpasm


Closed Thread
Results 1 to 34 of 34

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default mpasm and Melabs F P

    Ok , Thanks Bruce I will have a look to longs as suggested.
    I am writing a program in order to control the Analog Device AD9912 DDS: this device will be used as a RF signal generator for radio ham use. The point is that I have to multiply a number as like as
    2^48/1000000000 ( 281474.976711) by another number that is the readout of the real output frequency ( from 1 Hz to 400 MHz ) . At the moment the Melabs FP works well and gives me the correct output frequency.
    Unfortunately i can not put the " DDS" piece of program in a subroutine : in this case i do have no errors after compiling but the 16F877 does not work.
    And, if I recall the "DDS" piece of program more than three times in my program i do have the same result.

    >> question: how can i set the HS oscillator using the Mpasm and pic16f877 with no problem ?

    Thanks a lot.
    Ambrogio
    IW2FVO




    Quote Originally Posted by Bruce View Post
    MeLabs has a nice intro to longs here: http://www.microengineeringlabs.com/...cles/longs.pdf

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by iw2fvo View Post
    I am writing a program in order to control the Analog Device AD9912 DDS
    Would've been a lot handier to have that information awhile back ya think?
    Now I see what you're trying to do. I suppose it's a matter of how you look at it. You need the ability to handle large numbers more than you need floating point specifically...and to be able to handle those numbers with some precision. If I remember right, PBP can handle some 48 bit math (more specifically, I think you can retrieve some of the overflow from a 32x32 multiply). I don't have the manual handy, so I don't want to comment on it at the moment.

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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


    Did you find this post helpful? Yes | No

    Default mpasm

    I want to set up the HS oscillator mode for the pic 16f877 using Mpasm.

    I did use the following for the PM:

    @ device PIC16F877,HS_OSC,LVP_OFF, PROTECT_OFF ' use for PM only

    What shoul I write for the Mpasm use without having the overwrite error message?
    What .INC file should I have to modify ? ( pbp or mpasm ? ), if any.

    Thanks a lot
    Bye
    Ambrogio
    IW2FVO

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

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


    Did you find this post helpful? Yes | No

    Default mpasm

    Very good !
    I found what I need !
    Now it OK.
    Thanks
    Ambrogio
    Iw2fvo


    Quote Originally Posted by Bruce View Post

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


    Did you find this post helpful? Yes | No

    Default mpasm long ... /... fp

    Hi,
    is the picbasic pro manual " 3 / 04" applicable to the 2.50 version of PBP ?
    Tnks
    Bye
    Ambrogio
    IW2FVO

    Quote Originally Posted by skimask View Post
    Would've been a lot handier to have that information awhile back ya think?
    Now I see what you're trying to do. I suppose it's a matter of how you look at it. You need the ability to handle large numbers more than you need floating point specifically...and to be able to handle those numbers with some precision. If I remember right, PBP can handle some 48 bit math (more specifically, I think you can retrieve some of the overflow from a 32x32 multiply). I don't have the manual handy, so I don't want to comment on it at the moment.

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by iw2fvo View Post
    Hi,
    is the picbasic pro manual " 3 / 04" applicable to the 2.50 version of PBP ?
    Tnks
    Bye
    Ambrogio
    IW2FVO
    No...
    You should've gotten a new version of the manual when you BOUGHT (and/or upgraded to) PicBasicPro 2.50
    So...I guess we know where you stand...

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


    Did you find this post helpful? Yes | No

    Default mpasm

    I bought the earlier versione named 2.46 years ago and i do have the manual. If you are so interested this version did cost to me around 230 € here.
    A German radio ham gave me a recent version that is the 2.50 but without any manual.
    I am waiting to receive manual or instruction from him soon.

    Speaking from a more actractive point of view, I am interest in implementing the program using the new "long" capability of the basic. I will try to modify the program.
    I stand here!
    Any help is appreciated.
    Regards,
    Ambro



    Quote Originally Posted by skimask View Post
    No...
    You should've gotten a new version of the manual when you BOUGHT (and/or upgraded to) PicBasicPro 2.50
    So...I guess we know where you stand...

  10. #10
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by iw2fvo View Post
    I bought the earlier versione named 2.46 years ago and i do have the manual. If you are so interested this version did cost to me around 230 € here.
    A German radio ham gave me a recent version that is the 2.50 but without any manual.
    I am waiting to receive manual or instruction from him soon.

    Speaking from a more actractive point of view, I am interest in implementing the program using the new "long" capability of the basic. I will try to modify the program.
    I stand here!
    Any help is appreciated.
    Regards,
    Ambro
    At least you are honest about having an illegal copy.

    Why not just spend the $25.00 USD and upgrade?

    Then you will have a manual.
    Dave
    Always wear safety glasses while programming.

  11. #11
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    <font color=green><b>At least you are honest about having an illegal copy.</font color></b>

    Why not just spend the $25.00 USD and upgrade?

    Then you will have a manual.
    By the time the Fachisi in the E U get done taxing that $25 it will be $75, I wonder if that GERMAN HAM would be so quick to share if M E Labs were a German company.
    BTW mackrackit<font color=green><b> that statement is a bit of an oxymoron</b></font color> wouldn't you say?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Moved from PM to MPASM and have fuse definition problems
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th November 2008, 22:27
  2. 12F675 MCLR directive MPASM
    By OLDSCHOOL in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th May 2008, 01:29
  3. MPASM 18F4550 getting started
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th September 2007, 23:59
  4. MPASM problems
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 31st August 2007, 01:29
  5. Converting to MPASM
    By btaylor in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 4th November 2005, 01:35

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