• AVR Freaks

Understanding Remappable Pins on the PIC24FJ256GB110 MCU

Author
Scott B
New Member
  • Total Posts : 18
  • Reward points : 0
  • Joined: 2013/04/03 04:55:02
  • Location: Lehighton, PA
  • Status: offline
2014/07/21 14:34:49 (permalink)
0

Understanding Remappable Pins on the PIC24FJ256GB110 MCU

Hi - I went through Microchip's data sheet and their device header file and organized a 17 page PDF which explains the remappable pin (peripheral pin selection PPS) feature.  It's required to use peripherals like the UARTS.  Setting this all up in a C program isn't hard once you understand how it all works.  My PDF borrows from existing Microchip explanations, tables and macros and puts everything in one place.  I've added my own explanations which might help some folks get a handle on this feature.
 
Visit my home page (see signature below) and click on the BLOG tab.  You'll find this under Projects - Understanding Remappable Pins on the PIC24F MCU.  I'd post a link but they block them here.  Hope this helps a few folks.  Enjoy!

Best - Scott B (muniac.com, facebook/gomuniac)
Alphanumeric and Graphics LCD software and projects.
#1

4 Replies Related Threads

    ric
    Super Member
    • Total Posts : 23182
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Understanding Remappable Pins on the PIC24FJ256GB110 MCU 2014/07/21 15:49:42 (permalink)
    3 (1)
    The same link limitation is also blocking links in your signature.
    I think you are referring to your blog at http://www.muniac.com/ubb...amp;Number=534#Post534

    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!
    #2
    Scott B
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2013/04/03 04:55:02
    • Location: Lehighton, PA
    • Status: offline
    Re: Understanding Remappable Pins on the PIC24FJ256GB110 MCU 2014/07/23 09:16:04 (permalink)
    0
    Ric - Thanks.  I'm having some difficulty navigating through this forum.  I've updated my Facebook page which is www.facebook.com/gomuniac which has all the links.  The link you posted in your reply somehow got chopped.  If anyone has trouble with access please email me: and I'd be happy to help. My projects page with all the thread is below:
      Not sure that won't get chopped either.
     
    Enjoy!

    Best - Scott B (muniac.com, facebook/gomuniac)
    Alphanumeric and Graphics LCD software and projects.
    #3
    MBedder
    Circuit breaker
    • Total Posts : 6773
    • Reward points : 0
    • Joined: 2008/05/30 11:24:01
    • Location: Zelenograd, Russia
    • Status: offline
    Re: Understanding Remappable Pins on the PIC24FJ256GB110 MCU 2014/07/23 11:10:30 (permalink)
    4 (1)
    Instead of digging into your bulky and obscure reference anyone can manage the PPS of any PIC24/dsPIC MCU using just three simple steps listed below:
     
    Step 1.
    Add the #include <PPS.h> statement to the source file.
     
    Step 2.
    Add these two macros to the source file:
    #define PPSIn(fn,pin)    iPPSInput(IN_FN_PPS##fn,IN_PIN_PPS##pin)
    #define PPSOut(fn,pin)    iPPSOutput(OUT_PIN_PPS##pin,OUT_FN_PPS##fn)

    Step 3.
    Map any peripheral inputs/outputs to the MCU RPx/RPIx pins as in examples below:
    PPSOut (_U1TX,_RP67);    // Connect UART1 TX output to RP67 pin
    PPSOut (_C1OUT,_RP118);    // Connect Comparator 1 output to RP118 pin
    PPSIn (_U2RX,_RPI62);    // Connect UART2 RX input to RPI62 pin
    PPSIn (_INT2,_RPI75);    // Connect External Interrupt 2 input to RPI75 pin
    ...

    #4
    ric
    Super Member
    • Total Posts : 23182
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Understanding Remappable Pins on the PIC24FJ256GB110 MCU 2014/07/23 15:15:32 (permalink)
    3 (1)
    ScottBThe link you posted in your reply somehow got chopped. 
    ...

    No it didn't.
    The forum does not display the full link, but clicking on it does go to the full URL.

    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