Config problem PIC16F886


Closed Thread
Results 1 to 40 of 56

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Yes, have MPLAB Ver. 8.00.00.00 and updated PicKit2

    Shall read bak and see

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bosse View Post
    Hi,

    Yes, have MPLAB Ver. 8.00.00.00 and updated PicKit2

    Shall read bak and see
    MPLAB is up to 8.14.
    PicKit2...check the website for the latest.

  3. #3
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Default

    Hi again skimask,

    This is my configuration now, will move it to the INC file when there is no warnings.

    @ __CONFIG _CONFIG1, _INTOSCIO & _WDT_ON & _PWRTE_ON &_MCLRE_ON & _LVP_OFF & _CPD_OFF & _FCMEN_OFF & _IESO_OFF

    Define OSC 8 ' Set Xtal Frequency

    OSCCON = %01110001 ' Internal 8 mhz Osc

    ANSEL = 0 ' All Digital
    ANSELH = 0
    CM1CON0 = 0 ' Think ? don't need
    CM2CON0 = 0 ' Think ? don't need
    ADCON0 = 0
    ADCON1 = $0F ' Think ? don't need

    Have to try change bit by bit until no warnings from PicKit2

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bosse View Post
    @ __CONFIG _CONFIG1, _INTOSCIO & _WDT_ON & _PWRTE_ON &_MCLRE_ON & _LVP_OFF & _CPD_OFF & _FCMEN_OFF & _IESO_OFF
    Anything below this line isn't going to have an effect on your CONFIG fuses.
    They are 2 separate entities...
    And when I said read back, I meant the actual config word data as read back using the PICKIT2, not the data you are trying to push out to the PIC using the programmer.

    EDIT: Just checked your CONFIG against the '886/887 datasheet. When reading back the PIC after programming the config word, you should readback $E3ECFFFF, if it's actually being programmed to those values.
    Last edited by skimask; - 9th September 2008 at 20:54.

  5. #5
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Default

    Have Updated MPLAB to 8.14 and PicKit to 2.52

    Reading back 23EC 3FFF

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bosse View Post
    Have Updated MPLAB to 8.14 and PicKit to 2.52
    Reading back 23EC 3FFF
    If I had an '886, I'd try it to see what I get.
    Oh...wait...I've got the demo board with an '887 on it.
    When I get a chance, I'll see what it reads...

  7. #7
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Default

    Will be very greatful for your help, can see that 16F887 have exact the same CONFIG words.
    Have used 16F876A before without problems, but they dont have internal oscillator.

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