View previous topic :: View next topic |
Author |
Message |
evaradharaj
Joined: 15 Jan 2009 Posts: 60
|
Program Erasing |
Posted: Wed Mar 03, 2010 10:54 pm |
|
|
Hi,
I am using 16f877a microcontroller. I programmed the IC before one week. Today, the program was erased without any sudden change. Can you tell me what is the problem?
I experienced this problem many times. I am using LCD. After Reprogramming its working fine. If program erased means, the LCD is going Black for one line.
Thanks in advance. _________________ embedding innovation in engineers |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Thu Mar 04, 2010 7:47 am |
|
|
Is just a part of the program getting erased?
What hardware are you using to do the programming? _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
Gav Pinto Guest
|
|
Posted: Thu Mar 04, 2010 7:56 am |
|
|
SherpaDoug wrote: | Is just a part of the program getting erased?
What hardware are you using to do the programming? |
Contact microchip. This is not a topic that can be handled in this forum.
If device was verified correct after programming, you need to look at data sheets and if problem persists contact microchip |
|
|
Gav Pinto Guest
|
|
Posted: Thu Mar 04, 2010 7:58 am |
|
|
Gav Pinto wrote: | SherpaDoug wrote: | Is just a part of the program getting erased?
What hardware are you using to do the programming? |
Contact microchip. This is not a topic that can be handled in this forum.
If device was verified correct after programming, you need to look at data sheets and if problem persists contact microchip |
I have written programming sequences for various PIC chips and never had problems |
|
|
Ttelmah Guest
|
|
Posted: Thu Mar 04, 2010 10:32 am |
|
|
Lets put this slightly into perspective.
First, are you sure the chip is getting erased?. Have you actually put it into a programmer, and read it back to see whether the program is still there?. The 'single black line', just means it is not getting initialised. While loss of program could cause this, so could many other things (MCLR floating etc....).
Now, erasing the program memory could occur in certain situations:
1) Obvious one - you are writing to the memory in your program, and get it wrong.... Does your code write to the program memory?.
2) MCLR gets raised to a voltage significantly _above_ the normal supply rail. This can trigger a 'program' cycle, and result in program erasure. What is connected to MCLR?.
3) The chip is losing it's memory contents because of too many write cycles. This comes back to '1'. If you are writing to the program memory in code, you _must_ remember that this memory has a limited 'write life'. If you have code that updates a value stored in program memory at rapid intervals, then 'think again'. The program memory is not designed for this. It's write life, can be as low as 10000 cycles. If you write repeatedly to the chip, you can kill the chip in under 40 seconds....
If none of these apply, then the comment 'contact Microchip', already made by another poster, applies.
Best Wishes |
|
|
evaradharaj
Joined: 15 Jan 2009 Posts: 60
|
thanks |
Posted: Thu Mar 04, 2010 8:40 pm |
|
|
Thanks for your suggestions.... I'll look at the problem clearly and contact Microchip. _________________ embedding innovation in engineers |
|
|
|