Home
LV-24-33 Manual - MikroElektronika
Contents
1. S3MHAN3 034 bud Loa PIC24FJ96GA010 dsPIC33FJ128MC710 VCC3 3 Ha E EIJA 8 1Od LY amp D00000 UUL DIL TT s s 91 Sy 3 3V 0 1 RB2 0 3 3V OIL DOLIN page A6 m d SN N 2 with USB 2 0 PROGRAMMER MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD enorme LV 24 33 Users Manual DEVELOPMENT TOOLS DIRECT PORT ACCESS All microcontroller input output pins can be accessed via connectors placed along the right side of the board For each of PORTA PORTB PORTC PORTD PORTE PORTF and PORTG there is one or two 10 pin connectors each providing VCC GND and up to eight port pins DIREGI PORT ACCESS Direct port access connectors These connectors can be used for system expansion with external boards such as Serial Ethernet Compact Flash MMC SD ADC DAC CAN RTC RS 485 etc Ensure that the on board peripherals are disconnected from microcontroller by setting the appropriate jumpers and switches while external peripherals are using the sam
2. be ia ia used for measuring voltages set by the potentiometers P1 P2 P3 and P4 MMC SD slot for multimedia cards with up to 2GB storage space Setting the jumper to the upper position sets the pins of the appropriate port to logical one pull up If the jumper is set to the lower postion pins are set to logical zero pull down It is very important to select pull up for a port if you expect logical zero on its inputs and vice versa You can connect an LCD if you need it for your application in 4 bit mode You can connect a Graphic LCD if you need it for your application or LCD in 8 bit mode LV 24 33 supports 80 pin and 100 pin PIC24 and dsPIC33 microcontrollers 85 buttons allow you to control every pin on your microcontroller You can choose how pressing the button will affect the pin high state or low state See all the signals each pin has an LED Set LCD contrast according to your display characteristics All switches on SW2 and SW3 turns ON or OFF the LEDs on all PIC24 or dsPIC33 ports You can choose which port you want LEDs to be connected to In certain applications it is important to remove all unnecessary connections from pins These DIP switches let you disconnect all LEDs from MCU pins Lad CLE us aire Te ABE bcd a im n we od 118 m ogeya gium gt 118 17 18 19 20 cju cB japi
3. pe amn E ES Fe USS LERE MIH I TI ele at a of sph uu ip j ak LESETITTIMETTTITIT 158 EEEL 4 f 4 r a P mies OF 2 itr det i L T a i rm cs z i erii ea a Mss EA 5 unu ihe peo Ly ony un i m 1 Diri 91 e h hi On Board peripherals are connected to the microcontroller using SW1 MMC SD Card is connected to the microcontroller through the switches 5 6 7 and 8 Both RS232 communication ports are connected to MCU using first four switches on SW1 PORTB is connected to a resistor network using switches SW4 and SW5 If a switch is in OFF position the appropriate pin has either pull up or pull down resistor attached This is very important as it enables PORTB to be used in analog mode as an A D converter as well as an ordinary digital I O port ICD2 In Circuit Debugger connector Reset circuit if the reset button is pressed a hardware reset will take place MCU will start executing from the beginning LV 24 33 Users Manual CONTENTS 2 Za CONNECTING THE SYSTEM page 4 INTRODUCTION page 5 DESCRIPTION OF THE DEVELOPMENT SYSTEM page 6 Switches and their functions page 6 Jumpers page 7 MCU sockets page 8 Power
4. 10 1015 QIS OININ g oo x Jeuye sey uid ET 9ixz t oejeudoJudde y pe TI Ajddns uonisod 440 pseu y Ul SI YOUMS om Dejoejes Ajddns e J GMS pue A t Jewod GMS SeuoiMs aE A ddns saj 28 gsn Jo Jeu 10 818 e esoou e p9joou u09 SI 41404 Od OV 9 Ajddns 40 9euuo9 suod uon Zd Ld sJejeuoguejod 0 asn se66ngeq 1n2415 ul Zaoi eoiunuluoo ZEZTSY pejoeuuoo 1 e qixoy 1sej AA Il O2 3085IA MMM gt 57001 SNOW amp aidsd PZIld dIHIOAIIN 1001 SEE NI BA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD i Sy WY Tv If you are experiencing problems with any of our Technical Support products or you just want additional information support mikroe com please let us know We are committed to meeting your every need If you have any other question comment or a busi ness proposal please contact us E mail office mikroe com Web www mikroe com Forum www mikroe com forum Software and Hardware solutions for Embedded World mikro
5. LV 24 33 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 25 with USB 2 0 PROGRAMMER LV 24 33 Users Manual DEVELOPMENT TOOLS DS1820 DIGITAL THERMOMETER DS1820 digital thermometer 15 well suited to environ mental temperature measurement having the temper ature range of 55 C to 125 C and the accuracy of 0 5 C It must be placed correctly in the 3 pin socket provided on LV 24 33 with its rounded side to the upper edge of the board see Fig 29 otherwise the DS1820 could be permanently damaged DS1820 s data pin can be connected to either RDIO or RDII pin which 15 determined by jumper J2 There is a mark in the form of half circle for ________ proper orientation of DS1820 sensor 10 5947 683200 DIGITAL THERMOMETER 125 C VCC3 3 8 PIC24FJ96GA010 z dsPIC33FJ128MC710 50 C TE ME i s um DS1820 VCC3 3 TTTTTUTTTUTTTTTTTTTTTTUTT 2 VCC3 3 R4 10K 051820 schematic 5 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LV 24 33 with USB 2 0 PROGRAMMER ADCINPU N ENABLED A D CONVERTER INPUT LV 24 33 development board has four potentiometers for working with A D Converter Analog to Digital Converter All potentiometers outputs are in the range of OV to 3 3V Each potentiometer can be connected on four different analog input pins The
6. As a power supply source users can select either a regulated supply from the USB cable default or an external power supply In case of the USB power supply the system should be connected to a PC using the USB programming cable while the jumper J4 should be set in the right hand position SELECTABLE In the case of an external power supply the LV 24 33 board produces 5V using an LM7805 voltage regulator The external power supply can be AC or DC with a voltage between 8V and 16V and the jumper J4 should be set in the left hand position In Fig 7 you can see USB and external power supply connectors There is also 3 3V voltage regulator MC33269DT 3 3 for 3 3V power supply Power supply select jumper bm USB and power supply connectors J4 in the left hand position system will take power from the external AC DC power adapter POWER SUPPLY J4 in the right hand position system will take power from the USB cable Ext USB Power Supply USB Ext External Power Supply External power connector supply connector REG4 7805 CN11 8 16V AC DC J4 5V FP1 Vout GND 2 C14 C6 100nF p 100nF MC33269DT 3 3 vy Figure 9 im p ii 2 3 GND Power supply schematic 1 E1 C1 10uF T 100nF page LV 24 33 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD with USB 2 0 PROGRAMMER il sil
7. LV 24 33 Users Manual ern cA DEVELOPMENT TOOLS Wmzxr ON BOARD USB 2 0 PROGRAMMER e There 1s no need for the use of external equipment during programming as the LV 24 33 development system has its own on board USB 2 0 programmer you need to do 15 connect the system to a PC using the USB cable Then load your program into the microcontroller via the LvPICFlash programming software which is supplied with the board A D n incom y wd BR v Figure 10 On Board USB programmer Note There is no need for manually reseting MCU after programming The programmer will reset the MCU automatically ON BOARD USE PROGRAMMER vcc POWER x vcc USB LINK VCC SWITCH X x PIC24FJ96GA010 dsPIC33FJ128MC710 eed o gsn pJeog uo useijDId 1 USB CONN TO PERIPHERALS ON DEVELOPMENT BOARD with USB 2 0 PROGRAMMER i 22 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LV 24 33 LEDs D S Light Emitting Diodes LEDs are the most commonly used components usually for dis playing pin s digital state LV 24 33 has 85 LEDs that are connected to the microcontroller s PORTA PORTB PORTC PORTD PORTE PORTF and PORTG Figure 12 Light Emitting Diodes Each group of LEDs can be enabled or disabled using the switches SW2 and SW3 Fig 13 illustrates the connect
8. disconnected pins For example the jumpers group J8 is used to connect or disconnect potentiometer P4 to RB12 RB13 RB14 or 15 line A connection is made when the 15 ae between two contacts Jumper as a Jumper is ON tE3 switch JUMPERS a 2 Jumper is OFF 010 More often jumpers are used as a selector between two possible connections using a three pin connector As illustrated in Fig 4 the middle connector can be connected to the left or right pin depending on the jumper s position lines are Left line Right line Figure 4 disconnected is selected is selected Jumper as a multiplexer with USB 2 0 PROGRAMMER 40 D WCU GA MCU CARD The LV 24 33 development board has a 104 pin MCU Card If you want to use some other microcontroller all you have to do is to change MCU Cards You can use 80 pin MCUs PIC24FJ128GA008 for example or 100 pin MCUs dsPIC33FJ256GP710 for example LV 24 33 MCU Card is shown on the following picture MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LV ea 3 3 When you placing MCU Card on LV 24 33 MCU socket you must follow these Steps GL Step 1 If there is already MCU Card placed on LV
9. i P C ou uo p vara P 5195 uonisod Jeddn 0 Jeduunf 119 8 Ut 077 ay p 955 87 22557 ri f EN LLEC c m EN E ori 318 e amp ge grat gi Ei B 38658 3 we ile JE fe 8 7 ee ull ee ee 42 Ei a Ze e 8 lez eile 18 a 10878 08 egl 8 d JOSOY 91215 JO 9 e s ybiy suid s oe P ES 25 aid e 6 nuuis JO suong m Yee l a 935 6 51 6 4 i dd 0tLOW99ZF 291 ene E 23 gt d a e gt os d uoneolunuJuJoo Smee ums find bs doe tds ves biva ben uoee sjeu Coins L Q C S Bis ay jje ees o m Gite pue piep SNO ur S OININSS qEU43 VIINORDITIBOIDUN 4 C 2 C i 21900 y uoneoi dde Qoo WOO a CC C peau cod nun GOT 7 an 23014 Oi a yOSUUOD ued gt 1 payoee sored eds He wan Ob Bars eipeuJnnuJ JO SIS9J UMO T gt iodh HILIIITLLT
10. respectively Rx and Tx lines for the RS232 B port are connected to PF4 and 5 pins respectively 24 33 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 728 with USB 2 0 PROGRAMMER LV 24 33 Users Manual DEVELOPMENT TOOLS Connection between microcontroller and a PC RS232 A Receive data Rx CONNECT MCU TO PC m mE TO MCU en VCC3 3 Data Tx O 10uF RS232A CON RSe232 COMMUNICATION PIC24FJ96GA010 dsPIC33FJ128MC710 22pF Vece R15 R16 10K 10K R17 Q1 D Q2 QD BC546 BC546 ER 22041 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LV 24 33 with USB 2 0 PROGRAMMER LV 24 33 Users Manual DEVELOPMENT TOOLS Connection between microcontroller and a PC 5232 B CONNECT MCU TO PC SERIAL CABLE RS 282 COMMUNICATION CONNECT Send PC TO MCU 52328 SUB D 9p TT B VCC3 3 ll B E PIC24FJ96GA010 7 dsPIC33FJ128MC710 T 1 10MHz T C1 C2 xL 22pF 2pF VCC3 3 SN RS232B Q4 QD 10K BC546 page
11. right of the GLCD LCD connector In order to enable LCD jumper J3 should be set to the left hand position labeled as CHAR GLCD contrast LCD8 contrast GLCD and LCD8 selected selected contrast not selected LGD 2X16 IN BBL MODE C Bi Contrast Adjustment Leave four free pins 4 to the right side Leave two free pins to the left side PIC24FJ96GA010 dsPIC33FJ128MC710 VCC3 3 x em Figure 25 1 ac LCD 8 bit mode schematic with USB 2 0 PROGRAMMER 22272 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 24 33 wena ELeKTRONICA LV 24 33 Users Manual DEVELOPMENT TOOLS RS 232 COMMUNICATION RS 232 communication enables point to point data transfer It is commonly used in data acquisition applications for the transfer of data between the microcontroller and a PC Since the voltage levels of a microcontroller and PC are not directly compatible with each other a level transition buffer such as the MAX232 must be used RSe232 COMMUNICATION Figure 26 RS232 connectors In order to provide a more flexible system the microcontroller is connected to the MAX232 through the switches 1 and 2 on SW1 for the RS232 A port and the switches 3 and 4 on SW1 for the RS232 B port Rx and Tx lines for the RS232 A port are connected to PF2 and PF3 pins
12. while button Is pressed is pressed I IC Buttons schematic Bale gave 2l MIKROELEKTRONIKA SOFTWARE HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LV 24 33 with USB 2 0 PROGRAMMER LV 24 33 Users Manual DEVELOPMENT TOOLS On Fig 18 the J21 jumper is set to pull up therefore when the button 15 not pressed pull up resistor pulls the microcontroller s RD8 pin to 3 3V 7 VCC3 3 2 10uF PIC24FJ96GA010 dsPIC33FJ128MC710 RDS A button press causes the port pin to be connected to ground 71 is in the right hand position VCC3 3 2 C 3 0V while pressed O VCC3 3 Thus only when the button is pressed the microcon Rt Button with pull up resistor troller will sense a logical zero otherwise the pin state will always be logical one PUSHBUTTON SWITCHES On Fig 19 the J21 jumper is set to pull down therefore T when the button is not iH pressed pull down resistor pulls the microcontroller s J21 pull down RDS pin to OV ta al PIC24FJ96GA010 A button press causes the j 5 dsPIC33FJ128MC710 port pin to be connected to i vens 3 3V 11 15 in the left hand og 3 3V while pressed position VCC3 3 Thus only when the button z is pressed the microcon tr
13. 24 33 you must remove it by slowly pulling it up Step no 2 Place MCU Card on the board Note that label on the MCU Card must be at the upper left corner as itis drawn on the LV 24 33 board Step no 3 When MCU Card 18 on the place push it down by applying the pressure on all edges at the same time page ea 3 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LV 24 33 Users Manual wi RELEETRONIKA DEVELOPMENT TOOLS Microcontroller s pins are routed to various peripherals as illustrated in Fig 6 All ports have direct connections to Direct Port Access connectors Such connectors are typically used for connecting external peripherals to the board or for providing useful points for connecting digital logic probe All ports are connected to LEDs push button switches and pull up down resistors which allow easy monitoring and testing of digital pin state MCU GARD Some pins are connected to other peripherials such as the DS1820 temperature sensor RS 232 communication LCD etc PORTE_L VCC3 3 10uF PIC24FJ96GA010 dsPIC33FJ128MC710 page 2 0 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD SE with USB 2 0 PROGRAMMER LV 24 33 Users Manual POWER SUPPLY
14. AITNE im Ha pad hw LE ier lip BOGE i 1551 IDE B Te uem E TT Ll 5 F T 2 e n 4 1 wer il a ix s da a R s E DENTIS l LY T E 5 8 X REA ed ts A S Se ee TAXE MCTAFIITBGADIO PF abe GaFICSSEJTEAMC 10 TITETEE E R A iw Ur roo y mw F s y pe 3 ang 516 5o J m E wi m d i LM E i L sis dr t Tn EE D E 2 a Li E usos un a gt W E F l 2 x 8 a a4 r E 37 EL E EL i is ud d UI OE 2 4 ae 8 jug PORTE n zd LA Tw 1 Aa o il dERSSSERSSRE 9 i ud 71 8 5 e t LR 4 neee ee ee ee a ym 4 Si 54157 i 15555 a 4 dra TH PORTF 1 E a Fake pure Ap AERA gt mp Mh pa ata uwi peer mere 104 Pelee zi j oA Pu u ELEME UL M IM ae oe rid
15. CD2 connector VCC3 3 o 0010 CONNECTOR 4 2 86013 8612 8614 1 REO RA7 RAG RGO RG1 FR1 RFO ENVREG VDDcore RD7 PIC24FJ96GA010 dsPIC33FJ128MC710 eere ICD2 connector schematic LV 24 33 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 335 with USB 2 0 PROGRAMMER LV 24 33 Users Manual eene DEVELOPMENT TOOLS Xmas MMC SD MULTIMEDIA CARD MASS STORAGE 1D gt E SJ 256MB MMC card is used as storage media for a portable devices in a form that can easily be A MIMGISD MULTIMEDIA GL SUPPORTED removed for access by a PC For example a digital camera would use an MMC card for storing image files With an MMC reader typically small box that connects via USB or some other serial connection you can easily transfer data from MMC card to your comput er Microcontroller on LV 24 33 communicates with Multi Media Card via SPI communi cation Modern comput ers both laptops and desktops often have SD slots which can read MMC cards MMC slot on board To enable MMC card you must turn on switches 5 6 7 and 8 on SW1 By doing that micro controller s SPI comunnication lines SDI SDO and SCK and Chip Select are connected to MMC Working voltage of MMC card is 3 3V DC Because of that there 15 a volta
16. F which have a role to establish or break a connection between two contacts The LV 24 33 development board has four groups of switches SWITCHES The switches on SW1 are used to enable connection between the microcontroller pins and both RS232 communication devices The first two switches are used for RS232A communication lines while the second two are used for RS232 B communication lines Switch SW1 is also used to enable SPI communication and to enable connection between the microcontroller pin and CS pin for MMC SD Card The switches on SW2 and SW3 are used to enable LEDs connected to PORTA PORTB PORTD PORTE PORTF and PORTG The switches on SW4 and SWS are used to enable a connection between the microcon troller PORTB with external pull up down resistors When PORTB pins are used as digital inputs outputs the appropriate pull up down resistors should be enabled Group of 8 switches Switches 1 and 2 are ON and other switches are OFF Switch is ON 070 lt Switch is OFF 62708 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LV 24 33 with USB 2 0 PROGRAMMER wena ELeKTRONICA LV 24 33 Users Manual DEVELOPMENT TOOLS JUMPERS Jumpers like switches can break or establish a connection between two points Beneath the plastic cover of the jumper is a metal contact which makes a connection when the jumper is placed between two
17. MER 21 od ejeudoJudde y Jo suld eui JOSU S JOjoeuuoo einjejeduiej OZ8LSG_ iseQuoo GOVGOIN 2 Eit rs eni 020 021 p fee J9 OMJUUODOINIW pue pzold suod eeoldsP JO uo 5031 440 NO suin uid 00 pue 08 sHoddns ee pz A1 EMS pue UO 3 wares LN M s1338 mm MIL L 031970 1 2918 1 rg Cf e gi y t 2 i1 DEK Ae E lt El jnq y Moy 950045 m Tan T e T as a T a 1 1 bi Ov ti 2 usd A giuste 5 et ues vere tm g ZW 28 IDO JES 9JE pue ESE 20258 suny 9 OF I 9 suid Uonsod 9 pue i 3 0 2 B 4 51 0 unop dn Ting 2 Cauca 4 nt Meas nod a 20 948 1 936 etae lt TRECE MOIH 01009 bd UL d m teens niece EXE e EXE iiM 195 si Jeduunf NT i Purses iso ae ca hen TRER Jo ejejs JI dn jnd uno Qanie 20990 r4 PIE M a i
18. SOFTWARE HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MikroElektronika LV 24 33 Manual E To s 21 E ate m A 3 7 P2t i pocs3 gt v2Ct41 por32 lt X731 2 e2tO3 srip Areg PLETT S pi cen Pre m With useful implemented peripherals plentiful practical code examples and a broad set of additional add on boards Serial Ethernet Compact Flash MMC SD ADC DAC CAN RTC RS 485 etc MikroElektronika development boards make fast and reliable tools that can satisfy the needs of experienced engineers and MICROCHIP 24 33 DEVELOPMENT beginners alike BOARD gt PROGRAMMER Software and Hardware solutions for Embedded World LV 24 33 KEY FEATURES 10 11 12 13 14 15 16 External power supply from 8 to 16 V AC DC Choose between external and USB power supply When powering from your PC s USB port you don t need an exter nal supply Very fast and flexible USB programmer on board The key feature is expandabili ty By downloading new software you will be able to program new MCUS in coming years DS1820 temperature sensor allows you to measure temperature with 0 5 accu a racy Two RS232 communication ports RS232 A and RS232 B For presentation purposes all PORTB d gau bala ca ai E 211 a 8 pins are connected to
19. Supply page 11 On Board USB 2 0 programmer page 12 LEDs page 13 Pushbutton switches page 15 Graphic LCD page 18 LCD 2x16 in 4 bit mode page 20 LCD 2x16 in 8 bit mode page 21 RS 232 Communication page 23 DS1820 Digital Thermometer page 26 A D Converter input page 27 Direct port access page 29 ICD2 In Circuit Debugger connector page 31 MMC SD Multimedia Card page 32 with USB 2 0 PROGRAMMER LV 24 33 Users Manual P CONNECTING THE SYSTEM The development system box contains the development system product CD USB cable RS232 cable and this manual Step no 1 The first thing to do is to take the system out of the box Unpack the USB cable and connect it to the PC Please use USB ports on the back of the PC with direct connection to the moth erboard Step no 2 Install the LvPICFlash programmer and drivers Start the installation from the product CD CD Drive product zip LvPICFlash setup exe Step no 3 After the installation connect the USB cable to the LV 24 33 board You will be asked for the LvPICFlash drivers Point to them in order to finish the driver installation They are placed in folder System Drive Program Files Mikroelektronika LVPICFLASH Driver NT CONNECTING SYSTEM Step no 4 Run and use LvPICFlash as it is explained in the PDF document LvPICFlash programmer CD Drive product pdf lvpicflash manual pdf After these 4 steps your LV 24 33 15
20. TRONIKA SOFTWARE HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LV 24 33 with USB 2 0 PROGRAMMER LCD 2X16 IN 8 MODE When using a character LCD in 8 bit mode the connector that 15 shared with the GLCD should be used Since this connector has 20 pins and the character LCD has only 14 pins special attention is required when placing the LCD Otherwise the LCD can be permanent ly damaged PT wd 3 View from the back shows which pins stays disconnected board If the power supply is connected while placing GLCD unit can be permanently dam aged Y NOTE Make sure to turn off the power supply before placing GLCD on development NOTE Make sure to place the LCD properly Improper placement may damage the LCD unit permanently VOID LGD 22616 IN 8 18 LV 24 33 with USB 2 0 PROGRAMMER MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LV 24 33 Users Manual T The LCD must be placed in the marked position with two free pins to the left and four free pins to the right It is important to note that the LCD should be placed or removed from LV 24 33 only when the power is off Before attaching the LCD set jumper J3 to the left hand position The LCD s contrast can be adjusted using potentiometer P6 which is located to the
21. change states of digital inputs to micro controller Reset switch schematic is shown one switch that acts as a RESET in Figure 14 O 2 r D A VCC3 3 e 10uF C O V V OJHAN3 PIC24FJ96GA010 dsPIC33FJ128MC710 programmer aa EL o Em rol 100 19059 O Eom O o O 1 Qo O VCC3 3 5 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD m i nu 5 with USB 2 0 PROGRAMMER LV 24 33 Users Manual eene DEVELOPMENT TOOLS Buttons connections to PORTD low is shown in Fig 17 Jumper J1 determines whether a button press will bring logical zero or logical one to the appropriate pin When button is not pressed pin state 1s determined by the pull up or pull down port jumpers In the example shown in Fig 17 JI is connected to 3 3V therefore pressing the buttons will bring logical one to the appropriate pins PORTD low VCC3 3 O PUSHBUTTON SWITCHES 10 Td PIC24FJ96GA010 dsPIC33FJ128MC710 2 A Reset 100n VCC3 3 3 3V while button OV
22. e ib Liu rer TE ML ih Slem comina do LOO a SLED Ni Gens phar apply eneral or URR 10 POSTE LOW sng 22 04 to fe Seles GLCDGLCD peer Supply X9 o W Pull upedouwn PORTS EUM MSN Taree naii A 9232 Tura adi 15 SUMS Pull geDeun on p PINE T jE c fri t Mere Se o 193 20 calf a m dedi vm a Tra xar ee Ea TERT T Y T JA me 8 E Ae 8 wn m a 7 Jc CIR MC Bae a z i Sa TITLE EIN LE I level fe 15 2g gl eden a Dr TP mnm ee _ __ Fa ri SOJ DUXG T OD N N gt 3 MIKROELEKTRONIKA SOFTWARE with USB 2 0 PROGRAMMER AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LV 24 33 Users Manual T SWITCHES The LV 24 33 development board features a number of peripherial devices In order to enable these devices before programming you need to check if appropriate jumpers or switches have been properly set Switches are devices that have two positions ON and OF
23. e pins The connectors can also be used for attaching logic probes or other test equipment Example of how to connect exter nal peripheral with flat cable 24 33 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 29 with USB 2 0 PROGRAMMER LV 24 33 Users Manual wi RELEETRONIKA DEVELOPMENT TOOLS VCC3 3 Pull up line is LJ connected J20 T E H p Ck Pull down line All lines RN20 is connected are disconnected DIRECT PORT ACCESS RPACK8 9 Figure 35 8x100K PORTD low connection ________ Epp Nx cj DU MEE EE 10uF ail LS LLLI ial VCC3 3 HEADER 5x2 PIC24FJ96GA010 dsPIC33FJ128MC710 16 X1 1 10MHz X c e e L C2 B 22pF VCC3 3 page with USB 2 0 PROGRAMMER eA 0 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 24 33 wena ELeKTRONICA LV 24 33 Users Manual DEVELOPMENT TOOLS ICD2 IN CIRCUIT DEBUGGER CONNECTOR The ICD2 is low cost In Circuit Debugger ICD and In Circuit Serial Programmer ICSP ICD2 is intended to be used as an evaluation debugging and programming aid in a labora tory enviroment The ICD2 offers these features Real time and single step code execution Breakpoints Register and Variable Watch Modify In Circuit Debugging Figure 36 Target VCC monitor I
24. epair modification or alteration is authorized in writing by MikroElektronika MIKROELEKTRONIKA PROVIDE THIS MANUAL AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY OR FITNESS FOR A PARTIC ULAR PUROSE IN NO EVENT SHALL MIKROELEKTRONIKA ITS DIRECTORS OFFICERS EMPLOY EES OR DISTRIBUTORS BE LIABLE FOR ANY INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING DAMAGES FOR LOSS OF PROFITS LOSS OF BUSINESS LOSS OF USE OR DATA INTERRUPTION OF BUSINESS AND THE LIKE EVEN IF MIKROELEKTRONIKA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES ARISING FROM ANY DEFECT OR ERROR IN THIS MANUAL OR PRODUCT SPECIFICATION AND INFORMATION CONTAINED IN THIS MANUAL ARE FURNISHED FOR INTERNATIONAL USE ONLY AND ARE SUBJECT TO CHANGE AT ANY TIME WITH OUT NOTICE AND SHOULD BE CONSTRUED AS A COMMITMENT BY MIKROELEKTRONIKA MikroElektronika assumes no responsibility or liability for any errors or inaccuracies that may appear in this manual including the product and software described in it Product and corporate names appearing in this manual may or may not be registered trade marks or copyrights of their respective companies and are used only for identification or explanation and to the owners benefit without intent to infringe EZ MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 24 33 with USB 2 0 PROGRAM
25. ge regu lator on board with MMC card MC33269DT 3 3 72 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 24 33 with USB 2 0 PROGRAMMER wena ELeKTRONIA LV 24 33 Users Manual DEVELOPMENT TOOLS VCC3 3C VCC3 3C VCC m VCC C10 1 100nF GND CN6 p 10uF 65 Din e SCK MMCISD MMC SDO Dout CARD MMC CS VCC3 3 MMC SCK RE4 RE3 RE2 RG13 RG12 RG14 RE1 REO 7 RA6 RGO RG1 FR1 RFO ENVREG VDDcore RD7 UK 0 MWLETIUMEDIA GARD PIC24FJ96GA010 dsPIC33FJ128MC710 XU MMC schematic LV 24 33 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 230 with USB 2 0 PROGRAMMER LV 24 33 Users Manual Second edition January 2007 No part of this manual including the product and software described in it may be repro duced transmitted transcribed stored in a retrieval system or translated into any language in any form or by any means except documentation kept buy the purchaser for backup pur poses without the express written permission of MikroElektronika company Product warranty or service will not be extended if the product is repaired modified or altered unless such r
26. installed and ready for use You can try to read pro gram from the chip or to load an example from the examples folder of mikroElektronika s compilers for dsPIC or from the product CD CD Drive product zip lv2A 33 examples zip MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 24 33 INTRODUCTION The LV 24 33 development system is a full featured development board for Microchip PIC24 and dsPIC33 microcontrollers It has been designed to allow students and engineers to easily exercise and explore the capabilities of PIC24 and dsPIC33 microcontrollers It allows PIC24 and dsPIC33 microcontrollers to be interfaced with external circuits and a broad range of peripheral devices allowing a user to concentrate on software development DEVELOPMENT BOARD Figure 1 illustrates the development board Each component 15 marked on silkscreen both top and bottom These marks describe connections to the microcontroller operation modes and provide some useful notes The need for additional schematics is minimized since all relevant information 15 printed on the board Figure 1 LV 24 33 development board USB LINK POWER FARINI J a d ENS re SS oe 328 EI NI Af AD COMMITEE PUT PET ore gree gt LELI juna qui i JrIERRDTLIS d Iud PORTAE ae ee ae LI L PORTB LOU HY Hr E LP Hiie bo ele i cepe E LUN Lig Emm Li slp T HIGH
27. ion of a LEDs to PORTD LOW of the microcontroller A resistor is used in series with the LED to limit the LED s current In this case the resistor s value is 1K with USB 2 0 PROGRAMMER LV 24 33 Users Manual eene DEVELOPMENT TOOLS 2 The LEDs are enabled when the corresponding switch SW2 and SW3 is on When c enabled LEDs will display the state of the corresponding microcontroller pin otherwise the ES LEDs will always be off no matter what the port state is as no current can flow through ES LED SW2 PORTA L PORTA E PORTB L PORTB H LED schematic 7 PORTD_H PORTE_L PORTF_L PORTF G PORTG H qj RPACK8 9 8x330 VCC3 3Q iE 22 1i E PIC24FJ96GA010 7 dsPIC33FJ128MC710 1 j E 10MHz li E 5 2 eee 2 2 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD SE with USB 2 0 PROGRAMMER 0 0 gt C m ST fu 2 MIKROELEKTRONIKA DEVELOPMENT TOOLS Sall TOLMAS WOLLMAN PUSHBUTTON SWITCHES LV 24 33 has 85 push buttons s ports There is also which can be used to
28. jumpers group 15 enables connection between potentiometer RBO RB1 RB2 pin The jumpers group J6 enables connection between potentiometer P2 and RB4 RB5 RB6 or RB7 pin The jumpers group J7 enables connection between potentiometer and RB8 RB9 RB10 or 11 pin The jumpers group J8 enables connection between potentiometer P4 and RB12 RB13 RB14 or 15 pin A D Converter input In order to measure analog signal without interference turn the coresponding switch on SW4 and SWS to OFF position This will disable connection of the used PORTB pin to the pull up down resistors Applications of A D Conversion are various Microcontroller takes analog signal from its input pin and translates it into a digital value Basically you can measure any analog signal that fits in range acceptable by PIC24 or dsPIC33 That range is to 3 3V RULER UNPU CONV ALOG TO DIGITA LV 24 33 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MIKROELEKTRONIKA DEVELOPMENT TOOLS 10 0 gt pm m mM ST fu 2 Figure 32 A D Converter input schematic VCC3 3 10uF 3 3V 0
29. oller will sense a logical EEE Button with pull down resistor one otherwise the pin state will always be logical zero LV 24 33 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD i Tf with USB 2 0 PROGRAMMER LV 24 33 Users Manual eene DEVELOPMENT TOOLS cmm GRAPHIC LCD CONNECTOR A graphic LCD GLCD allows advanced visual messages to be displayed While a charac ter LCD can display only alphanumeric characters a GLCD can be used to display mes sages in the form of drawings and bitmaps The most commonly used graphic LCD has the screen resolution of 128x64 pixels Before a GLCD is connected the user needs to set the jumper J3 Fig 21 to the right hand posi tion The GLCD s contrast can be adjusted using the potentiometer P6 which is placed to the right of the GLCD GRAPHIC LCD 41 t9 NOTE Make sure to turn off the power supply before placing GLCD on development board If the power supply is connected while placing GLCD unit can be permanently dam aged i MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LV 24 33 with USB 2 0 PROGRAMMER deg LV 24 33 Users Manual In order to enable GLCD jumper J3 should be set to the right hand position labeled as GRAPH GRAPHIC LGD 128060 vcc U J3 B C3 CHAR lt eontinst not eoiected C Ei Contras
30. t Adjustment uil PIC24FJ96GA010 dsPIC33FJ128MC710 e schematic p e VCC3 3 t 24 33 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD al 9 with USB 2 0 PROGRAMMER LV 24 33 Users Manual ern cA DEVELOPMENT TOOLS ee LCD 2X16 IN 4 BIT MODE LC B A standard character LCD 15 probably the most widely used data visualization component Usually it can display two lines of 16 alphanumeric characters each made up of 5 8 pix P els The character LCD communicates with the microcontroller via 4 bit or 8 bit data bus each requiring the use of a different connector on LV 24 33 For 4 bit data bus use the LCD m should be placed in the upper left of the board just above the LEDs The connection to the microcontroller is shown in Fig 23 where there are only four data lines It is important to 1 note that the LCD should be placed or removed from LV 24 33 only when the power is off Figure 22 OM jj LCD 2x16 4 bit mode S LN ON vcc O Contrast Adjustment P5 ex Its N e 32822223885 04 5 f 5 5 5 c5 ne x 4 A f PIC24FJ96GA010 dsPIC33FJ128MC710 LCD 2x16 in 4 bit mode schematics VCC3 3 22 0 MIKROELEK
Download Pdf Manuals
Related Search
Related Contents
TRIO 1248 User Manual CA500/600/700キーレスアダプターへの接続方法 Agilent Technologies 6010a Power Supply User Manual histoire !* - Eco Français, mode d`emploi CM2 Sedrap - e Copyright © All rights reserved.
Failed to retrieve file