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 support@ccsinfo.com

eeprom

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
dave.t
Guest







eeprom
PostPosted: Tue Jan 07, 2003 10:35 am     Reply with quote

Happy new year to you all!

I am designing a controller using a pic 877 and am going to use some external Fram memory to store the controllers settings.
I am a bit worried that in the event of Brown out when writing to the memory the settings could be corrupted.Is this a possibility and how can I resolve this.

Many thanks for your thoughts.
Regards.
Dave
___________________________
This message was ported from CCS's old forum
Original Post ID: 10506
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: eeprom
PostPosted: Tue Jan 07, 2003 12:59 pm     Reply with quote

:=Happy new year to you all!
:=
:=I am designing a controller using a pic 877 and am going to use some external Fram memory to store the controllers settings.
:=I am a bit worried that in the event of Brown out when writing to the memory the settings could be corrupted.Is this a possibility and how can I resolve this.
:=
--------------------------------------------------

I used FRAM on a data logger project. The power came from
a 12v automobile charging system (14.3v when running).
So before I did a write to FRAM, I used the A/D converter
on the PIC to check the input voltage. If it was at least
10 volts, then I did the write to FRAM. I carefully measured
the time required to do the write operation, with a logic
analyzer. I also measured how long the power supply stayed
"up" (at +5v) when the input power was at +10v and then was
shut off. I used two resistors to make a voltage divider,
so I could reduce the input voltage to a safe level for the
PIC's A/D converter. (Remember that the PIC A/D requires
an input impedance of less than 10K -- so choose resistors
according to that rule).

I don't know where your input voltage comes from. If it's
the AC line, then I know there are chips that have a "AC power
fail" detect circuit. If the AC voltage is missing for several
60 Hz (or 50 Hz) cycles, then the chip puts out a warning
signal. I think Maxim Semiconductor makes this chip.
___________________________
This message was ported from CCS's old forum
Original Post ID: 10512
dave.t
Guest







Re: eeprom
PostPosted: Wed Jan 08, 2003 3:36 am     Reply with quote

:=:=Happy new year to you all!
:=:=
:=:=I am designing a controller using a pic 877 and am going to use some external Fram memory to store the controllers settings.
:=:=I am a bit worried that in the event of Brown out when writing to the memory the settings could be corrupted.Is this a possibility and how can I resolve this.
:=:=
:=--------------------------------------------------
:=
:=I used FRAM on a data logger project. The power came from
:=a 12v automobile charging system (14.3v when running).
:=So before I did a write to FRAM, I used the A/D converter
:=on the PIC to check the input voltage. If it was at least
:=10 volts, then I did the write to FRAM. I carefully measured
:=the time required to do the write operation, with a logic
:=analyzer. I also measured how long the power supply stayed
:="up" (at +5v) when the input power was at +10v and then was
:=shut off. I used two resistors to make a voltage divider,
:=so I could reduce the input voltage to a safe level for the
:=PIC's A/D converter. (Remember that the PIC A/D requires
:=an input impedance of less than 10K -- so choose resistors
:=according to that rule).
:=
:=I don't know where your input voltage comes from. If it's
:=the AC line, then I know there are chips that have a "AC power
:=fail" detect circuit. If the AC voltage is missing for several
:=60 Hz (or 50 Hz) cycles, then the chip puts out a warning
:=signal. I think Maxim Semiconductor makes this chip.


Thanks.
I am monitoring the ac line to detect zero crossover points to control a load,so I have a good indication of the state of the mains supply. A case of "I cant see the wood for the tree's" I think!.
Dave.
___________________________
This message was ported from CCS's old forum
Original Post ID: 10530
Sherpa Doug
Guest







Re: eeprom
PostPosted: Wed Jan 08, 2003 7:42 am     Reply with quote

:=Happy new year to you all!
:=
:=I am designing a controller using a pic 877 and am going to use some external Fram memory to store the controllers settings.
:=I am a bit worried that in the event of Brown out when writing to the memory the settings could be corrupted.Is this a possibility and how can I resolve this.
:=
:=Many thanks for your thoughts.
:=Regards.
:=Dave

I have used multiple copies each with a checksum. If power dies while writing a copy that copy will have a bad checksum, but another copy with a good checksum should be fine, though it may be from the time-before-last.

___________________________
This message was ported from CCS's old forum
Original Post ID: 10535
Guest








Re: eeprom
PostPosted: Thu Sep 15, 2005 12:54 am     Reply with quote

dave.t wrote:
:=:=Happy new year to you all!
:=:=
:=:=I am designing a controller using a pic 877 and am going to use some external Fram memory to store the controllers settings.
:=:=I am a Laughing bit worried that in the event of Brown out when writing to the memory the settings could be corrupted.Is this a possibility and how can I resolve this.
:=:=
:=--------------------------------------------------
:=
:=I used FRAM on a data logger project. The power came from
:=a 12v automobile charging system (14.3v when running).
:=So before I did a write to FRAM, I used the A/D converter
:=on the PIC to check the input voltage. If it was at least
:=10 volts, then I did the write to FRAM. I carefully measured
:=the time required to do Wink the write operation, with a logic
:=analyzer. I also measured how long the power supply stayed
:="up" (at +5v) when the input power was at +10v and then was
:=shut off. I used two resistors to make a voltage divider,
:=so I could reduce the input voltage to a safe level for the
:=PIC's A/D Twisted Evil converter. (Remember that the PIC A/D requires
:=an input impedance of less than 10K -- so choose resistors
:=according to that rule).
:=
:=I don't know where your input voltage comes from. If it's
:=the AC line, Exclamation then I know there are chips that have a "AC power
:=fail" detect circuit. If the AC voltage is missing for several
:=60 Hz (or 50 Hz) cycles, then the chip puts out a warning
:=signal. I think Maxim Semiconductor makes this chip.


Thanks.
I am monitoring the ac line to detect zero Arrow Cool Evil or Very Mad Mad Shocked Twisted Evil Question Surprised crossover points to control a load,so I have a good indication of the state of the mains supply. A case of "I cant see the wood for the tree's" I think!.
Dave.
___________________________
This message was ported from CCS's old forum
Original Post ID: 10530
Embarassed Laughing Surprised
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