Compactdevelopment system rich with on-board peripherals for all-round
multimedia development on dsPIC33FJ256GP710A device.
™
®
Page 3
TO OUR VALUED CUSTOMERS
I want to express my thanks to you for being interested in our products and for having
condence 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
Package Contains 5
Key Features 6
System Specication 7
1. Power supply 8
USB power supply 8
Battery power supply 8
2. dsPIC33FJ256GP710A microcontroller 10
Key microcontroller features 10
3. Programming the microcontroller 11
Programming with mikroBootloader 12
step 1 – Choosing COM port 13
step 2 – Choosing device family 14
step 3 – Choosing device 14
step 4 – Browse for .HEX le 15
step 5 – Set Baud rate 16
step 6 – Uploading .HEX le 16
Programming with mikroProg™ programmer 18
mikroProg Suite™ for PIC Software 19
Programming with ICD2 or ICD3 programmer 20
4. Reset buttons 22
5. Crystal oscillator 24
6. MicroSD Card Slot 25
7. Touch Screen 26
8. Audio Module 28
9. USB-UART connection 30
10. Accelerometer 32
11. Flash Memory 33
12. Pads 34
13. Pinout 35
14. Dimensions 36
15. Mikromedia Accessories 37
16. What’s Next 38
Page 3
Page 5
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 ash memory, 2x26
connection pads and other. It comes preprogrammed with UART bootloader, but can also
be programmed with external programmers,
such as mikroProg™ or ICD2/3. Mikromedia is
compact and slim, and perfectly ts in the palm
of the hand, which makes it convenient platform
for mobile devices.
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.
20122011
www.mikroe.com
for dsPIC33
®
mikromedia
™
SCHEMATICS
We present you with a complete color schematics for mikromedia
™
for dsPIC33
®
development board. We want you to know what your board is consisted of and
how it actually works.
Damage resistant
01
protective box
mikromedia for dsPIC33®
0405
user’s guide
mikromedia for dsPIC33®
02
development system
mikromedia for dsPIC33®
schematics
Page 5
DVD with documentation
03
and examples
USB cable
06
Page 7
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.5mm headphone connector
07
Power supply regulator
08
FTDI chip
09
Serial Flash memory
10
RESET button
11
VS1053 Stereo mp3 coder/decoder
12
dsPIC33FJ256GP710A microcontroller
13
Accelerometer
14
Crystal oscillator
15
Power indication LED
microSD Card Slot
16
ICD2/3 connector
17
mikroProg connector
18
01
02
Page 6
03
04
05
06
System Specication
07
0809
10
12
14
1718
15
13
11
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)
16
Page 7
Page 9
1. Power supply
Battery power supply
You can also power the board using Li-Polymer battery,
via on-board battery connector. On-board battery charger
circuit MCP73832 enables you to charge the battery
over USB connection. LED diode (RED) will indicate
battery charging. Led is o when battery is full. Charging
current is ~250mA and charging voltage is 4.2V DC.
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
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.
Key microcontroller features
- Up to 40 MIPS Operation;
- 16-bit architecture;
- 256KB of program memory;
- 30.720 Bytes of RAM memory;
- 85 I/O pins;
- Internal Oscillator 7.37 MHz, 512kHz;
- nanoWatt features: Fast Wake/Fast Control;
- 2-UART, 2-SPI, 2-I2C, 2-CAN;
- DAC, ADC, etc.
Page 10
3. Programming the microcontroller
The microcontroller can be programmed in three ways:
Over UART bootloader
01
Using mikroProg™ external programmer
02
Using ICD2/3 external programmer
03
Page 11
Page 13
Programming with mikroBootloader
You can program the microcontroller with bootloader which is
pre-programmed into the device by default. To transfer .HEX le
from a PC to MCU you need bootloader software (ds30 Loader)
which can be downloaded from:
Click on Browse button and from pop-up window (gure 3-7)
select .HEX le which will be uploaded to MCU memory
01
Page 15
01
02
03
Figure 3-7: Pop-up window for .HEX le choosing
01
Select desired .HEX le
02
Folder list
03
Click on Open button
Page 17
step 5 – Set Baud rate
step 6 – Uploading .HEX le
01
02
Figure 3-8: Seting baud rate
From drop down list set baud rate value to 256000
01
Check Write program check box
02
01
Page 16
Figure 3-9: Write program
01
First RESET mikromedia and then, within 5s click on
Write button
NOTE
01
If you accidently erase bootloader program from MCU memory it is possible to load it again with external programer.
mikromedia for dsPIC33® bootloader rmware.hex le is located in Firmware subfolder, Page 12.
01
01
Figure 3-11: Uploading is nishedFigure 3-10: Program uploading
After uploading is nished you will get notice in
Progress bar indicates .HEX le upload process
Page 17
01
ds30 Loader history window
Page 19
Programming with mikroProg
™
programmer
Figure 3-12:
Connecting mikroProg™ to mikromedia™
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.
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. It supports over
570 microcontrollers from Microchip®. Outstanding performance,
easy operation and elegant design are it’s key features.
Page 18
mikroProg™ is a
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. mikroProg Suite™ is
updated regularly, at least four times a
year, so your programmer will be more
and more powerful with each new
release.
Figure 3-13: Main Window of mikroProg Suite™ for PIC® programming software
Page 19
Page 21
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. This connector should be rst soldered on the CN5 connector.
Then you should plug the ICD2® or ICD3® programmer into it, Figure 3-14.
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).
Figure 4-1: Reset button located at the backside of the board
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.
Figure 5-2:
Crystal oscillator schematics
NOTE :
Figure 5-1:
Crystal oscillator
module (X1)
The use of crystal in all other schematics is implied even if it is purposely
left out, because of the schematics clarity.
Page 24
6. microSD Card Slot
VCC-3.3
R5 27
R4 27
VREF-1.8
C31
22pF
C30
22pF
X3 32.768KHz
C2
22pF
C1
22pF
X1 8MHz
E9
10uF
MOSI2-RG8
SCK2-RG6
SOSCO
SOSCI
CLKO
CLKI
SD-CD#
SD-CS#
MISO2-RG7
3029282734
33
58
57
56
55
54
53
52
46
3635424344
453750948
49
11
12
32
72
69
68
67
66
65
64
63
4
3
78
77
24
23
18
17
16
15
14
13
5
6
7
8
10
79
80
1
2
22
21
20
19
62
61
60
59
383940
41
47
71
31
51
70
26
25
76
75
74
73
dsPIC33FJ256GP710A
81828384858687888990919293949596979899
100
RB11
RB10/AN10
RB9/AN9
RB8/AN8
RB13
RB12
RE7
RC1
RC2
RC3
RA15
SCL1/RG2
RB15
RB14
SDO1/RF8
SDI1/RF7
SCK1/RF6
SDA1/RG3
GND
VCC
RA6
RG0
RG1
RE0
RF1
RF0
RD7
RD6
RE6
RE5
RE2
RG13
RG12
RG14
RE1
RA7
RG8/SDO2
RA9/Vref-
RB1
RB2/AN2
RB3
RB4
RB5
RA13
RD9
RD8
U1RX/RF2
U1TX/RF3
GND
RG7/SDI2
RG6/SCK2
RA1
RE3
RE4
RG15
VCC
RB7/PGED1
RB6/PGEC1
RB0
RF4
RF5
RA14
RA5
RD14
RD15
RA2
RF13
VCC
RA3
VCC
VCC
RA12
RA0
VCC
GND
RF12
RA4
GND
VCAP
AGND
AVCC
RA10/Vref+
MCLR
RC4
CLKI/RC12
CLKO/RC15
RD10
RD3
RD1
SOSCI/RC13
SOSCO/RC14
GND
RD2
RD12
RD13
RD4
RD5
RG9
RD11
RD0
U1
SD-CS#
R11
10K
R10
10K
VCC-MMC
R9
10K
SD-CD#
VCC-MMC
R16
27
VCC-3.3
E6
10uF
C38
100nF
FP1
FERRITE
1
2
4
5
6
7
CD
MOSI2-RG8
SCK2-RG6
MISO2-RG7
VCC-MMC
CSDin+3.3VSCKGNDDout
CD
G
CS
Din
+3.3V
SCK
GND
Dout
CD
GND
CN4
C5
100nFC6100nFC7100nF
E8
10uF
VCC-3.3
VCC-3.3
VCC-3.3VCC-3.3
C8
100nF
VCC-3.3
decoupling capacitors
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.
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 die rent colors.
Figure 7-1:
Touch Screen
Page 26
VCC-3.3
VREF-1.8
C31
22pF
C30
22pF
X332.768KHz
C2
22pF
C1
22pF
X18MHz
E9
10uF
T-D6
T-D7
PMRD
PMWR
LCD-BLED
T-D12
T-D11
T-D10
T-D9
T-D8
T-D5
T-D4
T-D3
T-D2
SOSCO
SOSCI
CLKO
CLKI
LCD-RS
LCD-YU
LCD-XL
LCD-YD
LCD-XR
T-D1
LCD-RST
LCD-CS#
T-D0
T-D15
T-D14
T-D13
302928
27
34
33
58
57
56
55
54
53
52
46
36
35
424344
453750948
49
11
12
32
72
69
68
67
66
65
64
63
4
3
78
77
24
23
18
17
16
15
14
13
5
6
7
8
10
79
80
1
2
22
21
20
19
62
61
60
59
383940
41
47
71
31
51
70
26
25
76
75
74
73
dsPIC33FJ256GP710A
81828384858687888990919293949596979899
100
RB11
RB10/AN10
RB9/AN9
RB8/AN8
RB13
RB12
RE7
RC1
RC2
RC3
RA15
SCL1/RG2
RB15
RB14
SDO1/RF8
SDI1/RF7
SCK1/RF6
SDA1/RG3
GND
VCC
RA6
RG0
RG1
RE0
RF1
RF0
RD7
RD6
RE6
RE5
RE2
RG13
RG12
RG14
RE1
RA7
RG8/SDO2
RA9/Vref-
RB1
RB2/AN2
RB3
RB4
RB5
RA13
RD9
RD8
U1RX/RF2
U1TX/RF3
GND
RG7/SDI2
RG6/SCK2
RA1
RE3
RE4
RG15
VCC
RB7/PGED1
RB6/PGEC1
RB0
RF4
RF5
RA14
RA5
RD14
RD15
RA2
RF13
VCC
RA3
VCC
VCC
RA12
RA0
VCC
GND
RF12
RA4
GND
VCAP
AGND
AVCC
RA10/Vref+
MCLR
RC4
CLKI/RC12
CLKO/RC15
RD10
RD3
RD1
SOSCI/RC13
SOSCO/RC14
GND
RD2
RD12
RD13
RD4
RD5
RG9
RD11
RD0
U1
R23
1K
VCC-SYS
VCC-3.3
E13
10uF
R25
10K
VCC-3.3
R24
10K
LCD-RST
LCD-CS#
VCC-3.3
LCD-BLED
R40
12
VCC-SYS
D2
BAT43
LED-A1
2
DB17
15
HSYNC
12
RD
35
VSYNC
11
WR/SCL
36
LED-A2
3
LED-A3
4
LED-A4
5
IM0
6
ENABLE
14
IM1
7
IM2
8
IM3
9
DOTCLK
13
GND
43
SDO
33
RESET
10
RS
37
CS
38
FMARK
39
VCC-IO
40
XR
44
YD
45
XL
46
SDI
34
LED-K
1
YU
47
DB16
16
DB15
17
DB14
18
DB13
19
DB12
20
DB11
21
DB10
22
DB9
23
DB8
24
DB7
25
DB6
26
DB5
27
DB4
28
DB3
29
DB2
30
DB1
31
DB0
32
VCC
41
VCC-I
42
TFT1
MI0283QT2
VCC-3.3
LCD-YU
LCD-XL
Q3
BC846
Q2
BC846
Q1
BC846
C22
18nF
R42
300K
C21
18nF
R41
300K
LCD-RST
LCD-RS
LCD-CS#
LCD-YU
LCD-XL
LCD-YD
LCD-XR
PMRD
PMWR
VCC-3.3VCC-3.3
T-D5
T-D6
T-D7
T-D4
T-D8
T-D9
T-D10
T-D11
T-D12
T-D13
T-D14
T-D15
T-D3
T-D2
T-D1
T-D0
C5
100nFC6100nFC7100nF
E8
10uF
VCC-3.3
VCC-3.3
VCC-3.3VCC-3.3
C8
100nF
VCC-3.3
decoupling capacitors
Figure 7-2: Touch Screen connection schematics
Page 27
Page 29
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).
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 ashes when USB and controller communicate.
On board ADXL345 accelerometer is used to
measure acceleration in three axis: x, y and z. The
accelerometer’s function is dened by the user in the
program loaded into the microcontroller. Communication
between the accelerometer and the microcontroller is performed
via the I2C interface.
Figure 10-2:
Accelerometer
connection
schematics
Page 32
Figure 10-1:
Accelerometer
module
You can set the accelerometer
address to 0 or 1 by re-soldering the
SMD jumper (zero-ohm resistor) to the
appropriate position. Jumper is placed
in address 1 position by default.
Most microcontroller pins are available for further connectivity via two 1x26 rows of connection
pads on both sides of the mikromedia board. They are designed to match additional shields,
such as Battery Boost shield, Gaming, PROTO shield and others.
3.3V3.3V3.3V power supply3.3V power supply
GNDGNDReference GroundReference Ground
RF2U1RXIC3
RF3U1TXSCK2/CN8
left ch.AN10
right ch.AN2/SS1/CN4
IC2
C1TX
audio out
CAN
UART
2
C
I
Programing lines
SPI LinesInterrupt LinesAnalog Lines
Page 35
I2C Lines
UART lines
PWM linesComparator lines
Page 37
73.66 mm
81.15 mm
63.5 mm
2.67 mm2.54 mm
36.58 mm
55.88 mm
60.45 mm
2.03 mm
(3195 mils)
(2900 mils)
(2380 mils)
(2200 mils)
(2500 mils)
(1440 mils)
(105 mils)(100 mils)
(80 mils)
8.89 mm
(350 mils)
7.62 mm
(300 mils)
14. Dimensions
Page 36
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 oer other
accessories, such as Li-polymer
battery, stacking headers, wire
01
jumpers and more.
Connect shield
02
BatteryBoost shieldPROTO shield
03
04
Gaming shield
050607
Li-Polimer batteryWire JumpersStacking headers
Page 37
Page 39
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 nd very useful projects and tutorials and can get help from a large ecosystem of
users. Welcome!
Compiler
You still don’t have an appropriate compiler? Locate dsPIC® compiler that suits you best on
the Product DVD provided with the package:
DVD://download/eng/software/compilers/
Choose between mikroC™, mikroBasic™ and mikroPascal™ and download fully functional
demo version, so you can begin building your rst applications.
Projects
Once you have chosen your compiler, and since you already got the board, you are ready to start writing your rst
projects. Visual TFT software for rapid development of graphical user interfaces enables you to quickly create your
GUI. It will automatically create necessary code which is compatible with mikroElektronika compilers. Visual TFT is
rich with examples, which are an excellent starting point for your future projects. Just load the example, read well
commented code, and see how it works on hardware. Visual TFT is also available on the Product DVD.
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. The manual PDF edition can be printed for private or local use,
but not for distribution. Any modication of this manual is prohibited.
MikroElektronika provides this manual ‘as is’ without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties or
conditions of merchantability or tness for a particular purpose.
MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall MikroElektronika,
its directors, ocers, employees or distributors be liable for any indirect, specic, incidental or consequential damages (including damages for loss of business
prots and business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product, even if MikroElektronika has
been advised of the possibility of such damages. MikroElektronika reserves the right to change information contained in this manual at any time without prior
notice, if necessary.
HIGH RISK ACTIVITIES
The products of MikroElektronika are not fault – tolerant nor designed, manufactured or intended for use or resale as on – line control equipment in hazard-
ous environments requiring fail – safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air trac
control, direct life support machines or weapons systems in which the failure of Software could lead directly to death, personal injury or severe physical or
environmental damage (‘High Risk Activities’). MikroElektronika and its suppliers specically disclaim any expressed or implied warranty of tness for High
Risk Activities.
TRADEMARKS
The MikroElektronika name and logo, the MikroElektronika logo, mikroC™, mikroBasic™, mikroPascal™, mikroProg™, EasyPIC Fusion™, mikroBUS™, Click Boards™,
mikroProg™, and mikromedia™ are trademarks of MikroElektronika. All other trademarks mentioned herein are property of their respective companies.
All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are only
used for identication or explanation and to the owners’ benet, with no intent to infringe.