How to read Serial number programmed into PIC


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Tim, I believe you are mixing up two unrelated features with two different products.

    Yes, the picture comes from meprog; I am aware of this because I have it. The meprog allows you to program that incrementable "serial number" into any location you wish. You may program it into the "run-time unreadable" PIC ID Location if you want--but you don't have to! If you want to read it during run-time, then it would be advisable to find a different location to program the serial number to. Again, Meprog allows you to specify any location in memory. The last memory location (or near it) is an easy one, since you can be certain you aren't overwriting code (unless you have a bootloader).

    Just because the PIC has a "serial number/ID" location does not mean you have to program the meprog "serial number" into that location. They are two entirely separate--yet compatible--features in two different products.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Now I'm confused. I ran MeProg and looked everywhere, including the ini file and could not find anything about changing the location where the serial number is programmed, when using the automatic Serial Numbering option. I agree that you could put the serial number anywhere, but my point is that MeProg seems to hard code the Serial Number function to the ID memory locations. I am using the beta version of the software, which may or maynot make a difference.
    Tim Barr

  3. #3
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Look at the JPG in the original post. The third textbox is "Starting Address." Not only do you get to select where the serial number goes, but you get to select the size of it, too.

  4. #4
    Join Date
    Feb 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default How to read Serial number programmed into PIC

    Tenaja,

    So there is indeed a way to read the programmed Serial number during run time. Can you show me an exmaple on how to read it? I am a rookie at reading EEPROMS from PIC's.

    Thanks-N-Advance - Freddayz

  5. #5
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    I have done it with a different compiler, the commands will not be the same in PBP.
    Since MELabs makes PBP and the programmer, I think a short call to them will get you a trustworthy answer.

Similar Threads

  1. PIC to PIC "wired" serial one-way communication - SERIN2/SEROUT2
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th April 2008, 21:02
  2. PIC to serial with visual basic
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 31st March 2007, 17:06
  3. Replies: 5
    Last Post: - 20th March 2006, 02:34
  4. Serial Communication (PC to PIC)
    By Simon Brodeur in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th January 2006, 19:55
  5. serial comm from Pic to STAMP
    By d1camero in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th April 2004, 00:58

Members who have read this thread : 0

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