New to PBP


Closed Thread
Results 1 to 3 of 3

Thread: New to PBP

  1. #1
    Join Date
    May 2009
    Location
    USA
    Posts
    16

    Default New to PBP

    Hello, I just found PBP at my local college and I am trying to build my first program for a 12F683 but it seems that I can't get the inline assembly right. So far I've got everything right, but I'd like to set the configuration fuses so the watchdog timer doesn't reset on me. I copy and pasted this from an other thread:
    @ DEVICE PIC12F683,MCLR_OFF,INTRC_OSC_NOCLKOUT,WDT_OFF,BOD_ ON, PWRT_ON

    Also from http://www.picbasic.co.uk/forum/showthread.php?p=69895
    @ DEVICE pic12F683, WDT_Off
    Doesn't even work.

    Here's my error
    Code:
    Warning[207] C:\RFID\UNTITLED.ASM 95 : Found label after column 1. (DEVICE)
    Error[122]   C:\RFID\UNTITLED.ASM 95 : Illegal opcode (pic12F683)
    The computer I'm using has MPLab8.15a and PBP 2.47 it looks like from the compile window. Commenting out the line clears the error.
    Why is the email address verification case sensitive?

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    The Config statement you are trying to use is for the "DEFAULT" assembler and apparently the microcode Studio is set to use MPASM.
    Please read this link: http://www.picbasic.co.uk/forum/showthread.php?t=543

    Here is the MPASM config statement you are using when you comment the one in your code out: __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF , it is located in the file named 12F683.inc, and is located in the root directory of PBP. You can change it there or better yet, put a semicolon just ahead of it and put it directly in your code every time and be master over it. Here is what you want in your code:

    @ __config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_ON & _CP_OFF
    Alternatively you can switch assemblers, in MCS back to the default, by unchecking " USE MPASM".
    Click view, compile and program options, assembler tab . . .
    Last edited by Archangel; - 12th May 2009 at 05:16.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    May 2009
    Location
    USA
    Posts
    16


    Did you find this post helpful? Yes | No

    Default

    Thank you so much, the post you linked to made so much sense. I dont see how I missed that. I understand how to configure it, but I don't understand why I have to edit the include file. Are those there just for the beginners who don't need to mess with the configuration fuses just yet?
    Why is the email address verification case sensitive?

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. PBP, ASM and LST files
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2010, 13:43
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 19:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. PBP / XP Crash
    By pondindustrial in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th November 2005, 03:16

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