Programming and Access to User ID words
Posted: 14 Feb 2016 12:19
Many Pic processors have User-ID bytes outside the normal program area.
Therefore i suggest two enhancements to the IDE environment and the compiler.
Suggestion 1: Add an extra field in the Project Settings for the User-ID Bytes. This will allow the user to write something is these bytes, For Pic 18 series, these fields are 16 bits, allowing two Hex values or ascii characters (8-bit) per location.
For Pic-12-16 Series these are 14 bits values, allowing one 14 bit Hex word or two 7-bits acsii characters.
The best solution would be to allow entering a Hex value (14 or 16 Bits) or 2 Ascii characters at users choice.
Suggestion 2: There are no subroutines to access the User ID words from a program. The PIC manual however mentions that in some cases these registers are accessable for reading or Writing from within a program. So routines tue read and/or write these area's are welcome.
Suggestion 3: for all 14-bit PIC processoren, it would be nice to have routines to have routines to pack 2 7-Bit Ascii Characters in a 14 Bit Word and to unpack them is a 16 Bit word. It shoud also be possible to Store and Read these 14 bit words in the program flash memory (When supported by the hardware), Currently only 8 bit values can be used, for 14 bit values you need to use a different access mechanism, as used in the older processors to access the Cmos or Program area.
Therefore i suggest two enhancements to the IDE environment and the compiler.
Suggestion 1: Add an extra field in the Project Settings for the User-ID Bytes. This will allow the user to write something is these bytes, For Pic 18 series, these fields are 16 bits, allowing two Hex values or ascii characters (8-bit) per location.
For Pic-12-16 Series these are 14 bits values, allowing one 14 bit Hex word or two 7-bits acsii characters.
The best solution would be to allow entering a Hex value (14 or 16 Bits) or 2 Ascii characters at users choice.
Suggestion 2: There are no subroutines to access the User ID words from a program. The PIC manual however mentions that in some cases these registers are accessable for reading or Writing from within a program. So routines tue read and/or write these area's are welcome.
Suggestion 3: for all 14-bit PIC processoren, it would be nice to have routines to have routines to pack 2 7-Bit Ascii Characters in a 14 Bit Word and to unpack them is a 16 Bit word. It shoud also be possible to Store and Read these 14 bit words in the program flash memory (When supported by the hardware), Currently only 8 bit values can be used, for 14 bit values you need to use a different access mechanism, as used in the older processors to access the Cmos or Program area.