mikroElektronika Mikromedia User manual

Type
User manual
Compact development system rich with on-board peripherals for all-round
multimedia development on PIC24EP512GU810 device.
for PIC24EP
®
mikromedia
PIC24
Downloaded from DatasheetLib.com - datasheet search engine
Page 3
I want to express my thanks to you for being interested in our products and for having
condence 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.
The PIC24EP® and Windows® logos and product names are trademarks of Microchip Technology® and Microsoft® in the U.S.A. and other countries.
TO OUR VALUED CUSTOMERS
Nebojsa Matic
General Manager
Downloaded from DatasheetLib.com - datasheet search engine
Page 3
Introduction to mikromedia for PIC24EP® 4
Package Contains 5
Key Features 6
System Specication 7
1. Power supply 8
USB power supply 8
Battery power supply 8
2. PIC24EP512GU810 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
Table of Contents
Downloaded from DatasheetLib.com - datasheet search engine
Page 4
Page 5
Introduction to mikromedia for PIC24EP
®
The mikromedia for PIC24EP® 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 PIC24EP512GU810
microcontroller. The mikromedia for PIC24E
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 pre-
programmed 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.
Downloaded from DatasheetLib.com - datasheet search engine
Page 4
Page 5
Package Contains
Copyright ©2011 Mikroelektronika.
All rights reserved. Mikroelektronika, Mikroelektronika logo and other
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 prohibited.
20122011
www.mikroe.com
01
02
04 05
03
06
Damage resistant
protective box
mikromedia for PIC24EP®
development system
mikromedia for PIC24EP®
user’s guide
mikromedia for PIC24EP®
schematic
DVD with documentation
and examples
USB cable
Downloaded from DatasheetLib.com - datasheet search engine
Page 6
Page 7
Key Features
16
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
Connection Pads
TFT 320x240 display
USB MINI-B connector
CHARGE indication LED
LI-Polymer battery connector
3.5mm headphone connector
Power supply regulator
Serial Flash memory
RESET button
VS1053 Stereo mp3 coder/decoder
PIC24EP512GU810 microcontroller
Accelerometer
Crystal oscillator
Power indication LED
microSD Card Slot
ICD2/3 connector
mikroProg connector
17
01
02
09
Downloaded from DatasheetLib.com - datasheet search engine
Page 6
Page 7
System Specication
power supply
Via USB cable (5V DC)
board dimensions
81.2 x 60.5mm (3.19 x 2.38 inch)
weight
~50 g (0.11 lbs)
power consumption
73 mA with erased MCU
(when on-board modules are inactive)
03
06
07
08
11
10
12
13
14
15
16
04
05
17
Downloaded from DatasheetLib.com - datasheet search engine
Page 8
Page 9
1. 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
LED (GREEN) will indicate the presence of
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.
Battery power supply
USB power supply
Figure 1-1: Connecting
USB power supply
Figure 1-2: Connecting Li-Polymer battery
Downloaded from DatasheetLib.com - datasheet search engine
Page 8
Page 9
2
3
5
4
1
VCC-SYS VCC-3.3
E3
10uF
E4
10uF
R26
2K2
2
3
1
GND
Vin
Vout
REG1
LD29080DT33
VCC-BAT
D1
PMEG3010ER
R44
3K9
Charging Current approx. 250mA
R39
4K7
VCC-3.3
E7
10uF
C40
2.2uF
R34
4K7
R6
4K7
VCC-BAT
VSENSE
VCC-SYS
VCC-SYS
R43
10K
R37
10K
R36
10K
VCC-3.3
STAT
R38
10K
R45
1K
VCC-3.3
E5
10uF
R35
10K
VCC-3.3
R49
4K7
M1
DMP2160UW
STAT
VSS
VBAT VDD
PROG
U5
MCP73832
Q4
BC846
Q5
BC846
C28
10nF
FP2
FERRITE
1
2
3
4
5
GND
ID
D+
D-
VBUS
CN3
USB MINIB
VCC-USB
C29
2.2uF
VCC-3.3
R46
100K
E10
10uF
R47
220K
VCC-1.8
VCC-1.8
R50
0R
1
2
3
5
4
Vin
GND
EN ADJ
Vout
U3
MIC5205-ADJ
DATA BUS
LD2
CHARGE
LD1
POWER
VCC-BAT
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
HDR1
M1X26
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
HDR2
M1X26
VCC-3.3 VCC-3.3
VCC-SYS
VCC-1.8VREF-1.8
E11
10uF
FP3
FERRITE
CN1
BATT CONN
Figure 1-3: Power supply schematics
Downloaded from DatasheetLib.com - datasheet search engine
Page 10
Page 11
2. PIC24EP512GU810 microcontroller
The mikromedia for PIC24EP® development system comes with the
PIC24EP512GU810 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 70 MIPS Operation;
- 16-bit architecture;
- 512KB of program memory, 24KB of auxiliary ash;
- 53.248 Bytes of RAM memory;
- 83 I/O pins;
- Internal Oscillator 7.37 MHz, 32kHz; RTCC
- nanoWatt features: Fast Wake/Fast Control;
- 4-UART, 4-SPI, 2-I2C, 2-CAN, USB 2.0 OTG;
- DAC, ADC, etc.
Address Bus
Data Bus
70 MIPS
16-bit
16-bit ALU
17x17 MPY
JTAG
PMP
PORT
(A,B,C,D,E,F)
Analog
Comp.
Input
Capture
PWMComp
Output
ADC
UART SPI I2C
Flash
(512KB)
RAM
(53,248 KB)
DMA
Address
Generation
Register File
16x16
Barrel
Shifter
USB
OTG
PIC24EP
Timers
RTCC
ECAN
Compare
Downloaded from DatasheetLib.com - datasheet search engine
Page 10
Page 11
The microcontroller can be programmed in three ways:
01
02
03
Over USB HID mikroBootloader
Using mikroProg™ external programmer
Using ICD2/3 external programmer
3. Programming the microcontroller
Figure 3-1:
PIC24EP512GU810
microcontroller
Downloaded from DatasheetLib.com - datasheet search engine
Page 12
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
(mikroBootloader USB HID) which can be downloaded from:
After software is downloaded unzip it to desired location and
start mikroBootloader USB HID software.
http://www.mikroe.com/eng/downloads/get/1858/
mikrobootloader_pic24ep_usbhid_v200.zip
Figure 3-2: USB HID mikroBootloader window
step 1 – Connecting mikromedia
01
01
To start, connect the USB cable, or if already connected
press the Reset button on your mikromedia board. Click the
”Connect” button within 5s to enter the bootloader mode,
otherwise existing microcontroller program will execute.
Downloaded from DatasheetLib.com - datasheet search engine
Page 12
Page 13
step 3 – Selecting .HEX le step 2 – Browsing for .HEX le
Figure 3-3: Browse for HEX Figure 3-4: Selecting HEX
01 01
02
01
01
02
Click the ”Browse for HEX” button and from a
pop-up window (Figure 3.4) choose the .HEX le
which will be uploaded to MCU memory.
Select .HEX le using open dialog window.
Click the ”Open” button.
Downloaded from DatasheetLib.com - datasheet search engine
Page 14
Page 15
step 4 – Uploading .HEX le
Figure 3-5: Begin uploading Figure 3-6: Progress bar
01
01
01 01
To start .HEX le bootloading click the
”Begin uploading” button.
You can monitor .HEX le uploading via progress bar
Downloaded from DatasheetLib.com - datasheet search engine
Page 14
Page 15
step 5 – Finish upload
Figure 3-7: Restarting MCU
Figure 3-8: mikroBootloader ready for next job
01
01
Click the ”OKbutton after uploading is nished
and wait for 5 seconds. Board will automatically
reset and your new program will execute.
Downloaded from DatasheetLib.com - datasheet search engine
Page 16
Page 17
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®, PIC2and
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.
Programming with mikroProg
programmer
Figure 3-9:
Connecting mikroProg™ to mikromedia™
Downloaded from DatasheetLib.com - datasheet search engine
Page 16
Page 17
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 SingleClickprogramming
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
Downloaded from DatasheetLib.com - datasheet search engine
Page 18
Page 19
Figure 3-11:
Placing ICD2®
connector
The microcontroller can be also programmed with ICD2®
or ICD3® programmer. These programmers connects
with mikromedia board via ICD2 CONNECTOR BOARD.
Programming with
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.
Figure 3-12:
Connecting ICD2®
or ICD3® programmer
Downloaded from DatasheetLib.com - datasheet search engine
Page 18
Page 19
30
29
28
27
34
33
46
36
35
42
43
44
45
37
50
48
49
32
38
39
40
41
47
31
26
9
11
12
4
3
24
23
18
17
16
15
14
13
5
6
7
8
10
1
2
22
21
20
19
25
78
77
79
80
76
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
58
57
56
55
54
53
52
72
69
68
67
66
65
64
63
62
61
60
59
71
51
70
75
74
73
VCC-3.3
C5
100nF
C6
100nF
C7
100nF
E8
10uF
VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3
VREF-1.8
C30
22pF
C31
22pF
X3 32.768KHz
C2
22pF
C1
22pF
X1 8MHz
10uF
CLKO
CLKI
SOSCO
SOSCI
PGC1
PG D1
C8
100nF
VCC-3.3
C34
100nF
VCC-3.3
PIC24EP512GU810
R
B11
RB10
RB9
RB8
RB13
R
B12
RE7
RC1
RC2
RC3
ASDA1/RA15
D+/RG2
RB15
RB14
RF8
Vbus
Vusb
D-/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
RB3
RB4
RB5
RE9
RD9
RD8
RF2
USBID/RF3
GND
RG7/SDI2
RG6/SCK2
RA1
RE3
RE4
RG15
VDD
RB7/PGED1
RB6/PGEC1
RB0
RF4
RF5
ASCL1/RA14
RA5
RD14
RD15
ASCL2/RA2
RF13
VCC
ASDA2/RA3
VCC
ENVREG
RE8
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
decoupling capacitors
VCC-3.3
1
2
3
4
5
CN6
M1X5
MCLR#
PGD1
PGC1
VCC-3.3
MCLR#
PGD1
PGC1
6
5
4
3
2
1
CN5
M1X6
MCLR#
Figure 3-13: mikroProg™ & ICD2 / ICD3 programmer connection schematic
Downloaded from DatasheetLib.com - datasheet search engine
Page 20
Page 21
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).
4. Reset Button
Figure 4-2: Frontal reset button
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.
NOTE
Downloaded from DatasheetLib.com - datasheet search engine
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40

mikroElektronika Mikromedia User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI