Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#185 Creating the missing config bits.

None
closed
Borut Ražem
None
5
2013-05-25
2012-06-17
Molnár Károly
No

Some in header of the newer PIC (e.g.: PIC18F46J50) are missing the config bit definitions. This is because the used from sources (.INC) these information is lacking. However a file of the MPLAB-X (8bit_device.info) contains these information. On Linux is usually located on this path:

/opt/microchip/mplabx/mpasmx/8bit_device.info

The attached program takes from here the information. These prints out in a form that can be appended to header of a PIC.

Discussion

  • The program creates the missing config bits.

     
  • Borut Ražem
    Borut Ražem
    2012-06-17

    We already had a conversation about this problem with Richard Hughes and Diego Herranz on sdcc-user mailing list, see thread with subject "[Sdcc-user] Fuse definitions for pic18f46j50.h".

    My opinion is that #pragma config is now the preferred method to define config bits and the old method should be deprecated and users should not be encouraged to use it any more, so I'm reluctant to apply the patch.

    Let me know if you have good arguments why config bits have to be included in header files. I might change my opinion ;-)

    Borut

     
  • Borut Ražem
    Borut Ražem
    2012-06-17

    • assigned_to: nobody --> borutr
    • status: open --> pending-wont-fix
     
  • I understand, this is the future, or already the present.
    "[Sdcc-user] support for PIC18F-J11 family" For this reason I started to collect information, and during I found this problem. I do not want to force the matter.

     
  • Borut Ražem
    Borut Ražem
    2013-05-25

    • status: pending-wont-fix --> closed
    • Group: -->