background image

dsPICPRO User

s Manual

18

page

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

dsPICPRO

2.0

USB

MikroElektronika

Development 

tools

G

R

A

P

H

IC

 LL

C

D

 11

2

8

X

6

4

  

When GLCD is on place you can
adjust contrast through the hole
from other side of development
board.

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 be
used to display messages in the form of drawings and bitmaps. The most common-
ly used graphic LCD has a screen resolution of 128x64 pixels. Before a GLCD is
connected, the user needs to set jumper J23 (Fig. 18) to the right-hand position. The
GLCD’s contrast can be adjusted using potentiometer P1. Jumper J23 and poten-
tiometer P3 are placed on the area of the GLCD. When GLCD is on place you can
adjust contrast through the hole from other side of development board.

GLCD

Figure 18.

Содержание dsPICPRO

Страница 1: ...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 CAN etc MikroElektron...

Страница 2: ...HANTABILITY OR FITNESS FOR A PARTICULAR PUROSE IN NO EVENT SHALL MIKROELEKTRONIKA ITS DIRECTORS OFFICERS EMPLOYEES OR DISTRIBUTORS BE LIABLE FOR ANY INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGE...

Страница 3: ...Reset Circuit page 11 On board USB programmer page 12 Jumpers page 7 Switches and their functions page 6 MCU card page 8 LEDs page 13 Push Buttons page 15 Graphic LCD page 18 LCD 2x16 page 20 RS 232...

Страница 4: ...t to the motherboard Connect the USB cable to the dsPICPRO board The PC will start the procedure for installing the USB driver for the on board USB 2 0 programmer Follow the procedure from the documen...

Страница 5: ...xercise and explore the capabilities of dsPIC microcontrollers It allows dsPIC microcontrollers to be interfaced with external circuits and a broad range of peripheral devices allowing the user to con...

Страница 6: ...N and OFF which have a role to establish or break a connection between two contacts The first switch SW1 is used to enable LEDs connected to ports RB_L RB_H RD_L RD_H RF and RG For example if switch R...

Страница 7: ...een 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 p...

Страница 8: ...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 dsPICPRO 2 0 USB MikroElektronika Development tools MCU C C ARD The dsPICPRO development board have a 80 pin MCU...

Страница 9: ...When you are placing MCU Card on the dsPICPRO MCU socket you must follow these steps MCU C C ARD If there is already MCU Card placed on dsPICPRO you must remove it by slowly pulling it up Label on the...

Страница 10: ...5 RD14 RD15 RF4 RF5 RG13 RG12 RG14 RA7 RA6 RG0 RG1 RF1 Vdd Vss RD7 RD6 RD5 RD4 RD13 RD12 RD3 RD2 RD1 dsPIC30FXXXX RF0 RB10 RA14 vcc The microcontroller s pins are routed to various peripherials as ill...

Страница 11: ...al power supply the dsPICPRO board produces 5V using an LM7805 voltage regulator The external power supply can be AC or DC with a voltage between 9V and 16 V and jumper J1 should be set in the lower p...

Страница 12: ...into the microcontroller via the dsPICFLASH2 programming software which is supplied with the board VCC USB LINK 27 U2 SWITCH TO PERIPHERALS ON DEVELOPMENT BOARD PICflash On Board USB programmer VCC D...

Страница 13: ...y for displaying pin s digital state The dsPICPRO have 48 LEDs that are connected to the microcontroller s ports RB low RB high RD low RD high RF and RG LIGHT EMITTING DIODES Figure 11 Light Emitting...

Страница 14: ...g microcontroller pin otherwise the LEDs will always be off no matter what the pin state is because no current can flow through it RN1 R SIL 8 9 1 2 3 4 5 6 7 8 9 RB7 RB6 RB5 RB4 RB3 RB2 RB1 RB0 1 ON...

Страница 15: ...o provide digital inputs to the microcontroller s ports There is also one push button that acts as a RESET Figure 13 Reset button Figure 14 Push buttons Jumper J10 zoomed on the figure 14 determines w...

Страница 16: ...RF3 RF4 RF5 RF6 RF7 PORTF RG0 RG1 RG2 RG3 RG12 RG13 RG14 RG15 PORTG VCC VCC RG15 RC1 RC2 RC3 RC4 RG6 RG7 RG8 MCLR RG9 Vss Vdd RA12 RA13 RB5 RB4 RB3 RB2 RB1 RB0 RC14 RC13 RD0 RD11 RD10 RD9 RD8 RA15 Vs...

Страница 17: ...the microcontroller sense a logical zero otherwise the pin state will always be logical one RB3 PortB Low pull up 0v while pressed vcc RG15 RC1 RC2 RC3 RC4 RG6 RG7 RG8 MCLR RG9 Vss Vdd RA12 RA13 RB5 R...

Страница 18: ...visual messages to be displayed While a character LCD can display only alphanumeric characters a GLCD can be used to display messages in the form of drawings and bitmaps The most common ly used graphi...

Страница 19: ...D Vo LED VCC Vee GND RST CS2 D7 CS1 D6 1 20 mikroElektronika dsPICPRO Development system RST R W CS2 RS D7 D6 D0 D1 RG15 RC1 RC2 RC3 RC4 RG6 RG7 RG8 MCLR RG9 Vss Vdd RA12 RA13 RB5 RB4 RB3 RB2 RB1 RB0...

Страница 20: ...en tion is required when placing the LCD Otherwise the LCD can be permanently damaged The LCD must be placed in the marked position with two free pins to the left and four free pins to the right When...

Страница 21: ...OSC2 OSC1 CLKI Vdd RG2 RG3 RF6 RF7 RF8 RF2 RF3 RB6 RB7 RA9 RA10 AVdd AVss RB8 RB9 RB11 Vss Vdd RB12 RB13 RB14 RB15 RD14 RD15 RF4 RF5 RG13 RG12 RG14 RA7 RA6 RG0 RG1 RF1 Vdd Vss RD7 RD6 RD5 RD4 RD13 RD...

Страница 22: ...ontroller and 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 Figu...

Страница 23: ...CU TO PC Receive data Rx Send Data Tx 1 5 6 9 1 2 3 4 5 6 7 8 9 CN3 SUB D 9p CONNECT PC TO MCU 1 5 6 Rx Tx 9 SERIAL CABLE PC RS232 A CON VCC RS232 A E9 10uF E10 10uF E11 10uF E12 10uF VCC RG15 RC1 RC2...

Страница 24: ...RS232 B CON MAX232 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 U5 E13 10uF E14 10uF E15 10uF E16 10uF VCC Rx Tx VCC RS232 B RG15 RC1 RC...

Страница 25: ...several microcontrollers LTC485 interface tranciever is used for transforming signal from microcontroller s Rx and Tx lines to differential signal on A and B output lines RS 485 COMMUNICATION Figure...

Страница 26: ...DE A GND RO B 485 A 485 2nd RS 485 MODULE 3rd RS 485 MODULE CN5 1 2 RG15 RC1 RC2 RC3 RC4 RG6 RG7 RG8 MCLR RG9 Vss Vdd RA12 RA13 RB5 RB4 RB3 RB2 RB1 RB0 RC14 RC13 RD0 RD11 RD10 RD9 RD8 RA15 Vss OSC2 OS...

Страница 27: ...lers It is a two wire half duplex high speed network system Half duplex means that microcontroller can send and receive data but only one way at a time CAN Figure 30 CAN connectors dsPICPRO developmen...

Страница 28: ...RC3 RC4 RG6 RG7 RG8 MCLR RG9 Vss Vdd RA12 RA13 RB5 RB4 RB3 RB2 RB1 RB0 RC14 RC13 RD0 RD11 RD10 RD9 RD8 RA15 Vss OSC2 OSC1 CLKI Vdd RG2 RG3 RF6 RF7 RF8 RF2 RF3 RB6 RB7 RA9 RA10 AVdd AVss RB8 RB9 RB11...

Страница 29: ...se the DS1820 could be perma nently damaged In order to work DS1820 must be connected to micro controller s RD6 pin by enabling switch 1 on SW3 DS1820 VCC 125 C 50 C VCC GND R23 10K VCC DQ VCC RG15 RC...

Страница 30: ...RTER I I NPUT A D CONVERTER INPUT Figure 35 Jumpers J21 and J22 PGA1 and PGA2 Connectors for analogue input are placed on the upper right side of development board Inputs AN10 to AN15 are connect ed d...

Страница 31: ...t signal Also PGA CS1 and PGA CS2 must be enabled switches 4 and 5 on SW2 In order to meas ure an analogue signal without interference the pull up down jumper should be removed from PORTB high In this...

Страница 32: ...F6 RF7 RF8 RF2 RF3 RB6 RB7 RA9 RA10 AVdd AVss RB8 RB9 RB11 Vss Vdd RB12 RB13 RB14 RB15 RD14 RD15 RF4 RF5 RG13 RG12 RG14 RA7 RA6 RG0 RG1 RF1 Vdd Vss RD7 RD6 RD5 RD4 RD13 RD12 RD3 RD2 RD1 dsPIC30FXXXX R...

Страница 33: ...page MikroElektronika Development tools dsPICPRO 2 0 USB D A A C C ONVERTER O O UTPUT D A CONVERTER OUTPUT Figure 39 D A Converter CS SCK SDI VOUT GND VREF LDAC VCC U9 1 2 3 4 8 7 6 5 Aref GND DAC CON...

Страница 34: ...low PORTB high PORTC PORTD low PORTD high PORTF PORTG low and PORTG high there is one 10 pin connector providing Vdd GND and up to eight port pins These connectors can be used for system expansion wit...

Страница 35: ...l up line is connected All lines are disconnected Pull down line is connected RN11 VCC VCC VCC RG15 RC1 RC2 RC3 RC4 RG6 RG7 RG8 MCLR RG9 Vss Vdd RA12 RA13 RB5 RB4 RB3 RB2 RB1 RB0 RC14 RC13 RD0 RD11 RD...

Страница 36: ...ators Palm PCs Auto PCs etc so you can easily exchange data from them and dsPICPRO development board Compact Flash have non volatile storage solution that does not require a battery to retain data ind...

Страница 37: ...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 R25 10K VCC RG15 RC1 RC2 RC3 RC4 RG6 RG7 RG8 MCLR RG9 Vss Vdd RA12 RA13 RB5 RB4 RB3 RB2 RB1 RB0 RC14...

Страница 38: ...to work properly both interupt and I2C communication lines must be connected to microcontroller by placing switch 6 on SW2 and switches 7 and 8 on SW3 in ON position REAL TIME CLOCK RTC OSCI OSCO A0...

Страница 39: ...O 2 0 USB MikroElektronika Development tools If you are experiencing problems with any of our products or you just want additional information please let us know We are committed to meet every your ne...

Отзывы: