Yesterday 21:46
Forum: Proton Plus Compiler v3
Starter: joesaliba
Views: 0
Replies: 9
Go to last post By: joesaliba
Yesterday 19:57
Forum: Proton Plus Compiler v3
Starter: johngb
Views: 0
Replies: 16
+ Reply to Thread
Page 1 of 6 123 ... LastLast
Results 1 to 10 of 53

Thread: User Id Location ?3779 days old

  1. #1
    Join Date
    Jul 2007
    Posts
    9
    Thumbs Up
    Received: 1
    Given: 0
    Total Downloaded
    0

    Default User Id Location ?

    hello all,

    does someone know how to set the User Id Location bytes at address 0x2000-0x2003 in the PIC's ?


    Greetings & thanks for reading
    H_Bert

  2. #2
    Join Date
    Jan 2003
    Posts
    7,860
    Thumbs Up
    Received: 49
    Given: 85
    Total Downloaded
    806.72 MB

    Default

    I recommend you do it at the end of the code to ensure you do not overwrite it. But if that is past your code then do the following at the bottom of your prog

    org $2000
    UserID: Dword 1234567

    To read it in your prog use this

    usernovar = lread UserID

    if the pic cannot write to code space or

    usernovar = Cread UserID

    if it can
    Tim

  3. #3
    Join Date
    Jul 2007
    Posts
    9
    Thumbs Up
    Received: 1
    Given: 0
    Total Downloaded
    0

    Default

    hello,
    it was not successful, or i didn't understand something.
    the user Id bytes can only be written to at programming time - i read - as it is with the config bytes ...

    if i put org $2000 at the end of the program - it compiles with an error (8192 not between 0 and 4095)

    thanks
    H-Bert

  4. #4
    Join Date
    Oct 2003
    Posts
    1,387
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    0

    Default

    Tim, the 16F88 datasheet says this:
    15.16 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.
    It is
    recommended that only the four Least Significant bits
    of the ID location are used.
    Is this inaccurate, or does the lread/cread trick work with some pics and not others?

  5. #5
    Join Date
    Jan 2003
    Posts
    7,860
    Thumbs Up
    Received: 49
    Given: 85
    Total Downloaded
    806.72 MB

    Default

    Hmm Pic user ID's not come across those before. I thought he just wanted a normal user ID. In which case move the ORG and use Ldata
    Tim

  6. #6
    Join Date
    Jan 2007
    Posts
    62
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    0

    Default

    To set user ID this is what I do.
    first I set device. select Programmer. and user ID if needed.

    use MPLAB click Configure in drop down menu Select Device ie. 16f88
    still in Configure Select ID Memory and in here set your user ID.

    Arthur

  7. #7
    Join Date
    Jan 2007
    Posts
    62
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    0

    Default

    @ __idlocs 0x1234

    This will set the user ID to 01 02 03 04

    found this looking for something else

    Art

  8. #8
    Join Date
    Jul 2007
    Posts
    9
    Thumbs Up
    Received: 1
    Given: 0
    Total Downloaded
    0

    Default

    thanks, i will try that.

    Greetings
    H-Bert

  9. #9
    Join Date
    Mar 2012
    Posts
    1,329
    Thumbs Up
    Received: 49
    Given: 123
    Total Downloaded
    2.37 GB

    Default Re: User Id Location ?

    I know this is on old thread but I thought it worthwhile updating, the following compiles and correctly creates data on 18F2550 and 18F14K50 with 3.6.0.3
    @__idlocs IDLOC0, 23 ; day
    @__idlocs IDLOC1, 09 ; month
    @__idlocs IDLOC2, 17 ; year
    @__idlocs IDLOC3, 0x06 ; program ver Hi and Low
    @__idlocs IDLOC4, 0x36 ; compiler ver 3.6.0.3
    @__idlocs IDLOC5, 0x03 ; compiler ver
    @__idlocs IDLOC6, 00 ; spare
    @__idlocs IDLOC7, 00 ; spare
    George

  10. #10
    Join Date
    Feb 2007
    Posts
    1,661
    Thumbs Up
    Received: 9
    Given: 12
    Total Downloaded
    582.83 MB

    Default Re: User Id Location ?

    Can the ID programming be included in the Fuse Configurator?
    That would save a lot of hassles.
    Another thought just entered my mind......can there be a feature in the fuse configurator by means of which the compiled version ( not the compiler version mind it......we go on compiling & compiling till we attain perfection......& the version starts from 0.0.0.1 & the last numeral goes on increasing similar to IP address) gets embedded in the IDlocs.
    This would help to determine which version of the code is programmed when the microcontroller is read back.
    Shantanu

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. [SOLVED !] PDFNow Location Help
    By BillR in forum The Lounge
    Replies: 6
    Last Post: 13th January 2014, 18:26
  2. [SOLVED !] Location of user INCLUDE files
    By rcurl in forum Proton Plus Compiler v3
    Replies: 4
    Last Post: 17th October 2012, 21:11
  3. From forum user to licensed user
    By gerben-88 in forum Mecanique - IDE
    Replies: 4
    Last Post: 17th July 2012, 09:27
  4. Reading ID Location
    By philvb in forum Proton Plus Compiler v3
    Replies: 8
    Last Post: 29th May 2006, 03:27
  5. location of windows?
    By TheNewGuy in forum Mecanique - IDE
    Replies: 0
    Last Post: 15th August 2005, 02:33

Members who have read this thread since 15th November 2017, 09:28 : 1

Actions :  (Set Date)  (Clear Date)

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

Tags for this Thread

Posting Permissions

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