mikromedia for dsPIC33 ™ ®

Add to my manuals
40 Pages

advertisement

mikromedia for dsPIC33 ™ ® | Manualzz

mikromedia

for dsPIC33

®

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

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

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

Page 3

Table of Contents

Introduction to mikromedia for dsPIC33®

Package Contains

Key Features

System Specification

1. Power supply

USB power supply 8

Battery power supply 8

7

8

2. dsPIC33FJ256GP710A microcontroller

Key microcontroller features

10

10

3. Programming the microcontroller

Programming with mikroBootloader

11

12

4

5

6 step 1 – Choosing COM port 13 step 2 – Choosing device family 14 step 3 – Choosing device step 4 – Browse for .HEX file

14

15 step 5 – Set Baud rate step 6 – Uploading .HEX file

16

16

Programming with mikroProg™ programmer 18

mikroProg Suite™ for PIC Software 19

Programming with ICD2 or ICD3 programmer 20

4. Reset buttons

5. Crystal oscillator

22

24

6. MicroSD Card Slot

7. Touch Screen

8. Audio Module

9. USB-UART connection

25

26

28

30

10. Accelerometer

11. Flash Memory

12. Pads

13. Pinout

14. Dimensions

15. Mikromedia Accessories

16. What’s Next

32

33

34

35

36

37

38

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 preprogrammed 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 Page 5

Page 4

Package Contains

01

Damage resistant protective box

04 mikromedia for dsPIC33® user’s guide

02 mikromedia for dsPIC33® development system

SCHEMATICS

mikromedia

for dsPIC33

®

™ development board. We want you t o know what your board is consis ted of and

®

05 mikromedia for dsPIC33® schematics

Page 5

20122011 www.mikroe.com

Copyright ©2011 Mikroelektronika.

All rights reserved. Mikroelektronika, Mikroelektronika logo and other

Mikroelektronika trademarks are the property of Mikroelektronika.

All other tradmarks are the property of their respective owners.

Unauthorised copying, hiring, renting, public performance and broadcasting of this DVD prohibited.

03

DVD with documentation and examples

06

USB cable

Key Features

01 Connection Pads

02

03

04

05

TFT 320x240 display

USB MINI-B connector

CHARGE indication LED

LI-Polymer battery connector

06

07

08

09

10

11

3.5mm headphone connector

Power supply regulator

FTDI chip

Serial Flash memory

RESET button

VS1053 Stereo mp3 coder/decoder

12

13

14

15

16

17 dsPIC33FJ256GP710A microcontroller

Accelerometer

Crystal oscillator

Power indication LED microSD Card Slot

ICD2/3 connector

18 mikroProg connector

01

02

Page 6 Page 7

Page 6

03

04

05

06

08

07

09

10

11

17

12

13

14

18

15

16

Page 7

System Specification

power supply

Via USB cable (5V DC)

power consumption

77 mA with erased MCU

(when on-board modules are inactive)

board dimensions

81.2 x 60.5cm (3.19 x 2.38 inch)

weight

~50 g (0.11 lbs)

1. Power supply

Figure 1-1: Connecting

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

Battery power supply

You can also power the board using

Li-Polymer

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

MCP73832

enables you to charge the battery over USB connection.

LED diode (RED)

will indicate battery charging. Led is off when battery is full. Charging current is ~250mA and charging voltage is 4.2V DC.

Figure 1-2: Connecting Li-Polymer battery

Page 8 Page 9

Page 8

VSENSE

STAT

VCC-3.3

R35

10K

VCC-BAT

R6

4K7

R49

4K7

R34

4K7

VCC-3.3

R39

4K7

LD2

CHARGE

VCC-3.3

R36

10K

Q4

BC846

VCC-SYS

VCC-BAT

+

-

Q5

BC846

R37

10K

DMP2160UW

M1

CN1

BATT CONN

VCC-USB

R43

10K

FP2

FERRITE

C28

10nF

3

4

1

2

5

CN3

E5

R38

10K

VCC-3.3

VCC-BAT

E7

R45

1K

10uF

VCC-SYS

1

2

3

STAT

VSS

VBAT

PROG

VDD

5

4

MCP73832

Charging Current approx. 250mA

C40

2.2uF

R44

3K9

VBUS

D-

D+

ID

GND

USB MINIB

VREF-1.8

FP3

E11

10uF

FERRITE

VCC-1.8

VCC-3.3

C29

E10

VCC-1.8

VCC-1.8

1

2

3

2.2uF

U3

Vin

GND

EN

Vout

MIC5205-ADJ

ADJ

10uF

5

4

R47

120K

R46

22K

R50

0R

Figure 1-3: Power supply schematics

VCC-3.3

LD1

POWER

VCC-SYS

23

24

25

26

M1X26

19

20

21

22

15

16

17

18

HDR1

1

2

5

6

3

4

11

12

13

14

7

8

9

10

VCC-3.3

49

50

51

52

M1X26

45

46

47

48

41

42

43

44

HDR2

27

28

29

30

31

32

37

38

39

40

33

34

35

36

R26

2K2

E3

10uF

VCC-SYS VCC-3.3

1

3

E4

10uF

REG1

Vin

GND

Vout

LD29080DT33

2

Page 9

2. dsPIC33FJ256GP710A microcontroller

The

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 memory;

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

40/60 MIPS 16-bit Co

- Optimal for ‘C’ re

- MCU + DSP R esources

40-bit

Accumulator

DSP

Engine

16 Core

Registers

Instruction

Data

Data/Memory Bus

Interrupt

Controller

2-wire

Debug

DMA

8 Ch.

Flash

(256KB)

RAM

(30KB)

Data Bus

GPIO VREG

CAN

Motor

Control

PWM

I2C

Input

Capture

UART

SPI

Output

Compare

PWM

32-bit

CRC

16-bit

Timers

PMP

RTCC

32-bit

QEI

Audio

DAC

Control

DAC

10/12-bit

ADC

Analog

Comparator

Page 10 Page 11

Page 10

3. Programming the microcontroller

Page 11

The microcontroller can be programmed in three ways:

01

Over UART bootloader

02

03

Using mikroProg™ external programmer

Using ICD2/3 external programmer

Programming with mikroBootloader

You can program the microcontroller with bootloader which is pre-programmed 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: http://www.mikroe.com/eng/products/view/586/ mikrommb-for-dspic33-board/

After software is downloaded unzip it to desired location and start ds30 Loader software.

Page 12

Figure 3-1: ds30 Loader open-source software

NOTE

Connect mikromedia for dsPIC33® with a PC before starting ds30 Loader software

Page 13

Page 12

Identifying device COM port step 1 – Choosing COM port

01

Figure 3-2: Identifying COM port

NOTE

In Device Manager you can see which COM port is assigned to mikromedia (in this case COM5)

Page 13

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)

step 2 – Choosing device family step 3 – Choosing device

01

01

Figure 3-4: Selecting MCU family

01 From drop down list select MCU family (

dsPIC33FJ

)

Page 14

Figure 3-5: Selecting

MCU chip

01 From drop down list select MCU chip (

256GP710A

)

Page 15

Page 14

step 3 – Choosing device step 4 – Browse for .HEX file

01

01

02

03

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

Figure 3-6: 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

Page 15

01 Select desired .HEX file

02

Folder list

03

Click on Open button

step 5 – Set Baud rate step 6 – Uploading .HEX file

01

02

01

Figure 3-8: Seting baud rate

01

From drop down list set baud rate value to 256000

02

Check

Write program

check box

Page 16

Figure 3-9: Write program

01

First RESET mikromedia and then, within 5s click on

Write button

Page 17

NOTE

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.

01

Page 16

First RESET mikromedia and then, within 5s click on

Write button

01

Figure 3-10: Program uploading

01

Progress bar indicates .HEX file upload process

Page 17

Figure 3-11: Uploading is finished

01

After uploading is finished you will get notice in ds30 Loader history window

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.

Figure 3-12:

Connecting mikroProg™ to mikromedia™

Page 18 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

Page 18

mikroProg Suite

for PIC

®

Software

mikroProg™

programmer requires special programming software called

mikroProg Suite™ for PIC®

. This software is used for programming of ALL Microchip® microcontroller families, including PIC10®, PIC12®,

PIC16®, PIC18®, dsPIC30/33®, PIC24® and PIC32®. Software has intuitive interface and 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 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-14:

Placing ICD2® connector

Figure 3-15:

Connecting 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 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-14.

Page 20 Page 21

Page 20

MCLR#

MCLR

RG9

GND

VCC

RA0

RA12

RA13

RB5

RB4

RB3

RB2/AN2

RB1

RB0

RG15

VCC

RE5

RE6

RE7

RC1

RC2

RC3

RC4

RG6/SCK2

RG7/SDI2

RG8/SDO2

5

6

3

4

1

2

10

11

12

13

14

7

8

9

19

20

21

22

23

24

25

15

16

17

18

E9

10uF dsPIC33FJ256GP710A

78 77

U1

GND

SOSCO/RC14

SOSCI/RC13

RD0

RD11

RD10

RD9

RD8

RA15

RA14

GND

CLKO/RC15

CLKI/RC12

VCC

RA5

RA4

RA3

RA2

SCL1/RG2

SDA1/RG3

SCK1/RF6

SDI1/RF7

SDO1/RF8

U1RX/RF2

U1TX/RF3

75

74

73

72

71

67

66

65

64

70

69

68

56

55

54

53

59

58

57

52

51

63

62

61

60

38 39 40 41 42 43 44 45 48 49

VCC-3.3

SOSCO

SOSCI

CLKO

CLKI

PGC1

PGD1

MCLR#

X3

C31

22pF

32.768KHz

C30

22pF

C2

VCC-3.3

3

4

1

2

5

CN6

M1X5

X1

22pF

8MHz

C1

MCLR#

PGD1

PGC1

R15

100

22pF

R14

100

VCC-3.3

4

3

6

5

2

1

CN5

M1X6

RB7

RB6

VREF-1.8

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF decoupling capacitors

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

Page 21

4. Reset Buttons

Board is equipped with two reset buttons. First is located at the back side of the board (Figure 4-1), and second one is at the top of the front side (Figure 4-2).

If you want to reset the circuit, press either of two buttons. 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).

Figure 4-1: Reset button located at the backside of the board

Page 22

Figure 4-2: Frontal reset button

Page 23

Page 22

R7 100

RG15

VCC

RE5

RE6

RE7

RC1

RC2

RC3

RC4

RG6/SCK2

RG7/SDI2

RG8/SDO2

MCLR

RG9

GND

VCC

RA0

RA12

RA13

RB5

RB4

RB3

RB2/AN2

RB1

RB0

12

13

14

15

16

17

10

11

8

9

5

6

3

4

7

1

2

18

19

20

21

22

23

24

25

VREF-1.8

E9

10uF dsPIC33FJ256GP710A

38 39 40 41 42 43 44 45

78 77

U1

64

63

62

61

60

59

68

67

66

65

58

57

56

55

54

53

52

51

75

74

73

72

71

70

69

GND

SOSCO/RC14

SOSCI/RC13

RD0

RD11

RD10

RD9

RD8

RA15

RA14

GND

CLKO/RC15

CLKI/RC12

VCC

RA5

RA4

RA3

RA2

SCL1/RG2

SDA1/RG3

SCK1/RF6

SDI1/RF7

SDO1/RF8

U1RX/RF2

U1TX/RF3

VCC-3.3

SOSCO

SOSCI

X3

CLKO

CLKI

X1

C31

22pF

32.768KHz

C30

22pF

C2

22pF

8MHz

C1

22pF

RST

T2 T1

VCC-3.3

R8

10K

C3

100nF

VCC-3.3

HDR2

M1X26

37

38

39

40

41

33

34

35

36

27

28

29

30

31

32

47

48

49

50

51

42

43

44

45

46

52

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

48 49 decoupling capacitors

Figure 4-3: Reset circuit schematics

Page 23

5. Crystal oscillator

Board is equipped with

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

VCC-3.3

