Overview: chipKIT Pi Introduction chipKITTM Pi (Designed for Raspberry Pi) is the latest ArduinoTM compatible chipKITTM platform from Microchip and element14. It features a 32bit PIC32 microcontroller in a prototypingfriendly, low pin count SPDIP package. The PIC32's performance, memory and integrated peripherals allow users to create applications including touch sensing, audio processing and advanced control. The board is supported by the free chipKITTMMultiPlatform IDE (MPIDE) that can be hosted on the Raspberry Pi. Getting familiar with chipKITTM Pi 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Bootloader Enable Button RESET Button JA4: Power Header JA3: Analog/Digital Header JTAG Connector LEDs JA2: Digital/Serial Header JA1: Digital/Serial Header Raspberry Pi Breakout Header Raspberry Pi Connection Header (underside of board) USB Connection ICSP Connection (not populated) Power Connector PIC32MX250F128B Microcontroller chipKIT Pi Jumper Settings Jumper Function Description Jumper across pins 1 and 2 Two leftmost pins bypasses voltage regulator JP2 JP1 Input Voltage Selection (If you are unclear as to the function of this jumper leave in the default right most position. Potential for Microcontroller (MCU) damage if configured incorrectly) Function Select JP4 Function Select JP8 JP14 JP6 JP11 JP15 JP12 JP13 JP7 Function Select Function Select Function Select Function Select Function Select Function Select Function Select Function Select UART 2 Receive (RX2) (position required to program chipKIT Pi via MPIDE over serial) UART 2 Transmit (TX2) (position required to program chipKIT Pi via MPIDE over serial) SPI connector MISO on JA1 SPI connector SS on JA1 Bootload Button Enable Board LED2 Board LED1 USB function D USB function D+ UART 1 Transmit (TX1) JP9 Function Select UART 1 Receive (RX1) JP10 JP5 Function Select 5V Connection Connect to 5V supply off of Pi Jumper across pins 2 and 3 Rightmost pins connects input voltage to 5 V regulator ICSP Function PGEC ICSP Function PGED JTAG Function TCK JTAG Function TDI JTAG Function TDO A1 on JA3 A0 on JA3 Connect to SOSCI for X2 Oscillator Connect to SOSCO for X2 Oscillator JTAG function TMS Power chipKIT Pi from external supply chipKIT Pi Pin Out Map PIC32MX250F128B Pin (Pins are 3.3V Tolerant only unless otherwise noted) 1 (5V Tolerant) 2 3 4 5 6 7 8 9 10 11 chipKIT Pi Pin Function RESET 14/A0 11 5/TX2 4/RX2 16/A4/SDA2 17/A5/SCL2 VSS 9 10 11/TX1 12 12/RX1 13 14 (5V Tolerant) 15 (5V Tolerant) 16 (5V Tolerant) 17 (5V Tolerant) 18 (5V Tolerant) 19 20 21 22 23 24 25 26 27 28 VDD 2 VBUS 10 12/SCL1 18/SDA1/INT VSS VCAP 8 9 VUSB 3V3 3 13 15/A1 AVSS AVDD Notes Connected to RESET Pushbutton Connected to LED1 Connected to UART on Raspberry Pi Connected to UART on Raspberry Pi Connected to SDA on JA3 header Connected to SCL on JA3 header Not available Used for 8MHz Oscillator Used for 8MHz Oscillator Connected to TX1 LED and can be used with 32.768kHz oscillator Connected to RX1 LED and can be used with 32.768kHz oscillator Not available Not available Connected to BOOTLOADEN button Not available Not available Connected to D Connected to D+ Not available Connected to LED1 Not available Not available Getting up and running with chipKITTM Pi chipKITTM Pi relies on the open source MPIDE integrated development environment, a version of which has been ported to an operating system that runs on Raspberry Pi. It is recommended, for ease and for first time use, that users download the complete operating system and MPIDE as a complete package. This can be downloaded at http://downloads.element14.com/downloads/chipkit_pi.zip, and should be saved to your computer. The file will be quite large (2GB), and will require unzipping once it has been downloaded. Once unzipped, you will be left with a .ISO image file, ready for flashing to your empty SD Card. Choose an SD Card of at least 4GB capacity. Use a flashing utility like Win32 Disk Imager (available for free, from http://sourceforge.net/projects/win32diskimager/) to flash the .ISO image to your SD Card. When complete, insert the fully flashed SD Card to your Raspberry Pi. Plug your new chipKITTM Pi board into Raspberry Pi, and power up. As MPIDE is already installed, you should be able to start MPIDE from the desktop. For reliable operation, do not plug chipKITTM Pi into a Raspberry Pi that is already powered up. Always power up both devices together. Powering the chipKITTM Pi The chipKIT Pi can be powered in the following ways: Over the USB Via the ICSP Connection Through the Vin input From the Raspberry Pi Through the power jack Programming the chipKIT Pi from MPIDE In order to program the chipKIT Pi from MPIDE with your sketch, the board must be set to bootloader mode. To enter bootloader mode: 1. Ensure that both Jumpers JP1 and JP4 are connected to uppermost pins of their header 2. 3. 4. 5. 6. Press and hold the BOOTLOADEN button. While the BOOTLOADEN button is still pressed, press and release the RESET button. Release the BOOTLOADEN button. Bootloader mode will be confirmed when the TX1 LED is on and the RX1 flashes. After the sketch is uploaded, the TX1 and RX1 LEDs will turn off. Example Sketches Sketches are ArduinoTM style programmes that allow you to simply control various aspects of the chipKIT Pi's processor, peripherals and GPIO. Some examples are built in to the MPIDE software. The best way to learn is to select one, load it and upload it into the chipKITTM Pi. Schematic For the schematic information, please visit the element 14 community http://www.element14.com/chipkit_pi More Information For more information, please visit 1. The element 14 community http://www.element14.com/chipkit_pi 2. The knode, element14 http://www.element14.com/community/community/knode/dev_platforms_kits/element14 _dev_kits/microchipchipkit/chipkit_pi 3. chipKIT website http://chipkit.net/ 4. chipKIT forum http://www.chipkit.org/forum/index.php 5. PIC32MX250F128B Homepage http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en557425 6. TCHIPUSBMX250F128B (PIC32MX250F128B preprogrammed with USB bootloader) http://www.microchipdirect.com/productsearch.aspx?keywords=TCHIPUSBMX250F128B The chipKIT Pi can also be used as a standalone chipKIT board. A version of the PIC32MX250F128B microcontroller is available preprogrammed with a USB bootloader that can be used to replace the PIC32 with UART bootloader that comes with the chipKIT Pi. In this way, the user would simply connect the chipKIT Pi via the USB connection to their personal computer's USB port and use the MPIDE version for their operating system. For instruction on how to download the MPIDE, see www.element14.com/chipkit_pi .