Bloody F886


Closed Thread
Results 1 to 10 of 10

Thread: Bloody F886

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,680


    Did you find this post helpful? Yes | No

    Default Re: Bloody F886

    in your pbp dir you have a file called 16f886.inc


    edit it to look like this below
    remove all config statements from your pgm

    failing that upgrade to pbp3 it makes life much easier
    silver edition is only $25 at dontronics if the have any left


    ;************************************************* ***************
    ;* 16F886.INC *
    ;* *
    ;* By : Leonard Zerman, Jeff Schmoyer *
    ;* Notice : Copyright (c) 2009 microEngineering Labs, Inc. *
    ;* All Rights Reserved *
    ;* Date : 07/02/09 *
    ;* Version : 2.60 *
    ;* Notes : *
    ;************************************************* ***************
    NOLIST
    ifdef PM_USED
    LIST
    include 'M16F88x.INC' ; PM header
    device pic16F886, intrc_osc_noclkout, wdt_on, mclr_on, lvp_off, protect_off
    XALL
    NOLIST
    else
    LIST
    LIST p = 16F886, r = dec, w = -302
    INCLUDE "P16F886.INC" ; MPASM Header
    __config _CONFIG1, _HS_OSC & _WDT_ON & _MCLRE_OFF & _LVP_OFF & _CP_OFF
    NOLIST
    endif
    LIST

  2. #2
    Join Date
    Jun 2005
    Location
    Up the bush, Western Plains, NSW Au
    Posts
    216


    Did you find this post helpful? Yes | No

    Default Re: Bloody F886

    OK Rich, did that

    Wrote a simple 2 line prg...nothing but these 2 lines...

    define osc 16

    PORTC = 0


    When I compile, get lots of errors.....

    ERROR [113] PBPPIC14.LIB SYMBOL NOT PREVIOUSLY DEFINED (PORTC)
    ERROR [113] PBPPIC14.LIB SYMBOL NOT PREVIOUSLY DEFINED (PORTC)
    ERROR [113] PBPPIC14.LIB SYMBOL NOT PREVIOUSLY DEFINED (PORTC)
    ERROR [113] PBPPIC14.LIB SYMBOL NOT PREVIOUSLY DEFINED (PORTC)
    ERROR [113] PBPPIC14.LIB SYMBOL NOT PREVIOUSLY DEFINED (PORTC)
    ERROR [113] PBPPIC14.LIB SYMBOL NOT PREVIOUSLY DEFINED (PORTC)

    WTF?????
    Attached Images Attached Images  
    Peter Moritz.
    Up the bush, Western Plains,
    New South Wales,
    Australia.

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default Re: Bloody F886

    Hi Peter,
    First, are you sure you have the correct device (PIC18F886) selected in the dropdown list in MicroCodeStudio?
    Second, not related to the error message, define is a case sensitive statement. osc and OSC are not the same thing. For PBP to correctly pick up that you intened to run at 16MHz you need to define OSC 16.

    /Henrik.

  4. #4
    Join Date
    Jun 2005
    Location
    Up the bush, Western Plains, NSW Au
    Posts
    216


    Did you find this post helpful? Yes | No

    Default Re: Bloody F886

    Rightio.
    Changed the osc to OSC

    Now it compiles but with the following...

    Name:  pbp002.gif
Views: 428
Size:  12.8 KB

    but at least it is compiling and programming...but when I read the chip back, the config bits have not changed....melabs usb programmer.

    looks like it doesn't like the .inc file that was changed?

    ..
    Peter Moritz.
    Up the bush, Western Plains,
    New South Wales,
    Australia.

Similar Threads

  1. F886 & pgm
    By MOUNTAIN747 in forum General
    Replies: 14
    Last Post: - 9th February 2010, 23:19

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