mikromedia for PIC32 ™ ® Compact development system rich with on-board peripherals for all-round multimedia development on PIC32MX460F512L device.
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 PIC32® and Windows® logos and product names are trademarks of Microchip Technology® and Microsoft® in the U.S.A. and other countries.
Table of Contents Introduction to mikromedia for PIC32® 4 Programming with mikroProg™ programmer 16 Package Contains 5 mikroProg Suite™ for PIC® Software Key Features 6 7 System Specification 1. Power supply Battery power supply USB power supply 17 P Programming with ICD2 or ICD3 programmer 18 K 4. Reset Button 20 8 5. Crystal oscillator 22 8 6. microSD Card Slot 24 ® ® 8 7. Touch Screen 26 10 8. Audio Module 28 Key microcontroller features 10 9.
Introduction to mikromedia for PIC32® The mikromedia for PIC32® is a compact development system with lots of on-board peripherals which allow development of devices with multimedia contents. The central part of the system is a 32-bit PIC32MX460F512L microcontroller. The mikromedia for PIC32® features integrated modules such as stereo MP3 codec, TFT 320x240 touch screen display, accelerometer, USB connector, audio connector, MMC/SD card slot, 8 Mbit flash memory, 2x26 connection pads and other.
Package Contains 01 Damage resistant protective box 02 mikromedia for PIC32® development system mikromedia for PIC32® - pinout 5V power supply Analog Lines Interrupt Lines Digital I/O lines SCK2 SPI2 SDI2 SDO2 3.3V power supply Reference Ground VSYS GND RB0 RB1 RB2 RB3 RB4 RB5 RB14 RE8 RE9 RA14 RA15 RA10 RC4 RB6 RB7 RF3 RG12 RG13 RG14 RG6 RG7 RG8 3.3V GND RST GND L R RD0 RD1 RD2 RD3 RA0 RA1 RA4 RA5 RA6 RA7 RD10 RD11 RD14 RD15 RF4 RF5 RF2 RF8 RA2 RA3 3.
Key Features 09 01 Connection Pads 02 TFT 320x240 display 03 USB MINI-B connector 04 CHARGE indication LED 05 LI-Polymer battery connector 01 06 3.
04 03 System Specification 05 06 power supply Via USB cable (5V DC) 07 power consumption 58 mA with erased MCU (when on-board modules are inactive) 08 10 board dimensions 81.2 x 60.5 mm (3.19 x 2.38 inch) 11 weight ~50g (0.11lbs) 12 class B product Product complies with the Class B limit of EN 55022 and can be used in the domestic, residential, commercial and industrial environments.
1. Power supply USB power supply You can apply power supply to the board using MINI-B USB cable provided with the board. On-board voltage regulators provide the appropriate voltage levels to each component on the board. Power LED (GREEN) will indicate the presence of power supply. Figure 1-1: Connecting USB power supply Battery power supply You can also power the board using Li-Polymer battery, via on-board battery connector.
VCC-SYS VCC-USB DATA BUS DMP2160UW M1 VCC-1.8 C29 VREF-1.8 R49 4K7 E10 VCC-1.8 VCC-1.8 2.2uF FP3 1 2 3 FERRITE E11 10uF R34 4K7 10uF U3 Vout Vin GND EN ADJ R47 220K 5 4 R46 100K MIC5205-ADJ R50 0R VCC-3.3 VCC-3.3 R35 10K 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 USB MINIB VCC-3.3 VCC-BAT HDR2 HDR1 GND ID D+ DVBUS C28 10nF R43 10K CN1 BATT CONN VSENSE 5 4 3 2 1 FP2 FERRITE VCC-BAT R6 4K7 VCC-SYS CN3 PMEG3010ER D1 VCC-3.
2. PIC32MX460F512L microcontroller The mikromedia for PIC32® development system comes with the PIC32MX460F512L microcontroller. This high-performance 32-bit microcontroller with its integrated modules and in combination with other on-board modules is ideal for multimedia applications. Key microcontroller features - 1.56 DMIPS/MHz, 32-bit MIPS M4K Core; - 512K Flash (plus 12K boot Flash); MIPS M4K 32 -bit core - 80MHz, 1.
3.
Programming with mikroBootloader step 1 – Connecting mikromedia You can program the microcontroller with bootloader which is preprogrammed into the device by default. To transfer .hex file from a PC to MCU you need bootloader software (mikroBootloader USB HID) which can be downloaded from: http://www.mikroe.com/downloads/get/1605/ mikrobootloader_pic32mx4_v210.
step 2 – Browsing for .HEX file step 3 – Selecting .HEX file 01 01 02 Figure 3-3: Browse for HEX Figure 3-4: Selecting HEX 01 Click the Browse for HEX button and from a pop-up window (Figure 3.4) choose the .HEX file which will be uploaded to MCU memory. 01 Select .HEX file using open dialog window. 02 Click the Open button.
step 4 – Uploading .HEX file 01 01 Figure 3-5: Begin uploading Figure 3-6: Progress bar 01 To start .HEX file bootloading click the Begin uploading button. 01 Progress bar enables you to monitor .HEX file uploading.
step 5 – Finish upload 01 Figure 3-7: Restarting MCU Figure 3-8: mikroBootloader ready for next job 01 Click OK button after the uploading process is finished 02 Press Reset button on mikromedia board and wait for 5 seconds.
Programming with mikroProg™ programmer The microcontroller can be programmed with mikroProg™ programmer and mikroProg Suite™ for PIC® software. The mikroProg™ programmer is connected to the development system via the CN6 connector, Figure 3-9. mikroProg™ is a fast USB 2.0 programmer with mikroICD™ hardware In-Circuit Debugger. Smart engineering allows mikroProg™ to support PIC10®, PIC12®, PIC16®, PIC18®, dsPIC30/33®, PIC24® and PIC32® devices in a single programmer.
mikroProg Suite™ for PIC® Software PIC32 mikroProg™ programmer requires special programming software called mikroProg Suite™ for PIC®. 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.
Programming with ICD2® or ICD3® programmer The microcontroller can be also programmed with ICD2® or ICD3® programmer. These programmers connects with mikromedia board via ICD2 CONNECTOR BOARD. Figure 3-12: Connecting ICD2® or ICD3® programmer In order to enable the ICD2® and ICD3® programmers to be connected to the mikromedia board, it is necessary to provide the appropriate connector such as the ICD2 CONNECTOR BOARD. This connector should be first soldered on the CN5 connector.
Vcap 10uF VCC-3.3 VCC-3.3 VCC-3.3 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 E9 VCC-3.3 C7 C8 C25 100nF 100nF 100nF VCC-3.3 VCC-3.3 VCC-3.3 E8 C5 C6 10uF 100nF 100nF PGD2 PGC2 RB7 RB6 R3 100 1 2 3 4 5 M1X6 R15 100 VCC-3.3 CN6 PGC2 PGD2 MCLR# M1X5 Figure 3-13: mikroProg™ & ICD2 / ICD3 programmer connection schematic Page 19 6 5 4 3 2 1 ICD2/3 VCC-3.
4. Reset Button Board is equipped with reset button, which is located at the top of the front side (Figure 4-2). If you want to reset the circuit, press the reset button. It will generate low voltage level on microcontroller reset pin (input). In addition, a reset can be externally provided through pin 27 on side headers (Figure 4-3). NOTE You can also solder additional reset button on the appropriate place at the back side of the board, Figure 4-1.
Vcap E9 10uF VCC-3.3 R8 10K VCC-3.3 RST T2 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 C3 BUTTON BUTTON RE4 RE3 RE2 RG13 RG12 RG14 RE1 RE0 RA7 RA6 RG0 RG1 RF1 RF0 ENVREG Vcap/VDDcore RD7 RD6 RD5 RD4 RD13 RD12 RD3 RD2 RD1 PIC32MX460F512L RB6 RB7 RA9 RA10/VREF+ AVDD AVSS RB8 RB9 RB10 RB11 VSS VDD RA1 RF13 RF12 RB12 RB13 RB14 RB15 VSS VDD RD14 RD15 RF4 RF5 100 SOSCO SOSCI 100nF C30 22pF HDR2 RST C2 X1 CLKO CLKI C1 VCC-3.3 VCC-3.3 22pF 22pF VCC-3.
5. Crystal oscillator Figure 5-1: External crystal oscillator (X1) Board is equipped with 8MHz crystal oscillator (X1) circuit that provides external clock waveform to the microcontroller CLKO and CLKI pins. This base frequency is suitable for further clock multipliers and ideal for generation of necessary USB clock, which ensures proper operation of bootloader and your custom USB-based applications. Board also contains 32.
Vcap E9 10uF 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 VCC-3.
6. microSD Card Slot Figure 6-1: microSD card slot Board contains microSD card slot for using microSD cards in your projects. It enables you to store large amounts of data externally, thus saving microcontroller memory. microSD cards use Serial Peripheral Interface (SPI) for communication with the microcontroller.
Vcap E9 10uF 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 VCC-3.3 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 X3 SOSCO SOSCI SD-CD# C8 C25 100nF 100nF 100nF C30 22pF C2 22pF X1 CLKO CLKI C1 VCC-3.3 VCC-3.3 VCC-3.3 E8 C5 C6 10uF 100nF 100nF 22pF VCC-MMC VCC-3.
7. Touch Screen The development system features a TFT 320x240 display covered with a resistive touch panel. Together they form a functional unit called a touch screen. It enables data to be entered and displayed at the same time. The TFT display is capable of showing graphics in 262.144 different colors.
Vcap E9 10uF PMD15 PMD14 PMRD PMWR PMD13 PMD12 PMD8 PMD9 PMD10 PMD11 PMD1 PMD0 TFT1 VCC-3.3 VCC-SYS 1K PIC32MX460F512L VSS RC14 RC13 RD0 RD11 RD10 RD9 RD8 RA15 RA14 VSS OSC2 OSC1 VDD RA5 RA4 SDA2/RA3 SCL2/RA2 D+/RG2 D-/RG3 VUSB VBUS U1TX/RF8 U1RX/RF2 RF3 LCD-RST Q3 BC846 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 C7 C8 C25 100nF 100nF 100nF E13 10uF PMD15 PMD14 PMD13 PMD12 PMD11 PMD10 PMD9 PMD8 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 E8 C5 C6 10uF 100nF 100nF R24 10K VCC-3.
8. Audio Module Figure 8-1: On-board VS1053 MP3 codec The mikromedia for PIC32® features stereo audio codec VS1053. This module enables audio reproduction by using stereo headphones connected to the system via a 3.5mm connector CN2. All functions of this module are controlled by the microcontroller over Serial Peripheral Interface (SPI).
Vcap E9 10uF 100nF 100nF VCC-3.3 VCC-3.3 VCC-3.3 E8 C5 C6 10uF 100nF 100nF 12 11 10 9 8 7 6 5 4 3 2 1 13 14 15 16 17 18 19 20 21 22 23 24 MP3-BSYNC R1 1M MP3-CS# C19 22pF X2 12.
9. USB connection Figure 9-1: Connecting USB cable to MINI-B USB connector PIC32MX460F512L microcontroller has integrated USB module, which enables you to implement USB communication functionality to your mikromedia board. Connection with target USB host is done over MINI-B USB connector which is positioned next to the battery connector.
Vcap E9 10uF VCC-3.3 VCC-3.3 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 VCC-3.
10. Accelerometer Figure 10-1: Accelerometer module On board ADXL345 accelerometer is used to measure acceleration in three axis: x, y and z. The accelerometer function is defined by the user in the program loaded into the microcontroller. Communication between the accelerometer and the microcontroller is performed via the I2C interface. You can set the accelerometer address to 0 or 1 by re-soldering the SMD jumper (zero-ohm resistor) to the appropriate position.
Vcap E9 10uF VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 R12 10K SCL2-RA2 SDA2-RA3 ACC ADDRESS VCC-3.3 3 13 12 11 10 9 8 2 SDA ADD Res NC INT2 INT1 1 VCC GND Res GND GND VCC ADXL345 J1 SMD JUMPER SDA2-RA3 SCL2-RA2 VCC-3.3 VCC-3.3 VCC-3.3 C7 C8 C25 100nF 100nF 100nF VCC-3.3 VCC-3.3 VCC-3.
11. Flash Memory Figure 11-1: Flash memory module Since multimedia applications are getting increasingly demanding, it is necessary to provide additional memory space to be used for storing more data. The flash memory module enables the microcontroller to use additional 8Mbit flash memory. It is connected to the microcontroller via the Serial Peripheral Interface (SPI).
Vcap 10uF VCC-3.
12. Pads Vcap RD3 RD2 RD1 RA7 RA6 10uF VCC-3.3 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 RG13 RG12 RG14 E9 27 R4 27 R7 100 PIC32MX460F512L RD14 RD15 RF4 RF5 RB14 RA1 Pads HDR2 RA0 RE8 RE9 RB5 RB4 RB3 RB2 RB1 RB0 R5 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 VCC-3.
13. Pinout 5V power supply Analog Lines Interrupt Lines Digital I/O lines SCK2 SPI2 SDI2 SDO2 3.3V power supply Reference Ground VSYS GND RB0 RB1 RB2 RB3 RB4 RB5 RB14 RE8 RE9 RA14 RA15 RA10 RC4 RB6 RB7 RF3 RG12 RG13 RG14 RG6 RG7 RG8 3.3V GND RST GND L R RD0 RD1 RD2 RD3 RA0 RA1 RA4 RA5 RA6 RA7 RD10 RD11 RD14 RD15 RF4 RF5 RF2 RF8 RA2 RA3 3.3V GND Reset pin Reference Ground left ch. right ch. audio out PWM lines Digital I/O lines RX UART TX SCL2 2 SDA2 I C 3.
14. Dimensions 1.6 63 73.66 2900 4 157 63.5 2500 2.03 80 7.62 300 43.2 1700 50.2 1976 55.88 2200 60.45 2380 36.58 1440 8.89 350 7 276 81.15 3195 2.54 100 Legend 3.2 126 57.6 2268 69.3 2728 Page 38 2.
15. mikromedia accessories We have prepared a set of extension boards pin-compatible with your mikromedia, which enable you to easily expand your board basic functionality. We call them mikromedia shields. But we also offer other accessories, such as Li-polymer battery, stacking headers, wire jumpers and more.
What’s next? You have now completed the journey through each and every feature of mikromedia for PIC32® board. You got to know it’s modules and organization. Now you are ready to start using your new board. We are suggesting several steps which are probably the best way to begin. We invite you to join the users of mikromedia™ brand. You will find very useful projects and tutorials and can get help from a large ecosystem of users.
Notes: Page 41
Notes: Page 42
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.
PIC32 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 mikromedia for PIC32 Manual ver. 1.