PIC32 Bluetooth® Starter Kit Information Sheet The PIC32 Bluetooth Starter Kit (DM320018) provides a low-cost method for the development and testing of Bluetooth data transfer with PIC32 devices. The starter kit features a Bluetooth Radio, a combination 3-D accelerometer and temperature sensor, 16 Mb SPI Flash, an on-board debugger, five user buttons, as well as USB (Device and Host), I2S, I2C, and UART Interfaces. Installing MPLAB® IDE and C Compilers Before you use the PIC32 Bluetooth Starter Kit, it is important that you have installed the Microchip MPLAB® Integrated Development Environment (IDE). MPLAB IDE provides the assembler tools you will use for development. You will also need a C Compiler for the demonstration code. The MPLAB C Compiler seamlessly integrates into MPLAB IDE. Both the MPLAB IDE and C Compiler are free (see the note below) and are available for download at http://www.microchip.com/MPLAB and http://www.microchip.com/compilers, respectively. Americas Asia/Pacific (Continued) Atlanta - 678-957-9614 Austin - 512-257-3370 Boston - 774-760-0087 Chicago - 630-285-0071 Cleveland - 216-447-0464 Dallas - 972-818-7423 Detroit - 248-848-4000 Houston - 281-894-5983 Indianapolis - 317-773-8323 Los Angeles - 949-462-9523 New York - 631-435-6000 Phoenix - 480-792-7200 Santa Clara - 408-961-6444 Toronto - 905-673-0699 China - Chengdu - 86-28-8665-5511 China - Chongqing - 86-23-8980-9588 China - Hangzhou - 86-571-8792-8115 China - Hong Kong SAR - 852-2943-5100 China - Nanjing- 86-25-8473-2460 China - Qingdao - 86-532-8502-7355 China - Shanghai - 86-21-5407-5533 China - Shenyang - 86-24-2334-2829 China - Shenzhen - 86-755-8864-2200 China - Wuhan - 86-27-5980-5300 China - Xiamen - 86-592-2388138 China - Xian - 86-29-8833-7252 China - Zhuhai - 86-756-3210040 India - Bangalore - 91-80-3090-4444 India - New Delhi - 91-11-4160-8631 India - Pune - 91-20-3019-1500 Japan - Osaka - 81-6-6152-7160 Japan - Tokyo - 81-3-6880-3770 Korea - Daegu - 82-53-744-4301 Korea - Seoul - 82-2-554-7200 Malaysia - Kuala Lumpur - 60-3-6201-9857 Malaysia - Penang - 60-4-227-8870 Philippines - Manila - 63-2-634-9065 Singapore - 65-6334-8870 Taiwan - Hsin Chu - 886-3-5778-366 Taiwan - Kaohsiung - 886-7-213-7840 Taiwan - Taipei - 886-2-2508-8600 Thailand - Bangkok - 66-2-694-1351 Europe Austria - Wels - 43-7242-2244-39 Denmark - Copenhagen - 45-4450-2828 France - Paris - 33-1-69-53-63-20 Germany - Munich - 49-89-627-144-0 Italy - Milan - 39-0331-742611 Netherlands - Drunen - 31-416-690399 Spain - Madrid - 34-91-708-08-90 UK - Wokingham - 44-118-921-5869 Asia/Pacific Australia - Sydney - 61-2-9868-6733 China - Beijing - 86-10-8569-2100 Note: Standard Evaluation (Free) – All optimization levels are enabled for 60 days, but then revert to optimization level 1 only. Demonstration Code and More Information For demonstration code and more information, visit: http://www.microchip.com/ pic32tools and click the PIC32 Bluetooth Starter Kit product link. Running the Demonstration Code After downloading the demonstration code and installing the development tools, please use the procedure outlined in the readme.txt file included with the demonstration code to download and run this application. 03/25/14 Microchip Technology Inc. • 2355 West Chandler Blvd. • Chandler, AZ 85224-6199 www.microchip.com The Microchip name and logo, the Microchip logo, and MPLAB are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. All other trademarks mentioned herein are property of their respective companies. © 2014, Microchip Technology Incorporated, Printed in the U.S.A. All Rights Reserved. 03/14 DS50002267B *DS50002267B* PIC32 Bluetooth Starter Kit Information Sheet Schematic (Sheet 1 of 3) 0.1 0.2 Initial Proto Fixed issues with PK R36 to 10K fr PIC32MX270F256D-50I/PT Processor change U1 SDA1 1 2 UART1_Rx RB9 RB8 RC6 RB7 RC7 VBUS 44 43 SCL1 TP enlarged UART2_RTS UART2_RTS moved from +3.3V 3 UART1_Tx UART2_RX 4 RC8 USBID/RB5 USER'S SWITCH 42 DOWN moved from p +3.3V 41 LED_B moved from p R30 STBY/RST 3.3k LED_B 5 6 RC9 VSS VDD VSS 0.3 40 +3.3V 39 VARIOUS PIN C BUTTON_ADC C3 C5 0.1uF 0.1uF S1 S2 S3 S4 S5 R53 R54 R55 R56 R57 3.3k 10k 23K 49.5K 102K SWITCH ARRAY CHAN DIVIDER A C23 10uF 7 D+ D- 8 9 10 +3.3V C20 1uF SDI2 11 VCAP RC5 D+/RB10 RC4 D-/RB11 RC3 VUSB3V3 RB13 TDI/RA9 RA4 38 37 36 35 34 USB_DET circuit adde ACC_INT UART2_TX UART2_CTS I2S1_SDO SDO2 +3.3V ICSP Header (Unpopulated) LED1 R42 LED_B PGD4 12 TMS/RA10 RB4 33 C37 R43 I2S1_BCLK SCK2 13 14 15 TCK/RA7 RB14 RB15 TDO/RA8 OSC2/RA3 OSC1/RA2 32 I2S1_SDI LED_G R2 LED_R 31 12MHz 1 2 3 4 5 6 Blue 2 5 Green 510R Y1 J9 6 510R I2S1_LRCL 20pF PGC4 1 3 ICSP_MCLR_VPP_TARGET +3.3V PGD4 PGC4 4 Red 1k C36 30 CREE CLX6A-FKB 20pF +3.3V 16 AVSS VSS AVDD VDD MCLR RC2 29 C1 R4 10k +3.3V 0.1uF C2 17 0.1uF 28 +3.3V +5V_PD 27 J1 UART1_RTS# 1k C4 LED_R 19 PGED3/RA0 RC1 PGEC3/RA1 RC0 PGED1/RB0 RB3 PGEC1/RB1 RB2 26 1 2 3 4 D- I2S1_MCLK D+ 0.1uF 20 25 SS2 UART1_CTS# 21 22 24 23 HOST TYPE - TYPE A CARD_ID USB2.0-A 0 LED_G VBUS DD+ GND BUTTON_ADC USB_DET J2 1 +5V_VUSB 2 3 4 VBUS DD+ USBID 5 S6 18 TYPE MICRO A/B SHIELD ICSP_MCLR_VPP_TARGET 6 R1 R5 10k USB_DET R6 10k DS50002267B PIC32 Bluetooth Starter Kit Information Sheet Schematic (Sheet 2 of 3) +3.3V R46 R59 0.5R +9V +5V_PD U2 8 L1 VIN 15uH LPS3015-153ML 2 GND R35 5 SHDN 10uF NC AO3424 SCL1 +3.3V R48 11 VDDIO SDx VDD R31 0R 5 1.22vFB 6 3 +3.3V 7 CSB SCx PS GNDIO GND 10k ACC_INT MCP1650S-E/MS SDO R8 4.7k 7 NC 12 +3.3V 2 6 10 30k Q1 1 4 FB 2 SDA1 0R C25 R47 3 R7 10k 1 SD107WS 1 EXT +9 V D1 3 CS C24 10uF +3.3V U3 DNP +3.3V C6 C7 0.1uF 0.1uF 8 9 INT1 INT2 NC 4 BMA250E 3 Axis Accelerometer +5V to +9V BOOST CONTROLLER (I2C Slave Addr = 0011 000X) Bluetooth_BTM805CL2B U4 +3.3V 1 2 C27 2.2uF +3.3V R52 470R 3 D7 4 GREEN 5 6 NC SPI_MISO GND SPI_CS# VDD_AUX CLK PIO_0 SPI_MOSI PIO_3 SPI_PCM#_SEL PIO_1 VDD_RADIO 24 R9 23 U5 10k +3.3V 22 21 2 SDI2 20 19 1 SS2 C32 3 +3.3V 4 2.2uF CE Vdd SO HOLD WP SCK Vss SI 8 +3.3V 7 6 5 SCK2 C9 0.1uF SDO2 C28 2.2uF UART_RX PIO_5 UART_TX VDD_PADS VREG_OUT_HV VREG_EN_RST# 25 STBY/RST VDD_IN 26 GND 12 PIO_2 GND 11 UART_RTS GND 10 C29 2.2uF UART_CTS PIO_4 28 9 VDD_DIG GND 8 27 7 18 17 16 15 SST25VF016_SO8 UART2_RTS UART2_CTS UART2_TX } UART2_RX 4M Baud Max <1% 14 16M Serial Flash +3.3V 13 C8 0.1uF C30 C31 2.2uF 2.2uF BLUETOOTH +3.3V R29 3.3k R28 3.3k J3 UART1_Rx UART1_Tx SCL1 SDA1 I2S1_SDI I2S1_SDO 1 2 3 4 5 7 9 6 8 10 SCL1 J4 UART1_RTS# STBY/RST I2S1_LRCL (FRAME/SS#) 11 12 I2S1_BCLK (SCK1) 13 14 I2S1_MCLK (REFCLKO) 17 18 19 20 1 2 3 4 5 6 7 8 9 10 SDA1 1 CARD_ID 3 +3.3V 5 7 C10 0.1uF 11 15 16 +9 V J5 UART1_CTS# 9 SCL GND SDA NC VCC NC NC RST NC NC 2 4 6 8 10 12 +3.3V +5V_PD TSW-106-07-F-D TSW-110-07-T-D Title AUDIO DAC DB CONN AUTHENTICATION CONNECTOR P Size: C Date: 3/17/2014 DS50002267B PIC32 Bluetooth Starter Kit Information Sheet Schematic (Sheet 3 of 3) TARGET ICSP SIGNALS +3.3V_PKOB +3.3V_PKOB R22 SDO R11 330R C26 10k PGD_PKOB PGC__PKOB 4.7k TARGET_POWER_ENABLE 1 2 3 4 5 6 ICSP_MCLR_VPP_PICKIT3 R44 10uF J6 330R UTIL_WP R40 R34 0R UTIL_CS 200k SDO 330R R45 SCK 4.7k 8 9 C21 1uF +3.3V_PKOB 10 11 12 SERIAL EEPROM (25LC256) +3.3V_PKOB 13 VPP_SENSE 14 VDD_SENSE R3 15 1k 16 R49 3.16k 49 V VCPCON/RD1 51 50 DHP/RD2 PMWR/RD4 PMBE/RD3 54 52 PMRD/RD5 55 56 53 RD6 RD7 Vcap/VDDCORE 57 58 RF0 ENVREG 60 61 62 63 59 RF1 PMPD0/RE0 PMPD1/RE1 PMPD2/RE2 PMPD3/RE3 RTCC/RD8 PMA2/RG9 VSS D+/RG2 AN3/RB3 D-/RG3 AN2/RB2 Vusb AN1/RB1 AN0/RB0 C18 0.1uF C14 C15 0.1uF 0.1uF 0.1uF (Local Vdd/Vss bypass/decoupling.) Y2 12MHz +3.3V_PKOB 37 36 +3.3V_PKOB C38 USB_D+ USB_D- 8pF +3.3V_PKOB 35 34 33 USBID/RF3 R50 R51 R15 R19 3.92k 10k 100k 2 VDD_SENSE VBUS_DEVICE Q3 1 MMBT3906 VPP_SENSE 100R R37 R38 R16 2.21k 2.21k 10k 3 R36 0R ICSP_MCLR_VPP_TARGET R63 3 100R 1206 Q2 1 VPP_ON 32 31 C13 0.1uF 38 Vbus 30 29 28 27 26 25 24 23 22 21 20 19 18 17 C12 0.1uF 8pF R17 MMBT3904 10k R61 PGC__PKOB 2 DNP 3 R18 PGD_PKOB +3.3V_PKOB C11 C39 UTIL_SCK 39 VDD USBOENAN4/RB4 UTIL_SDO UTIL_SDI 40 OSC2/CLKO/RC15 OSC1/CLKIN/RC12 OSC1/CLKI KIN/RC12 AN5/RB5 10k 41 PIC24FJ256GB106 VDD R13 ASSEMBLY_ID_0 43 42 VSS U6 AN6/RB6 VREF_2.5V SDA1/RD9 MCLR PMA8/SCL2/RF5 330R PMA3/RG8 PMA9/SDA2/RF4 7 ICSP_MCLR_VPP_PICKIT3 PMA0/AN15/RB15 HOLD UTIL_SDI PMA1/AN14/RB14 WP 6 R25 2 PMA10/AN13/RB13 R39 2.21k SO +3.3V_PKOB +3.3V_PKOB ASSEMBLY_ID_1 44 SCL1/PMCS2/RD10 PMA11/AN12/RB12 7 SCK CS PMA4/RG7 VDD UTIL_WP SI 45 PMCS1/RD11 VSS 3 47 46 I INT0/RD0 PMA5/RG6 PMA12/AN11/RB11 1 UTIL_CS PMD7/SDA3/RE7 PMA13/AN10/RB10 6 UTIL_SCK VCC UTIL_SDO 5 VSS 5 4 8 U7 10k 48 SOSCI/RC13 PMA7/AN9/RB9 25LC256 4 10k R14 SOSCO/RC14 PMD6/SCL3/RE6 AN8/RB8 3 AVSS 2 VPP_GND AVDD +3.3V_PKOB PMD5/RE5 AN7/RB7 1 PMPD4/RE4 64 VBUS_DEVICE_SWITCHED_SENSE VPP_ON PGC4 R24 SCK SDI R10 PGD4 R33 0R R23 SDI MMBT3904 10k R62 10k C22 C19 1uF 0.1uF 2 DNP POWER_GOOD_PICKIT3 R12 Q4 1 VPP_GND +3.3V_PKOB +5V J8 POWER DISTRIBUTION/SWITCHING 3 2 1 +5V_VUSB D4 MBR0520 Low ESR D3 R60 MBR0520 Low ESR U8 +5V_PD J7 VBUS_DEVICE USB_DUSB_D+ C33 2.2uF 2 3 4 R32 EGND MBR0520 Low ESR 1 VIN VOUT VIN SENSE SHDN GND CDELAY PWRGD +3.3V_PKOB 1 C35 7 4.7uF D5 6 C34 C17 2.2uF 0.1uF 0R 3 TARGET_POWER_ENABLE R58 0.1uF R41 2 IN OUT D6 GND 2.2k DNP R26 330R R20 100k ON +3.3V 5 GREEN GREEN 5 C16 +3.3V 100k +3.3V_PKOB +3.3V_PKOB 8 9 VBUS DD+ ID GND 0 USB INTERFACE (BUS POWERED) D2 1 2 3 4 5 DNP R21 MCP1727-3302E/MF +5V_PD GND_EP USB MINI-B Female FLAGB 4 U9 R27 330R FPF2104 VBUS_DEVICE_SWITCHED_SENSE 200k GND POWER_GOOD_PICKIT3 * All resistors are +/-1% unless otherwise noted DS50002267B