MCLR

RG9

GND

VCC

RA0

RA12

RA13

RB5

RB4

RB3

RB2/AN2

RB1

RB0

RG15

VCC

RE5

RE6

RE7

RC1

RC2

RC3

RC4

RG6/SCK2

RG7/SDI2

RG8/SDO2

5

6

3

4

1

2

10

11

12

13

14

7

8

9

19

20

21

22

23

24

25

15

16

17

18 dsPIC33FJ256GP710A

78 77

U1

GND

SOSCO/RC14

SOSCI/RC13

RD0

RD11

RD10

RD9

RD8

RA15

RA14

GND

CLKO/RC15

CLKI/RC12

VCC

RA5

RA4

RA3

RA2

SCL1/RG2

SDA1/RG3

SCK1/RF6

SDI1/RF7

SDO1/RF8

U1RX/RF2

U1TX/RF3

75

74

73

72

71

67

66

65

64

70

69

68

56

55

54

53

59

58

57

52

51

63

62

61

60

38 39 40 41 42 43 44 45 48 49

SOSCO

SOSCI X3

CLKO

CLKI X1

C31

22pF

32.768KHz

C30

22pF

C2

22pF

8MHz

C1

22pF

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF decoupling capacitors

Figure 5-2:

Crystal oscillator schematics

VREF-1.8

Figure 5-1:

Crystal oscillator module (X1)

NOTE :

The use of crystal in all other schematics is implied even if it is purposely left out, because of the schematics clarity.

Page 24 Page 25

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

VCC-3.3

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

SCK2-RG6

MISO2-RG7

MOSI2-RG8

R5

R4

SD-CS#

27

27

17

18

19

20

21

12

13

14

15

16

22

23

24

25

10

11

7

8

9

5

6

3

4

1

2

RG15

VCC

RE5

RE6

RE7

RC1

RC2

RC3

RC4

RG6/SCK2

RG7/SDI2

RG8/SDO2

MCLR

RG9

GND

VCC

RA0

RA12

RA13

RB5

RB4

RB3

RB2/AN2

RB1

RB0 dsPIC33FJ256GP710A

78 77

U1

75

74

73

72

71

70

69

68

67

66

65

60

59

58

57

56

55

64

63

62

61

54

53

52

51

GND

SOSCO/RC14

SOSCI/RC13

RD0

RD11

RD10

RD9

RD8

RA15

RA14

GND

CLKO/RC15

CLKI/RC12

VCC

RA5

RA4

RA3

RA2

SCL1/RG2

SDA1/RG3

SCK1/RF6

SDI1/RF7

SDO1/RF8

U1RX/RF2

U1TX/RF3

38 39 40 41 42 43 44 45 48 49

SOSCO

SOSCI

CLKO

CLKI decoupling capacitors

X3

X1

C31

22pF

32.768KHz

C30

22pF

C2

22pF

8MHz

C1

22pF

VCC-MMC

VCC-MMC

C38

100nF

SD-CS#

MOSI2-RG8

SCK2-RG6

MISO2-RG7

SD-CD#

R11

10K

R10

10K

R9

10K

VCC-MMC

R16

27

CD

4

5

1

2

6

7

CN4

CS

Din

+3.3V

SCK

GND

Dout

FP1

VCC-3.3

E6

10uF

FERRITE

VREF-1.8

Figure 6-2: microSD Card Slot module connection schematics

Page 25

Figure 6-1: microSD card slot

Figure 6-3:

Inserting microSD card

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 data in

262.144

diffe rent

colors

.

Figure 7-1:

Touch Screen

Page 26 Page 27

Page 26

T-D13

T-D14

T-D15

LCD-RST

LCD-CS#

T-D0

E9

10uF

MCLR

RG9

GND

VCC

RA0

RA12

RA13

RB5

RB4

RB3

RB2/AN2

RB1

RB0

RG15

VCC

RE5

RE6

RE7

RC1

RC2

RC3

RC4

RG6/SCK2

RG7/SDI2

RG8/SDO2

5

6

3

4

1

2

10

11

12

13

14

7

