Home
dsPIC PRO User Manual
Contents
1. A D CONVER dsPICPRO Users Manual TOOLS A D Converter input schematic 1 4 951 7 AN8 AN9 connected AN8 and AN9 connected directly to RB8 and RB9 through PGA1 and PGA2 PORTB high pull up down jumper should be romoved J21 COSS Ww CN9 CN10 CN11 CN12 CN13 vcc J22 pull up down n PortB high e m D CONVERTER INPUT PGA1 CS dsPIC3O0FXXXX OSC1 page 3 2 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 E peo dsPICPRO Users Manual TOOLS D A CONVERTER OUTPUT DsPICPRO development board have DAC Digital to Analogue Converter that can sim ulate analogue output from 0 5V or from 0 4 096V depending of voltage reference DAC LD and DAC CS pins must be connected from microcontroller to DAC which is estab lished by putting switches 7 and 8 on SW2 in ON position Also reference must be chosen by placing jumper J20 in desired position refer ence voltage 5V or 4 096V DAC use SPI communication so sitches 5 and 6 on SW3 umo gt MX must be enabled D A Converter Figure 39 Vref line is Figure 10 D A Converter bob connected e REF Vcc line is All lines are connected disconnected vcc 1541 R27 100 VOUT VIN 1 DAC CON
2. 2 lt a RF2 1 1 i i L L L 1 RB ume RB11 I 1 RG3 l 1 1 D i L L I PS 1 lt a gt RB12 i RD4 52 RFA4 ROI i 1 1 1 i L L i I I i RBS 1 1 RB13 RD5 RF5 5 RG13 1 i i i I i L i RBS 1 em 14 RDG 80141 A RF6 1 1 afl RG14 1 1 i I I L I I i L L L 887 I RB15 RD7 gt RD15 1 RED I RG15 i 5 5 D D 1 1 5 D 1 i 1 gt L i 1 I i il s um EM EM AW I vcc e 5V is connected 5V and 0V 0V is connected dsPIC30FXXXX os are disconnected Figure 15 Buttons schematic page 1 6 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD We 17 J 0 E poo dsPICPRO Users Manual TOOLS In the case of Fig 16 the pull up m resistor pulls the microcontroller i port p
3. C1 CECXVIN Connection between microcontroller and a PC RS232 B page 2 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 22 20 poo dsPICPRO Users Manual TOOLS RS 485 COMMUNICATION RS 485 communication enables point to point and point to multipoint data trans fer It is commonly used for data transfer between 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 Figure 26 RS 485 connector RS 485 connector RS 485 COMMUNICATION dsPICPRO development board have one RS 485 communication device In order to provide a more flexible system the microcontroller is connected to the LTC485 through three switches on SW3 Switches 2 3 and 4 are used to connect Rt Tx and Rx lines from microcontroller to RS 485 port LTC485 and RS 485 connector 314 LTC485 chip dsPICPRO Users Manual TOOLS RS 485 schematic and connection to other RS 485 modules ON LTC485 RS 485 COMMUNICAT RS 485 switches on SW3 page 2 6 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 777 0 E po dsPICPRO Users Manual TOOLS CAN CAN Controller Area Network is a serial network that was originally designed for the automotive industry but has also become a popular bus in in
4. SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING DAMAGES FOR LOSS OF PROFITS LOSS OF BUSINESS LOSS OF USE OR DATA INTERRUP TION OF BUSINESS AND THE LIKE EVEN IF MIKROELEKTRONIKA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES ARISING FROM ANY DEFECT 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 AT ANY TIME WITHOUT NOTICE AND SHOULD BE CONSTRUED AS A COMMIT MENT BY MIKROELEKTRONIKA MikroElektronika assumes no responsibility or liability for any errors or inaccuracies that 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 for identification or explanation and to the owners benefit without intent to infringe MIKROELEKTRONIKA dsPICPRO Users Manual DEVELOPMENT TOOLS Real Time Clock RTC CONTENTS x CONNECTING THE SYSTEM page 4 INTRODUCTION page 5 DESCRIPTION OF THE DEVELOPMENT SYSTEM page 6 Q Switches and their functions page 6 Jumpers page 7 MCU card page 8 Power Supply and the Reset Circuit page 11 On board USB programmer page 12 LEDs page 13 Push Buttons page 15 Graphic LCD page 18 LCD 2x16 page 20 RS 232 Communication page 22 RS 485 Communication page 25 CAN page 27 DS1820
5. Card must be at the upper left corner as it is drawn on the dsPICPRO board Step no 3 When MCU Card is on the place push it down by applying the pressure on all edges at the same time MCU CARD dsPICPRO Users Manual TOOLS The microcontroller s pins are routed to various peripherials as illustrated in Fig 5 All ports have direct 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 digital logic probes All ports are connected to LEDs push button switches and pull up down resistors which allow for easy digital pin state monitoring and testing Some of the pins are connected to other peripherials such as the DS1820 temperature sensor RS 232 communication LCD etc MCU CARD De x xX x D Ja RALA DX ji BS DX 0 x x dsPIC30FXXXX osc 2 OSC1 CLKI Vdd ETIN System connection page 1 0 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 777 0 E peo dsPICPRO Users Manual TOOLS POWER SUPPLY As a power supply source users can select either a regulated supply from USB cable default or an external non regu
6. DIGITAL THERMOMETER The 051820 digital thermometer 15 well suited to environmental tempera ture measurement having a tempera ture range of 55C to 125C and an accuracy of 0 5C It must be placed correctly in the 3 pin socket provided on the dsPICPRO with its rounded side to the 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 RD6 pin by enabling switch 1 on SW3 There is a mark in the form of half circle for proper orientation of DS1820 sensor Figure 34 DS1820 Schematic Y RF7 RF8 RF2 RF3 125 m P 051820 50 C ve E dsPIC30FXXXX vec ad R23 GND VCC are E DQ DIGITAL THERMOMETER 0521620 A D CONVERTER INPUT dsPICPRO development board have eight analogue signal inputs for working with ADC One of that inputs potentiometer P2 is active when switch 3 on SW2 is enabled and gives analogue signal to microcontroller s RBIO pin Potentiometer analogue output is in the range of OV to 5V as drawn on the board Connectors for analogue input are placed on the upper right side of development board Inputs AN10 to 15 are connect ed directly to microcontroller RBIO to RB15 pins Inputs AN8 and ANO con nected to microcontroller RBS and 9 pins through jumpers J21 and J22 respec tively If
7. cortos TO PERIPHERALS ON DEVELOPMENT BOARD Reset 100n BS Me o D Bo p UJ page 1 2 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 77 0 E p dsPICPRO Users Manual TOOLS LIGHT EMITTING DIODES Light Emitting Diodes LEDs are the most commonly used components usually 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 Each group of eight LEDs can be enabled or disabled using switch SW1 as shown in Fig 11 Fig 12 illustrates the connection of a LEDs to lower PortB of the microcontroller A resistor 15 used in series with the LED to limit the LED s current In this case the resistor s value 1s IK LED S dsPICPRO Users Manual TOOLS 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 switch SWI The LEDs are enabled when connected to a ground and will display the state of the corresponding microcontroller pin otherwise the LEDs will always be off no matter what the pin state 15 because no current can flow through it LEDS LED schematic 4 LEDs LEDs RB_High LEDs RD_Low LEDs RD_High LEDs RF LEDs RG ys RB7 dsPIC30FXXXX o OSC1 CL
8. development board GRAPHIC LCD 128X64 w When GLCD is on place you can adjust contrast through the hole from other side of development board page 1 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 2 E poo dsPICPRO Users Manual TOOLS In order to enable GLCD jumper J23 should be set to the position labeled as Contrast vcc M contrast GLCD and LCD8 selected contrast deselected e CHAR E Due vcco C OL Bl GRAPHIC LCD 128X04 dsPICSOFXXXX 05 1 Figure 19 GLCD schematic dsPICPRO Users Manual TOOLS LCD 2X16 When using a character LCD it should be placed on the GLCD connector Since GLCD 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 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 you add or remove LCD be sure that the power supply is off LCD 2416 LCD 2x16 Before adding the LCD set jumper J23 to the left hand position labeled as CHAR The LCD 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 y
9. to provide a more flexible system the microcontroller is con nected to the MAX232 through jumpers First two jumpers J2 and J3 are used to connect Rx and Tx lines from microcontroller to RS232 A port and second two jumpers J4 and J5 for connecting Rx and Tx lines to RS232 B page 2 2 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 E peo dsPICPRO Users Manual TOOLS RS 232 CON CONNECT Receive MCU TO PC data Rx SERIAL CABLE CONNECT Send PC TO MCU Data Tx RS232 A CN3 CON SUB D 9p RS 232 COMMUNICATION RS232 Ais RS232 Ais disconnected connected Y J3 J2 J3 J2 00 dsPIC30FXXXX m Connection between microcontroller and a PC RS232 A dsPICPRO Users Manual TOOLS Receive data Rx CONNECT MCU TO PC moii ol CABLE P i PC TO MCU X RS232 B O 0 0 CN4 CON OIOIOIOIO SUB D 9p vec Be SS Ss Bas peu Se RS 232 COMMUNICATION Ln T 25152052 282058522855 CUPIS Xo RD1 RS232 Bis RS232 Bis disconnected connected Y J5 J4 J5 J4 i dsPIC30FXXXX SC2 OSC1 CLKI ya dd m 2 lt o c lt z Q co
10. Digital Thermometer page 29 A D Converter input page 30 D A Converter output page 33 Direct port access page 34 Compact Flash page 36 page 38 dsPICPRO Users Manual TOOLS CONNECTING THE SYSTEM The development system box contains a development system CD USB cable and serial cable Step no 1 The first thing to do is to take the system out of a box Unpack the USB cable and connect it to the PC Please use USB ports from the back of the PC with direct con tact to the motherboard Step no 2 Connect the USB cable to the dsPICPRO board Step no 3 The PC will start the procedure for installing the USB driver for the on board USB 2 0 programmer Follow the procedure from the document Installing Driver for USB programmer and install the USB driver Step no 4 Copy dsPICFLASH2 exe file to the folder of your choice You can find this file in the dsPICFLASH folder on the CD Step no 5 Run and use dsPICFLASHO exe as explained in the document dsP Cflash pro grammer CONNECTING THE SYSTEM After these 5 steps your dsPICPRO is installed and ready for use You should try to read a program from the chip or to load an example from the examples folder INTRODUCTION The dsPICPRO 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 It allows
11. KI Vdd R SIL 8 9 page 1 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 E poo dsPICPRO Users Manual TOOLS PUSH BUTTONS The dsPICPRO has 48 push buttons which can be used to provide digital inputs to the microcontroller s ports There is also one push button that acts as a RESET Figure 13 PUSH BUTTONS Jumper J10 zoomed on the figure 14 determines whether a button press will bring logical zero or log ical one to the appropriate pin Buttons connection to ports RB_Low RB_High RD_Low RD_High RF and RG is shown in Fig 15 In this example the buttons are connected to 5V In order to detect a button state pull up or pull down resistors should be used dsPICPRO Users Manual TOOLS Which one of those two depends on how J10 is set It is illustrated on the next page For the example shown in Fig 15 pull down resistors would be required BUTTONS PORTB low PORTB high PORTD low PORTD high A31 NM Nm iL M mm mz mm mH EERE EM EH Um i pm um um mm mm mm zm um ee gum le m HE 1 i L 1 1 I RBO I RB8 i RDO L I LL RFO I RGO L L 1 4 RB1 1 RB9 i RD1 a RDO I a Bar 1 ITE 11 TE d L L i I I I m 1 mme RB10 i
12. NECTOR dsPIC3OFXXXX eccerre DA CONVERTER OUTPUT DIRECT PORT ACCESS All microcontroller input output pins can be accessed via connectors placed along the right hand side of the board For each of the ports PORTA PORTB 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 with external boards such as Serial GLCD IrDA Compact Flash RS 485 etc Ensure that the on board periph erials are diconnected from microcontroller by setting the appropriate jumpers or switches while external peripherals are using the same pins The connectors can also be used for attaching logic probes or other test equipment PORT ACCESS DIREC LIE Direct port access connectors page dsPICPRO Users Manual TOOLS J15 VCC O 2 O Figure 42 7 n Pull up line is connected Lower Port D connection B RDO 2 Pull down line All lines is connected are disconnected RD4 6 RD6 8 DIRECT PORT ACCESS TEES x HEADER 5x2 page 3 5 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 E op deu dsPICPRO Users Manual pam imi COMPACT FLASH Compact Flash is a small remo
13. SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MikroElektronika dsPICPRO User s Manual with on board 6 S With useful implemented peripherals plentiful practical code examples and a broad set of additional add on boards ADC 2 O programmer potentiometer two RS 232 RS485 Compact Flash CAN etc MikroElektronika development boards make fast and reliable tools that can satisfy the needs of experienced engineers and beginners alike Software and Hardware solutions for Embedded World peo dsPICPRO Users Manual TOOLS First edition November 2005 No part of this manual including the product and software described in it may be reproduced transmitted transcribed stored in a retrieval system or translated into any language in any form or by any means except documentation kept buy the pur chaser for backup purposes without the express written permission of MikroElektronika company Product warranty or service will not be extended if the product is repaired modified or altered unless such repair modification or alteration is authorized in writing by MikroElektronika MIKROELEKTRONIKA PROVIDE THIS MANUAL AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PUROSE IN NO EVENT SHALL MIKROELEKTRONIKA ITS DIRECTORS OFFICERS EMPLOYEES OR DISTRIBUTORS BE LIABLE FOR ANY INDIRECT
14. der 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 SW3 in ON position Figure 45 Real Time Clock REAL TIME CLOCK RTC 56 100 nF UA BAT43 Ln 32 768 2 3V 230mA 43 HA D page dsPICPRO innocvenrRonina SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD dsPICPRO Users Manual Mr 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 need Technical Support support mikroe com z AVANTE OU If you have any other question comment or a business proposal please contact us E mail office mikroe com Web www mikroe com Page 3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 22 20
15. dsPIC microcontrollers to be interfaced with external circuits and a broad range of peripheral devices allowing the user to concentrate on software develop ment Figure 1 illustrates the development board On a silkscreen there are identification marks beside each component These marks describe connections to the microcon troller operation modes and provide some useful notes The need for additional schematics 15 minimized as all the information 15 printed on the board Figure 1 dsPICPRO development board E M on 2 1 k sut si Sy irit m OO ob oh of oko 191 ot or INTRODUCTION dsPICPRO Users Manual TOOLS SWITCHES The dsPICPRO development board features many peripherial devices In order to enable these devices before programming you need to check if appropriate jumpers or switches have been properly set Switches are devices that have two positions ON and OFF which have a role to establish or break a connection between two contacts SWITCHES 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 RB_L is OFF all RB lower LED s will be turned off The switches SW2 and SW3 are used to enable connections between various peripheral devices and microcontroller pins For example SW2 and SW3 enables a c
16. dustrial automation as well as other applications CAN is the network established among microcon trollers 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 Figure 30 CAN connectors CAN connector connector dsPICPRO development board have two CAN communication devices In order to provide a more flexible system the microcontroller is connected to the PCA82C250 through two jumpers for every CAN communication device Jumpers J8 and J9 are used to connect Tx and Rx lines from microcontroller pins and RGO to CANI Jumpers J6 and J7 are used to connect Tx and Rx lines from microcontroller pins and RFO to CAN2 CAN connectors and jumpers Figure 31 dsPICPRO Users Manual TOOLS CAN1 CAN1 _ Enabled Disabled With two CAN com munication devices Figure 32 CAN schematic E you can create two separated networks CAN RF1 T CZ Ek Rx J7 A vcc PCA82C250 R18 10 i CAN2 H 2 2 Vref CAN2 L 49 PCA82C250 VCC Rs 5 E CAN2 CAN2 Enabled Disabled dsPIC30FXXXX VCCO OSC1 x C uu 4 49 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 6471216 E po dsPICPRO Users Manual 5 DS1820
17. in to 5V when the button is PortB Low B not pressed A button press causes the port pin to be connected to ground 0 is in the lower posi tion Thus only when the button is pressed will the microcontroller sense a logical zero otherwise the pin state will always be logical one BUTTONS Ov while pressed 85252 3885553555555 Figure 16 Button with pull up resistor In the case of Fig 17 the pull down resistor pulls the microcon troller port pin to ground when the button is not pressed A button press causes the port pin to be connected to 5V J10 is in the upper position Thus only when the button is pressed will the microcontroller sense a logical one otherwise the pin state will always be logical zero VCC Sv while pressed 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
18. jumpers J21 and J22 are placed on the left hand position then ANS and AN9 are connected directly to pins RB8 and but if placed to the righ hand position than AN8 and ANO are connected to PGA Programmabile Gain Amplifier Figure 35 Jumpers J21 and J22 PGA1 and PGA2 Jumpers J21 and J22 for connecting RB8 RB9 directly to microcon troller or through PGA1 and PGA2 D CONVERTER INPUT page 3 0 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 q j 77 0 20 MIKROELEKTRONIKA DEVELOPMENT TOOLS dsPICPRO Users Manual Both PGA integrated circuits MCP6522 are connected to microcontroller through SPI communication and have CS signal Chip Select In order to work properly SPI communication must be enabled by setting switches 5 and 6 on SW3 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 CS and PGA CS2 must be enabled switches 4 and 5 SW2 In order to meas ure an analogue signal without interference the pull up down jumper should be removed from PORTB high In this way high pins of PORTB remain floating AN8 AN9 AN10 AN11 AN12 AN13 AN14 AN15 5V OUTPUT mI 16 947 Analogue input connectors Complete A D Converter input schematic along with PGA is shown on the next page ER INPUT
19. lated power supply In case of the USB power supply the system sholud be connected to a PC using the USB programming cable and jumper J1 should be set in the upper position In case of an external 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 position In Fig 7 you can see the USB left and power supply right connectors POWER SUPPLY Figure 6 Power supply select jumper USB and power supply connectors J1 in the lower position system will take power from the external E AC DC power adapter E J1inthe upper position system will take power from the USB cable USB Power Supply 5V FP1 5V C11 E2 C3 100nF 10uF 100nF vec dsPICPRO Users Manual TOOLS ON BOARD USB PROGRAMMER There is no need for the use of external equipment during programming as the dsPICPRO development system has its own on board USB programmer All you need to do is connect the system to a PC using the USB cable Then load your program into the microcontroller via the dsPICFLASH2 programming software which is supplied with the board vcc POWER 1K vcc SWITCH USB LINK ON BOARD USB PROGRAMMER x dsPIC30FXXXX 009 1 RDO RD10 Vdd OSC1 CLKI Vdd RG2
20. onnection between the microcontroller pins and temperature sensor programmable gain amplifier PGA real time clock RTC RS 485 communication etc Switches 1 6 are ON and 7 other switches are OFF Group of 8 switches 7T Switch is T Switch is OFF 5959 peo dsPICPRO Users Manual TOOLS JUMPERS 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 pin connector As illustrated in Fig 3 middle connector can be connected to the left or right pin depending on the jumper s position UMPERS LLL E mm All lines are disconneced o Jumper as multiplexer Coja Left line is selected Right line is selected dsPICPRO innocvenrRonina SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 7 MCU CARD The dsPICPRO development board have a 80 pin MCU Card as shown on the fol lowing picture MCU CARD When you are placing MCU Card on the dsPICPRO MCU socket you must follow these steps Step no 1 If there is already MCU Card placed on dsPICPRO you must remove it by slowly pulling it up Step no 2 Label on the MCU
21. ou can adjust contrast through the hole from other side of development board page 2 0 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 E MIKROELEKTRONIKA DEVELOPMENT TOOLS In order to enable LCD jumper J23 should be set to labeled as the position CHAR Contrast vcc Adjustment Lp Leave two free pins to the left side 22 LCD shown from back poni uw CHAR an vcco GLCD contrast selected Leave four free pins to the right side LCD8 contrast dsPICPRO Users Manual LCD 8 bit mode schematic Figure 21 selected LCD 2416 Boo GLCD and LCD8 contrast deselected vec D dsPIC3OFXXXX OSC1 This schematic shows the connection for LCD in 8 bit mode Only difference for connection of LCD in 4 bit mode is that LCD use only DO D4 data lines dsPICPRO Users Manual TOOLS RS 232 COMMUNICATION RS 232 communication enables point to point data transfer It is commonly used in data acquisition applications for the transfer of data between the microcontroller 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 RS232 connectors dsPICPRO development board have two RS 232 communication devices RS232 A and RS232 B In order
22. vable mass storage device The application of Compact Flash include digital cameras digital music players desktop computers handheld PCs personal communicators 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 indefinite ly COMPACT FLASH Compact Flash In order to detect when Compact Flash card is inserted CFCD line is pulled high and it must be connected to microcontroller s pin RG15 by placing switch 8 on SW1 in ON position When Compact Flash card is inserted it drops CFCD level low and it can be detected by microcontroller Compact Flash schematic is shown on Figure 44 dsPICPRO Users Manual TOOLS Compact Flash schematic Compact Flash Card nmm GoLEPS9008 gt gt COMPACT FLASH page 3 7 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 777 0 E po dsPICPRO Users Manual TOOLS REAL TIME CLOCK RTC In many hardware projects there are needs for real time clock or delay source Such devices as clocks timers etc are impossible to prod uct without knowledge of exact time Real Time Clock on dsPICPRO development board is PCF8583P and it use I2C serial communica tion to exchange informations with microcon troller Also it has one interrupt output In or
Download Pdf Manuals
Related Search
Related Contents
Istruzioni d`uso originali Forno di sinterizzazione HT Bedienungsanleitung Leica TCS SP5 Leica TCS SP5 X User Manual Toshiba Satellite C650-06E National Vital Statistics Report, Volume 59, Number 4 Draytek Vigor 2104P Copyright © All rights reserved.
Failed to retrieve file