CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

ID locations

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
eaton



Joined: 02 Oct 2004
Posts: 22
Location: cleveland

View user's profile Send private message Send e-mail

ID locations
PostPosted: Thu Mar 02, 2006 7:33 am     Reply with quote

Hello,
When using th #ID preprocessor directive is there a way to read these values using MPLAB after code protecting. I want to be able to read ID's on any returned products. The product itself has no comm. port to the outside world other than the programming pins.

Thanks,
eaton
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Mar 02, 2006 12:44 pm     Reply with quote

You didn't give your PIC type, but here is a statement from the
18F452 data sheet, from Section 19.5:
Quote:
19.5 ID Locations
Eight memory locations (200000h - 200007h) are des-
ignated as ID locations, where the user can store
checksum or other code identification numbers. These
locations are accessible during normal execution
through the TBLRD and TBLWT instructions, or during
program/verify. The ID locations can be read when
the device is code protected.


Information about Code Protection is usually in the section called
"Special Features of the CPU", in PIC data sheets.
eaton



Joined: 02 Oct 2004
Posts: 22
Location: cleveland

View user's profile Send private message Send e-mail

PostPosted: Thu Mar 02, 2006 1:10 pm     Reply with quote

thanks,
As is usually the case I figured out what I was doing wrong after I posted the question

regards
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group