Mikroe 606
Mikroe 606
for dsPIC33 ®
™
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
The dsPIC® and Windows® logos and product names are trademarks of Microchip Technology® and Microsoft® in the U.S.A. and other countries.
Table of Contents
Introduction to mikromedia for dsPIC33® 4 Programming with mikroProg™ programmer 18
Package Contains 5 mikroProg Suite™ for PIC Software 19
Key Features 6 Programming with ICD2 or ICD3 programmer 20
System Specification 7 4. Reset buttons 22
1. Power supply 8 5. Crystal oscillator 24
USB power supply 8 6. MicroSD Card Slot 25
Battery power supply 8 7. Touch Screen 26
2. dsPIC33FJ256GP710A microcontroller 10 8. Audio Module 28
Key microcontroller features 10 9. USB-UART connection 30
3. Programming the microcontroller 11 10. Accelerometer 32
Programming with mikroBootloader 12 11. Flash Memory 33
step 1 – Choosing COM port 13 12. Pads 34
step 2 – Choosing device family 14 13. Pinout 35
step 3 – Choosing device 14 14. Dimensions 36
step 4 – Browse for .HEX file 15 15. Mikromedia Accessories 37
step 5 – Set Baud rate 16 16. What’s Next 38
step 6 – Uploading .HEX file 16
Page 3
Introduction to mikromedia for dsPIC33®
The mikromedia for dsPIC33® is a compact
development system with lots of on-board
peripherals which allow development of devices
with multimedia contents. The central part of
the system is a 16-bit dsPIC33FJ256GP710A
microcontroller. The mikromedia for dsPIC33
features integrated modules such as stereo MP3
codec, TFT 320x240 touch screen display,
accelerometer, USB connector, audio connector,
MMC/SD card slot, 8 Mbit flash memory, 2x26
connection pads and other. It comes pre-
programmed with UART 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
20122011
www.mikroe.com
SCHEMATICS
mikromedia ™
for dsPIC33®
We present you
with a
development board. complete color schematics for
We mikromedia™ for
how it actually works want you to know what your dsPIC33®
. board is consisted
of and
Page 5
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 01
07 Power supply regulator
08 FTDI chip
09 Serial Flash memory
10 RESET button
11 VS1053 Stereo mp3 coder/decoder
12 dsPIC33FJ256GP710A microcontroller 02
13 Accelerometer
14 Crystal oscillator
15 Power indication LED
16 microSD Card Slot
17 ICD2/3 connector
18 mikroProg connector
Page 6
04 05
03
06 System Specification
07 power supply
Via USB cable (5V DC)
08 09
power consumption
10 11
77 mA with erased MCU
(when on-board modules are inactive)
12 board dimensions
13 81.2 x 60.5cm (3.19 x 2.38 inch)
weight
14
~50 g (0.11 lbs)
15
16
17 18
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 of the board. Power
LED (GREEN) will indicate the presence of
power supply.
Figure 1-1: Connecting
USB power supply
Page 8
VCC-SYS VCC-USB
CN3
PMEG3010ER FP2
D1 FERRITE VCC-SYS
1
VBUS
2
D-
3
DATA BUS
DMP2160UW D+ HDR1 HDR2
M1 4 ID
5 1 27
C28 GND 2 28
10nF 3 29
VCC-BAT 4 30
USB MINIB
R43 5 31
+ 10K 6 32
CN1 7 33
- BATT CONN 8 34
9 35
10 36
VCC-3.3 VCC-1.8 11 37
VCC-BAT 12 38
C29 E10 13 39
R6 14 40
4K7 VCC-1.8 15 41
VREF-1.8 VCC-1.8 2.2uF 10uF 16 42
R49 FP3 U3
R47 17 43
4K7 1 5
VSENSE FERRITE Vin Vout 120K 18 44
2 19 45
E11 GND
R34 3 4 20 46
10uF EN ADJ
4K7 21 47
MIC5205-ADJ R46 22 48
22K 23 49
R50 24 50
0R VCC-3.3 25 VCC-3.3 51
VCC-3.3 26 52
Figure 1-3: Power supply schematics M1X26 M1X26
R39
VCC-3.3 4K7 VCC-3.3
Page 9
2. dsPIC33FJ256GP710A microcontroller
Page 10
3. Programming the microcontroller
http://www.mikroe.com/eng/products/view/586/
mikrommb-for-dspic33-board/
Page 12
Identifying device COM port step 1 – Choosing COM port
01
NOTE In Device Manager you can see which COM port is 01 From drop down list select USB COM port which is used for
assigned to mikromedia (in this case COM5) communication with a PC (in this case COM5)
Page 13
step 2 – Choosing device family step 3 – Choosing device
01
01
01 From drop down list select MCU family (dsPIC33FJ) 01 From drop down list select MCU chip (256GP710A)
Page 14
step 4 – Browse for .HEX file
01 01
02
03
01
02 01
01 From drop down list set baud rate value to 256000 01 First RESET mikromedia and then, within 5s click on
02 Check Write program check box Write button
Page 16
If you accidently erase bootloader program from MCU memory it is possible to load it again with external programer.
NOTE mikromedia for dsPIC33® bootloader firmware.hex file is located in Firmware subfolder, Page 12.
01
01
01 Progress bar indicates .HEX file upload process 01 After uploading is finished you will get notice in
ds30 Loader history window
Page 17
Programming with mikroProg™
programmer The microcontroller can be programmed with mikroProg™
programmer and mikroProg Suite™ fo PIC® software. The
mikroProg™ programmer is connected to the development
system via the CN6 connector, Figure 3-12.
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,
Figure 3-12:
easy operation and elegant design are it’s key features.
Connecting mikroProg™ to mikromedia™
Page 18
mikroProg Suite™ for PIC® Software
Page 19
Programming with
ICD2® or ICD3® programmer
The microcontroller can be also programmed with ICD2®
or ICD3® programmer. These programmers connects
with mikromedia board via ICD2 CONNECTOR BOARD.
Figure 3-15:
Connecting ICD2®
or ICD3® programmer
Page 20
E9
10uF
VCC-3.3 CN6
1
PGC1 2
VCC-3.3 PGD1 3
MCLR# 4
5
M1X5
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
U1
C31
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
RD7
RD6
RD5
RD4
RD13
RD12
VCC
RD3
RD2
RD1
VCAP
1 75 22pF
RG15 GND
2 SOSCO/RC14 74 SOSCO
VCC X3 32.768KHz
3 73 SOSCI
RE5 SOSCI/RC13
4 72
RE6 RD0 C30
5 71
RE7 RD11
6 70
RC1 RD10
7 69 22pF
RC2 RD9
8 68
RC3 RD8 C2
9 67
RC4 RA15
10 66
RG6/SCK2 RA14
11 65 22pF
RG7/SDI2 GND
12 64 CLKO
RG8/SDO2 CLKO/RC15 X1 8MHz
MCLR# 13 63 CLKI
14
MCLR
RG9
dsPIC33FJ256GP710A CLKI/RC12
VCC
62
15 61 C1
GND RA5
16 60
VCC RA4
17 59 22pF
RA0 RA3
18 58
RA12 RA2
19 57
RA13 SCL1/RG2
20 56 VCC-3.3
RB5 SDA1/RG3
21 55
RB4 SCK1/RF6 CN5
22 54
RB3 SDI1/RF7 MCLR# 6
23 53
RB2/AN2 SDO1/RF8 5
24 52
RA10/Vref+
RB7/PGED1
RB1 U1RX/RF2 4
RB6/PGEC1
RB10/AN10
25 51
RA9/Vref-
RB8/AN8
RB9/AN9
RB0 U1TX/RF3 PGD1 3
PGC1 2
AGND
RD14
RD15
AVCC
RB11
RB12
RB13
RB14
RB15
RF13
RF12
GND
GND
VCC
VCC
RA1
RF4
RF5
1
R15 R14
100 100 M1X6
RB7
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
VREF-1.8
E8 C5 C6 C7 C8
decoupling capacitors
Figure 4-1: Reset button located at the backside of the board Figure 4-2: Frontal reset button
Page 22
VCC-3.3
E9
R8
10uF 10K HDR2
RST
27
28
29
T2 T1
VCC-3.3 C3 30
100nF 31
32
33
34
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
35
U1 36
C31 37
RD13
RD12
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
RD7
RD6
RD5
RD4
VCC
RD3
RD2
RD1
VCAP
38
1 75 39
RG15 GND 22pF
2 74 SOSCO 40
VCC SOSCO/RC14
3 73 SOSCI X3 32.768KHz 41
RE5 SOSCI/RC13
4 72 42
RE6 RD0 C30
5 71 43
RE7 RD11
6 70 44
RC1 RD10
7 69 45
RC2 RD9 22pF
8 68 46
RC3 RD8 C2
9 67 47
RC4 RA15
10 66 48
RG6/SCK2 RA14
11 65 49
RG7/SDI2 GND 22pF
12 64 CLKO 50
RG8/SDO2 CLKO/RC15 X1 8MHz
R7 100 13 63 CLKI VCC-3.3 51
14
MCLR
RG9
dsPIC33FJ256GP710A CLKI/RC12
VCC
62 52
15 61 C1
GND RA5 M1X26
16 60
VCC RA4
17 59 22pF
RA0 RA3
18 58
RA12 RA2
19 57
RA13 SCL1/RG2
20 56
RB5 SDA1/RG3
21 55
RB4 SCK1/RF6
22 54
RB3 SDI1/RF7
23 53
RB2/AN2 SDO1/RF8 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3
24 52
RA10/Vref+
RB7/PGED1
RB1 U1RX/RF2
RB6/PGEC1
RB10/AN10
25 51
RA9/Vref-
RB8/AN8
RB9/AN9
RB0 U1TX/RF3
E8 C5 C6 C7 C8
AGND
RD14
RD15
AVCC
RB11
RB12
RB13
RB14
RB15
RF13
RF12
GND
GND
VCC
VCC
RA1
RF4
RF5
10uF 100nF 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
decoupling capacitors
VREF-1.8
U1
C31
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
RD7
RD6
RD5
RD4
RD13
RD12
VCC
RD3
RD2
RD1
VCAP
1 75 22pF
RG15 GND
2 SOSCO/RC14 74 SOSCO
VCC X3 32.768KHz
3 73 SOSCI
RE5 SOSCI/RC13
4 72
RE6 RD0 C30
Figure 5-1:
5 71
RE7 RD11
6 70
RC1 RD10
7 69 22pF
RC2 RD9
Crystal oscillator
8 68 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3
RC3 RD8 C2
9 67
RC4 RA15
10 66 E8 C5 C6 C7 C8
RG6/SCK2 RA14
module (X1)
11 65 22pF
RG7/SDI2 GND 10uF 100nF 100nF 100nF 100nF
12 64 CLKO
RG8/SDO2 CLKO/RC15 X1 8MHz
13 63 CLKI
14
MCLR
RG9
dsPIC33FJ256GP710A CLKI/RC12
VCC
62
15 61 C1
GND RA5
16
17
VCC RA4
60
59 decoupling capacitors
RA0 RA3 22pF
18 58
RA12 RA2
19 57
RA13 SCL1/RG2
20 56
RB5 SDA1/RG3
21 55
RB4 SCK1/RF6
22 54
RB3 SDI1/RF7
Figure 5-2:
23 53
RB2/AN2 SDO1/RF8
24 52
RA10/Vref+
RB7/PGED1
RB1 U1RX/RF2
RB6/PGEC1
RB10/AN10
25 51
RA9/Vref-
RB8/AN8
RB9/AN9
RB0 U1TX/RF3
RD14
RD15
AVCC
RB11
RB12
RB13
RB14
RB15
RF13
RF12
GND
GND
VCC
VCC
RA1
RF4
RF5
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
NOTE : The use of crystal in all other schematics is implied even if it is purposely
VREF-1.8
left out, because of the schematics clarity.
Page 24
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.
E9
10uF
E8 C5 C6 C7 C8
VCC-3.3
10uF 100nF 100nF 100nF 100nF Figure 6-1:
microSD card slot
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 U1 decoupling capacitors
C31
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
RD7
RD6
RD13
RD12
VCC
RD5
RD4
RD3
RD2
RD1
VCAP
1 75 22pF
RG15 GND
2 SOSCO/RC14 74 SOSCO
VCC X3 32.768KHz
3 73 SOSCI
RE5 SOSCI/RC13
4 72
RE6 RD0 C30
5 71
RE7 RD11
6 70
RC1 RD10
7 69 22pF
RC2 RD9
8 68 VCC-MMC VCC-3.3
RC3 RD8 C2
9 67 FP1
RC4 RA15
SCK2-RG6 R5 27 10 66
RG6/SCK2 RA14
MISO2-RG7 11 65 22pF FERRITE
RG7/SDI2 GND
MOSI2-RG8 R4 27 12 64 CLKO
RG8/SDO2 CLKO/RC15 X1 8MHz E6
13 63 CLKI C38
SD-CS# 14
MCLR
RG9
dsPIC33FJ256GP710A CLKI/RC12
VCC
62 100nF 10uF
15 61 C1
GND RA5
16 60
VCC RA4
17 59 22pF
RA0 RA3
18 58
RA12 RA2 VCC-MMC
19 57
RA13 SCL1/RG2
20 56
RB5 SDA1/RG3
21 55
RB4 SCK1/RF6
22 54 VCC-MMC
RB3 SDI1/RF7 R11 R10 R9 CN4
23 53
RB2/AN2 SDO1/RF8 10K 10K 10K
24 52
RA10/Vref+
RB7/PGED1
RB1 U1RX/RF2
RB6/PGEC1
RB10/AN10
25 51
RA9/Vref-
RB8/AN8
RB9/AN9
RD14
RD15
AVCC
MOSI2-RG8 2
RB11
RB12
RB13
RB14
RB15
RF13
RF12
GND
GND
VCC
VCC
RA1
Din
Din
RF4
RF5
4
+3.3V
SCK2-RG6 5
SCK
SCK
6
GND
GND
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
MISO2-RG7 R16 7
Dout
Dout
GND
27
SD-CD# CD
G
CD
CD
Figure 6-3:
SD-CD#
VREF-1.8
Figure 7-1:
Touch Screen
Page 26
E9
10uF VCC-3.3
VCC-SYS
TFT1
T-D12
T-D11
T-D10
T-D9
T-D8
T-D7
T-D6
LCD-BLED
PMRD
PMWR
Q1 1
LED-K
BC846 2
VCC-3.3 LED-A1
3
R23 LED-A2
4
VCC-SYS LED-A3
5
D2 1K LED-A4
6
IM0
100
LCD-BLED 7
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
IM1
R40 8
U1 Q2 IM2
C31 BAT43 12 9
BC846 IM3
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
RD7
RD6
RD5
RD4
RD13
RD12
VCC
RD3
RD2
RD1
VCAP
LCD-RST 10
RESET
11
1 75 Q3 VSYNC
RG15 GND 22pF 12
2 74 SOSCO BC846 HSYNC
VCC SOSCO/RC14 13
T-D13 3 73 SOSCI X3 32.768KHz DOTCLK
RE5 SOSCI/RC13 14
T-D14 4 72 ENABLE
RE6 RD0 C30 T-D15 15
T-D15 5 71 DB17
RE7 RD11 T-D14 16
LCD-RST 6 70 DB16
RC1 RD10 T-D13 17
7 69 DB15
RC2 RD9 22pF T-D12 18
LCD-CS# 8 68 DB14
RC3 RD8 C2 T-D11 19
9 67 DB13
RC4 RA15 T-D10 20
10 66 VCC-3.3 DB12
RG6/SCK2 RA14 T-D9 21
11 65 DB11
RG7/SDI2 GND 22pF T-D8 22
12 64 CLKO DB10
RG8/SDO2 CLKO/RC15 23
13 63 CLKI X1 8MHz E13 DB9
14
MCLR
RG9
dsPIC33FJ256GP710A CLKI/RC12
VCC
62 10uF
T-D7
T-D6
24
25
DB8
15 61 T-D5 C1 DB7
GND RA5 T-D5 26
16 60 T-D4 DB6
VCC RA4 T-D4 27
T-D0 17 59 T-D3 DB5
RA0 RA3 22pF T-D3 28
18 58 T-D2 DB4
RA12 RA2 T-D2 29
19 57 DB3
RA13 SCL1/RG2 T-D1 30
20 56 DB2
RB5 SDA1/RG3 T-D0 31
21 55 DB1
RB4 SCK1/RF6 VCC-3.3 VCC-3.3 32
22 54 DB0
RB3 SDI1/RF7 33
23 53 SDO
RB2/AN2 SDO1/RF8 34
24 52 R24 R25 SDI
RA10/Vref+
PMRD 35
RB7/PGED1
RB1 U1RX/RF2
RB6/PGEC1
RB10/AN10
25 51 10K 10K RD
RA9/Vref-
PMWR 36
RB8/AN8
RB9/AN9
RB0 U1TX/RF3
WR/SCL
LCD-RST LCD-RS 37
AGND
RD14
RD15
AVCC
RB11
RB12
RB13
RB14
RB15
RF13
RF12
RS
GND
GND
VCC
RA1
RF4
RF5
LCD-CS# LCD-CS# 38
CS
39
FMARK
E8 C5 C6 C7 C8 40
VCC-3.3 VCC-3.3 VCC-IO
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
41
10uF 100nF 100nF 100nF 100nF VCC
42
C21 VCC-I
C22 43
R41 R42 GND
LCD-XR 44
18nF 300K 18nF 300K XR
LCD-YD 45
YD
decoupling capacitors LCD-XL LCD-XL 46
LCD-YD
LCD-YU
LCD-XR
LCD-RS
LCD-XL
XL
VREF-1.8 LCD-YU LCD-YU 47
T-D1
YU
MI0283QT2
Figure 8-1:
On-board VS1053
MP3 codec
Figure 8-2:
Inserting 3.5mm The mikromedia for dsPIC33 features stereo audio codec VS1053. This module
headphones jack 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
E9
10uF
VCC-3.3
MP3-RST#
MP3-CS#
MP3-DCS
MP3-DREQ
VCC-1.8 VCC-1.8 VCC-1.8 VCC-1.8 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3
R19
10K
VCC-3.3
MP3-CS#
MP3-RST#
100
C4 C9 C10 C11 C12 C23 C24 C26 C27
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
R2
U1 10K 100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF
C31
decoupling capacitors
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
RD7
RD6
RD5
RD4
RD13
RD12
VCC
RD3
RD2
RD1
VCAP
1 75 22pF
RG15 GND
2 SOSCO/RC14 74 SOSCO
VCC X3 32.768KHz
3 73 SOSCI
RE5 SOSCI/RC13
MP3-DREQ
MP3-RST#
4 72
RE6 RD0 C30
5 71 VCC-1.8 VCC-3.3 R33 E2 10uF
RE7 RD11 R
6 70
RC1 RD10
7 69 22pF 470
RC2 RD9 C18 R18
8 68
RC3 RD8 C2 3.3nF 100K
9 67
RC4 RA15
SCK2-RG6 R5 27 10 66
RG6/SCK2 RA14
MISO2-RG7 11 65 22pF
RG7/SDI2 GND R32 E1 10uF
MOSI2-RG8 R4 27 12 64 CLKO L
12
11
10
RG8/SDO2 CLKO/RC15
9
8
7
6
5
4
3
2
1
13 63 CLKI X1 8MHz
14
MCLR
RG9
dsPIC33FJ256GP710A CLKI/RC12
VCC
62
U2 470
C17 R17
C1
DREQ
XRESET
MICN
CVDD1
IOVDD0
CVDD0
DGND0
MCP/LN1
GPIO7
GPIO6
GPIO3
GPIO2
15 61 3.3nF 100K
GND RA5
16 60
VCC RA4
17 59 MP3-DCS 13 48
RA0 RA3 22pF XDCS/BSYNC LN2
18 58 14 47 CN2
RA12 RA2 IOVDD1 AGND3 R28 10
19 57 15 46 LEFT LEFT
RA13 SCL1/RG2 VC0 LEFT
20 56 16 45
RB5 SDA1/RG3 DGND1 AVDD2
21 55 17 44
RB4 SCK1/RF6 XTAL0 RCAP R29 10
22 54 18 43 RIGHT
RB3 SDI1/RF7 XTAL1 AVDD1
23
24
RB2/AN2 SDO1/RF8
53
52
R1 1M
19
20
IOVDD2 VS1053 GBUF
42
41
GBUF
RA10/Vref+
RB7/PGED1
RB10/AN10
25 51 21 40 PHONEJACK
RA9/Vref-
RB8/AN8
RB9/AN9
RD14
RD15
AVCC
RB11
RB12
RB13
RB14
RB15
RF13
RF12
MP3-CS# 23 38
GND
GND
VCC
VCC
RA1
RF4
RF5
XCS AVDD0
24 37 C13
CVDD2 AGND0 R30 R31 R27
12.288MHz 1uF 20 20 10
CVDD3
XTEST
GPIO0
GPIO1
GPIO4
GPIO5
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
SCLK
C19 C20
GND
C15 C16 C14
SO
RX
TX
SI
22pF 22pF
10nF 10nF 47nF
25
26
27
28
29
30
31
32
33
34
35
36
VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3
GPIO
VREF-1.8
E8 C5 C6 C7 C8
MOSI2-RG8
MISO2-RG7
R22
SCK2-RG6
10K VCC-3.3
10K 27
decoupling capacitors
Figure 9-1:
Connecting USB
cable to programming NOTE : Before connecting the board, make sure that you have FTDI drivers installed on
connector your computer. Tx/Rx LED flashes when USB and controller communicate.
Page 30
E9
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
U1
C31
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
RD7
RD6
RD5
RD4
RD13
RD12
VCC
RD3
RD2
RD1
VCAP
1 75 22pF
RG15 GND
2 SOSCO/RC14 74 SOSCO VCC-3.3 VCC-3.3
VCC X3 32.768KHz
3 73 SOSCI
RE5 SOSCI/RC13
4 72
RE6 RD0 C30 U4
5 71 R53
RE7 RD11 MCU-RX 1 28
6 70 TXD OSCO 220
RC1 RD10 2 27
7 69 22pF DTR# OSCI
RC2 RD9 3 26
8 68 RTS# TEST LD3
RC3 RD8 C2 4 25
9 67 VCCIO AGND TX/RX
RC4 RA15 MCU-TX 5 24
10 66 RXD NC
RG6/SCK2 RA14 6 23
11 65 22pF RI# CBUS0
RG7/SDI2 GND 7 22 VCC-USB
12 64 CLKO GND CBUS1
13
RG8/SDO2 CLKO/RC15
63 CLKI X1 8MHz 8
NC
FT232RL GND 21
14
MCLR
RG9
dsPIC33FJ256GP710A CLKI/RC12
VCC
62
9
DSR# VCC
20 R51
4K7
C1 10 19 CN3
15 61 DCD# RESET# FP2
GND RA5 11 18
16 60 CTS# GND FERRITE
VCC RA4 12 17 1
17 59 22pF CBUS4 3V3OUT VBUS
RA0 RA3 13 16 USBDM 2
18 58 CBUS2 USBDM D-
RA12 RA2 14 15 USBDP 3
19 57 CBUS3 USBDP D+
RA13 SCL1/RG2 4
20 56 ID
RB5 SDA1/RG3 FT232RL 5 GND
21 55 C36 C34 R52
RB4 SCK1/RF6 C28
22 54 100nF 100nF 10K
RB3 SDI1/RF7 10nF
23 53
RB2/AN2 SDO1/RF8 USB MINIB
24 52
RA10/Vref+
RB7/PGED1
RB1 U1RX/RF2
RB6/PGEC1
RB10/AN10
25 51
RA9/Vref-
RB8/AN8
RB9/AN9
RB0 U1TX/RF3
AGND
RD14
RD15
AVCC
RB11
RB12
RB13
RB14
RB15
RF13
RF12
GND
GND
VCC
VCC
RA1
RF4
RF5
E8 C5 C6 C7 C8
decoupling capacitors
E9
10uF VCC-3.3
100
VCC-3.3
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
U1
C31
R13 R12
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
RD7
RD6
VCC
RD5
RD4
RD13
RD12
RD3
RD2
RD1
VCAP
VCC-3.3
10K 10K
1 75 22pF
RG15 GND SCL1-RG2
2 SOSCO/RC14 74 SOSCO
VCC
14
3 73 SOSCI X3 32.768KHz U9
RE5 SOSCI/RC13
4 72
Figure 10-1:
RE6 RD0 C30 1 13 SDA1-RG3
SCL
5 71 VCC SDA
RE7 RD11 2 12 ACC ADDRESS
6 70 GND ADD
RC1 RD10 3 11
7 69 Res Res
RC2 RD9 22pF 4 10 VCC-3.3
Accelerometer
8 68 GND NC
RC3 RD8 C2 5 9
9 67 GND INT2
RC4 RA15 6 8
10 66 VCC INT1
RG6/SCK2 RA14
CS
3
module
11 65 22pF
RG7/SDI2 GND
12 64 CLKO ADXL345
7
RG8/SDO2 CLKO/RC15 J1
13 63 CLKI X1 8MHz
14
MCLR
RG9
dsPIC33FJ256GP710A CLKI/RC12
VCC
62
VCC-3.3 VCC-3.3
15 61 C1
GND RA5
16 60
VCC RA4 C33 C32
17 59 22pF
RA0 RA3 100nF 100nF
18 58
RA12 RA2
19 57 SCL1-RG2
RA13 SCL1/RG2
20 56 SDA1-RG3
RB5 SDA1/RG3
Figure 10-2:
RB3 SDI1/RF7
23 53
RB2/AN2 SDO1/RF8 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3
24 52
RA10/Vref+
RB7/PGED1
RB1 U1RX/RF2
address to 0 or 1 by re-soldering the
RB6/PGEC1
RB10/AN10
25 51
RA9/Vref-
RB8/AN8
RB9/AN9
RB0 U1TX/RF3
E8 C5 C6 C7 C8
Accelerometer
AGND
RD14
RD15
AVCC
RB11
RB12
RB13
RB14
RB15
RF13
RF12
GND
GND
VCC
VCC
RA1
RF4
RF5
decoupling capacitors
schematics appropriate position. Jumper is placed
VREF-1.8 in address 1 position by default.
Page 32
11. Flash Memory
E9
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
U1
C31
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
RD13
RD12
VCC
RD7
RD6
RD5
RD4
VCAP
RD3
RD2
1 RD1 75
RG15 GND 22pF
2 SOSCO/RC14 74 SOSCO
VCC X3 32.768KHz
3 73 SOSCI
RE5 SOSCI/RC13
4 72
Figure 11-1:
RE6 RD0 C30
5 71
RE7 RD11
6 70
RC1 RD10
7 69 22pF
RC2 RD9
RB1 U1RX/RF2
RB6/PGEC1
25 51
RA9/Vref-
RB8/AN8
RB9/AN9
RB0 U1TX/RF3
VCC-3.3 VCC-3.3
AGND
RD14
RD15
AVCC
RB11
RB12
RB13
RB14
RB15
RF13
RF12
GND
GND
VCC
VCC
RA1
RF4
RF5
C37
R48
10K
VCC-3.3
space to be used for storing more data.
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
100nF
U10
FLASH-CS#
MISO2-RG7
1
2
3
CS
SDO
VCC
HOLD
8
7
6 SCK2-RG6
The flash memory module enables the
WP SCK
4 5 MOSI2-RG8
MCU-RX
MCU-TX
LCD-YD
LCD-YU
GND SDI
LCD-XR
LCD-RS
LCD-XL
VREF-1.8
PGD1
RD14
RD15
PGC1
RF13
RF12
T-D1
RB8
RB9
M25P80
Page 33
12. Pads E9
10uF
RG0
RF1
RF0
RD6
RD5
RD4
RD3
RD2
RD1
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
U1 VCC-SYS
C31
RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
RD7
RD6
VCC
RD5
RD4
RD13
RD12
VCAP
RD3
RD2
RD1
HDR2 HDR1
RST RG15 1 75 22pF
27 RG15 GND 1
2 SOSCO/RC14 74 SOSCO
28 VCC X3 32.768KHz 2
L 3 73 SOSCI RB1
29 RE5 SOSCI/RC13 3
R 4 72 RD0 RB2
30 RE6 RD0 C30 4
RD0 5 71 RB3
31 RE7 RD11 5
RD1 6 70 RD10 RB4 AN
PWM 32 RC1 RD10 6
RD2 RC2 7 69 RD9 22pF RB5
33 RC2 RD9 7
RD3 8 68 RD8 RB8
34 RC3 RD8 C2 8
RD4 9 67 RA15 RB9
35 RC4 RA15 9
RD5 SCK2-RG6 R5 27 10 66 RA14 RA12
36 RG6/SCK2 RA14 10
RD8 MISO2-RG7 11 65 22pF RA13
37 RG7/SDI2 GND 11 INT
RD9 MOSI2-RG8 R4 27 12 64 CLKO RA14
38 RG8/SDO2 CLKO/RC15 X1 8MHz 12
RST R7 100 13 63 CLKI
39
RD14
RD15 14
MCLR
RG9
dsPIC33FJ256GP710A CLKI/RC12
VCC
62
RA15
RB6
13
40 C1 14
RD6 15 61 RB7
41 GND RA5 15
RC2 16 60 SCK1-RF6
42 VCC RA4 16
RF12 17 59 22pF MISO1-RF7
43 RA0 RA3 17
RF13 RA12 18 58 MOSI1-RF8
44 RA12 RA2 18
RF0 RA13 19 57 SCL1-RG2 RG15
45 RA13 SCL1/RG2 19
RF1 RB5 20 56 SDA1-RG3 RG0
46 RB5 SDA1/RG3 20
RX RX1-RF2 RB4 21 55 SCK1-RF6 RD10
47 RB4 SCK1/RF6 21
TX TX1-RF3 RB3 22 54 MISO1-RF7 SCK2-RG6 SCK
48 RB3 SDI1/RF7 22
SCL SCL1-RG2 RB2 23 53 MOSI1-RF8 MISO2-RG7 SDI
49 RB2/AN2 SDO1/RF8 23
S DA SDA1-RG3 RB1 24 52 RX1-RF2 MOSI2-RG8 S DO
RA10/Vref+
RB7/PGED1
RB1 U1RX/RF2
RB6/PGEC1
RB10/AN10
50 24
25 51 TX1-RF3
RA9/Vref-
RB8/AN8
RB9/AN9
51 VCC-3.3 RB0 U1TX/RF3 VCC-3.3 25
52
AGND
26
RD14
RD15
AVCC
RB11
RB12
RB13
RB14
RB15
RF13
RF12
GND
GND
VCC
VCC
RA1
RF4
RF5
M1X26 M1X26
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
E8 C5 C6 C7 C8
VREF-1.8
PGD1
RD14
RD15
PGC1
RF13
RF12
RB8
RB9
decoupling capacitors
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 34
13. Pinout
5V power supply 5V RST Reset pin
Reference Ground GND GND Reference Ground
AN10 RB1 L left ch.
audio out
AN2/SS1/CN4 RB2 R right ch.
AN3/CN5 RB3 RD0 OC1
AN4/CN6 RB4 RD1 OC2
AN5/CN7 RB5 RD2 OC3
AN8 RB8 RD3 OC4
AN9 RB9 RD4 OC5/CN13
AN20/INT1 RA12 RD5 OC6/CN14
AN21/INT2 RA13 RD8 IC1
INT3 RA14 RD9 IC2
INT4 RA15 RD14 IC7/U1CTS/CN20
PGEC1/AN6/OCFA RB6 RD15 IC8/U1RTS/CN21
PGED1/AN7 RB7 RD6 OC7/CN15
SCK1/INT0 RF6 RC2 AN17/T3CK/T6CK
SPI1 SDI1 RF7 RF12 U2CTS
SDO1 RF8 RF13 U2RTS
COFS RG15 RF0 C1RX
C2RX RG0 RF1 CAN
C1TX
IC3 RD10 RF2 U1RX
UART
SCK2/CN8 RG6 RF3 U1TX
SPI2 SDI2/CN9 RG7 RG2 SCL1 I2C
SDO2/CN10 RG8 RG3 SDA1
3.3V power supply 3.3V 3.3V 3.3V power supply
Reference Ground GND GND Reference Ground
Programing lines Analog Lines Interrupt Lines SPI Lines I2C Lines UART lines PWM lines Comparator lines
Page 35
14. Dimensions
81.15 mm
(3195 mils)
73.66 mm
(2900 mils)
63.5 mm
(2500 mils)
(350 mils)
8.89 mm
(1440 mils)
36.58 mm
(2380 mils)
(2200 mils)
60.45 mm
55.88 mm
(300 mils)
7.62 mm
2.03 mm
(80 mils)
2.54 mm 2.67 mm
(100 mils) (105 mils)
Page 36
15. mikromedia accessories
We have prepared a set of
extension boards pin-compatible
with your mikromedia, which
enable you to easily expand
your board basic functionality.
We call them mikromedia
shields. But we also offer other
accessories, such as Li-polymer
battery, stacking headers, wire
jumpers and more. 01 Connect shield 02 BatteryBoost shield 03 PROTO shield
Page 37
What’s next?
You have now completed the journey through each and every feature of mikromedia for dsPIC33 board. You got to know it’s modules and
organization. Now you are ready to start using your new board. We are suggesting several steps which are probably the best way to begin. We
invite you to join the users of mikromedia™ brand. You will find very useful projects and tutorials and can get help from a large ecosystem of
users. Welcome!
Compiler
You still don’t have an appropriate compiler? Locate dsPIC® compiler that suits you best on
the Product DVD provided with the package:
DVD://download/eng/software/compilers/
Choose between mikroC™, mikroBasic™ and mikroPascal™ and download fully functional
demo version, so you can begin building your first applications.
Projects
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 for rapid development of graphical user interfaces enables you to quickly create your
GUI. It will automatically create necessary code which is compatible with mikroElektronika compilers. Visual TFT is
rich with examples, which are an excellent starting point for your future projects. Just load the example, read well
commented code, and see how it works on hardware. Visual TFT is also available on the Product DVD.
Page 38
DISCLAIMER
All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any
other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or
transmitted in any form or by any means, without the prior written permission of MikroElektronika. The manual PDF edition can be printed for private or local use,
but not for distribution. Any 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.
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 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, the MikroElektronika logo, mikroC™, mikroBasic™, mikroPascal™, mikroProg™, EasyPIC Fusion™, mikroBUS™, Click Boards™,
mikroProg™, and mikromedia™ are trademarks of MikroElektronika. All other trademarks mentioned herein are property of their respective companies.
All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are only
used for identification or explanation and to the owners’ benefit, with no intent to infringe.
0 100000 019672