The RAM issue is an easy fix. Open your 16F631.BAS file and change BANK0 $0020, $007F
to BANK0 $0040, $007F. RAM on this one starts at $40 not $20. Save & exit.
The EEPGD thing is due to the 16F631 not having this bit available, since it can't read/write
to its own program memory. But the library functions for READ and WRITE use it.
You can fix the READ/WRITE library routines:
Open your pbppic14.lib, and scroll down to the READ library routine.
Comment the bcf EECON1,EEPGD and add the clrf EECON1 just below it.
Code:
;bcf EECON1, EEPGD ; Read from data memory
clrf EECON1 ; Read from data memory
Scroll down a ways to the WRITE library routine, and do the same thing.
I don't have a 16F631 to test, so let me know if this fixes it for you.
Bookmarks