mikromedia for PIC24 ™ ® Compact development system rich with on-board peripherals for all-round multimedia development on PIC24FJ256GB110 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 PIC24® 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 PIC24® 4 Programming with mikroProg™ programmer 16 Package Contains 5 mikroProg Suite™ for PIC® Software 17 Key Features 6 ICD2® or ICD3® programmer 18 System Specification 7 4. Reset Buttons 20 8 5. Crystal Oscillator 22 Battery power supply 8 6. microSD Card Slot 24 USB power supply 8 7. Touch Screen 26 2. PIC24FJ256GB110 microcontroller 10 8. Audio Module 28 Key microcontroller features 10 9.
Introduction to mikromedia for PIC24® The mikromedia for PIC24® 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 PIC24FJ256GB110 microcontroller. The mikromedia for PIC24 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 PIC24® mikromedia for PIC24® - 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 RD9 RF2 RF4 RF5 RF8 RF13 RA0 RA1 RE8 RE9 RD8 RD11 RG0 RG1 RF0 RF1 RD3 RD1 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.
03 04 System Specification 05 06 power supply Via USB cable (5V DC) 07 power consumption 56 mA with erased MCU (when back-light is ON) 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 of 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 DATA BUS VCC-SYS VCC-USB CN3 FP2 FERRITE PMEG3010ER D1 DMP2160UW M1 C28 10nF VCC-BAT VREF-1.8 R49 4K7 STAT 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 VCC-3.3 R46 100K MIC5205-ADJ VCC-3.3 R35 10K VCC-1.8 C29 R6 4K7 VCC-3.3 USB MINIB VCC-3.3 VCC-BAT LD2 CHARGE VCC-3.3 VCC-BAT R36 10K VCC-3.
2. PIC24FJ256GB110 microcontroller The mikromedia for PIC24® development system comes with the PIC24FJ256GB110 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 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/1704/mikrobootloader_pic24_usbhid_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 boot loading click the Begin uploading button. 01 .HEX file uploading can be monitored via progress bar.
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 PIC24 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 development system, it is necessary to provide the appropriate connector such as the ICD2 CONNECTOR BOARD.
10uF VCC-3.3 1 2 3 4 5 PGC2 PGD2 MCLR# 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.
4. Reset Buttons 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 E9 R8 10K 10uF RST T2 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 Figure 5-1: Crystal oscillator module (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.768kHz Crystal oscillator (X3) which provides external clock for internal RTCC module.
E9 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.
E9 10uF SD-CD# VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 E8 C5 C6 C7 C8 C34 10uF 100nF 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.3 decoupling capacitors PIC24FJ256GB110 PT 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 SOSCO SOSCI 22pF X3 32.
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 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). Figure 8-1: On-board VS1053 MP3 codec Figure 8-2: Inserting 3.
E9 MP3-CS# VCC-1.8 C12 C23 C24 C26 C27 100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF 22pF X3 MP3-RS T# MP3-DR EQ SOSCO SOSCI 32.768KHz C31 22pF C2 VCC-1.8 VCC-3.3 R33 E2 470 X1 8MHz U2 22pF MP3-DCS C19 C20 13 14 15 16 17 18 19 20 21 22 23 24 22pF 22pF R1 1M C5 C6 C7 C8 C34 10uF 100nF 100nF 100nF 100nF 100nF MP3-CS# MP3-RST# R2 10K decoupling capacitors R20 10K VCC-3.
9. USB connection Figure 9-1: Connecting USB cable to MINI-B USB connector PIC24FJ256GB110 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.
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.
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.3 R13 10K 22pF 22pF CLKO CLKI X1 8MHz ADXL345 VCC-3.3 C33 100nF 22pF VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 E8 C5 C6 C7 C8 C34 10uF 100nF 100nF 100nF 100nF 100nF decoupling capacitors VREF-1.8 Figure 10-2: Accelerometer connection schematic Page 33 SDA2-RA3 13 12 ACC ADDRESS 11 10 VCC-3.3 9 8 SDA ADD Res NC INT2 INT1 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).
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 RF0 RF1 RG14 RD13 RD12 RX-RD3 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 10uF VCC-SYS L R RD9 RF2 RF4 RF5 RF8 RF13 RA0 RA1 RE8 RE9 RD8 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 RD9 RF2 RF4 RF5 RF8 RF13 RA0 RA1 RE8 RE9 RD8 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 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 PIC24® 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.
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 PIC24® Manual ver. 1.