help with pic16f887


Closed Thread
Results 1 to 40 of 61

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    Ok I am home now and ready to make it work.
    I tried to compile it and it would not work I went into the the build configuration menu and removed the pasmwin option.
    here is what I am getting now in MPLAB:

    Executing: "C:\PBP2.60\PBPMPLAB.BAT" -p16F887 "C:\PBP2.60\eeprom.bas"
    Executing: "C:\PBP2.60\PBPW.EXE" -p16F887 "C:\PBP2.60\eeprom.bas"
    PICBASIC PRO(TM) Compiler 2.60A, (c) 1998, 2010 microEngineering Labs, Inc.
    All Rights Reserved.

    ERROR: Unable to execute PM.EXE.Halting build on first failure as requested.
    BUILD FAILED: Tue Nov 30 18:26:11 2010


    and my code:
    Code:
    '/////////////////////////
    '// Define section //
    '/////////////////////////
    
    @ __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _LVP_OFF & _CP_OFF
    OSCCON = %01110000 '8 Mhz
    DEFINE OSC 8
    ANSELH = 0

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


    Did you find this post helpful? Yes | No

    Default

    Up in post #3 you were using mpasm, now you are using PM with MPLAB...
    I do not understand.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default ?????

    owowo I am lost now

    -I was previously using Picbasic pro under dos.
    -Now I installed windows 7 64bit, I can no longer use dos. I followed the instruction from Melabs to choose PBPMPLAB.BAT under MPLAB 8.56. I thought I was using the picbasic pro module and MPLAB and an interface between the two.

    I want to keep it simple... either way , dont know where to go from here

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


    Did you find this post helpful? Yes | No

    Default

    Try installing the free version of Micro Code Studio that came with PBP.
    Then in the toolbar click View - Compiler and Program Options.
    There will be tabs on the dialog box.
    Under Compiler click find automatically.
    Under the Assembler tab check Use MPASAM and click find automatically.

    Then when you want to compile hit the F9 key.

    That is the simplest way.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    Gee not compiling giving me one error and one warning:

    -Overwriting previous address content (2007)
    -Argument out of range. Least significant bits used


    and I did select the right chip....

  6. #6
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    ok knocked off this line
    @ __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _LVP_OFF & _CP_OFF


    and its only giving the warning :-Argument out of range. Least significant bits used

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


    Did you find this post helpful? Yes | No

    Default

    If I remove the "e"
    Code:
    lcdout $FE,1, " Appuyé sur Start "
    And remove the space at
    RTCYear
    Code:
    I2CRead SDApin,SCLpin,$D0,$00,[RTCSec,RTCMin,RTCHour,RTCWDay,RTCDay,RTCMonth,RTCY ear,RTCCtrl] 'read clock
    It compiles.
    Dave
    Always wear safety glasses while programming.

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