Config problem PIC16F886


Closed Thread
Results 1 to 40 of 56

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    35

    Angry Config problem PIC16F886

    Can anyone please help me with configuration with PIC16F886- Want to run INTERNAL OSC 8 MHZ - ALL DIGITAL.

    Bosse

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


    Did you find this post helpful? Yes | No

    Default

    You'll need to have PBP 2.50 for this series of chips.

    Code:
    OSCCON = %01110001  ; Internal 8 mhz Osc
    ANSEL = 0           ; All Digital
    ANSELH = 0
    DT

  3. #3
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Default Config PIC16F886

    Thank you Darrel,
    I have PBP 2.47 - in Microengineering labs homesite they declare that PBP 2.47 can compile F886 ???
    Have used PIC16F88, but need more I/O so decided to try F886 but have real problem with config word
    @ DEVICE PIC16F886, INTOSCIO,WDT_OFF,MCLR_OFF,LVP_OFF,PROTECT_OFF,BOD_ OFF,CPD_OFF,IESO_OFF,FCMEN_OFF,PWRT_OFF

    So I have to update to PBP 2.50 - will do that soonest possible.

    Can I compile in MPASM and then use the file?

    Thanks again
    Last edited by Bosse; - 22nd August 2008 at 18:55.

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


    Did you find this post helpful? Yes | No

    Default

    Oh, oops. Yes 2.47 will do.

    What kind of problem are you having with the config? Looks ok to me.
    <br>
    DT

  5. #5
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Default

    Hi Darrel,

    Always get a lot of messages that the config is not correct.

    Now I have decided to use Crystal and will be very greatful for help with configuration word(s)

    Have used a PIC16F876A before without any problem, think it can be that the F886 have 2 config words????

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


    Did you find this post helpful? Yes | No

    Default

    Are you using the default PM assembler, or MPASM?

    For PM, the CONFIG2 word is set using the DEVICE2 pseudo-op. But not setting config2 will not cause an error. And your DEVICE line above looks OK (if using PM).

    If you are using MPASM then it would be ...
    Code:
    @    __config _CONFIG1, _INTOSCIO & _WDT_OFF & _MCLRE_OFF & _LVP_OFF & _CPD_OFF & _FCMEN_OFF &  _IESO_OFF
    Of if you're using a crystal now, replace _INTOSCIO with _XT_OSC or _HS_OSC.

    Don't forget to comment the config line in the 16F886.inc file in your PBP folder.
    <br>
    DT

  7. #7
    Join Date
    Feb 2013
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Re: Config problem PIC16F886

    Hi! 16f886 to write to the configuration settings of the pbp?

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Config problem PIC16F886

    Quote Originally Posted by kolega35 View Post
    Hi! 16f886 to write to the configuration settings of the pbp?
    Hi, which PBP version are you using, and which assembler are you trying to use with that, PM or MPASM?

    Robert

Similar Threads

  1. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 01:48
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  3. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 17:20
  4. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 15:26
  5. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 03:56

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