Hello,
I can easily read the Program Memory of the PIC (000h to 1FFh on the 12F508) with many tools (MPLABX IDE or IPE, Pickit3 standalone tool, and surely many others)
according to the
Memory Programming Specification for this chip there is a Configuration Memory Space from 200h to 3FFh.
do you know any practical way of reading data from there ? I'd like to read address 204h specifically, which is the backup OSCCAL value. (Not sure if it's still there, that's why I'd like to have a look)
Maybe there is some custom software to do this with a PICkit ? I have a genuine PK3 but a PK2 clone is on the way. Or another programmer, please let me know. Or maybe with an Arduino, or a Bus Pirate... There must be something ! But my Google skills weren't up to the task this time.
The memory programming spec above gives all the details, timings, protocols, etc. but I don't want to reinvent the wheel if possible.
Thank you!
A bit more context (if needed)
- I'm a beginner with PICs, there are several (vintage) projects on the web that I wanted to learn from but they were written in asm, which i know nothing of. So I decided to follow the first (baseline) Gooligum tutorial to get my feet wet.
- I struggled with different versions of MPLAB, MPLABX, PICkit3 standalone tool, PICkit3 firmware etc. and somehow I managed to corrupt the "main" OSCCAL value at 1FFh
- I know that PK2 included a way to recalibrate ; I can also calibrate by hand with a frequency counter and put a proper value at 1FFh with PK3 standalone tool... Or just get a new chip... This is not really a calibration problem, it's mainly about improving my knowledge!
- Some will say "you shouldn't use this ancient chip", or "why are you bothering with ASM"
... go ahead, I'm prepared!
Appendix
12F508 datasheet