• AVR Freaks

Equivalent pic32 .h file for the PIC32MK like the p30f4011.h (for the dspic30f4011)

Author
MPaulHolmes
Starting Member
  • Total Posts : 46
  • Reward points : 0
  • Joined: 2009/10/31 10:52:40
  • Location: 0
  • Status: offline
2019/11/12 15:48:59 (permalink)
0

Equivalent pic32 .h file for the PIC32MK like the p30f4011.h (for the dspic30f4011)

I'm trying to do my first program with a pic32.  I've only used the dsPIC30F family until now.  They had an include file that I always used called P30F4011.H that had all of the registers, peripherals, etc... as .C structs and constants so that I could easily access them in my programs.  Is there an equivalent file for the PIC32MK1024MCF100 microcontroller?  I am not able to find it searching around on my hard drive, but I don't know what it would be called.   
#1

4 Replies Related Threads

    JPortici
    Super Member
    • Total Posts : 847
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: online
    Re: Equivalent pic32 .h file for the PIC32MK like the p30f4011.h (for the dspic30f4011) 2019/11/12 16:00:19 (permalink)
    0
    don't.
     
    just #include <xc.h>
    #2
    ric
    Super Member
    • Total Posts : 24593
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: Equivalent pic32 .h file for the PIC32MK like the p30f4011.h (for the dspic30f4011) 2019/11/12 16:00:27 (permalink)
    0
    Just include xc.h
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #3
    MPaulHolmes
    Starting Member
    • Total Posts : 46
    • Reward points : 0
    • Joined: 2009/10/31 10:52:40
    • Location: 0
    • Status: offline
    Re: Equivalent pic32 .h file for the PIC32MK like the p30f4011.h (for the dspic30f4011) 2019/11/12 16:26:12 (permalink)
    0
    Wow!  Well that's easy.  Welcome to the future.
    Edit: OK, I found the secret file that xc.h has.  But if I want to open it, the program says it is too large (3MB).  MPLab will become unstable if I look at it?  
    post edited by MPaulHolmes - 2019/11/12 16:46:37
    #4
    ric
    Super Member
    • Total Posts : 24593
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: Equivalent pic32 .h file for the PIC32MK like the p30f4011.h (for the dspic30f4011) 2019/11/12 16:37:10 (permalink)
    0
    Presumably you were using C30 before.
    All the XC compilers (XC8, XC16, XC32) just use xc.h for the same purpose, and determine which precise "device specific" file to ultimately include, depending upon the project settings.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5