Home
EasydsPIC4A User Manual
Contents
1. VCC E8 MRST vcc 10uF RF7 RBO GND RX RF4 RB1 RB9 C1 vec RB2 RB10 O E9 RF2 10uF V GND RB3 777 RB11 Ci Tiout ROS RB4 RB12 E10 C2 Riin J8 Res VJ Foo 10uF E C2 Riout RBG DU VCC v Tin RB7 O vcc T2out T2in RB8 G GND R im R2out vec RFO GND CH pp ae MAX232 Y RF8 OSC1A wn BEA w x1 O TX RES 8MHz OSC1B RF5 C6 II c7 RC13 RF2 RF3 Se SE RC14 RF3 RC13 Kee RAT RF6 D J RD9 RD8 RD3 RD2 GND vcc e We Pu RS 232 COMMUNICATION ECUS Connection between microcontroller and PC SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika leTefein eTeo1ofoln eTo ofoIn eTo USER S A D CONVERTER TEST INPUTS The EASYdsPIC4A development board has two potentiometers for demostrating the opera tion of analog to digital converter ADC Both potentiometers outputs are in the range of 0 5V These analog signals can be brought to two different analog input pins simultaneously The jumper group J13 enables connection between potentiometer P1 and one of the follow ing pins RBO RB1 RB2 or RB3 The jumper group J14 enables connection between poten tiometer P2 and one of the following pins RB4 RB5 RB6 or RB7 AD CONVERTER TEST INPUTS page S Figure 33 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 is possible
2. RESET CIRCUIT pagel g JP15 leg Ven avai 1o be applied ine bution INSEL Figure 16 Reset button As seen in figure 17 the microcontroller pin MCLR is connected to programmer circuit instead of being directly connected to the RESET push button VCC e RB9 RB10 PICflash On Board USB programmer R12 10K XXXX30 2DldSP MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S SN MANUAL d O PUSH BUTTONS The EASYdsPIC4A has 41 push buttons used to change the states of digital inputs on the microcontroller ports Connection between the push buttons and the following ports PORTA PORTB PORTC PORTD PORTE and PORTF is shown in figure 18 Jumper J15 determines whether a button press will bring a logic zero 0 or a logic one 1 to the appropriate pin When button is released pin state is determined by pull up or pull down port jumpers a I E Pushbuttons circuit diagram PUSH BUTTONS page 2 PORTA PORTB PORTE PORTD PORTF 7777775555 Y PMMM amp MMeuHM cEGAV 3cc8cMEec 3o068ee J e Qe9 e 4 J r 0 4 RAD a RBO L RB9 REO RDO RFO o o o o o RAM RB 2 RB10 RF RD RF1 Q o o o o o X ihe RB2 bs RB11 a RE2 un RD2 BEZ H o o o RB3 RBI BEZ ie RDS L BE o o o o o o O PO
3. Switches T TE Jumpers 8 gt MCU Sockets 9 Power Supply 11 ac On Board USB 2 0 Programmer 12 Oscillator 13 O mikrolCD hardware In Circuit Debugger 14 ICD2 15 LEDs 16 lt Reset Circuit 18 Push buttons 19 O 2x16 Character LCD 21 e Li Graphic LCD 22 Touch Panel 23 RS 232 Communication 25 A D Converter Inputs 26 Direct Port Access 28 e Ej MikroElektronika G C I ED d Gs FED ES x e b NYY 4 I Y lt N NN Z p w Se de 4 b d d b 4 page dS 10 11 12 13 14 15 16 17 EASYdsPIC4A KEY FEATURES MikroElektronika External power supply of 8v to 16v AC DC On Board USB 2 0 programmer with MikroICD In Circuit debuger RS 232 communication port DZ ICD2 external programmer connector A D converter test input potentiometers 2X16 character LCD display in 4 bit mode conector EASYdsPIC4A supports microcontrollers in DIP18 DIP28 and DIPAO packages OSC2 oscillator connector Jumpers to determine input pin performance in idle state connected to pull up pull down resistor Resistor network 8x10K Direct port access connectors Each UO pin corresponds to one LED LCD contrast potentiometar Switch group SW7 allowing all LEDs on ports A B C D E and F to be connected or disconnected from MCU pins Switches 6 and 7 of the same group enable LCD and GLCD backlight GL CD contrast
4. CD drive Please do not connect development system to a PC yet Step no 2 Install PICflash programmer software to enable a program to be transferred from PC to the microcontroller chip Installation instructions are contained in dsPICflash programmer manual Step no 3 Install USB drivers on your PC to enable programmer s hardware to ope rate properly on the EASYdsPICAA board For detailed installation instruc tions refer to nstalling USB drivers manual Step no 4 Connect the EASYdsPICAA 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 EASYdsPICAA 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 Next Another window appears click Next and the operating system will automatically find the drivers Click Finish to com plete this process and run dsPICflash as explained in dsPICflash program mer manual Next time you switch the EASYdsPICAA on Windows will not ask for new drivers update during driver installation CONNECTING THE SYSTEM After these four steps your EASYdsPIC4A 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 numer ous simple program examples which will ma
5. 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 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 10 A S EE EE O e e LI ee i 8 B Jer J m BH D CO _ P O O e w e I O e Be e CR i e e e o Te e e e f e m Wolo el ay IE 99 i e P WAY LYOddNS TVIINHDAL MOU SN Jo aseajd uoneuuoJur jeuonippe 1lueA 1sn NOK JO sjionpoud ino Jo Aue yum sule qoJd Bulduaiadxea ase nof J LUOD SOIMIWU IIJJO IeUU o Velo eToys IV Y EJN en 12e1u02 se d jesodoid ss uisnq e 10 JUBWIWWOD uonsenb 13470 Aue aney nof J ege Eq eEEITERSOE SNOILA TOS 3H VMCHVH ANY 34 VMLJOS U41U01149130 MINE
6. TE aE D DA ka wel H m Hifi S os L J F i D r k ASYdsPICAA Figure 11 Oscillators SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika J i page LN Cy D N O A OSG leTefein eTeo1ofoln eTo ofoIn eTo USER S MikroICD HARDWARE IN CIRCUIT DEBUGGER MikroICD is a highly effective tool for Real Time debugging on hardware level The mikroICD debugger enables you to execute a program on the 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 manufactured by MikroElektronika mikroC mikroBasic or mikroPascal You just have to select the appropriate build type Release or ICD Debug build the project program the MCU and run debugger The mikroICD debugger uses on board programmer to communicate with the compiler and supports common debugger commands BEE a Start Debugger F9 Ces e u ut A VE Run Pause Debugger F6 Toggle Breakpoints F5 Run to cursor F4 gt T ann 434 Step Into F7 S Step Over F8 dm e ac Flush RAM F2 Stop Debugger Ctrl F2 EM Z Z pic s0FA0T Y On Board USB programmer vec VCC with mikrolCD WI p USB link 7 Geen dsPICflash On Board USB mRST Uprog programmer To peripherales on development board MOIKROIGCD HARDWARE IN GIRG
7. break connection between two contacts The EASYdsPICAA development board has eight groups of switches Switch groups SW1 SW6 are used to enable external pull up pull down resistors on port pins Each pull up pull down resistor 1s individually enabled Switch group SW is used to enable disable LEDs connected to the microcontroller ports Each group of 6 port LEDs has its own switch Two lower switches of this group are used to enable disable LCD and GLCD backlight The last switch of this group is not used Switch group SWS is used to enable touch panel Switches 1 2 3 and 4 are BH DEE tdam S t9o o to o93 o PORTB amp C PORT A8D PORTE PORTF E PORTEGF EN SwitchisON amp LCD BCK GLCD BCK m NC C RW Switch is OFF GC Figure 2 Group of 8 switches SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika JUMPERS Jumpers like switches can break or establish connection between two points Under the plas tic cover of a jumper there is a metal contact which establishes connection when the jumper is placed over two pins Jumper as a switch JUMPERS Page amp ap Jumper is ON tomo3 Jumper is OFF to Gi Jumpers are commonly used as selectors between two possible connections via 3 pin connec tor As illustrated in figure 4 the middle connector pin can be connected to the left or right pin depending on
8. potentiometer OSC1 crystal 10Mhz Reference voltage source 4 096V ES ITI LN X XN E eh 18 19 20 21 22 23 24 25 NX 228 NEMESIS Ap U S ER ei SA 1 Ll Foe iy unl F m aip N Sl 1 wr 1 af es i l p Si CN a ELI uU a si i q D B 4 e 111 us M ii i w l 4 113 MM i zl v A Esc KE 333 7 h JININ J 2 zl a T ii i A Wi s RS stai t ME CONTR ER OR am F AR e CEASYdsPIC AA k GLCD mc Switch groups SW1 SW6 enabling pull up pull down resistors on port pins RESET push button Jumper J15 is used to select high or low state of pins on any button press 41 push buttons allowing control of all microcontroller pins CN11 touch panel connector Graphic LCD display GLCD connector Touch panel switch SW8 enabling disabling connection between touch panel and microcontroller and Touch panel controller SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL CONNECTING THE SYSTEM USER S SOT QUO OLIAUO OND O X e E e page 65 Apart from this manual the development system box contains development system product CD USB cable RS232 cable and user s manuals for dsPICflash programmer mikroICD Debugger and Installing USB drivers In order to use EASYdsPICAA properly it is necessary to go through the following steps Step no 1 Take the development system and product CD out of the box Insert the product CD into
9. to measure any analog signal that fits in the range acceptable by microcontroller For the EASYdsPIC4A this range is 0 5V MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S eXognIovofeTo ujyovofoTo uj ej odo MANUAL 2 Pull up pull down resistors on PORTB analog input pins should be disabled using SW1 Oo S Q VCC a pull up down PortB m ZZ RNI E14 J 6 FE Ce Treo S X 2 IE 4 j s REFERENCE 4 096 4 oi Potentiometer P1 is connected to RB2 EMEN i pin and potentiometer P2 to RB6 pin Y l e e l e e vcc vcc SW1 n vcc REF1 L 0 5V 0 5V J16 E K 10K We E14 e s s mm 3 oi E 10uF e x ha S fe S fe VIN 1 3 VOUT I ES s Ge M nn 2 Lj GND 2 100 L BB PUE z JA SE MRST VCC FL RBO GND RB1 RB9 RB2 RB10 RB3 o RB11 RB4 9 RB12 RB5 RDO E RB6 O RD yec RB7 VCC RB8 Go GND vcc C RFO GND Spill OSC4A il i RF4 aum OSC1B RF5 u RC13 RF2 me 22pF RC14 RF3 RA11 RF6 RD9 RD8 RD3 RD2 GND Vcc Retire VT Converter test input circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika leTefein eTeo1ofoln eTo ofoIn eTo USER S DIRECT PORT ACCESS All microcontroller input output pins can be accessed via IDC10 connectors 2 x 5 placed along the right side of the board F
10. E3MikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD waking it si ple oe SE l e 1 Wa k 4 m Lee Di in i te i Ke um j z q 1 o a Rb EN d e i ASS T TTAF al 1 i a B F 1 X oT GR Abr t wc S I L l ee tf ek B EE d E em Ji S i m h de WE Cl ou var LST es AE TTC TE x i cel em r 1 ee L Hewes S HE d MikroElektronika GOOD EU ER 2x16 LOD testina Pm z SR an D i ar FD m i k mud 1 m era D m APRES FUITE S s Lj y m M mmaa p AN NEM F F Led z a Ba ES EIU IC EASYdsPIC4A A large number of useful peripherals ready to go practical code examples and a broad set of add on boards make MikroElektronika development systems fast and reliable tools that can satisfy the needs of experienced engineers and beginners alike USB 2 0 WC N CIRCUIT TOUCH PROGRAMMER SCREEN TO OUR VALUED CUSTOMERS want to express my thanks to you for 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 improve our performance to better suit your needs Nebojsa Matic General Manager DISCLAIMER All products are owned by MikroElektronika and protected by copyright law and international copyright treaty Therefore you should treat this manual
11. RTC ae ty RTE O O OTT RE4 RD8 RF4 f o o o o Tl at RC13 RBS RES a RDI RFS o o o o o o ben RC14 p m o Kuu l Lame RF6 E RES E 55 9 Ka RB7 a gt BEZ L RF7 gt lt o o o o o o uM ute EE 8 Beleeg j lee As seen in figure 18 J15 is connected to 5V so the but ton press will bring a logic one 1 to the appropriate pin J15 OV on pin while 5V on pin while button is pressed button is pressed vcc vec GND Lj oun SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika leTefein eTeo1ofoln eTo ofoIn eTe USER S Referring to figure 20 jumper J2 is set to pull up position so that pull up resistor pulls the micro controller pin RB10 to 5 V By pressing the button the RB10 pin is connected to ground via J15 Accordingly only when the but ton is pressed the microcontroller senses a logic zero 0 Otherwise the pin state will always be a logic one 1 PUSH BUTTONS page S Referring ee IER CES x set to pull down position so that eee VCC pull down resistor pulls the micro PORTB amp C x controller pin RB10 to 0V J2 x By pressing the button the RB10 x js a N SW2 pin is connected to 5V via J15 Accordingly only when the button Qasr vec RB0 GND is pressed the microcontroller fre RB9 i I REZ RB10 5V while pressed sen
12. T 34 440 JO NO uin 0 S8YDIMS Sud NOW 9 pejoeuuoo sue sq31 e dsip q01 94XZ U9JIAS 440 NO Ajd dns Jamod euJe xe JOJ p u OU SI B19 yod gsn Burn u yM Ajddns semod gsn pue euj x usemjeq 8soouo OQ OV A I 8 Aid dns semod euJ9 X3 SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD I Tm 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 not limiting to implied warranties or conditions of merchantability or fitness for a 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
13. UIT DEBUGGER page a Q amp 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 of the mentioned compilers MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL ICD2 ICD2 connection is used for external Microchip programmer By means of jumper groups J11 and J10 you can choose pins to connect to external Microchip programmer Pin selection depends onthe type of the microcontroller in use III page IIT ICD2 Connector e Note For more information about ICD2 please look at www microchip com SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika 4 LEDs U S Light Emitting Diodes LEDs are components most commonly used for displaying pin digi P tal state The EASYdsPIC4A has 40 LEDs connected to the microcontroller ports PORTA o PORTB PORTC PORTD PORTE and PORTF A u x x e HE ES moa S un WM LL wer P o d Si wel kel Jape X JRET 5 d S 30 Sen Pr C KE ei mz bel e Japs oz ROS Sa ype ect Dot L JRES I Je JRF D M Figure 14 On board LEDs Each port LEDs can be enabled or disabled using switches of the switch group SW7 Switch 1 of the switch group SW7 enables disables LEDs on PORTB RBO RB12 and PORTC RC13 and RC14 Switch 2 of the switch group SW7 enables disa
14. 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 can be printed for private or local use but not for distribution Modifying manuals or products is prohibited HIGH RISK ACTIVITIES The products of MikroElektronika are not fault tolerant nor designed manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance such as in the operation of nuclear facilities aircraft navigation or communication systems air traffic control direct life support machines or weapons systems in which the failure of Software could lead directly to death personal injury or severe physical or environmental damage High Risk Activities MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities LICENSE AGREEMENT By using our products you agree to be bound by all terms of this agreement Copyright by MikroElektronika 2003 2009 PIC PlCmicro and MPLAB are registered trademarks of Microchip Company Windows is a registered trademark of Microsoft Corporation All other trade and or service marks are the property of the respective owners O EM Cc e O LLI O O CONTENTS ecccccon re Z cc e EASYdsPICAA KEY FEATURES 4 D CONNECTING THE SYSTEM 5 Z INTRODUCTION 6 zu O
15. ast can be adjusted using the poten tiometer P3 placed right above the GLCD oe m LLLLL de Figure 24 GLCD contrast adjusment potentiometer GRAPHIG LGD page R23 10 lt a GLCD BCK gg XXXXAVEDIdSP SO 21 S2 23 54 25 SE S Tmp T sc Figure 26 GLCD circuit diagram Note It is very important to understand that GLCD should be placed on or removed from the EASYdsPIC4A development board only after the power supply is switched off Otherwise it could be permanently damaged v MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S OOLIQUOOLINCOOOLIODO MANUAL TOUCH PANEL Touch panel is a self adhesive transparent panel that could be placed over the screen of graph ic LCD It consists of two separate foils which form a sandwich structure It is very sensi tive to press so that even a soft touch causes some changes on output signal It is used in var ious user friendly devices in combination with graphic LCD Connector CN11 enables this device to be connected to on board touch panel controller whose active part consists of 5 dis crete transistors Four switches of the SW8 enable or disable connection between this con troller and RB6 RB7 RC13 and RC14 pins TOUCH PANIEL Page 8 ALUPA Touch Panel SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika fy OSQHOOUADOOUPHOO USER S O e ALUP Touch Pa
16. bles LEDs on PORTA RAI1 and PORTD RDO RD9 Switch 3 of the switch group SW7 enables disables LEDs on PORTE REO REI RE2 RE3 REA RES and RES Switch 4 of the switch group SW7 enables disables LEDs on PORTF RFO RF6 and Switch 5 of the switch group SW7 enables disables LEDs on PORTE RE7 and RE6 and PORTF RF8 and RF7 When enabled LEDs will display the state of the corre sponding microcontroller pin Otherwise the LEDs are always off no matter what the port state is as no current can flow through them Q Note There is no corresponding LED for RA9 output MikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S eXognIoofeTo ujyoYofoTo uj ej odo Cf O MANUAL e E Figure 15 illustrates the connection between PORTB pins and the corresponding LEDs A resistor 97 is serially connected to the LEDs in order to limit their current In this case the resistor value is 1K S o amp e Geesen mi Coos PORTE PORTF PORTE amp F CURRENT FLOW ipeo t lt vcc GND RB9 RB10 RB11 RB12 RDO ZU VCC vec O GND f XXXXAVEDIdSP SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika leTefein eTe1ofoln eTo ofoIn eTo USER S o 4 e MANUAL RESET CIRCUIT Apart from other pushbuttons there is one red button on the far left position of the board marked as RESET It is used for MCU reset
17. ed in figure 6 All MCU ports are directly connected to 2x5 10 pins direct port access connectors placed on the right side of the board Such connectors are normally used for connecting external peripherals to the board or for digital logic probes for testing and measurement Also all ports are connected to LEDs and push buttons which allows easy monitoring and testing digital pin state Some pins are connected to other peripherals such as RS 232 communication Precise Voltage Reference LCD etc depending on MCU internal peripheral organization MCU SOCKETS pase SH PORTBAC il O PORTAGD SR Z Z PORTE co eem mm iiS PORTESF on Wes LCD BCK gt i VCC SLCD BCK NEA UCC NC co Mlle NC MRsT O fe a e e O le a e ei O fe e fe oe O O O fe e e ei O le e le e O je 9 le e O fe fe e e o ji gg fe I si e DIP18 Figure 6 System connection 8 8 DIP40A DIPAOB el DIP28 A B C MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL POWER SUPPLY Ex oN The EASYdsPIC4A can use two power supply sources regulated supply over USB cable by default and external power supply external AC DC power adapter When using power sup ply over USB cable the system should be connected to PC using the USB programming cable while the jumper J12 should be set in the right hand posit
18. ion POWER SUPPLY page When using external power supply the EASYdsPIC4A board produces 5V using LM7805 voltage regulator The external power supply can be AC or DC while power supply voltage ranges from 8V to 16V The jumper J12 should be set in the left hand position Figure 8 illustrates USB and external power supply con nectors i USB USB Power Supply USB External Power Supply C3 C3 AMEN SUPPLY VCC x 470uF REG1 7805 CN10 8 16V AC DC J12 CN7 5V FP1 5V I 3 EXT USB MC D gt USB E1 C14 C15 GND 470uF 100nF 100nF E CS J12 is set to USB power suppl P Ae SUPPLY SELECT J12 in the left hand position EXT ll ihe system is powered from the external AC DC power adapter SUPPLY SELECT Aa USB system is powered from the USB cable J12 in the right hand position Figure 9 Power supply select jumper SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika leTefein eTo1ofoln eTo ofoIn eTo USER S 2 ON BOARD USB 2 0 PROGRAMMER U S There is no need to use external equipment during programming as the EASY dsPICAA devel O opment system has its own on board USB 2 0 programmer All you need to do is to connect the system to PC using the USB cable Then load your program into the microcontroller via the dsPICflash programming software supplied with the EASYdsPIC4A Please refer to dsPICflash documentation for more informa
19. ke your first steps Easy SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika amp Foy OCQHUOOURHOOUHHOO USER S R i MANUAL 6 INTRODUCTION U The EASYdsPIC4A development system is a full featured development board for almost all e Microchip dsPIC30 microcontrollers It is designed to allow students and engineers to easily test and explore the capabilities of these dsPIC microcontrollers It also allows dsPIC30 gt microcontrollers to be interfaced with external circuits and a broad range of peripheral devices The user can therefore concentrate on software development only Figure 1 illustrates the development board There are identification marks beside each com ponent on a silkscreen both on the top and bottom These marks describe connections to the A microcontroller operation modes and provide additional useful information Since all rele e vant information 1s provided on the board there is almost no need for additional schematics E TERM opea pa DIL it I Q O s O PIC30F2012 PIC30F501 ON BOARD E PROGRAMMER d DEL E f Mi UNICATION lt te P s 4 L I PIC30F301 1 me SU PICS 0 9014 PICIORAOT PIC SOF 401 2 subd pales RETI 3 tea IND wg gt ma x SI EI 7 E mM ub L 4 t x c TEE ps oxo cc Oana D onal L RZ t a z zr M t w i m i R v 0C E F4 8 OKT C
20. nel circuit dagram D 33323333J33 J33J9J3J J99 0 AEPDLEIACLLEPCILIEIO TT TOUCH PANEL page S XXXX30 2IdsP TOUCHPANEL CONTROLLER m OCURE CN11 connector It is very easy to connect touch panel to the EASYdsPIC4A development system You just need to place a thin ribbon cable in on board connector CN11 as shown in figures 29 and 30 Thin ribbon cable placed in CN11 connector e Note It is very important to understand that touch panel should be placed on or removed from the EASYdsPIC4A development board only after the power supply is switched off Otherwise it could be permanently damaged MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S OOLIQUOOOLINCOOOLIDOO MANUAL RS 232 COMMUNICATION 25 RS 232 communication enables point to point data transfer It is commonly used in data acquisition applications to transfer data between the microcontroller and PC Since the volt age levels of the microcontroller and PC are not directly compatible with those of RS 232 a level transition buffer such as MAX232 must be used In order to provide a more flexible system the microcontroller is connected to the MAX232 via the jumper groups J8 and J9 The jumper group J8 is used to connect Rx line to RC14 RF2 RF4 or RF7 The jumper group J9 is used to connect Tx line to RC13 RF3 RF5 or RF8 SISUICENR RS232 connector page RS 282 COMMUNICATION
21. op ijnd dn jnd os 9 pi ui eoueuuoj Jed od ou J9jep o Jeduunf psyoeye J0 SIS J e oAeu jou soop uid ejeudoudde ou AAO S Us J 9MS LMS sdnoJD youms Duisn YJOM U JO SISOJ o Date UOO 9Je Sod Suid GxZ 1o o u u09 uod uid o YIOMIOU 10 SIS H AR 51000 eued yono UUA JO 159 Je joJguoo jeued uono A960 v e8ejo SOUdIOJOY Vt JiIdSPASW3 9 NOD IANVdHONnOL EMIIILBID A ttttttt xs eT gd d d g d l T3 LI1 5 S RERO una D IN i i I rit JON x hi d 93 AVA LH DS TP 1309214 f t t V aM SM LER e c 3t c3u Dr IR e LO yndul s9 JojoAuoo G V Joj euuo ZAI sobeyoed Ordid pue gzdid 8L did ur Ja JOSJUODOJOILU suoddns O dSPASVIA Bir ut rio LIA XY pue x 1 eiqei2 ejes UM uoneorunuuoo ZEZSHY d x x NI 1SYHINOS 0219 Yordia J9 8W01 U9 0d jsejuoo GO19 1 vINOD 1 1 Os ce E e Rx A 2 TtITTEP 2 A H O a 20w22 gt TEL cR m 3 Wl 5 TTTTTITTTT Jowweibold os 9 dixojy pue Sez asn WEI ejejs MO YBIY Suid agang oj Suoung ev 4O31 35 O Bai 17M WSO Ag CHVAL FOIT C np N Te uoneoiunuluoo gsn Wellen KE ae vt 3lelSPASV3 H3WWAVHODHd SN NI ING HLM pessaJd si uoynq y uSuM suid indui ou Jo ejejs Moj uBiu Dalias o Jeduunf N3119 19s 2J 1uBiproeq A079 pue OO se m se 4 pue q 9 g y spod uo SC
22. or each microcontroller port there is one connector provid ing up to eight port pins and two additional pins connected to VCC and GND DIRECT PORT ACCESS page dl Direct port access connectors These connectors can be used to connect the system to exter nal devices such as Serial Ethernet Compact Flash MMC SD ADC DAC CAN RTC RS 485 etc If on board and external peripherals use the same pins then on board peripherals must be disconnected from the micrcontroller by setting the appropriate jumpers The connectors can be also used for attaching logic probes or other test equipment Connection of external guo peripheral via flat cable MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD O MANUAL VCC J1 1 1 Pull down line 2 is connected 3 3 HN 1 SW1 2 Pull up line is O FT zm connected 3 1 RB5 All lines RB6 2 are disconnected RB7 3 RPACK8 9 8x10K MRST VCC RBO GND DIRECT PORT ACCESS page X e RBS Q RDO RB6 RD1 RB7 O VCC VCC CN1 RBS GND oe G ges RBO RBI GND Spil RB2 RB3 OSC1A 71 RF4 Bo OSC1B RF5 RB4 RB5 s DI a i Gs RB6 RB7 RA11 RF6 KR RDO RD8 RD3 RD2 us E VCC u HEADER 5x2 FIUZA PORTB connection SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika esi A 901A pue 0 OJ9Z 3160 JO sjeu Dis o 1 p pinous suid uod ji dn jnd joejeg uw
23. qne g SL mot wo j e e oe B ni f D am mal ei ai gei sch DIP2 b d ver e a d iz o i mmol Moz ate ALL Wim 0 Ce f KI gt A mJ d 03 4 A Te Sun O re E Ost t abe GEI Dia omena T G4 OP 40 Ter X get 0 19 0 mg x ggg e R d e DIP40A k Sin PY Tr e PIC30F2011 Ip w TI G d i atai gu i PIC30F3012 ug E f l 8 E E 3 MIZ 8 BS E e e GA 1 o d REFE ERE 4 i Lu TT E d oe dq Q 19 Be JA ICE 4 096 J e L Jl aee Lt AMI aee am u gt LLL LILLIE Ch nez iw ne L LIE neg an 059mm a 5 geen Ak 2 AN _ IE ER ds L 7 Ec 3 E s 3 x TH S TE O E O O r t d SEH 20 PIC3U 1010 PIC30F2020 NOD K d ARA de lge S didddude oy mur We TOUCHPANEL CONTR EASYdsPIC 4A M 4 lo ee E we E wa e EASYdsPIC4A development board DEn EI SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL SWITCHES USER S SOT QUO OLIAUO OND O le e E e The EASYdsPIC4A development board features a number of peripheral devices In order to enable them before programming the appropriate jumpers or switches have to be properly set SWITCHES page i Switches are mechanical devices which have two positions ON and OFF Their functon 1s to establish or
24. ses a logic one 1 Otherwise fF pe x RB12 the pin state will always be a logic d id VCC RB10 zero 0 RB6 RD1 RB7 VCC J15 RB8 GND VCC RF0 RF1 Figure 21 Button with pull down resistor MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S OOLIQOOOLINOOOLIDOO MANUAL 2X16 CHARACTER LCD A standard character LCD is probably the most widely used data visualization component It can usually display messages in two lines each containing up to 16 alphanumeric characters These are made up of 5x8 pixels The character LCD communicates with the microcontroller via 4 bit data bus Its connection to the microcontroller 1s shown in figure 23 ZKT CHARACTER LCD page S VCC Q LCD BCK bi e VCC aI 1 3 A LCD 2x16 circuit diagram v Note It is important to understand that LCD should be placed or removed from the EASYdsPICAA only after the power supply is switched off Otherwise it could be permanently damaged SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika leTefein eTeo1ofoln eTo ofoIn eTo USER S GRAPHIC LCD A graphic LCD GLCD provides an advanced method for displaying text and graphics While a character LCD can display only alphanumeric characters a GLCD can be used to display messages in the form of drawings and graphics The most commonly used graphic LCD has the screen resolution of 128x64 pixels The GLCD contr
25. the jumper s position Figure 4 Jumper as a multiplexer Jumper is not placed and Jumper is placed on the left side Jumper is placed on the right side middle pin is unconnected connecting middle and left pin connecting middle and right pin MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL MCU SOCKETS The EASYdsPIC4A is delivered with the 40 pin microcontroller dsPIC30F4013 The user can remove this chip and fit another microcontroller into the MCU socket DIP40 DIP28 or DIP18 packages MCU SOCKETS page F PULL UP PORID pk PULL F POgr y Ai J ZEN RESISTORS Ne rl lt ice Prud LST Figure 8 MCU sockets Note There are two DIP40 and three DIP28 sockets with different pinouts DIP40A DIP40B DIP28A DIP28B and DIP28C Make sure to select the socket with the appropriate pinout for each microcontroller For example the PIC30F2010 uses DIP28A socket the PIC30F2012 uses DIP28B socket whereas the PIC30F2011 uses DIP28C socket The DIP18 socket is used for all 18 pin dsPIC30 microcontrollers v Note Since all packages have parallel connections it is not allowed to have more than one microcontroller on the board at a time SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika leTefein eTeo1ofoln eTo ofoIn eTo USER S o 4 Microcontroller pins are routed to various peripherals as illustrat
26. tion MIMIS S A OW e1c30 gu a eic 30 ag E eic 30F 40 Figure 10 USB 2 0 programmer ON BOARD USE 2 0 PROGR Note There is no need to reset MCU after programming because programmer will reset the MCU automatically MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD Ul gv vu o m em Q As A E le r m Fa e en Wa y up an Ki w TA Ki a An w WAS d kai ae Se w P A ei Lam d b A d 1 ue b d 2 es v rye VIII W PEN wv Y e tuf W KE NI BE xu Li aad ae LiT TALI ya VTT KAAL OSCILLATOR Since there are so many sockets on the EASYdsPIC4A board there are two oscillators con nected to two main sections of the MCU sockets One oscillator designated as OSC1 is con nected to DIP40A DIP40B and DIP28A socket Another one denoted as OSC2 is connect ed to DIP28B DIP28C and DIP18 socket S Munu gt S anal UCD2xJ6 EE ZEAL 3 R LII d t 1 Le sl SIN PH230F3D12 oleae vert i 1 GLCD 128x64 e U 3 T O LW Mom a d t TOLICHPANEL CONTR ER kt 1 r c uu m mu wi am 3 ie EE Fee CET EL ZA CH deal Ger x BN 11111111 EEN H J i z SEI Ta a b paoaraar ma v bu mni NC a I x me al aa ei e SA F ra re x E Pail gq mal 1 ER ora E y T J ki i F VIL m i Brea
Download Pdf Manuals
Related Search
Related Contents
LensData SLK Handbuch 取扱説明書 - 日立の家電品 Hollow-Fiber module for 3D-culture Samsung 2033SW Vartotojo vadovas MANUAL OPERADOR User Manual - Howard Computers - Kneease connector as shown above (User Manual Chapter 3 Manuale dell`utente SUPER MICRO Computer 6016T-6RF+ User's Manual Copyright © All rights reserved.
Failed to retrieve file