mikromedia for dsPIC33EP ™ ® Compact development system rich with on-board peripherals for all-round multimedia development on dsPIC33EP512MU810 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 dsPIC® 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 dsPIC33EP® 4 Programming with mikroProg™ programmer 16 Package Contains 5 mikroProg Suite™ for PIC® Software 17 Key Features 6 Programming with ICD2 or ICD3 programmer 18 System Specification 1. Power supply USB power supply Battery power supply ® ® 7 4. Reset Button 20 8 5. Crystal Oscillator 22 8 6. MicroSD Card Slot 23 8 7. Touch Screen 24 10 8. Audio Module 26 10 9. USB connection 28 3.
Introduction to mikromedia for dsPIC33EP® The mikromedia for dsPIC33EP® 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 16-bit dsPIC33EP512MU810 microcontroller. The mikromedia for dsPIC33EP 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 20122011 www.mikroe.com Copyright ©2011 Mikroelektronika. All rights reserved. Mikroelektronika, Mikroelektronika logo and other Mikroelektronika trademarks are the property of Mikroelektronika. All other trademarks are the property of their respective owners. Unauthorized copying, hiring, renting, public performance and broadcasting of this DVD prohibited.
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 05 System Specification 06 power supply 07 Via USB cable (5V DC) 08 power consumption 10 75 mA with erased MCU (when on-board modules are inactive) board dimensions 11 81.2 x 60.5mm (3.19 x 2.38 inch) 12 weight 13 ~50 g (0.
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 CN3 FP2 FERRITE PMEG3010ER D1 DMP2160UW M1 C28 10nF VCC-BAT VREF-1.8 R49 4K7 2.2uF 1 2 3 FERRITE E11 10uF 10uF U3 Vout Vin GND EN ADJ R47 220K 5 4 R46 100K MIC5205-ADJ R50 0R VCC-3.3 R35 10K E10 VCC-1.8 VCC-1.8 FP3 R34 4K7 VCC-3.3 VCC-1.8 C29 R6 4K7 HDR1 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 M1X26 USB MINIB VCC-3.3 VCC-BAT VCC-SYS VBUS DD+ ID GND R43 10K CN1 BATT CONN VSENSE 1 2 3 4 5 VCC-3.
2. dsPIC33EP512MU810 microcontroller The mikromedia for dsPIC33EP® development system comes with the dsPIC33EP512MU810 microcontroller. This high-performance 16-bit microcontroller with its integrated modules and in combination with other on-board modules is ideal for multimedia applications.
3.
Programming with mikroBootloader step 1 – Connecting mikromedia You can program the microcontroller with bootloader which is pre-programmed 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/eng/downloads/get/1859/ mikrobootloader_dspic33ep_usbhid_v200.zip 01 After software is downloaded unzip it to desired location and start mikroBootloader USB HID software.
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 boot loading click the ”Begin uploading” button. 01 You can monitor .
step 5 – Finish upload 01 Figure 3-7: Restarting MCU Figure 3-8: mikroBootloader ready for next job 01 Click the ”OK” button after uploading is finished and wait for 5 seconds. Board will automatically reset and your new program will execute.
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 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 Figure 3-11: Placing ICD2® connector 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.
E9 10uF VCC-3.3 1 2 3 4 5 PGC1 PGD1 MCLR# 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.
VCC-3.3 R8 10K HDR2 RST E9 T2 VCC-3.
5. Crystal oscillator 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.768kHz Crystal oscillator (X3) which provides external clock for internal RTCC module. E9 VCC-3.
6. 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. E9 SD-CD# 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 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 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.
E9 VCC-3.3 VCC-SYS LCD-BLED PMRD PMWR PMD1 PMD0 PMD4 PMD3 PMD2 10uF Q1 BC846 VCC-3.
8. Audio Module Figure 8-1: On-board VS1053 MP3 codec Figure 8-2: Inserting 3.5mm headphones jack The mikromedia for dsPIC33EP® 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).
E9 MP3-CS# MP3-DCS 10uF VCC-1.8 VCC-1.8 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-1.8 VCC-1.8 C4 C9 C10 C11 C12 C23 C24 C26 C27 100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF VCC-3.3 22pF X3 32.768KHz C31 22pF C2 VCC-1.
9. USB connection dsPIC33EP512MU810 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.
E9 VCC-3.3 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 VCC-3.3 VCC-3.
10. Accelerometer On board ADXL345 accelerometer is used to measure acceleration in three axis: x, y and z. The accelerometer’s 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. E9 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 10uF VCC-3.
11. Flash Memory 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.
12. Pads E9 TX-RD1 RD7 RD6 RG0 RG1 RF1 RF0 RG14 RD13 RD12 RX-RD3 VCC-3.3 VCC-SYS 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 10uF RST L R RF2 RF4 RF5 RF8 RF13 RA0 RA1 RE8 RE9 RD8 RD9 RD11 RG0 RG1 RF0 RF1 RX-RD3 TX-RD1 SCL2-RA2 SDA2-RA3 VCC-3.
13. Pinout 5V power supply Reference Ground Analog Lines Interrupt Lines Digital I/O lines SCK2 SPI2 SDI2 SDO2 3.3V power supply Reference Ground 5V GND RB0 RB1 RB2 RB3 RB4 RB5 RB9 RD6 RD7 RD12 RD13 RA14 RA15 RD10 RC4 RD0 RB14 RG13 RG14 RG6 RG7 RG8 3.3V GND RST GND L R RF2 RF4 RF5 RF8 RF13 RA0 RA1 RE8 RE9 RD8 RD9 RD11 RG0 RG1 RF0 RF1 RD3 RD1 RA2 RA3 3.3V GND Reset pin Reference Ground left ch. audio out right ch. PWM lines Digital I/O lines RX UART TX SCL2 I2C SDA2 3.
14. Dimensions 81.15 mm (3195 mils) 73.66 mm (2900 mils) 36.58 mm (1440 mils) 2.03 mm (80 mils) 7.62 mm (300 mils) 55.88 mm (2200 mils) 60.45 mm (2380 mils) 8.89 mm (350 mils) 63.5 mm (2500 mils) 2.54 mm (100 mils) Page 34 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 dsPIC33EP 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 37
Notes: Page 38
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 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/esupport If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com mikromedia for dsPIC33EP Manual ver. 1.