dspic pro 2 manual -...

43
dsPICPRO2 2.0 USB SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MikroElektronika Development tools - Books - Compilers Software and Hardware solutions for Embedded World With useful implemented peripherals, plentiful practical code examples and a broad set of additional add-on boards (ADC potentiometer, two RS-232, RS485, Compact Flash, MMC/SD, PS/2 keyboard, CAN etc.), MikroElektronika development boards make fast and reliable tools that can satisfy the needs of experi- enced engineers and beginners alike. USB 2.0 programmer with on board dsPICPRO2 Users Manual

Upload: truongkhanh

Post on 04-Aug-2018

221 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 2.0

USB

S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

MikroElektronikaDevelopment tools - Books - Compilers

Software and Hardwaresolutions for Embedded World

With useful implemented peripherals, plentiful practical codeexamples and a broad set of additional add-on boards (ADCpotentiometer, two RS-232, RS485, Compact Flash, MMC/SD,PS/2 keyboard, CAN etc.), MikroElektronika development boardsmake fast and reliable tools that can satisfy the needs of experi-enced engineers and beginners alike.

USB2.0 programmer

with on board

dsPICPRO2User’s Manual

Page 2: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 2page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

No part of this manual, including the product and software described in it, may bereproduced, transmitted, transcribed, stored in a retrieval system, or translated intoany language in any form or by any means, except documentation kept buy the pur-chaser for backup purposes, without the express written permission ofMikroElektronika company.

Product warranty or service will not be extended if the product is repaired, modifiedor altered, unless such repair, modification or alteration is authorized in writing byMikroElektronika.

MIKROELEKTRONIKA PROVIDE THIS MANUAL “AS IS” WITHOUT WARRANTYOF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITEDTO THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY ORFITNESS FOR A PARTICULAR PUROSE.

IN NO EVENT SHALL MIKROELEKTRONIKA, ITS DIRECTORS, OFFICERS,EMPLOYEES OR DISTRIBUTORS BE LIABLE FOR ANY INDIRECT , SPECIAL,INCIDENTAL, OR CONSEQUENTIAL DAMAGES(INCLUDING DAMAGES FORLOSS OF PROFITS, LOSS OF BUSINESS, LOSS OF USE OR DATA, INTERRUP-TION OF BUSINESS AND THE LIKE) EVEN IF MIKROELEKTRONIKA HAS BEENADVISED OF THE POSSIBILITY OF SUCH DAMAGES ARISING FROM ANYDEFECT OR ERROR IN THIS MANUAL OR PRODUCT.

SPECIFICATION AND INFORMATION CONTAINED IN THIS MANUAL ARE FUR-NISHED FOR INTERNATIONAL USE ONLY, AND ARE SUBJECT TO CHANGE ATANY TIME WITHOUT NOTICE , AND SHOULD BE CONSTRUED AS A COMMIT-MENT BY MIKROELEKTRONIKA

MikroElektronika assumes no responsibility or liability for any errors or inaccuraciesthat may appear in this manual, including the product and software described in it.

Product and corporate names appearing in this manual may or may not be regis-tered trademarks or copyrights of their respective companies, and are used only foridentification or explanation and to the owners benefit, without intent to infringe.

First editionJuly 2006

Page 3: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 3page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

CO

NT

EN

TS

CONNECTING THE SYSTEM page 4

INTRODUCTION page 5

Power Supply and the Reset Circuit page 11On-board USB programmer page 12

Jumpers page 7Switches and their functions page 6

MCU card page 8

LEDs page 13Push Buttons page 15Graphic LCD page 18

RS-232 Communication page 23

CONTENTS

DESCRIPTION OF THE DEVELOPMENT SYSTEM page 6

DS1820 Digital Thermometer page 35A-D Converter input page 32

Compact Flash page 37

D-A Converter output page 31

Direct port access page 41

CAN page 29RS-485 Communication page 27

Real Time Clock (RTC) page 36

PS/2 Keyboard Connector page 26

MMC/SD page 39

LCD 2x16 in 4-bit mode page 20LCD 2x16 in 8-bit mode page 21

Page 4: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

4page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

CO

NN

EC

TIN

G TT

HE

SSY

ST

EM

The development system box contains a development system, CD, USB cable andserial cable.

The first thing to do is to take the system out of a box. Unpack the USB cable andconnect it to the PC. Please use USB ports from the back of the PC, with direct con-tact to the motherboard.

Connect the USB cable to the dsPICPRO2 board.

The PC will start the procedure for installing the USB driver for the on-board USB2.0 programmer. Follow the procedure from the document ‘ Installing Driver forUSB programmer’ and install the USB driver.

Copy dsPICFLASH.exe file to the folder of your choice. You can find this file inthe dsPICFLASH folder on the CD.

Run and use dsPICFLASH.exe as explained in the document ‘dsPICflash program-mer’.

After these 5 steps, your dsPICPRO2 is installed and ready for use. You should tryto read a program from the chip or to load an example.

Loading an example:

1) Install one of our compilers mikroC for dsPIC, mikroPascal for dsPIC ormikroBasic for dsPIC.2) Open the compiler window and from the Project menu choose Open Project. Inthe compiler’s Examples folder find the dsPIC30F6014 subfolder and open someproject file .3) Build an example (Ctrl+F9) and write .hex file to MCU (F11)

