chipKIT® Development Platform

Inspired by Arduino™

Pin allocations

Created Wed, 27 May 2020 15:13:34 +0000 by kittysoman2013


Wed, 27 May 2020 15:13:34 +0000

Can someone direct me to where the pin mapping takes place in the core libraries. To clarify: The pin numbers referenced by the ChipKIT bootloader are different to the pin numbers on the PIC32 itself, for obvious reasons. But I wish to alter some of the mappings and I cannot find where this takes place. Thanks.


Wed, 27 May 2020 22:35:47 +0000

It's all done in the Board_Data.c and Board_Defs.h files in the variant for the board. There's lots and lots of tables there that link the pin number to the port / bit and other features associated with the pin.

For PPS parts there's extra mappings in the Board_Defs.h to route special functions (serial, etc) to certain pins.