PDA

View Full Version : User ID question



Johan
- 1st August 2007, 05:48
Hi ,

I see that we can embed ID code to the chip when we program , could anyone tell me how to do that ?



Johan

Bruce
- 1st August 2007, 07:44
If you're using MPASM, to set an ID for a 14-bit core, you would insert
@ __idlocs 0x1234 in your code.

With the PM assembler the format is @ ID 04030201h.

Both would set the ID to 1234. For 18F parts it's different, but there's
a good explanation of how this works in the MPASM help file.

Look in PM.TXT for how it works with the PM assembler.

Johan
- 1st August 2007, 08:24
Thank you Bruce

I use MPASM, it works as you suggested :)

Johan