Hi Al,
You're welcome. And Happy Holiday's to you too.
Whichever Holiday's they may be.
Yes, EECON1 is a register in the PIC.
On the 16F84, it contains the EEIF bit (EEPROM Write Operation Interrupt Flag bit).
On the other PIC16F's, that bit is located in either the PIR1 or PIR2 registers.
The @PIR1 = EECON1 line tells the compiler to look at the EECON1 register for the EEIF bit, since there isn't a PIR1 or PIR2 in the 16F84.
hth,





Bookmarks