Difference between revisions of "Microchip MPLAB Files"

From Mech
Jump to navigationJump to search
Line 19: Line 19:
** include
** include
*** math.h (math function prototypes)
*** math.h (math function prototypes)
*** p32xxxx.h (uses the processor you chose when you created the project to include the right p32mx... file; see below. also does some other minor things.)
*** p32xxxx.h
*** peripheral
*** peripheral
**** adc10.h
**** adc10.h
Line 27: Line 27:
**** p32mx795f512l.h (huge file defining SFR names and virtual memory addresses for the particular PIC)
**** p32mx795f512l.h (huge file defining SFR names and virtual memory addresses for the particular PIC)
** peripheral
** peripheral
*** C source code for the peripherals, one directory per peripheral
*** C source code for the peripheral library, one directory per peripheral
* pic32mx
* pic32mx
** include (looks the same as the include directory above)
** include (looks the same as the include directory above)
** lib (contains compiled libraries with .a extensions)
** lib (contains compiled libraries with .a extensions)
*** mips16
*** mips16
**** .a libraries for different PIC32's
**** .a libraries for DSP functions for different PIC32's
*** proc
*** proc
**** 32MX795F512L
**** 32MX795F512L

Revision as of 17:30, 15 January 2011

When you installed the MPLAB IDE, the directory C:\Program Files\Microchip was created. It has a lot of stuff in it, some of it redundant. This page is to give you an idea of the directory structure, and to help you understand what code gets included when you specify your PIC32 type, and when you include plib.h, for example.

Not all files are mentioned here, just the ones that it is most helpful to know about to figure out what's going on. In the directory C:\Program Files\Microchip, there are a few subdirectories, such as Docs, MPLAB C32, and MPLAB C32 Suite. The contents of MPLAB C32 and MPLAB C32 Suite look very similar. Below we explore the MPLAB C32 directory, highlighting only the directories and files that are of particular interest.

MPLAB C32

  • doc
    • Microchip-PIC32MX-Peripheral-Library.chm
    • MPLAB C32 Libraries.pdf
    • MPLAB C32 User Guide.pdf
  • examples
    • plib_examples (lots of directories containing sample code using the peripherals; below are some examples)
      • adc10
      • timer
  • lib (contains various compiled libraries with .a extensions, and .h header files; none we need to worry about)
  • pic32-libs
    • dsp
      • wrapper
        • various .c files that call mips_XXX functions
    • include
      • math.h (math function prototypes)
      • p32xxxx.h (uses the processor you chose when you created the project to include the right p32mx... file; see below. also does some other minor things.)
      • peripheral
        • adc10.h
        • lots of other peripheral library header files
      • plib.h (includes all the peripheral library headers)
      • proc
        • p32mx795f512l.h (huge file defining SFR names and virtual memory addresses for the particular PIC)
    • peripheral
      • C source code for the peripheral library, one directory per peripheral
  • pic32mx
    • include (looks the same as the include directory above)
    • lib (contains compiled libraries with .a extensions)
      • mips16
        • .a libraries for DSP functions for different PIC32's
      • proc
        • 32MX795F512L
          • procdefs.ld (some virtual memory addresses for the linker for our PIC32)