mikromedia+ for PIC32MX7® Amazingly compact, all-on-single-pcb development board carring 4.3’’ TFT Touch Screen and lots of multimedia peripherals, all driven by powerful PIC32MX795F512L microcontroller.
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 6. Port Expander 22 System Specification 4 7. MicroSD Card Slot 24 Package Contains 5 8. Touch Screen 26 1. Power Supply 6 9. Audio Module 28 2. PIC32MX795F512L Microcontroller 8 10. USB DEVICE Connection 30 8 11. USB HOST Connection 32 3. Programming the Microcontroller 9 12. Accelerometer 34 Programming with mikroBootloader 10 13.
Introduction to mikromedia+ for PIC32MX7® System Specification The mikromedia+ for PIC32MX7® is a compact development system which allows development of devices with multimedia contents. The central part of the system is a 32-bit 100-pin PIC32MX795F512L microcontroller. The mikromedia+ for PIC32MX7® feature lots of on board modules such as stereo power supply Via USB cable (5V DC) or via screw terminals (5 - 12V DC) MP3 codec, 4.
Package Contains 01 Damage resistant protective box 02 mikromedia+ for PIC32MX7® development system 03 Two 1x26 male headers and one 2x5 header 04 mikromedia+ for PIC32MX7® user’s guide 05 mikromedia+ for PIC32MX7® schematic 06 USB cable and microSD card Page 5
1. Power Supply Figure 1-1: USB power supply Figure 1-2: Battery power supply Figure 1-3: Screw terminals power supply The mikromedia+ for PIC32MX7® board can be powered in three different ways: via USB connector using MINI-B USB cable provided with the board (CN4), via battery connector using Li-Polymer battery (CN5) or via screw terminals using laboratory power supply (CN3). After you plug in the appropriate power supply turn the power switch ON (SW1).
VCC-3.3V Q1 USB-PSW 1 4 U6 EN 3 R38 10K 5 VCC-5V R1 3 OC 2 1 2 3 4 5 1 2 3 4 5 CN3 R42 D4 E7 10uF M1 DMP2160UW E8 10uF R46 D5 B340A 10K USB-VBUS 2 3 R51 1M CN5 1 2 3 4 5 VIN PWR-EN R29 100K BAT-VSENSE BAT-VSENSE C72 C79 22uF 1uF 100nF 10nF C140 C141 100pF SW1 JS202011AQN VCC-5V VCC-3.3V Q4 BC846 R61 10K LD1 TPS63060 C73 22uF VCC-3.
2. PIC32MX795F512L microcontroller The mikromedia+ for PIC32MX7® development board comes with the 100-pin PIC32MX795F512L microcontroller. This high-performance 32-bit microcontroller has integrated modules, such as 512K of flash and 128K of RAM easily handling demanding applications. MIPS M4K 32 -bit core - 80MHz, 1.
3.
Programming with mikroBootloader Microcontroller is pre-programmed with USB HID Bootloader, which can be used to upload new device firmware. To transfer firmware .HEX file from a PC to MCU you need to use mikroBootloader USB HID application, which can be downloaded from: http://www.mikroe.com/downloads/get/2031/mikromedia_plus_pic32mx7_bootloader.
step 2 – Browsing for .HEX file step 3 – Selecting .HEX file 01 0101 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 that will be uploaded to MCU memory. 01 Select .HEX file from the 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 In order to upload .HEX file click the Begin uploading button. 01 .HEX file uploading can be monitored via progress bar.
step 5 – Finish Upload 01 01 Figure 3-7: Restarting MCU Figure 3-8: mikroBootloader ready to use 01 Click the OK button after uploading is finished. The board will be automatically reset and after 5 seconds your new program will be executed.
Programming with mikroProg™ Programmer Figure 3-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 2X5 mikroProg™ connector, Figure 3-9. mikroProg™ is a fast USB 2.0 programmer with hardware Debugger support. It supports IC10®, PIC12®, PIC16®, PIC18®, dsPIC30/33®, PIC24® and PIC32® devices from Microchip®.
E10 VCC-3.3V VCC-3.3V C113 100nF 100nF U18 VCC-3.3V C114 C115 C116 100nF 100nF 100nF MCLR# VCC-3.3V C117 C124 C125 100nF 1uF 1uF VCC-3.3V C127 C128 C129 1uF 10nF 10nF 10nF RG15 VDD RE5 RE6 RE7 RC1 RC2 RC3 RC4 RG6 RG7 RG8 MCLR RG9 VSS VDD RA0 RE8 RE9 RB5 RB4 RB3 RB2 RB1 RB0 PIC32MX795F512L VSS SOSCO/RC14 SOSCI/RC13 RD0 RD11 RD10 RD9 RD8 RA15 RA14 VSS OSC2/RC15 OSC1/RC12 VDD RA5 RA4 RA3 RA2 D+/RG2 D-/RG3 VUSB VBUS RF8 RF2 RF3 FP4 C133 C134 C135 1uF 100nF 10nF VCC-3.
mikroProg Suite™ for PIC® Software PIC32 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®. Software has intuitive interface and SingleClick™ programming technology. Download the latest version of mikroProg Suite™ and your programmer is ready to program new devices.
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
4. Reset Button The board is equipped with reset button, which is located on the front side of the board. One press on the reset button will generate a low voltage level on the microcontroller reset pin (input). Reset button can also be externally provided through the pin 27 on the side headers.
VCC-3.3V VCC-3.3V C113 100nF 100nF 100nF E10 T1 RESET C99 100nF U18 VCC-3.3V C116 100nF 100nF VCC-3.3V VCC-3.3V C117 C124 C125 100nF 1uF 1uF C126 C127 C128 C129 1uF 10nF 10nF 10nF VCC-3.
5. Crystal Oscillators and 2.048V Reference The board is equipped with 01 16MHz crystal oscillator (X4) circuit that provides external clock waveform to the microcontroller OSC1 and OSC2 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. The board also contains 02 32.
E10 VCC-3.3V VCC-3.3V C112 C113 100nF 100nF 100nF U18 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 VCC-3.3V C114 C115 C116 100nF 100nF 100nF VCC-3.
6. Port Expander Figure 6-1: Port Expander mikromedia+ for PIC32MX7 ® features a 16-bit I/O port expander module MCP23S17 which communicates with PIC32MX795F512L microcontroller via SPI serial interface. This module enables you to expand the number of microcontroller I/O pins with two 8-bit I/O ports (PORTA and PORTB). Each of them consists of registers for input, output and polarity selection.
E10 VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V C130 100nF VCC-3.3V 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 EXP-GPIO7 EXP-GPIO6 EXP-GPIO5 EXP-GPIO4 EXP-GPIO3 EXP-GPIO2 EXP-GPIO1 EXP-GPIO0 EXP-INT EXP-RST# SPI_MISO VCC-3.
7. microSD Card Slot 01 02 Figure 7-1: The board contains 01 microSD card slot for using 02 microSD cards in your projects. microSD Card Slot 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. Ferrite and capacitor are provided to compensate the voltage and current glitch that can occur when pushingin and pushing-out microSD card into the socket.
C111 C112 C113 100nF 100nF 100nF SD-CD# SD-CS# VCC-3.3V E10 C109 22pF SOSCO SOSCI VCC-3.3V X5 32.768KHz C110 22pF 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 10uF 100nF 100nF VCC-3.3V SPI_MISO C117 C124 C125 100nF 1uF 1uF VCC-3.
8. Touch Screen The development system features a 4.3‘‘ TFT 480x272 display covered with a resistive touch panel. Together they form a functional unit called a touch screen, Figure 8-1. It enables data to be entered and displayed at the same time. The TFT display is capable of showing graphics in 256K different colors.
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 R95 4K7 SOSCO SOSCI C109 22pF SOSCO SOSCI C110 22pF X5 32.768KHz VCC-3.3V IN OUT 2 C41 2.2uF GND 3 EN ADJ AP7331-ADJ TP_INT# OSC2 OSC1 C107 22pF OSC2 OSC1 C108 22pF TFT-D0 TFT-D1 TFT-D2 TFT-D3 TFT-D4 VCC-1.
9. Audio Module Figure 9-1: On-board VS1053 MP3 codec 03 01 02 mikromedia+ for PIC32MX7® features stereo audio codec 01 VS1053. This module enables audio reproduction and sound recording by using 02 stereo headphones with microphone connected to the system via a 03 3.5mm connector CN2. All functions of this module are controlled by the microcontroller over Serial Peripheral Interface (SPI). IN and OUT channels are also provided on side headers.
VCC-1.8V C56 100nF C60 100nF C61 100nF C57 100nF C62 100nF C138 100nF C63 100nF C58 100nF C64 100nF C65 100nF LINE_OUT_L R14 100K 10uF C42 3.3nF E3 R15 470 LINE_OUT_R E10 R16 100K 10uF VCC-3.3V R17 1K C44 MICP GBUF 100nF 1 4 3 RIGHT VCC-1.
10. USB DEVICE connection 01 Figure 10-1: Connecting USB cable to MINI-B USB connector 02 PIC32MX795F512L microcontroller has integrated USB module, which enables you to implement USB communication functionality to your mikromedia board. Connection with target USB host is establish over 01 MINI-B USB connector. For proper insertion of the 02 MINI-B USB cable refer to Figure 10-1.
E10 VCC-3.3V VCC-3.3V C112 C113 100nF 100nF 100nF 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 VCC-3.3V C114 C115 C116 100nF 100nF 100nF VCC-3.3V C124 C125 100nF 1uF 1uF PIC32MX795F512L VSS SOSCO/RC14 SOSCI/RC13 RD0 RD11 RD10 RD9 RD8 RA15 RA14 VSS OSC2/RC15 OSC1/RC12 VDD RA5 RA4 RA3 RA2 D+/RG2 D-/RG3 VUSB VBUS RF8 RF2 RF3 X5 32.
11. USB HOST connection Note: When the device is working in USB HOST mode, it must not be mounted to other USB HOST. 02 Figure 11-1: Connecting USB cable to MINI-B USB connector via USB adapter 01 PIC32MX795F512L can also be used as USB HOST which enables microcontroller to establish connection with the target device (eg. USB keyboard, USB mouse, etc). The board provides necessary power supply to the target via TPS2041B IC.
VCC-3.3V VCC-3.3V 100nF 100nF 4 Q1 USB-PSW 1 U6 EN 5 VCC-5V R1 OC GND IN OUT 100nF 100nF 100nF CN4 1 2 3 4 5 FP5 VCC-3.3V USB MINIB C124 C125 100nF 1uF 1uF U18 Vusb_IN VBUS DD+ ID GND C117 C136 100nF D3 PMEG3010ER 2 PDTC114EU C116 USB-D_N USB-D_P USB-ID R47 1K E7 10uF E8 10uF USB-VBUS USB-PSW VCC-3.
12. Accelerometer Figure 12-1: Accelerometer module On board ADXL345 accelerometer is used to measure acceleration in three axis: x, y and z. Most common use is to determine the screen orientation, but there are many other fields of usage. Communication between the accelerometer and the microcontroller is performed through I2C interface. There is an option to select the alternate accel address with jumper J3.
VCC-3.3V E10 SCL 1 2 3 4 5 6 7 CS VCC GND Res GND GND VCC VCC-3.3V 100nF I2C_SDA ACCEL-ADR 13 12 11 10 9 8 U18 J3 ADXL345 VCC-3.3V C113 100nF 1 2 3 R66 10K ACCEL-INT# C139 100nF X5 32.768KHz C98 100nF C109 22pF SOSCO SOSCI ACCEL-INT# C110 22pF VCC-3.3V VCC-3.3V C114 C115 C116 C126 C127 C128 C129 100nF 100nF 100nF 1uF 10nF 10nF 10nF C117 C124 C125 C133 C134 C135 100nF 1uF 1uF 1uF 100nF 10nF VCC-ADC VCC-3.
13. Flash Memory Since multimedia applications are getting increasingly demanding, it is necessary to provide additional memory space 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).
E10 VCC-3.3V VCC-3.3V U18 C123 FLASH-CS# SPI_MISO VCC-3.3V C111 C112 C113 100nF 100nF 100nF VCC-3.3V U19 1 2 3 4 R68 27 CS SDO WP GND 100nF VCC HOLD SCK SDI 8 7 6 5 SPI_SCK SPI_MOSI M25P80 SPI_MISO VCC-3.
14. RF Transceiver Figure 14-1: RF transceiver antenna Figure 14-2: RF transceiver module mikromedia+ for PIC32MX7® board features RF transceiver chip with 2.4GHz chip antenna. It is suitable for wireless operation in the world wide ISM frequency band at 2.400 - 2.4835GHz with air data rate up to 2Mbps. RF transceiver module is connected to the microcontroller via the Serial Peripheral Interface (SPI).
E10 VCC-3.3V 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 10uF 1 2 3 4 5 VDD CE VSS CSN nRF24L01P ANT2 SCK ANT1 MOSI VDD_PA MISO 15 14 13 12 11 3.9nH 1.5pF L5 8.2nH SPI_MISO C84 N.M. L6 2.7nH 6 7 8 9 10 R63 10K C92 22pF R64 1M VCC-3.3V C85 2.2nF RF-INT# VCC-RF C91 22pF FP2 FERRITE C88 100nF C89 100nF C109 22pF X5 32.768KHz C90 100nF VCC-ADC FP4 C133 C134 C135 1uF 100nF 10nF SOSCO SOSCI C110 22pF VCC-3.
14. Ethernet 15. Eternet Transceiver Transceiver Figure 15-1: Ethernet transceiver module The development system features an Ethernet transceiver module ideal for local area networking (LAN). Communication over Ethernet is based on data packets called frames. Each frame contains source and destination addresses and error-checking data so that damaged data can be detected and re-transmitted.
VCC-ETH LAN-RX_P LAN-RX_N LAN-TX_P LAN-TX_N R2 12K1 FP6 C153 100nF E10 10uF R89 220 C119 22pF 1M C120 C121 22pF 2.2uF C122 100nF GND U18 18 17 16 15 14 13 27 27 27 R86 10K R39 R82 R83 LAN-TXD1 LAN-TXD0 LAN-TXEN LAN-RST# LAN-CLKO LAN-MDC LAN-RXER VCC-ETH LAN-CRS_DV 27 R87 220 Rbias RXP RXN TXP TXN VDD1A 25MHz R85 ACTIVE TXD1 TXD0 TXEN nRST REFCLKO MDC LAN8720A RXD1 RXD0 VDDIO RXER CRS_DV MDIO X6 LD6 LINK U10 7 8 9 10 11 12 LD5 LAN-CLKO R91 R92 R90 1.5K FP4 VCC-3.
16. Buzzer The board is also equipped with piezo buzzer. It is an electric component which can be used to create sound when is provided with electrical signal. This is usually a PWM signal coming from a microcontroller pin. Frequency of the signal determines the pitch of the sound and duty cycle of the signal can be used to increase or decrease the volume.
E10 VCC-3.3V VCC-3.3V C111 C112 C113 100nF 100nF 100nF 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 10uF C115 C116 100nF 100nF 100nF VCC-3.3V C117 C124 C125 100nF 1uF 1uF C127 C128 C129 1uF 10nF 10nF 10nF 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 C126 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 FP4 C133 C134 C135 1uF 100nF 10nF VCC-3.3V C110 22pF C107 22pF C118 22pF X5 32.
17. Other Modules 03 02 04 01 The board also contains other useful peripherals such as 01 PIN photodiode, 02 IR receiver, 03 RGB led diode and 04 analog temperature sensor. PIN photodiode is a type of photo detector. It has high sensitivity and response speed. It is connected to the microcontroller analog pin RB8. IR receiver is used in infrared remote control systems. The demodulated output signal obtained from IR module can be directly decoded by a microcontroller.
VCC-5V VCC-3.3V 6 4 R40 U17A LM358 150K 7 5 AN-PD C150 100nF U18 C113 100nF 100nF X5 32.768KHz VCC-3.
18. Pads 5V power Ref. Ground Analog lines GPIO CAN lines SPI1 lines ETH-TX ETH-RX 3.3V power Ref. Ground 5V GND RB11 RB12 RB1 RB0 RB6 RB7 GPA0 GPA1 GPA2 GPA3 GPA4 GPA5 RC3 RC2 RD9 RD10 RC4 RD0 N P N P 3.3V GND PWM Interrupt I2C UART 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. Analog lines SPI CAN 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. RST 3.
VCC-5V VCC-3.3V VCC-3.3V C115 C116 100nF 100nF 100nF VCC-3.3V C117 C124 C125 100nF 1uF 1uF VCC-3.3V C126 C127 C128 C129 1uF 10nF 10nF 10nF VCC-ADC FP4 C133 C134 C135 1uF 100nF 10nF VCC-3.
19. mikromedia+ SHIELD for PIC32MX7® 02 01 07 04 01 03 We have also made an extension board pin-compatible with your mikromedia+ board, which enables you to easily expand your basic board functionality. It is called mikromedia+ SHIELD for PIC32MX7®.
VCC-3.3V RB11/AN1 RB6/RST1 RB7/CS1 RD10/SPI-SCK RC4/SPI-MISO RD0/SPI-MOSI VCC-5V AN RST CS SCK MISO MOSI 3.3V GND 1 VCC-3.3V RB12/AN2 GPA0/RST2 GPA1/CS2 RD10/SPI-SCK RC4/SPI-MISO RD0/SPI-MOSI GPB0/PWM1 GPB4/INT1 RF4/UART-RX RF5/UART-TX RA2/I2C-SCL RA3/I2C-SDA PWM INT RX TX SCL SDA 5V GND VCC-5V VCC-5V AN RST CS SCK MISO MOSI 3.3V GND 2 VCC-3.
20. Click boards are plug and play! So far, MikroElektronika has released more than 60 mikroBUS™ compatible click Boards™. On average, one click board is released per week. Our intention is to enable you to easily expand with as many add-on boards as possible, so you will be able to easily expand the functionality of your development board.Each click board™ comes with a set of working example codes. Please, check the list of currently available boards on the following link: http://www.mikroe.
RFid click™ Relay click™ 8X8 click™ BarGraph click™ 7seg click™ THERMO click™ FM click™ Gyro click™ Page 51 Bluetooth2 click™ Thunder click™ USB SPI click™ EEPROM click™ LightHz click™ Pressure click™
21. Dimensions 119.54 4706 111.54 4391 7.77 306 72.78 2865 5 1.6 4 197 63 157 63.5 2600 9.2 362 24.2 946 7.99 314.5 67.31 2650 78 3071 44.3 1744 70 2756 14.7 579 10.16 400 6.8 268 8.38 330 Legend mm mils 8.64 340 2.54 100 9 354 8.7 362 5.59 220 7.5 295 73.56 2896 81.63 3214 Page 52 3.
22. What’s next? Your journey through each and every feature of mikromedia+ for PIC32MX7® board ends here. You got to know it’s modules and organization. Now you are ready to use it. We are suggesting several steps which are probably the best way to begin with. 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 54
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 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 www.mikroe.com/support/ If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com mikromedia Plus for PIC32MX7 Manual ver. 1.