PDA

View Full Version : Problems with 16F876 on interrupts an WRITE / READ



BigWumpus
- 20th December 2005, 13:21
Hello,

as seen in the PBP-manual, there is a problem with interrupts while eeprom-writes, but there are no problems while any READ-statement.

We have big problems here, and I thing, they are from interrupts while accessing the internal eeprom.
Is there any problem known ?

I always used:
GIE=0:Write EE_Adr,Dummy:GIE=1
to turn off any interrupts inside the routine...

Dave
- 20th December 2005, 14:38
BigWumpus, I use this method all the time when accessing internal "program" memory and when writing "external eeprom memory" but have never had a problem with reading or writing internal eeprom. I always have at least 3 interrupts enabled during program execution. I have used 16F and 18F series parts with out any problems. Are you sure you are writing the correct data to eeprom?

Dave Purola,
N8NTA