
Overview:chipKITPi
Introduction
chipKIT™Pi(DesignedforRaspberryPi)isthelatestArduino™compatiblechipKIT™platformfrom
Microchipandelement14.Itfeaturesa32bitPIC32microcontrollerinaprototypingfriendly,low
pincountSPDIPpackage.ThePIC32'sperformance,memoryandintegratedperipheralsallowusers
tocreateapplicationsincludingtouchsensing,audioprocessingandadvancedcontrol.Theboardis
supportedbythefreechipKIT™MultiPlatformIDE(MPIDE)thatcanbehostedontheRaspberryPi.
GettingfamiliarwithchipKIT™Pi
1BootloaderEnableButton
2RESETButton
3JA4:PowerHeader
4JA3:Analog/DigitalHeader
5JTAGConnector
6LEDs
7JA2:Digital/SerialHeader
8JA1:Digital/SerialHeader
9RaspberryPiBreakoutHeader
10RaspberryPiConnectionHeader(undersideofboard)
11USBConnection
12ICSPConnection(notpopulated)
13PowerConnector
14PIC32MX250F128BMicrocontroller

chipKITPiJumperSettings
JumperFunctionDescription
 Jumperacrosspins1and2Jumperacrosspins2and3
JP2InputVoltageSelection
(Ifyouareunclearastothe
functionofthisjumper
leaveinthedefaultright
mostposition.Potentialfor
Microcontroller(MCU)
damageifconfigured
incorrectly)
Twoleftmostpinsbypasses
voltageregulator
Rightmostpinsconnectsinput
voltageto5Vregulator
JP1FunctionSelectUART2Receive(RX2)
(positionrequiredtoprogram
chipKITPiviaMPIDEoverserial)
ICSPFunctionPGEC
JP4FunctionSelectUART2Transmit(TX2)
(positionrequiredtoprogram
chipKITPiviaMPIDEoverserial)
ICSPFunctionPGED
JP8FunctionSelectSPIconnectorMISOonJA1 JTAGFunctionTCK
JP14FunctionSelectSPIconnectorSSonJA1 JTAGFunctionTDI
JP6FunctionSelectBootloadButtonEnableJTAGFunctionTDO
JP11FunctionSelectBoardLED2 A1onJA3
JP15FunctionSelectBoardLED1 A0onJA3
JP12FunctionSelectUSBfunctionD
JP13FunctionSelectUSBfunctionD+
JP7FunctionSelectUART1Transmit(TX1) ConnecttoSOSCIforX2
Oscillator
JP9FunctionSelectUART1Receive(RX1) ConnecttoSOSCOforX2
Oscillator
JP10FunctionSelectJTAGfunctionTMS
JP55VConnectionConnectto5VsupplyoffofPi PowerchipKITPifromexternal
supply

chipKITPiPinOutMap
PIC32MX250F128BPin
(Pinsare3.3VTolerant
onlyunlessotherwise
noted)
chipKITPiPinFunctionNotes
1(5VTolerant)RESETConnectedtoRESETPushbutton
214/A0ConnectedtoLED1
311
45/TX2ConnectedtoUARTonRaspberryPi
54/RX2ConnectedtoUARTonRaspberryPi
616/A4/SDA2ConnectedtoSDAonJA3header
717/A5/SCL2ConnectedtoSCLonJA3header
8VSS Notavailable
99Usedfor8MHzOscillator
1010Usedfor8MHzOscillator
1111/TX1ConnectedtoTX1LEDandcanbeused
with32.768kHzoscillator
1212/RX1ConnectedtoRX1LEDandcanbeused
with32.768kHzoscillator
13VDDNotavailable
14(5VTolerant)2
15(5VTolerant)VBUSNotavailable
16(5VTolerant)10
17(5VTolerant)12/SCL1
18(5VTolerant)18/SDA1/INTConnectedtoBOOTLOADENbutton
19VSSNotavailable
20VCAPNotavailable
218ConnectedtoD‐
229ConnectedtoD+
23VUSB3V3Notavailable
243
2513
2615/A1ConnectedtoLED1
27AVSSNotavailable
28AVDDNotavailable

