Home

dsPICPRO4 User Manual

image

Contents

1. TOUGH PZN Touch panel LLER 1 o T 55529 TOUCHP 2333133 31323 2 2112 PHYP EE DR LETT DRIVEA DRIVEB dsPIC30F6014A OSC1 TOUCHPANEL CONTROLLER Touch panel circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika eTofeia oyojofoin eye1ofeIufoYon USER A D CONVERTER TEST INPUTS The dsPICPRO4 development board has two potentiome ters for demonstrating the operation of analog to digital converter ADC Both potentiometer outputs are in the range of 0 5V These analog signals can be connected to two different analog input pins simultaneously Jumpers J17 and J18 are used for connecting potentiometers P3 and P4 to the appropriate MCU pins A D converter test inputs A D conversion has a wide range of applications The microcontroller takes an analog signal from its input pin and converts it into a digital value Basically it 15 possible to measure any analog signal that fits in the range acceptable by the microcontroller As for the dsPICPRO4 this range 15 0 SV ND CONVERTER TEST INPUTS 29 VCC VCC VCC On OIL a 2 A oo00z2990LEg295858855885 dc c coc ctc Oo c cx cx c c xc c cx 0 5V 0 5V Ris J 99 Row P3 PA RC1 RC13 10K 10K Rc2 d RD
2. a KI AS 118 l w I be LA the butte EIN __ 8038 4 y gt 0 els SUSAN o t e m 48 81 ww 18 Lag 9 493 F pmo Dioh O n n w Aa LJ ace rm ROI2 L ir gt S d g T 17 ROS ROIS RFS 4 9613 0 tbe toe RDG 2014 RF6 RGG RELA SINSZL 79 DS D lt 9 Qu T RF l R69 RGIS T sic 19 Xi 5 7 8 DEVELOPMENT TOOLS BY MIKROELEKTRONIKA dsPICPRO4 development board SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER gt MANUAL w c SWITCHES 7 The dsPICPRO4 development system features a number of peripheral devices In order to enable them before programming the appropriate jumpers or switches have to be properly set 9 Switches are mechanical devices used to establish or break connection between two contacts 92 The dsPICPRO4 development system has five groups of switches ag UU x c foL E B SwithisON amp x mE T ks m e lt a amp Switch is OFF amp e Figure 2 Switch group SW5 whereas 5 6 7 and 8 are OFF H DIP switch SW1 enables disables LEDs LY DIP switch SW2 enables disables LCD GLCD BCK CAN RS 485 and RTC INT
3. Step no 3 Install USB drivers on your PC to enable programmer s hardware to ope rate properly on the dsPICPRO4 board For detailed installation instruc tions refer to the nstalling USB drivers manual Step no 4 Connect the dsPICPRO4 to PC using USB cable Please use one of USB ports on the back of the PC because they are directly connected to the computer motherboard The first time you switch the dsPICPRO4 on your PC will automatically detect a new hardware You will be immediately prompted whether Win dows should search for new drivers update or not Select the option No not this time and click Another window appears click Next and the operating system will automatically find drivers Click Finish to complete this process and run dsPICflash Next time you switch the dsPICPRO4 on Windows will not ask for new drivers update during driver installation CONNIE GUUING HE SS eo After these four steps your dsPICPRO4 is successfully installed and ready for use You can read a program from the chip or write a new one into it The product CD provides numerous simple program examples to make your first steps Easy SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika PNA USER is e MANUAL INTRODUCTION The dsPICPRO4 development system is a full featured development board for dsPIC Microc
4. Ju U 9 LIN NEN Mw IE WI 159 A960 v e21nos JeyeAuoo ose MM A 3ouJ9u4 44 Lan WU OM sS AVA A T E IO du Got RRR e 2105 vod 1 Y41NO2 a TEL Um Uunoa QN Sh y Bal x4 eee oo jes E ET 0 22 d ELI ESN ee n _ pue jeujueJDoJd 0 GSN pod uoneoiunujuoo Z ZSM pue se ARI b E ol t 3 es 2 le gt I N9119 ese 1015 CIS OININ INS JIO NYO uoneo 98 BoJeuy sjuBippeq 42079 pue 101 Se se 4 pue q g spod uo 5831 J44O NO um suid NON pe joeuuoo 491 yoo d 05 0901 9LXZ uejod jseJjuoo e dsip q21 9 2 U9IIMS 44O NO jddns BUJ9 X9 JO OU SI od gsn ueuw jddns pue U99M9q 950045 OQ OV A 91 8 Aid dns euJ9 X3 SOFTWARE AND HARDWARE
5. fg er CR ccn i ci Each LED corresponds to one MCU pin DIP switch SW1used to enable disable LEDs dsPICPRO4 supports 64 and 80 pin microcontrollers and comes with 80 pin microcontroller dsPIC30F6014A DIP switches SW2 SW5 are used to enable disable on board peripherals Direct ports access connectors MMC SD multimedia card slot RESET button circuit Push buttons Touch panel connector GLCD connector GLCD contrast potentiometer Touch panel controller and Pull up pull down jumper Ere mi REL Jee Seb 1 ee 1 2 ja da UL DE Ha aja 3 3 Li GIIILLHIBIIILIT rs GLCD 128646 SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER w e e 2 Q MANUAL CONNECTING THE SYSTEM Apart from this manual the development system box contains development system product CD USB cable RS232 cable and nstalling USB drivers manual In order to use the dsPICPROMA properly it is necessary to go through the following steps page Step no 1 Take the development system and product CD out of the box Insert the product CD into CD drive Please do not connect the development system to a PC vet Step no 2 Install dsPIC flash programmer software to enable a program to be trans ferred from PC to the microcontroller chip
6. DIP switch SW3 enables disables touch panel controller and ethernet DIP switch SWA enables disables MMC CS DAC SPI and PC and DIP switch SW5 enables disables PORTB HIGH pull up pull down resistors R JUMPERS Similarly jumpers are used to break or establish connection between two points Under the plastic cover of a jumper there is a metal contact which establishes connection when the jumper is placed over two pins Jumper is commonly used as a selector between two possible connections via 3 pin connec tor As illustrated in Figure 3 the middle connector pin can be connected to the left or right pin depending on the jumper s position ess gsg Jumper is not Jumper is placed S Jumper is placed placed and on the right side on the left side middle pin is connecting middle connecting mid unconnected and right pin dle and left pin Jumper as a selector SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika USER MCU SOCKET 9 S The dsPICPRO4 comes with an 80 pin dsPIC30F6014A microcontroller in TQFP soldered on MCU card The user can remove this MCU card and fit another one with either 64 or 80 pin microcontroller on it 8 pu H KROELEKTRONIS c Wen Y o rae a d E C3 5395 aeo eee L
7. SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika REAL TIME CLOCK RIG USER MANUAL REAL TIME CLOCK RTC Most hardware projects need a real time clock or a delay source For this reason the dsPICPRO4 development board is provided with PCF8583P It is a Real Time Clock Chip that uses seri al communication to exchange data with the microcontroller and has one interrupt output In order that it works properly both interrupt and communication lines must be connected to the microcontroller by using switch 8 of the DIP switch SW2 and switches 7 and 8 of the DIP switch SWA D6 L c9 D7 BAT1 SWA BAT43 100nF 43 3V 230mA oS __ _ R19 R20 i R21 10K ra 10K SDA dsPIC30F6014A zin mm C X3 32 768KHz is PCF8583P EAE A E RTC INT 20 Real time clock circuit diagram MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER er MANUAL RS 485 COMMUNICATION CIRCUIT 5 RS 485 communication circuit enables point to point data transfer It is commonly used for data transfer between several microcontrollers ADMASS interface transceiver is used to transform a signal on microcontroller s Rx and Tx lines into a differential signal on A and B output lines
8. LEDs connected to the microcontroller ports PORTA PORTB low PORTB high PORTC PORTD low PORTD high PORTF PORTG low and PORTG high You can enable disable port LEDs using the appropriate switch of the DIP switch SWI 73 Lape OPER PLACEMENT MAY Mmmm mm 77 C IMPROPER le o eem f T ILIEIDS page X d PORTB low PORTB high PORTC F PORTD low PORTD high PORTF PORTG 4 4 dsPIC30F6014A Figure 26 PORTA LEDs circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika O R ty PUSH BUTTONS amp USER be used to provide digital inputs to the microcon troller ports There is also one red push button Figure 28 illustrates connection between push buttons and PORTA Remember that there are another eight ports not shown on this circuit dia gram but are connected to push buttons the same way as PORTA VCC VCC POWER USB LINK dsPIC30F6014A MCLR USB CONN Push buttons circuit diagram MikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER MANUAL 2X16 CHARACTER LCD A standard character LCD is probably most n TD lo widely used data visualization component It 99999
9. 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 registered trademarks or copyrights of their respective companies and are used only for identification or explanation and to the owners benefit with no intent to infringe WII LYOddNS TVDINHDAL MOU SN se jd uoneuuojur jeuonippe snf NOK JO sjionpoaud sno Aue sule qoJd Bulduaiadxea nof JI UJO2 30JXIU4 921JJO 7 SN 1261002 aseajd jesodoid ssauisng e 10 uonsenb 13430 NOK y
10. page Figure 21 RS 485 communication WINUG AUTTON a The dsPICPRO4 development board has one RS 485 communication circuit In order to provide 25 more flexible system the microcontroller is connected to ADMASS via three switches 5 6 7 of the DIP switch SW These switches are also used to connect microcontroller lines Rt Rx and Tx to RS 485 4 n M dsPIC30F6014A LTC485 cco rne c Figure 22 RS 485 communication circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika 5 2 mal CAN Controller Area Network 15 a serial network initially designed for the automotive industry but has also become a popular bus in industrial automation as well as in other applications CAN is a two wire half duplex high speed network system established among microcontrollers Half duplex indicates that the microcontroller can send and receive data but either of them at a time The dsPICPRO4 development board has one CAN communication circuit whose Rx and Tx lines are enabled via switches 3 and 4 of the DIP switch SW2 dsPIC30F6014A MCP2551 OVCC Figure 24 CAN circuit diagram MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL LEDs Light Emitting Diodes LEDs components most commonly used for displaying pin digital state The dsPICPRO4 has 67
11. 9999998 can normally display messages in two lines containing up to 16 alphanumeric characters each Every character is made up of 5x8 pixels The character LCD communicates with the microcontroller via 4 bit data bus Its connec tion to the microcontroller is shown in Figure RACTER LGD 5 2 Lu L Jh UN T RC13 sal RDO q SB ROM RD10 OVCC awe E RD9 9 LCD BCK yee 15 N ES RA14 vcc F dsPIC30F6014A OSC2 RC15 10K osct CND JE QN x ooo CN CN CN CN CO cO cO cO CM X0 UNO AKI 2x16 LCD circuit diagram v4 Bear in mind that LCD should be placed or removed from the dsPICPROA only after the V power supply is switched off Otherwise it could be permanently damaged SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika A graphic LCD GLCD provides an advanced M method for displaying visual messages While a 2 4 character LCD can display only alphanumeric d 4 characters GLCD can be used to display mes De in the form of drawings and bitmaps Most EX commonly used graphic LCD has a screen reso lution of 128x64 pixels The GLCD contrast can be adjusted using the potentiometer P2 placed in the upper right corner of GLCD CRAPHIC LGD p
12. E3MikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD waking si ple sPICPROA LET Ma FEE D iii m un E X X Y MN OT IOON OL eae tog Pao Pearce ur d e e bh iili ng m Fig enue ET PE i bal d 5 T TAM dne aun Tn Tin Tee i Ti LJ si LJ m m c T p E i iT i TE T TIITLETR LEE ertum uy a n x s i E cat 3 5 b X ricis enis a HE je 8 e RM x aum po amenan eaa E e amp e e amp o e With useful implemented peripherals plentiful practical code examples and a broad set of add on boards Serial Ethernet Compact Flash MMC SD etc MikroElektronika development boards make fast and reliable tools that can satisfy the needs of experienced engineers and beginners alike USB 2 0 M IN CIRCUIT TOUCH PROGRAMMER SCREEN TO OUR VALUED CUSTOMERS want to express my thanks to you being interested in our products and having confidence in MikroElektronika It is our intention to provide you with the best quality products Furthermore we will continue to impro
13. RF4 and 5 pins dsPIC30F6014A Serial Cable Figure 12 RS 232 communication circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika e T fe uIeI c ofe1aIsIv fe u eITeM USER ETHERNET Ethernet is most commonly used Local Area Network LAN technology today On the top of physical layer Ethernet stations mutually communicate by sending data packets to each other Each station is assigned a single 48 bit MAC address which is used to specify both destina tion and source of each data packet Ethernet has 28 pin ENC28J60 Ethernet Controller with on board Media Access Control and Physical Layer MAC amp PHY 8KB of Buffer RAM and Serial Peripheral Interface SPI communication ETHERNETI page SERIAL Ethernet NITE Ethernet DIP switches SW3 and SW4 are used to enable disable serial ethernet communication as shown in Figure 14 MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL i VCC3 3C page LEDB C15 22pF X3 25 MHz C16 22pF EU LE VCC3 3C FP2 FERRITE BEAD dsPIC30F6014A Figure 14 Ethernet circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika eTofeia oyojofoin oYe1ofeIufoYon USER 051820 DIGITAL THERMOMETER The DS1820 digital thermometer is well suited to environmental temperature measurement ha
14. RLD VCC A Go Po CS Din GND 3 3V SCK GND Dout sod RG13 a2 OO WAN DWAR WD a CN30 MMC SD CARD dsPIC30F6014A MULTIMEDIA CARD GLISE 25 MikroElektronika Je j o guoo jaued yonoy j ued yono 219 VMINOELATIZOUNIN 2 Lond MENGE ane i s 41u05 0979 4401 suid 09 pue 5 Suoddns uoqqu uono Boe 610410 98 934 4 suid ojeAnoe suong lem 4 pesseJd si uoynq eui U9UM indui y Jo 5 NoOJ uBiu Jeduun cau i 216 RE m 29 T Er cou 29 Ir ar gt E JI s T zou 238 p gt AT D 431 2 4 amp 5 444 por Id VAINOULITTION V Od JDidSF di Sjueuod pJeoq uo e qesip e qeue pesn VMS CMS S9U9IIMS n t tou t m dt n E ns Y NOW 404 NOSN3S 07 91590 ons bee SO OZ8LSC 104 10 0oeuuoo Josues
15. SOLUTIONS FOR EMBEDDED WORLD ri 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 excepting the documentation kept by the purchaser for backup purposes without expressed 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 provides this manual as is without warranty of any kind either expressed or implied including but limiting to implied warranties conditions of merchantability fitness particular purpose In no event shall MikroElektronika its directors officers employees or distributors be liable for any indirect specific incidental or consequential damages whatsoever including damages for loss of business profits and business information business interruption or any other pecuniary loss arising from any defect or error in this manual or product even if MikroElektronika has been advised of the possibility of such damages Specification and information contained in this manual are furnished for internal use only and are subject to change at any time without notice and should be construed as a commitment by MikroElektronika MikroElektronika
16. UOOUPHOO USER page The dsPICPRO4 can use one out of two power supply sources regulated PC supply over USB cable by default and external power supply external AC DC power adapter When using power supply over USB cable the jumper J10 should be set in the right hand position 2 When using external power supply the dsPICPRO4 board produces 5V using MC34063A voltage regulator The external power supply can be AC or DC while power sup ply voltage ranges from 9V to 32V The jumper J10 should be set in the left hand position Figure 7 illustrates USB and external power supply circuits POWER SUPPLY OFF ON spe POWER SUPPLY SWITCH EU C gt SYSTEM O VCC CN11 9 32V AC DC E2 220uF PWR 1 L2 220uH EXT USB a 10 D DB1 ZN D8 T E19 D U S B B250C1500 1N5819 10uF GND Power supply circuit diagram SUP LECT 5 241 30 USB J1 in the left hand position system is powered from exter nal AC DC power adapter J1 in the right hand position system is powered from PC over USB cable MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER SOHQUOOHAUOOH PDO Jans MANUAL ON BOARD USB 2 0 PROGRAMMER ES There is no need to use external equipment during programming as the dsPICPRO4 develop ment system has its own on board USB 2 0 programmer All you need to do is to co
17. age X 31 26 10 ejk ER EERE EE eee eee eee eee st QN TOD COO OO st ON 7 m m ORG ROO o Contrast Adjustment dsPIC30F6014A QN cO st D O cz QN OO x NNN QI o em lt 5 m eee sSouree ess NUN RATS Se circuit diagram Note Bear in mind that GLCD should be placed or removed from the dsPICPRO4 develop ment board only after the power supply is switched off Otherwise it could be perma nently damaged MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL TOUCH PANEL IN ou Touch panel is a thin self adhesive transparent panel that could be placed over screen of graphic LCD It consists of two separate foils forming a sandwich structure It is very sensitive to press so that even a W soft touch causes some changes on output signal It 15 used in various user friendly devices in combination 8 with graphic LCD Connector enables this device to be connected to on board touch panel con troller the active part of which consists of 5 discrete transistors Four switches of the DIP switch SW3 enable or disable connection between this controller and RB8 RB9 RFO and NEIL
18. al of 3 58 0 2181 m col am m m sa RP Y tr tY 14 14 RC4 5 2010 RG6 RD tj 4 RDS i RG8 RA15 McLR d J17 J18 MEE sh oe 10 51 vec fy dsPIC30F6014A OSC2 RC1S GND OSC1 12 49 RA12 GND 13 48 RA13 RG2 44 885 15 46 RB4 RF6 16 45 RB3 RF7 17 44 RB2 RF8 18 43 RB4 RF2 19 42 RBO RF3 TA OO xo NNN ANN lt lt F A D converter test inputs circuit diagram MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER MANUAL DIRECT PORT ACCESS CONNECTORS microcontroller input output pins can be accessed via IDC 10 connectors 2x5 placed along the right side of the board For each microcontroller port there 15 one connector providing up to eight port pins and two addi tional pins connected to VCC and GND Direct port access flat Direct port access connectors cable connection DIREGI PORU ACESS 0 These connectors be used to connect the system to external devices If on board exter nal peripherals use the same pins then on board peripherals must be disconnected from the microcontroller by setting the appropriate jumpers The connect
19. evei PMen gO PRO sg dsPlc BY won Me If MCU card is already placed Place another MCU card on When the MCU card is prop on the dsPICPRO4 it is neces the board Note that label on erly placed push it down by sary to remove it by slowly the MCU card must be in the applying pressure on all pulling it up upper left corner as labelled edges at the same time on the dsPICPRO4 board BE SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER TNX MANUAL The microcontroller pins are routed to various peripherals as illustrated in Figure 5 All ports have direct connections to Direct Port Access 2x5 10 pin connectors These connectors are typically used for connecting external peripherals to the board or as points for digital logic probe connecting port pins are connected to LEDs and push buttons which allows you to easily monitor and test digital pin state Some of the pins are connected to other peripherals such as DS1820 temperature sensor cir cuit RS 232 communication circuit RS 485 communication circuit LCD etc PORTA pORTB_LOH r pORTB_HIGH PORTC f p PORTD LOH PORTO HIGH PORTF PORTG a VICU SOCKEL Hr ci Ei Li dsPIC30F6014A TI SW5 ius 4 1 PORTB HIGH LEUTE MCU system connection SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika OCOQHOOUQH
20. hip microcontrollers It is designed to allow students and engineers to easily test and E explore the capabilities of dsPIC microcontrollers It also allows dsPIC microcontrollers to be C interfaced with external circuits and a broad range of peripheral devices The user can there fore concentrate on software development only E Figure 1 illustrates the development board There are identification marks next to each com ponent on a silkscreen both on the top and bottom These marks describe connections to the E microcontroller operation modes and provide other useful information so that there 15 almost no need for additional schematics Zu m E META s e 3 _ 180 EL T 2228 gt fa gt 2224628488468 cx E Wo AK LEM 2M Oo M DID ER IM M WEM uuTINMMAAEAEXEXEBARAEE XXE A Ge 8 22 90 E RS5485 ow P r Amd wines a E T iN 4 3 M g e e B 4 8 4 Bt E T 5 eee den t CORE I gt Tir 115 4 77095 e 6 ET CECE AOR v em 16 h os DEVELOPMENT BOARD PRO4 y BY MIKROELEKTRONIKA rTYrrrYy rvYrYrrYirrrrrvrrr tvy BS 16 Bc
21. nnect the system to PC using the USB cable Then load your program into the microcontroller via the dsPICflash programming software supplied with the dsPICPRO4 Please refer to dsPICflash documentation for more information USB LINK POWER de VCC al5g825583835 VCC VCC gt ma n c nc nc m R7 10K Reset IBI dsPIC30F6014A boar a A Oe eS See 5 5 c c c t O POWER USB LINK R24 1K Js 1k C8 100n ONBOARD WSE 20 LP RXOXGXRVANG IL USB CONN Figure 9 USB 2 0 programmer circuit diagram Note There is no need to reset MCU after programming because the programmer will automatically reset it SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika OCOQHOOUQHUOOUPHOO USER MIKROICD HARDWARE IN CIRCUIT DEBUGGER MikroICD 15 a highly effective tool for Real Time debugging on hardware level The mikroICD debugger enables you to execute a program on dsPIC microcontroller and view variable values special function registers SFRs and EEPROM while the program is running MikroICD can be used with any dsPIC compiler designed by MikroElektronika mikroC for dsPIC mikroBasic for dsPIC or mikroPascal for dsPIC You just have to select the appropriate build type Release or ICD Debug build a project program the MCU and run debugger The mikroICD debugger uses on board programmer to communicate with the compile
22. ors can also be used for attaching logic probes or other test equipment RB9 NO dsPIC30F6014A 8 yh Direct port access circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika USER MULTIMEDIA CARD MMC SD MMC card is used as a data storage media for portable devices With MMC reader you can eas ily transfer data from card to your computer Microcontroller on the dsPICPRO4 commu nicates with Multi Media Card via SPI communication Figure 41 MMC SD multimedia card To enable MMC card you must turn on switches 1 4 5 and 6 of the DIP switch SWA In this way MMC s Chip Select MMC CS and SPI communication lines SCK MISO and MOSI are connected with the microcontroller The operating voltage of dsPICPRO4 is 5V DC where as that of MMC is 3 3V DC For this reason there 15 on board voltage regulator pro vided with MMC card MC33269DT 3 3 Data lines connecting microcontroller and MMC card must also be adjusted to 3 3V It is done using resistor voltage dividers shown in Figure 42 MULTIMEDIA GARD MIMIGESD 9 MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL SPI MISO SPI MOSI 8 27 98 EN am NO Precise reference voltage source 3 3V Figure 42 MMC SD circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WO
23. r and supports common debugger commands start Debugger F9 vec Run Pause Debugger F6 Toggle Breakpoints F5 1K 1K Run to cursor 24 use link Step Into F7 NEM Step Over F8 dsPICflash Flush RAM F2 MR Stop Debugger Ctrl F2 R1 27 MCLR To peripherales on development board Reset C8 100nF Figure 10 MikrolCD circuit diagram MIIKROIGD HARDWARE INCIRGUIT DEBUGGIER page T Note For more information on how to use mikrolCD debugger please refer to the mikrolCD documentation mikrolCD User s Manual You can also find it in Help documentation inside any compiler mentioned e MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER MANUAL RS 232 COMMUNICATION RS 232 communication enables point to point data transfer It is commonly used in data acqui sition applications to transfer data between the microcontroller and PC Since the voltage levels of the microcontroller and PC are not directly compatible with each other a level converter such as MAX232 must be used In order to provide more flexible system the microcon troller is connected to MAX232 jumpers J12 and J13 for RS 232A and jumpers J14 and J15 for RS 232B The jumpers J12 and J13 are therefore used to connect Rx and Tx lines to RF2 and RF3 pins whereas the jumpers J14 and J15 are used to connect Rx and Tx lines to
24. trademark of Microsoft Corporation All other trade and or service marks are the property of the respective owners O LLI CONTENTS ecccccon cs ac dsPICPRO4 KEY FEATURES 4 CONNECTING THE SYSTEM 5 Va INTRODUCTION 6 2 Switches and Jumpers 7 MCU Sockets 8 T Power Supply 10 lt lt On Board USB 2 0 Programmer 11 MikrolCD 12 RS 232 Communication Circuit 13 T Ethernet 14 DS1820 Digital Thermometer 16 lt DAC 17 Real Time Clock 18 RS 485 Communication 19 ES CAN Circuit 20 LEDs 21 Push Buttons 22 2x16 Character LCD 23 Graphic LCD 24 Touch Panel 25 A D Converter Test Input 26 Direct Port Access Connectors 27 MMC SD Multimedia 28 MikroElektronika Mikro e T fe uIeI c ofe1aIsIv fe u eITeM USER DSPICPRO4 KEY FEATURES a eee YS External power supply 9 32V AC DC 16 On Board USB 2 0 Programmer with MikrolCD support 17 RS232 A connector 18 RS232 B connector Reference voltage source 4 096V 19 On board serial ethernet module LCD 2x16 connector 20 LCD contrast potentiometer 21 A D converter test inputs 22 DS1820 temperature sensor connector 23 Resistor pull up pull down net 8x10K 24 Real time clock 25 DAC module 26 RS485 module 27 CAN module 28 P i T ical LCD 2x16 G dsPic PRO CU se de que LAT IC RE be 9
25. v ing a temperature range of 55C to 125C and accuracy of 0 5 9 It must be properly placed in the 3 pin socket provided on the dsPICPRO4 with its rounded side facing to the top as marked on the board see Figure 15 Otherwise the DS1820 could be permanently damaged The right position of DS1820 is marked on the silkscreen 125 C DS1820 DIGITAL THERMOMETER amp 55 LE DS1820 digital thermometer circuit diagram MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER MANUAL L DAC The dsPICPRO4 development system has an on board 12 bit D A converter MCP4921 used to per form digital to analog conversion After conversion the appropriate analog value appears on the connector CN17 Similar to A D converter unit the dsPICPRO4 also enables reference voltage selection for the operation of MCP4921 converter The appropriate voltage 15 selected using the jumper J16 The operation of this converter as well as its communication with the microcontroller is enabled by switches 2 3 4 and 6 of the DIP switch SWA DAG gt xo OL ov M Ko Q o od dsPIC30F6014A QN s Qo QN OO Oo CN QN QU QI QU QI QI QI cO CO NEUES uo Mee ES p DAC circuit diagram
26. ve our performance to better suit your needs Nebojsa Matic General Manager DISCLAIMER All products owned by protected by copyright law international copyright treaty Therefore you should treat this manual as any other copyright material The manual and products may not be copied partially or as a whole without written consent of MikroElektronika Manual PDF edition be printed for private local use but for distribution Modifying manuals products is prohibited HIGH RISK ACTIVITIES The products of MikroElektronika not fault tolerant nor designed manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance such as the operation of nuclear facilities aircraft navigation communication systems air traffic control direct life support machines or weapons systems in which the failure of Software could lead directly to death personal injury or severe physical or environmental damage High Risk Activities MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities LICENSE AGREEMENT By using our products you agree to be bound by all terms of this agreement Copyright by MikroElektronika 2003 2009 PIC PICmicro and MPLAB are registered trademarks of Microchip Company Windows is a registered

Download Pdf Manuals

image

Related Search

Related Contents

3352 Series  Philips DCR2022 Digital Cable Receiver  pdf  PLA 1.2 Analysis of Parallel-Line Assays - User Manual  Bedienungsanleitung für den Endkunden Multi  Samsung HT-DM150 User Manual  FR - Europa  Elektronisches Türschloss  Home Decorators Collection 1236010280 Installation Guide  平成17年9月の気象  

Copyright © All rights reserved.
Failed to retrieve file