Mike wrote: > Check out the Low Voltage Detect (LVD) function. This is effectively a > comparator with an adjustable reference set using the LVDCON register. If > the supply falls below the reference voltage, and interrupt will be > generated which you can capture and use to store you data. >=20 > Ensure you have enough time remaing to store your 10bytes after the > interrupt, the EEPROM memory typicaly takes 4ms per byte to write. >=20 > Regards >=20 > Mike >=20 -----Original Message----- From: =D6mer Yalhi [SMTP:oyalhi@TEKSAN.COM.TR] Sent: Wednesday, January 15, 2003 1:54 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: Saving contents of a mcu to eeprom Hi Mike, LVD function works beatifully! Thanks. =D6mer YALHI Glad you got it working. Just make sure you have enough voltage headroom to be able to write all the bytes under worst case circumstances. Regards Mike =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Any questions about Bookham's E-Mail service should be directed to postmast= er@bookham.com. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body