A compact starter kit with your favorite microcontroller and two mikroBUS™ sockets
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.
Table of Contents Introduction to Clicker 2 for PIC32MZ 4 Key features 5 3.2 Programming with mikroProg programmer 2. PIC32MZ microcontroller 7 3. Programming the microcontroller 8 4. Buttons and LEDs mikroProg Suite software 3.1 Programming with mikroBootloader 13 14 15 9 5. Power management and battery charger 16 step 1 – Connecting Clicker 2 9 6. Oscillators 17 step 2 – Browsing for .HEX file 10 7. USB connection 18 step 3 – Selecting .HEX file 10 8.
Introduction to Clicker 2 for PIC32MZ Clicker 2 for PIC32MZ is a compact development kit with two mikroBUSTM sockets for click boardTM connectivity. You can use it to quickly build your own gadgets with unique functionalities and features. It carries the PIC32MZ 32-bit microcontroller, two indication LEDs, two general purpose buttons, a reset button, an ON/OFF switch, a li-polymer battery connector, a micro USB connector and two mikroBUSTM sockets.
Key Features 1 2 8 1 ON/OFF switch 3 2 Reset button 9 3 PIC32MZ MCU 4 mikroBUS™ sockets 1 and 2 13 5 Pushbuttons 6 Additional LEDs 7 Indication LEDs 4 4 5 5 6 6 8 Micro USB connector 9 32.
VCC-5V MIKROBUS 1 VCC-3.3V RD5/OC1 RD4/OC5 RD13/GPIO RD12/SS1 RD3/SDO1 RD2/SDI1 RD1/SCK1 RE0/GPIO RA7/GPIO RA6/GPIO RG0/OC7 RG1/OC6 RF1/OC3 RF0/OC4 RE4/GPIO RE3/OC8 RE2/GPIO RG13/GPIO RG12/GPIO RG14/GPIO RE1/GPIO VCC-3.3V VCC-3.3V VSYS MIKROBUS 2 1 VCC-BAT R11 2 R10 1M RA0/GPIO VCC-BAT 1 VCC-BAT 1 2 C36 M1 10µF 1k VCC-3.3V VCC-3.3V VCC-3.
2. PIC32MZ microcontroller The Clicker 2 for PIC32MZ development tool comes with the PIC32MZ microcontroller. This 32-bit (up to 1 MB Live- Update Flash and 512 KB SRAM) microcontroller with FPU is rich with on-chip peripherals.
3.
3.1 Programming with mikroBootloader You can program the microcontroller with a step 1 – Connecting clicker 2 for PIC32MZ 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: download.mikroe.com/examples/starter-boards/clicker-2/ pic32mz/clicker-2-pic32mz-mikrobootloader-usb-hid-v100.zip 1 After the mikroBootloader software is downloaded, unzip it to desired location and start it.
step 2 – Browsing for .HEX file step 3 – Selecting .HEX file clicker 2 for PIC32MZ PIC32MZ clicker2 for PIC32.hex HEX.file 1 1 2 Figure 3-4: Selecting HEX Figure 3-3: Browse for HEX 1 Select .HEX file using open dialog window. 2 Click the Open button.
step 4 – Uploading .HEX file clicker 2 for PIC32MZ clicker 2 for PIC32MZ PIC32MZ PIC32MZ PIC32MZ Begin uploading 1 1 Figure 3-5: Begin uploading Figure 3-6: Progress bar 1 To start .HEX file bootloading click the 1 Progress bar enables you to monitor .HEX file uploading. Begin uploading button.
step 5 – Finish upload PIC32MZ.hex 1 PIC32MZ.hex Figure 3-7: Restarting MCU Figure 3-8: mikroBootloader ready for next job 1 Click OK button after the uploading process is finished. 2 Press Reset button on Clicker 2 for PIC32MZ board and wait for 5 seconds. Your program will run automatically.
3.2 Programming with mikroProg programmer The microcontroller can be programmed with external mikroProg for PIC, dsPIC, and PIC32 programmer and mikroProg Suite for PIC32MZ software. The external programmer is connected to the development system via 2x5 connector Figure 3-9. mikroProg is a fast USB 2.0 programmer with hardware debugger support. It supports all PIC, dsPIC, and PIC32 devices in a single programmer. Outstanding performance, easy operation and elegant design are its key features.
mikroProg Suite for PIC32MZ software PIC32 mikroProg programmer requires special programming software called mikroProg Suite for PIC32®. This software is used for programming of ALL Microchip® microcontroller families, including PIC10®, PIC12®, PIC16®, PIC18®, dsPIC30/33®, PIC24® and PIC32®. Software has intuitive interface and SingleClick programming technology. Just by downloading the latest version of mikroProg Suite your programmer is ready to program new devices.
4. Buttons and LEDs The board also contains a 1 reset button and a pair of 2 buttons and 3 LEDs, as well as an ON/OFF switch. The Reset button is used to manually reset the microcontroller — it generates a low voltage level on the microcontroller’s reset pin. LEDs can be used for visual indication of the logic state on two pins (P34 and P18). An active LED indicates that a logic high (1) is present on the pin.
5. Power management and battery charger Clicker 2 for PIC32MZ features LTC®3586, a highly integrated power management and battery charger IC that includes a current limited switching PowerPath manager. LTC®3586 also enables battery charging over a USB connection.
6. Oscillators Two onboard oscillators act as external sources for PIC32MZ’s two system clocks. A 24 MHz oscillator provides a reference frequency output to the clock multiplier PLL. A a 32.768kHz oscillator provides a clock for the internal RTCC. Figure 6-1: 32.
7. USB connection PIC32MZ microcontrollers has an integrated USB module, which enables you to implement USB communication functionality to your Clicker 2 board. Connection with target USB host is done over a micro USB connector which is positioned next to the battery connector.
9. Pinout Reset pin Reference Ground PWM lines Digital I/O lines RX TX SCL I2C2 Lines SDA 3.3V power supply Reference Ground UART3 Lines RST GND VSYS GND RB9 RB10 RB11 RA1 RF13 RF12 RB12 RF4 RF3 RB15 RB1 RE1 RE0 RA7 RA6 RD13 RD0 RA4 RD12 RD1 RD2 RD3 3.3V GND RE3 RG0 RG1 RF1 RF0 RD5 RD4 RG14 RG12 RG9 RE2 RE4 RG15 RA5 RE5 RE6 RD14 RD15 RF8 RF2 3.3V GND System power supply Reference Ground Analog Lines Interrupt Lines Digital I/O lines SCK SDI SPI3 Lines SDO 3.
10. click boards™ are plug and play! Up to now, MikroElektronika has released more than a 350 mikroBUSTM compatible click boardsTM. On the average, three click boards™ are 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 code. Please visit the click boards™ webpage for the complete list of currently available boards: www.mikroe.
11.
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.
∫ If you want to learn more about our products, please visit our website 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 helpdesk.mikroe.com ∫ If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com Designed by MikroElektronika Ltd.