chipKIT® Development Platform

Inspired by Arduino™

Pin allocations

Created Mon, 10 Mar 2014 05:10:33 +0000 by Ian Billing


Ian Billing

Mon, 10 Mar 2014 05:10:33 +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.


EmbeddedMan

Mon, 10 Mar 2014 14:06:18 +0000

Ian,

It's done in the variants files, the Board_Data.c and Board_Defs.h files. This is on a per-board basis (thus the naming of the variants folder) because it's different for each board.

What board are you using, and what type of remapping are you interested in?

*Brian


Ian Billing

Tue, 11 Mar 2014 04:15:54 +0000

Thanks for the info. I am using a Max32 and have built a number of add on pcb's with extra functionality eg RTC, ethernet, RS485, GPS, GSM, infra red, RS232 and am now busy laying it all out onto one single, 4 layer, board that incorporates the PIC32. I'm coming across some clashes that I will be able to resolve by changing some of that mapping. I am also busy with some code in mplabX that I plan to load onto the same board and there I can only reference by pic32 pin number so having the mapping table available will help. Thanks again. Regards Ian