first program 12f683


Closed Thread
Results 1 to 16 of 16

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: first program 12f683

    That was/is not test code. It is part of the "guts" of PBP just like the *.inc files in the same directory.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Apr 2011
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: first program 12f683

    here is the steps I have taken in MPLAB
    1.click project wizard and select 12f683 and save project as test-12f683.mcp
    2. copy file 12f683.bas to folder and rename it test-12f683.bas
    3. click finish and project is complete
    add 2 lines of code
    main:
    goto main

    press f-10 to compile and the program chokes
    then I comment out several items and now it will compile
    this does not seem right

    my code will run on the micro. just want make sure that this is the right way




  3. #3
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: first program 12f683

    Quote Originally Posted by sparkness View Post
    just want make sure that this is the right way


    No, you are not supposed to put code in, and compile the guts of PBP, like this file. Please re-read posts above.

  4. #4
    Join Date
    Apr 2011
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: first program 12f683

    so I should not add the source file 12f683.bas to the project and create an empty file called test-12683.bas in this example?

  5. #5
    Join Date
    Apr 2011
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: first program 12f683

    my mistake, I was adding the .bas file to the project
    I was using the steps required for an Assembler project

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


    Did you find this post helpful? Yes | No

    Default Re: first program 12f683

    Again, that is not a sample or test code. You should not be trying to run it, it is a file PBP needs to help compile code.

    Restore the file to its original state and try one of the smples I linked you to.
    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