Download mikromedia for PIC32 User Manual

Transcript
mikromedia
for PIC32
™
®
Compact development system rich with on-board peripherals for all-round
multimedia development on PIC32MX460F512L device.
PIC32
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
Table of contents
Introduction to mikromedia for PIC32®
4
Programming with mikroProg™ programmer16
Package contains
5
mikroProg Suite™ for PIC® software
Key features
6
Programming with ICD2 or ICD3 programmer
18
7
4. Reset button
20
8
5. Crystal oscillator
22
8
6. microSD card slot
24
System specification
1. Power supply
Battery power supply
USB power supply
®
®
17
8
7. Touch screen
26
10
8. Audio module
28
Key microcontroller features
10
9. USB connection
30
3. Programming the microcontroller
11
10. Accelerometer
32
Programming with mikroBootloader
2. PIC32MX460F512L microcontroller
12
11. Flash memory 34
step 1 – Connecting mikromedia 12
12. Pads
36
step 2 – Browsing for .HEX file 13
13. Pinout
37
step 3 – Selecting .HEX file 13
14. Dimensions
38
step 4 – Uploading .HEX file
14
15. mikromedia accessories
39
step 5 – Finish upload
15
What’s next?
40
Page 3
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 flash 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 fits in the palm of the hand, which makes
it convenient platform for mobile devices.
Page 4
Package contains
01 Damage resistant protective box
mikromedia for PIC32® - pinout
5V power supply
Analog Lines
Interrupt Lines
Digital I/O lines
SCK2
SPI2 SDI2
SDO2
3.3V power supply
Reference Ground
VSYS
GND
RB0
RB1
RB2
RB3
RB4
RB5
RB14
RE8
RE9
RA14
RA15
RA10
RC4
RB6
RB7
RF3
RG12
RG13
RG14
RG6
RG7
RG8
3.3V
GND
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
Pin functions
02 mikromedia for dsPIC33® development system
Reset pin
Reference Ground
left ch.
right ch. audio out
PWM lines
Digital I/O lines
RX
UART
TX
SCL2
2
SDA2 I C
3.3V power supply
Reference Ground
Pin functions
Digital lines
Analog Lines
Interrupt Lines
SPI Lines
I2C Lines
UART lines
PWM lines
03 User’s guide, schematic and pinout
04 USB cable, two 1x26, one 1x6 and one 1x5 male headers
Page 5
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.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
02
13 Crystal oscillator
14 Power indication LED
15 microSD Card Slot
16 ICD2/3 connector
17 mikroProg connector
Page 6
04
03
System specification
05
06
power supply
Via USB cable (5V DC)
07
power consumption
58 mA with erased MCU (when on-board modules are inactive)
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.
13
14
CAUTION: Electrostatic Sensitive Device
15
16
Permanent damage may occur on devices subjected to high energy
electrostatic discharges which readily accumulate on the human
body or test equipment and can discharge without detection.
17
Page 7
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 on the board. Power
LED (GREEN) will indicate the presence
of power supply.
Figure 1-1:
Connecting USB
power supply
Battery power supply
Figure 1-2: Connecting
Li-Polymer battery
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.
Page 8
VCC-SYS
VCC-USB
DATA BUS
DMP2160UW
M1
VCC-1.8
C29
R6
4K7
VREF-1.8
R49
4K7
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
R46
100K
MIC5205-ADJ
R50
0R
VCC-3.3
VCC-3.3
R35
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
USB MINIB
VCC-3.3
VCC-BAT
HDR2
HDR1
GND
ID
D+
DVBUS
C28
10nF
R43
10K
CN1
BATT CONN
VSENSE
5
4
3
2
1
FP2
FERRITE
VCC-BAT
VCC-SYS
CN3
PMEG3010ER
D1
VCC-3.3
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
VCC-3.3
M1X26
R39
4K7
M1X26
VCC-3.3
LD2
CHARGE
VCC-3.3 VCC-BAT
R36
10K
STAT
R37
10K
Q4
BC846
Q5
BC846
R38
10K
E5
10uF
R45
1K
1
2
3
VCC-SYS
E7
C40
10uF
U5
2.2uF
STAT
VSS
VBAT
PROG
VDD
4
R44
3K9
Charging Current approx. 250mA
Figure 1-3: Power supply schematics
LD1
POWER
VCC-3.3
REG1
1
2K2
5
MCP73832
Page 9
VCC-SYS
R26
3
E3
10uF
E4
10uF
Vin
GND
Vout
LD29080DT33
2
2. PIC32MX460F512L microcontroller
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
MIPS M4K 32
-bit core
- 80MHz, 1.
5 DMIPS/MHz
- 5 Stage Pi
peline, 32-b
it ALU
Trace 32-bit
32 Core
HW
Registers
JTAG
Mul/Div
Shadow Se
t
Instruction
Data
- 32K RAM (can execute from RAM);
Prefetch
Buff er Cach
e
Flash SRAM
Peripherial
- 85 I/O pins;
- SPI, I2C, A/D;
- 16-bit, 32-bit Digital Timers;
DMA
4Ch
2-wire
Debug
USB
OTG
Bus Matrix
- 1.56 DMIPS/MHz, 32-bit MIPS M4K Core;
- 512K Flash (plus 12K boot Flash);
PIC32
16-bit
Parallel
Port
- Internal Oscillator 8MHz, 32kHz;
RTCC
- RTCC; etc.
Page 10
16 Ch
10-bit
ADCs
I2C
(2)
Interrupt
Controller
GPIO
(85)
VREG
Bus
Input
Capture
(5)
UARTs
(2)
Output
Compare
PWM(5)
16-bit
Timers
(5)
SPI
Analog
Comparators
(2)
(2)
3. Programming the microcontroller
Figure 3-1:
PIC32MX460F512L
microcontroller
The microcontroller can be programmed in three ways:
01 Over USB HID mikroBootloader
02 Using mikroProg™ external programmer
03 Using ICD2/3 external programmer
Page 11
Programming with mikroBootloader
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:
step 1 – Connecting mikromedia
www.mikroe.com/downloads/get/2153/
mikrobootloader_usb_hid_STM32F407VGT6.zip
01
Upon download, unzip it to desired location and start the
mikroBootloader application:
Figure 3-2: USB HID mikroBootloader window
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.
Page 12
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.
Click the Open button.
02
Page 13
step 4 – Uploading .HEX file
01
01
Figure 3-5: Begin uploading
Figure 3-6: Progress bar
01 To start .HEX file bootloading click the
Begin uploading button.
01 Progress bar enables you to monitor .HEX file uploading.
Page 14
step 5 – Finish upload
01
Figure 3-7: Restarting MCU
Figure 3-8: mikroBootloader ready for next job
01 Click OK button after the uploading process is finished
02 Press Reset button on mikromedia board and wait
for 5 seconds. Your program will run automatically
Page 15
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. It supports over 570
microcontrollers from Microchip®.
Outstanding performance, easy
operation and elegant design are
it’s key features.
Figure 3-9:
Connecting mikroProg™ to mikromedia™
Page 16
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
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
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 first soldered on the CN5 connector. Then you should plug the ICD2® or ICD3® programmer into it, Figure 3-11.
Page 18
Vcap
10uF
VCC-3.3 VCC-3.3
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
E9
VCC-3.3
C7
C8
C25
100nF
100nF
100nF
VCC-3.3
VCC-3.3
VCC-3.3
E8
C5
C6
10uF
100nF
100nF
VCC-3.3
CN5
MCLR#
PGD2
PGC2
RB7
RB6
R3
100
1
2
3
4
5
M1X6
R15 100
VCC-3.3
CN6
PGC2
PGD2
MCLR#
M1X5
Figure 3-13: mikroProg™ & ICD2 / ICD3 programmer connection schematic
Page 19
6
5
4
3
2
1
ICD2/3
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
mikroProg
PIC32MX460F512L
VSS
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2
OSC1
VDD
RA5
RA4
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS
U1TX/RF8
U1RX/RF2
RF3
RB6
RB7
RA9
RA10/VREF+
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5
RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6/SCK2
RG7/SDI2
RG8/SDO2
MCLR
RG9
VSS
VDD
RA0/TMS
RE8/INT1
RE9/INT2
RB5
RB4
RB3
RB2
RB1
RB0
PGC2
PGD2
MCLR#
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
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
ENVREG
Vcap/VDDcore
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1
U1
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 You can also solder additional reset button
on the appropriate place at the back side of
the board, Figure 4-1.
Figure 4-1: Location of additional reset button
Figure 4-2: Frontal reset button
Page 20
Vcap
E9
10uF
VCC-3.3
R8
10K
VCC-3.3
RST
T2
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
C3
BUTTON
BUTTON
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
ENVREG
Vcap/VDDcore
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1
PIC32MX460F512L
RB6
RB7
RA9
RA10/VREF+
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5
100
SOSCO
SOSCI
100nF
C30 22pF
HDR2
RST
C2
X1
CLKO
CLKI
C1
VCC-3.3 VCC-3.3
22pF
22pF
VCC-3.3
C7
C8
C25
100nF
100nF
100nF
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
R7
VSS
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2
OSC1
VDD
RA5
RA4
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS
U1TX/RF8
U1RX/RF2
RF3
X3
8MHz
RST
RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6/SCK2
RG7/SDI2
RG8/SDO2
MCLR
RG9
VSS
VDD
RA0/TMS
RE8/INT1
RE9/INT2
RB5
RB4
RB3
RB2
RB1
RB0
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
32.768kHz
U1
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
T1
C31 22pF
VCC-3.3
VCC-3.3
VCC-3.3
E8
C5
C6
100nF
100nF
10uF
VCC-3.3
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
Figure 4-3: Reset circuit schematic
Page 21
5. Crystal oscillator
Figure 5-1:
External crystal
oscillator (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.
NOTE The use of crystal in all other schematics is implied even if it is purposely left out because of the schematics clarity.
Page 22
Vcap
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.3
C31 22pF
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
ENVREG
Vcap/VDDcore
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1
PIC32MX460F512L
VSS
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2
OSC1
VDD
RA5
RA4
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS
U1TX/RF8
U1RX/RF2
RF3
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
RB6
RB7
RA9
RA10/VREF+
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5
RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6/SCK2
RG7/SDI2
RG8/SDO2
MCLR
RG9
VSS
VDD
RA0/TMS
RE8/INT1
RE9/INT2
RB5
RB4
RB3
RB2
RB1
RB0
Figure 5-2: Crystal oscillator schematic
Page 23
X3
SOSCO
SOSCI
C30 22pF
C2
22pF
8MHz
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
32.768kHz
U1
X1
CLKO
CLKI
C1
22pF
VCC-3.3 VCC-3.3
VCC-3.3
C7
C8
C25
100nF
100nF
100nF
VCC-3.3
VCC-3.3
VCC-3.3
E8
C5
C6
10uF
100nF
100nF
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.
Page 24
Vcap
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.3
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
X3
SOSCO
SOSCI
SD-CD#
C8
C25
100nF
100nF
100nF
C30 22pF
C2
22pF
X1
CLKO
CLKI
C1
VCC-3.3
VCC-3.3
VCC-3.3
E8
C5
C6
10uF
100nF
100nF
22pF
VCC-MMC
VCC-3.3
FP1
FERRITE
E6 10uF
C38
100nF
VCC-MMC
R11
10K
R10
10K
CN4 MMC CARD MICRO
R9
10K
SD-CS#
MOSI2-RG8
SCK2-RG6
MISO2-RG7
SD-CD#
Figure 6-2: microSD Card Slot module connection schematic
Page 25
VCC-3.3
C7
R16
27
1
2
4
5
6
7
CS
Din
+3.3V
SCK
GND
Dout
CD
G
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
ENVREG
Vcap/VDDcore
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1
RB6
RB7
RA9
RA10/VREF+
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5
PIC32MX460F512L
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
R4 27
VSS
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2
OSC1
VDD
RA5
RA4
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS
U1TX/RF8
U1RX/RF2
RF3
8MHz
SD-CS#
R5 27
RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6/SCK2
RG7/SDI2
RG8/SDO2
MCLR
RG9
VSS
VDD
RA0/TMS
RE8/INT1
RE9/INT2
RB5
RB4
RB3
RB2
RB1
RB0
32.768kHz
SCK2-RG6
MISO2-RG7
MOSI2-RG8
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
VCC-3.3 VCC-3.3
C31 22pF
U1
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 diffe­rent colors.
Figure 7-1:
Touch Screen
Page 26
Vcap
E9
10uF
PMD15
PMD14
PMRD
PMWR
PMD13
PMD12
PMD8
PMD9
PMD10
PMD11
PMD1
PMD0
TFT1
VCC-3.3
VCC-SYS
1K
PIC32MX460F512L
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
VCC-3.3
VCC-3.3 VCC-3.3
VCC-3.3
C7
C8
C25
100nF
100nF
100nF
E13
10uF
PMD15
PMD14
PMD13
PMD12
PMD11
PMD10
PMD9
PMD8
VCC-3.3 VCC-3.3
VCC-3.3
VCC-3.3
VCC-3.3
E8
C5
C6
10uF
100nF
100nF
R24
10K
C21
R41
300K
R25
10K
LCD-RST
LCD-CS#
18nF
PMD7
PMD6
PMD5
PMD4
PMD3
PMD2
PMD1
PMD0
PMRD
PMWR
LCD-RS
LCD-CS#
VCC-3.3
C22
R42
300K
LCD-XL
LCD-YU
LCD-RS
LCD-CS#
LCD-YU
LCD-XL
LCD-RST
Q3
BC846
VCC-3.3
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
R40
12
Q2
BC846
BAT43
18nF
LCD-YD
LCD-XR
D2
LCD-BLED
VSS
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2
OSC1
VDD
RA5
RA4
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS
U1TX/RF8
U1RX/RF2
RF3
RB6
RB7
RA9
RA10/VREF+
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5
RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6/SCK2
RG7/SDI2
RG8/SDO2
MCLR
RG9
VSS
VDD
RA0/TMS
RE8/INT1
RE9/INT2
RB5
RB4
RB3
RB2
RB1
RB0
LCD-BLED
PMD5
PMD6
PMD7
LCD-RST
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
ENVREG
Vcap/VDDcore
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1
U1
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
Q1
BC846
R23
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
PMD4
PMD3
PMD2
VCC-SYS VCC-3.3
LCD-XR
LCD-YD
LCD-XL
LCD-YU
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
L ED- K
L ED- A1
L ED- A2
L ED- A3
L ED- A4
IM0
IM3
IM2
IM1
RESET
VSYNC
HSYNC
DOTCL K
DE
DB17
DB16
DB15
DB14
DB13
DB12
DB11
DB10
DB9
DB8
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
SDO
SDI
RD
WR(D/C)
D/C(SCL)
CS
TE
VDDI
VCI
VCI
GND
X+(R)
Y+(D)
X- (L )
Y- (U)
MI 0283QT- 9A
Figure 7-2: Touch Screen connection schematic
Page 27
8. Audio module
Figure 8-1:
On-board VS1053
MP3 codec
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 28
Vcap
E9
10uF
100nF
100nF
100nF
VCC-3.3
VCC-3.3
VCC-3.3
E8
C5
C6
10uF
100nF
100nF
U2
13
14
15
16
17
18
19
20
21
22
23
24
MP3-BSYNC
R1
1M
MP3-CS#
C19
22pF
X2
12.288MHz
470
XDCS/BSYNC
IOVDD1
VCO
DGND1
XTALO
XTALI
IOVDD2
DGND2
DGND3
DGND4
XCS
CVDD2
VS1053
LN2
AGND3
LEFT
AVDD2
RCAP
AVDD1
GBUF
AGND2
AGND1
RIGHT
AVDD0
AGND0
48
47
46
45
44
43
42
41
40
39
38
37
LEFT
C20
22pF
R
10uF
E1
R32
12
11
10
9
8
7
6
5
4
3
2
1
R2
10K
GPIO7
GPIO6
GPIO3
GPIO2
DREQ
CVDD1
IOVDD0
CVDD0
DGND0
XRESET
MCN
MCP/LN1
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
ENVREG
Vcap/VDDcore
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1
C18
3.3nF
MP3-RST#
MP3-RST#
MP3-DREQ
R20
10K
VCC-3.3
R21
10K
R22
27
Figure 8-3: Audio module connection schematic
Page 29
MISO2-RG7
C25
470
C17
3.3nF
LEFT
RIGHT
R18
100K
L
10uF
R28
10
R29
10
R17
100K
CN2
GBUF
PHONEJACK
RIGHT
C13
1uF
GPIO5
RX
TX
SCLK
SI
SO
CVDD3
XTEST
GPIO0
GPIO1
GND
GPIO4
C8
E2
R33
25
26
27
28
29
30
31
32
33
34
35
36
VCC-3.3
C7
PIC32MX460F512L
VCC-3.3
MP3-CS#
SCK2-RG6
MOSI2-RG8
27
VCC-1.8
R19
10K
R30
20
R31
20
R27
10
C15
C16
C14
10nF
10nF
47nF
GPIO
R4
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
MP3-BSYNC
27
VSS
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2
OSC1
VDD
RA5
RA4
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS
U1TX/RF8
U1RX/RF2
RF3
RB6
RB7
RA9
RA10/VREF+
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5
VCC-3.3 VCC-3.3
R5
RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6/SCK2
RG7/SDI2
RG8/SDO2
MCLR
RG9
VSS
VDD
RA0/TMS
RE8/INT1
RE9/INT2
RB5
RB4
RB3
RB2
RB1
RB0
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
SCK2-RG6
MISO2-RG7
MOSI2-RG8
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
MP3-DREQ
VCC-3.3
U1
MP3-CS#
MP3-RST#
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
VCC-1.8
VCC-1.8
VCC-3.3
VCC-3.3
VCC-3.3
VCC-3.3
VCC-3.3
VCC-1.8
VCC-1.8
C4
C9
C10
C11
C12
C23
C24
C26
C27
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
9. USB connection
Figure 9-1:
Connecting USB
cable to MINI-B USB
connector
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.
Page 30
Vcap
E9
10uF
VCC-3.3 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
VCC-3.3
C31 22pF
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
ENVREG
Vcap/VDDcore
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1
PIC32MX460F512L
VSS
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2
OSC1
VDD
RA5
RA4
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS
U1TX/RF8
U1RX/RF2
RF3
RB6
RB7
RA9
RA10/VREF+
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5
RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6/SCK2
RG7/SDI2
RG8/SDO2
MCLR
RG9
VSS
VDD
RA0/TMS
RE8/INT1
RE9/INT2
RB5
RB4
RB3
RB2
RB1
RB0
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
100nF
100nF
100nF
VCC-3.3
VCC-3.3
VCC-3.3
E8
C5
C6
10uF
100nF
100nF
C30 22pF
C2
X1
22pF
CLKO
CLKI
C1
22pF
RF3
1
USB-ID-RF3
2
USB-ID
3
USB-DET
USB-ID-RF3
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Figure 9-2: USB module connection schematic
J3
SMD JUMPER
USBDP
USBDM
VCC-USB
Page 31
C25
8MHz
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
X3
C8
32.768kHz
U1
VCC-3.3
C7
CN3
USB-DET
R14
100
FP2
USB-ID
USBDP
USBDM
FERRITE
C28
10nF
5
4
3
2
1
GND
ID
D+
DVBUS
USB MINIB
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.
Jumper is placed in address 1 position by default.
Page 32
Vcap
E9
10uF
VCC-3.3
VCC-3.3
VCC-3.3
VCC-3.3
R12
10K
SCL2-RA2
SDA2-RA3
ACC ADDRESS
VCC-3.3
3
13
12
11
10
9
8
2
SDA
ADD
Res
NC
INT2
INT1
1
VCC
GND
Res
GND
GND
VCC
ADXL345
J1
SMD JUMPER
SDA2-RA3
SCL2-RA2
VCC-3.3 VCC-3.3
VCC-3.3
C7
C8
C25
100nF
100nF
100nF
VCC-3.3
VCC-3.3
VCC-3.3
E8
C5
C6
10uF
100nF
100nF
Figure 10-2: Accelerometer connection schematic
Page 33
R13
10K
14
U9
1
2
3
4
5
6
SCL
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
7
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
ENVREG
Vcap/VDDcore
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1
PIC32MX460F512L
VSS
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2
OSC1
VDD
RA5
RA4
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS
U1TX/RF8
U1RX/RF2
RF3
RB6
RB7
RA9
RA10/VREF+
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5
RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6/SCK2
RG7/SDI2
RG8/SDO2
MCLR
RG9
VSS
VDD
RA0/TMS
RE8/INT1
RE9/INT2
RB5
RB4
RB3
RB2
RB1
RB0
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
CS
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
U1
C32
100nF
C33
100nF
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).
Page 34
Vcap
10uF
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
E9
R5 27
R4 27
PIC32MX460F512L
VSS
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2
OSC1
VDD
RA5
RA4
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS
U1TX/RF8
U1RX/RF2
RF3
RB6
RB7
RA9
RA10/VREF+
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5
SCK2-RG6
MISO2-RG7
MOSI2-RG8
RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6/SCK2
RG7/SDI2
RG8/SDO2
MCLR
RG9
VSS
VDD
RA0/TMS
RE8/INT1
RE9/INT2
RB5
RB4
RB3
RB2
RB1
RB0
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
VCC-3.3 VCC-3.3
VCC-3.3
C7
C8
C25
100nF
100nF
100nF
VCC-3.3
VCC-3.3
VCC-3.3
E8
C5
C6
10uF
100nF
100nF
VCC-3.3
VCC-3.3 VCC-3.3
R48
10K
FLASH-CS#
MISO2-RG7
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FLASH-CS#
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
ENVREG
Vcap/VDDcore
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1
U1
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
C37
U10
1
2
3
4
CS
SDO
WP
GND
M25P80
Figure 11-2: Flash memory module connection schematic
Page 35
VCC
HOLD
SCK
SDI
100nF
8
7
6
SCK2-RG6
5 MOSI2-RG8
12. Pads
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.
Note: pin RA10 can be used either as an I/O or as VREF1.8.
(to switch between those, solder jumper J2 in
appropriate position). Pads HDR2
Pads HDR1
Page 36
10uF
RD3
RD2
RD1
RA7
RA6
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
RG13
RG12
RG14
Vcap
PIC32MX460F512L
RD14
RD15
RF4
RF5
RB14
27
100
RA1
RA0
RE8
RE9
RB5
RB4
RB3
RB2
RB1
RB0
27
RA10
VCC-3.3
RC4
SCK2-RG6 R5
MISO2-RG7
MOSI2-RG8 R4
R7
RST
VSS
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2
OSC1
VDD
RA5
RA4
SDA2/RA3
SCL2/RA2
D+/RG2
D-/RG3
VUSB
VBUS
U1TX/RF8
U1RX/RF2
RF3
RB6
RB7
RA9
RA10/VREF+
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5
L
R
RD0
RD1
RD2
RD3
RA0
RA1
RA4
RA5
RA6
RA7
RD10
RD11
RD14
RD15
RF4
RF5
RX-RF2
TX-RF8
SCL2-RA2
SDA2-RA3
RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6/SCK2
RG7/SDI2
RG8/SDO2
MCLR
RG9
VSS
VDD
RA0/TMS
RE8/INT1
RE9/INT2
RB5
RB4
RB3
RB2
RB1
RB0
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
M1X26
RST
VCC-SYS
RB6
RB7
RX
TX
SCL
SDA
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
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
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
ENVREG
Vcap/VDDcore
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1
U1
HDR2
Figure 12-1: Connection pads schematic
Page 37
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
HDR1
RD0
RD11
RD10
RA15
RA14
RA5
RA4
SDA2-RA3
SCL2-RA2
TX-RF8
RX-RF2
RF3
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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SCK
22
SDI
23
SDO
24
25
26
M1X26
13. Pinout
5V power supply
Analog Lines
Interrupt Lines
Digital I/O lines
SCK2
SPI2 SDI2
SDO2
3.3V power supply
Reference Ground
VSYS
GND
RB0
RB1
RB2
RB3
RB4
RB5
RB14
RE8
RE9
RA14
RA15
RA10
RC4
RB6
RB7
RF3
RG12
RG13
RG14
RG6
RG7
RG8
3.3V
GND
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
Reset pin
Reference Ground
left ch.
right ch. audio out
PWM lines
Digital I/O lines
RX
UART
TX
SCL2
2
SDA2 I C
3.3V power supply
Reference Ground
Pin functions
Pin functions
Digital lines
Analog Lines
Interrupt Lines
SPI Lines
Page 38
I2C Lines
UART lines
PWM lines
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 39
2.67
105
15. mikromedia accessories
We have prepared a set of
extension boards pin-compatible
with your mikromedia, which
enable you to easily expand
your board’s basic functionality.
We call them mikromedia
shields. But we also offer other
accessories, such as Li-polymer
battery, stacking headers, wire
jumpers and more.
04
Gaming shield
01
Connect shield
02
BatteryBoost shield
03
PROTO shield
05
mikroBUS™ shield
06
Li-Polimer battery
07
Wire jumpers
Page 40
What’s next?
You have now completed the journey through each and every feature of mikromedia for PIC32 board. You got to know its
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. Find useful projects and tutorials on the Libstock website (www.libstock.com). Join our Forum
(www.mikroe.com/forum) and get help from a large ecosystem of users.
Compiler
You still don’t have an appropriate compiler? Locate PIC32® compiler that
suits you best on our site:
www.mikroe.com/pic/compilers
Choose between mikroC™, mikroBasic™ and mikroPascal™ and download a fully
functional demo version, so you can begin building your first applications.
Visual TFT
Once you have chosen your compiler, and since you already got the board, you are ready to start writing
your first projects. Visual TFT software enables you to quickly create your GUI. It will automatically
generate code compatible with МikroElektronika compilers. Visual TFT is rich with examples, which are
an excellent starting point for your future projects. Download it from the link bellow:
www.mikroe.com/visualtft
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. The manual PDF edition can be printed for
private or local use, but not for distribution. Any modification 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 fitness 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, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including
damages for loss of business profits 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 hazardous environments requiring fail – safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication
systems, air traffic 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 specifically disclaim any expressed or
implied warranty of fitness for High Risk Activities.
TRADEMARKS
The MikroElektronika name and logo, mikroC™, mikroBasic™, mikroPascal™, Visual TFT™, Visual GLCD™, mikroProg™, Ready™, MINI™, mikroBUS™, EasyPIC™, EasyAVR™,
Easy8051™, 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 identification or explanation and to the owners’ benefit, with no intent to infringe.
The PIC32® and Windows® logos and product names are trademarks of Microchip Technology® and Microsoft® in the U.S.A. and other countries.
Copyright © 2014 MikroElektronika. All Rights Reserved.
Page 43
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/support
If you have any questions, comments or business proposals,
do not hesitate to contact us at [email protected]
mikromedia for PIC32 Manual
ver. 1.10f
0100000079256