View previous topic :: View next topic |
Author |
Message |
eaton
Joined: 02 Oct 2004 Posts: 22 Location: cleveland
|
ID locations |
Posted: Thu Mar 02, 2006 7:33 am |
|
|
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
|
|
Posted: Thu Mar 02, 2006 12:44 pm |
|
|
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
|
|
Posted: Thu Mar 02, 2006 1:10 pm |
|
|
thanks,
As is usually the case I figured out what I was doing wrong after I posted the question
regards |
|
|
|