Help with pic 12f629


Closed Thread
Results 1 to 40 of 53

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,

    Thanks for your help.

    I have tried and it gives me compiling error.

    So i commented out the line in the pbp directory as follow, but still gives me error:
    Code:
     else
            LIST
            LIST p = 12F629, r = dec, w = -302
            INCLUDE "P12F629.INC"    ; MPASM  Header
            ;__config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _BODEN_OFF & _CP_OFF
            NOLIST
        endif
            LIST
    Also, this is the message i get when compiling:
    Executing: "C:\PBP\PBPMPLAB.BAT" -ampasmwin -k# -p12F629 "3basic.bas"
    Executing: "C:\PBP\PBPW.EXE" -ampasmwin -k# -p12F629 "3basic.bas"
    PICBASIC PRO(TM) Compiler 2.60, (c) 1998, 2009 microEngineering Labs, Inc.
    All Rights Reserved.

    ERROR: Unable to execute mpasmwin.Error[118] C:\USERS\SHAN-MONICA-SHISHAN\DOCUMENTS\PICPROYECTS\PIC12F629\3BASIC.ASM 90 : Overwriting previous address contents (2007)
    Halting build on first failure as requested.
    BUILD FAILED: Fri Oct 22 17:58:18 2010

    Best regards.

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


    Did you find this post helpful? Yes | No

    Default

    Overwriting error is when you set the configs in code space and do not comment the PBP *.inc file.... But you have done that.

    Long directory paths cause problems also, yours is very long.
    C:\USERS\SHAN-MONICA-SHISHAN\DOCUMENTS\PICPROYECTS\PIC12F629\3BASIC.ASM 90
    Try moving your project directory closer to the root of the drive
    C:\PICPROYECTS
    In my opinion, it is a bad idea to store any user created content in "C:\USERS\".
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2010
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,

    It didnt work, still gives me the same error.

    I am just worried that my header it is not correct, it looks like this:

    Code:
    DEFINE OSC 4
     @ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _CP_OFF  
     
        cnt VAR BYTE
        delay var byte
    etc....
    But It looks something is missing.....

    I dont know....anyway, thanks all for you help.

    Best regards.
    Frank.

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