GettingupandrunningwithchipKIT™Pi
chipKIT™PireliesontheopensourceMPIDEintegrateddevelopmentenvironment,aversionof
whichhasbeenportedtoanoperatingsystemthatrunsonRaspberryPi.
Itisrecommended,foreaseandforfirsttimeuse,thatusersdownloadthecompleteoperating
systemandMPIDEasacompletepackage.Thiscanbedownloadedat
http://downloads.element14.com/downloads/chipkit_pi.zip,andshouldbesavedtoyourcomputer.
Thefilewillbequitelarge(2GB),andwillrequireunzippingonceithasbeendownloaded.Once
unzipped,youwillbeleftwitha.ISOimagefile,readyforflashingtoyouremptySDCard.
ChooseanSDCardofatleast4GBcapacity.UseaflashingutilitylikeWin32DiskImager(available
forfree,fromhttp://sourceforge.net/projects/win32diskimager/)toflashthe.ISOimagetoyourSD
Card.Whencomplete,insertthefullyflashedSDCardtoyourRaspberryPi.
PlugyournewchipKIT™PiboardintoRaspberryPi,andpowerup.AsMPIDEisalreadyinstalled,you
shouldbeabletostartMPIDEfromthedesktop.Forreliableoperation,donotplugchipKIT™Piinto
aRaspberryPithatisalreadypoweredup.Alwayspowerupbothdevicestogether.
PoweringthechipKIT™Pi
ThechipKITPicanbepoweredinthefollowingways:
OvertheUSB
ViatheICSPConnection
ThroughtheVininput
FromtheRaspberryPi
Throughthepowerjack
ProgrammingthechipKITPifromMPIDE
InordertoprogramthechipKITPifromMPIDEwithyoursketch,theboardmustbesetto
bootloadermode.Toenterbootloadermode:
1. EnsurethatbothJumpersJP1andJP4areconnectedtouppermostpinsoftheirheader
2. PressandholdtheBOOTLOADENbutton.
3. WhiletheBOOTLOADENbuttonisstillpressed,pressandreleasetheRESETbutton.
4. ReleasetheBOOTLOADENbutton.
5. BootloadermodewillbeconfirmedwhentheTX1LEDisonandtheRX1flashes.
6. Afterthesketchisuploaded,theTX1andRX1LEDswillturnoff.


ExampleSketches
SketchesareArduino™styleprogrammesthatallowyoutosimplycontrolvariousaspectsofthe
chipKITPi’sprocessor,peripheralsandGPIO.SomeexamplesarebuiltintotheMPIDEsoftware.The
bestwaytolearnistoselectone,loaditanduploaditintothechipKIT™Pi.
Schematic
Fortheschematicinformation,pleasevisittheelement14community
http://www.element14.com/chipkit_pi
MoreInformation
Formoreinformation,pleasevisit
1. Theelement14communityhttp://www.element14.com/chipkit_pi
2. Theknode,element14
http://www.element14.com/community/community/knode/dev_platforms_kits/element14
_dev_kits/microchipchipkit/chipkit_pi
3. chipKITwebsitehttp://chipkit.net/
4. chipKITforumhttp://www.chipkit.org/forum/index.php
5. PIC32MX250F128BHomepage
http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en557425
6. TCHIPUSBMX250F128B(PIC32MX250F128BpreprogrammedwithUSBbootloader)
http://www.microchipdirect.com/productsearch.aspx?keywords=TCHIPUSBMX250F128B
ThechipKITPicanalsobeusedasastandalonechipKITboard.AversionofthePIC32MX250F128B
microcontrollerisavailablepreprogrammedwithaUSBbootloaderthatcanbeusedtoreplacethe
PIC32withUARTbootloaderthatcomeswiththechipKITPi.Inthisway,theuserwouldsimply
connectthechipKITPiviatheUSBconnectiontotheirpersonalcomputer’sUSBportandusethe
MPIDEversionfortheiroperatingsystem.ForinstructiononhowtodownloadtheMPIDE,see
www.element14.com/chipkit_pi.