Home
EasyPIC™ v7 for dsPIC30® User Manual
Contents
1. a ro ee Lo e Cl displays A EE AA Ges Kzffgtdlsielehhdng Make sure to turn off the power supply before placing LCD onto the board Otherwise your display can be permanently damaged ND and VCC Display power supply lines Figure 11 2 2x16 LCD connection schematics VCC 5V VCC BRD LCD SOCKET page 24 N III BCK LIGHT display has two rows consisted of 16 character fields Each field is a 7x5 pixel matrix Communication with the display module is done through CN7 display connector Board is fitted with uniquely designed plastic display distancer which allows the LCD module to perfectly and firmly fit into place DATA BUS SW10 P LCD 2x16 characters Liquid Crystal Displays or LCDs are cheap and popular way of representing information to the _ eee end user of some electronic device Character LCDs can be used to represent standard and custom characters in the predefined number of fields EasyPIC v7 for dsPIC30 provides the LCD 2X16 CHARACTERS IN 4 BIT MODE GND GND AEN VCC IMPORTANT BE SURE TO TURN OF THE POWER SUPPLY BEFORE PLACING LCD OR GLCD ON DEVELOPMENT BOARD OTHERWISE BOTH LCD AND GLCD UNITS CAN BE W connector and the necessary interface for Supporting PERMANENTLY DAMAGED i BE SURE TO PLACE LCD AND GLCD PROPERL
2. i eee wa a a a gt f e Gm BW 4 y _ oD 2 ay 4 A y fg WW a Fg a EN KL g E we emm A A i GE K V SE E an S e bh paes l is already routed to the most appropriate pins of the microcontroller sockets SW Sam ne gm gee gm 8 NACT ChNANNHAQC Thr USL COLPNICEL i l W wf GU w W l EE T Ww Ww LU I Each mikroBUS host connector consists of two 1x8 female headers containing pins that are most likely to be used in the target accessory board There are three groups of communication pins SPI UART and IC communication There are also single pins for PWM Interrupt Analog input Reset and Chip Select Pinout contains two power groups 5V and GND on one header and 3 3V and GND on the other BUS S RD2 PWM RD8 INT RF2 RX RF3 TX RF3 SCL RF2 SDA AN RB6 RST RA11 CS RB11 Lad SCK RF6 p MISO RF2 MOSI RF3 3 3V l SEA ee eee r K IU E E E Di J AN Analog pin RST Reset pin CS SPI Chip Select line SCK SPI Clock line MOSI SPI Slave Input line GND Reference Ground MISO SPI Slave Output line V VCC 3 3V power line BUS RD3 PWM RDS INT RF2 RX RF3 TX RF3 SCL RF2 SDA 5V GND AN RB7 RST RB10 CS RB12 LS 3 B SCK RF6 MISO RF2 MOSI RF3 3 3V PWM PWM output line INT Hardware Interrupt line RX UART Receive line TX UART Transmit line 1x8 h
3. Device Status Idle Address Oh 7 MikroEle 1 COMPILERS BOOKS making siege D v7 Installation wizard 6 simple steps E mikroProg Suite for PIC v2 30 Setup Emms Welcome lo the mikroProg Suite for PIC v2 30 Selup Wizard This wizard wall guide you through the installahan of Prog Suite for PIC v2 30 is recommended that you dose al other applications before starting Setup This wil make it possible to update reevant system fies without having to reboot your computer Oe ack Next to contrue La om Step 1 Start Installation ps C net gt Jl oe Step 3 Install for All users or current user CN mikroProg Suite for PIC v2 30 Setup eal Installing Please wait while miroProg Suite for PIC v2 30 is beng installed Create folder C ProgramData acres ft Windows nt Menu Programs Miroeleitrondca pk We oe Show detads Step 5 Installation in progress E mikroProg Suite for PIC v2 30 Setup License Agreement Please review the beense terms before instaling mieroProg Suite for PIC v2 30 Press Page Down to see the rest of the agreement dilektronika Assoaates License Statement and Limited Warranty IMPORTANT READ CAREFULLY This kees statement and kied warranty constitute a legal agreement CLicenme cement between you either as an individual or a erage ently and mi Bek orka Ges fhware identifed above or printed If you accept the terms of the agreement
4. 100K aC Panel controller Make sure to disconnect other peripherals i S ER and connection LEDs and additional pull up or pull down Figure 13 5 Turn on switches BOTTOM e les sox Schematics resistors from the interface lines in order 5 through 8 on SW11 to RR ap DRIVEA not to interfere with signal data integrity enable Touch panel controller y mmm g mut d E J B aie A d S la J SZ ne JOI U LIU 4 digit seg d One seven segment digit consist of 7 1 LEDs which are arranged in a specific formation which can be used to represent digits from O to 9 and even some letters One additional LED is used for marking the decimal dot in case you want to write a decimal point in the desired segment EasyPIC v7 for dsPIC30 contains four of these digits put together to form 4 digit 7 segment display Driving such a display is done using multiplexing techniques Data lines are shared between segments and therefore the same segment LEDs in each digit are connected in parallel Each digit has it s unique digit select line e Enabling the display which is used to enable the digit to which the data is currently being sent By multiplexing data through all four segments fast enough you create an illusion that all four segments are in operation simultaneously This is possible because human eye has a Slower reaction time than the mention changes This way you can represent numbers in dec
5. EASBASEEH SAS ene ie oe e Be Standard and PWM driven back light As for LCD we have allowed GLCD back light to be enabled in two W lzer different ways 1 It can be turned on with full brightness using SW10 8 switch 2 Brightness level can be determined with PWM signal from the LEDs ON microcontroller allowing you to write custom back light controlling software This back light mode is enabled with SW10 7 switch Wee Perey Gis In order to use PWM back light both SW10 7 and SW10 8 switches must be enabled at the same time Figure 12 1 GLCD 128x64 connection schematics EasyPIC for dsPIC30 page 25 Touch panel is a glass panel whose surface is covered with two layers of resistive material When the screen is pressed the outer layer is pushed onto the inner layer and appropriate controllers can measure that pressure and pinpoint its location This is how touch panels can be used as an input devices EasyPIC v7 for dsPIC30 f al fl i d f e al em e L ay L em a es ken A emm ferm em em em E j A 7 J h a bam f arn CH el KL EL UM LITT LUULTT OUO0IIETI Cau J are Ll 8 inp ATA TARAA EH A tJ NV l a tI GY 4 AT J m em TEE em emm a We Aa Den E gt e eo A e gf p a _ D e D ele em 9 a S Li S aal g N 4 WW Le p 5 S P A LS x 4 oe Kee Le as
6. select the frst option below You must accept the agreement to install m roProg Suite for PIC v2 30 Click Next to continue I accept the terms of the License Agreement Ido not accept the terms of the License Agreement i R s For PIC an Se re eee Step 2 Accept EULA and continue C mikroProg Suite for PIC v2 30 Setup Choose install Location Choose the folder in which to install mikroProg Sate for PIC v2 30 Setup wil install miroProg Suite fer PIC v2 30 in the following folder To instal in a afferent folder cick Growse and select another folder Click Install to start the installation pg J meng 11 om Step 4 Choose destination folder mikroProg Suite for PIC v2 30 Setup E Emm Completing the mikroProg Suite for PIC v2 30 Setup Wizard mikroProg Site for PIC v2 30 has heen installed on your computer Cick Finish to dose this wizard Step 6 Finish Installation page 13 D I ce ae D I O eh D I Cc ae e D I O es ei mikrolCD In Circuit Debugger What is Debugging Every developer comes to a point where he has to monitor the code execution in order to find errors in the code or simply to see if everything is going as planed This hunt for bugs or errors in the code is called debugging There are two ways to do this one is the software simulation which enables you to simulate what is supposed to be happening on the microcontroller as
7. Board contains switching power supply that creates stable voltage and current levels necessary for powering each part of the board Power supply section contains two power regulators MC34063A which generates VCC 5V and MC33269DT3 3 which creates VCC 3 3V power supply Board can be powered in three different E ways with USB power supply CN1 using external adapters EE iu Te ai q a via adapter connector CN25 or additional screw terminals owl a KS Vz CN24 External adapter voltage levels must be in range of 9 32V DC N gt and 7 23V AC Use jumper J8 to specify which power source you are using j and jumper J16 to specify whether you are using 5V or 3 3V power supply Upon providing the power using either external adapter or USB power source you can turn on power supply by using SWITCH 1 Figure 3 1 Power LED Green ON will indicate the POWER SUPPLY presence of power supply Figure 3 1 Power supply unit of EasyPIC v7 for dsPIC30 VCC 5V VCC USB Vout d VCC 3 3V e VCC BRD VCC 5V Vin wi LD48 MC33269DT3 3 C43 E6 E8 A 100nF 10uF R42 220uF 35V T L 2K2 VCC 5V ot VCC 3 3V 3 3V VOLTAGE REGULATOR POWER SWITCH1 dale VCC USB L1 220uH E7 D5 220uF 35V MBRS140T3 5V SWITCHING POWER SUPPLY 1N4007 1N4007 D3 D4 Figure 3 2 Dual power supply unit schematics page 6 EasyP C for dsPIC30 DUAL POWER SUPPLY EasyPIC v7 for dsPIC30 development board Supports both 3
8. DIP40B Figure 4 7 RC15 connected to X1 quartz crystal Figure 4 6 RC15 as I O pin when using internal oscillator PIC microcontrollers normally use a quartz crystal for the purpose of providing clock frequency The EasyPIC v7 for dsPIC30 provides two sockets for quartz crystal Microcontrollers in DIP40A and DIP40B packages use socket X1 OSC1 for quartz crystal EasyPIC for dsPIC30 If you want to use microcontrollers in DIP28A DIP28B DIP28C and DIP18 packages it is necessary to put quartz crystal into socket X2 OSC2 The value of the crystal depends on the maximum clock frequency allowed and your application You can always exchange the default LOMHz crystal with another one D v7 page 9 n board programmer Socket selection Jumpers D J2 J3 and J4 are used to select PGC and PGD programming lines for your microcontroller Make sure to place jumpers in the proper position for your socket D I Cc ae th D I O ei mikroProg USB 2 0 programmer debugger IN CIRCUIT SOCKET SELECTION SOCKET SELECTION DIP40A DIP40B DIP28C DIP18 DIP28A DIP28B Why so many LEDs Three LEDs indicate specific programmer operation Link LED lights What Is mikroProg up when USB link is established with your PC Active LED lights up l l l l a when programmer is active Data is on when data is being transferred mikroProg is a fast USB 2 0 programmer with mikrolCD hardware In Circuit
9. any time without prior notice if necessary 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 Mikro lektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities TRADEMARKS The MikroElektronika name and logo the MikroElektronika logo mikroC mikroBasic mikroPascal mikroProg mikromedia EasyPIC EasyPIC PRO mikroBUS and Click boards are trademarks of MikroElektronika All other trademarks mentioned herein are property of their respective companies All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies and are only used for identification or explanation and to the owners benefit with no intent to infringe Copyright 2014 MikroElektronika All Rights Reserved DUAL POWER SUPPLY If you want to learn more about our products please visit our web site at www mikroe com If you ar
10. between the programmer and PC software compiler or mikroProg Debugger Smart engineering allows mikroProg to support all dsPIC30 Suite for PIC DIP microcontrollers from Microchip in a single programmer Outstanding performance and easy operation are among it s top features How do start A IMPORTANT Programming Debugging mode raises MCU voltage to 5V In order to start using mikroProg and program your microcontroller you just have to follow two simple steps When on board mikroProg programmer is in programming debugging mode it automatically raises the MCU voltage to 5V regardless of the power 1 Install the necessary software supply selection jumper J16 Note that all external peripherals that can Install USB drivers only work on 3 3V must be removed from the board when programming Install mikroProg Suite for PIC software debugging is in progress otherwise they can be permanently damaged When programming debugging is not in progress execute mode or release 2 Power up the board and you are ready to go mode you can connect both 3 3V or 5V peripherals to the board depending Plug in the programmer USB cable on the position of jumper J16 LINK LED should light up page 10 EasyPIC for dsPIC30 D v7 LINK ACTIVE DATA VCC 3 3V VCC 3 3V VCC 5V LD45 LED DATA LED USB VCC BRD R13 MCU VPP MCU PGC MCU PGD Programming with ICD2 ICD3 EasyPIC v7 for dsP
11. cece errr 10 Installing programmer Crivers c eee e eee ees 12 Programming software 13 mikrolCD In Circuit Debugeer eee 14 Communication UART via RS 232 aier 16 UART Vid USB aaaeaii reren 17 CAN COMMUNICATION EE 18 Connectivity mikroBUS sockets 0c ccc eee cece eee eee 19 Input Output Group le Displays LCD 2x16 characters 24 GLCD 128x64px oo ec ececcccccceeeceeeeeeeenens 25 Touch panel controller eee eeeeees 26 4 digit 7 seg display soiorn 2 Other Modules DS1820 Digital Temperature Sensor 28 LM35 Analog Temperature Gensnt 29 PUGINOUIS 544 t0000s0neermeemrese verereie ria 30 PC FERRON 31 WEE 32 Additional CND SE What s Next What s Next ee SE ee cs seuwuw en 34 page 3 F d A SZ Z Ce A Gm RW a KA ry GE Sa 3 Ka Zea AN SS A Af CH Ka TE E WE Vu wm eceecectes Foam toa mAN A mA e A CA a SCH A i TW a Aen Jee mm Je e es DER Se dsPIC30F microcontrollers are 16 bit high performance digital signal J VU controllers suitable for advanced motor control algorithms digital power converters speech and audio applications We realized that benefit and a r E N SR l AA 3 start to develop a new system which is convenient for wide range of EE Die NC KKK eg E dsPIC30F microcontroller family produced in DIP packages We focused Kee SEA KK e S Ki C or wWPOR TAN
12. two lines is done using J13 jumper When placing the sensor in the socket make Sure that half circle on the board s silkscreen markings matches the rounded part of the LM35 sensor If you accidentally connect the sensor the other way it can be permanently damaged and you might need to replace it with another one During the sensor readings make sure that no other device is using the selected analog line as that may interfere with the readings D v7 EasyPIC for dsPIC30 N al eo OI C O Board provides a separate socket TS2 for the LM35 sensor in TO 92 plastic packaging Readings are A done with microcontroller using S single analog input line which is selected with jumper J13 Jumper connects the sensor with either PB8 or PB10 microcontroller pins N TOP VIEW VCC 5V DATA BUS Figure 16 5 LM35 connected to RB8 microcontroller pin J J13 page 29 N H Ga UO VG OI lt lt FS Oo Digital signals have two discrete states which pe are decoded as high and low and interpreted as logic 1 and logic 0 Analog signals on the other hand are continuous and can have any value within defined range A D converters are Specialized circuits which can convert analog signals voltages into a digital representation usually in form of an integer number The value of this number is linearly dependent on the input voltage value Most microcontrollers nowadays inte
13. your code lines are executed and the other most reliable one is monitoring the code execution on the chip itself And this latter one is called In Circuit debugging In Circuit means that it is the real deal code executes right on the target device What is mikrolCD The on board mikroProg programmer supports mikrolCD highly effective tool for a Real Time debugging on hardware level The mikrolCD debugger enables you to execute your program on the host PIC microcontroller and view variable values Special Function Registers SFR RAM CODE and EEPROM memory along with the mikrolCD code execution on hardware Whether you are a beginner or a professional this powerful tool with intuitive interface and convenient set of commands will enable you to track down bugs quickly mikrolCD is one of the fastest and most reliable debugging tools on the market Supported Compilers All MikroElektronika compilers mikroC mikroBasic and mikroPascal for PIC dsPIC and PIC32 natively support mikrolCD Specialized mikrolCD DLL module allows compilers to exploit the full potential of fast hardware debugging Along with compilers make sure to install the appropriate programmer drivers and mikroProg Suite for PIC programming software as described on pages 12 and 13 page 14 Debugee CD In Circuit deed ed for testingan mikrolCD eg in mi debugger How do use the debugger When you build your proj
14. 3V and 5V power supply on a 33V SV single board This feature enables you to use wide range of peripheral boards How to power the board 1 With USB cable To power the board with USB cable place jumper J8 in USB position and place jumper J16 in 5V or 3 3V position You can then plug in the USB cable as shown on images and and turn the power switch ON 2 Using adapter Set J8 jumper to EXT position To power the board via adapter connector place jumper J8 in EXT position and place jumper J16 in 5V or 3 3V position You can then plug in the adapter cable as shown on images EH and ES and turn the power switch ON To power the board using screw terminals place jumper J8 in EXT position and place jumper J16 in 5V or 3 3V position You can then screw on the cables in the screw terminals as shown on images and and turn the power switch ON EasyPIC for dsPIC30 Power supply Power capacity via DC connector or screw terminals 7V to 23V AC or 9V to 32V DC or via USB cable 5V DC up to 500mA with USB and up to 00mA with external power supply power supply page 7 Supported microcontrollers Board contains six DIP sockets DIP40A DIP40B DIP28A DIP28B DIP28C DIP18 With dual power supply and smart on board mikroProg board is capable of programming and debugging 14 different microcontrollers from dsPIC3O0F family VCC MCU DI P40A VCC MCU VCC MCU DIP40 B VCC MCU
15. 5 C accuracy for temperatures within the range of 10 to 85 C It requires 3V to 5 5V power supply for stable operation It takes maximum Ar ii 4 See 20 BI DSis2O0 D eg H SE el DSI820 psiaz0 Figure 15 1 DS1820 not connected Figure 15 2 DS1820 placed in socket Figure 15 3 DS1820 connected to RA11 pin Figure 15 4 DS1820 connected to REO pin EasyPIC v7 for dsPIC30 enables you to establish 1 wire communication between DS1820 and the microcontroller via RA11 or REO microcontroller pins The selection of either of those two lines is done using J9 jumper When placing the sensor in the socket make sure that half circle on the board s silkscreen markings matches the rounded part of the DS1820 sensor If you accidentally connect the sensor the other way it may be permanently damaged Make sure to disconnect other peripherals except 1 wire LEDs and additional pull up or pull down resistors from the interface lines in order not to interfere with signal data integrity page 28 of 750ms for the DS1820 to calculate temperature with 99 bit resolution 1 wire serial communication enables data to be transferred over a Single communication line while the process itself is under the control of the master microcontroller The advantage of such communication is that only one microcontroller pin is used Multiple TOP VIEW DS1820 X Xe TS1 VCC BRD Figure 15 5 DS1820 connected to RA11 pin D
16. Exeenples Developenent Sterns EarydsPIC6 Led Blinking d edeanking fc mikroC PRO for dsPIC v 5 6 0 C Users Public Documents MikroelektronikalumkroC PRO for dsPiC Examples Development Systems EasyasPIC Led Biinking LedBlinking oxpds NOT REGISTERED 2 eg Watch Volues M d se Add x w ddal ke Removed Figure 5 3 mikroC PRO for dsPIC compiler in debugging view with SFR registers in Watch Window EasyPIC for dsPIC30 ar v7 Toolbar Icon i gt Q OD S A EasyP Command Name Start Debugger Run Pause Debugger Stop Debugger Step Into Step Over Step Out Run To Cursor Toggle Breakpoint Show Hide breakpoints Clears breakpoints Jump to interrupt IC for dsPIC30 S mikrolCD commands en of oT ER de Here is a short overview of which debugging commands are supported in MikroElektronika compilers You can see what each command does and what are their shortcuts when you are in debugging mode It will give you some general picture of what your debugger can do Shortcut FS F6 Ctrl F2 F7 F8 Ctrl F8 F4 F5 Shift F4 Shift Ctrl F5 F2 D I ae D I O mi Description Starts Debugger Run Pause Debugger Stops Debugger Executes the current program line then halts If the executed program line calls another routine the debugger steps into the routine and h
17. IC30 is equipped with RJ 12 connector compatible with Microchip ICD2 and ICD3 external programmers You can either use the on board mikroProg programmer or external programming tools with the board as long as you use only one of them at the same time Still you have to set the appropriate jumpers as described in the previous page Insert your ICD programmer cable into connector CNG as shown in images and EN EasyPIC for dsPIC30 V7 D I ce ae w D I O eh VCC MCU VCC BRD VCC 3 3V VCC 5V fot DATA BUS mikroProg USB 2 0 programmer debugger USB PROG_N USB PROG_P IN CIRCUIT PROGRAMMER BRD PGD BRD PGC MCLR 1 RF3 G Beg BN COMPILERS El alle JEN SUPPORTED f _ II RB4 C E E RF2 PGC RF3 PGD RB6 PGC RB7 PGD E Bee _RF8 PGD N E E E E aa a RB4 PGD RB5 PGC f MCU PGD Figure 5 1 mikroProg block schematics page 11 D I ae th D I O mi Installing p On board mikroProg requires drivers in order to work Drivers are located on the that you received with the EasyPIC v7 for dsPIC30 package Ky When you locate the drivers please extract files from the ZIP archive Folder with extracted files contains folders with drivers for different operating systems Depending on which operating system you use choose adequate folder and open it http www mikroe com down
18. MCU VPP MCU VPP B B Va WW VU ap Lu C ef CL 74 0 A i A B RB6 PGC IT RYIOLOlOIN DUA WINE mejeje N jo kaltaltA N There are two DIP40 three DIP28 and one DIP18 socket for dsPIC30 microcontrollers provided on the board Which of these sockets you will use depends solely on the pinout of the microcontroller in use The EasyPIC v7 for dsPIC30 development system comes with the dsPIC30F4013 microcontroller in a DIP40 package pinout corresponds to DIP40B socket In order for microcontrollers to have a stable operation ae Hz we provided decoupling capacitive filters on every board socket Figure 4 1 Ngee E m Neca AHE S H Vi SECH _ Which socket to use Supported microcontrollers come in different DIP packages DIP4O Fi 4 1 n DIP28 and DIP18 and with different pinout That is why you need to put Saks l DIP18 vecucu chosen microcontroller in appropriate socket Here is the list of supported n zt RBS icrocontrollers with DIP sockets EEO ea Sp microcontrollers wi sockets DIP sockets il and n E T REES d DIP40A dsPIC30F3011 dsPIC3OF4011 decoupling Capacitors _ DIP40B dsPIC30F3014 dsPIC30F4013 default chip gt DIP28A dsPIC30F2010 dsPIC30F3010 dsPIC30F4012 FO DD 9 DIP28B dsPIC30F2012 dsPIC30F3013 i DIP28C dsPIC30F1010 dsPIC30F2020 DIP18 dsPIC30F2011 dsPIC30F3012 Figure 4 2 i i cryst
19. PIC for dsPIC30 T eco d Ee CZ TTT TTT EREE ELE we BSSBSEB af BS SPEEA PAILT IIIT TT KS aa oh ee Ae Aa 1 sA KEE ETS ES RiP a we be ek en LLNS a T a RA D Aim OSC28 ad ae A RC13 OY o ces ee eee WoO Tar ASP CAOW erd OSCZ2A a DUAL S SUPPLY mikro connectivity S 33v 1 sv BUS x 14 microcontrollers supported Supports 3 3V and 5V devices Easily add extra boards CR l dsPIC30 in DIP package Four connectors for each port Fast USB 2 0 programmer and Dual Power Supply mikroBUS sockets Amazing Connectivity In Circuit Debugger E MikroElektronika DEVELOPMENT TOOLS I COMPILERS I BOOKS To our valued customers From the day one we in MikroElektronika gave ourselves the highest possible goals in pursuit of excellence That same day the idea of EasyPIC development board was born In its each and tiniest piece we had put all of our energy creativity and sense of what s best for an engineer Today we present you the 7th generation of our boards which brings us some exciting new features We hope that you will like it as much as we do Use it wisely and have fun Nebojsa Matic Owner and General Manager of MikroElektronika Introduction Power Supply Dual power Supp 06 Supported MCUs Supported microcontrollers cceeeeeeeeeees 08 Programming On board poroerammer ccc e
20. S1820 Digital Temperature Sensor sensors can be connected on the same line All slave devices by default have a unique ID code which enables the master device to easily identify all devices sharing the same interface Board provides a separate socket TS1 for the DS1820 Communication line with the microcontroller is connected via jumper J9 DATA BUS EasyPIC for dsPIC30 LM35 Analog Temperature Sensor The LM35 is a low cost precision integrated circuit temperature sensor whose output voltage is linearly proportional to the Celsius Centigrade temperature The LM35 thus has an advantage over linear temperature sensors calibrated in Kelvin as the user iS not required to subtract a large constant voltage from its output to obtain convenient Centigrade scaling It has a linear 10 0 mV C scale factor and less than 60 pA current drain As it draws only 60 pA from its supply it has very low self heating less than 0 1 C in still air EasyPIC v7 for dsPIC30 enables you to get analog readings from the LM35 sensor in restricted temperature range from 2 C to 150 C Bu Ki Figure 16 1 LM35 not connected Figure 16 2 LM35 placed in socket Figure 16 3 LM35 connected to RB8 pin Figure 16 4 LM35 connected to RB10 pin EasyPIC v7 for dsPIC30 enables you to get analog readings from the LM35 sensor using RB8 or RB10 microcontroller pins The selection of either of those
21. T o all of our creativity and knowledge into making a revolutionary new E Z e ek 3 5 K og E SC EN design which covers many internal modules Finally we present fe Gen py Ke you the EasyPIC v7 for dsPIC30 board which is powerful well organized with on board programmer and debugger Board Is Suitable for students hobbyists enthusiasts and professionals We hope you will enjoy tt as much as we do EasyPIC v7 for dsPIC30 development Team Four Connectors for each port Everything is already here 3 3V and 5V power supply For easier connections D D D D m D Amazing connectivity mikroProg on board Dual Power Supply mikroBUS support EasyPIC v7 for dsPIC30 is Powerful on board mikroProg EasyPIC v7 for dsPIC30 is Just plug in your Click board all about connectivity Having programmer and In Circuit among few development boards and it s ready to work We three different connectors for debugger can program which support both 3 3V and 5V picked up a Set of the most each port you can connect and debug 14 dsPIC30 power supply This feature allows useful pins you need for accessory boards sensors and microcontrollers You will you to use the microcontrollers development and made a your custom electronics easier need it whether you are a with both power supply It s like pinout standard you will then ever before professional or a beginner having two boards instead of one enjoy using DUAL POWER SUPPLY Cp EE
22. TOED m v7 page 4 EasyP C for dsPIC30 its good to know dsPIC30F4013 is the default microcontroller System Specification introduction dsPIC30F4013 is the default chip of EasyPIC v7 Great choice for both beginners 7 l power supply for dsPIC30 It has 30 MIPS operation 48K bytes and professionals Gis 7 23V AC or 9 32V DC of program memory 2048 bytes of SRAM memory Rich with modules 5V or via USB cable 5V DC 1024 bytes of EEPROM memory It has 24 bit wide Enough RAM and Flash instructions and 16 bit wide data path It s loaded with Comes with examples for power consumption 99mA when all peripheral great modules 30 General purpose 1 0 pins 12 bit mikroC mikroBasic and Or gebiede Analog to Digital with up to 13 channels ADC 5x16 mikroPascal compilers bit and 2x32 bit timers 2xUART 1xSPI Liz 1xCAN board dimensions 16 bit compare PWM output functions It has two 40 bit eC oe CH EEN wide accumulators with optional saturation logic 17 bit x 17 bit single hardware fractional integer cycle multiplier vy Ir weight 445g 0 981 Ibs and all DSP instructions are single cycle a yi f mikroElektronika DEVELOPMENT TOOLS COMPILERS Damage resistant Gi EasyPIC v7 for dsPIC30 USB cable User Manuals and protective box board in antistatic bag Board schematics EasyPIC page 5 for dsPIC30 7 4 gt 4 a a 5 Va D z a Dual power supply
23. Y 2x16 character LCDs in 4 bit mode This type of OTHERWISE BOTH LCD AND GLCD UNITS CAN BE PERMANENTLY DAMAGED Figure 11 1 On board LCD 2x16 display connector Connector pinout explained Vo LCD contrast level from potentiometer P4 RS Register Select Signal line E Display Enable line R W Determines whether display is in Read or Write mode It s always connected to GND leaving the display in Write mode all the time DO D3 Display is supported in 4 bit data mode so lower half of the data byte interface is connected to GND D4 D7 Upper half of the data byte LED Connection with the back light LED anode LED Connection with the back light LED cathode Standard and PWM driven back light We have allowed LCD back light to be enabled in two different ways Wild ie ae PO PORTB PORTD A 1 It can be turned on with full brightness using SW10 8 switch PORTE 2 Brightness level can be determined with PWM signal from the PORTF microcontroller allowing you to write custom back light controlling PORTE F BPWM software This back light mode is enabled with SW10 7 switch BCK 5 IMPORTANT In order to use PWM back light both SW10 7 and SW10 8 switches must be enabled at the same time EasyPIC for dsPIC30 GLCD 128x64 gt Graphical Liquid Crystal Displays or GLCDs are used to display Display connector is routed to RFO RF1 RF4 RF5 monochromatic graphical content su
24. al oscillators page 8 EasyPIC for dsPIC30 How to properly place your microcontroller into the DIP socket Figure 4 3 Place both ends of microcontroller on the socket so the pins are aligned correctly Before you plug the microcontroller into the appropriate socket make sure that the power supply is turned off Images above show how to correctly plug a microcontroller First make sure that Figure 4 4 with both fingers evenly distribute the force and press the chip into the socket a half circular cut in the microcontroller DIP packaging matches the cut in the DIP socket Place both ends of the microcontroller into the socket as shown in Figure 4 3 Then put the microcontroller slowly down until Figure 4 5 Properly placed microcontroller will have equally leveled pins all the pins match the socket as shown in Figure 4 4 Check again if everything is placed correctly and press the microcontroller until it is completely plugged into the socket as shown in Figure 4 5 N Sa U el OI CH CL CL N IMPORTANT Only one microcontroller may be plugged into the development board at the same time Using crystal oscillators X1 UNU A E d d OSC UO x1 GNU tE OSC VO I rma ol Ea LC IO eo RB6 FS RB7 ae NIDIA Figure 4 8 RC15 RB6 and RB7 as I O Figure 4 9 RC15 RB6 and RB7 pins when using internal oscillator connected to X2 quartz crystal 2 Rc15 Baad DIP40B 3
25. alts after executing the first instruction within it Executes the current program line then halts If the executed program line calls another routine the debugger will not step into it The whole routine will be executed and the debugger halts at the first instruction following the call Executes all remaining program lines within the subroutine The debugger halts immediately upon exiting the subroutine Executes the program until reaching the cursor position Toggle breakpoints option sets new breakpoints or removes those already set at the current cursor position Shows Hides window with all breakpoints Deletes selected breakpoints Opens window with available interrupts doesn t work in mikrolCD mode page 15 Ke pam mo GE CO YU The UART universal asynchronous receiver transmitter is one of the most common ways of exchanging data between the MCU and peripheral components It is a serial protocol with separate transmit and receive lines and can be used for full duplex communication Both sides must be initialized with the same baud rate otherwise the data will not be received correctly RS 232 serial communication is performed through a In order to enable RS 232 9 pin SUB D connector and the microcontroller UART communication you must set J20 module In order to enable this communication it and J21 jumpers in the RS 232 is necessary to establish a connection between position and enable d
26. arch keywords P Use your forum account to login CATEGORIES Ali codes Libraries Projects Visual Projects Examples Co d e E Xam B es LOGIN COMPILERS E mikroc E mikroBasic mikroPascal 1 1 Other Compilers It easy to get your Click board verene SORT BY Fipestrank oldest pw author C alphabetically V most downloaded with source C with example up and running We provided the examples for mikroC CATEGORY ALL CODES 2 31415 6 7 B 9next gt gt last mikroBasic and mikroPascal compilers on our Libstock gt LOGIN GSM click Example supported microcontrollers community web site Just Pit download them and you are Description supported compilers Author MikroElektronika Team MIKROC MIKROBASIC MIKROPASCAL Not registered Sign Up for free Rating ready to start This is a sample program which demonstrates the Version 1 0 0 9 use of GSM click Program uses GSM module pi ioc Last Updated 2014 05 09 GL865 for sending receiving SMS and establishing CODE CATEGORIES Category GSM GPRS calls with dialed number Dialing is done using archive format GLCD Touch Panel GUL 1P All codes 789 Downloaded 7921 times learn more project contains Followed by 2 users gt Audio amp Speech 20 i SRC EKA HEX http www libstock com KEE gt Download 648 978 gt Graphics amp LCD 94 EasyPIC for dsPIC30 page 21 Input Output Group One of the most distinctive fe
27. atures of EasyPIC v7 for dsPIC30 are it s Input Output PORT groups They add so much to the connectivity potential of the board EIEIETEIETEIEIST fed ed tat esd ot od Everything is grouped together eo eter RB7 aps Hl RB5 He PORT headers PORT buttons and PORT LEDs are next to each other and grouped together It makes development easier and the entire EasyPIC v7 for dsPIC30 cleaner and well organized We have also provided an additional PORT Figure 10 1 I O group contains PORT headers tri state pull headers on the left side of the board so you can access any pin you want from both up down DIP switch buttons and LEDs all in one place Sides of the board Tri state pull up down DIP switches Tri state DIP switches like SW1 on Figure 10 2 are used DATA BUS to enable 4K7 pull up or pull down resistor on any desired port pin Each of those switches has three states 1 middle position disables both RBO 1 2 SE CR pull up and pull down feature from CS Nom i re D ES RB4 RB4 5 KE the PORT pin E EES Nc 5 i 2 Up position connects the resistor 2 a ES i in pull up state to the selected pin E e 3 down position connects the SC CN5 Figure 10 2 Tri state resistor in pull down state to the DIP switch on PORTB selected PORT pin PORTB_ LED Figure 10 3 Button press level tri state J6 DIP switch is used to determine which logic level will be applied to port pins w
28. cal pressure but also providing the charge to the piezoelectric material causes it to physically deform One of the most widely used applications of piezo electricity is the production of sound generators called piezo buzzers Piezo buzzer is an electric component that comes in different shapes and sizes which can be used to create sound waves when provided with analog electrical signal 4 EasyPIC v7 for dsPIC30 comes with piezo buzzer which Y can be connected either to RDO or RA11 microcontroller J pins which is determined by the position of J12 jumper Buzzer is driven by transistor Q6 Figure 19 1 Microcontrollers can create sound by generating a PWM Pulse Width Modulated signal a square wl other modules oe LE O7 e we O rN eS PO Y ke x Mane KO DATA BUS TOP VIEW PERSPECTIVE VIEW PZ1 BUZZER Figure 19 1 Piezo buzzer connected to RDO microcontroller pin How to make it sing i Freq 3kHz Duty Cycle 50 Aerea 3kHz Volume 50 Freq 3kHz Duty Cycle 80 A ereq 3kHz Volume 80 Freq 3kHz Duty Cycle 20 Fereg 3kHz Volume 20 Buzzer starts singing when you provide PWM signal from the microcontroller to the buzzer driver The pitch of the sound is determined by the frequency and amplitude is determined by the duty cycle of the PWM signal wave signal which is nothing more than a sequence of logic zeros and ones Frequency o
29. ch as text images human control lines and to RBO RB3 RDO RD3 data machine interfaces and other content EasyPIC v7 for dsPIC30 lines of the microcontroller sockets Since the provides the connector and necessary interface for supporting same ports are used by 2x16 character LCD display GLCD with resolution of 128x64 pixels driven by the KS108 or you cannot use both displays simultaneously You compatible display controller Communication with the display can control the display contrast using dedicated module is done through CN16 display connector Board is fitted potentiometer P2 Full brightness display back light can with uniquely designed plastic display distancer which allows be enabled with SW10 8 switch and PWM driven back the GLCD module to perfectly and firmly fit into place light with SW10 7 switch displays DATA BUS P2 gt BCK PWM BCK LIGHT a a Bee 3 om Connector pinout explained ajy CS1 and CS2 Controller Chip Select lines E Display Enable line Se VCC 5V display power supply DO D7 Data lines 5 GND Reference ground RST Display reset line Vo GLCD contrast level from potentiometer P3 Vee Reference voltage for GLCD contrast RS Data High Instruction Low selection line potentiometer P3 CN16 R W Determines whether display is in Read or LED Connection with the back light LED anode e 100000000000000000000 e e Write mode LED Connection with the back light LED cathode RRS SSLE
30. e experiencing some problems with any of our products or just need additional information please place your ticket at www mikroe com support If you have any questions comments or business proposals do not hesitate to contact us at office mikroe com EasyPIC v7 for dsPIC30 Manual ver 1 01a d 100000 In
31. eader DATA BL gt ik mikro BUS BUS Figure 9 1 Ri 1K R2 1K Tm en a i No a pe iss uae Sees ee connection Bins ua A Nen oo D r i Ve mso aE Lane ebe SEH m MOSI SDA m mi MOSI SDA m m 3 3V DV m VCC 5V VCC 3 3V m 3 3V 5V IR VCC 5V m GND GND m m GND GND m TM ve Haas aoe Ul IT A P e r i jane fi mikroBUS is not made to be only a part of our development boards You can freely place mikroBUS host connectors in your final PCB designs as long as you clearly mark them with mikroBUS logo and footprint specifications For more information logo artwork and PCB files visit our web site L A AT D Fi L AVA connec TXD mn STAT LL gt be UW st O KL ai aj e em ER al TARA RA a ANATEL 2767 10 2618 FCC ID RI7GL865Q IC 5131A GL865Q IMEI 356308040476969 Model GL866 QUAD PHR Telit GL865 QUAD Designed in Italy Made in China 000666076DD7 D ro Di g D l B D wp i Sr fre cas GE As GO are Se SS E Ki GE ma 2 Stine nm OC ae e Fe ce RR FCC iD T9JRN41 1 RoHS compiiant EI NC K MAC NO Li NC ESO Y SE E Si al e fe e oa SS ADCClick es click Kanad rdd EI 33 SES GNOi33vI SDI CKI CS fSIO ISI1 CU K GND Ki Dew Bel tee ADC click RFID click BlueTooth click Click Boards are plug n
32. ect for debugging and program the microcontroller with this HEX file you can start the debugger using F9 command Compiler will change layout to debugging view and a blue line will mark where code execution is currently paused Use debugging toolbar in the Watch Window to suide the program execution and stop anytime Add the desired variables to Watch Window and monitor their values Complete guide to using mikrolCD with your compiler is provided with the EasyPIC v7 for dsPIC30 package a en Eu oF Cl ggf ktronika be eg Figure 5 2 mikrolCD manual explains debugging thoroughly represe ae debugging 7 icrocontro llers wi ts a rdware all PIC ith cee support File Let View Project Build Bun Toots Help VE EES BS 12566462 A SL A DME Otys Boe a IG az Leffk asw EH 20200502 a AA oo ooe or ag 7 Stet Page E S kt fj void maint mm Stoaech for vanadis by assenti nane J Petghecsl Frasse Advanced Dush pirts ADPCFG TRISB TRISC TRISD TRISF OxFFFF Initialize d z D 4 TR 7 rere em e GI mm mm P Set PORTS is em P ET de ser a wm wee gt E e D Mecnages GY Quek Converter d Gros d Wen d inte ue Message No ierg Tent O meet ewe MSF OBG P30F 4013 UID OL SEA OLILIILIA 1080 WC Peers Poke the A fee Pregrocested ma J Compia ton rut Ka 23 Comoled Succe Comp ed Programmed Li mkuet PRO for duPIC
33. er mikroElektronika USB18F Device x64 Vista Platform Installer Be You can now connect your device to this computer If your device J came with instructions please read them tirst Gs E Please wait while the drivers install This may take some time to complete Step 3 Drivers are installed automatically in a matter of seconds Installing drivers Step 4 Finish installation You will be informed if the drivers are installed correctly Click on Finish button to end installation process EasyPIC for dsPIC30 Programming software mikroProg Suite for PIC On board mikroProg programmer requires special programming software called mikroProg Suite for PIC This software is used for programming all of Microchip microcontroller families including PIC1O PIC12 PIC16 PIC18 dsPIC30 33 PIC24 and PIC32 Software has intuitive interface and SingleClick programming technology To begin first locate the installation archive on our website http www mikroe com downloads get 1201 mikroprog_suite_for_pic zip After downloading extract the package and double click the executable setup file to start installation bag E BS Erase Reset 8 HEX File Fee toad 1 zen ra McUINFO d Load Save CODE V Load Save DATA CODE gt EE Program Memory Size 16 K Instr DATA UNIT ID EEPROM Size 1024 Bytes Options Progress fe EasyP for dsPIC30
34. esired RX RX and TX lines on SUB D connector and the and TX lines via SW8 and SW9 Same pins on the target microcontroller using DIP switches For example if you DIP switches Since RS 232 communication want to enable RS 232 connection voltage levels are different than on UART1 module of the default microcontroller logic levels it is Y dsPIC30F4013 chip you should necessary to use a RS 232 enable SW8 1 RF2 and SW9 1 Transceiver circuit such as RF3 lines MAX3232 as shown on Figure 6 1 e VCC BRD CN12 DATA BUS VCC BRD ii E4 10uF 1 2 LA 9 ewe 5 RS 232 CONNECTOR MAX3232 D DO 1 9 a C24 C25 VCC BRD Figure 6 1 J lt 3 100nF 100nF R20 RS 232 SE 1380K connection schematics V7 page 16 EasyP C for dsPIC30 In order to enable USB UART communication you must set J20 and J21 jumpers in the USB UART position and enable desired RX and TX lines via SW8 and SW9 DIP Switches For example if you want to enable USB UART connection on UART1 module of the default dsPIC30F4013 chip you should enable SW8 1 RF2 and SW9 1 RF3 lines DATA BUS Figure 7 1 USB UART connection schematics EasyPIC for dsPIC30 D v7 ommunication Modern PC computers laptops and notebooks are no longer equipped with RS 232 connectors and UART controllers They are nowadays replaced with USB connectors and USB control
35. f our accessory boards as well This makes an excellent starting point for your future projects Just load the example read well commented code and see how it works on hardware Browse through the compiler Examples path to find the following folder G i www mikroe com easypic dspic30 mikroC Community H you want to find answers to your questions on many interesting topics we invite you to visit our forum at http www mikroe com forum and browse through more than 150 thousand posts You are likely to find just the right information for you On the other hand if you want to download free projects and libraries or share your own code please visit the Libstock web site With user profiles you can set to know other programmers and subscribe to receive notifications on their code d www libstock com PRO for dsPIC COMPILER COMPILER mikroBasic PRO for dsPIC mikroPascal PRO for dsPIC E Support We all know how important it is that we can rely on someone in moments when we are stuck with our projects facing a deadline or when we just want to ask a simple basic question that s pulling us back for a while We do understand how important this is to people and therefore our Support Department is one of the pillars upon which our company is based MikroElektronika offers Free Tech Support to the end of product lifetime so if something goes wrong we are ready and willing to help d www mikroe co
36. f the square signal determines the pitch of the generated sound and duty cycle of the signal can be used to increase or decrease the volume in the range from 0 to 100 of the duty cycle You can generate PWM signal using hardware capture compare module which is usually available in most microcontrollers or by writing a custom software which emulates the desired signal waveform Supported sound frequencies Piezo buzzere resonant frequency where you can expect it s best performance is 3 8kHz but you can also use it to create sound in the range between 2kKHz and 4kHz er Enabling Piezo Buzzer In order to use the on board Piezo Buzzer in your application you first have to connect the transistor driver of piezo buzzer to the appropriate microcontroller pin This is done using jumper J12 You can place the jumper in two positions thus connecting the buzzer driver to either RDO or RA11 microcontroller pin Figure 19 2 Use jumper J12 to connect Piezo buzzer on RDO or RA11 pin PIEZO BUZZER PIEZO BUZZER D v7 EasyPIC for dsPIC30 Additional GNDs EasyPIC v7 for dsPIC30 contains three GND pins located in different sections of the board which allow you to easily connect oscilloscope GND reference when you monitor signals on microcontroller pins or signals of on board modules 7A a J U OI C 1 D GND is located between RS 232 UART module and SW8 DIP switch A 2 GND
37. hen buttons are pressed VCC BRD SW7 R6 220 BUTTON PRESS LEVEL R7 220 PORTB LEVEL Figure 10 4 Schematic of the single I O group connected to microcontroller PORTB D v7 page 22 EasyPIC With enhanced connectivity as one of the key features of EasyPIC v7 for dsPIC30 we have provided two connection headers for each PORT I O PORT group contains one male IDC10 2x5 header like CN3 on Figure 10 4 and one 1x10 row of connection pads like CN5 on Figure 10 4 There is one more IDC10 header available on the left side of the board next to the section with displays These headers are all compatible with all MikroElektronika accessory boards and enable simple connection Figure 10 5 IDC10 male headers enable easy connection with MikroElektronika accessory boards emm RK f D j l e V ci S P for dsPIC30 The logic state of all microcontroller digital inputs may be changed using push buttons Tri State DIP Switch SW7 is available for selecting which logic state will be applied to corresponding MCU pin when button is pressed for each I O port separately If you for example place SW7 1 in VCC position then pressing any of push buttons in PORTB I O group will apply logic one to the appropriate microcontroller pin The same goes for GND If DIP switch is in the middle position neither of two logic states will be applied to the appropriate micr
38. i gt GEES yy nN gl J P y yg i N 3 N e ig d y p N y a a S N A a S ZE a d d MN 4 f WW a WR ie ff W a WW p Hi Oo SN GG A Gel E J 8 ez el i a oe al Veh iy f GEN e 1 J WW a i Wo DW W Bi A N d y gt _ a _ 4 L em 8 o WW 7 WW N bho d S g bo oo gl kb el bb gt WW SEET Ss lt e bb gt a L k lt amp e Es See is equipped with touch panel controller and connector for 4 wire resistive touch panels It can very accurately register pressure at a specific point representing the touch coordinates in the form of analog voltages which can then be easily converted to X and Y values Touch panel comes as a part of display Figure 13 2 Use a tip to push it inside Figure 13 3 Now place G Touch panel into GLCD socket SO 51 52 53 54 55 56 57 Tmp gt fe ie 7 piso ek VCC BRD o gt CH l WI Touch panel is enabled using SW11 5 SIE zb ee SW11 6 SW11 7 and SW11 8 switches DIS2 KK A They connect BOTTOM READ X and DIS3 yee LEFT READ Y lines of the touch panel dAn Ss 2 Ee r gt with RB8 and RB9 analog inputs and PEVNE Of at DRIVEA and DRIVEB with RC13 andRC14 er HE D Figure 13 4 Touch digital outputs on microcontroller sockets f
39. imal or hexadecimal form Eight data lines that are common for all the digits are connected to PORTB and digit select lines are connected to RC13 RC14 RF4 and RF5 lines on the microcontroller sockets DATA BUS DISO DIS1 DIS2 DIS3 RC13 RBO R81 470__ SEG A gd RC14 N RB1 R82 470 _ SEG B d RF4 RB2 R83 470 _ SEG C g RB3 R84 470 SEG D g RB4 R85 470 _ SEG E Z RB5 R86 470__ SEG F RB6 R87 470 _ SEG G gd RB7 R88 470 SEG DP SWi1 ste MR 10 SEGG VM elle LI OO Ka a OO o O C dp E R28 YN gt P Q rA D to RC13 RC14 RF4 and RF5 pins on the microcontroller sockets while data lines are To enable digit select lines for the 4 digit zb NM 7 segment display you have to turn on ue ae gege SW11 1 SW11 2 SW11 3 and SW11 4 e R29 Switches Digit select lines are connected S LI a Z S TOUCHPANEL R30 lt Li connected to RBO RB7 pins Make sure to disconnect other peripherals from the d ng COMO Figure 14 1 Turn on switches g e 1 through 4 on SW11 to enable NN 4 digit 7 seg display interface lines in order not to interfere with signal data integrity Figure 14 2 4 digit 7 segment display schematics D v7 EasyPIC page 27 other modules DS1820 is a digital temperature sensor that uses 1 wire interface for it s operation It is capable of measuring temperatures within the range of 55 to 128 C and provides 0
40. is located on the left side of the PORTF I O group 3 GND is located on the left side of the PORTD A I O group Figure 20 1 3 oscilloscope GND pins are conveniently positioned so each part of the board can be reached with an oscilloscope probe EasyPIC page 33 for dsPIC30 N cke x lt d Ka Bes S Whats Next You have now completed the journey through each and every feature of EasyPIC v7 for dsPIC30 board You got to know it s modules organization supported microcontrollers programmer and debugger Now you are ready to Start using your new board We are suggesting several steps which are probably the best way to begin We invite you to join thousands of users of EasyPIC brand You will find very useful projects and tutorials and can get help from a large ecosystem of users Welcome page 34 Compiler You still don t have an appropriate compiler Locate dsPIC compiler that suits you best on our website d www mikroe com dspic compilers Choose between mikroC mikroBasic and mikroPascal and download fully functional demo version so you can begin building your dsPIC applications Projects Once you have chosen your compiler and Since you already got the board you are ready to start writing your first projects We have equipped our compilers with dozens of examples that demonstrate the use of each and every feature of the EasyPIC v7 for dsPIC30 board and all o
41. lers Still certain technology enables UART communication to be done over USB connection Controllers such as FT232RL from FTDI convert UART signals to the appropriate USB standard In order to use USB UART module on EasyPIC v7 for dsPIC30 you must first install FTDI drivers on your computer Drivers can be found on the link below l d http www ftdichip com Drivers VCPAtm USB UART communication is being done through a FI232RL E controller USB connector CN2 and microcontroller UART module To establish this connection you must put J20 and J21 jumpers y in the USB UART position and connect RX and TX lines A of the microcontroller to the appropriate input and output pins of the FT232RL This selection is done using DIP switches SW8 and SW9 VCC BRD VvCC 5V VCC BRD VCC BRD JS lak USB UART CONNECTOR Bee ee FT232RL page 17 Ke es om SC z e UW Controller Area Network CAN or CAN bus is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other within a vehicle without a host computer CAN is a message based protocol designed specifically for automotive applications but now also used in other areas such as industrial automation and medical equipment EasyPIC v7 for dsPIC30 is equipped with high speed MCP2551 CAN Transceiver and a pair of screw terminals which provide microcontrollers with integrated CAN controller with the necessa
42. loads get 1202 mikroprog_for_pic_drivers_v200 zip Vista 32bit Win Vista 64 bit Win Win 98 2008 32 bit 2008 64 bit Windows 32 bit Windows 7 64 bit installing_usb_dri vers Dt Win 2000 lt P Win AP 2003 2003 32 bit 64 bit In the opened folder you should be able to locate the driver setup file Double click on setup file to begin installation of the programmer drivers USB1I amp PRG Vista s i EXE page 12 rogrammer drivers a _ _ mikroElektronika USB18F Device x64 Vista Platform Installer mikroElektronika USB18F Device x64 Vista Platform Installer ia Welcome to the USB18F Device x64 Vista Platform Installer Ihis wizard will walk you through updating the drivers To continue accept the following license agreement To read the entire agreement use the scroll bar or press the Page Down key mikroHektronika Associates License Statement and Limited Warranty a IMPORTANT READ CAREFULLY This license statement and limited warranty constitute a legal agreement Step 1 Start Installation Step 2 Accept EULA Carefully read End User License Agreement If you agree with it click Next to proceed Welcome screen of the installation Just click on Next button to proceed mikroElektronika USB18F Device x64 Vista Platform Installer e ey s Congratulations You have finished S drivers Instalation The drivers were successfully installed on this comput
43. m support EasyPIC V7 for dsPIC30 DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty Therefore this manual is to be treated as any other copyright material No part of this manual including product and software described herein must be reproduced stored in a retrieval system translated or transmitted in any form or by any means without the prior written permission of MikroElektronika The manual PDF edition can be printed for private or local use but not for distribution Any modification of this manual is prohibited MikroElektronika provides this manual as is without warranty of any kind either expressed or implied including but not limited to the implied warranties or conditions of merchantability or fitness for a particular purpose MikroElektronika shall assume no responsibility or liability for any errors omissions and inaccuracies that may appear in this manual In no event shall MikroElektronika its directors officers employees or distributors be liable for any indirect specific incidental or consequential damages including damages for loss of business profits and business information business interruption or any other pecuniary loss arising out of the use of this manual or product even if MikroElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at
44. ocontroller pin You can disable pin protection 220ohm resistors by placing jumpers J5 and J6 which will connect your push buttons directly to VCC or GND Be aware that doing so you may accidentally damage MCU in case of wrong usage DISABLE PROTECT BUTTON PRESS LEVEL Figure 10 6 Button press level DIP switch tri state Reset Button In the far upper right section of the board there is a RESET button which can be used to manually reset the microcontroller LED Light Emitting Diode is a_ highly A efficient electronic SMILED light source When connecting LEDs Microcontroller it is necessary to SMD resistor place a current limiting current limiting resistor in through the LED series so that LEDs are provided with the current value specified by the manufacturer The current varies from 0 2mA to 20mA depending on the type of the LED and the manufacturer The EasyPIC v7 for dsPIC30 board uses low current LEDs with typical current consumption of 0 2mA or 0 3mA Board contains 42 LEDs which can be used for visual indication of the logic state on PORT pins An active LED indicates that a logic high 1 is present on the pin In order to enable PORT LEDs it is necessary to enable the corresponding DIP switch on SW10 Figure 10 7 E Q QO LL Sr Figure 10 7 SW10 1 through SW10 6 switches are used to enable PORT LEDs
45. ometer output connected to RB1 microcontroller pin L i page 30 ADC inputs Enabling ADC inputs mam C6 R12 ADC INPUT In order to connect the output of the potentiometer P3 to RBO RB1 RB2 RB3 RB10 RB11 or RB12 analog microcontroller inputs you have to place the jumper J7 in the desired position By moving the potentiometer knob you can create voltages in range from GND to VCC BRD In order to set microcontroller voltage reference you must place jumper J10 RBO VREF to appropriate position Use 4 096 position ONLY when the jumper J16 is in 5V position RSE ea RBOVREF o RBO VREF P L I 1 uge H e OI e Lal L l d L bd 4 096V VCC 4 096V VCC A L VOLTAGE REFERENCE VOLTAGE REFERENCE Figure 17 2 use jumper J10 to set microcontroller voltage reference to 4 096V or VCC position EasyPIC for dsPIC30 D v7 CC EEPROM In order to connect JC EEPROM to the microcontroller you must place J14 SCL andjJ15 SDA jumpers in appropriate position 1kQ pull up resistors necessary for TC communication are already provided on SDA and SCL lines Prior to using EEPROM in your application make sure to disconnect other peripherals LEDs and additional pull up or pull down resistors from the interface lines in order not to interfere with signal data integrity D v7 EasyPIC for dsPIC30 N VU VG E OI Des FS EEPROM is short for Electrically Erasable Prog
46. play MikroElektronika portfolio of over 200 accessory boards is now enriched literally zero hardware configuration Just plug and play Visit the Click boards by an additional set of mikroBUS compatible Click Boards Almost each webpage for the complete list of available boards month several new Click boards are released It is our intention to provide the community with as much of these boards as possible so you will be able ka http www mikroe com click to expand your EasyPIC v7 for dsPIC30 with additional functionality with i i GSMdclick GSM click R2 W AN 20 e dm KE FS Sg Ss CR SP olde E ze Sei S m z fs am KE auu x m e5 e Fa geb g E WS De e T Light EB click icroSD Zen DAC Click DIGI Se SHT be clic LightHz click microSD click DAC click DIGIPOT click SHT1x click page 20 EasyPIC ees III 60860003100 OWN d O8NGZLL Ji VON 00 dH wO AW connectivity 8 f 1 4 O 2 R T Ki INT NC NC e ODC 0 8 Ss NC NC RIRERSR ell BIAS el IK NC Ay Saree CBr CHS hki SEA 0 000 V Ci aR D BIRLI ENABLE RX D S a jej d Ci R2R3 R1 BEZ NC LEA 6S WM 186188 E Rer a Les VOS US HAHHA NCINCINCINC Kro GND 5U e GNO Ji E AE RS485 click RS485 click CAN SPI click THERMO click el f BROWSE CODE SHARE CODE REQUEST CODE ABOUT LIBSTOCK Enter se
47. rammable Read Only Memory It is usually a secondary storage memory in devices containing data that is retained even if the device looses power supply Because of the ability to alter single bytes of data EEPROM devices are used to store personal preference and configuration data in a wide spectrum of consumer automotive telecommunication medical industrial and PC applications EasyPIC v7 for dsPIC30 supports serial EEPROM which uses IC communication interface and has 1024 bytes of available memory Board contains socket for serial EEPROMs in DIP8 packaging so you can easily exchange it with different memory size EEPROM IC EEPROM itself supports single byte or 16 byte page write and read operations Data rate is 400 kHz for both 3 3V and 5V power supply What is I C IC is a multi master serial single ended bus that is used to attach low speed peripherals to computer or embedded systems JEC uses only two open drain lines Serial Data Line SDA and Serial Clock SCL pulled up with resistors SCL line is driven by a master while SDA is used as bidirectional line either by master or slave device Up to 112 slave devices can be connected to the same bus Each slave must have a unique address VCC BRD DATA BUS Figure 18 1 LC EEPROM lines connected to RF3 SCL and RF2 SDA microcontroller pins page 31 Piezo electricity is the charge which accumulates in certain solid materials in response to mechani
48. rnally have A D converters connected to one or more input pins Some of the most important parameters of A D converters are conversion time and resolution Conversion time determines how fast can an analog voltage be represented in form of a digital number This is an important parameter if you need fast data acquisition The other parameter is resolution Resolution represents the number of discrete steps that supported voltage range can be divided into It determines the sensitivity of the A D converter Resolution is represented in maximum number of bits that resulting number occupies Most PIC microcontrollers have 12 bit resolution meaning that maximum value of conversion can be represented with 12 bits which converted to integer is 21 4096 This means that supported voltage range for example from 0 5V can be divided into 4096 discrete steps of about 1 2mV We gave you the possibility to set microcontroller voltage reference to 4 096V DC by putting jumper J10 RBO VREF to 4 096V position Figure 17 2 This can be done only when the power supply is 5V jumper J16 in 5V position In that case discrete steps are 1mV When using voltage reference module make sure to disconnect other peripherals from RBO pin EasyPIC v7 for dsPIC30 provides an interface in form of potentiometer for simulating analog input voltages that can be routed to any of the 7 supported analog input pins DATA BUS VCC BRD Figure 17 1 Potenti
49. ry physical interface for CAN communication Make sure to correctly connect negative and positive differential communication lines before using this module VCC 5V DATA BUS Figure 8 1 CAN connection schematics Vech VccB DND DIR A B 74LVC1T45 page 18 CAN communication Enabling In order to enable CAN communication you must push SW8 7 RFO or SW8 8 RF2 and SW9 7 RF1 or SW9 8 RF3 to ON position This connects the TX and RX lines to appropriate microcontroller pins and its CAN module EasyPIC for dsPIC30 CH ec a i ae a a So Sg em ba vc Le be h dE j LK N 4 d i A y lt d d X 4 o N l N gt 8 d lt Se eg i y T Ss SS a Easier connectivity and simple configuration are imperative in modern electronic devices Success of the USB standard comes from it s Simplicity of usage and high and reliable data transfer rates As we in MikroElektronika see it Plug and Play devices with minimum settings are the future in embedded world too This is why our engineers have come up with a simple but brilliant pinout with lines that most of today s accessory boards require which almost completely eliminates the need of additional hardware settings We called this new standard the mikroBUS EasyPIC v7 for dsPIC30 Supports mikroBUS with two on board sockets As you can see there are no additional DIP switches or jumper selections Everything
Download Pdf Manuals
Related Search
Related Contents
User Manual V1.02 anges Radiant Self Cleaning Convection American Standard ACRYLUX 3838Y1K.DT User's Manual Sunalyzer ICC IC107SF3SS Número Qtde. Valor 1 * 1 kit de cortinagem: Sistema de BitDefender Total Security 2008 Epson PP-100 ZIEH-FIX - Lockmaster Copyright © All rights reserved.
Failed to retrieve file