Config problem PIC16F886 - Page 2


Closed Thread
Page 2 of 2 FirstFirst 12
Results 41 to 56 of 56
  1. #41
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Default

    Hi everybody,

    Now I have the CONFIG word without warnings - tested with the demo board 887

    @ __CONFIG _CONFIG1, _LVP_OFF & _FCMEN_OFF & _IESO_OFF & _BOR_OFF & _CPD_OFF & _CP_OFF & _MCLRE_ON & _PWRTE_ON & _WDT_OFF & _INTRC_OSC_NOCLKOUT
    @ __CONFIG _CONFIG2, _WRT_OFF & _BOR21V

    Config from read back: 20E4 0600

    Thanks again for all your help

  2. #42
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bosse View Post
    Hi everybody,

    Now I have the CONFIG word without warnings - tested with the demo board 887

    @ __CONFIG _CONFIG1, _LVP_OFF & _FCMEN_OFF & _IESO_OFF & _BOR_OFF & _CPD_OFF & _CP_OFF & _MCLRE_ON & _PWRTE_ON & _WDT_OFF & _INTRC_OSC_NOCLKOUT
    @ __CONFIG _CONFIG2, _WRT_OFF & _BOR21V

    Config from read back: 20E4 0600

    Thanks again for all your help
    Any idea which config item in particular was causing the problem?

  3. #43
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Default

    Will check and come back - have study exampel files from Microchip where I found some CONFIG words.

  4. #44
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bosse View Post
    Will check and come back - have study exampel files from Microchip where I found some CONFIG words.
    Just remove the CONFIG items one by one until the problem goes away...

  5. #45
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Default Config word

    Hi Skimask,
    First thank you for your earlier info
    Can you tell me how to find out wich configuration I have - how to calculate or find out in another way.

    My code runs with internal OSC 8 MHz (I hope) but after leaving the PCB for some hours, it need time to start normal. Reading DS1990A and first time touching the probe nothing happens, second time all O.K - after about 10 sec all works normal and it also works if you touch direct after each other - touching of course allways with different DS1990A and after each reading the variable holding the code resets.

    Config word: 20E4 0600

  6. #46
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bosse View Post
    Hi Skimask,
    First thank you for your earlier info
    Can you tell me how to find out wich configuration I have - how to calculate or find out in another way.
    You've already been given all the information you need during the course of this thread to figure that out for yourself. Go back and read and re-read and re-read and repeat...

    My code runs with internal OSC 8 MHz (I hope) but after leaving the PCB for some hours, it need time to start normal. Reading DS1990A and first time touching the probe nothing happens, second time all O.K - after about 10 sec all works normal and it also works if you touch direct after each other - touching of course allways with different DS1990A and after each reading the variable holding the code resets.
    Rephrase the sentences above. They aren't making a lot of sense to me...might to somebody else, but the grammar just isn't quite working out...
    The way I read it...The program runs, then it stops, then you touch something, it runs, restart it, doesn't want to restart, but will after a few seconds, then the code resets?

  7. #47
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Default

    Have a code how runs nice on a F88 - thats why I think something is wrong with configuration word for the F886. It seems that I need to touch the probe 2-3 times or reading in more than one time before it reads correct. After one good reading all works, looks that it stops up and needs to wake up before it works????

  8. #48
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bosse View Post
    Have a code how runs nice on a F88 - thats why I think something is wrong with configuration word for the F886. It seems that I need to touch the probe 2-3 times or reading in more than one time before it reads correct. After one good reading all works, looks that it stops up and needs to wake up before it works????
    Since an F88 is an 18 pin device and an F886 is a 28 pin device, it sounds to me like you've got a hardware problem, a grounding problem most likely since you have to actually touch (ground) the device to get it to work for you.
    What are you building this circuitry on?

  9. #49
    Join Date
    Sep 2006
    Posts
    35


    Did you find this post helpful? Yes | No

    Smile

    Have ordered some PCB's for prototype testing from PCBCart China - have checked if there is any grounding problem and all looks O.K. Have now changed the code so all variables are reset in the beginning of the code and used the same code from F88 except CONFIGURATION word and now it runs nice. Will test same days then I know for sure.

    Thanks again from an old Swede trying to learn

  10. #50
    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?

  11. #51
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,599


    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

  12. #52
    Join Date
    Feb 2013
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Re: Config problem PIC16F886

    Hi! I am using Microcode Studio version 4.0.0.0 . pbp version is 2.47 . Thanks.

  13. #53
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,599


    Did you find this post helpful? Yes | No

    Default Re: Config problem PIC16F886

    Which Assembler, PM or MPASM?

    Robert

  14. #54
    Join Date
    Feb 2013
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Re: Config problem PIC16F886

    PM Assembler.

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


    Did you find this post helpful? Yes | No

    Default Re: Config problem PIC16F886

    Your answer is likely in this thread: http://www.picbasic.co.uk/forum/showthread.php?t=543
    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.

  16. #56
    Join Date
    Feb 2013
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Re: Config problem PIC16F886

    I will reading this thread. Thanks.

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 : 2

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