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

    Smile

    Hi Joe,

    Thank you for your help. Was working yesterday to 06.30 in the morning, so today I have not tried out the new settings. Will do it tomorrow and belive it will work now. Have tried with LEDs and sometimes 2 LEDs lights when only one should. Will send you info about my progress tomorrow.

    Many thanks again ALL of you

    Bosse

  2. #2
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Thumbs up

    Hi everybody - especially you how have helped me, MANY THANKS!!

    Now it is running nice - still a warning from PicKit2 - Configuration 23EC 0700

    But can not see any problem when program runs - have hardtested all functions and NO problem to see.

    All the Best to you all

    Bosse

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bosse View Post
    Now it is running nice - still a warning from PicKit2 - Configuration 23EC 0700
    I think, but I'm not sure...
    The datasheet says that the upper 2 bits of the CONFIG1 register should read as 1's (even though they're not used), and the same thing for most of CONFIG2.
    This leads me to believe that your config word should be $E3ECFFFF when read back off the chip.

    Have you got the latest versions of MPLAB, PICKIT2 firmware and software loaded up?

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

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

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

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

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