Strange pic 16f877a memory loss


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    I've seen eproms program correctly, and then verify without fault...
    But as soon as you take them out of the programmer they loose their contents like ram...
    Turns out it was a faulty batch...

  2. #2
    Join Date
    Jan 2008
    Location
    Pennsylvania
    Posts
    113


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by comwarrior View Post
    I've seen eproms program correctly, and then verify without fault...
    But as soon as you take them out of the programmer they loose their contents like ram...
    Turns out it was a faulty batch...
    The thing about this is that it's been running non-stop without incident for a couple of months so I doubt this was a bad batch. I'm thinking it might have had something to do the storm and the close proximity lightning strike we had or perhaps the fact that most of the pins are left hanging tied to nothing. Maybe there was a build up or something.

    Thanks
    David

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I've seen that happen several times.
    Most of my stuff is on Yachts and Oil rigs, so they take a lot of lightning strikes.

    Occasionally, a few bit's in both Flash (program memory) and/or EEPROM will get erased (to a 1). Not whole bytes, just random individual bits. Depending on which bits get erased, almost any problem imaginable can happen. Sometimes only one function doesn't work right anymore, other times it's just dead, locked up in a loop somewhere. Sometimes other components are black and crispy, other times all components are fine and only the memory got changed.

    Too bad you didn't save the download, a comparison with the original hex could have confirmed the hypothesis.

    I originally started out with Basic Stamps, which were a lot worse than PIC's. Their program corrupts if a butterfly farts nearby. And lightning usually takes them out completely.

    The PIC's were always fine, just reload and go.

    I've tried all kinds of MOV's, and Transient suppressors, and gas discharge tubes, but it still happens. Since a nearby strike normally enters through the "ground" on a boat, there's nowhere to shunt it to. So I stopped using them all together, because they create problems of their own as well.

    It's amazing that the lightning strike seems to affect the boat captains memory too. It's not till he finds out that there won't be any repair cost, that he suddenly remembers, oh yeah, it must have been that lightning strike we took. (lightning damage isn't covered by the warranty).
    <br>
    DT

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    Darrel, do you have your devices in metal enclosures?

    I had similar effects on devices placed in the car parkings and were exposed in the open. But were built in plastics...

    I wonder why the other electronics on-board still work, or not?

    Ioannis

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Nope, they're in a NEMA4 PVC enclosure, although that enclosure is inside a metal frame.

    And when they do fess up, I've heard that Radar and navigation were knocked out too, but the radio's still work fine. (but who knows for sure)
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default

    I have had similar problems in machine shops around welders
    and plasma cutters. A metal enclosure with a good earth ground
    normally helps. Have to add another ground rod a lot of times.

    How do you earth ground a boat?
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    ...

    How do you earth ground a boat?
    You wire a long cable to the shore

    If you can't find one long enough, use a wireless hub to make it. Everything goes wireless these days.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  8. #8
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking

    Quote Originally Posted by mackrackit View Post
    How do you earth ground a boat?
    Hi, Dave

    No Problem ... Darrel's boat always stay along its Wharf ... Web Terminals do not work past the Harbour !!!


    You also could use the anchor ...

    BTW ... I thought sea water was conductive ... isn't it ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    How do you earth ground a boat?
    Boats usually have Zinc electrolysis plates on their bottoms to which all metal is grounded.
    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.

  10. #10


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    How do you earth ground a boat?
    run it up onto the beach...

    Sorry, couldn't resist...

    Seawater is conductive (depending on voltage) but also very corrosive...
    i think their is a metal (possibly zinc) strip to the bottom of a boats keel...

    As for using the anchor, you can't... corrosion on each individual chain loop will cause insulation...

    The fun comes when you try to figure out how to earth a plane...

  11. #11
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by comwarrior View Post
    The fun comes when you try to figure out how to earth a plane...
    Hmm, and why should you? It is floating isn't it??

    Ioannis

Similar Threads

  1. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 00:52
  2. help my bluetooth and PIC 16F877A?
    By slimpeng in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th March 2008, 06:52
  3. Two PIC 16F877A fried in two days!
    By manumenzella in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th January 2007, 10:38
  4. Memory Loss??
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th October 2006, 11:10
  5. Matching PIC memory and program size?
    By manxman in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th August 2006, 08:02

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts