mikromedia - mikroelektronika 3-9: write program 01 first reset mikromedia and then, within 5s click...

44
for dsPIC33 ® mikromedia Compact development system rich with on-board peripherals for all-round multimedia development on dsPIC33FJ256GP710A device.

Upload: trinhthu

Post on 17-Apr-2018

220 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

for dsPIC33®mikromedia™

Compact development system rich with on-board peripherals for all-round

multimedia development on dsPIC33FJ256GP710A device.

Page 2: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

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.

The dsPIC® and Windows® logos and product names are trademarks of Microchip Technology® and Microsoft® in the U.S.A. and other countries.

TO OUR VALUED CUSTOMERS

Nebojsa Matic

General Manager

Page 3: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 3

Introduction to mikromedia for dsPIC33® 4

Package contains 5

Key features 6

System specification 7

1. Power supply 8

USB power supply 8

Battery power supply 8

2. dsPIC33FJ256GP710A microcontroller 10

Key microcontroller features 10

3. Programming the microcontroller 11

Programming with mikroBootloader 12

step 1 – Choosing COM port 13

step 2 – Choosing device family 14

step 3 – Choosing device 14

step 4 – Browse for .HEX file 15

step 5 – Set Baud rate 16

step 6 – Uploading .HEX file 16

Programming with mikroProg™ programmer 18

mikroProg Suite™ for PIC Software 19

Programming with ICD2 or ICD3 programmer 20

4. Reset buttons 22

5. Crystal oscillator 24

6. microSD card slot 26

7. Touch screen 28

8. Audio module 30

9. USB-UART connection 32

10. Accelerometer 34

11. Flash memory 36

12. Pads 38

13. Pinout 39

14. Dimensions 40

15. mikromedia accessories 41

What’s next? 42

Table of Contents

Page 4: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 4

Introduction to mikromedia for dsPIC33®

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. 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 a

convenient platform for mobile devices.

Page 5: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 5

for dsPIC33®

mikromedia™

SCHEMATICS

We present you with a complete color schematics for mikromedia™ for dsPIC33® development board. We want you to know what your board is consisted of andhow it actually works.m

ikro

med

ia f

or d

sPIC

33

® -

pin

out

SPI LinesInterrupt LinesAnalog LinesProgramming lines I2C Lines UART lines PWM lines Comparator lines

5V RST Reset pin5V power supplyGND GND Reference GroundReference GroundRB1 LRB2 R

left ch.AN10right ch.AN2/SS1/CN4

RB3 RD0 OC1AN3/CN5RB4 RD1 OC2AN4/CN6RB5 RD2 OC3AN5/CN7RB8 RD3 OC4AN8RB9 RD4 OC5/CN13AN9

RA12 RD5 OC6/CN14AN20/INT1RA13 RD8 IC1AN21/INT2RA14 RD9 IC2INT3RA15 RD14 IC7/U1CTS/CN20INT4

RB6 RD15 IC8/U1RTS/CN21PGEC1/AN6/OCFARB7 RD6 OC7/CN15PGED1/AN7RF6 RC2 AN17/T3CK/T6CKSCK1/INT0RF7 RF12 U2CTSSDI1RF8 RF13 U2RTSSDO1

RG15 RF0 C1RXCOFSRG0 RF1 C1TXC2RX

RD10 RF2 U1RXIC3RG6 RF3 U1TXSCK2/CN8RG7 RG2 SCL1SDI2/CN9RG8 RG3 SDA1SDO2/CN103.3V 3.3V 3.3V power supply3.3V power supplyGND GND Reference GroundReference Ground

Pin functions Pin functions

audio out

CAN

UART

I2CSPI2

SPI1

Package contains

01 Damage resistant protective box

04 USB cable, two 1x26, one 1x6 and one 1x5 male headers

02 mikromedia for dsPIC33® development system

for dsPIC33®mikromedia™

Compact development system rich with on-board peripherals for all-round

multimedia development on dsPIC33FJ256GP710A device.

03 User’s guide, schematic and pinout

Page 6: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 6

Key features

16

01

02

03

04

05

06

07

08

09

10

11

12

13

14

15

Connection pads

TFT 320x240 display

USB MINI-B connector

CHARGE indication LED

LI-Polymer battery connector

3.5mm headphone connector

Power supply regulator

FTDI chip

Serial flash memory

RESET button

VS1053 Stereo mp3 coder/decoder

dsPIC33FJ256GP710A microcontroller

Accelerometer

Crystal oscillator

Power indication LED

microSD card slot

ICD2/3 connector

mikroProg connector18

17

02

01

Page 7: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 7

03

06

07

08 09

1110

12 13

14

15 16

04 05

17 18

System specification

power supplyVia USB cable (5V DC)

board dimensions81.2 x 60.5 mm (3.19 x 2.38 inch)

weight~50g (0.11lbs)

power consumption77 mA with erased MCU (when on-board modules are inactive)

CAUTION: Electrostatic sensitive devicePermanent 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.

class B productProduct complies with the Class B limit of EN 55022 and can be used in the domestic, residential, commercial and industrial environments.

Page 8: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 8

1. Power supply

You can apply power supply to

the board using MINI-B USB

cable provided in the package.

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.

You can also power the board using a Li-Polymer

battery, via on-board battery connector. On-board battery

charger circuit MCP73832 enables you to charge the

battery over a USB connection. LED diode (RED) will

indicate when the battery is charging. Charging current

is ~250mA and charging voltage is 4.2V DC.

Battery power supply

USB power supply

Figure 1-1:Connecting USB

power supply

Figure 1-2: Connecting Li-Polymer battery

Page 9: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 9

23

5

4

1

VCC-SYS VCC-3.3

E310uF E4

10uF

R26

2K23

12GND

Vin

Vout

REG1

LD29080DT33

VCC-BAT

D1PMEG3010ER

R443K9

Charging Current approx. 250mA

R394K7

VCC-3.3

E7

10uF

C40

2.2uF

R344K7

R64K7

VCC-BAT

VSENSE

VCC-SYS

VCC-SYS

R4310K

R37

10K

R3610K

VCC-3.3

STAT

R3810K

R451K

VCC-3.3

E510uF

R3510K

VCC-3.3

R494K7

+-

CN1BATT CONN

M1DMP2160UW

STATVSSVBAT VDD

PROG

U5

MCP73832Q4BC846

Q5BC846

C2810nF

FP2FERRITE

12345 GND

IDD+D-VBUS

CN3

USB MINIB

VCC-USB

C29

2.2uF

VCC-3.3

R4622K

E10

10uF

R47120K

VCC-1.8

VCC-1.8

R500R

123

5

4

VinGNDEN ADJ

Vout

U3

MIC5205-ADJ

DAT

A BU

S

LD2CHARGE

LD1POWER

VCC-BAT

1234567891011121314151617181920212223242526

HDR1

M1X26

2728293031323334353637383940414243444546474849505152

HDR2

M1X26

VCC-3.3 VCC-3.3

VCC-SYS

VCC-1.8VREF-1.8

E1110uF

FP3

FERRITE

Figure 1-3: Power supply schematics

Page 10: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 10

2. dsPIC33FJ256GP710A microcontroller

mikromedia for dsPIC33® development system comes with the

dsPIC33FJ256GP710A microcontroller. This high-performance

16-bit microcontroller with its integrated modules and in combination

with other on-board modules is ideal for multimedia applications.

Key microcontroller features - Up to 40 MIPS Operation;

- 16-bit architecture;

- 256KB of program memory;

- 30.720 Bytes of RAM;

- 85 I/O pins;

- Internal Oscillator 7.37 MHz, 512kHz;

- nanoWatt features: Fast Wake/Fast Control;

- 2-UART, 2-SPI, 2-I2C, 2-CAN;

- DAC, ADC, etc.

Data/Memory Bus

Data Bus

40/60 MIPS 16-bit Core- Optimal for ‘C’- MCU + DSP Resources40-bit

AccumulatorDSP

Engine

16 CoreRegisters

16x16 Multiply

Shadow Set

Instruction Data

MotorControlPWM

32-bitCRC

AudioDAC

ControlDAC

10/12-bitADC

AnalogComparator

I2C

CAN

UART

InputCapture

SPI

OutputCompare

PWM16-bit

Timers RTCCPMP 32-bitQEI

DMA8 Ch.

Flash(256KB)

RAM(30KB) GPIO VREG

2-wireDebugInterrupt

Controller

Page 11: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 11

The microcontroller can be programmed in three ways:

01

02

03

Over UART bootloader

Using mikroProg™ external programmer

Using ICD2/3 external programmer

3. Programming the microcontroller

Page 12: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 12

Programming with mikroBootloader

You can program the microcontroller with the bootloader which

is preprogrammed into the device by default. To transfer .HEX

file from a PC to MCU you need bootloader software (ds30 Loader) which can be downloaded from:

Upon download, unzip the file to the desired location and start

ds30 Loader software.

Figure 3-1: ds30 Loader open-source software

Connect mikromedia for dsPIC33® with a

PC before starting ds30 Loader software

www.mikroe.com/eng/downloads/get/1493/mikrommb_dspic33_bootloader.zip

note

Page 13: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 13

Identifying device COM port

Figure 3-2: Identifying COM port

step 1 – Choosing COM port

Figure 3-3: Selecting COM port

01 From drop down list select USB COM port which is used

for communication with a PC (in this case COM5)

In Device Manager you can see which COM port

is assigned to mikromedia (in this case COM5)

01

note

Page 14: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 14

01 From drop down list select MCU chip (256GP710A)

step 2 – Choosing device family step 3 – Choosing device

Figure 3-4: Selecting MCU family

01 From drop down list select MCU family (dsPIC33FJ)

01

Figure 3-5:Selecting MCU chip

01

Page 15: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 15

Figure 3-6: Browse for .HEX file

Figure 3-7: Pop-up window for .HEX file choosing

step 4 – Browse for .HEX file

01 Click on Browse button and from pop-up window (figure

3-7) select .HEX file which will be uploaded to MCU memory

01

03

02

01 Select desired .HEX file

Folder list

Click on Open button03

02

step 3 – Choosing device

01

Page 16: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 16

step 6 – Uploading .HEX file

Figure 3-9: Write program

01 First RESET mikromedia and then, within 5s

click on Write button

01

Figure 3-8: Seting baud rate

step 5 – Set Baud rate

01 From drop down list set baud rate value to 256000

Check Write program check box02

02 01

Page 17: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 17

Figure 3-11: Uploading is finishedFigure 3-10: Program uploading

0101 After uploading is finished you will get a

notice in ds30 Loader history window

Progress bar indicates .HEX file upload process

01

01

If you accidently erase bootloader program from MCU memory it is possible to load it again with external programer. mikromedia for dsPIC33® bootloader firmware.hex file is located in Firmware subfolder, Page 12.

note

Page 18: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 18

Programming with mikroProg™ programmer

Figure 3-12: Connecting mikroProg™ to mikromedia™

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, easy operation and

elegant design are it’s key features.

Page 19: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 19

mikroProg Suite™ for PIC® software

mikroProg™ programmer requires special

programming software called mikroProg Suite™ for PIC®. This software is used

for programming all Microchip® microcon-

troller 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-13: Main Window of mikroProg Suite™ for PIC® programming software

Page 20: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 20

The microcontroller can be

also programmed with ICD2® or ICD3® programmer. These

programmers connects with

mikromedia board via ICD2 CONNECTOR BOARD.

Programming with

ICD2® or ICD3®

programmer

In order to enable the ICD2® and ICD3® programmers to be connected to the development system, it is

necessary to provide an 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-14.

Figure 3-15: Connecting ICD2®

or ICD3® programmer

Page 21: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 21

VCC-3.3

C5

100nF

C6

100nF

C7

100nF

E8

10uF

VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3VREF-1.8

C31

22pF

C30

22pF

X3 32.768KHz

C2

22pF

C1

22pF

X1 8MHz

E9

10uF

C8

100nF

VCC-3.3

SOSCOSOSCI

CLKOCLKI

PGD

1PG

C1

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

3151

70

26

25

76

757473

dsPIC33FJ256GP710A

81828384858687888990919293949596979899100

RB1

1R

B10/

AN10

RB9

/AN

9R

B8/A

N8

RB1

3R

B12

RE7RC1RC2RC3

RA15

SCL1/RG2

RB1

5R

B14

SDO1/RF8SDI1/RF7SCK1/RF6SDA1/RG3

GN

DVC

C

RA6

RG

0R

G1

RE0 RF1

RF0

RD

7R

D6

RE6RE5

RE2

RG

13R

G12

RG

14R

E1

RA7

RG8/SDO2

RA9

/Vre

f-RB1RB2/AN2RB3RB4RB5RA13

RD9RD8

U1RX/RF2U1TX/RF3

GND

RG7/SDI2RG6/SCK2

RA1

RE3

RE4

RG15VCC

RB7

/PG

ED1

RB6

/PG

EC1

RB0

RF4

RF5

RA14

RA5

RD

14R

D15

RA2

RF1

3

VCC

RA3

VCC

VCC

RA12RA0VCC

GN

D

RF1

2

RA4

GND

VCAP

AGN

DAV

CCR

A10/

Vref

+

MCLR

RC4

CLKI/RC12CLKO/RC15

RD10

RD

3

RD

1

SOSCI/RC13SOSCO/RC14

GND

RD

2

RD

12R

D13

RD

4R

D5

RG9

RD11RD0

U1

MCLR#

VCC-3.312345

CN6

M1X5

MCLR#

PGD1PGC1

MCLR#PGD1PGC1

VCC-3.3

654321

CN5

M1X6R15100

R14100

RB7

RB6

decoupling capacitors

Figure 3-16: ICD2 / ICD3 & mikroProg™ programmer connection schematics

Page 22: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 22

4. Reset buttons

Figure 4-2: Frontal reset buttonFigure 4-1: Reset button located at the backside of the board

Board is equipped with a 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 a low voltage level on the microcontroller

reset pin (input). In addition, a reset can be externally

provided through pin 27 on side headers (Figure 4-3).

You can also solder an additional reset button on the appropriate place

at the back side of the board, Figure 4-1.

note

Page 23: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 23

Figure 4-3: Reset circuit schematics

R810K

VCC-3.3

C3100nF

T1

R7 100

T2

RST

VCC-3.3

VREF-1.8

C31

22pF

C30

22pF

X3 32.768KHz

C2

22pF

C1

22pF

X1 8MHz

E9

10uF

SOSCOSOSCI

CLKOCLKI

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

dsPIC33FJ256GP710A

81828384858687888990919293949596979899100

RB1

1R

B10/

AN10

RB9

/AN

9R

B8/A

N8

RB1

3R

B12

RE7RC1RC2RC3

RA15

SCL1/RG2

RB1

5R

B14

SDO1/RF8SDI1/RF7SCK1/RF6SDA1/RG3

GN

DVC

C

RA6

RG

0R

G1

RE0 RF1

RF0

RD

7R

D6

RE6RE5

RE2

RG

13R

G12

RG

14R

E1

RA7

RG8/SDO2

RA9

/Vre

f-RB1RB2/AN2RB3RB4RB5RA13

RD9RD8

U1RX/RF2U1TX/RF3

GND

RG7/SDI2RG6/SCK2

RA1

RE3

RE4

RG15VCC

RB7

/PG

ED1

RB6

/PG

EC1

RB0

RF4

RF5

RA14

RA5

RD

14R

D15

RA2

RF1

3

VCC

RA3

VCC

VCC

RA12RA0VCC

GN

D

RF1

2

RA4

GND

VCAP

AGN

DAV

CCR

A10/

Vref

+

MCLR

RC4

CLKI/RC12CLKO/RC15

RD10

RD

3

RD

1

SOSCI/RC13SOSCO/RC14

GND

RD

2

RD

12R

D13

RD

4R

D5

RG9

RD11RD0

U1

VCC-3.3

2728293031323334353637383940414243444546474849505152

HDR2

M1X26

C5

100nF

C6

100nF

C7

100nF

E8

10uF

VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3

C8

100nF

VCC-3.3

decoupling capacitors

Page 24: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 24

5. Crystal oscillator

Figure 5-1:Crystal oscillator

module (X1)

The use of crystal in all other schematics is implied even if

it is purposely left out, because of the schematics clarity.

Board is equipped with an 8MHz crystal oscillator (X1) circuit that

provides external clock to the microcontroller OSC pins. This base

frequency is suitable for further clock multipliers and ideal for generation

of the 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 the internal RTCC module.

note

Page 25: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 25

VCC-3.3

VREF-1.8

C31

22pF

C30

22pF

X3 32.768KHz

C2

22pF

C1

22pF

X1 8MHz

SOSCOSOSCI

CLKOCLKI

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

7026

25

76

757473

dsPIC33FJ256GP710A

81828384858687888990919293949596979899100

RB1

1R

B10/

AN10

RB9

/AN

9R

B8/A

N8

RB1

3R

B12

RE7RC1RC2RC3

RA15

SCL1/RG2

RB1

5R

B14

SDO1/RF8SDI1/RF7SCK1/RF6SDA1/RG3

GN

DVC

C

RA6

RG

0R

G1

RE0 RF1

RF0

RD

7R

D6

RE6RE5

RE2

RG

13R

G12

RG

14R

E1

RA7

RG8/SDO2

RA9

/Vre

f-RB1RB2/AN2RB3RB4RB5RA13

RD9RD8

U1RX/RF2U1TX/RF3

GND

RG7/SDI2RG6/SCK2

RA1

RE3

RE4

RG15VCC

RB7

/PG

ED1

RB6

/PG

EC1

RB0

RF4

RF5

RA14

RA5

RD

14R

D15

RA2

RF1

3

VCC

RA3

VCC

VCC

RA12RA0VCC

GN

D

RF1

2

RA4

GND

VCAP

AGN

DAV

CCR

A10/

Vref

+

MCLR

RC4

CLKI/RC12CLKO/RC15

RD10

RD

3

RD

1

SOSCI/RC13SOSCO/RC14

GND

RD

2

RD

12R

D13

RD

4R

D5

RG9

RD11RD0

U1

C5

100nF

C6

100nF

C7

100nF

E8

10uF

VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3

C8

100nF

VCC-3.3

decoupling capacitors

Figure 5-2: Crystal oscillator schematics

Page 26: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 26

6. microSD card slot

Figure 6-1: microSD card slot

Board contains a 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 27: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 27

VCC-3.3

R5 27

R4 27

VREF-1.8

C31

22pF

C30

22pF

X3 32.768KHz

C2

22pF

C1

22pF

X1 8MHz

E9

10uF

MOSI2-RG8

SCK2-RG6

SOSCOSOSCI

CLKOCLKI

SD-C

D#

SD-CS#

MISO2-RG730292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

7026

25

76

757473

dsPIC33FJ256GP710A

81828384858687888990919293949596979899100

RB1

1R

B10/

AN10

RB9

/AN

9R

B8/A

N8

RB1

3R

B12

RE7RC1RC2RC3

RA15

SCL1/RG2

RB1

5R

B14

SDO1/RF8SDI1/RF7SCK1/RF6SDA1/RG3

GN

DVC

C

RA6

RG

0R

G1

RE0 RF1

RF0

RD

7R

D6

RE6RE5

RE2

RG

13R

G12

RG

14R

E1

RA7

RG8/SDO2

RA9

/Vre

f-RB1RB2/AN2RB3RB4RB5RA13

RD9RD8

U1RX/RF2U1TX/RF3

GND

RG7/SDI2RG6/SCK2

RA1

RE3

RE4

RG15VCC

RB7

/PG

ED1

RB6

/PG

EC1

RB0

RF4

RF5

RA14

RA5

RD

14R

D15

RA2

RF1

3

VCC

RA3

VCC

VCC

RA12RA0VCC

GN

D

RF1

2

RA4

GND

VCAP

AGN

DAV

CCR

A10/

Vref

+

MCLR

RC4

CLKI/RC12CLKO/RC15

RD10

RD

3

RD

1

SOSCI/RC13SOSCO/RC14

GND

RD

2

RD

12R

D13

RD

4R

D5

RG9

RD11RD0

U1

SD-CS#

R1110K

R1010K

VCC-MMC

R910K

SD-CD#

VCC-MMC

R16

27

VCC-3.3

E610uF

C38100nF

FP1

FERRITE

124567

CD

MOSI2-RG8

SCK2-RG6

MISO2-RG7

VCC-MMC

CSDin+3.3VSCKGNDDout

CD G

CSDin+3.3VSCKGNDDout

CD GN

D

CN4

C5

100nF

C6

100nF

C7

100nF

E8

10uF

VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3

C8

100nF

VCC-3.3

decoupling capacitors

Figure 6-2: microSD Card Slot module connection schematics

Page 28: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 28

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

data in 262.144 diffe rent colors.

7. Touch screen

Figure 7-1: Touch Screen

Page 29: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 29

VCC-3.3

VREF-1.8

C31

22pF

C30

22pF

X3 32.768KHz

C2

22pF

C1

22pF

X1 8MHz

E9

10uF

T-D

6T-

D7

PMR

DPM

WR

LCD

-BLE

D

T-D

12T-

D11

T-D

10

T-D

9T-

D8

T-D5T-D4T-D3T-D2

SOSCOSOSCI

CLKOCLKI

LCD

-RS

LCD

-YU

LCD

-XL

LCD

-YD

LCD

-XR

T-D

1

LCD-RST

LCD-CS#

T-D0

T-D15T-D14T-D13

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

dsPIC33FJ256GP710A8182838485868788899091929394959697989910

0

RB1

1R

B10/

AN10

RB9

/AN

9R

B8/A

N8

RB1

3R

B12

RE7RC1RC2RC3

RA15

SCL1/RG2

RB1

5R

B14

SDO1/RF8SDI1/RF7SCK1/RF6SDA1/RG3

GN

DVC

C

RA6

RG

0R

G1

RE0 RF1

RF0

RD

7R

D6

RE6RE5

RE2

RG

13R

G12

RG

14R

E1

RA7

RG8/SDO2

RA9

/Vre

f-RB1RB2/AN2RB3RB4RB5RA13

RD9RD8

U1RX/RF2U1TX/RF3

GND

RG7/SDI2RG6/SCK2

RA1

RE3

RE4

RG15VCC

RB7

/PG

ED1

RB6

/PG

EC1

RB0

RF4

RF5

RA14

RA5

RD

14R

D15

RA2

RF1

3

VCC

RA3

VCC

VCC

RA12RA0VCC

GN

D

RF1

2

RA4

GNDVC

AP

AGN

DAV

CCR

A10/

Vref

+

MCLR

RC4

CLKI/RC12CLKO/RC15

RD10

RD

3

RD

1

SOSCI/RC13SOSCO/RC14

GND

RD

2

RD

12R

D13

RD

4R

D5

RG9

RD11RD0

U1

R23

1K

VCC-SYS

VCC-3.3

E1310uF

R2510K

VCC-3.3

R2410K

LCD-RSTLCD-CS#

VCC-3.3

LCD-BLEDR4012

VCC-SYSD2

BAT43

2

15

12

35

11

36

3456

14

789

13

43

33

10

37383940

444546

34

1

47

1617181920212223242526272829303132

4142

VCC-3.3

LCD-YULCD-XL

Q3BC846

Q2BC846

Q1BC846

C22

18nF

R42300K

C21

18nF

R41300K

LCD-RST

LCD-RSLCD-CS#

LCD-YULCD-XLLCD-YDLCD-XR

PMRDPMWR

VCC-3.3 VCC-3.3

T-D5T-D6T-D7

T-D4

T-D8T-D9T-D10T-D11T-D12T-D13T-D14T-D15

T-D3T-D2T-D1T-D0

C5

100nF

C6

100nF

C7

100nF

E8

10uF

VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3

C8

100nF

VCC-3.3

decoupling capacitors

TFT1

MI 0283QT-9A

LED- A1

DB17

HSYNC

RD

VSYNC

WR(D/C)

LED- A2LED- A3LED- A4IM0

DE

IM3IM2IM1

DOTCL K

GND

SDO

RESET

D/C(SCL)CSTEVDDI

X+(R)Y+(D)X- (L )

SDI

LED- K

Y- (U)

DB16DB15DB14DB13DB12DB11DB10DB9DB8DB7DB6DB5DB4DB3DB2DB1DB0

VCIVCI

Figure 7-2: Touch Screen connection schematics

Page 30: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 30

mikromedia for dsPIC33 features a 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).

8. Audio module

Figure 8-2: 3.5mm headphones jack

Figure 8-1: On-board VS1053 MP3 codec

Page 31: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 31

Figure 8-3: Audio module connection schematic

VCC-3.3

R5 27

R4 27

VREF-1.8

C31

22pF

C30

22pF

X3 32.768KHz

C2

22pF

C1

22pF

X1 8MHz

E9

10uF

MOSI2-RG8

SCK2-RG6

MP3

-DCS

MP3

-CS#

MP3

-RST

#

MP3

-DR

EQSOSCOSOSCI

CLKOCLKI

MISO2-RG7

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

dsPIC33FJ256GP710A8182838485868788899091929394959697989910

0

RB1

1R

B10/

AN10

RB9

/AN

9R

B8/A

N8

RB1

3R

B12

RE7RC1RC2RC3

RA15

SCL1/RG2

RB1

5R

B14

SDO1/RF8SDI1/RF7SCK1/RF6SDA1/RG3

GN

DVC

C

RA6

RG

0R

G1

RE0 RF1

RF0

RD

7R

D6

RE6RE5

RE2

RG

13R

G12

RG

14R

E1

RA7

RG8/SDO2

RA9

/Vre

f-RB1RB2/AN2RB3RB4RB5RA13

RD9RD8

U1RX/RF2U1TX/RF3

GND

RG7/SDI2RG6/SCK2

RA1

RE3

RE4

RG15VCC

RB7

/PG

ED1

RB6

/PG

EC1

RB0

RF4

RF5

RA14

RA5

RD

14R

D15

RA2

RF1

3

VCC

RA3

VCC

VCC

RA12RA0VCC

GN

D

RF1

2

RA4

GND

VCAP

AGN

DAV

CCR

A10/

Vref

+

MCLR

RC4

CLKI/RC12CLKO/RC15

RD10

RD

3

RD

1

SOSCI/RC13SOSCO/RC14

GND

RD

2

RD

12R

D13

RD

4R

D5

RG9

RD11RD0

U1

MP3-CS#

C2022pF

C1922pF

C11100nF

R1 1M

R2010K

R21

10K

MP3

-DR

EQ

MP3-RST#

C10100nF

C4100nF

C12100nF

C9100nF

R210K

R1910K

C23100nF

VCC-3.3

C24100nF

VCC-3.3

C26100nF

VCC-3.3 VCC-3.3

C27100nF

X2

12.288MHzC131uF

VCC-3.3

GPI

O

VCC-3.3

LEFT

RIGHT

GBUF

VCC-1.8 VCC-1.8 VCC-1.8 VCC-1.8 VCC-3.3

E1 10uF

E2 10uF

CN2

PHONEJACK

LEFT

RIGHT

C16

10nF

C14

47nF

C15

10nF

R2710

R3020

R3120

R28 10

R29 10

R32

470 C173.3nF

R17100K

R33

470 C183.3nF

R18100K

L

R

R2227

2345671112

1314

25

24232221

18171615

8 1

19

9102726

20

28 29 30 31 32 33 34 35 36

373839404142434445464748M

CP/L

N1

MIC

NXR

ESET

DG

ND

0CV

DD

0IO

VDD

0CV

DD

1D

REQ

GPI

O2

GPI

O3

GPI

O6

GPI

O7

XDCS/BSYNCIOVDD1VC0DGND1XTAL0XTAL1IOVDD2DGND2DGND3DGND4XCSCVDD2

GPI

O5

RX

TX SCLK

SI SO CVD

D3

XTES

TG

PIO

0G

PIO

1G

ND

GPI

O4

AGND0AVDD0

AVDD2

AGND1AGND2

AGND3LN2

LEFT

RCAPAVDD1

GBUF

RIGHT

VS1053

U2

VCC-1.8 VCC-3.3

MP3-CS#

MP3

-RST

#

MP3-DCS

MO

SI2-

RG

8SC

K2-R

G6

MIS

O2-

RG

7

C5

100nF

C6

100nF

C7

100nF

E8

10uF

VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3

C8

100nF

VCC-3.3

decoupling capacitors

decoupling capacitors

Page 32: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

9. USB-UART connection

Figure 9-1:Connecting

USB cable to programming

connector

Mikromedia contains a USB MINI-B

connector which is positioned next

to the battery connector. FT232RL

USB-UART IC enables you to implement

UART serial communication functionality via

USB cable, since dsPIC33FJ256GP710A does

not support USB protocol.

Before connecting the board, make sure that you have FTDI drivers installed

on your computer. Tx/Rx LED flashes when USB and controller communicate.note

Page 32

Page 33: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 33

Figure 9-2: USB module connection schematics

VCC-3.3

C31

22pF

C30

22pF

X3 32.768KHz

C2

22pF

C1

22pF

X1 8MHz

E9

10uF

SOSCOSOSCI

CLKOCLKI

MCU

-RX

MCU

-TX

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

3272

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

dsPIC33FJ256GP710A8182838485868788899091929394959697989910

0

RB1

1R

B10/

AN10

RB9

/AN

9R

B8/A

N8

RB1

3R

B12

RE7RC1RC2RC3

RA15

SCL1/RG2

RB1

5R

B14

SDO1/RF8SDI1/RF7SCK1/RF6SDA1/RG3

GN

DVC

C

RA6

RG

0R

G1

RE0 RF1

RF0

RD

7R

D6

RE6RE5

RE2

RG

13R

G12

RG

14R

E1

RA7

RG8/SDO2

RA9

/Vre

f-RB1RB2/AN2RB3RB4RB5RA13

RD9RD8

U1RX/RF2U1TX/RF3

GND

RG7/SDI2RG6/SCK2

RA1

RE3

RE4

RG15VCC

RB7

/PG

ED1

RB6

/PG

EC1

RB0

RF4

RF5

RA14

RA5

RD

14R

D15

RA2

RF1

3

VCC

RA3

VCC

VCC

RA12RA0VCC

GN

D

RF1

2

RA4

GNDVC

AP

AGN

DAV

CCR

A10/

Vref

+

MCLR

RC4

CLKI/RC12CLKO/RC15

RD10

RD

3

RD

1

SOSCI/RC13SOSCO/RC14

GND

RD

2

RD

12R

D13

RD

4R

D5

RG9

RD11RD0

U1

15161718192021222324252627281

23456789

1011121314

VCC-USB

C2810nF

FP2FERRITE

MCU-RX

R514K7

12345 GND

IDD+D-VBUS

CN3

USB MINIB

USBDPUSBDM

VCC-3.3

MCU-TX

VCC-3.3

R5210K

C34100nF

C36100nF

LD3TX/RX

R53220TXD

DTR#RTS#VCCIORXDRI#GNDNCDSR#DCD#CTS#CBUS4CBUS2CBUS3

CBUS0CBUS1

OSCOOSCITESTAGND

NC

GND

GND

VCCRESET#

3V3OUTUSBDMUSBDP

FT2

32

RL

U4

FT232RL

C5

100nF

C6

100nF

C7

100nF

E8

10uF

VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3

C8

100nF

VCC-3.3

decoupling capacitors

Page 34: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 34

10. Accelerometer

Figure 10-1: Accelerometer

module

On board ADXL345 accelerometer is used to

measure acceleration in three axes: x, y and z. The

accelerometer’s 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 35: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 35

C32100nF

C33100nF

VCC-3.3

R1210K

R1310K

VCC-3.3

1 2 3

J1

ACC ADDRESS123

VCCGNDRes4 GND5 GND6 VCC

7CS

8INT1

9INT2

10NC

11Res

12ADD

13SDA

14SC

L

U9

ADXL345

VCC-3.3

VCC-3.3 VCC-3.3

SCL1-RG2

SDA1-RG3

VCC-3.3

VREF-1.8

C31

22pF

C30

22pF

X3 32.768KHz

C2

22pF

C1

22pF

X1 8MHz

E9

10uF

SDA1-RG3SCL1-RG2

SOSCOSOSCI

CLKOCLKI

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

dsPIC33FJ256GP710A8182838485868788899091929394959697989910

0

RB1

1R

B10/

AN10

RB9

/AN

9R

B8/A

N8

RB1

3R

B12

RE7RC1RC2RC3

RA15

SCL1/RG2

RB1

5R

B14

SDO1/RF8SDI1/RF7SCK1/RF6SDA1/RG3

GN

DVC

C

RA6

RG

0R

G1

RE0 RF1

RF0

RD

7R

D6

RE6RE5

RE2

RG

13R

G12

RG

14R

E1

RA7

RG8/SDO2

RA9

/Vre

f-RB1RB2/AN2RB3RB4RB5RA13

RD9RD8

U1RX/RF2U1TX/RF3

GND

RG7/SDI2RG6/SCK2

RA1

RE3

RE4

RG15VCC

RB7

/PG

ED1

RB6

/PG

EC1

RB0

RF4

RF5

RA14

RA5

RD

14R

D15

RA2

RF1

3

VCC

RA3

VCC

VCC

RA12RA0VCC

GN

D

RF1

2

RA4

GNDVC

AP

AGN

DAV

CCR

A10/

Vref

+

MCLR

RC4

CLKI/RC12CLKO/RC15

RD10

RD

3

RD

1

SOSCI/RC13SOSCO/RC14

GND

RD

2

RD

12R

D13

RD

4R

D5

RG9

RD11RD0

U1

C5

100nF

C6

100nF

C7

100nF

E8

10uF

VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3

C8

100nF

VCC-3.3

decoupling capacitors

Figure 10-2: Accelerometer connection schematic

Page 36: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 36

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 37: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 37

VCC-3.3

R5 27

R4 27

VREF-1.8

C31

22pF

C30

22pF

X3 32.768KHz

C2

22pF

C1

22pF

X1 8MHz

E9

10uF

MOSI2-RG8

SCK2-RG6

SOSCOSOSCI

CLKOCLKI

LCD

-RS

LCD

-YU

LCD

-XL

LCD

-YD

LCD

-XR

SD-C

D#

T-D

1

RD

14R

D15

MCU

-RX

MCU

-TX

RB9

RB8

PGD

1PG

C1

RF1

3R

F12

FLASH-CS#

MISO2-RG730292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

7026

25

76

757473

dsPIC33FJ256GP710A

81828384858687888990919293949596979899100

RB1

1R

B10/

AN10

RB9

/AN

9R

B8/A

N8

RB1

3R

B12

RE7RC1RC2RC3

RA15

SCL1/RG2

RB1

5R

B14

SDO1/RF8SDI1/RF7SCK1/RF6SDA1/RG3

GN

DVC

C

RA6

RG

0R

G1

RE0 RF1

RF0

RD

7R

D6

RE6RE5

RE2

RG

13R

G12

RG

14R

E1

RA7

RG8/SDO2

RA9

/Vre

f-RB1RB2/AN2RB3RB4RB5RA13

RD9RD8

U1RX/RF2U1TX/RF3

GND

RG7/SDI2RG6/SCK2

RA1

RE3

RE4

RG15VCC

RB7

/PG

ED1

RB6

/PG

EC1

RB0

RF4

RF5

RA14

RA5

RD

14R

D15

RA2

RF1

3

VCC

RA3

VCC

VCC

RA12RA0VCC

GN

D

RF1

2

RA4

GND

VCAP

AGN

DAV

CCR

A10/

Vref

+

MCLR

RC4

CLKI/RC12CLKO/RC15

RD10

RD

3

RD

1

SOSCI/RC13SOSCO/RC14

GND

RD

2

RD

12R

D13

RD

4R

D5

RG9

RD11RD0

U1

FLASH-CS#

C37

100nF

R4810K

VCC-3.3

VCC-3.3

VCC-3.3

123

54678

CSSDOWPGND SDI

SCKHOLD

VCC

U10

M25P80

MOSI2-RG8SCK2-RG6

MISO2-RG7

C5

100nF

C6

100nF

C7

100nF

E8

10uF

VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3

C8

100nF

VCC-3.3

decoupling capacitors

Figure 11-2: Flash memory module connection schematic

Page 38: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 38

R7 100

VCC-3.3

R5 27

R4 27

VREF-1.8

C31

22pF

C30

22pF

X3 32.768KHz

C2

22pF

C1

22pF

X1 8MHz

E9

10uF

MOSI2-RG8

SCK2-RG6

RD

1R

D2

RD

3

RD

4R

D5

RD

6

RF1

RF0

RG

0

MISO1-RF7SCK1-RF6

MOSI1-RF8

SDA1-RG3SCL1-RG2

SOSCOSOSCI

TX1-RF3RX1-RF2

RA14

RD0

RA15RD8RD9

CLKOCLKI

RD10

RD

14R

D15

RB9

RB8

PGD

1PG

C1

RF1

3R

F12

RG15

RA13RA12

RB1RB2RB3RB4RB5

MISO2-RG7

RC2

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

dsPIC33FJ256GP710A

81828384858687888990919293949596979899100

RB1

1R

B10/

AN10

RB9

/AN

9R

B8/A

N8

RB1

3R

B12

RE7RC1RC2RC3

RA15

SCL1/RG2

RB1

5R

B14

SDO1/RF8SDI1/RF7SCK1/RF6SDA1/RG3

GN

DVC

C

RA6

RG

0R

G1

RE0 RF1

RF0

RD

7R

D6

RE6RE5

RE2

RG

13R

G12

RG

14R

E1

RA7

RG8/SDO2

RA9

/Vre

f-RB1RB2/AN2RB3RB4RB5RA13

RD9RD8

U1RX/RF2U1TX/RF3

GND

RG7/SDI2RG6/SCK2

RA1

RE3

RE4

RG15VCC

RB7

/PG

ED1

RB6

/PG

EC1

RB0

RF4

RF5

RA14

RA5

RD

14R

D15

RA2

RF1

3

VCC

RA3

VCC

VCC

RA12RA0VCC

GN

D

RF1

2

RA4

GND

VCAP

AGN

DAV

CCR

A10/

Vref

+

MCLR

RC4

CLKI/RC12CLKO/RC15

RD10

RD

3

RD

1

SOSCI/RC13SOSCO/RC14

GND

RD

2

RD

12R

D13

RD

4R

D5

RG9

RD11RD0

U1

RST

RXTX SCK

SDIADS ODS

SCL

AN

INT

PWM

VCC-3.3VCC-3.3

VCC-SYS

1234567891011121314151617181920212223242526

HDR1

M1X26

2728293031323334353637383940414243444546474849505152

HDR2

M1X26

RA13RA12

RA14

MOSI1-RF8

SCK1-RF6MISO1-RF7

RA15

RB1RB2RB3RB4RB5

RB9RB8

RG15

MOSI2-RG8

SCK2-RG6MISO2-RG7

RG0RD10

RB6RB7

RD14RD15

RF1RF0

SDA1-RG3SCL1-RG2

TX1-RF3RX1-RF2

LR

RD0RD1RD2RD3RD4RD5

RD6

RD8RD9

RF13RF12RC2

RST

C5

100nF

C6

100nF

C7

100nF

E8

10uF

VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3

C8

100nF

VCC-3.3

decoupling capacitors

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.

Pads HDR2 Pads HDR1

Figure 12-1: Pads connecting schematic

Page 39: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 39

13. Pinout

SPI LinesInterrupt LinesAnalog LinesProgramming lines I2C Lines UART lines PWM lines Comparator lines

5V RST Reset pin5V power supplyGND GND Reference GroundReference GroundRB1 LRB2 R

left ch.AN10right ch.AN2/SS1/CN4

RB3 RD0 OC1AN3/CN5RB4 RD1 OC2AN4/CN6RB5 RD2 OC3AN5/CN7RB8 RD3 OC4AN8RB9 RD4 OC5/CN13AN9

RA12 RD5 OC6/CN14AN20/INT1RA13 RD8 IC1AN21/INT2RA14 RD9 IC2INT3RA15 RD14 IC7/U1CTS/CN20INT4

RB6 RD15 IC8/U1RTS/CN21PGEC1/AN6/OCFARB7 RD6 OC7/CN15PGED1/AN7RF6 RC2 AN17/T3CK/T6CKSCK1/INT0RF7 RF12 U2CTSSDI1RF8 RF13 U2RTSSDO1

RG15 RF0 C1RXCOFSRG0 RF1 C1TXC2RX

RD10 RF2 U1RXIC3RG6 RF3 U1TXSCK2/CN8RG7 RG2 SCL1SDI2/CN9RG8 RG3 SDA1SDO2/CN103.3V 3.3V 3.3V power supply3.3V power supplyGND GND Reference GroundReference Ground

Pin functions Pin functions

audio out

CAN

UART

I2CSPI2

SPI1

Page 40: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 40 Page 41

14. Dimensions73.66

81.15

63.5

2.672.54

36.5

8

55.8

8

60.4

5

1.6 63

2.03

3195

29004157

7276

2380

2200

50.2

19

76

2500

1440

105100

80

8.89

350

7.62

300

3.2126

57.62268

69.32728

43.2

17

00

Legend

Page 41: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 41

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

01

05 06 07

02 03

Gaming shield

Connect shield

Li-Polimer battery Wire Jumpers Stacking headers

BatteryBoost shield PROTO shield

Page 42: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 42

You still don’t have an appropriate compiler? Locate dsPIC® compiler that suits you best

on our site:

Choose between mikroC™, mikroBasic™ and mikroPascal™ and download fully functional

demo version, so you can begin building your first applications.

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:

You have now completed the journey through each and every feature of mikromedia for dsPIC33® 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

Visual TFT

What’s next?

http://www.mikroe.com/dspic/compilers/

http://www.mikroe.com/visualtft/

Page 43: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

Page 43

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.

TRADEMARKS

The MikroElektronika name and logo, mikroC™, mikroBasic™, mikroPascal™, mikroProg™, Ready™, MINI™, mikroBUS™, EasyPIC™, EasyMX™, 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.

Copyright © 2014 MikroElektronika. All Rights Reserved.

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.

Page 44: mikromedia - Mikroelektronika 3-9: Write program 01 First RESET mikromedia and then, within 5s click on Write button 01 Figure 3-8: Seting baud rate step 5 – Set Baud rate From drop

If you want to learn more about our products, please visit our website 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] for dsPIC33 Manual

ver. 1.10c

0 100000 024614