CONNECTING THE SYSTEM

Step no.1

Step no.2

Step no.3

Step no.4

Step no.5

Page 5: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 5page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

INT

RO

DU

CT

IONThe dsPICPRO2 development system is a full-featured development board for

Microchip dsPIC microcontrollers. It has been designed to allow students and engi-neers to easily exercise and explore the capabilities of dsPIC microcontrollers. Itallows dsPIC microcontrollers to be interfaced with external circuits and a broadrange of peripheral devices, allowing the user to concentrate on software develop-ment.

Figure 1 illustrates the development board. On a silkscreen, there are identificationmarks beside each component. These marks describe connections to the microcon-troller, operation modes, and provide some useful notes. The need for additionalschematics is minimized as all the information is printed on the board.

INTRODUCTION

Figure 1. dsPICPRO2 development board

Page 6: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

6page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

SW

ITC

HE

S SWITCHES

The dsPICPRO2 development board features many peripherial devices. In order toenable these devices before programming, you need to check if appropriate jumpersor switches have been properly set.

Switches are devices that have two positions - ON and OFF, which have a role toestablish or break a connection between two contacts.

The first switch, SW1, is used to enable LEDs connected to ports RA, RB_L,RB_H, RC/RF, RD_L, RD_H, RF and RG_L. For example, if switch RB_L is OFF,all RB lower LED’s will be turned off.

First switch on SW2 is used for port RG_H. The rest of the switch SW2, SW3 andSW4 are used to enable connections between various peripheral devices and micro-controller pins.

For example, SW2, SW3 and SW4, enable connection between the microcontrollerpins and temperature sensor, programmable gain amplifier (PGA), MMC/SD Card,Compact Flash Card, real time clock (RTC), Digital-to-Analogue Converter (DAC),CAN, CAN-SPI, RS-485 communication etc.

Switch is ON

Switch is OFF

1 ON

43

25

87

6

Figure 2.Group of 8 switches Switches 1-6 are ON, and

other switches are OFF

Page 7: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 7page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

JUM

PE

RS

Jumpers, like switches, can break or establish a connection between two points.Beneath the plastic cover of the jumper is a metal contact, which makes a connec-tion when the jumper is placed between two disconnected pins.

Jumpers are used as a selector between two possible connections using a three pinconnector. As illustrated in Fig. 3, middle connector can be connected to the left orright pin, depending on the jumper’s position.

Left lineis selected

All lines aredisconnected

Right lineis selected

Figure 3.

Jumper as amultiplexer

JUMPERS

Page 8: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

8page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

MC

U CC

AR

D

The dsPICPRO2 development board have a 80-pin MCU Card as shown on the fol-lowing picture. The 64-pin MCUs on the 80-pin MCU Cards are supported by thedsPICPRO2 development board too.

MCU CARD

Figure 4. MCU Card

Page 9: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 9page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

When you are placing MCU Card on the dsPICPRO2 MCU socket you must fol-low these steps:

MC

U CC

AR

D

If there is already MCU Cardplaced on dsPICPRO2, you mustremove it by slowly pulling it up.

Label on the MCU Card mustbe at the upper-left corner as itis drawn on the dsPICPRO2board.

When MCU Card is on the place,push it down by applying thepressure on all edges at the sametime.

Step no.1

Step no.2

Step no.3

Page 10: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

10page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

MC

U CC

AR

D

RB3

RB3RB3

vccvcc

1 ON

87

65

43

2

LEDs RB_L

SW1

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

PortB low

vcc

vcc

X110MHz

C122pF

C222pF

The microcontroller’s pins are routed to various peripherials as illustrated in Fig.5. All ports havedirect connections to Direct Port Access connectors. Such connectors are typically used for con-necting external peripherials to the board, or for providing useful points for connecting digitallogic probes.

All ports are connected to LEDs, push-button switches and pull-up/down resistors , which allowfor easy digital pin state setting, monitoring and testing.

Some of the pins are connected to other peripherials such as the DS1820 temperature sensor, RS-232 communication, LCD, etc.

Figure 5. System connection

Page 11: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 11page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

PO

WE

R SS

UP

PLY

As a power supply source, users can select either a regulated supply from USBcable (default) or an external non-regulated power supply.

In case of the USB power supply, the system sholud be connected to a PC using theUSB programming cable and jumper J10 should be set in the right position.

In case of an external power supply, the dsPICPRO2 board produces +5V using anLM7805 voltage regulator. The external power supply can be AC or DC, with avoltage between 8V and 16 V, and jumper J10 should be set in the left position. InFig. 6 you can see the USB (left) and power supply (right) connectors.

GND

Vin Vout

VCC

CON2 8-16V (AC/DC)

+

E1470uF

C11100nF

E210uF

C3100nF

1

2

VCC

D-

D+

GND

5V 5V

USB

FP1

1

2

3

External Power Supply

USB Power Supply

EXT

EXT

USB

USB

REG17805

POWER SUPPLY

J10 in the EXT position: system will takepower from the external AC/DC poweradapter.

