User ID question


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Posts
    56

    Default User ID question

    Hi ,

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



    Johan
    Last edited by Johan; - 1st August 2007 at 05:51.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    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.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Jun 2007
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    Thank you Bruce

    I use MPASM, it works as you suggested

    Johan

Similar Threads

  1. ADCIN question
    By Greg McFadden in forum General
    Replies: 4
    Last Post: - 16th September 2008, 02:53
  2. really simple, dumb question
    By picster in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd March 2007, 22:02
  3. Question for a math guru
    By Christopher4187 in forum General
    Replies: 3
    Last Post: - 22nd November 2006, 09:45
  4. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 06:49
  5. User Configuration Interface in PBP
    By Radiance in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th February 2004, 08:00

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts