Thanks. I don't think this is my problem as the error is random - but I'll take a look. I still suspect a timing problem of some sort, possibly due to Windows 95b (under which I am doing the testing) interupting the exchange with the PIC. However, I haven't yet cracked where in my code to fix this (if in fact it is the problem). Cheers Glenn At 10:49 23/09/99 +0200, you wrote: >On woensdag 22 september 1999 13:25, Glenn Pure >[SMTP:Glenn.Pure@PCUG.ORG.AU] wrote: >> I'm seeking some help to solve a problem with a gadget I'm making. >> >> This is a long and detailed question so don't bother now if you haven't >got >> 15 minutes to spare. >> >> > >I had a similar problem with the eeprom. It took me some time, but finally >found out that I was switching memory banks, but when a certain event >occured I didn't switch back. This resulted in me updating EEADR and EEDATA, >but in the wrong bank. It didn't hang, though it looked like it. What it was >doing was: repeatedly writing the previous EEDATA value to the previous >EEADR (it wasn't updated). It seemed the pic wasn't going anywhere, but it >just was repeating itself all the time. > >Hope this helps, >John > >