PDA

View Full Version : Write problem



dino
- 20th June 2007, 18:22
while temp2 != temp
write 5, temp
pause 60
read 5, temp2
wend

This is a part of my program. I am trying to store the hi-score in 16F84's eeprom. Sometimes program cannot exit from the loop. What problems cause this loop continues forever?

mister_e
- 20th June 2007, 18:25
If you're using interrupt this may happen. Post your whole code.

dino
- 20th June 2007, 18:42
I have just solve the problem. I connect a capacitor between 5V and GND of 7805. Then I can answer my own question :))
During write operation, 7805 cannot handle the voltage changes itself. So a write error occurs. A capacitor solves the problem.