mikroElektronika mikromedia for dsPIC33 Manual

mikroElektronika mikromedia for dsPIC33 Manual

Compact development system rich with on-board peripherals for all-round multimedia development on dspic33fj256gp710a device.

Advertisement

Quick Links

mikromedia
for dsPIC33
®
Compact development system rich with on-board peripherals for all-round
multimedia development on dsPIC33FJ256GP710A device.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the mikromedia for dsPIC33 and is the answer not in the manual?

Questions and answers

Summary of Contents for mikroElektronika mikromedia for dsPIC33

  • Page 1 mikromedia ™ for dsPIC33 ® Compact development system rich with on-board peripherals for all-round multimedia development on dsPIC33FJ256GP710A device.
  • Page 2 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.
  • Page 3: Table Of Contents

    Table of Contents Introduction to mikromedia for dsPIC33® Programming with mikroProg™ programmer Package Contains mikroProg Suite™ for PIC Software Key Features Programming with ICD2 or ICD3 programmer System Specification 4. Reset buttons 1. Power supply 5. Crystal oscillator USB power supply 6.
  • Page 4: Introduction To Mikromedia For Dspic33

    Introduction to mikromedia for dsPIC33 ® 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...
  • Page 5: Package Contains

    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.
  • Page 6: Key Features

    Key Features Connection Pads TFT 320x240 display USB MINI-B connector CHARGE indication LED LI-Polymer battery connector 3.5mm headphone connector Power supply regulator FTDI chip Serial Flash memory RESET button VS1053 Stereo mp3 coder/decoder dsPIC33FJ256GP710A microcontroller Accelerometer Crystal oscillator Power indication LED microSD Card Slot ICD2/3 connector mikroProg connector...
  • Page 7: System Specification

    System Specification power supply Via USB cable (5V DC) power consumption 77 mA with erased MCU (when on-board modules are inactive) board dimensions 81.2 x 60.5cm (3.19 x 2.38 inch) weight ~50 g (0.11 lbs) Page 7...
  • Page 8: Power Supply

    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 of the board. Power LED (GREEN) will indicate the presence of power supply.
  • Page 9 VCC-SYS VCC-USB PMEG3010ER FERRITE VCC-SYS VBUS DMP2160UW HDR1 HDR2 10nF VCC-BAT USB MINIB BATT CONN VCC-3.3 VCC-1.8 VCC-BAT VCC-1.8 VREF-1.8 VCC-1.8 10uF 2.2uF Vout VSENSE 120K FERRITE 10uF MIC5205-ADJ VCC-3.3 VCC-3.3 VCC-3.3 Figure 1-3: Power supply schematics M1X26 M1X26 VCC-3.3 VCC-3.3 VCC-3.3 VCC-BAT...
  • Page 10: Dspic33Fj256Gp710A Microcontroller

    2. dsPIC33FJ256GP710A microcontroller mikromedia for dsPIC33® development system comes with 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. Key microcontroller features 40 MIPS - Up to Operation;...
  • Page 11: Programming The Microcontroller

    3. Programming the microcontroller The microcontroller can be programmed in three ways: Over UART bootloader Using mikroProg™ external programmer Using ICD2/3 external programmer Page 11...
  • Page 12: Programming With Mikrobootloader

    After software is downloaded unzip it to desired location and start ds30 Loader software. Figure 3-1: ds30 Loader open-source software NOTE Connect mikromedia for dsPIC33® with a PC before starting ds30 Loader software Page 12...
  • Page 13: Step 1 - Choosing Com Port

    Identifying device COM port step 1 – Choosing COM port Figure 3-2: Identifying COM port Figure 3-3: Selecting COM port NOTE From drop down list select USB COM port which is used for In Device Manager you can see which COM port is communication with a PC (in this case COM5) assigned to mikromedia (in this case COM5) Page 13...
  • Page 14: Step 2 - Choosing Device Family

    step 2 – Choosing device family step 3 – Choosing device Figure 3-5: Selecting Figure 3-4: Selecting MCU family MCU chip From drop down list select MCU family (dsPIC33FJ) From drop down list select MCU chip (256GP710A) Page 14...
  • Page 15: Step 4 - Browse For .Hex File

    step 4 – Browse for .HEX file Figure 3-7: Pop-up window for .HEX file choosing Select desired .HEX file Folder list Figure 3-6: Browse for .HEX file Click on Open button Browse button Click on and from pop-up window (figure 3-7) select .HEX file which will be uploaded to MCU memory Page 15...
  • Page 16: Step 5 - Set Baud Rate

    step 5 – Set Baud rate step 6 – Uploading .HEX file Figure 3-9: Write program Figure 3-8: Seting baud rate From drop down list set baud rate value to 256000 First RESET mikromedia and then, within 5s click on Write program Check check box...
  • Page 17 If you accidently erase bootloader program from MCU memory it is possible to load it again with external programer. NOTE mikromedia for dsPIC33® bootloader firmware.hex file is located in Firmware subfolder, Page 12. Figure 3-10: Program uploading Figure 3-11: Uploading is finished After uploading is finished you will get notice in Progress bar indicates .HEX file upload process...
  • Page 18: Programming With Mikroprog Programmer

    Programming with mikroProg ™ programmer mikroProg™ The microcontroller can be programmed with programmer 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™...
  • Page 19: Mikroprog Suite™ For Pic Software

    mikroProg Suite for PIC Software ™ ® mikroProg™ programmer requires special programming software called mikroProg Suite™ for PIC®. This software is used for programming Microchip® microcontroller families, including PIC10®, PIC12®, PIC16®, PIC18®, dsPIC30/33®, PIC24® and PIC32®. Software has intuitive interface and SingleClick™ programming technology.
  • Page 20: Programming With Icd2 Or Icd3 Programmer

    Programming with ICD2 or ICD3 programmer ® ® The microcontroller can be also programmed with ICD2® or ICD3® programmer. These programmers connects ICD2 CONNECTOR BOARD. with mikromedia board via Figure 3-15: Connecting ICD2® or ICD3® programmer In order to enable the ICD2® and ICD3® programmers to be connected to the Figure 3-14: development system, it is necessary to provide the appropriate connector such as the Placing ICD2®...
  • Page 21 10uF VCC-3.3 PGC1 VCC-3.3 PGD1 MCLR# M1X5 22pF RG15 SOSCO SOSCO/RC14 32.768KHz SOSCI SOSCI/RC13 RD11 RD10 22pF RA15 RG6/SCK2 RA14 22pF RG7/SDI2 CLKO RG8/SDO2 CLKO/RC15 8MHz MCLR# CLKI dsPIC33FJ256GP710A MCLR CLKI/RC12 22pF RA12 RA13 SCL1/RG2 VCC-3.3 SDA1/RG3 SCK1/RF6 SDI1/RF7 MCLR# RB2/AN2 SDO1/RF8 U1RX/RF2...
  • Page 22: Reset Buttons

    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).
  • Page 23 VCC-3.3 10uF HDR2 VCC-3.3 100nF 22pF RG15 SOSCO SOSCO/RC14 32.768KHz SOSCI SOSCI/RC13 RD11 RD10 22pF RA15 RG6/SCK2 RA14 22pF RG7/SDI2 CLKO RG8/SDO2 CLKO/RC15 8MHz CLKI VCC-3.3 dsPIC33FJ256GP710A MCLR CLKI/RC12 M1X26 22pF RA12 RA13 SCL1/RG2 SDA1/RG3 SCK1/RF6 SDI1/RF7 RB2/AN2 SDO1/RF8 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 U1RX/RF2...
  • Page 24: Crystal Oscillator

    5. Crystal oscillator 8MHz crystal Board is equipped with 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 32.768kHz Crystal oscillator applications.
  • Page 25: Microsd Card Slot

    6. microSD Card Slot microSD card slot Board contains 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.
  • Page 26: Touch Screen

    7. Touch Screen The development system features a TFT 320x240 display covered with a resistive touch screen. touch panel. Together they form a functional unit called a It enables data to be entered and displayed at the same time. The TFT display is capable of showing data in 262.144 diffe rent colors.
  • Page 27 10uF VCC-3.3 VCC-SYS TFT1 LED-K BC846 LED-A1 VCC-3.3 LED-A2 VCC-SYS LED-A3 LED-A4 LCD-BLED BAT43 BC846 LCD-RST RESET VSYNC RG15 22pF SOSCO BC846 HSYNC SOSCO/RC14 32.768KHz DOTCLK T-D13 SOSCI SOSCI/RC13 ENABLE T-D14 T-D15 T-D15 DB17 RD11 T-D14 LCD-RST DB16 T-D13 RD10 DB15 22pF T-D12...
  • Page 28: Audio Module

    8. Audio Module Figure 8-1: On-board VS1053 MP3 codec Figure 8-2: The mikromedia for dsPIC33 features stereo audio codec VS1053. This module Inserting 3.5mm enables audio reproduction by using stereo headphones connected to the headphones jack system via a 3.5mm connector CN2.
  • Page 29 10uF VCC-3.3 VCC-1.8 VCC-1.8 VCC-1.8 VCC-1.8 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 MP3-CS# MP3-RST# 100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF decoupling capacitors RG15 22pF SOSCO SOSCO/RC14 32.768KHz SOSCI SOSCI/RC13 VCC-1.8 VCC-3.3 10uF RD11 RD10 22pF 3.3nF 100K RA15 SCK2-RG6 RG6/SCK2...
  • Page 30: Usb-Uart Connection

    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 cable, since dsPIC33FJ256GP710A does not support USB protocol. Figure 9-1: Connecting USB cable to programming NOTE : Before connecting the board, make sure that you have FTDI drivers installed on connector...
  • Page 31 10uF VCC-3.3 22pF RG15 SOSCO VCC-3.3 VCC-3.3 SOSCO/RC14 32.768KHz SOSCI SOSCI/RC13 RD11 MCU-RX OSCO RD10 DTR# OSCI 22pF RTS# TEST VCCIO AGND TX/RX MCU-TX RA15 RG6/SCK2 RA14 CBUS0 22pF RG7/SDI2 VCC-USB CLKO CBUS1 FT232RL RG8/SDO2 CLKO/RC15 CLKI 8MHz dsPIC33FJ256GP710A MCLR CLKI/RC12 DSR# DCD#...
  • Page 32: Accelerometer

    10. Accelerometer ADXL345 On board 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 I 2 C via the interface.
  • Page 33: Flash Memory

    11. Flash Memory 10uF VCC-3.3 22pF RG15 SOSCO SOSCO/RC14 32.768KHz SOSCI SOSCI/RC13 Figure 11-1: RD11 RD10 22pF Flash memory module FLASH-CS# VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 RA15 SCK2-RG6 RG6/SCK2 RA14 MISO2-RG7 22pF RG7/SDI2 MOSI2-RG8 CLKO RG8/SDO2 CLKO/RC15 8MHz dsPIC33FJ256GP710A CLKI 10uF 100nF 100nF...
  • Page 34: Pads

    12. Pads 10uF VCC-3.3 VCC-SYS HDR2 HDR1 RG15 RG15 22pF SOSCO SOSCO/RC14 SOSCI 32.768KHz SOSCI/RC13 RD11 RD10 RD10 22pF RA15 RA15 SCK2-RG6 RA14 RA12 RG6/SCK2 RA14 MISO2-RG7 RA13 22pF RG7/SDI2 MOSI2-RG8 CLKO RA14 RG8/SDO2 CLKO/RC15 8MHz CLKI RD14 dsPIC33FJ256GP710A RA15 MCLR CLKI/RC12 RD15...
  • Page 35: Pinout

    13. Pinout 5V power supply Reset pin Reference Ground Reference Ground AN10 left ch. audio out AN2/SS1/CN4 right ch. AN3/CN5 AN4/CN6 AN5/CN7 OC5/CN13 AN20/INT1 RA12 OC6/CN14 AN21/INT2 RA13 INT3 RA14 INT4 RA15 RD14 IC7/U1CTS/CN20 PGEC1/AN6/OCFA RD15 IC8/U1RTS/CN21 PGED1 OC7/CN15 SCK1/INT0 AN17/T3CK/T6CK SDI1 RF12...
  • Page 36: Dimensions

    14. Dimensions 81.15 mm (3195 mils) 73.66 mm (2900 mils) 63.5 mm (2500 mils) 2.54 mm 2.67 mm (100 mils) (105 mils) Page 36...
  • Page 37: Mikromedia Accessories

    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. call them mikromedia shields. But we also offer other accessories, such as Li-polymer battery, stacking headers, wire jumpers and more.
  • Page 38: What's Next

    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™...
  • Page 39 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. The manual PDF edition can be printed for private or local use, but not for distribution.
  • Page 40 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, mikromedia for dsPIC33 ® Manual ver. 1.10b do not hesitate to contact us at office@mikroe.com...

Table of Contents