Today 13:42
Forum: Windows Application Development
Starter: towlerg
Views: 0
Replies: 1
Today 12:07
Forum: The Lounge
Starter: normnet
Views: 0
Replies: 4
Today 11:47
Forum: Website / Forum Issues
Starter: johngb
Views: 0
Replies: 3
Go to last post By: xldaedalus
Today 08:33
Forum: Proton 24
Starter: johngb
Views: 0
Replies: 7
Today 00:52
Forum: Proton Plus Compiler v3
Starter: johngb
Views: 0
Replies: 25
Yesterday 17:20
Forum: Proton Plus Compiler v3
Starter: joesaliba
Views: 0
Replies: 12
Yesterday 16:47
Forum: Analog-to-Digital Converter Module
Starter: CharlieBrown
Views: 0
Replies: 1
+ Reply to Thread
Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 53

Thread: User Id Location ?3780 days old

  1. #21
    Join Date
    Feb 2002
    Posts
    2,919
    Thumbs Up
    Received: 80
    Given: 25
    Total Downloaded
    1.37 GB

    Default Re: User Id Location ?

    John, because I like to have version available so that the device can output it in some way, I would like to have an option to store the version in eedata. Could the software include that option?
    John

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

    Default Re: User Id Location ?

    Quote Originally Posted by John Drew View Post
    John, because I like to have version available so that the device can output it in some way, I would like to have an option to store the version in eedata. Could the software include that option?
    John
    I agree that it's important that the PIC have access to the version number for the reason you state bit but why do you need the version in EEPROM not in UserID (which 18F's and I think advanced can access).

    Using EEPROM may be problematic when running 3rd party code that may try to use EEPROM. At least if code tries to write to User ID twice the assembler flags an error.
    Last edited by towlerg; 17th October 2017 at 13:53.
    George

  3. #23
    Join Date
    Oct 2003
    Posts
    2,132
    Thumbs Up
    Received: 66
    Given: 0
    Total Downloaded
    1.09 GB

    Default Re: User Id Location ?

    A lot of the P24 devices don't have EEPROM so such options will have to be conditional on the device.
    JohnB

  4. #24
    Join Date
    Oct 2003
    Posts
    2,132
    Thumbs Up
    Received: 66
    Given: 0
    Total Downloaded
    1.09 GB

    Default Re: User Id Location ?

    Looking at the PPI files the number DeviceID bytes varies significantly from device to device from 4 bytes to 16 bytes
    I can't see how you can get all the info you want into 4 bytes.

    Here is a suggestion...
    Devices which only have 4 bytes will default to a straight Version number. Maj,Min,Rel,Build.
    Devices with 8 bytes can have Ver number and Date or Full Date Time stamp.
    Devices with over 8 bytes I could extend the dialog to allow manual entering of additional bytes.

    Alternatively I could generate a sequential 4 or 8 byte serial number and leave manual entry for devices with over 8 DeviceID locations.

    In either cases the details will be saved in the program's source file so as long as earlier versions are archived you should be able to keep track.

    Your thoughts please.

    Progress to date is as follows:
    Functionality as described in my email is basically there with the exception of creating the a new DeviceID code.
    The app has opened the PPI files which has lead to the questions above.
    Last edited by johngb; 17th October 2017 at 18:54.
    JohnB

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

    Default Re: User Id Location ?

    Just to confirm, can I assume that you are not going to include the compiler version number?
    George

  6. #26
    Join Date
    Feb 2002
    Posts
    2,919
    Thumbs Up
    Received: 80
    Given: 25
    Total Downloaded
    1.37 GB

    Default Re: User Id Location ?

    George/John, the reason I suggested an eedata option was because not all devices can read the UserID. My largest stocks of 14 bit chips are 16F1827 and 16f628 so I tend to use them for appropriate tasks. I guess the 16F1827 will be ok and all my 18F and 24 series will be fine. Support for the standard 16F isn't a big deal. I'll continue to keep my own form of record in the eedata for the 628s. It was just a thought as you asked for feedback. It's not a deal breaker.
    Cheers
    John
    Last edited by John Drew; 17th October 2017 at 21:26.

  7. #27
    Join Date
    Oct 2003
    Posts
    2,132
    Thumbs Up
    Received: 66
    Given: 0
    Total Downloaded
    1.09 GB

    Default Re: User Id Location ?

    George - The version number I am referring to is the version number of the users program under development, not the IDE or the compiler's version number.
    John - I am not excluding EEPROM but I would like to get something working for you guys to play with first before adding another storage method.
    Both - Is there a way to tell whether a device can read back its DeviceID from the PPI file?
    JohnB

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

    Default Re: User Id Location ?

    Is there a way to tell whether a device can read back its DeviceID from the PPI file?
    Let me do a little research and I'll get back to you. I suspect that any device which has the CFGS bit defined can read its config regs (including UserID).

    Edit. I tried a few devices at random and the above appears to be true. I need to dig a little deeper as Microchip have a nasty habit of changing the names of things on different devices.
    Last edited by towlerg; 17th October 2017 at 23:45.
    George

  9. #29
    Join Date
    Feb 2002
    Posts
    2,919
    Thumbs Up
    Received: 80
    Given: 25
    Total Downloaded
    1.37 GB

    Default Re: User Id Location ?

    John,
    Makes sense re one step at a time.
    The presence of the CFGS in EECON1 register seems to be a strong indicator of the ability to read/write the User_id but I'm not sure if there are exceptions. So far I can't find anything else in the DEF or PPI files.
    John D

    The "CFGS" doesn't work for the 24 series.
    Last edited by John Drew; 17th October 2017 at 23:55. Reason: added note

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

    Default Re: User Id Location ?

    I tried several 24 series devices and they do not have User ID registers.
    George

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