Home

LV24-33 v6 Development System User Manual

image

Contents

1. RESET e P gg mu m mu pe mu L L L L L L 22 i Bul DISABLE L PR OFECT 7 15 USED FOR SELECTING VOLTAGE LEVEL BE APPLIED WHEN BUTTON IS PRESSED 21 20 Key Features On board programmer s USB connector Connector for external programmer ICD2 or ICD3 JTAG connectors CAN communication module USB communication connector Serial communication connector RS 232A A D converter test inputs Serial communication connector RS 232B DIMM 168P socket for MCU cards Jumper for pull up pull down resistor selection DIP switch enables pull up pull down resistors port connectors DIP switch turns on off on board modules Potentiometer for adjusting contrast of graphic display oe ay a h 02 plor c O LCD 209 CHARACTERS IN 4 BIT MODE 6 7 s 9 e SQ mm Z 2 N 2 2 22 Un 8 8 8 PORTA HHD LIT LI IL T I IL an 0 a gt H imm 0 0 A 2 LL PII i TTTTTIP f Down Z wom 121172111 Down IIIJ 2 2 mnnn nnn m vecs UN 08 LN UNI UN Up 11 SN a SERRE eee 0 8 0 08 LI I LP EI
2. Cial mm mm Led CONNECTOR DEVELOPMENT BOARD 4 33 v6 BY MIKROELEKTRONIKA EXTERNAL ICD HWREV 1 01 ACKLIG IMPORTANT UNITS CAN BE PERMANENTLY DAMAGED BE SURE TO PLACE LCD AND GLCD PROPERLY OTHERWISE BOTH LCD AND GLCD UNITS CAN BE PERMANENTLY DAMAGED LCDexl6 WITH 57 BE SURE TO TURN OFF THE POWER SUPPLY BEFORE PLACING LCD OR GLCD ON DEVELOPMENT BOARD OTHERWISE BOTH LCD AND GLCD hib usm 5 ooon ooon UN T TE 2 08 00 08 0 0 ER 5s Oooo UN 0 Ch hs s QE UO C CB crus ooo Oo gc P 2 D D U D mm D D DU D D D D ponn EN jn fM Br nr i ji I POWER suppy POWER OFF e ON POWER SUPPLY Jl sn Jl al 21 JL 3 jl Jl ji ji Jl J JL JL JL J al J Jl Jl 33V VOUAGE Rd By By REGULATOR m ee ees ee ee ee ee id I LE E N E N E N E m N E N N 8 N JL d n t Bee eee E E E E E E E E LELE Jl Jl Jl i if ji if m mm mm mH ME MME SDCARD
3. REFER TO THE LV24 33V6 MANUAL a9 1947 6 1944 Touch panel controller Graphic LCD connector Touch panel connector Serial RAM module Push buttons simulate microcontroller digital inputs Jumper for protective resistor shortening Jumper for selecting push buttons logic state Reset button MMC SD card connector 3 3V voltage regulator Power supply voltage regulator 96 LEDs indicate pins logic state Potentiometer for adjusting contrast of LCD Alphanumeric LCD display connector On board programmer with mikrolCD support OJO 1U24 33 v6 Development System 1 0 Connecting the System to a PC Step 1 Follow the instructions provided in the relevant manuals and install the LVPICFLASH program and USB drivers from the product CD USB drivers are essential for the proper operation of the on board programmer In case you already have one of the Mikroelektronika s dsPIC compilers installed on your PC there is no need to reinstall USB drivers as they are already installed along with the compiler Step 2 Use the USB cable to connect the USB development system to a PC One end of the USB cable with a USB connector of B type should be connected to the development system as shown in Figure 1 2 whereas the other end of the cable with a USB connector of A type should be connected to a PC When establishing a connection make sure that jumper J16 is placed in the USB position as shown in Figure 1
4. x Lcd custom Test c 011112FC23AA7 25 1011 4 21 26 Char txt 10 mikro Hex DA67F0541 28 void maini E PORTS 30 ADPCFG OXF a 32 Led Cus nit LV 24 331 Led Custom Out 1 3 txt i see 34 Led Custom Out 2 6 txt iia sek 35 Led Custom a 36 Led Custom Out 1 10 txt 37 Led Custom chrii 11 0 38 Write a code in one ofthe dsPIC compilers generate a hex file and employ the on board programmer to load the code into the microcontroller VAG petad Doup a __ La Open atom Figure 3 3 Programming process hex code loading id E Elak el red Clock Monitor are ditin Comrarmicakon hannel E ei ADLER kegy j belaba tears al eatin personal aoe Foci att ie Figure 3 2 USB connector s front side 4 Write a program in one of the dsPIC compiler and generate a hex file 2 Use the LvPICFLASH program to select desired microcontroller to be programmed 3 Click the Write button to dump the code into the microcontroller the left side of the LvPICFlash program s main window there is a number of used A number of options which enable the programming process are provided onthe right side of the w
5. 24 33 v6 User manual MikroElektronika s development systems represent irreplaceable tools for programming and developing microcontroller based devices Carefully chosen components and the use of machines of the last generation for mounting and testing thereof are the best guarantee of high reliability of our devices Due to simple design a large number of add on modules and ready to use examples all our users regardless of their experience have the possibility to develop their project in a fast and efficient way Development Syste EJMikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD waking sigle OUR VALUED CUSTOMERS want to express my thanks to you for being interested in our products and for having confidence in mikroElektronika The primary aim of our company is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs Nebojsa Matic General Manager The Microchip name and logo the Microchip logo dsPIC microlD MPLAB PIC PICSTART PRO MATE and SmartShunt registered trademarks of Microchip Technology Incorporated in the U S A and other countries 1U24 33 v6 Development System TABLE OF CONTENTS Introduction to LV24 33 v6 Development System 4 Ie Ted Bs xcd ed
6. h CELH E 0 Ae E E E ee E E 28 m z fi E TOUCHSCREEN SCOR 0 apid n y JUN TT a aie B Lr me MEL ISIUTTTTTT x y Dou HEKERE ELLE M HH Em miw A possibility of reading MMC SD memory cards an E IM 7 ag Graphic LCD with backlight GLCD128x64 The LVPICFLASH program for programming provides a complete list of all supported microcontrollers The latest version of this program with updated list of supported microcontrollers can be downloaded from our website at www mikroe com Package contains Development system LV24 33 v6 CD product CD with relevant software Cables USB cable Documentation Manuals for LV24 33 v6 and mikrolCD quick guide for installing USB drivers electrical schematic of the system System specification Power Supply over an AC DC connector 7 23V AC or 9 32V over a USB cable for programming 5V DC Power consumption 40mA in idle state when all on board modules are off Dimension 26 5 x 22cm 10 4 x 8 6inch Weight 4209 0 92165 MikroElektronika LV24 33 v6 Development System 2 3 4 Ed erst Ee PROGRAMMER JTAGI JTAG2 use unk PRG ICD
7. up pull down resistors for each port pin Figure 20 3 J10 in pull up position Figure 20 1 ports Port PORTB pins are connected to voo 3 3 pull down resistors T RNS QUUD 8 10 doen ON J3 12345678 A RBO AM LD17 N1 WU Eu JU j 7 Figure 20 4 Port PORTB connection schematic MikroElektronika 6 124 33 v6 Development System Pull up pull down resistors enable you to set the logic level on all microcontroller s input pins when they are in idle state Such level depends on the position of the pull up pull down jumper The pin with the relevant DIP switch SW8 jumper J8 and RD8 push button with jumper J17 are used here for the purpose of explaining the performance of pull up pull down resistors The principle of their operation is the same as for all other microcontroller pins In order to enable the PORTD port pins to be connected to pull down resistors it is necessary to place jumper J8 in the Down position first This enables any PORTD port pin to be supplied with a logic zero 0 in idle state over jumper J8 and 8x10k resistor network To provide the RD8 pin with such signal it is necessary to set switch P1 on the DIP switch SW8 to ON position As a result every time you press the RD8 push button a logic one VCC 3 3 voltage will appear on the PG2 pin provided that jumper J17 is placed in the VCC 3 3 position In order to enable
8. n Un Un LU Lal La Ly t LIII nia Pilla Coat La a Lint J 7 2 IE Ir ir inp EXE mR Vala a Powering over a USB connector Figure 7 2 Power supply source schematic AC DC connector 44447 m t 6 NT POWER SUPPLY signal LED POWER SUPPLY switch Side view 12 07 MBRS140T3 Side view Side view MikroElektronika 14 1024 33 v6 Development System 8 0 3 3V Voltage Regulator The LV24 33 v6 development system is provided with a voltage regulator whose purpose of which is to reduce the power supply voltage of the development system from 5V to 3 3V The 3 3V power supply voltage is then used for powering the microcontroller and other on board modules The MC33269DT 3 3 circuit provided on the development system is used as a voltage regulator capable of providing 800mA current REG1 3 VIN VOUT VCC 3 3 2 E7 1 5 4 MC33269DT 3 3 100 10uF Figure 8 2 Voltage regulator connection schematic 9 0 USB Communication Module The CN23 USB connector enables a dsPIC with a built in USB interface to be connected to peripheral devices The microcontroller is connected to the CN23 connector via USB DM and USB DP lines The function of the LED marked as ON is to indicate connection between USB devices and development system hence the microcontroller Momo T meg P Bottom view DIMM
9. 168P Figure 9 1 USB connector Figure 9 2 USB connector connection schematic MikroElektronika LV24 33 v6 Development System 19 65 10 0 RS 232 Communication Module s USART Universal Synchronous Asynchronous Receiver Transmitter is one of the most common ways of exchanging data between the PC and peripheral units RS 232 serial communication is performed through a 9 pin SUB D connector and the microcontroller USART module The LV24 33 v6 provides two RS 232 ports RS 232A and RS 232B Use switches marked as RX232 A pin or RB9 and TX232 A pin RF3 or RB8 on the DIP switch SW16 to enable port RS 232A Likewise use switches marked as RX232 B pin RF4 or RB11 and TX232 B pin RF5 or RB10 on the DIP switch SW16 to enable port RS 232B The microcontroller pins used in such communication are marked as follows RX receive data line and TX transmit data line Data rate goes up to 115 kbps In order to enable the USART module of the microcontroller to receive input signals which meet the RS 232 standard it is necessary to adjust voltage levels using an IC circuit such as MAX3232CDR LAN The function of the switches 1 8 on the DIP switch SW16 is to determine which of the microcontroller pins are to be used as RX and TX lines Figure 10 2 Port RS 232A is connected to the microcontroller via RF2 and RF3 pins VCC 3 3 VCC 3 3 U4 05 E 1 m C35 C38 C1 m C39 100nF 100nF 100nF 100nF M
10. Down EERE Ree SS SS w wwww He e mH E HERD ilii ilii Hii veca 7 eee IS Ui 7 Bee p 1 4 GOLD PLATED EDGE CONTACT MCU CARD SSS E v gt lt o SW Up Pull 2 Down WRN 66588 J ul v 5 SN oj NI W SN SS He e e 2 Up que Pull 2 Down K 4 2 2 2 SS im mi gt 2 a Q e SW E 5 l 0 L e e L CCCKK CCC ICK ICC CCC C rrr C CKC CCC NS N Up Pull 2 Db INE TO RES PIN CONNECTS MMC CARD S 8 PIN CONNECTS MMC CARD S CD LINE TDUCHPANEL CONTROLLER 88 AND SS SS SS v gt 65888 IMES FOR RS 232A COMMUNICATION SS INES FOR RS 232B COMMUNICATION a I CONTROLLER GLCD 128 6 GLCDI28x64 WITH BACKLIGHT DOWN RESISTORS ON PORTA PORTB 5 65588 S ER P4 TO RB12 RB13 RB14 OR RB15 a XTERNAL OR USB EXTERNAL ICD RB1 OR RB7 PIN EXTERNAL ICD TO RBO OR RB6 PIN AND TDI LINES TO RB12 RB11 RB10 rH3 E E Y AND TDI LINES TO RAS RAO mm m mi c i mm HHD 2 s
11. GND v Ici T10UTE Ici T10UTE C36 C40 H C2 R1 IN C2 R1 IN 100nF L n 100nF n NC2 R1OUT H c2 R10UT HT C37 M T1 INT cM IM TA INE 100nF 100nF T2INE N8T20UT T2INE LEVEL R2OUTE R20UTE 2 T N 2 GND MAX323CDR MAX323CDR 21074 1 OSC1 1 OVCC 3 3 Bottom view Bottom view Figure 10 2 RS 232 module connection schematic MikroElektronika 16 24 33 v6 Development System 11 0 CAN Communication Module CAN Controller Area Network is a communication standard primarily intended for use in automotive industry It enables the microcontroller to communicate to a car device without using a host PC In addition such communication is widely used in industrial automation The LV24 33 v6 uses the MCP2551 circuit for CAN communication This circuit provides an interface between the microcontroller and some peripheral device To enable connection between the microcontroller and MCP2551 it is necessary to set switches 1 and 4 on the DIP switch SW17 to ON position Other switches 1 6 on the DIP switch SW17 may also be used for this purpose Which of these switches is to be used depends solely on the arrangement of the microcontroller pins connected to CAN communication lines RX lines are connected to the microcontroller via RFO RGO and RCO microcontroller pins TX line is connected to the microcontroller via RF1 RG1 and RC1 microcontrolle
12. OVCC 3 3 Q J17 0 0 0 0 0 0 9 il Figure 16 2 Push buttons and port PORTB connection schematic MikroElektronika 1U24 33 v6 Development System A The LV24 33 v6 development system provides on board connector for the alphanumeric 2x16 LCD This connector is linked to microcontroller port PORTB Potentiometer P1 is used to adjust display contrast Switch 7 LCD BCK on the DIP switch SW17 is used to turn the display backlight on off Communication between the LCD and the microcontroller is performed in a 4 bit mode Alphanumeric digits are displayed in two lines each containing up to 16 characters of 7x5 pixels HN em 24 33 v6 Er TU B CV 34 33 v6 EY Contrast adjustment xt potentiometer Ae PU V Iv D TI eee iir igure 17 1 Alphanumeric LCD connector Figure 17 2 Alphanumeric 2x16 LCD VCC 5V NO ENVREG LCD BCK N PIC24FJ96GA010 Figure 17 3 Alphanumeric 2x16 LCD connection schematic MikroElektronika 1024 33 v6 Development System 2 128x64 graphic LCD GLCD is connected to the microcontroller via PORTB and PORTD ports and enables graphic content to be displayed It has the screen resolution of 128x64 pixels which allows diagrams tables and other graphic content to be displayed Potentiometer P2 is used for the GLCD display
13. 1 AC DC connector USB connector l F haz GLa Lon L L 16 supply selector FI POWER SUPPLY switch Figure 1 1 Power supply Figure 1 2 Connecting USB cable POWER SUPPLY RU Step 3 Turn on your development system by setting the POWER SUPPLY switch to the ON position Two LEDs marked as POWER and USB LINK will be automatically turned on indicating that your development system is ready to use Use the on board programmer and the LvPICFLASH program to dump a code into the microcontroller and employ the system to test and develop your projects NOTE If some additional modules are used such as LCD GLCD etc it is necessary to place them properly on the development system while it is turned off Otherwise either can be permanently damaged Refer to figure below for the proper placing of the additional modules MikroElektronika 1U24 33 v6 Development System 2 0 Supported Microcontrollers The LV24 33 v6 development system provides a DIMM 168P connector to place an MCU card into This development system comes with an MCU card with the PIC24FJ96GA010 microcontroller in 100 pin TQFP package soldered on it Figure 2 3 Besides the MCU card alone provides an oscillator as well as 102 soldering pads connected to microcontroller pins Each pad is marked the same as the pin it is connected to Soldering pads also make connection between the MCU card and t
14. 20 070 8 LLITTIT LITT 4i Port LEDs turned ENVREG LATE E Figure 15 2 LEDs and port PORTB connection schematic MikroElektronika 1124 33 v6 Development System 21 16 0 Push Buttons The logic state of all microcontroller input pins may be changed by means of push buttons Jumper J17 is used to determine the logic state to be applied to the desired microcontroller pin by pressing appropriate push button The function of the protective resistor is to limit the maximum current thus preventing the development system and peripheral modules from being damaged in case a short circuit occurs If needed advanced users may shorten such resistor using jumper J13 Right next to the push buttons there is a RESET button which is used to provide the MCLR pin with the microcontroller reset signal over the on board programmer Top view Inside view BS E Push buttons used for simulating Bottom view Side view digital inputs 3 Pin UP E E AA A AU ES E RESET button Jumper J17 used for selecting logic state to be applied to the pin by pressing push button Figure 16 1 Push buttons By pressing any push button when jumper J17 is in the VCC 3 3 position a logic one 3 3V will be applied to the appropriate microcontroller pin as shown in Figure 16 2 By pressing a push button the appropriate pin will be driven high 1
15. E I I BES eee Sees eee X 2 II veces 7 ICT 0 pg gp iti 0000000 Li Up Pull 1 OWN WN lt 1 2 vu za lt Up Y m Aiii SW1 SW12 ENABLE PULL UP OR PULL DOWN RESISTORS ON PORTA PORTB PORTC PORTD PORTE PORTF AND PORTG PINS SW13 TURNS ON OFF PORT LED SW14 ENABLES SPI COMMUNICATION AND CONNECTS RAM S CS LINE TO RE6 PIN W15 CONNECTS RAM S HOLD CS LINE TO RG9 OR TO RE7 PIN CONNECTS RB9 ANALOG INPUTS AND TO RD10 AND RD11 CONTROL PINS W16 CONNECTS RX AND TX LI TO RF2 AND RF3 PINS OR TO RB9 AND 8 PINS RESPECTIVELY CONNECTS RX AND TX L TO AND RFS PINS OR TO RB11 AND RB10 PINS RESPECTIVELY W17 ENABLES CAN COMMUNICATION ENABLES LCD AND GLCD BACKLIGHT J1 J12 SELECT PULL UP OR PULL PORTC PORTD PORTE PORTF AND PORTG PINS J13 DISABLES CURRENT LIMITING PROTECTION FOR BUTTONS J14 CONNECTS POTENTIOMETER TO RB8 RB9 RB10 OR RB11 ANALOG INPUT J15 CONNECTS POTENTIOMETI ANALOG INPUT 16 SELECTS POWER SUPPLY J18 CONNECTS PGC LINE OF J19 CONNECTS PGD LINE OF JJAG1 CONNECTS TCK TDO TMS JJAG2 CONNECTS TCK TDO TMS FOR MORE INFORMATIO 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 lt lt lt 2 sesesesesesel 6 AND RB13 PINS AND PINS RESPECTIVELY Pull
16. able is to the left of the GLCD as shown in Figure 4 Touch panel 15 connected to the microcontroller via pins RB8 RB9 RD10 and RD11 NO 819 a TOUCHPANEL CONTROLLER Figure 19 3 Connecting touch panel Figure 19 3 shows in detail how to connect a touch panel to the microcontroller Bring the end of the flat cable close to the CN22 connector Figure 1 Plug the cable into the connector Figure 2 and press it easily so as to fully fit the connector Figure 3 Now a GLCD can be plugged into the appropriate connector Figure 4 NOTE LEDs and pull up pull down resistors on ports PORTB and PORTD must be off when using a touch panel MikroElektronika 1024 33 v6 Development System 2 20 0 Input Output Ports Along the right side of the development system there are twelve 10 pin connectors connected to the microcontroller s I O ports Pins RB1 RB6 RB7 and MCLR are used for programming and therefore are not directly connected to the appropriate 10 pin connectors but the programmer s multiplexer DIP switch SW1 SW12 enable each connector pin to be connected to one pull up pull down resistor Whether pins of some port are to be connected to a pull up or a pull down resistor depends on the position of jumpers J1 J12 PORTB 2x5 male connector Jumper for pull up pull down resistor selection Figure 20 2 J10 in pull down Additional module connected position to PORTC DIP switch to turn on pull
17. arget device s modules easy SS Be aster Estes Rene mu ima E DIMM 168P connector for placing the MCU card with microcontroller in TQFP package Fi E Freres L 15 ik EIL EM II DTE Ug y eae 2 ro DEVELOFMENT 10048 BLODED wong f Mc ie 4 WITH Bac Figure 2 1 DIMM 168P connector Figure 2 3 MCU card with a 100 pin microcontroller in TQFP package soldered on it RB1 MCU RB3 RB5 RB7 MCU DIMM 168P Q RB6 MC Figure 2 4 Schematic of the DIMM 168P connector s pinout MikroElektronika page 1U24 33 v6 Development System Placing MCU card into the DIMM 168P connector is performed as follows ae x eo e NIMM C A A h w a aut 811 hee eee eee eee dgNELI amp mmEMM o 711 EEFT LL nra cw mm R Tee ee ee RO ee A AL h JA D 7 Ex ux E RR a LEN c Er d CEA EN LEN pen 3 9 cce e rr rr Iw cI Pus
18. connector to be connected rm PT JTAG1 connector is linked to port to the development system PORTB whereas JTAG2 connector is linked to port PORTA EP DEVELOPMENT Ainm Figure 6 1 JTAG connector JTAG connectors are directly connected to microcontroller pins is DIMM 168P Figure 6 2 JTAG connector connection schematic MikroElektronika 1U24 33 v6 Development System 7 0 Power supply The LV24 33 v6 development system may use one of two power supply sources 1 5V PC power supply through the USB programming cable and 2 External power supply source connected to an AC DC connector provided on the development board 1 The MC34063A voltage regulator and Gretz rectifier are used to enable external power supply voltage to be either AC in the range of 7V to 23V or DC in the range of 9V to 32V Jumper J16 is used as a selector for a power supply source To make advantage of the USB power supply jumper J16 should be placed in the USB position When using the external power supply jumper J16 should be placed in the EXT position The development system is turned on off by switching the position of the POWER SUPPLY switch Power supply voltage regulator Powe SUPPLY Jumper J16 as a selector for a power supply source J16 USB Powering over an AC DC connector J16 EXT USB m m Side view 4x1N4007 D13 Side view Bottom view gr ay Liriririr
19. contrast adjustment Switch 8 GLCD BCK on the DIP switch SW17 is used to turn the display backlight on off Port PORTB is also used for the operation of 2x16 LCD so that the displays cannot be used simultaneously Contrast adjustment potentiometer rs GLCD display connector 2 1 1 De 173 MESE I li mney 4 e Le FI ina 1 KUGHT ud rm TH B Touch panel connector GLCDIPax6 q m Figure 18 2 GLCD connector P2 m 10K view GLCD BCK Le Dunn fees 10 OVCC 5V VCC 5Vo a 2 o ids 5 cn on 2 a 22 oz 5 S Sx CN21 PRINS 50 51 52 53 54 55 56 57 Tmp snc v v o v Figure 18 3 GLCD connection schematic MikroElektronika 1024 33 v6 Development System 19 0 Touch Panel The touch panel is a thin self adhesive transparent touch sensitive panel It is placed over a GLCD display Its main function is to register pressure at some specific display point and to forward its coordinates in the form of analog voltage to the microcontroller Switches 5 6 7 and 8 on the DIP switch SW15 are used for connecting the microcontroller and touch panel Figure 19 1 Placing touch panel over a GLCD Figure 19 1 shows how to place a touch panel over a GLCD display Make sure that the flat c
20. e in figure 14 2 RAM module is connected to the microcontroller pins RB14 RB13 RB12 and using DIP switch SW14 Alternatively RG8 RG7 and RC3 microcontroller pins may also be used for this purpose The function of the RB1 RAM HOLD switch on the DIP switch SW15 is to hold communication between the microcontroller and RAM module The RBO RAM CS switch on the DIP switch SW14 is used to control the access to RAM VCC 3 3 R19 Vere Ms HOLD I RAM HOLD 1014 MC 00 spwosi 23K640 Figure 14 2 Serial RAM connection schematic MikroElektronika 1U24 33 v6 Development System 15 0 LEDs LED Light Emitting Diode is a highly efficient electronic light source When connecting LEDs it is necessary to use a current limiting resistor A common LED voltage is approximately 2 5V while the current varies from 1 to 20mA depending the type of LED The LV24 33 v6 uses LEDs with current 21mA There are 96 LEDs on the LV24 33 v6 development system which visually indicate the state of each microcontroller I O pin An active LED indicates that a logic one 1 is present on the pin In order to enable the pin state to be shown it is necessary to select appropriate port PORTA PORTB PORTC PORTD PORTE PORTF PORTF G or PORTO using the DIP switch SW13 Notch indicating the SMD LED cathode Haaa EER II La Mb Dir T ee Sea 0
21. eDuuksn HU HC iR crx e NEM RUIN PONI VO iMd xe END CIT 5 1 0 Connecting the System to a 6 2 0 Supported Microcontrollers __ _ 7 3 0 On board LvPICFlash Programmer 9 4 0 MikrolCD In Circuit Debugger siase 10 OPIS METER 11 6 0 JTAG Connector NEM 12 Power 13 8 0 3 3V Voltage Regulator t 14 9 0 USB Communication o le IDE ciues sexui 14 10 0 RS 232 Communication Module n uti teu s 15 11 0 CAN Communication Module E 16 12 0 M ge cT TU Tn 17 130 MMC SD M I _______6_____ 18 14 0 uns _____ 19 0035 20 16 0 rm Vino pc 21 FRU IcSEesm 22 18 0 128x64 Graphic LCD M 23 19 0 TOURA MN RT 24 OW T PE E T A E E 29 4 1U24 33 v6 Development System Introduction to LV24 33 v6 Development System The LV24 33 v6 development system provides a development environ
22. enable the microcontroller to accurately perform A D conversion it is necessary to turn off LEDs and pull up or pull down resistors on the port pins used by the A D converter MikroElektronika 18 24 33 v6 Development System 13 0 MMC SD Connector The MMC SD connector enables the memory cards to be interfaced to the microcontroller in order to expand microcontroller memory To enable serial communication between the microcontroller and a memory card it is necessary to select microcontroller pins to be fed with signal sent from the memory card DIP switches SW14 and SW15 are used as pin selectors Figure 13 3 illustrates the connection between the MMC SD connector and RG9 RE7 RG8 RG7 and RG6 microcontroller pins Alternatively pins RB15 RB14 RB13 RB12 and RC3 can be used here as well MMC SD card communicates to the microcontroller via MISO MOSI SCK MMC CS MMC CD lines MMC CD MMC CARD CN15 Figure 13 3 MMC SD connector and microcontroller connection schematic MikroElektronika 1024 33 v6 Development System 19 S 14 0 RAM Module Owing to the 23K640 circuit the development system is provided with 64Kbit RAM modul that can be connected to the microcontroller via SPI interface The function of the serial RAM module is to expand available RAM of the microcontroller To establish connection between the microcontroller and RAM module it is necessary to enable serial communication using DIP switch SW14 In the exampl
23. h the MCU card down gently into the DIMM 168P connector and Close the extraction levers when the MCU card is properly placed lift extraction levers slowly at the same time into the connector Extraction levers used to fix Extraction levers used to fix the MCU card in open position the MCU card in closed position In addition to the MCU card with microcontrollers in 100 pin TQFP package there are also MCU cards with microcontrollers in 44 64 and 80 pin TQFP package which can be ordered separately They are placed into the appropriate connector in the same manner as described above MikroElektronika 1U24 33 v6 Development System 3 0 On board LvPICFlash Programmer A programmer is a necessary tool when working with microcontrollers It is used to load a hex code into the microcontroller and provides an interface between the microcontroller and the PC The LV24 33 v6 has an on board LvPICFlash programmer The LvPICFLASH program is used for loading a hex file into the microcontroller Figure 3 3 shows connection between the compiler LvPICFLASH program and the microcontroller Programmer s USB connector Programmer s chip TH BACKLIGHT i m t WIT LS r a ain Compiling program E mikroC compiler for dsPIC 30 33 and PIC 24 EPUM File Edit View Project Debugger Run Tools Help Oh 1110001001 Bin 0110100011 Figure 3 1 On board programmer
24. indow Positioned in the bottom right corner of poe the window the Progress bar enables you to monitor the programming progress ics Sek be Pell MikroElektronika 10 1U24 33 v6 Development System 4 0 mikrolCD In Circuit Debugger The mikroICD In Circuit Debugger is an integral part of the on board programmer It is used for the purpose of testing and debugging programs in real time The process of testing and debugging is performed by monitoring the state of all registers within the microcontroller while operating in real environment The mikrolCD software is integrated in all dsPIC compilers designed by Mikroelektronika mikroBASIC PRO mikroC PRO mikroPASCAL PRO etc As soon as the mikrolCD debugger starts up a window called Watch Values appears on the screen Figure 4 1 The mikro CD debugger communicates to the microcontroller through the microcontroller s pins used for programming debugger options Watch Values E gt En Ey 20 oF 21 m H Add Remove Properties Add Select variable from list Icon commands A complete list of registers within the microcontroller being programmed Start Debugger F9 Run Pause Debugger F6 Stop Debugger Ctrl F2 Step Into F7 Step Over F8 Step Out Ctrl F 8 Search for variable by assembly name Toggle Breakpoint F5 Show Hide Breakpoints Shift F 4 C
25. ity 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 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 MikroElektronika 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
26. lear Breakpoints Ctrl Shift F5 A list of selected registers to be monitored The state of these registers changes during the program execution which can be viewed in this window Double click on the Value field enables you to change data format The mikrolCD debugger also offers functions such as running a program step by step single stepping pausing the program execution to examine the state of currently active registers using breakpoints tracking the values of some variables etc The following example illustrates a step by step program execution using the Step Over command Each of these commands is activated via keyboard shortcuts or by clicking appropriate icon within the Watch Values window Figure 4 1 Watch Values window Step 1 In this example the 41st program line is highlighted in blue which means that it will be executed next The current state of all registers within the microcontroller can be viewed in the mikrolCD Watch Values PORTC 0 00 PORTD 0 00 During operation the program line to be executed next is highlighted in blue while the breakpoints are highlighted in red The Run command executes the program in real time until it encounters a breakpoint window Step 2 EE 4 ORTE Oxo a yaa 91 After the Step Over command reperis Gp Add AN GR is executed the microcontroller EMEN amp va will execu
27. livery amp Lifecycle Information mikroElektronika MIKROE 468
28. ment for experimenting with dsPIC microcontrollers from Microchip The system includes an on board programmer providing an interface between the microcontroller and a PC You are simply expected to write a program in one of the dsPIC compilers generate a hex file and program your microcontroller using the on board LvPICFlash programmer Numerous modules such as 128x64 graphic LCD alphanumeric 2x16 LCD serial RAM etc are provided on the board and allow you to easily simulate the operation of the target device 3 Full featured development system for dsPIC microcontroller based devices B Li DEVELOPMENT lt g ICO Lm reg i 4 1 Ex LI MEE of ay lt GOLD PLATED EDGE CONTACT MCU CARD T i fang USB 2 0 on board programmer Sain TF nnm z S 1 Se 7 30 30 E elveeianel Mee Cee eee TLE 3 4 m IN CIRCUIT FROUGRAMMER k LN F Le LH T Bahan aa Gil z henna i i EPI LUE mg m ELI IIl A possibility of connecting a graphic display with Ea touch panel increases the functionality of the development system m i
29. mikroC mikroC PRO mikroBasic mikro Basic PRO mikroPascal mikroPascal PRO AVRflash PlCflash 5 18FJprog PSOCprog AVR prog 8051prog ARMflash EasyPIC5 EasyPIC6 BigPIC5 BigPIC6 dsPIC PRO4 Easy8051B EasyARM EasyAVR5 EasyAVR6 BigAVR2 EasydsPIC4A EasyPSoC4 EasyVR Stamp LV18FJ LV24 33A LV32MX PIC32MXA MultiMedia Board PICPLC16 PICPLC8 PICPLC4 SmartGSM GPRS UNI DS 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 Mikroelektronika 2010 All Rights Reserved SN 1061000 0 ejejsoeu JOU op sjesodoud nof WOddNs us WOd SOJ4ILU MMM e 1exon eoej d se jd pasu snf 10 sjonpoud ano jo ue ae nof WOS SOJ4ILU MMM INO SIA eseejd sjonpoud J f 303 SNOILN TOS ANY 38VM1dOS fie Mouser Electronics Authorized Distributor Click to View Pricing Inventory De
30. n this case it is necessay to enable the development system to be powered over the ICD3 programmer The power supply should not be suspended when using the ICD2 programmer Never use the ICD2 programmer for powering the system as it may cause the microcontroller to be permanently damaged The reason for it is the 5V power supply voltage provided by the ICD2 programmer which is destructive for the microcontroller which employs the 3 3V power supply voltage 8b p JTAG m ECCE CONNEC ge Hz i DEYE mer EXTERN BU LOSS RNAL co E 3 Y 1 5 Figure 5 1 Pins RBG and RB7 are T Figure 5 2 Pins RBO and RB1 are used for programming for programming Figure 5 3 ICD connector s pinout and designations MikroElektronika fi 12 LV24 33 v6 Development System 6 0 JTAG Connector JTAG is a programmer debugger used for programming debugging microcontrollers provided with a built in JTAG interface This JTAG interface is a modified version of the original JTAG interface and enables the contents of internal EEPROM and FLASH memory to be altered programming microcontrollers JTAG connectors JTAG1 and 2 are directly connected to microcontroller pins The JTAG1 connector is linked to RB10 RB11 RB12 RB13 and MCLR pins The JTAG2 connector is linked to RAO RA4 RA5 and MCLRz pins JTAG programmer debugger uses a male 2x5
31. port PORTD pins to be connected to pull up resistors and the port input pins to be supplied with a logic zero 0 it is necessary to place jumper J8 in the Up position and jumper J17 in the GND position This enables any port PORTD input pin to be driven high 3 3V in idle state over the 10k resistor As a result every time you press the RD8 push button a logic zero OV will appear on the pin provided that the P1 switch is set to the ON position In case that jumpers J8 and J17 have the same VCC 3 3 VCC 33 logic state pressure on any button will not cause input pins to change their logic state J17 Figure 20 7 Jumpers J8 and J17 in the same position MikroElektronika DISCLAIMER the products owned 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 may 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 merchantabil
32. r pins Figure 11 2 CAN module connector VCC R10 5 10 B o CAN Rsi Bei cx CANH lt gt Vref ll MCP2551 BLOGVTECL Figure 11 3 Microcontroller and MCP2551 connection schematic MikroElektronika 1U24 33 v6 Development System 12 0 A D Converter Test Inputs An A D converter is used for converting an analog voltage into the appropriate digital value The A D converter is linear which means that converted number is linearly dependent on the input voltage value The A D converter built into the microcontroller converts an analog voltage value into a 10 bit number Potentiometers P3 and P4 enables voltage to vary between 0 and 3 3V The microcontroller with a built in A D converter is supplied with this voltage via test inputs Jumpers J14 and J15 are used for selecting one of the following pins RB8 RB15 to be supplied with A D conversion voltage Resistors R16 and R17 have a protective function and used to limit current flow through the potentiometer or the microcontroller pin a LEDs ee me EE Figure 12 2 Pins RB8 and RB12 used as input pins for A D conversion RFO mm ed RG1 ENVREG VCC 3 3 R16 P3 22 view VCC 3 3 715 0 RB12 R17 P4 10K 220 PIC24FJ96GA010 Figure 12 3 Microcontroller and A D converter test inputs connection schematic NOTE In order to
33. te the 41st program nt Search lr vanable by assembly name line The next line to be executed is highlighted in blue The state of registers being changed by executing this instruction may be viewed in the Watch Values window hile for counter OF countar c OF coupa T PORTH 1 lt counter P RTE 1 1 lt lt counter NOTE For more information on the mikrolCD debugger refer to the mikrolCD Debugger manual MikroElektronika 1U24 33 v6 Development System 5 0 ICD Connector The ICD connector enables communication between the microcontroller and an external ICD debugger programmer from Microchip ICD29 or ICD39 Jumpers J18 and J19 are used for selecting the pin to be fed with programming signal For the programming signal to be sent to the microcontroller it is necessary to place both jumpers in the same position as shown in Figure 5 3 Either RBO and RB1 or RB6 and RB7 microcontroller pins can be fed with this signal The position of jumpers J18 and J19 depends on the microcontroller provided on the MCU card When the PIC24FJ96GA010 microcontroller is programmed by means of the external ICD programmer jumpers J18 and J19 can be placed in any position The main reason for it is the capability of the microcontroller to be programmed over one of two available pairs of programming pins and RB1 RB6 and 7 The ICD3 programmer cannot be used for programming the microcontroller until the power supply is off I

Download Pdf Manuals

image

Related Search

Related Contents

Microsemi PD-5524G/ACDC/M  4 - Siemens  TSP EM Manual - Myers Power Products        ISTRUZIONI PER L`USO  "user manual"  EIP-D450 (GB) - MyProjectorLamps.com  User Manual - LTT  

Copyright © All rights reserved.
Failed to retrieve file