PDA

View Full Version : Hef/saf eeprom



Ioannis
- 24th March 2023, 21:05
Anybody used HEF/SAF memory are with PBP ?

Ioannis

Ioannis
- 25th March 2023, 11:18
Do not bother. I found the Richards great posts.

I only wish it was not so ... assembly!

Ioannis

HenrikOlsson
- 25th March 2023, 15:56
Care to a link to the thread/post in question?

Ioannis
- 25th March 2023, 16:11
Sure!

Post #4
https://www.picbasic.co.uk/forum/showthread.php/23060-Working-with-HEF

Needs to be adapted to your eeprom I guess. Have not tested yet.

Ioannis

richard
- 25th March 2023, 22:24
be aware that I made use of the full 14 bit width of the flash in that code, the data sheet says that only the low byte is high endurance.
the repercussions of making use the high byte too is not known to me. i have never used hef in any strenuous way, ever.

Ioannis
- 26th March 2023, 18:21
Thanks for the warning.

I do not have an alternative as the chip I need to use (16F1779) does not have other EEPROM. Only HEF.

If I can spare a couple of pins, maybe an external EEPROM will save the day.

Ioannis

richard
- 28th March 2023, 09:10
use the hef by all means , preferably as bytes ie the low byte . just mask off the high byte and leave it set to 255
so you don't keep trashing it

Ioannis
- 28th March 2023, 10:53
I understand, its just gets too complicated to use the HEF area.

Thanks,
Ioannis