J10 in the USB position: system will takepower from the USB cable.

USB and power supply connectorsFigure 6.

Figure 7. J10 is set to USB power supply

J10

USBconnector

Page 12: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

12page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

ON

-BBO

AR

D UU

SB

PPR

OG

RA

MM

ER

ON-BOARD USB PROGRAMMER

There is no need for the use of externalequipment during programming, as thedsPICPRO2 development system has itsown on-board USB programmer.

All you need to do is connect the systemto a PC using the USB cable. Then, loadyour program into the microcontrollervia the dsPICFLASH2 programmingsoftware, which is supplied with theboard.

VCC

USB LINK

27

U2

SWITCH

TO PERIPHERALSON DEVELOPMENT BOARD

PIC

flas

hO

n-B

oa

rdU

SB

pro

gra

mm

er

VCCD-

D+

GND

USB

CN21

2

3

4

USBCON

VCC

10

KR

eset

VCC

10

0n

VCC

27

1K

VCC

POWER

1K

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

RB0

RB1

X110MHz

C122pF

C222pF

Figure 8. On-Board USB programmer

Figure 9. Switch scheme

Page 13: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 13page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

LED

S

Light Emitting Diodes (LEDs) are the most commonly used components, usually fordisplaying pin’s digital state. The dsPICPRO2 have 67 LEDs that are connected tothe microcontroller’s ports RA, RB low, RB high, RC/F, RD low, RD high, RF, RG low and RG high.

LIGHT EMITTING DIODES

Figure 10.

Light Emitting Diodes

Each group of eight LEDs can be enabled or disabled using switch SW1 and SW2as shown in Fig. 10.

Fig. 11. on next page illustrates the connection of a LEDs to lower PortB of themicrocontroller. A resistor is used in series with the LED to limit the LED's current.In this case the resistor's value is 1K.

Page 14: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

14page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

LED

S

All LEDs from one port are connected to a common point through these resistors,which can then be connected or disconnected to ground by the corresponding switchon SW1. The LEDs are enabled when connected to a ground and will display thestate of the corresponding microcontroller pin; otherwise the LEDs will always beoff, no matter what the pin state is, because no current can flow through it.

RN11

R-SIL 8/9

1

2

3

4

5

6

7

89

RB7

RB6

RB5

RB4

RB3

RB2

RB1

RB0

1 ON

43

25

87

6 LEDs RD_High

LEDs RD_Low

LEDs RB_High

LEDs RB_Low

LEDs RA

VCC

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A10

AV

dd

AV

ss

RB

8

RB

9

RB

11

Vss

Vdd

RB

12

RB

13

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vdd

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B10

RA14

LEDs RF

LEDs RC/F

LEDs RG_Low

SW1

X110MHz

C122pF

C222pF

Figure 11. LED schematic

Page 15: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 15page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

PU

SH

BBU

TT

ON

S PUSH BUTTONS

Figure 12.

The dsPICPRO2 has 67 push buttons, whichcan be used to provide digital inputs to themicrocontroller's ports. There is also onepush button that acts as a RESET (Figure12).

Reset button

Figure 13.Push buttons

Jumper J11 (zoomed on the figure13) determines whether a buttonpress will bring logical zero or log-ical one to the appropriate pin.

When the button is not pressed the pin state is determined by the pull-up or pull-down port jumpers.

Page 16: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

16page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

PU

SH

BBU

TT

ON

S

RA6 RF8

RF0

RB0

RA7 RC1

RF1

RB1

RA9 RC2

RF2

RB2

RA10 RC3

RF3

RB3

RA12 RC4

RF4

RB4

RA13 RC13

RF5

RB5

RG0

RB8

RG1

RB9

RG2

RB10

RG3

RB11

RG6

RB12

RG7

RB13

RG8

RB14

RG9

RB15

RD0

RD1

RD2

RD3

RD4

RG12

RD5

RG13

RD6

RG14

RD7

RG15

RD8

RD9

RD10

RD11

RD12

RD13

RD14

RD15

PORTA PORTC/F

PORTF

PORTB low

PORTG low

PORTB high PORTD low

PORTG high

PORTD high

VCC

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A10

AV

dd

AV

ss

RB

8

RB

9

RB

11

Vss

Vdd

RB

12

RB

13

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vdd

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B10

RA14

RA14 RC14

RF6

RB6

RA15

RF7

RB7

+5V

+5V and 0Vare disconnected

J11

VCC

0V

X110MHz

C122pF

C222pF

Figure 14. Buttons, J11 and ports schematic

In Fig.14 is shown buttons, J11 and ports connection. In this example, the buttonsare connected to +5V so the pull-down port resistors would be required.

Page 17: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 17page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

PU

SH

BBU

TT

ON

S

In the case of Fig. 16 the pull-down resistor pulls the micro-controller port pin to groundwhen the button is not pressed.A button press causes the portpin to be connected to +5V(J11 is in the upper position).Thus, only when the button ispressed will the microcon-troller sense a logical one; oth-erwise the pin state willalways be logical zero.

In the case of Fig. 15 the pull-up resistor pulls the microcon-troller port pin to +5V whenthe button is not pressed. Abutton press causes the portpin to be connected to ground(J11 is in the lower position).Thus, only when the button ispressed will the microcon-troller sense a logical zero;otherwise the pin state willalways be logical one.

RB3

PortB LowPull-Up

0V While Pressed

vcc

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

vcc

vcc

X110MHz

C122pF

C222pF

RB3

PortB LowPull-Down

5V While Pressed

vcc

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

vcc

vcc

X110MHz

C122pF

C222pF

Figure 15.

Figure 16.

Single button with pull-up resistor

Single button with pull-down resistor

J11

J11

Page 18: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

18page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

GR

AP

HIC

LLC

D 11

28X

64 GRAPHIC LCD

The Graphic LCD (GLCD) allows advanced visual messages to be displayed.While a character LCD can display only alphanumeric characters, a GLCD can beused to display messages in the form of drawings and bitmaps. The most common-ly used graphic LCD has a screen resolution of 128x64 pixels. When you add orremove GLCD be sure that the power supply is off.

GLCD

Figure 17.

Before a GLCD is connected, the user needs toset jumper J19 (Fig. 18) to the upper positionlabeled as GRAPH. The GLCD's contrast canbe adjusted using potentiometer P2.

Note : When used with GLCD the P2 poten-tiometer should start from the Left Position.

Figure 18. Potentimeter P2 and Jumper J19

Page 19: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 19page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

GR

AP

HIC

LLC

D 11

28X

64

Vee

VCC

Vo

ContrastAdjustment

GRAPH.

CHAR.

VCC

VCC

VCC

LCD8 contrastselected

GLCD and LCD8contrast deselected

GLCD contrastselected

D5

D4

D3

D2

D1

D0

ER

/WRS

LE

D-

Vo

LE

D+

VC

C

Vee

GN

D

RS

T

CS

2

D7

CS

1

D6

1 20

mikroElektronika

dsPICPRO2

Development system R/W

CS2

RS

RS

TE

D0

D1

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A10

AV

dd

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B12

RB

13

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vdd

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

D2

D3

D4

D6

D5

D7

CS1

X110MHz

C122pF

C222pF

Figure 19. GLCD schematic

In order to enableGLCD, the jumperJ19 should be setto the position la-beled as GRAPH.

J19

P25K

For using Back-Light with GLCD orLCD 2x16 you must turn the LCD-BCKswitch on.

Figure 20. LCD-BCK switch

Page 20: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

20page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

LCD

22X

16 II

N 44

-BBIT

MMO

DE The standard character LCD is probably the most widely used data visualization

component. Normally, it can display two lines of 16 alphanumeric characters, eachmade up of 5x7 pixels. The character LCD communicates with the microcontrollervia a 4-bit or 8-bit data bus, each requiring the use of a different connector on thedsPICPRO2. For 4-bit data bus use, the LCD should be placed in the upper left ofthe board above the LEDs. The connection to the microcontroller is shown in Fig.22 where there are only four data lines. It is important that the LCD is only addedor removed from the dsPICPRO2 board when the power is off.

LCD 2X16 IN 4-BIT MODE

D7

D6

D5

D4

D3

D2

D1

D0E

R/WR

S

VE

E

VC

C

GN

D

5K

ContrastAdjustment

1 14

VCCVCC

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

X110MHz

C122pF

C222pF

Figure 21.

Figure 22.

LCD 2x16 in 4-bit mode

LCD 2x16 in 4-bitmode schematic

P3

Page 21: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 21page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

LCD

22X

16 II

N 88

-BBIT

MO

DE

LCD 2X16 IN 8-BIT MODE

When using a character LCD, it should be placed on the GLCD connector. SinceGLCD connector has 20 pins and the character LCD has only 14 pins, special atten-tion is required when placing the LCD. Otherwise the LCD can be permanentlydamaged. The LCD must be placed in the marked position with two free pins to theleft and four free pins to the right. When you add or remove LCD be sure that thepower supply is off.

Figure 23.

LCD 2x16

Before adding the LCD, set jumper J19to the lower position, labeled asCHAR. The LCD's contrast can beadjusted using potentiometer P2.

Note : When used with LCD 2x16 theP2 potentiometer should start from theRight Position.

Figure 24. Potentimeter P2 and Jumper J19

Page 22: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

22page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

Vee

VCC

Vo

ContrastAdjustment

GRAPH.

CHAR.

VCC

LCD8 contrastselected

GLCD and LCD8contrast deselected

GLCD contrastselected

D7

D6

D5

D4

D3

D2

D1

D0

ER

/WRS

VE

EV

CC

GN

D

1 14

LCD8 Display

mikroElektronika

VCC

R/WRS

E

D0

D1

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vdd

RB

12

RB

13

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vdd

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B10

RA14

D2

D3

D4

D6

D5

D7

X110MHz

C122pF

C222pF

Figure 25.LCD 8-bit mode schematic

Leave two pinsto the left sidefree

Leave fourpins to theright side free

In order to enable LCD,jumper J19 should be set tothe position labeled asCHAR.

Figure 26. LCD shown from back

J19

P25K

LCD

22X

16

IIN

88-BB

IT MM

OD

E

Page 23: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 23page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

RS

-2232

CCO

MM

UN

ICA

TIO

N

RS-232 communication enables point-to-point data transfer. It is commonly used indata acquisition applications, for the transfer of data between the microcontrollerand a PC. Since the voltage levels of a microcontroller and PC are not directly com-patible with each other, a level transition buffer such as the MAX232 must be used.

RS-232 COMMUNICATION

Figure 27.

RS232 connectors

dsPICPRO2 development board have two RS-232 communication devices, RS232-A and RS232-B. In order to provide a more flexible system, the microcontroller isconnected to the MAX232 through jumpers. First two jumpers J12 and J13 are usedto connect Rx and Tx lines from microcontroller to RS232-A port, and second twojumpers J14 and J15 for connecting Rx and Tx lines to RS232-B.

Page 24: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

24page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

RS

-2232

CCO

MM

UN

ICA

TIO

N

Connection between microcontroller and a PC: RS232-A

MA

X2

32

C1+

VS+

C1-

C2+

C2-

VS-

T2OUT

R2IN

VCC

GND

T1OUT

R1IN

R1OUT

T1IN

T2IN

R2OUT

1

2

3

4

5

6

7

8

16

15

14

13

12

11

10

9

U4

RS-232CON

CONNECTMCU TO PC

Receivedata (Rx)

SendData (Tx)

1 5

6 9

1 2 3 4 56 7 8 9

CN3SUB-D 9p

CONNECTPC TO MCU

1 5

6

Rx

Tx

9

SERIALCABLE

PC

RS232-ACON VCC

RS232-A

E910uF

E1010uF

E1110uF

E1210uF

VCC

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0RA14

J12

J12

J12

RS232-A isdisconnected

RS232-A isconnected

J13

J13

J13X1

10MHz

C122pF

C222pF

Figure 28.

Page 25: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

MA

X232

C1+

VS+

C1-

C2+

C2-

VS-

T2OUT

R2IN

VCC

GND

T1OUT

R1IN

R1OUT

T1IN

T2IN

R2OUT

1

2

3

4

5

6

7

8

16

15

14

13

12

11

10

9

U4

RS-232CON

CONNECTMCU TO PC

Receivedata (Rx)

SendData (Tx)

1 5

6 9

1 2 3 4 56 7 8 9

CN4SUB-D 9p

CONNECTPC TO MCU

1 5

6

Rx

Tx

9

SERIALCABLE

PC

RS232-BCON VCC

RS232-A

E910uF

E1010uF

E1110uF

E1210uF

VCC

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

J14

J15

J14 J14

RS232-B isdisconnected

RS232-B isconnected

J15 J15X1

10MHz

C122pF

C222pF

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 25page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

RS

-2232

CCO

MM

UN

ICA

TIO

N

Connection between microcontroller and a PC: RS232-B

Figure 29.

Page 26: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

26page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

MikroElektronikaDevelopment

tools

dsPICPRO2 2.0

USB

PS

\2 ((

KE

YB

OA

RD

) CC

ON

NE

CT

OR

Keyboards consist of a large matrix of keys, all of which are monitored by an on-boardprocessor (called the "keyboard encoder".) The specific processor varies from keyboard-to-keyboard but they all basically do the same thing: Monitor which key(s) are beingpressed/released and send the appropriate data to the MCU. This processor takes care ofall the debouncing and buffers any data in its 16-byte buffer, if needed. All communica-tion between the host and the keyboard uses an IBM protocol.

PS/2 (KEYBOARD) CONNECTOR

Figure 30.PS/2 connector

DATANCGNDVCCCLKNC

PS2CONNECTOR

+5V

DATANC

NC CLK

VCC

VCC

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

X110MHz

C122pF

C222pF

The pins to which aPS/2 keyboard isattached should beconnected to pull-upresistors. AlthoughPS/2 is a two-waycommunication bus,this library does notprovide dsPIC-to-key-board communication;e.g. the Caps LockLED will not turn on ifyou press the CapsLock key.

Please Note!!!

Figure 32.PS/2 schematicFigure 31. PS/2 keyboard and dsPICPRO2 layout

Page 27: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 27page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

RS

-4485

CCO

MM

UN

ICA

TIO

N

RS-485 communication enables point-to-point and point-to-multipoint data trans-fer. It is commonly used for data transfer between several microcontrollers. LTC485interface tranciever is used for transforming signal from microcontroller’s Rx andTx lines to differential signal on A and B output lines.

RS-485 COMMUNICATION

Figure 33. RS-485 connector

dsPICPRO2 development board have one RS-485 communication device. In orderto provide a more flexible system, the microcontroller is connected to the ADM485through three switches on SW4. Switches 1, 2 and 3 are used to connect Rt, Tx andRx lines from microcontroller to RS-485 port.

RS-485 connector

Figure 34.LTC485 and RS-485 connector

ADM485 chip

Page 28: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

28page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

RS

-4485

CCO

MM

UN

ICA

TIO

N

RS-485 schematic and connection to other RS-485 modules

VCC

LTC485

B

DI

VCC

RE

DE A

GND

ROB-485

A-485

2nd RS-485

MODULE

3rd RS-485

MODULE

CN5

12

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A10

AV

dd

AV

ss

RB

8

RB

9

RB

11

Vss

Vdd

RB

12

RB

13

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vdd

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B10

RA14

VCC

1 ON

87

65

43

2

SW4

VCC

R1610K

X110MHz

C122pF

C222pF

Figure 35.

Figure 36.RS-485 switches on SW4

Page 29: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 29page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

CA

N

CAN (Controller Area Network) is a serial network that was originally designed forthe automotive industry, but has also become a popular bus in industrial automationas well as other applications. CAN is the network established among microcon-trollers. It is a two-wire, half-duplex, high-speed network system. Half-duplexmeans that microcontroller can send and receive data, but only one way at a time.

CAN

Figure 37. CAN connectors

dsPICPRO2 development board have two CAN communication devices. In order toprovide a more flexible system, the microcontroller is connected to the MCP2551through the switches on SW3. Swiches 3 and 4 are used to connect Tx and Rx linesfrom microcontroller (pins RF1 and RF0) to CAN1. Swiches 5 and 6 are used toconnect Tx and Rx lines from microcontroller (pins RG1 and RG0) to CAN2.

Figure 38.CAN connectors and jumpers

MCP2551

CAN1connector

CAN2connector

Page 30: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

30page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

CA

N

VCC

VCC

U8

PCA82C250

CANH

RXD

Rs

GND

VCC CANL

Vref

TXD

U7

CAN2-H

CAN2-L

2nd CAN2

MODULE

2nd CAN1

MODULE

CN7

12

R1810

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A10

AV

dd

AV

ss

RB

8

RB

9

RB

11

Vss

Vdd

RB

12

RB

13

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vdd

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B10

RA14

VCCPCA82C250

CANH

RXD

Rs

GND

VCC CANL

Vref

TXDCAN1-H

CAN1-L

CN6

12

R1710

RF1 Tx

RG1 TxRF0 Rx

RG0 Rx

1 ON

87

65

43

2

SW4

X110MHz

C122pF

C222pF

Figure 39. CAN schematic

With two CAN com-munication devicesyou can create twoseparated networks.

Page 31: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 31page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

DsPICPRO2 development board have DAC(Digital-to-Analogue Converter) that can sim-ulate analogue output from 0-5V or from0-4.096V depending of voltage reference.DAC-LD# and DAC-CS# pins must be con-nected from microcontroller to DAC, which isestablished by putting switches 7 and 8 onSW3 in ON position. Also reference must bechosen by placing jumper J16 in desired posi-tion (reference voltage 5V or 4.096V). DACuse SPI communication so switches 4 and 6 onSW4 must be enabled.

D-AA

CCO

NV

ER

TE

R OO

UT

PU

T

D-A CONVERTER OUTPUT

Figure 40.D-A Converter

CS

SCK

SDI

VOUT

GND

VREF

LDAC

VCC

U91

2

3

4

8

7

6

5

Aref

GND DACCONNECTOR

SCK

MOSI

DAC-LD

MCP 4921

E1810uF

VOUTVIN

GND

R27100

1

2

3

REF1MCP1541

Vcc line isconnected

All lines aredisconnected

Vref line isconnected

CN8

12

1 ON

87

65

43

21 O

N

87

65

43

2

VCC

VCC

VCC

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

VCC

SW3

SW4

DAC-CS

X110MHz

C122pF

C222pF

Figure 41. D-A Converter J16

Page 32: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

32page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

dsPICPRO2 development board have eight analogue signal inputs for working withADC. Potentiometer P1 gives analogue signal to microcontroller’s AN8 or AN10analogue inputs. If the J20 jumper is in the upper position then the P1 is connectedto AN8 input. AN8 input can be connected to microcontoller’s RB8 pin directly (J17upper position) or via Programmabile Gain Amplifier PGA1(J17 lower position).

If the J20 jumper is in the lower position then the P1 is connected to AN10 analogueinput. AN10 is connected directly to microcontoller’s RB10 pin. Potentiometer ana-logue output is in the range of 0V to 5V as drawn on the board.

A-DD

CCO

NV

ER

TE

R II

NP

UT

A-D CONVERTER INPUT

Figure 42.

Jumpers J17 and J18,PGA1 and PGA2

Connectors for analogue input are placed on the upper-right side of development board. Inputs AN10 toAN15 are connected directly to microcontroller RB10to RB15 pins. Inputs AN8 and AN9 are connected tomicrocontroller RB8 and RB9 pins through jumpersJ17 and J18, respectively. If jumpers J17 and J18 areplaced on the upper position, then AN8 and AN9 areconnected directly to pins RB8 and RB9, but if placedto the lower position than AN8 and AN9 are connect-ed to PGA (Programmabile Gain Amplifier).

Figure 43.

Potentiometer P1

Jumpers J17 and J18 forconnecting AN8 and AN9directly to microcontrolleror through PGA1 andPGA2

J17

J18

Page 33: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 33page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

Both PGA integrated circuits (MCP6S22) are connected to microcontroller throughSPI communication and have CS signal (Chip Select). In order to work properly, SPIcommunication must be enabled by setting switches 4 and 6 on SW4 in ON posi-tion (needs only SCK and MOSI because PGA only receives data from microcon-troller - data about amount of gain that will be applied to input signal). Also, PGA-CS1 and PGA-CS2 must be enabled (switches 1 and 2 on SW3). In order to meas-ure an analogue signal without interference, the pull-up/down jumper should beremoved from PORTB high. In this way high pins of PORTB remain floating.

A-DD

CCO

NV

ER

TE

R II

NP

UT

Figure 44. Analogue input connectors

Complete A-D Converter input schematic, along with PGA, is shown on the nextpage.

AN8AN9

AN10AN11

AN12AN13

AN14AN15

+5VOUTPUT

GND

Page 34: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

34page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

A-DD

CCO

NV

ER

TE

R II

NP

UT

vcc

P110K

J20

0 - 5V

PortB high

vcc

pull-up/down

vcc

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

U10

SCK

GND

VCC

CH0

CH1 SDI

CS

Vout

CN9

1 2

CN10

1 2

CN11

1 2

CN12

1 2

CN13

1 2

vcc vcc

R29100K

U11

SCK

GND

VCC

CH0

CH1 SDI

CS

Vout

vcc vcc

R30100K

1 ON

87

65

43

21 O

N

87

65

43

2

SW3

SW4

PGA2-CS

MOSI

SCK

PGA1-CS

RB10

RB8

RB9

vcc

AN8 and An9connecteddirectly to

RB8 and RB9

AN8 and An9connected

throughPGA1 and PGA2 X1

10MHz

C122pF

C222pF

Figure 45. A-D Converter input schematic

PORTB high pull-up/down jumpershould be removed.

J17

J17

J18

Page 35: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 35page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

DIG

ITA

L TT

HE

RM

OM

ET

ER

DDS

1820

The DS1820 (alternatively DS18B20)digital thermometer is well suited toenvironmental temperature measure-ment, having a temperature range of -55C to 125C and an accuracy of +/-0.5C. It must be placed correctly in the3-pin socket provided on thedsPICPRO2, with its rounded side tothe bottom, as marked on the board.Otherwise the DS1820 could be perma-nently damaged. In order to work,DS1820 must be connected to micro-controller’s RF6 pin, by enablingswitch 3 on SW2.

DS1820

VCC

125 C

-50 C

VCC

GND

R2310K

VCC

DQ

VCC

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

1 ON

87

65

43

2

SW2X1

10MHz

C122pF C2

22pF

There is a mark inthe form of half-circlefor proper orientationof DS1820 sensor.

DS1820 DIGITAL THERMOMETER

Figure 46.

Figure 47.

DS1820

DS1820 Schematic

Page 36: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

36page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

RE

AL

TTIM

E CC

LOC

K ((

RT

C)

In many hardware projects there are needs forreal time clock or delay source. Such devicesas clocks, timers, etc. are impossible to prod-uct without knowledge of exact time. RealTime Clock on dsPICPRO2 developmentboard is PCF8583P, and it use I2C serial com-munication to exchange informations withmicrocontroller. Also, it has one interrupt out-put. In order to work properly, both interruptand I2C communication lines must be con-nected to microcontroller by placing switch 6on SW2, and switches 7 and 8 on SW4 in ONposition.

REAL TIME CLOCK (RTC)

OSCI

OSCO

A0

GND

VDD

INT

SCL

SDA

PCF8583P

10

K

10

K

10

K

32,768 KHz

5-25 pF

BA

T43

BAT43

56

100 nF

3V

/230m

A

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A10

AV

dd

AV

ss

RB

8

RB

9

RB

11

Vss

Vdd

RB

12

RB

13

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vdd

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B10

RA14

VCC

1 ON

87

65

43

21 O

N

87

65

43

2

VCC

VCC

SW4

SW2

RA12

RG3

RG2

X110MHz

C122pF

C222pF

Figure 48. Real Time Clock

Figure 49. Real Time Clock schematic

Page 37: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 37page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

Compact Flash is a small removable mass storage device. The application ofCompact Flash include digital cameras, digital music players, desktop computers,handheld PCs, personal communicators, Palm PCs, Auto PCs etc. so you can easilyexchange data from them and dsPICPRO2 development board. Compact Flash havenon-volatile storage solution that does not require a battery to retain data indefinite-ly.

CO

MP

AC

T FF

LAS

H COMPACT FLASH

Figure 50.

Compact Flash

In order to detect when Compact Flash card is inserted, CFCD line is pulled highand it must be connected to microcontroller’s pin RG15 by placing switch 8 on SW2in ON position. When Compact Flash card is inserted it drops CFCD level low andit can be detected by microcontroller. Compact Flash schematic is shown on Figure51.

Page 38: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

38page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

CO

MP

AC

T FF

LAS

H

RG14

RG12

RD11

RG15

RD3

RD4

RD5

RD6

RD7

RG13

RD2

RD10

RD9

RD8

RD1

RD0 Compact Flash

Card

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

25

21

22

23

24

17

18

19

20

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

50

46

47

48

49

42

43

44

45

R2510K

VCC

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B1

0

RA14

VCC

VCC

1 ON

87

65

43

2

CFCDRG15

SW2

X110MHz

Figure 51.

Compact Flash schematic

Page 39: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 39page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

To enableMMC card you must turn on switch 7 on SW2. Also turn on switches 4, 5 and 6 onSW4 to connect microcontrollers’s SPI comunnication lines MOSI, MISO and SCKwith MMC. Working voltage of dsPICPRO2 is 5V DC, while working voltage ofMMC card is 3.3V DC. Because of that, there is a voltage regulator on-board withMMC card (MC33269DT-3.3). Data lines from microcontroller to MMC card mustbe also adjusted to 3.3V. It is done with resister voltage dividers as shown on Figure53.

MM

C //

SSD

((M

ULT

IME

DIA

CCA

RD

)

MMC card is used as storage media for a portable devices, in a form that can easi-ly be removed for access by a PC. For example, a digital camera would use anMMC card for storing image files. With an MMC reader (typically small box thatconnects via USB or some other serial connection) you can easily transfer data fromMMC card to your computer. Microcontroller on dsPICPRO2 communicates withMulti Media Card via SPI communication.

MMC / SD (MULTIMEDIA CARD)

Figure 52.

MMC slot on-board

Modern computers, both lap-tops and desktops, often haveSD slots, which can readMMC cards.

Page 40: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

40page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

MM

C //

SSD

((M

ULT

IME

DIA

) CC

AR

D

MOSI

MOSI

SCK

SCK

MMC-CS#

MISO

MISO

R183K3

R203K3

R172K2

R192K2

R212K2

R223K3

MMC-CS#

VCC3

7

6

5

43

2

1

CN22

MMC/SDCARDDout

GND

SCK

+3.3VGND

Din

CS

11

ON

ON

88

77

66

55

44

33

22

SW2

SW4

C12100nF

VCC3

C13100nF

VCC

VOUT

VINGND

VCC

3

1 2

REG2

VCC3

E1610uF

VCC

RG6

RG8

RG7

RG9

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A1

0A

Vd

d

AV

ss

RB

8

RB

9

RB

11

Vss

Vd

dR

B1

2R

B1

3

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vd

d

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXXR

F0

RB

10

RA14

MC33269DT-3.3

X110MHz

C122pF

C222pF

Figure 53. MMC schematic

Page 41: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 41page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

DIR

EC

T PP

OR

T AA

CC

ES

S

All microcontroller input/output pins can be accessed via connectors placed alongthe right-hand side of the board. For each of the ports PORTA, PORTB low,PORTB high, PORTC, PORTD low, PORTD high, PORTF, PORTG low andPORTG high there is one 10-pin connector providing Vdd, GND and up to eightport pins.

These connectors can be used for system expansion with external boards such asSerial GLCD, IrDA, Ethernet, Toshiba GLCD etc. Ensure that the on-board periph-erials are diconnected from microcontroller by setting the appropriate jumpers orswitches, while external peripherals are using the same pins. The connectors canalso be used for attaching logic probes or other test equipment.

DIRECT PORT ACCESS

Figure 54.Direct port access connectors

Page 42: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

42page

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D dsPICPRO2 2.0

USB

MikroElektronikaDevelopment

tools

RD4

RD6

RD0

RD2

RD5

RD7

RD1

RD3

HEADER 5x2

RD6

RD7

RD4

RD5

RD2

RD3

RD0

RD1

8

9

6

7

4

5

2

3

1

2

3

1

Pull-up line isconnected

All linesare disconnected

Pull-down lineis connected

VCC

VCC

VCC

RG15RC1RC2RC3RC4

RG6RG7

RG8MCLR

RG9

VssVddRA12RA13

RB5

RB4RB3RB2RB1RB0

RC14RC13RD0

RD11RD10

RD9RD8

RA15

Vss

OSC2OSC1/CLKI

VddRG2

RG3

RF6RF7RF8RF2RF3

RB

6R

B7

RA

9R

A10

AV

dd

AV

ss

RB

8

RB

9

RB

11

Vss

Vdd

RB

12

RB

13

RB

14

RB

15

RD

14

RD

15

RF

4R

F5

RG

13

RG

12

RG

14

RA

7R

A6

RG

0R

G1

RF

1

Vdd

Vss

RD

7R

D6

RD

5

RD

4

RD

13

RD

12

RD

3R

D2

RD

1

dsPIC30FXXXX

RF

0R

B10

RA14

X110MHz

C122pF

C222pF

DIR

EC

T PP

OR

T AA

CC

ES

S

Figure 55.

Lower Port D connection

CN5

J5

RN5

RN5

Page 43: dsPIC PRO 2 Manual - Mikroelektronikadownload.mikroe.com/.../easy/dspicpro-v2/dspicpro2-manual-v100.pdf · dsPICPRO2 2.0 USB No part of this manual, including the product and software

dsPICPRO2 User’s Manual

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 43page

MikroElektronikaDevelopment tools

dsPICPRO2 2.0

USB

If you are experiencing problems with anyof our products or you just want additionalinformation, please let us know. We arecommitted to meet every your need.

Technical Support : [email protected]

If you have any other question, commentor a business proposal, please contact us:

E-mail: [email protected]: www.mikroe.com