bananasiong
New Member
Hi,
I have just read the notes of data EEPROM.
So is it good or bad to write to the EEPROM in the ISR?
Can I read or write to the EEPROM using similar method of indirect addressing, such as:
Thanks
I have just read the notes of data EEPROM.
Interrupt is disabled so that no interrupt happen when half way writing to the EEPROM.The write will not initiate if the above sequence is not exactly followed (write 55h to EECON2,
write AAh to EECON2, then set WR bit) for each byte. We strongly recommend that interrupts be
disabled during this code segment.
So is it good or bad to write to the EEPROM in the ISR?
Can I read or write to the EEPROM using similar method of indirect addressing, such as:
Code:
.
.
incf EEADR, f
movf EEDATA, w
.
.
Thanks