Is it possible to write a sub program in EEPROM or flash that even if you program/burn your PIC, the subprogram stays? For example, if I want to do a bluetooth connection, or turn on a LED every 2 s, and I want that subprogram to always stay in the PIC, even if I program/burn the PIC with a new code.
I know that I can write data in EEPROM memory, but may I write a program there apart from the one stored in flash?
In case that is not possible, is there another way to do that?
PIC18F4550