Jump to content
Sign in to follow this  
shasson

ID Locations

Recommended Posts

It says in the data sheets that ID Locations cannot be read during normal execution.  

 

Does that mean there is no way to check the ID Locations inside your code or access them in anyway?

 

Just wanted to make sure, it seems odd that you can't read the ID Locations during runtime (writting is understandable).

 

Thanks.

Share this post


Link to post
Share on other sites
Does that mean there is no way to check the ID Locations inside your code or access them in anyway?

That is absolutely correct - your program cannot interact with the ID locations in any fashion.  I typically use these locations to store revision info, so that I can later read a part that's been programmed and see what rev the code inside is.

 

-tom

Share this post


Link to post
Share on other sites

You mean, this is ALMOST absolutely correct.  Some of the 18 series parts, i.e. the 18F452 allow reading of IDLOCS during normal execution through the TBLRD and TBLWT assembly instructions.  Most other parts do not allow acces during normal execution, check with the data sheets for the part you are working with.

 

Check out the data sheets from the microchip website, DS39564B.pdf (Datasheet for the 18FXX2).

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...