A compact starter kit with your favorite microcontroller and a socket for click add-on boards. New ideas are just a click away.
TO OUR VALUED CUSTOMERS I want to express my thanks to you for being interested in our products and for having confidence in MikroElektronika. The primary aim of our company is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs. Nebojsa Matic General Manager The PIC and Windows logos and product names are trademarks of Microchip Technology and Microsoft in the U.S.A. and other countries.
Table of Contents 1. What is PIC32MX clicker? 4 2. Power supply 6 3. PIC32MX534F064H microcontroller 8 Key microcontroller features 8 4. Programming the microcontroller 9 Programming with mikrobootloader 10 step 1 Connecting PIC32MX clicker 10 step 2 Browsing for.hex file 11 step 3 Selecting.HEX file 11 step 4 Uploading.HEX file 12 step 5 Finish upload 13 Programming with mikroprog Programmer 14 5. mikroprog Suite for PIC Software 16 6. Buttons and LEDs 18 7. click boards are plug and play! 20 8. Pinout 22 9. Dimensions 23 Page 3
1. What is PIC32MX clicker? 01 USB Mini-B connector 06 05 07 08 02 3.3V Voltage regulator 03 mikroprog Programmer connector 10 04 05 PIC32MX534F064H microcontroller Crystal oscillators (8MHz and 32kHz) 11 10 06 07 08 09 10 Connection pads mikrobus socket RESET button Power indication LED Additional buttons 01 02 03 04 Figure 1-1: PIC32MX clicker 09 11 Additional LEDs PIC32MX clicker is an amazingly compact starter development kit which brings innovative mikrobus host socket to your favorite microcontroller. It features the PIC32MX534F064H 32-bitmicrocontroller, two indication LEDs, two general purpose buttons, reset button, USB MINI-B connector and a single mikrobus host socket. mikroprog connector and pads for interfacing with external electronics are provided as well. mikrobus host connector consists of two 1x8 female headers with SPI, I 2 C, UART, RST, PWM, Analog and Interrupt lines as well as 3.3V, 5V and power lines. PIC32MX clicker board can be powered over USB cable. On-board power circuitry generates 3.3V and 5V. Power diode (GREEN) indicates the presence of power supply. Page 4
Page 5 3.3V VOLTAGE REGULATOR C2 10uF C9 C10 C11 C14 C15 C16 2.2uF R10 470 PWR RG9/CS RG6/SCK RG7/MISO RG8/MOSI RF5/SCL RF4/SDA RD0/PWM RD4/LED1 RD1/LED2 RB4/T1 PB0/T2 RB3/AN RB8/RX RB14/TX RD11/INT 30 29 28 27 34 33 58 57 56 55 54 53 52 47 36 35 43 44 45 46 37 38 9 49 50 11 12 32 64 63 4 3 24 23 18 17 16 15 14 13 5 6 7 8 10 1 2 22 21 20 19 62 61 60 59 39 40 41 42 48 31 51 26 25 RB5 OSC1 RB12 RD6 RD7 RB13 RD0 RD11 RD10 RD9 RD8 OSC2 VUSB USBID/RF3 VBUS D-/RG3 VDD D+/RG2 SOSCO SOSCI VCAP RD5 RD4 RD3 RD2 RD1 RE2 RE1 RE0 RF1 RF0 VDD RE3 RE4 RG6 RE7 RE5 RE6 RG7 RG8 MCLR RG9 VDD RB0 RB1 RB2 RB3 RB4 VDD RB11 RB10 RB15 RB14 RF5 RF4 RB7 RB6 AVDD A RB8 RB9 PIC32MX534F064H U1 X1 8MHz X2 32.768KHz C1 22pF C3 22pF C4 22pF C6 22pF USB-D_P USB-D_N USB-DET USB-ID VCC-5V FP1 FERRITE C5 1 2 3 4 5 ID D+ D- VBUS CN1 USB MINIB USB-DET USB-D_N USB-D_P USB-ID R11 220 R13 27 R12 27 MCLR# R6 10K C8 R7 1K T3 RST MCLR# RB6/PGC RB7/PGD MCLR# 1 2 3 4 5 HD1 RB6/PGC RB7/PGD mprog RD3 RD2 RD10 RD9 RB11 RB10 RB12 RB13 1 2 3 4 5 6 7 8 9 10 HD2 RD2 RD3 RD10 RD9 RB10 RB11 RB12 RB13 R9 4K7 R8 4K7 LD2 LD1 RD1/LED2 RD4/LED1 T1 R1 4K7 RB4/T1 T2 R2 4K7 PB0/T2 RD7/RST VCC-5V R4 100K AN RST CS SCK MISO MOSI 3.3V PWM INT RX TX SCL SDA 5V RG9/CS RG6/SCK RG7/MISO RG8/MOSI RF4/SDA RF5/SCL RD0/PWM RD11/INT RB3/AN RD7/RST RB8/RX RB14/TX 2 3 1 Vin Vout REG1 LD29080DT33 C12 10uF C7 10uF VCC-5V Figure 1-2: PIC32MX clicker schematic
2. Power supply When the board is powered up the power indication LED will be automatically turned on. The USB connection can provide up to 500mA of current which is more than enough for the operation of all on-board and additional modules. Figure 2-1: connecting USB power supply through CN1 connector Page 6
3.3V VOLTAGE REGULATOR VCC-5V FP1 FERRITE C5 1 2 3 4 5 CN1 VBUS D- D+ ID USB MINIB R10 470 PWR VCC-5V C7 10uF 3 2 C12 10uF REG1 Vin 1 Vout LD29080DT33 1 2 3 4 5 6 7 8 9 10 HD2 Figure 2-2: Power supply schematic Page 7
3. PIC32MX534F064H microcontroller The PIC32MX clicker development tool comes with the PIC32MX534F064H microcontroller. This 32-bit MIPS M4K Core high performance microcontroller is rich with on-chip peripherals and features 64KB of Flash and 16KB RAM. It has integrated full speed USB 2.0. support. Key microcontroller features - 80MHz/105DMIPS, 32-bit MIPS M4K Core; - 64KB Flash (plus 12K boot Flash); - 16KB RAM (can execute from RAM); - 53 I/O pins; - SPI, I2C, A/D, CAN - 16-bit Digital Timers; - Internal Oscillator 8MHz, 32kHz; - RTCC, etc. MIPS M4K 32-bit core - 80MHz, 1.5 DMIPS/MHz - 5 Stage Pipeline, 32-bit ALU Trace 32-bit JTAG HW Mul/Div Instruction Data Prefetch Buffer Cache 16-bit Parallel Port RTCC 16 Ch 10-bit ADCs 32 Core Registers Shadow Set Flash SRAM I2C (4) Bus Matrix Peripherial Bus Input Capture (5) UARTs (6) PIC32 DMA 4Ch Interrupt Controller Output Compare PWM(5) 2-wire Debug SPI (3) GPIO (53) 16-bit Timers (5) USB OTG VREG Analog Comparators (2) CAN (1) Page 8
4. Programming the microcontroller Figure 4-1: PIC32MX534F064H microcontroller The microcontroller can be programmed in two ways: 01 02 Using USB HID mikrobootloader, Using external mikroprog for PIC, dspic, PIC32 programmer. Page 9
Programming with mikrobootloader You can program the microcontroller with bootloader which is preprogrammed by default. To transfer.hex file from a PC to MCU you need bootloader software (mikrobootloader USB HID) which can be downloaded from: step 1 Connecting PIC32MX clicker www.mikroe.com/downloads/get/2209/ pic32mx_clicker_bootloader_v100.zip After the mikrobootloader software is downloaded, unzip it to desired location and start it. 01 PIC32MX clicker Bootloader WinRAR ZIP archive PIC32MX clicker Bootloader File folder Software File folder mikrobootloader USB HID.exe Bootloader tool for mikroelektron... mikroelektronika Firmware File folder PIC32MX clicker P32MX534F064H USB HID Bootloader v1.310.hex HEX File Figure 4-2: USB HID mikrobootloader window 01 To start, connect the USB cable, or if already connected press the Reset button on your PIC32MX clicker. Click the Connect button within 5s to enter the bootloader mode, otherwise existing microcontroller program will execute. Page 10
step 2 Browsing for.hex file step 3 Selecting.HEX file 01 01 02 Figure 4-3: Browse for HEX Figure 4-4: Selecting HEX 01 Click the Browse for HEX button and from a 01 pop-up window (Figure 3.4) choose the.hex file which will be uploaded to MCU memory. 02 Select.HEX file using open dialog window. Click the Open button. Page 11
step 4 Uploading.HEX file 01 01 Figure 4-5: Begin uploading Figure 4-6: Progress bar 01 To start.hex file bootloading click the 01 Begin uploading button. Progress bar enables you to monitor.hex file uploading. Page 12
step 5 Finish upload 01 Figure 4-7: Restarting MCU Figure 4-8: mikrobootloader ready for next job 01 Click OK button after the uploading process is finished. 02 Press Reset button on PIC32MX clicker board and wait for 5 seconds. Your program will run automatically. Page 13
Programming with mikroprog programmer Figure 4-9: mikroprog connector The microcontroller can be programmed with external mikroprog for PIC, dspic and PIC32 programmer and mikroprog Suite for PIC software. The external programmer is connected to the development system via 1x5 mikroprog connector, Figure 4-9. mikroprog is a fast USB 2.0 programmer with hardware debugger support. It supports PIC10, PIC12, PIC16, PIC18, dspic30/33, PIC24 and PIC32 devices from Microchip. Outstanding performance, easy operation and elegant design are it s key features. Page 14
C2 C9 C10 C11 C14 HD1 1 2 3 4 5 mprog C15 C16 2.2uF RB6/PGC RB7/PGD MCLR# MCLR# 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 64 63 RE5 RE6 RE7 RG6 RG7 RG8 MCLR RG9 VDD RB5 RB4 RB3 RB2 RB1 RB0 17 18 19 62 61 60 20 21 22 59 58 57 RE4 RE3 RE2 RE1 RE0 RF1 RF0 VDD RB6 RB7 AVDD A RB8 RB6/PGC RB7/PGD RB9 RB10 23 24 56 55 54 53 52 VCAP RB11 VDD 25 26 RD7 RB12 RD6 RB13 27 51 28 29 30 50 49 RD5 RD4 RD3 RD2 RD1 PIC32MX534F064H SOSCO SOSCI RD0 RD11 RD10 RD9 RD8 OSC2 OSC1 VDD D+/RG2 D-/RG3 VUSB VBUS USBID/RF3 RB14 RB15 RF4 RF5 31 32 U1 10uF 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 X2 X1 32.768KHz 8MHz C1 22pF C3 22pF C4 22pF C6 22pF Figure 4-10: mikroprog connection schematic NOTE Make sure to use only the front row of mikroprog s IDC10 connector (side with a knob and incision) when connecting it to 1x5 header on your PIC32MX clicker board. Page 15
5. mikroprog Suite for PIC Software The mikroprog programmer requires special programming software called mikroprog Suite for PIC. It can be used for programming all Microchip microcontroller families, including PIC10, PIC12, PIC16, PIC18, dspic30/33, PIC24 and PIC32. The software has intuitive interface and SingleClick programming technology. Just download the latest version of mikroprog Suite and your programmer is ready to program new devices. mikroprog Suite is updated regularly, at least four times a year, so your programmer will be more and more powerful with each new release. Figure 5-1: Main window of mikroprog Suite for PIC programming software Page 16
Software Installation Wizard 01 Start Installation 02 Accept EULA and continue 03 Install for all users 04 Choose destination folder 05 Installation in progress 06 Finish installation Page 17
6. Buttons and LEDs 02 01 03 Figure 6-1: Two buttons, two LEDs and a reset button The board also contains 01 reset button and a pair of 02 buttons and 03 LEDs. Each of these additional peripheral are located in the bottom area of the board. Reset button is used to manually reset the microcontroller. Pressing the reset button will generate low voltage level on microcontroller reset pin. LEDs can be used for visual indication of the logic state on two pins (RD4 and RD1). An active LED indicates that a logic high (1) is present on the pin. Pressing any of these buttons can change the logic state of the microcontroller pins (RB4 and RB0) from logic high (1) to logic low (0). Page 18
Page 19 Figure 6-2: Other modules connection schematic C2 10uF C9 C10 C11 C14 C15 C16 2.2uF RD4/LED1 RD1/LED2 RB4/T1 PB0/T2 30 29 28 27 34 33 58 57 56 55 54 53 52 47 36 35 43 44 45 46 37 38 9 49 50 11 12 32 64 63 4 3 24 23 18 17 16 15 14 13 5 6 7 8 10 1 2 22 21 20 19 62 61 60 59 39 40 41 42 48 31 51 26 25 RB5 OSC1 RB12 RD6 RD7 RB13 RD0 RD11 RD10 RD9 RD8 OSC2 VUSB USBID/RF3 VBUS D-/RG3 VDD D+/RG2 SOSCO SOSCI VCAP RD5 RD4 RD3 RD2 RD1 RE2 RE1 RE0 RF1 RF0 VDD RE3 RE4 RG6 RE7 RE5 RE6 RG7 RG8 MCLR RG9 VDD RB0 RB1 RB2 RB3 RB4 VDD RB11 RB10 RB15 RB14 RF5 RF4 RB7 RB6 AVDD A RB8 RB9 PIC32MX534F064H U1 X1 8MHz X2 32.768KHz C1 22pF C3 22pF C4 22pF C6 22pF MCLR# R6 10K C8 R7 1K T3 RST MCLR# R9 4K7 R8 4K7 LD2 LD1 RD1/LED2 RD4/LED1 T1 R1 4K7 RB4/T1 T2 R2 4K7 PB0/T2
7. click boards are plug and play! Up to now, MikroElektronika has released more than 100 mikrobus compatible click boards. On the average, one click board is released per week. It is our intention to provide you with as many add-on boards as possible, so you will be able to expand your development board with additional functionality. Each board comes with a set of working example codes. Please visit the click boards webpage for the complete list of currently available boards: www.mikroe.com/click Figure 7-1: PIC32MX clicker driving GSM click board Page 20
RFid click Relay click 8x8 click FM click Bluetooth2 click Thunder click USB SPI click BarGraph click 7seg click THERMO click Gyro click EEPROM click LightHz click Pressure click Page 21
8. Pinout In addition to the mikrobus socket, the PIC32MX clicker has a row of 9 pins with Analog, Interrupt, I2C, UART and PWM lines (+ ) for connecting external electronics. RD2 SDA3 U1RX PWM3 RD3 SCL3 U1TX PWM4 RD10 INT3 SCL1 RD9 INT2 SDA1 Analog Lines RB13 AN13 Interrupt Lines RB12 AN12 I2C Lines RB11 AN11 UART lines RB10 AN10 PWM lines Page 22
9. Dimensions 75.6 2979 71.6 2819 12.7 500 2.54 100 16.7 659 8 315 1.6 63 Legend mm mils Mounting hole size Ø2 Ø79 17.2 25.4 4 679 1000 159 Page 23
DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika. The manual PDF edition can be printed for private or local use, but not for distribution. Any modification of this manual is prohibited. MikroElektronika provides this manual as is without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties or conditions of merchantability or fitness for a particular purpose. MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall MikroElektronika, its directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including damages for loss of business profits and business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product, even if MikroElektronika has been advised of the possibility of such damages. MikroElektronika reserves the right to change information contained in this manual at any time without prior notice, if necessary. HIGH RISK ACTIVITIES The products of MikroElektronika are not fault tolerant nor designed, manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of Software could lead directly to death, personal injury or severe physical or environmental damage ( High Risk Activities ). MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities. TRADEMARKS The MikroElektronika name and logo, mikroc, mikrobasic, mikropascal, Visual TFT, Visual GLCD, mikroprog, Ready, MINI, mikrobus, EasyPIC, EasyAVR, Easy8051, click boards and mikromedia are trademarks of MikroElektronika. All other trademarks mentioned herein are property of their respective companies. All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are only used for identification or explanation and to the owners benefit, with no intent to infringe. Copyright 2015 MikroElektronika. All Rights Reserved. Page 24
If you want to learn more about our products, please visit our web site at www.mikroe.com If you are experiencing some problems with any of our products or just need additional information, please place your ticket at www.mikroe.com/support If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com PIC32 MX clicker manual ver. 101 0100000070741
Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: MikroElektronika: MIKROE-1683