Config problem PIC16F886


Closed Thread
Results 1 to 40 of 56

Hybrid View

  1. #1
    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

  2. #2
    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 19:55.

  3. #3
    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

  4. #4
    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????

  5. #5
    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

  6. #6
    Join Date
    Aug 2004
    Posts
    64


    Did you find this post helpful? Yes | No

    Default

    Hi Bosse:
    If you are using the port A as digital, you will need to disable too the
    comparators.
    CM1CON0 = 0
    CM2CON0 = 0
    Greetings...
    Ruben de la Pena V.

  7. #7
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Thumbs up

    Thank you very much Darrel and Ruben,

    I use PM assembler. Have decided to use a ceramic resonator (20 MHz)

    Wants ALL DIGITAL if possible.

    Will try your configuration recommendations

    Thanks again

    Bosse

Similar Threads

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