Compact development system rich with on-board peripherals for all-round
multimedia development on PIC32MX460F512L device.
®
PIC32
™
Page 2
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 PIC32® and Windows® logos and product names are trademarks of Microchip Technology® and Microsoft® in the U.S.A. and other countries.
Page 3
Table of Contents
Introduction to mikromedia for PIC32® 4
Package Contains 5
Key Features 6
System Specication 7
1. Power supply 8
USB power supply 8
Battery power supply 8
2. PIC32MX460F512L microcontroller 10
Key microcontroller features 10
3. Programming the microcontroller 11
Programming with mikroBootloader 12
step 1 – Connecting mikromedia 12
step 2 – Browsing for .HEX le 13
step 3 – Selecting .HEX le 13
step 4 – Uploading .HEX le 14
step 5 – Finish upload 15
Programming with mikroProg™ programmer 16
mikroProg Suite™ for PIC® Software 17
Programming with ICD2® or ICD3® programmer 18
4. Reset Button 20
5. Crystal Oscillator 22
6. MicroSD Card Slot 23
7. Touch Screen 24
8. Audio Module 26
9. USB connection 28
10. Accelerometer 30
11. Flash Memory 31
12. Pads 32
13. Pinout 33
14. Dimensions 34
15. Mikromedia Accessories 35
16. What’s Next 36
Page 3
Page 4
Introduction to mikromedia for PIC32
The mikromedia for PIC32® 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 32-bit PIC32MX460F512L
microcontroller. The mikromedia for PIC32®
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 USB HID 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 ot her
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
•
S
D
R
is strictly prohibited.
A
O
B
M
T
A
N
E
N
M
U
P
A
O
L
L
S
E
V
E
D
•
•
•
•
•
•
•
•
•
M
I
K
R
O
B
A
S
I
C
,
M
I
K
R
O
P
A
S
C
A
L
C
O
M
P
I
L
E
R
S
•
•
•
•
•
•
•
•
•
D
R
I
V
E
R
S
•
•
•
•
•
•
•
•
•
P
R
O
G
R
A
M
M
E
R
S
A
N
D
D
E
B
U
G
G
E
R
S
•
•
•
•
•
•
•
•
•
M
I
K
R
O
M
E
D
I
A
B
O
A
R
D
S
•
•
•
•
•
•
•
•
•
Damage resistant
01
02
protective box
mikromedia for PIC32®
0405
user’s guide
mikromedia for PIC32
development system
mikromedia for PIC32®
schematic
Page 5
®
DVD with documentation
03
and examples
USB cable
06
Page 6
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
Serial Flash memory
09
RESET button
10
VS1053 Stereo mp3 coder/decoder
11
PIC32MX460F512L microcontroller
12
Accelerometer
13
Crystal oscillator
14
Power indication LED
15
microSD Card Slot
ICD2/3 connector
16
mikroProg connector
17
09
01
02
Page 6
Page 7
03
04
05
06
System Specication
16
07
11
08
13
17
14
12
10
15
power supply
Via USB cable (5V DC)
power consumption
58 mA with erased MCU
(when on-board modules are inactive)
board dimensions
81.2 x 60.5mm (3.19 x 2.38 inch)
weight
~50 g (0.11 lbs)
Page 7
Page 8
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
when battery is charging. 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 on the board. Power
Figure 3-3: Browse for HEXFigure 3-4: Selecting HEX
01
02
Click the Browse for HEX button and from a
0101
pop-up window (Figure 3.4) choose the .HEX le
which will be uploaded to MCU memory.
Page 13
02
Select .HEX le using open dialog window.
Click the Open button.
Page 14
step 4 – Uploading .HEX le
01
Figure 3-5: Begin uploadingFigure 3-6: Progress bar
01
To start .HEX le bootloading click the
0101
Begin uploading button.
Page 14
Progress bar enables you to monitor .HEX le uploading.
Page 15
step 5 – Finish upload
01
Figure 3-7: Restarting MCU
Click OK button after the uploading process is nished
01
Press Reset button on mikromedia board and wait
02
for 5 seconds. Your program will run automatically
Figure 3-8: mikroBootloader ready for next job
Page 15
Page 16
Programming with mikroProg
™
programmer
Figure 3-9:
Connecting mikroProg™ to mikromedia
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. It supports over 570 microcontrollers
from Microchip®. Outstanding performance, easy operation and
™
Page 16
elegant design are it’s key features.
Page 17
mikroProg Suite™ for PIC® Software
PIC32
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-10: Main Window of mikroProg Suite™ for PIC® programming software
Page 17
Page 18
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-11:
Placing ICD2®
connector
Figure 3-12:
Connecting ICD2
or ICD3® programmer
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. This connector should be rst soldered on the CN5 connector.
Then you should plug the ICD2® or ICD3® programmer into it, Figure 3-11.
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
Figure 4-1: Location of additional reset button
You can also solder additional reset button
on the appropriate place at the back side
of the board, Figure 4-1.
(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.
The use of crystal in all other schematics is implied even if it is purposely
left out because of the schematics clarity.
VCC-3.3
VCC-3.3
C5
100nF
Page 22
100nF
100nF
VCC-3.3
C25
VCC-3.3
C6
Figure 5-1:
External crystal
oscillator (X1)
Page 23
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.
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 die rent colors.
The mikromedia for PIC32® 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).
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.
On board ADXL345 accelerometer is used to
measure acceleration in three axis: x, y and z. The
accelerometer 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.
U1
1
RG15
2
VDD
3
RE5
4
RE6
5
RE7
6
RC1
7
RC2
8
RC3
9
RC4
10
RG6/SCK2
11
RG7/SDI2
12
RG8/SDO2
13
MCLR
14
RG9
15
VSS
16
VDD
17
RA0/TMS
18
RE8/INT1
19
RE9/INT2
20
RB5
21
RB4
22
RB3
23
RB2
24
RB1
25
RB0
RE298RE3
95
RG1397RG1296RG14
93
94
88
89
91
RF1
RE0
RE1
RA792RA6
RG090RG1
100
99
RE4
PIC32MX460F512L
RB11
AVDD30RB933RB8
RB626AVSS31RB10
RB7
RA928RA10/VREF+
27
29
VSS
VDD
RA138RF1339RF12
35
32
36
34
37
87
86
RF0
40
85
RD784RD683RD582RD4
ENVREG
Vcap/VDDcore
RB1342RB1241RB1544RB14
E9 10uF
43
VCC-3.3
VCC-3.3
VCC-3.3
C7
100nFC8100nF
VCC-3.3
E8
10uF
VCC-3.3
1
2
3
4
5
6
U9
100nF
VCC
GND
Res
GND
GND
VCC
C33
100nF
VCC-3.3
VCC-3.3
C5
C32
100nF
R13
10K
14
13
SDA
SCL
ACC ADDRESS
12
ADD
11
Res
10
NC
9
INT2
8
INT1
CS
7
ADXL345
VCC-3.3
C25
100nF
VCC-3.3
Figure 10-2:
C6
Accelerometer
100nF
connection
schematic
VCC-3.3
R12
10K
VCC-3.3
123
J1
SMD JUMPER
SCL2-RA2
SDA2-RA3
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.
Page 32
Page 33
13. Pinout
5V power supply
Analog Lines
Interrupt Lines
Digital I/O lines
SPI2
Reference Ground
Pin functions
VSYS
GND
RB0
RB1
RB2
RB3
RB4
RB5
RB14
RE8
RE9
RA14
RA15
RA10
RC4
RB6
RB7
RF3
RG12
RG13
SCK2
SDI2
SDO2
Digital linesI2C Lines
RG14
RG6
RG7
RG8
3.3V
GND
SPI LinesInterrupt LinesAnalog Lines
Page 33
RST
GND
L
R
RD0
RD1
RD2
RD3
RA0
RA1
RA4
RA5
RA6
RA7
RD10
RD11
RD14
RD15
RF4
RF5
RF2
RF8
RA2
RA3
3.3V
GND
UART lines
Reset pin
Reference Ground
left ch.
right ch.
audio out
PWM lines
Digital I/O lines
RX
UART
TX
SCL2
I2C
SDA2
3.3V power supply3.3V power supply
Reference GroundReference Ground
Pin functions
PWM lines
Page 34
14. Dimensions
8.89 mm
(350 mils)
55.88 mm
60.45 mm
(2380 mils)
(2200 mils)
7.62 mm
(300 mils)
81.15 mm
(3195 mils)
73.66 mm
(2900 mils)
63.5 mm
(2500 mils)
36.58 mm
(1440 mils)
(80 mils)
2.03 mm
2.67 mm2.54 mm
(105 mils)(100 mils)
Page 34Page 35
Page 35
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
jumpers and more.
0102
Connect shieldBatteryBoost shieldPROTO shield
03
04
Gaming shield
05
mikroBUS shield
Page 35
0607
Li-Polimer batteryWire Jumpers
Page 36
What’s next?
You have now completed the journey through each and every feature of mikromedia for PIC32® 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 PIC32® 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 36
Page 37
Notes:
Page 37
Page 38
Notes:
Page 38
Page 39
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™, mikroBUS™, Click Boards™ 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.