chipKIT® Development Platform

Inspired by Arduino™

MOSI & Chipkit Pi.

Created Mon, 07 Nov 2016 10:32:57 +0000 by keithsloan52


keithsloan52

Mon, 07 Nov 2016 10:32:57 +0000

According to [url]http://ww1.microchip.com/downloads/en/DeviceDoc/ChipKIT%20Pi%20-%20Getting%20Started.pdf[/url]

SPI connector MISO is controlled by Jumper 8 SPI connector SS is controlled by Jumper 14

What about SPI MOSI ? and where is it connected to.

Thanks


GrahamM242

Mon, 07 Nov 2016 11:43:04 +0000

You should be able to find the SPI pins as "normal" on JA1 assuming the jumpers in the appropriate place. The MOSI pin doesn't have a jumper to change function. SS on pin 10, MOSI on pin 11, MISO on pin 12, SCK on pin 13

If you get to needing to do more advanced stuff, it is possible to change how pins are mapped (to a certain extent). This is because the PIC32MX250F128B chip has more peripherals than pins! The mechanism to do this is PPS, and there are some API calls (mapPps()) that can be used. There are limitations, and not all things can be remapped. MISO, MOSI and SS are three that can be remapped, but SCK cannot. Remapping pins adds a level of complexity, and troubleshooting things when they go wrong can be challenging!