mikromedia for dsPIC33 ™ ® Compact development system rich with on-board peripherals for all-round multimedia development on dsPIC33FJ256GP710A 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 dsPIC33® 4 Programming with mikroProg™ programmer 18 Package Contains 5 mikroProg Suite™ for PIC Software 19 Key Features 6 Programming with ICD2 or ICD3 programmer 20 System Specification 1. Power supply USB power supply Battery power supply 7 4. Reset buttons 22 8 5. Crystal oscillator 24 8 6. MicroSD Card Slot 25 8 7. Touch Screen 26 10 8. Audio Module 28 10 9. USB-UART connection 30 3.
Introduction to mikromedia for dsPIC33® The mikromedia for dsPIC33® 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 dsPIC33FJ256GP710A microcontroller. The mikromedia for dsPIC33 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 tradmarks are the property of their respective owners. Unauthorised copying, hiring, renting, public performance and broadcasting of this DVD prohibited.
Key Features 01 Connection Pads 02 TFT 320x240 display 03 USB MINI-B connector 04 CHARGE indication LED 05 LI-Polymer battery connector 06 3.
04 03 05 System Specification 06 power supply 07 Via USB cable (5V DC) 08 09 power consumption 11 10 77 mA with erased MCU (when on-board modules are inactive) board dimensions 12 81.2 x 60.5cm (3.19 x 2.38 inch) 13 weight 14 ~50 g (0.
1. Power supply USB power supply Figure 1-1: Connecting 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 of the board. Power LED (GREEN) will indicate the presence of 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 2.2uF 1 2 3 FERRITE E11 10uF 10uF U3 Vout Vin GND EN ADJ R47 120K 5 4 R46 22K 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 R49 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 R6 4K7 VCC-SYS VBUS DD+ ID GND R43 10K CN1 BATT CONN VCC-BAT VSENSE 1 2 3 4 5 VCC-3.
2. dsPIC33FJ256GP710A microcontroller The mikromedia for dsPIC33® development system comes with the dsPIC33FJ256GP710A 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 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 (ds30 Loader) which can be downloaded from: http://www.mikroe.com/eng/products/view/586/ mikrommb-for-dspic33-board/ After software is downloaded unzip it to desired location and start ds30 Loader software.
Identifying device COM port step 1 – Choosing COM port 01 Figure 3-2: Identifying COM port Figure 3-3: Selecting COM port NOTE 01 From drop down list select USB COM port which is used for communication with a PC (in this case COM5) In Device Manager you can see which COM port is assigned to mikromedia (in this case COM5) Page 13
step 2 – Choosing device family step 3 – Choosing device 01 01 Figure 3-5: Selecting MCU chip Figure 3-4: Selecting MCU family 01 From drop down list select MCU family (dsPIC33FJ) 01 From drop down list select MCU chip (256GP710A) Page 14
step 4 – Browse for .HEX file 01 01 02 03 Figure 3-7: Pop-up window for .HEX file choosing 01 Select desired .HEX file 02 Folder list Figure 3-6: Browse for .HEX file 03 Click on Open button 01 Click on Browse button and from pop-up window (figure 3-7) select .
step 5 – Set Baud rate step 6 – Uploading .
NOTE If you accidently erase bootloader program from MCU memory it is possible to load it again with external programer. mikromedia for dsPIC33® bootloader firmware.hex file is located in Firmware subfolder, Page 12. 01 01 Figure 3-10: Program uploading Figure 3-11: Uploading is finished 01 Progress bar indicates .
Programming with mikroProg™ programmer The microcontroller can be programmed with mikroProg™ programmer and mikroProg Suite™ fo PIC® software. The mikroProg™ programmer is connected to the development system via the CN6 connector, Figure 3-12. 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-15: Connecting ICD2® or ICD3® programmer Figure 3-14: Placing ICD2® connector In order to enable the ICD2® and ICD3® programmers to be connected to the development system, it is necessary to provide the appropriate connector such as the ICD2 CONNECTOR BOARD.
E9 10uF VCC-3.3 PGC1 PGD1 MCLR# VCC-3.
4. Reset Buttons Board is equipped with two reset buttons. First is located at the back side of the board (Figure 4-1), and second one is at the top of the front side (Figure 4-2). If you want to reset the circuit, press either of two buttons. 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).
VCC-3.3 E9 R8 10K 10uF HDR2 RST T2 T1 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 C3 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 VCC-3.
5. Crystal oscillator Board is equipped with 8MHz crystal oscillator (X1) circuit that provides external clock to the microcontroller OSC 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.
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 10uF VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 E8 C5 C6 C7 C8 10uF 100nF 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 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 data in 262.144 different colors.
E9 10uF VCC-3.3 TFT1 PMWR PMRD LCD-BLED T-D9 T-D8 T-D7 T-D6 T-D12 T-D11 T-D10 VCC-SYS Q1 BC846 VCC-3.3 R23 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-SYS D2 RE4 RE3 RE2 RG13 RG12 RG14 RE1 RE0 RA7 RA6 RG0 RG1 RF1 RF0 VCC VCAP RD7 RD6 RD5 RD4 RD13 RD12 RD3 RD2 RD1 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 32.768KHz LCD-RS LCD-YU LCD-XL T-D1 VREF-1.8 T-D15 T-D14 T-D13 T-D12 T-D11 T-D10 T-D9 T-D8 C30 22pF C2 VCC-3.
8. Audio Module Figure 8-1: On-board VS1053 MP3 codec Figure 8-2: Inserting 3.5mm headphones jack The mikromedia for dsPIC33 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 10uF MP3-DREQ MP3-RST# MP3-CS# MP3-DCS VCC-3.3 R19 10K VCC-3.3 VCC-1.8 VCC-1.8 VCC-1.8 C4 100nF C9 100nF C10 100nF VCC-1.8 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 C24 100nF C26 100nF C27 100nF MP3-CS# 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 MP3-RST# VCC-1.
9. USB-UART connection Mikromedia contains USB MINI-B connector which is positioned next to the battery connector. FT232RL USB-UART IC enables you to implement UART serial communication functionality via USB cable, since dsPIC33FJ256GP710A does not support USB protocol. Figure 9-1: Connecting USB cable to programming connector NOTE : Before connecting the board, make sure that you have FTDI drivers installed on your computer. Tx/Rx LED flashes when USB and controller communicate.
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.
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 RD3 RD2 RD1 RD6 RD5 RD4 RF1 RF0 RG0 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 RX TX SCL S DA L R RD0 RD1 RD2 RD3 RD4 RD5 RD8 RD9 RD14 RD15 RD6 RC2 RF12 RF13 RF0 RF1 RX1-RF2 TX1-RF3 SCL1-RG2 SDA1-RG3 VCC-3.
13. Pinout 5V power supply Reference Ground AN10 AN2/SS1/CN4 AN3/CN5 AN4/CN6 AN5/CN7 AN8 AN9 AN20/INT1 AN21/INT2 INT3 INT4 PGEC1/AN6/OCFA PGED1/AN7 SCK1/INT0 SDI1 SPI1 SDO1 COFS C2RX IC3 SCK2/CN8 SDI2/CN9 SPI2 SDO2/CN10 3.3V power supply Reference Ground 5V GND RB1 RB2 RB3 RB4 RB5 RB8 RB9 RA12 RA13 RA14 RA15 RB6 RB7 RF6 RF7 RF8 RG15 RG0 RD10 RG6 RG7 RG8 3.3V GND RST GND L R RD0 RD1 RD2 RD3 RD4 RD5 RD8 RD9 RD14 RD15 RD6 RC2 RF12 RF13 RF0 RF1 RF2 RF3 RG2 RG3 3.3V GND Reset pin Reference Ground left ch.
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 36 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 dsPIC33 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.
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 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 dsPIC33® Manual ver. 1.