8

9

19

20

21

22

23

24

25

15

16

17

18

VREF-1.8

dsPIC33FJ256GP710A

38 39 40 41 42 43 44 45

78 77

U1

GND

SOSCO/RC14

SOSCI/RC13

RD0

RD11

RD10

RD9

RD8

RA15

RA14

GND

CLKO/RC15

CLKI/RC12

VCC

RA5

RA4

RA3

RA2

SCL1/RG2

SDA1/RG3

SCK1/RF6

SDI1/RF7

SDO1/RF8

U1RX/RF2

U1TX/RF3

75

74

73

72

71

67

66

65

64

70

69

68

56

55

54

53

59

58

57

52

51

63

62

61

60

48 49

VCC-3.3

SOSCO

SOSCI

LCD-BLED

X3

X1

C31

22pF

32.768KHz

C30

22pF

C2

22pF

8MHz

C1

22pF

VCC-SYS

D2

R23

1K

BAT43

Q2

BC846

VCC-3.3

E13

10uF

Q3

BC846

Q1

BC846

R40

12

CLKO

CLKI

T-D5

T-D4

T-D3

T-D2

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF decoupling capacitors

C21

18nF

VCC-3.3

VCC-3.3

R24

10K

R25

10K

VCC-3.3

R41

300K

C22

18nF

LCD-RST

LCD-CS#

VCC-3.3

R42

300K

LCD-XL

LCD-YU

Figure 7-2: Touch Screen connection schematics

Page 27

8. Audio Module

Figure 8-2:

Inserting 3.5mm headphones jack

Figure 8-1:

On-board VS1053

MP3 codec

The mikromedia for dsPIC33 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 Page 29

Page 28

SCK2-RG6

MISO2-RG7

MOSI2-RG8

R5

R4

27

27

E9

10uF

VCC-3.3

MCLR

RG9

GND

VCC

RA0

RA12

RA13

RB5

RB4

RB3

RB2/AN2

RB1

RB0

RG15

VCC

RE5

RE6

RE7

RC1

RC2

RC3

RC4

RG6/SCK2

RG7/SDI2

RG8/SDO2

5

6

3

4

1

2

10

11

12

13

14

7

8

9

19

20

21

22

23

24

25

15

16

17

18

VREF-1.8

dsPIC33FJ256GP710A

78 77

U1

GND

SOSCO/RC14

SOSCI/RC13

RD0

RD11

RD10

RD9

RD8

RA15

RA14

GND

CLKO/RC15

CLKI/RC12

VCC

RA5

RA4

RA3

RA2

SCL1/RG2

SDA1/RG3

SCK1/RF6

SDI1/RF7

SDO1/RF8

U1RX/RF2

U1TX/RF3

75

74

73

72

71

67

66

65

64

70

69

68

56

55

54

53

59

58

57

52

51

63

62

61

60

38 39 40 41 42 43 44 45 48 49

SOSCO

SOSCI

X3

CLKO

CLKI

X1

C31

22pF

32.768KHz

C30

22pF

C2

22pF

8MHz

C1

22pF

R1 1M

X2

12.288MHz

C19

22pF

C20

22pF

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF decoupling capacitors

MP3-CS#

MP3-RST#

VCC-3.3

R19

10K

R2

10K

MP3-DCS

MP3-CS#

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

VCC-1.8

U2

19

20

21

22

23

24

13

14

15

16

17

18

XDCS/BSYNC

IOVDD1

VC0

DGND1

XTAL0

XTAL1

IOVDD2

DGND2

DGND3

DGND4

XCS

CVDD2

VS1053

TX SC SI SO CV

28 29 30 31 32 33 34 35 36

LN2

AGND3

LEFT

AVDD2

RCAP

AVDD1

GBUF

AGND2

AGND1

RIGHT

AVDD0

AGND0

44

43

42

41

40

39

38

37

48

47

46

45

VCC-3.3

R33

470

E2 10uF

C18

3.3nF

R

R18

100K

R32

470

E1 10uF

C17

3.3nF

L

R17

100K

CN2

LEFT LEFT

R28 10

RIGHT

R29 10

GBUF

RIGHT

C13

1uF

R30

20

C15

10nF

R31

20

C16

10nF

R27

10

C14

47nF

PHONEJACK

R20

10K

VCC-3.3

R21

10K

C4

100nF

C9

100nF

C10

100nF

C11

100nF

C12

100nF

C23

100nF decoupling capacitors

C24

100nF

C26

100nF

C27

100nF

R22

27

Figure 8-3: Audio module connection schematics

Page 29

9. USB-UART connection

Mikromedia contains 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.

Figure 9-1:

Connecting USB cable to programming connector

NOTE :

Before connecting the board, make sure that you have FTDI drivers installed on your computer. Tx/Rx LED flashes when USB and controller communicate.

Page 30 Page 31

Page 30

E9

10uF

MCLR

RG9

GND

VCC

RA0

RA12

RA13

RB5

RB4

RB3

RB2/AN2

RB1

RB0

RG15

VCC

RE5

RE6

RE7

RC1

RC2

RC3

RC4

RG6/SCK2

RG7/SDI2

RG8/SDO2

5

6

3

4

1

2

10

11

12

13

14

7

8

9

19

20

21

22

23

24

25

15

16

17

18

VCC-3.3

dsPIC33FJ256GP710A

78 77

U1

GND

SOSCO/RC14

SOSCI/RC13

RD0

RD11

RD10

RD9

RD8

RA15

RA14

GND

CLKO/RC15

CLKI/RC12

VCC

RA5

RA4

RA3

RA2

SCL1/RG2

SDA1/RG3

SCK1/RF6

SDI1/RF7

SDO1/RF8

U1RX/RF2

U1TX/RF3

75

74

73

72

71

67

66

65

64

70

69

68

59

58

57

56

55

54

53

52

51

63

62

61

60

SOSCO

SOSCI X3

CLKO

CLKI X1

C31

22pF

32.768KHz

C30

22pF

C2

22pF

8MHz

C1

22pF

38 39 40 41 42 43 44 45 48 49

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF decoupling capacitors

VCC-3.3

MCU-RX

MCU-TX

9

10

11

12

13

14

7

8

5

6

3

4

1

2

U4

TXD

DTR#

RTS#

VCCIO

RXD

RI#

GND

NC

DSR#

DCD#

CTS#

CBUS4

CBUS2

CBUS3

FT232RL

OSCO

OSCI

TEST

AGND

NC

CBUS0

CBUS1

GND

VCC

RESET#

GND

3V3OUT

USBDM

USBDP

FT232RL

28

27

26

25

24

23

22

21

20

19

18

17

16

15

VCC-3.3

R53

220

LD3

TX/RX

C36

100nF

C34

100nF

R52

10K

VCC-USB

USBDM

USBDP

C28

10nF

3

4

1

2

5

CN3

VBUS

D-

ID

GND

USB MINIB

Figure 9-2: USB module connection schematics

Page 31

10. Accelerometer

On board

ADXL345

accelerometer is used to measure acceleration in three axis: 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.

E9

10uF

14

15

16

17

18

19

20

21

22

23

24

25

10

11

12

13

7

8

9

5

6

3

4

1

2

RG15

VCC

RE5

RE6

RE7

RC1

RC2

RC3

RC4

RG6/SCK2

RG7/SDI2

RG8/SDO2

MCLR

RG9

GND

VCC

RA0

RA12

RA13

RB5

RB4

RB3

RB2/AN2

RB1

RB0 dsPIC33FJ256GP710A

78 77

U1

GND

SOSCO/RC14

SOSCI/RC13

RD0

RD11

RD10

RD9

RD8

RA15

RA14

GND

CLKO/RC15

CLKI/RC12

VCC

RA5

RA4

RA3

RA2

SCL1/RG2

SDA1/RG3

SCK1/RF6

SDI1/RF7

SDO1/RF8

U1RX/RF2

U1TX/RF3

75

74

73

72

71

70

69

68

67

66

65

64

63

58

57

56

55

54

53

62

61

60

59

52

51

38 39 40 41 42 43 44 45 48 49

VCC-3.3

SOSCO

SOSCI

CLKO

CLKI

X3

X1

C31

22pF

32.768KHz

C30

22pF

C2

22pF

8MHz

C1

22pF

SCL1-RG2

SDA1-RG3

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF decoupling capacitors

VCC-3.3

R13

10K

VCC-3.3

R12

10K

SCL1-RG2

3

4

1

2

5

6

U9

VCC

GND

Res

GND

GND

VCC

SDA

ADD

Res

NC

INT2

INT1

ADXL345

VCC-3.3

13

12

9

8

11

10

SDA1-RG3

ACC ADDRESS

VCC-3.3

VCC-3.3

J1

C33

100nF

C32

100nF

Figure 10-2:

Accelerometer connection schematics

VREF-1.8

Page 32

Figure 10-1:

Accelerometer module

You can set the accelerometer address to 0 or 1 by re-soldering the

SMD jumper (zero-ohm resistor) to the appropriate position. Jumper is placed in address 1 position by default.

Page 33

Page 32

11. Flash Memory

E9

10uF

FLASH-CS#

SCK2-RG6

MISO2-RG7

MOSI2-RG8

R5

R4

27

27

MCLR

RG9

GND

VCC

RA0

RA12

RA13

RB5

RB4

RB3

RB2/AN2

RB1

RB0

RG15

VCC

RE5

RE6

RE7

RC1

RC2

RC3

RC4

RG6/SCK2

RG7/SDI2

RG8/SDO2

5

6

3

4

1

2

10

11

12

13

14

7

8

9

19

20

21

22

23

24

25

15

16

17

18 dsPIC33FJ256GP710A

78 77

U1

GND

SOSCO/RC14

SOSCI/RC13

RD0

RD11

RD10

RD9

RD8

RA15

RA14

GND

CLKO/RC15

CLKI/RC12

VCC

RA5

RA4

RA3

RA2

SCL1/RG2

SDA1/RG3

SCK1/RF6

SDI1/RF7

SDO1/RF8

U1RX/RF2

U1TX/RF3

75

74

73

72

71

67

66

65

64

70

69

68

59

58

57

56

55

54

53

52

51

63

62

61

60

38 39 40 41 42 43 44 45 48 49

VCC-3.3

VREF-1.8

SOSCO

SOSCI

CLKO

CLKI

X3

X1

C31

22pF

32.768KHz

C30

22pF

C2

22pF

8MHz

C1

22pF

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF decoupling capacitors

FLASH-CS#

MISO2-RG7

VCC-3.3

R48

10K

C37

VCC-3.3

VCC-3.3

3

4

1

2

U10

CS

SDO

WP

GND

M25P80

VCC

HOLD

SCK

SDI

100nF

8

7

6

5

SCK2-RG6

MOSI2-RG8

Figure 11-2:

Flash memory module connection schematics

Page 33

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

).

12. Pads

E9

10uF

VCC-3.3

PWM

S

RX

TX

SCL

D A

39

40

41

42

35

36

37

38

31

32

33

34

27

28

29

30

47

48

49

50

43

44

45

46

51

52

HDR2

M1X26

RST

RD8

RD9

RD14

RD15

RD6

RC2

RF12

RF13

RF0

RF1

RX1-RF2

TX1-RF3

SCL1-RG2

SDA1-RG3

RD0

RD1

R

L

RD2

RD3

RD4

RD5

VCC-3.3

RG15

RA12

RA13

RB5

RB4

RB3

RB2

RB1

RC2

SCK2-RG6

MISO2-RG7

MOSI2-RG8

RST

R5

R4

R7

27

27

100

MCLR

RG9

GND

VCC

RA0

RA12

RA13

RB5

RB4

RB3

RB2/AN2

RB1

RB0

RG15

VCC

RE5

RE6

RE7

RC1

RC2

RC3

RC4

RG6/SCK2

RG7/SDI2

RG8/SDO2

5

6

3

4

1

2

10

11

12

13

14

7

8

9

19

20

21

22

23

24

25

15

16

17

18 dsPIC33FJ256GP710A

78 77

U1

GND

SOSCO/RC14

SOSCI/RC13

RD0

RD11

RD10

RD9

RD8

RA15

RA14

GND

CLKO/RC15

CLKI/RC12

VCC

RA5

RA4

RA3

RA2

SCL1/RG2

SDA1/RG3

SCK1/RF6

SDI1/RF7

SDO1/RF8

U1RX/RF2

U1TX/RF3

75

74

73

72

71

67

66

65

64

70

69

68

56

55

54

53

59

58

57

52

51

63

62

61

60

38 39 40 41 42 43 44 45 48 49

VREF-1.8

SOSCO

SOSCI

RD0

RD10

RD9

RD8

RA15

RA14

CLKO

CLKI

SCL1-RG2

SDA1-RG3

SCK1-RF6

MISO1-RF7

MOSI1-RF8

RX1-RF2

TX1-RF3

X3

X1

C31

22pF

32.768KHz

C30

22pF

C2

22pF

8MHz

C1

22pF

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

RB1

RB2

RB3

RB4

RB5

RB8

RB9

RA12

RA13

RA14

RA15

RB6

RB7

SCK1-RF6

MISO1-RF7

MOSI1-RF8

RG15

RG0

RD10

SCK2-RG6

MISO2-RG7

MOSI2-RG8

VCC-3.3

VCC-SYS

HDR1

M1X26

13

14

15

16

9

10

11

12

7

8

5

6

3

4

1

2

21

22

23

24

17

18

19

20

25

26

SCK

SDI

S D O

AN

INT decoupling capacitors

Pads HDR2 Pads HDR1

Figure 12-1: Pads connecting schematics

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 Page 35

Page 34

13. Pinout

5V power supply

Reference Ground

AN10

AN2 / SS1 / CN4

AN3 / CN5

AN4 / CN6

AN5 / CN7

AN8

INT4

PGEC1 / AN6 / OCFA

PGED1 / AN7

SCK1 / INT0

SPI1

AN9

AN20 / INT1

AN21 / INT2

INT3

SPI2

SDI1

SDO1

COFS

C2RX

IC3

SCK2 / CN8

SDI2 / CN9

SDO2 / CN10

3.3V power supply

Reference Ground

Pin functions

RB9

RA12

RA13

RA14

RA15

RB6

RB7

RF6

5V

GND

RB1

RB2

RB3

RB4

RB5

RB8

RF7

RF8

RG15

RG0

RD10

RG6

RG7

RG8

3.3V

GND

Programing lines Analog Lines Interrupt Lines SPI Lines

Page 35

I2C Lines UART lines

L

R

RST

GND

RD0

RD1

RD2

RD3

RD4

RD5

RD8

RD9

RD6

RC2

Reset pin

Reference Ground left ch.

right ch.

OC1

OC2

OC3

OC4

OC5 / CN13

OC6 / CN14

IC1

IC2

RD14 IC7 / U1CTS / CN20

RD15 IC8 / U1RTS / CN21

OC7 / CN15

AN17 audio out

/T3CK/T6CK

RF12 U2CTS

RF13 U2RTS

RF0

RF1

RF2

RF3

RG2

RG3

3.3V

GND

C1RX

C1TX

U1RX

U1TX

SCL1

SDA1

I

CAN

UART

2

C

3.3V power supply

Reference Ground

Pin functions

PWM lines Comparator lines

14. Dimensions

81.15 mm

(3195 mils)

73.66 mm

(2900 mils)

63.5 mm

(2500 mils)

Page 36

2.54 mm

(100 mils)

2.67 mm

(105 mils)

Page 37

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

04

Gaming shield

05

Li-Polimer battery

Page 37

06

Wire Jumpers

07

Stacking headers

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 Page 39

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.

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

Copyright © MikroElektronika, 2012, All Rights Reserved.

Page 39

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/esupport

If you have any questions, comments or business proposals, do not hesitate to contact us at [email protected]

mikromedia for dsPIC33 ® ver. 1.10b

Manual

0 100000 019672

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

Download PDF

advertisement