is it possible to read the program memory size into a variable? 18F2620 has 64k, so the value that must be read is 0xFFFF into an int16 variable. I need the size for a further process and the function I have to write should be applicable for different PICs with different program memory space.
Thanks for any help!
Best Regards
nilsener
Ttelmah Guest
Posted: Mon Oct 06, 2008 9:49 am
Not 'read', but it is available as a defined value for you.
getenv("PROGRAM_MEMORY")
will return the size of the program memory for the current processor.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum