CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Program Erasing

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
evaradharaj



Joined: 15 Jan 2009
Posts: 60

View user's profile Send private message Visit poster's website

Program Erasing
PostPosted: Wed Mar 03, 2010 10:54 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Mar 04, 2010 7:47 am     Reply with quote

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







PostPosted: Thu Mar 04, 2010 7:56 am     Reply with quote

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







PostPosted: Thu Mar 04, 2010 7:58 am     Reply with quote

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







PostPosted: Thu Mar 04, 2010 10:32 am     Reply with quote

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

View user's profile Send private message Visit poster's website

thanks
PostPosted: Thu Mar 04, 2010 8:40 pm     Reply with quote

Thanks for your suggestions.... I'll look at the problem clearly and contact Microchip.
_________________
embedding innovation in engineers
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group