Config problem PIC16F886


Closed Thread
Results 1 to 40 of 56

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bosse View Post
    Hi skimask,

    Thank you very much for all your help, now I will change the config in the INC file.

    Wish you all the best

    Bosse
    Ya Know, I would only add an <b><font color=red> ; </b></font color> there. What I would do is save the configs you want saved as a file, call it 16F886 Setup and open it for each new project, then when you get ready to compile just save it as your new project's name: MyNewProject.BAS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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

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

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

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

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

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

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