atmega 8535 and eeprom programming

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello everybody
i used atmega 8535 and gsm modem .in that i inserted some numbers through message in atmega.
and stored in eeprom via prograamming.and that time and mostly it shows that same number but sometimes it forget these memory that numbers which stored in eeprom. and shows blank and corrupted data.
so what is the reason behind that and what is the solution.

pls help me

working at atmega32 nad modem and want to work with rf ,ir .
i am to learn wireless and to make projects realted with that.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

EEPROM sometimes corrupts if an AVR is allowed to run below the BOD threshold - do you have BOD enabled.

(to be honest the amount of info in your post is far too vague for anyone to provide specific help - just pointers to areas that might be worth investigating - when you provide more info you may get more detailed suggestions)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Isn't there an appnote on preventing eeprom corruption? I've searched a few times but can't find it. Course the new Atmel site is pretty worthless for this now.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
EEPROM sometimes corrupts if an AVR is allowed to run below the BOD threshold - do you have BOD enabled.

(to be honest the amount of info in your post is far too vague for anyone to provide specific help - just pointers to areas that might be worth investigating - when you provide more info you may get more detailed suggestions)

hello sir
thnx to reply and support ,sir here with BOD i am not understanding this term.
pls specify thid BOD

working at atmega32 nad modem and want to work with rf ,ir .
i am to learn wireless and to make projects realted with that.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

deepakgupta.rf wrote:
clawson wrote:
EEPROM sometimes corrupts if an AVR is allowed to run below the BOD threshold - do you have BOD enabled.

(to be honest the amount of info in your post is far too vague for anyone to provide specific help - just pointers to areas that might be worth investigating - when you provide more info you may get more detailed suggestions)

hello sir
thnx to reply and support ,sir here with BOD i am not understanding this term.
pls specify thid BOD

BOD means brown out detector - (something like tat). It means if the VCC is below certain voltage, the MCU will not run. Thus, it will protect your EEPROM during low or unstable voltage...simply it wont execute EEPROM write. Read the manual for more detail. You can enable the BOD in the fuse settings.

cs

I'm happy ytd, today, and tmr :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Search the mega8535 datasheet for the word "corruption". In my copy there is a section entitled "Preventing EEPROM corruption" on page 21 - read it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

with BOD i am not understanding this term.
pls specify thid BOD

Gee--if there is a term I don't understand, I'd search for that term in the datasheet. When I search the '8535 datasheet for "bod", guess what the first hit is? Sheesh.

(True enough, people might use an abbreviation or acronym here in posts that doesn't exactly match datasheet wording. But in this case...)

Lee

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.