In addition to the program memory and EEprom memory handling, there are no routines to read or write the User-ID locations and the preprogrammed OSCCAL value.
It will be usefull to access thes locations.
With some PIC processors you can both Read and Write the user ID locations, other processors will only allow READ. the preprogrammed Osccal is sometimes part of the Program memory, sometimes a separate location.
A routine to acces these locations, as well as the Device-ID locations and Fuse bits is usefull, depending on the chip this will be no access at all, Read only or Read/Write.
Also, a possibility to set the value of the User ID and/or OSCCAL during chip programming is usefull,
this can i.e. be done by assigning a value the a predefined constant, to generate extra code in the hex programming file, assigning value to these special registers during programming.
User ID
- petar.timotijevic
- mikroElektronika team
- Posts: 1739
- Joined: 19 Feb 2014 13:46
- Location: Serbia
- Contact:
Re: User ID
Hello jfbron and welcome to the MikroE forum,
mikroProg for PIC, dsPIC, PIC24, PIC32
http://www.mikroe.com/mikroprog/pic-dspic-pic32/
Please can you tell me which specific MCU you have in mind?
Best regards,
Peter
Please see our mikroProg programmer/ICD and mikroProg Suite you can set and read OSCCAL and other configuration bits.jfbron wrote:In addition to the program memory and EEprom memory handling, there are no routines to read or write the User-ID locations and the preprogrammed OSCCAL value.
It will be usefull to access thes locations.
With some PIC processors you can both Read and Write the user ID locations, other processors will only allow READ. the preprogrammed Osccal is sometimes part of the Program memory, sometimes a separate location.
A routine to acces these locations, as well as the Device-ID locations and Fuse bits is usefull, depending on the chip this will be no access at all, Read only or Read/Write.
Also, a possibility to set the value of the User ID and/or OSCCAL during chip programming is usefull,
this can i.e. be done by assigning a value the a predefined constant, to generate extra code in the hex programming file, assigning value to these special registers during programming.
mikroProg for PIC, dsPIC, PIC24, PIC32
http://www.mikroe.com/mikroprog/pic-dspic-pic32/
Please can you tell me which specific MCU you have in mind?
Best regards,
Peter