fuse options in pbp


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1

    Default fuse options in pbp

    ok, i'm trying to set the fuse options so that i don't have to remember to set them...

    I've been searching around for ages for them and tried everything i could find including whats in the help and faq on here...

    I've tried...

    Code:
    device  pic16F877A, HS_OSC, WDT_OFF, PWRTE_OFF, BODEN_OFF, LVP_OFF, WRTE_OFF, CP_OFF, DEBUG_OFF
    and

    Code:
    CONFIG HS_OSC, WDT_OFF, PWRTE_OFF, BODEN_OFF, LVP_OFF, WRTE_OFF, CP_OFF, DEBUG_OFF
    Basically, OSC should be HS and everything else should be off...

    I'm using MPLAB IDE but compiling using PBP2.44 via command line and programming using winpic8 and a JDM programmer (proberbly a clone)...

    PS, i don't want to use ICSP when their is around 100 volts DC in my system... so LVP is also disabled to solve an IO issue...

    Any help appreciated

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


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by comwarrior View Post
    I've been searching around for ages for them and tried everything i could find including whats in the help and faq on here...
    Although you say that you've read them, the results don't match what the threads recommend.

    In this thread ...

    Presetting Configuration Fuses (PIC Defines) into your Program
    http://www.picbasic.co.uk/forum/showthread.php?t=543

    Read post#1, sections 2.b. and 3.b.
    <br>
    DT

  4. #4


    Did you find this post helpful? Yes | No

    Default

    ok, added following to the start...

    Code:
    @ device pic16F877A, HS_OSC
    @ device WDT_OFF
    @ device PWRT_OFF
    @ device BOD_OFF
    @ device LVP_OFF
    @ device WRT_OFF
    @ device CPD_OFF
    @ device DEBUG_OFF
    and I get the following error during compile...

    Code:
    D:\Bedini\PIC code\bedini 1>pbpw -p16f877 test1.bas -v
    PicBasic Pro Compiler 2.44, (c) 1998, 2003 microEngineering Labs, Inc.
    All Rights Reserved.
    Pass 1:
    Pass 2:
    Code Gen:
    Macro Pass:
    PM Assembler 4.06, Copyright (c) 1995, 2003 microEngineering Labs, Inc.
    Error D:\blah\blah\blah\TEST1.ASM  94 : [225] Undefined Symbol 'pic16F877A'
    *** 1 Error ***
    my INC dir only has an M16F87XA.inc file does that make a diference?

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Command line options override anything in your program.

    You've compiled it for a 16F877
    Code:
    pbpw -p16f877 test1.bas
    And put @ device pic16F877A, ... in the program.
    <br>
    DT

  6. #6


    Did you find this post helpful? Yes | No

    Default

    well spotted...

    The A was missing because i originally orderd the none A version but changed because they were out of stock and they said 3 weeks for stock... they had the A's in so i said i'll have them instead...

    Thanks Darrel... again

    :edit
    hmmm, i wonder if thats causing other problems....
    Last edited by comwarrior; - 31st July 2009 at 22:09. Reason: after thaught

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by comwarrior View Post
    hmmm, i wonder if thats causing other problems....
    What other problems are you having?

    The "A" version has a few things different. Do a data sheet compare and you will find them.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. Definitive MPLAB Config Examples
    By Brian J Walsh in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd July 2008, 11:33
  3. Setting up internal clock correctly?
    By JohnM in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th March 2008, 20:29
  4. 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
  5. Can anyone help at getting OWIn & OWOut to work @ 16MHz?
    By jessey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 24th January 2006, 11:08

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