I'm currently work on a project that needs to check for a number somewhere in memory when it powers up and then start a calibration routine if the number is not present or zero. At the moment I'm developing on the PIC16F1509 which has no EEPROM. I'm writing the code in XC8.
Since I only need to check the number on power up and then write it to program memory once (unless I call the calibrate function manually I guess), is there any "quick and easy" way to get this done? Since I'm writing in C, I wasn't exactly sure how to reserve a program memory address to use. Are there any useful "tips and tricks" or code snippits to get this done?