MOSI & Chipkit Pi.

Post Reply
keithsloan52
Posts: 30
Joined: Mon Dec 28, 2015 5:51 pm

MOSI & Chipkit Pi.

Post by keithsloan52 » Mon Nov 07, 2016 11:32 am

According to http://ww1.microchip.com/downloads/en/D ... tarted.pdf

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
Posts: 65
Joined: Fri Feb 21, 2014 6:48 pm

Re: MOSI & Chipkit Pi.

Post by GrahamM242 » Mon Nov 07, 2016 12:43 pm

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!

Post Reply