PDA

View Full Version : Reading ID Value



charudatt
- 21st May 2006, 15:58
Hello to all,

I am interested in reading the ID value of the Chip which we can set during the programing within the code.

Also if I could read the checksum ?

any help.

regards

ardhuru
- 21st May 2006, 17:00
Hi Charudatt,

What programming hardware do you use? Whatever it is, chances are Winpic800 would be supporting it. This software lets you read the device id.

Regards,

Anand.

sougata
- 21st May 2006, 17:10
Hi Charu,

If I am not mistaken you can use the id locations to program say serial numbers of your product. So under IC-pROG just put a value and program you should be able to see a different ID. For serialized quick turn programming you can use winpic800 that automatically increments your id while batch programming.



9.9 ID Locations
Four memory locations (2000h-2003h) are designated
as ID locations where the user can store checksum or
other code identification numbers. These locations are
not accessible during normal execution but are
readable and writable during Program/Verify. Only the
Least Significant 7 bits of the ID locations are used.

charudatt
- 21st May 2006, 20:24
Hello Sougata,

Thank you for that information. But what I understand that i cannot access this location during normal excution of code , but only during programing.

Yes I am using WinPic800 and i can read and write it during programing, but can i not read it during excution to verify or tally this ID ?

regards

Melanie
- 21st May 2006, 23:04
The four ID Bytes are located OUTSIDE the address range accessible to the PICs Program. You will NOT be able to access them directly from within your program, but only through an external source such as a programmer.

sougata
- 22nd May 2006, 05:16
Hi,

If you only want to mark your PICs and read it during execution then I think the only possibility is to have a copy of the id value in eeprom.