Presetting Configuration Fuses (PIC Defines) into your Program


+ Reply to Thread
Results 1 to 40 of 83

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: Presetting Configuration Fuses (PIC Defines) into your Program

    These configs are for the PM assembler.

    Which assembler are you using? Also which version of PBP?

    The inc is not to be included. But you can open it and see what are the configuration words exaclty.

    I would recommend using MPASM as an assembler and the syntax of your compiler.

    Ioannis

  2. #2
    Join Date
    Feb 2010
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: Presetting Configuration Fuses (PIC Defines) into your Program

    Nop ,
    these configs are for the MPASM assembler - which i use ,
    since PM (of the PBP 2.60c i use) does not support the 12F1822.

    ps. just saw you're from Thessaloniki too
    so , Kalo Sabbatokyriako ! 'Good Weekend
    Last edited by LakisFM1; - 14th January 2012 at 09:05.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: Presetting Configuration Fuses (PIC Defines) into your Program

    Ooops yes, thats is MPASM but the syntax was not correct.

    Try this

    Code:
    ASM
       __config _CONFIG1, _FOSC_INTOSC
    ENDASM
    
    Yes, I am located in Thessaloniki

    Ioannis

  4. #4
    Join Date
    Feb 2010
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: Presetting Configuration Fuses (PIC Defines) into your Program

    Overwriting previous address contents (8007)

  5. #5
    Join Date
    Feb 2010
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: Presetting Configuration Fuses (PIC Defines) into your Program

    Problem solved!

    I had to use

    ASM
    __CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF
    __CONFIG _CONFIG2, _WRT_OFF & _PLLEN_OFF & _STVREN_OFF & _BORV_19 & _LVP_OFF

    ENDASM

    and the trick was to ";" comment out the __CONFIG in M12F1822.INC file in the PBP directory , because it conflicted.

Similar Threads

  1. pic program crashing
    By comwarrior in forum General
    Replies: 5
    Last Post: - 8th July 2009, 17:33
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 15:46
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  4. size of program vs mem on pic
    By PICMAN in forum General
    Replies: 1
    Last Post: - 1st March 2005, 18:23
  5. Serial communication PIC to PIC help.
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2005, 16:45

Members who have read this thread : 5

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