Mystery instability of 16f628a


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Posts
    21


    Did you find this post helpful? Yes | No

    Default Re: Mystery instability of 16f628a

    Thanks Bruce. It's back in even as we speak ! Belt, braces and a piece od string as they say !
    Cheers

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


    Did you find this post helpful? Yes | No

    Default Re: Mystery instability of 16f628a

    Hello Davidmarks,
    I am curious, are you getting any warnings when you compile? It occurs to me, without the present ability to check MY pbp due to a hard drive failure here at home, What is the default OSC setting in the 16F628A.inc file? Have you opened it and commented it out ? Because if not, your program will use the default osc setting and NOT the one you wrote into your code. So if the default is for using a crystal instead of INTRC_OSC * * * you will in effect have the external crystal ports open to the ether looking for a finger to help start the oscillator by stray capacitance. One more thing, is the " [ " at the beginning of the config statement, in you code or just in your post?
    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.

  3. #3
    Join Date
    Dec 2009
    Posts
    21


    Did you find this post helpful? Yes | No

    Default Re: Mystery instability of 16f628a

    Thanks Joe. As I said in previous post the thing is working OK now. Didn't know about the need to change the inc file for the internal oscillator, but I have now done so and relieved to find it still works. The [ symbol was intended to signify the start of the code.. seem to remember someone telling me that I should do that when posting code. I now have yet another seemingly inexplicable problem. I am programming in circuit with PicKit 2 which has suddenly decided to stop the circuit working if I disconnect it. I have a seperate power supply which is powering the circuit so simply cannot understand why it should stop working when I remove the PicKit2 . It wasn't doing it earlier this week so I am at a loss to know what I have done ( nevertheless I'm pretty sure that I know who is to blame again!)
    Cheers
    David M

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


    Did you find this post helpful? Yes | No

    Default Re: Mystery instability of 16f628a

    Microchip sells demo boards at a reasonable price which simply plug into the pickit2. I like them for testing code snippets, easy quick push button changes and viola it is running again, no wires to fuss with. different boards for the 628 and similar vs 690 series. As for who is to blame . . . blame it on the curve, the learning curve, we ALL have lost it on that curve, be careful not to oversteer, so as not to spin out
    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.

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Mystery instability of 16f628a

    I am programming in circuit with PicKit 2 which has suddenly decided to stop the circuit working if I disconnect it.
    Sounds like a MCLR issue. Try _MCLRE_OFF
    in your configs.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Dec 2006
    Location
    Brasil, Sao Paulo, Campinas
    Posts
    54


    Did you find this post helpful? Yes | No

    Lightbulb Re: Mystery instability of 16f628a

    Put a 100nF capacitor near pins 5 and 14 (gnd and vcc) !
    Its solve my mistery problems in the pass.

    Good luck
    Pimentel

  7. #7
    Join Date
    Dec 2008
    Location
    New York US
    Posts
    46


    Did you find this post helpful? Yes | No

    Lightbulb Re: Mystery instability of 16f628a

    I had problem with 16f628a
    After repeating to reprogram IC with the same code it start working as has to be.
    Possible disadvantage of 16f628a is some bits of reprogrammed memory do not change their state during programming.
    Hope it helps.
    hardcore

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