mikroElektronika mikromedia for PIC32, mikromedia User Manual

Page 1
mikromedia
for PIC32
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
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 Specication 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 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.
®
Page 4
Page 5
Package Contains
A
W
T
F
O
S
L
A
N
O
I
T
I
D
D
A
PRODUCT DVD
S
E
L
P
M
A
X
E
S
D
R
A
O
B
Y
R
O
S
S
E
C
C
A
S
C
I
T
A
M
E
H
C
S
M
S
R
I
E
K
L
R
I
O
P
C
M
,
O
C
E
R
www.mikroe.com www.libstock.com
Copyright ©2012 Mikroelektronika.
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®
04 05
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 Specication
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
LED (GREEN) will indicate the presence of
power supply.
Figure 1-1: Connecting USB power supply
Figure 1-2: Connecting Li-Polymer battery
Page 8
Page 9
DATA BUS
VSENSE
STAT
VCC-3.3
R35 10K
VCC-BAT
VCC-3.3
R6 4K7
R49 4K7
R34 4K7
R39 4K7
LD2 CHARGE
Q4 BC846
VCC-BAT
VCC-3.3
R36 10K
Q5 BC846
VCC-SYS
R37
10K
VCC-USB
PMEG3010ER
D1
DMP2160UW M1
CN1 BATT CONN
R43 10K
FP2
FERRITE
C28 10nF
VCC-3.3
C29
E11 10uF
FP3
FERRITE
E5 10uF
VCC-1.8VREF-1.8
R38 10K
VCC-3.3
R45 1K
VCC-BAT
2.2uF
1 2 3
E7
10uF
U5
1
STAT
2
VSS
3
VBAT VDD
MCP73832
U3
Vin GND EN ADJ
MIC5205-ADJ
Charging Current approx. 250mA
Figure 1-3: Power supply schematics
Page 9
PROG
5 4 3 2 1
Vout
VCC-SYS
CN3
GND ID D+ D­VBUS
USB MINIB
E10
10uF
5
4
VCC-1.8
5
4
C40
2.2uF
R44 3K9
VCC-1.8
POWER
VCC-SYS
R47 220K
R46 100K
R50
VCC-3.3 VCC-3.3
0R
VCC-SYS
R26
2K2
LD1
E3 10uF
HDR1
M1X26
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
VCC-3.3
E4 10uF
REG1
1
3
LD29080DT33
Vin
Vout
HDR2
M1X26
GND
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
2
Page 10
2. PIC32MX460F512L microcontroller
Bus Matrix
Peripherial Bus
PIC32
MIPS M4K 32-bit core
- 80MHz, 1.5 DMIPS/MHz
- 5 Stage Pipeline, 32-bit ALU
Trace
32-bit
HW
Mul/Div
32 Core
Registers
Shadow Set
JTAG
Instruction Data
RTCC
Analog
Comparators
(2)
I2C (2)
16 Ch 10-bit ADCs
UARTs
(2)
Input
Capture
(5)
SPI (2)
Output Compare PWM(5)
16-bit
Timers
(5)
Prefetch
Buffer Cache
Flash
SRAM
Interrupt
Controller
GPIO (85)
VREG
DMA 4Ch
2-wire
Debug
USB
OTG
16-bit
Parallel
Port
The mikromedia for PIC32® development system comes with the
PIC32MX460F512L microcontroller. This high-performance 32-bit
microcontroller with its integrated modules and in combination with other on-board modules is ideal for multimedia applications.
Key microcontroller features
- 1.56 DMIPS/MHz, 32-bit MIPS M4K Core;
- 512K Flash (plus 12K boot Flash);
- 32K RAM (can execute from RAM);
- 85 I/O pins;
- SPI, I2C, A/D;
- 16-bit, 32-bit Digital Timers;
- Internal Oscillator 8MHz, 32kHz;
- RTCC; etc.
Page 10
Page 11
3. Programming the microcontroller
The microcontroller can be programmed in three ways:
Over USB HID mikroBootloader
01
Using mikroProg™ external programmer
02
Using ICD2/3 external programmer
03
Page 11
Figure 3-1:
PIC32MX460F512L
microcontroller
Page 12
Programming with mikroBootloader
You can program the microcontroller with bootloader which is
pre-programmed by default. To transfer .hex le from a PC to
MCU you need bootloader software (mikroBootloader USB
HID) which can be downloaded from:
http://www.mikroe.com/downloads/get/1605/ mikrobootloader_pic32_v200.zip
After the mikroBootloader software is downloaded, unzip it to desired location and start it.
step 1 – Connecting mikromedia
01
Figure 3-2: USB HID mikroBootloader window
To start, connect the USB cable, or if already connected
01
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.
Page 12
Page 13
step 3 – Selecting .HEX le step 2 – Browsing for .HEX le
01
Figure 3-3: Browse for HEX Figure 3-4: Selecting HEX
01
02
Click the Browse for HEX button and from a
01 01
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 uploading Figure 3-6: Progress bar
01
To start .HEX le bootloading click the
01 01
Begin uploading button.
Page 14
Progress bar enables you to monitor .HEX le upload­ing.
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.
Page 18
®
Page 19
ICD2/3
mikroProg
MCLR#
Vcap
E9 10uF
89
87
88
95
RG1397RG1296RG14
AVDD
30
31
91
93
94
RE0
RE1
RA792RA6
AVSS
RB933RB8
RB10
35
32
34
100
99
U1
RE4
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
RE298RE3
RG15 VDD RE5 RE6 RE7 RC1 RC2 RC3 RC4 RG6/SCK2 RG7/SDI2 RG8/SDO2 MCLR
PIC32MX460F512L
RG9 VSS VDD RA0/TMS RE8/INT1 RE9/INT2 RB5 RB4 RB3 RB2 RB1 RB0
RB6
RB7
RA928RA10/VREF+
26
27
29
PGD2
PGC2
85
86
RF0
RF1
RG090RG1
ENVREG
VSS
VDD
RB11
RA138RF1339RF12
36
37
40
RD784RD683RD582RD4
Vcap/VDDcore
RB1342RB1241RB1544RB14
43
81
VSS45VDD
RD1380RD12
46
79
78
RD1447RD15
48
77
RD2
RD3
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
U1TX/RF8 U1RX/RF2
RF449RF5
76
50
RD1
RC14 RC13
RD11 RD10
RA15 RA14
OSC2 OSC1
VUSB VBUS
VCC-3.3
75
VSS
74 73 72
RD0
71 70 69
RD9
68
RD8
67 66 65
VSS
64 63 62
VDD
61
RA5
60
RA4
59 58 57 56 55 54 53 52 51
RF3
VCC-3.3
C7
100nFC8100nF
VCC-3.3
E8
10uF
MCLR#
PGD2 PGC2
R3 100
RB7
R15 100
RB6
PGC2 PGD2 MCLR#
100nF
VCC-3.3
VCC-3.3
C5
VCC-3.3
C25
100nF
VCC-3.3
C6
100nF
VCC-3.3
VCC-3.3
CN5
M1X6
CN6
M1X5
6 5 4 3 2 1
1 2 3 4 5
Figure 3-13: mikroProg™ & ICD2 / ICD3 programmer connection schematic
Page 19
Page 20
4. Reset Button
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.
Page 20
Figure 4-2: Frontal reset button
Page 21
Vcap
E9 10uF
VCC-3.3
R8
VCC-3.3
C6
10K
T1
C3
100nF
BUTTON
HDR2
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
M1X26
VCC-3.3
91
99
100
U1
RE4
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
R7
RST
100
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
RB6
26
27
93
98
94
95
RE3
RE2
RG1397RG1296RG14
89
88
90
92
RE0
RE1
RA7
RA6
84
87
85
86
RF1
RF0
RG1
RG0
ENVREG
Vcap/VDDcore
PIC32MX460F512L
RB8
AVDD
RA9
RB7
28
RB10
RB11
RB9
AVSS
RA10/VREF+
32
30
34
35
33
31
29
RB1241RB15
VSS
RF13
VDD
RA1
RF12
36
39
37
42
38
40
RD7
RB13
76
77
81
78
83
79
RD1
RD2
RD582RD4
RD3
RD6
RD1380RD12
VSS
RB14
VDD
RD14
44
45
43
46
47
SDA2/RA3 SCL2/RA2
U1TX/RF8 U1RX/RF2
RD15
48
49
RC14 RC13
RD11 RD10
RA15 RA14
OSC2 OSC1
D+/RG2
D-/RG3
VUSB VBUS
RF5
RF4
50
75
VSS
74
SOSCO SOSCI
73 72
RD0
71 70 69
RD9
68
RD8
67 66 65
VSS
VDD RA5 RA4
RF3
CLKO
64
CLKI
63 62 61 60 59 58 57 56
100nFC8100nF
55 54 53 52 51
VCC-3.3
C7
C31 22pF
32.768kHz
X3
C30 22pF
C2 22pF
8MHz
X1
C1 22pF
VCC-3.3
100nF
VCC-3.3
C25
10uF
VCC-3.3
E8
RST
T2
BUTTON
RST
VCC-3.3
C5
100nF
100nF
VCC-3.3
Figure 4-3: Reset circuit schematic
Page 21
Page 22
5. Crystal oscillator
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.
100
94
99
95
U1
RE4
RE1
RE298RE3
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
RG1397RG1296RG14
RG15 VDD RE5 RE6 RE7 RC1 RC2 RC3 RC4 RG6/SCK2 RG7/SDI2 RG8/SDO2 MCLR
PIC32MX460F512L
RG9 VSS VDD RA0/TMS RE8/INT1 RE9/INT2 RB5 RB4 RB3 RB2 RB1 RB0
AVDD
AVSS
RB6
RB7
RA928RA10/VREF+
30
31
32
26
27
29
Vcap
E9 10uF
91
87
88
85
86
RD784RD683RD582RD4
ENVREG
Vcap/VDDcore
RB1342RB1241RB1544RB1443RF449RF5
40
79
81
78
RD1380RD12
VSS45VDD
RD1447RD15
46
48
93
89
RF0
RF1
RE0
RA792RA6
RG090RG1
VSS
VDD
RB11
RB933RB8
RB10
RA138RF1339RF12
36
37
35
34
77
RD3
SDA2/RA3 SCL2/RA2
U1TX/RF8 U1RX/RF2
76
RD2
D+/RG2
D-/RG3
50
VCC-3.3
C31 22pF
32.768kHz
RD1
VSS RC14 RC13
RD0 RD11 RD10
RD9
RD8 RA15 RA14
VSS OSC2 OSC1
VDD
RA5
RA4
VUSB VBUS
RF3
X3
75 74
SOSCO
73
SOSCI 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51
C30 22pF
C2 22pF
8MHz
X1
CLKO
CLKI
C1 22pF
Figure 5-2: Crystal oscillator schematic
NOTE :
VCC-3.3
C7
100nFC8100nF
VCC-3.3
E8
10uF
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.
100
99
95
U1
RE4
RG1397RG1296RG14
1
RG15
2
VDD
3
RE5
4
RE6
5
RE7
6
RC1
7
RC2
8
RC3
9
RC4
R5 27
R4 27
10
RG6/SCK2
11
RG7/SDI2
12
RG8/SDO2
13
MCLR
PIC32MX460F512L
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
RB626AVSS31RB10
RB7
RA928RA10/VREF+
27
29
AVDD30RB933RB8
32
SCK2-RG6 MISO2-RG7 MOSI2-RG8
SD-CS#
Figure 6-2: microSD Card Slot module connection schematic
Vcap
E9 10uF
VCC-3.3
85
86
93
88
89
91
RF1
RE0
RE194RE298RE3
RA792RA6
RG090RG1
RB11
VSS
VDD
RA138RF1339RF12
35
36
34
37
87
RF0
SD-CD#
ENVREG
40
Vcap/VDDcore
79
81
78
RD784RD683RD582RD4
RD3
RD1380RD12
SDA2/RA3
RB1342RB1241RB1544RB1443RF449RF5
RD1447RD1548VSS45VDD
46
77
76
RD2
SCL2/RA2
D+/RG2
D-/RG3
U1TX/RF8 U1RX/RF2
50
C31 22pF
32.768kHz
SOSCO
X3
SOSCI
CLKO
CLKI
X1
SD-CS# MOSI2-RG8
SCK2-RG6
MISO2-RG7
SD-CD#
C30 22pF
C2 22pF
8MHz
C1 22pF
R11 10K
VCC-MMC
R10 10K
100nFC8100nF
VCC-MMC
R9
10K
R16
27
RD1
75
VSS
74
RC14
73
RC13
72
RD0
71
RD11
70
RD10
69
RD9
68
RD8
67
RA15
66
RA14
65
VSS
64
OSC2
63
OSC1
62
VDD
61
RA5
60
RA4
59 58 57 56 55
VUSB
54
VBUS
53 52 51
RF3
Page 23
VCC-3.3
C7
VCC-3.3
E8
10uF
100nF
FP1
FERRITE
E6
C38 100nF
CN4 MMC CARD MICRO
1 2 4 5 6 7
VCC-3.3
VCC-3.3
C25
100nF
VCC-3.3
VCC-3.3
C5
C6
100nF
VCC-3.3
10uF
CS Din +3.3V SCK GND Dout
G
CD
Figure 6-3:
Inserting microSD card
Figure 6-1:
microSD card slot
Page 24
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 die rent colors.
Figure 7-1: Touch Screen
Page 24
Page 25
PMD5 PMD6 PMD7 LCD-RST
Vcap
E9 10uF
VCC-SYS
VCC-3.3
PMD4
PMD3
PMD2
PMD1
PMD0
PMD8
PMD9
PMD10
89
91
100
99
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
95
RE4
RE298RE3
RG1397RG1296RG14
PIC32MX460F512L
AVDD30RB933RB8
RB6
AVSS31RB10
RB7
RA928RA10/VREF+
26
27
29
LCD-BLED
88
93
94
RE0
RE1
RA792RA6
RG090RG1
RB11
VSS
VDD
35
32
36
34
37
LCD-YD
LCD-XR
PMD11
87
86
RF0
RF1
RA138RF1339RF12
40
LCD-CS#
PMD15
85
RD784RD683RD582RD4
ENVREG
Vcap/VDDcore
RB1342RB1241RB1544RB14
LCD-YU
LCD-XL
PMD14
43
PMRD
LCD-RS
PMWR
81
VSS45VDD
PMD13
RD1380RD12
46
PMD12
79
RD1447RD15
78
RD3
48
77
76
RD2
RD1
RC14 RC13
RD11 RD10
RA15 RA14
OSC2 OSC1
SDA2/RA3 SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS U1TX/RF8 U1RX/RF2
RF449RF5
50
VCC-3.3
R23
VCC-SYS
1K
VCC-3.3
VCC-3.3
C5
BAT43
100nF
100nF
VCC-3.3
VCC-3.3
C25
VCC-3.3
C6
R41 300K
D2
R24 10K
C22
18nF
75
VSS
74 73 72
RD0
71 70 69
RD9
68
RD8
67 66 65
VSS
64 63 62
VDD
61
RA5
60
RA4
59 58 57 56 55 54 53 52 51
RF3
LCD-BLED
VCC-3.3
C7
100nFC8100nF
VCC-3.3
E8
10uF
100nF
C21
18nF
VCC-3.3
Q2
BC846
Q3 BC846
VCC-3.3
VCC-3.3
BC846
R42 300K
Q1
R40 12
LCD-RST
PMD15
VCC-3.3
PMD14
LCD-RST LCD-CS#
LCD-XL
LCD-YU
PMD13 PMD12 PMD11 PMD10 PMD9 PMD8
PMD7 PMD6 PMD5 PMD4 PMD3 PMD2 PMD1 PMD0
PMRD PMWR LCD-RS LCD-CS#
LCD-XR LCD-YD LCD-XL LCD-YU
E13
10uF
R25 10K
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
TFT1
LED-K LED-A1 LED-A2 LED-A3 LED-A4 IM0 IM1 IM2 IM3 RESET VSYNC HSYNC DOTCLK ENABLE DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 SDO SDI RD WR/SCL RS CS FMARK VCC-IO VCC VCC-I GND XR YD XL YU
MI0283QT2
Figure 7-2: Touch Screen connection schematic
Page 25
Page 26
8. Audio Module
Figure 8-1:
On-board VS1053
MP3 codec
Figure 8-2: Inserting 3.5mm headphones jack
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).
Page 26
Page 27
MP3-CS#
Vcap
SCK2-RG6 MISO2-RG7 MOSI2-RG8
VCC-3.3
C7
100nFC8100nF
VCC-3.3
E8
10uF
E9 10uF
VCC-3.3
100
99
U1
RE4
1
RG15
2
VDD
3
RE5
4
RE6
5
RE7
6
RC1
7
RC2
8
RC3
9
RC4
R5 27
10
RG6/SCK2
11
RG7/SDI2
12
RG8/SDO2
13
R4 27
MCLR
14
RG9
15
VSS
16
VDD
17
VCC-3.3
VCC-3.3
C25
100nF
VCC-3.3
VCC-3.3
C5
C6
100nF
100nF
RA0/TMS
18
RE8/INT1
19
RE9/INT2
20
RB5
21
RB4
22
RB3
23
RB2
24
RB1
25
RB0
RB6
26
27
91
95
88
89
87
85
86
93
RF1
RF0
RE0
RE194RE298RE3
RA792RA6
RG090RG1
RG1397RG1296RG14
ENVREG
Vcap/VDDcore
PIC32MX460F512L
RB11
RB9
RB12
AVSS
RB7
RA10/VREF+
RB8
RA9
AVDD
31
29
32
28
30
MP3-BSYNC
RF12
RA1
VSS
RB10
RF13
VDD
35
33
41
40
42
38
36
34
39
37
RD784RD683RD582RD4
RB13
RB14
43
77
81
76
78
79
RD2
RD1
RD3
RD1380RD12
75
VSS
74
RC14
73
RC13
72
RD0
71
RD11
70
RD10
RA15 RA14
OSC2 OSC1
VDD
SDA2/RA3 SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS U1TX/RF8 U1RX/RF2
RF4
VSS
RB15
RF5
RD14
RD15
VDD
49
45
44
50
47
48
46
MP3-RST#
69
RD9
MP3-DREQ
68
RD8
67 66 65
VSS
64 63 62 61
RA5
60
RA4
59 58
R1 1M
57 56 55 54 53 52 51
RF3
X2
C19
12.288MHz
22pF
VCC-3.3
VCC-1.8 VCC-3.3 R19 10K
MP3-CS#
MP3-RST#
R2
10K
MP3-BSYNC
MP3-CS#
C20
22pF
GPIO
R20
10K
VCC-3.3
12
U2
13
XDCS/BSYNC
14
IOVDD1
15
VCO
16
DGND1
17
XTALO
18
XTALI
19
IOVDD2
20
DGND2
21
DGND3
22
DGND4
23
XCS
24
CVDD2
GPIO5
25
26
R21
10K
MP3-DREQ
6
8
5
7
10
DREQ
GPIO611GPIO7
GPIO29GPIO3
CVDD0
CVDD1
IOVDD0
VS1053
TX27RX
SCLK28SI29SO30CVDD331XTEST32GPIO033GPIO134GND35GPIO4
R22
27
SCK2-RG6
MOSI2-RG8
MISO2-RG7
4
DGND0
MP3-RST#
2
3
1
MCN
XRESET
36
100nFC9100nF
MCP/LN1
LN2
AGND3
LEFT
AVDD2
RCAP
AVDD1
GBUF AGND2 AGND1 RIGHT AVDD0 AGND0
VCC-1.8
C4
48 47
LEFT
46 45 44 43 42
GBUF 41 40 39
RIGHT 38 37
C13 1uF
C15
10nF
VCC-1.8 VCC-1.8 VCC-1.8
C11
C10
100nF
100nF
R3020R31
E2
R33
470
R32
470
LEFT
RIGHT
20
C16
10nF
VCC-3.3
C12
100nF
R27 10
C14
47nF
100nF
VCC-3.3
C23
C18
3.3nF
C17
3.3nF
R28 10
R29 10
R
10uF
R18 100K
E1
L
10uF
R17 100K
CN2
PHONEJACK
VCC-3.3
VCC-3.3
VCC-3.3
C24
C26
100nF
C27
100nF
100nF
Figure 8-3: Audio module connection schematic
Page 27
Page 28
9. USB connection
PIC32MX460F512L 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.
Figure 9-1: Connecting
USB cable to MINI-B
USB connector
Page 28
Page 29
Vcap
E9 10uF
100
99
U1
RE4
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
RB6
26
27
93
94
95
RE0
RE1
RE298RE3
RG1397RG1296RG14
RA792RA6
PIC32MX460F512L
AVDD30RB933RB8
AVSS31RB10
RB7
RA928RA10/VREF+
32
34
29
86
87
88
89
91
35
85
RF0
RF1
RG090RG1
ENVREG
Vcap/VDDcore
RB11
VSS
VDD
RA138RF1339RF12
36
37
40
RD784RD683RD582RD4
RB1342RB1241RB1544RB14
43
81
RD1380RD12
VSS45VDD
46
79
78
RD1447RD15
48
77
76
RD2
RD3
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
U1TX/RF8 U1RX/RF2
RF449RF5
50
RD1
RC14 RC13
RD11 RD10
RA15 RA14
OSC2 OSC1
VUSB VBUS
VSS
RD0
RD9 RD8
VSS
VDD RA5 RA4
RF3
VCC-3.3
C31 22pF
32.768kHz
SOSCO SOSCI
CLKO CLKI
USBDP
USBDM
USB-DET
USB-ID-RF3
X3
X1
VCC-USB
C30 22pF
C2 22pF
8MHz
C1 22pF
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
USB-DET
R14 100
FERRITE
VCC-3.3
C7
100nFC8100nF
VCC-3.3
E8
10uF
FP2
VCC-3.3
VCC-3.3
C5
100nF
RF3 1
USB-ID-RF3
USB-ID
SMD JUMPER
5 4
USB-ID
3
USBDP USBDM
2 1
C28 10nF
100nF
100nF
2
3
VCC-3.3
C25
VCC-3.3
C6
J3
GND ID D+ D­VBUS
CN3
USB MINIB
Figure 9-2: USB module connection schematic
Page 29
Page 30
10. Accelerometer
Vcap
On board ADXL345 accelerometer is used to measure acceleration in three axis: x, y and z. The
accelerometer function is dened 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.
VCC-3.3
79
77
81
76
78
RD2
RD1
RD3
RD1380RD12
46
RD1447RD1548VSS45VDD
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
U1TX/RF8 U1RX/RF2
RF449RF5
50
75
VSS
74
RC14
73
RC13
72
RD0
71
RD11
70
RD10
69
RD9
68
RD8
67
RA15
66
RA14
65
VSS
64
OSC2
63
OSC1
62
VDD
61
RA5
60
RA4
SDA2-RA3
59
SCL2-RA2
58 57 56 55
VUSB
54
VBUS
53 52 51
RF3
Page 30
Page 31
11. Flash Memory
Vcap
E9 10uF
FLASH-CS#
SCK2-RG6 MISO2-RG7 MOSI2-RG8
R5 27
R4 27
95
100
94
99
U1
RE4
RE298RE3
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
RG1397RG1296RG14
RG15 VDD RE5 RE6 RE7 RC1 RC2 RC3 RC4 RG6/SCK2 RG7/SDI2 RG8/SDO2 MCLR
PIC32MX460F512L
RG9 VSS VDD RA0/TMS RE8/INT1 RE9/INT2 RB5 RB4 RB3 RB2 RB1 RB0
AVDD
AVSS
RB6
RB7
RA928RA10/VREF+
30
31
32
26
27
29
87
88
89
91
85
93
RE1
86
RF0
RF1
RE0
RA792RA6
RG090RG1
VSS
VDD
RB11
RB933RB8
RB10
RA138RF1339RF12
36
37
35
34
40
RD784RD683RD582RD4
ENVREG
Vcap/VDDcore
RB1342RB1241RB1544RB1443RF449RF5
81
VSS45VDD
46
RD1380RD12
79
78
RD1447RD15
48
Figure 11-2: Flash memory module connection schematic
77
RD2
RD3
SDA2/RA3 SCL2/RA2
D+/RG2
D-/RG3
U1TX/RF8 U1RX/RF2
VCC-3.3
76
RD1
75
VSS
74
RC14
73
RC13
72
RD0
71
RD11 RD10
RA15 RA14
OSC2 OSC1
VUSB VBUS
50
100nFC8100nF
70 69
RD9
68
RD8
67 66 65
VSS
64 63 62
VDD
RA5 RA4
RF3
10uF
61 60 59 58 57 56 55 54 53 52 51
VCC-3.3
C7
VCC-3.3
E8
FLASH-CS# MISO2-RG7
100nF
VCC-3.3
VCC-3.3
C5
VCC-3.3
100nF
100nF
R48 10K
VCC-3.3
C25
VCC-3.3
C6
VCC-3.3
Figure 11-1:
Flash memory module
Since multimedia applications are
VCC-3.3
C37
U10
CS SDO WP GND
M25P80
HOLD
100nF
8
VCC
7 6
SCK2-RG6
SCK
5
MOSI2-RG8
SDI
1 2 3 4
getting increasingly demanding, it is
necessary to provide additional memory
space to be used for storing more data.
The ash memory module enables the
microcontroller to use additional 8Mbit
ash memory. It is connected to the
microcontroller via the Serial Peripheral Interface (SPI).
Page 31
Page 32
Vcap
12. Pads
RX
TX SCL SDA
E9 10uF
RA6
RA7
RG13
RG12
RG14
100
94
99
U1
R5 27
R4 27
R7 100
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
HDR2
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
M1X26
VCC-3.3
RX-RF2
TX-RF8 SCL2-RA2 SDA2-RA3
RST
L
R RD0 RD1 RD2
RC4
RD3
SCK2-RG6
RA0
MISO2-RG7
RA1
MOSI2-RG8
RA4
RST
RA5 RA6 RA7
RD10
RA0
RD11
RE8
RD14
RE9
RD15
RB5
RF4
RB4
RF5
RB3 RB2 RB1 RB0
95
RE4
RE1
RE298RE3
RG1397RG1296RG14
RG15 VDD RE5 RE6 RE7 RC1 RC2 RC3 RC4 RG6/SCK2 RG7/SDI2 RG8/SDO2 MCLR
PIC32MX460F512L
RG9 VSS VDD RA0/TMS RE8/INT1 RE9/INT2 RB5 RB4 RB3 RB2 RB1 RB0
AVDD
AVSS
RB6
RB7
RA928RA10/VREF+
32
26
27
29
30
31
86
93
87
88
89
91
RF0
RF1
RE0
RA792RA6
RG090RG1
ENVREG
VSS
VDD
RB11
RB933RB8
RB10
RA138RF1339RF12
35
34
40
36
37
81
85
RD784RD683RD582RD4
Vcap/VDDcore
VSS45VDD
RB1342RB1241RB1544RB1443RF449RF5
46
79
RD1380RD12
RD1447RD15
RD3
78
RD3
48
RD1
RD2
77
76
RD2
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
U1TX/RF8
U1RX/RF2
50
VCC-3.3
RB0 RB1 RB2 RB3 RB4 RB5 RB14 RE8 RE9 RA14 RA15 RA10 RC4 RB6 RB7 RF3 RG12 RG13 RG14 SCK2-RG6 MISO2-RG7 MOSI2-RG8
VCC-3.3
VCC-SYS
HDR1
M1X26
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
SCK
48
SDI
49
SDO
50 51 52
RD1
75
VSS
74
RC14
73
RC13
RD0 RD11 RD10
RD9
RD8 RA15 RA14
VSS OSC2 OSC1
VDD
RA5
RA4
VUSB VBUS
RF3
RD0
72
RD11
71
RD10
70 69 68
RA15
67 66
RA14 65 64 63 62
RA5
61
RA4
60
SDA2-RA3
59
SCL2-RA2
58 57 56 55 54 53
TX-RF8 RX-RF2
52
RF3
51
Pads HDR2
RA10
RB7
RB6
RA1
RD14
RD15
RB14
RF4
RF5
Pads HDR1
Figure 12-1: Connection pads schematic
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 lines I2C 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 34 Page 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 oer other
accessories, such as Li-polymer battery, stacking headers, wire jumpers and more.
01 02
Connect shield BatteryBoost shield PROTO shield
03
04
Gaming shield
05
mikroBUS shield
Page 35
06 07
Li-Polimer battery Wire 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 modication 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, ocers, employees or distributors be liable for any indirect, specic, incidental or consequential damages (including damages for loss of business prots 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 trac
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 specically 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 identication or explanation and to the owners’ benet, with no intent to infringe.
Copyright © MikroElektronika, 2013, All Rights Reserved.
Page 39
Page 40
PIC32
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/esupport
If you have any questions, comments or business proposals,
do not hesitate to contact us at oce@mikroe.com
mikromedia for PIC32 Manual
ver. 1.10c
0 100000 024324
Loading...