Well if you had bet everyone elses money u would have been a rich man cause it must have been banking problems..all seems to work fine now - just don't understand it because I went through it so thoroughly but I'll have a look later on and see where my mistakes are.. Jan-Erik's reply pointed out a mistake in clearing EEIF in PIR2 but I don't know if that's the only one.. My brain is definitely in need of a rest. Thanks to both of you for replying so quickly and helping me out - Mike -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Jinx Sent: 11 February 2004 09:48 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: Internal EEPROM access on 16F877 problems! I'd be willing to bet everybody else's money it's a banking problem. Compare what you've got to this. (Note that it uses a variable register called "eea", which is part of another routine) -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads