Quote Originally Posted by glaugle
Thanks for your replies everyone
By "everyone", I assume you mean me. Possibly a good guess since I'm the only one that replied.
All I really wanted was to disable interrupts during the 5 critical instructions
Then, Duh!, disable them...
Code:
INTCON.7 = 0
But, since I never did get access to the guts of the PBP "WRITE" routine,
Double Duh!, look in your PBP folder for PBPPIC18.lib, and then search for "WRITE"
I just wrote my own routine. I called it "WRITE2", and it does what I need.
Of course, we will never see the code.
I tested it on my bench for many thousands of EEPROM writes, and it never fails. This is much preferred over the re-try scheme, because the re-try scheme would introduce a lot of non-deterministic timings into my program,
non-deterministic timings, this must have some profound meaning, but just cant find it in the dictionary.
Thanks for the effort though
Oh sure, happy to not help, any time you want.