How to use MPASM 'INC' files?


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156

    Default How to use MPASM 'INC' files?

    Hi,

    I am trying to compile a program for a PIC18F67J60, and need to set the
    FOSC0 and FOSC1 bits. These are located in a CONFIG2L register. I was told that these could be set in the 'P18F67J60.INC' file that came with the MPASM compiler, but I don't have the slightest idea how to do it.

    Can somebody please tell me how to use these INC files?

    Thanks very much!

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


    Did you find this post helpful? Yes | No

    Default

    The file you need to modify is in the PBP directory. 18F67J60.inc

    The P18F67J60.INC is in the MPASM directory. Near the end of this file is all of the options for the configs.

    Have you seen this thread? Might find it handy.
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187


    Did you find this post helpful? Yes | No

  4. #4
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Thumbs up

    PERFECT! Thanks for your kind help.

  5. #5
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    When in include this line:

    @ INCLUDE "P18F67J60.INC"

    I get

    "Message[310] c:\path...\p18f67j60.inc 3210: Superseding current RAM and RAM map"

    What does this mean? (MPASM did report that the assembly was successful, however)

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


    Did you find this post helpful? Yes | No

    Default

    Do not include that line. The compiler has already taken care of all that.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. 12F675 MCLR directive MPASM
    By OLDSCHOOL in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th May 2008, 01:29
  2. MPASM 18F4550 getting started
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th September 2007, 23:59
  3. 18F8722 and MPASM confusion!
    By Jackson in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 2nd April 2006, 01:24
  4. Replies: 2
    Last Post: - 13th December 2005, 00:11
  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 : 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