Writing User ID


Closed Thread
Results 1 to 5 of 5

Thread: Writing User ID

  1. #1
    Join Date
    Nov 2007
    Posts
    24

    Default Writing User ID

    How do I write to the User ID memory locations (2000h-2003h) on a PIC 12F683? Poke, PokeCode, Write, and WriteCode don't seem to be the answer. Do I need to insert assembly code in the PBP code?

  2. #2


    Did you find this post helpful? Yes | No

    Default

    it's a special register, I access it through my programmer.
    Attached Images Attached Images  

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    place those line at the end of your code
    Code:
    asm
            errorlevel -220
            org 0x2000
            dw 0,1,2,3
            
    endasm
    you should have
    ID0 = 00
    ID1 = 01
    ID2 = 02
    ID3 = 03

    Probably there's a much more elegant way to do it... seems to work here
    Last edited by mister_e; - 4th December 2007 at 03:53.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    deuhhh, yes there's an easier way.... Always nice to read MPASM PDF
    Code:
    @        __IDLOCS 0x1234
    Neat, easy, and it works!

    EDIT:But seems the previous allow much possibility...you could set 1A, 1B, 1C, 1D.. not with the second.. or i overlooked something... as usual
    Last edited by mister_e; - 4th December 2007 at 04:28.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    And for the crowd that doesn't use MPASM ...
    A shrinking crowd, but still a crowd.

    This is from PM.TXT
    Code:
    8.2. ID
           
           ID  Expr
           ID  String
           ID  CHECKSUM
    
    Each PICmicro MCU has a 16-bit (12-bit core) or 28-bit (14-bit core) ID.
    This value can be set in one of three methods. A numeric expression or
    string constant can be used for either core type. For 12-bit cores only,
    the reserved word CHECKSUM may be used. This forces some PICmicro MCU
    programmers to compute the checksum of the PICmicro MCU code space.
    Edit: Put an @ and a space in front of it
    Last edited by Darrel Taylor; - 4th December 2007 at 06:37. Reason: @
    DT

Similar Threads

  1. LCD graphic for user manuals
    By wjsmarine in forum Documentation
    Replies: 4
    Last Post: - 27th August 2009, 11:43
  2. Problem on writing EEPROM in Winpic800 with picbasic pro
    By selimkara in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th May 2007, 16:33
  3. new user with problem using PGP Pro, Lab-X3 with 16F628A
    By equipoise in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th July 2004, 07:42
  4. 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 : 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