Home
LV18F v6 Development System User Manual
Contents
1. 7 ra eat a ee MikroElektronika LV 18F v6 Development System 2 0 Supported Microcontrollers The LV 18F v6 development system provides a DIMM 168P connector to place an MCU card into Such development system comes with an MCU card with an 80 pin microcontroller in TQFP package soldered on it Figure 2 3 Besides the MCU card alone provides an oscillator as well as 80 soldering pads connected to microcontroller pins Each pad is marked same as the pin it is connected to Soldering pads also make connection between the MCU card and target device s modules easy DIMM 168P connector for placing MCU card with microcontroller in TQFP package ho BS A AFTY F k i 3 ry i r3 ere 0 a SO pinTOFP enone gf MCU CARD FOR MCUs WITH ETHERNET DEVELOPMENT TOOLS FOR EMBEDDED WORLD vere Pull g i m Figure 2 1 DIMM 168P connector Figure 2 3 MCU card with 80 pin microcontroller in TQFP package soldered on it RB6 PGC RB7 PGD RCO RC1 RC2 RC3 RC4 RC5 RC6 RC7 RDO RD1 RD2 RD3 RD4 RD5 RD6 RD7 REO RE1 oe x ol o zliwloe x o a m am m a m m cicieieiacivioieivy RB6 PGC RB7 PGD RCO RC1 RC2 RC3 RC4 RC5 RC6 RC7 RDO RD1 RD2 RD3 RD4 RD5 RD6 RD7 REO RE1 Figure 2 4 Schematic of the DIMM 168P connector s pinout MikroElektronika page LV 18F v6 Development System Placing MCU card into the DIMM 168P connecto
2. LV 18 F v6 User manual All 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 Devel opment Syste EJMikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD waking it sigle TO 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 Accuron dsPIC KeeLog microlD MPLAB PIC PlCmicro PICSTART PRO MATE PowerSmart rfPIC and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U S A and other countries LV 18F v6 Development System TABLE OF CONTENTS Introduction to LV 18F v6 Development System sess nennen nennen nnn nnns 4 gc m lUi cR UE Em 5 1 0 Connecting the System to eeg
3. Mikroelektronika 2009 All Rights Reserved LO SOJMILU 9IIIJJO Je sn 1981UOO 0 ejejsoeu JOU op sjesodoud soueng Jo s u tuuuo2 suoils nb ue eAeu nof J WOddNs us WOd SOJ4ILU MMM ye 1exon UNOA agejd aseajd uoneuuojur jeuonippe p u snf 10 sionpold ino Jo ue yum Swa qoJd eulos Buiouauedxe ae nof LO op III MAM Je lISQ A INO SIA eseejd SIONPOIA JNO 1r oqe sJOW UBA 0 JUEM nof J fa d IHOM Q4GGdglIAd 804 SNOLLA TOS 3HVMQOSHVH ANY d4dVA 14OS
4. 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 display can be plugged into the appropriate connector Figure 4 NOTE LEDs and pull up pull down resistors on ports PORTA and PORTD must be off when using a touch panel MikroElektronika LV 18F v6 Development System 21 0 Input Output Ports Along the right side of the development system there are nine 10 pin connectors which are connected to the microcontroller s I O ports Pins RB6 and RB7 are used for programming and therefore are not directly connected to the appropriate 10 pin connector but via the programmer s multiplexer DIP switches SW1 SW9 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 J9 Jumper for pull up pull down resistor selection DIP switch to turn on pull up pull down resis tors for each port pin Figure 21 1 I O ports Microcontroller port PORTC pins connected to pull down resistors pull down RH1 um RH0 m RE2 RE3 mu RE4 um RE5 m REG mm RE7 RDO m VCC mm ENDE RD1 RD2 mu GNDPLL mm VCCPLL mm RBIAS mm GNDTX mm TPOUT mm TPOUT VCCTX PIC18Fxx OVCC 3 3 Figure 21 4 Port PORTC connecti
5. 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 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 any time without prior notice if necessary HIGH RISK ACTIVITIES The products of MikroElektronik
6. 10 is used as a selector for a power supply source To make advantage of the USB power supply jumper J10 should be placed in the USB position When using external power supply jumper J10 should be placed in the EXT position The development system is turned on off by switching the position of the POWER SUPPLY switch San si NN Power supply voltage regulator POWER SUPPLY signal ONER eg LED diode Jumper J10 as a selector sr POWER for a power supply source de se og Us POWER SUPPLY switch Hin E es Figure 6 1 Power supply J10 Powering over EM AC DC connector J10 EXT USB USB connector ox mo pu PS Side view Ti Side view Side view 4x1N4007 D13 8 Side view Top view ESWC DRVCI L2 GND CMPRI MC34063A KK A K Side view Bottom view Side view Ell PTI Side view Side view Figure 6 2 Power supply source schematic MikroElektronika LV 18F v6 Development System 7 0 3 3 V Voltage Regulator The microcontroller uses 3 3V power supply voltage for its operation To reduce the power supply voltage from 5V to 3 3V a voltage regulator is needed The LV 18F v6 development system includes the MC33269DT 3 3 circuit which is used as a voltage regulator Its key features are stable output voltage 3 3V 800mA output current thermal protection etc Je 4 4ovcc 5v C5 Es VOUT VCC 3 3 2 t E7 1 MC33269DT 3 3 10uF 100nF 10uF e RE
7. C1 VCC ma RB7 RC5 m RC4 RC3 mu RC2 RG2 RG3 PIC18Fxx VCC 3 3 VCC 3 3 down G Figure 21 7 Jumpers J7 and J12 in the same position MikroElektronika S i RN7 dn 7 SW7 12345678 In order to enable the PORTG port pins to be connected to pull down resistors it is necessary to place jumper J7 in the Down position first This enables any PORTG port pin to be supplied with a logic zero OV in idle state over jumper J7 and 8x10k resistor network To provide the RBO pin with such signal it is necessary to set the RGO switch on the DIP switch SW7 to the ON position As a result every time you press the RGO push button a logic one VCC voltage will appear on the RGO pin provided that jumper J12 is placed in the VCC position In order to enable port PORTG 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 J7 in the Up position and jumper J12 in the GND position This enables any port PORTG input pin to be driven high 5V in idle state over the 10k resistor As a result every time you press the RGO push button a logic zero OV will appear on the RGO pin provided that the RGO switch is set to the ON position In case that jumpers J7 and J12 have the same logic state pressure on any button will not cause input pins to change their logic state DISCLAIMER All the products owned by MikroElektronika are
8. CK Ir UD fies 10 O a m nz D a rato X 6 CN21 Z0 1 52 3 u 5 55 7 Tmp PIC1 8F8 J60 OSC2 E per wasa E OSC1 6916 1 OVCC 3 3 22 2 e RB7 J RC5 mm om i RC4 8 RC3 mu Be pu RC2 x RG2 CA RG3 mu 1 H D I Lei m RH5 ma RH4 um RF 1 mm ENVREG ee CINE ID mu RA3 mus RA2 mm RA1 m RAO fe m CC mm RA5 mu RA4 mm RC1 m RCO um RCG mm RC mu RJ4 mm RJ5 Figure 19 3 GLCD display connection schematic MikroElektronika page LA 24 LV 18F v6 Development System U 9 20 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 SW13 are used for connecting these two units Figure 20 1 Touch panel Figure 20 1 shows how to place a touch panel over a GLCD display Make sure that the flat cable is to the left of the GLCD display as shown in Figure 4 Touch panel is connected to the microcontroller via pins RA0 RA1 RD1 and RD2 NO RAO RAT READ Y DRIVEA DRIVEB ez9csprez BE TOUCHPANEL CONTROLLER Figure 20 2 Touch panel connection schematic a N DL k ti T k Y ke L Figure 20 3 Placing touch panel Figure 20 3 shows in detail how to connect
9. LY EXTERNAL OR USB J13 DISABLES CURRENT LIMITING PROTECTION FOR BUTTONS J14 CONNECTS POTENTIOMETER P3 TQ RAO RAI RA2 RA3 OR RA4 rm ru BR m LI ANALOG INPUT L 4 J15 ALS IN POTENTIOMETER P4 TQ RCO RCT RFO REI OR RF2 bg Z A Z Z A A 2 A Z f 0 hiq h wNE Pull gH mH ma 88 88 ma 88 NH RW Pg Ce Down L111445 Z 3 3V VOLTAGE it x A REGULATOR m EN EN EN EN EN EN i swi SW9 ENABLE PULL UP OR PULL DOWN RESISTORS ON PORTA CO Z HH he pe ku ku he bn ku EH ORTB PORTC PORTD PORTE PORTF PORTG PORTH pg Z s w AND PORTJ PINS La D A 5 SW10 TURNS ON OFF PORT LEDS 1 LIT LT T T T Z A a o 1 E EE HEHE EE EE EE EH RR RS sw ENABLES SPI COMMUNICATON AND CONNECTS it TTTTTTT Zb m RAM S CS AND HOLD LINES TO REO AND RC1 II Z E RR RR 88 AA WR RR WR H pog PINS RESPECTIVELY Q A ENDE II SW12 CONNECTS RX AND TX LINES FOR RS 232A m Up Z E EE hu hu EH EH hu hu UM tt COMMUNICATION TO RC7 AND C PINS OR RB5 AND LJ Pull A i RB7 PINS RESPECTIVELY CONNECTS RX AND TX LINES na Down Z m mnm mum RR RS RS mm mm m Hae FOR RS 232B COMMUNICATION O RG2 AND RG1 PINS l Z EM FEN M a NEN RESPECTIVELY ENABLES LCD ANI GLCD BACKLIGHT u ROUER Z mu nu nu ku KK mu mu m SW13 CONNECTS EEPROM SDA AND SQL LINES TO RC4 AND Z z it RC3 PINS OR TO RB4 AND RB6 PINS RESPECTIVELY vi Z m nu RR RR RN RR mu RR RM z CONNECTS TOUCH
10. M etc are provided on the board and allow you to easily simulate the operation of the target device Full featured and user friendly CH P TA LV18F development system for PIC j Lu E kaaa 18Fxx microcontroller based E TT TI wi devices np i E gt d HUE 6 TEEERIC USB 2 0 on board programmer IN CIRCUIT HDD Be ROGRAMME P NBA MIA ERBEBNA s Hardware In Circuit Debugger for step by step debugging at hardware level uns di ii Pe Bei m s d S of e aem kel i E LILLLITM OTTO Sg 001010505 03050 EE TL TCTC TOI OAOE L K K OK KI EB s apuq Si i o d MILI Bult in DTD voltage regulator providing 3 3V required for the microcontroller operation E a BLR LEN i ta Tw la 8 Ch d a ip k LI L iW i E niet dl CT Mn hr FS es we es an wc a we 8 weie zi a a y 4 NET 107 105 430 38 g a la es w 8 wi l GRAPHIC LCD Ze am CONNECTOR ur a E ELE i ell p 1 h K su LJ Graphic LCD display with backlight WK ieee Pl f The LV18PICflash 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 LV 18F v6 product CD with appropriate software USB cable Documentation LV 18F v6 a
11. PANEL CONTROLLER TO RAO AND RAI massa A El i ANALOG INPUTS AND TO RD1 AND RD2 CONTROL PINS Em mi Im m Z o mu mu mu E mu mu oe J1 J9 SELECT PULL UP OR PULL DOWN RESISTORS ON PORTA PORTB CEET LLLI O N A A L L e L L a L m L L al PORTC PORTD PORTE PORTF PONTG PORTH AND PORTJ Z E E Z A i A A A Bomm EH lilii rob EH pa pm EN EE un ANALOG INPUT A 1 FOR MORE INFORMATION REFER TO THE LV18F V MANUAL 0 EN am Il Etro Je 16 17 18 19 20 21 22 23 24 25 26 et 28 29 30 Serial EEPROM Graphic LCD display contrast adjustment Touch panel controller Graphic LCD display connector Touch panel connector Push buttons simulate digital inputs Shorting jumper for protective resistor Selector for pins logic state Reset button MENU keypad 3 3V voltage regulator Power supply voltage regulator 70 LEDs indicate pins logic state Alphanumeric LCD display contrast adjustment Alphanumeric LCD display connector USB 2 0 with mikrolCD support programmer y a c eses OSOS Ka 4 NN SS MMMAAAH _ _ WN E N Ze DEE DEE DEE page U1 e MikroElektronika 6 LV 18F v6 Development System Q CH 3 1 0 Connecting the System to a PC Step 1 Follow the instructions provided in the relevant manuals and install the LV78P Cflash program and
12. USB drivers from the product CD USB drivers are necessary for the proper operation of the on board programmer In case you already have some of the MikroElektronika s PIC compilers installed on your PC there is no need to reinstall USB drivers as they will automatically be installed along with the compiler Step 2 Use the USB cable to connect the LV 18F v6 development system to a PC One end of the USB cable with a connector of the USB B type should be connected to the development system as shown in Figure 1 2 whereas the other end of the cable USB A type should be connected to a PC When establishing a connection make sure that jumper J10 is placed in the USB position as shown in Figure 1 1 USB connector J10 power supply selector Step 3 Figure 1 1 Power supply Figure 1 2 Connecting USB cable Turn on your development system by setting the POWER SUPPLY switch to the ON position Two LEDs marked as POWER and USB LINK will automatically illuminate indicating that your development system is ready to use Use the on board programmer and the LV18PICflash 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 additional modules
13. a 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 mikroC mikroC PRO mikroBasic mikro Basic PRO mikroPascal mikroPascal PRO AVRflash PlCflash dsPlCprog 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 PIC32MX4 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
14. a l i d A d A m mm RS RH D FOR SELECTING VOLTAGE LEVEL TO BE APPLIED WHEN BUTTON IS PRESSED 36 Qe Q9 m m N E Key Features E Ur de Que Ts On board programmer s USB connector Connector for Microchip s debugger ICD2 or ICD3 Ethernet module USB communication interface A connector for RS 232 communication A D converter test inputs B connector for RS 232 communication DIMM 168P connector for MCU card Pull up pull down resistor selection DIP switch enables pull up pull down resistors I O port connectors DIP switch turns on off integrated modules D81820 temperature sensor Serial RAM LEDB TO RAI PIN mimi imi s WS O PRG ICD POWER SUPPLY EE EH ON LEDA LEDB OFF ON LCD 2x 16 E Wl CHARACTERS IN 4 BIT MODE E i a E m IMPORTANT OOO 8 9 69 E mue BeBe m m mi m m m m m RS 232 s ES m COMMUNICATION mj imi EN T T1 eo T SI SSS SSS Z DEVELOPMENT BOARD BY MIKROELEKTRON KA H 1 HE Domni SSS Lil 00000009 1111141111 1111111 HI UU ESCH WISS SAY SS 899 8 89 8g 999 WE i Up Pull Douin PLATED EDGE CONTACT MCU CARD Z Z Es Es Es Es Es eee 0000000 Si 22222222018 Z i HERE GUTT 8 Es Es Es Es Es eee a SE HI HH 9 e uii SR N Z rE RoHs GEET En es A mm JE Eai omm mm sr ieee loses EE 11111111 8 J10 SELECTS POWER SUPP
15. de voltage is approximately 2 5V while the current varies from 1 to 20mA depending on the type of LED The LV 18F v6 uses LEDs with current 1mA There are 70 LEDs provided on the LV 18F 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 PORTG PORTH or PORTJ using DIP switch SW10 n rm E DE m EL A rug H il f je de aja de SC LG Si Figure 15 1 LEDs Port PORTC LEDs illuminate RH1 a RHO mu RE2 mm RE3 mm RE4 REG mu REG RE7 RDO VCC m GND RD1 RD2 GNDPLL VCCPLL mm RBIAS mm GNDTX 1 TPOUT um TPOUT mm VCCTX VCCRX PIC18Fxx VCC 3 3O OVCC 3 3 Figure 15 2 LEDs and port PORTC connection schematic MikroElektronika 20 LV 18F v6 Development System 0 CH 8 16 0 Push Buttons The logic state of all microcontroller input pins may be changed by means of push buttons Jumper J12 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 a short circuit from occuring lf needed advanced users may shorten such resistor using jumper J13 Right next to the push buttons t
16. e eege 6 elei ee Beete att EE 7 3 0 On board USB 2 0 LV18PICprog with mikrolCD a 9 An o oo 10 5 0 milkrolCD In Circuit DEDUJJET E 11 12 romero follo COUN OF AA O u O nn A AE 13 8 0 USB Communication Interface deeg 13 9 0 RS 232 Communication Interface sprint 14 A 15 RB WEE TEE 16 120 Sena E EE 16 13 0 A D Converter TOSCA Susaeta 17 14 0 DS1820 Temperature Sensor a aa ea Ki ut 18 E Eege 19 16 0 EEN 20 TO MENUR AAPP o A 21 18 0 2x16 LCD Display E 22 190 128x64 Graphie LO OS yy uuu uu xu rota 23 200 Ke Lei Il uuu u u uyu Em 24 O POS gt a on EEE o a 25 MikroElektronika page W LV 18F v6 Development System 4 Q 8 Introduction to LV 18F v6 Development System The LV 18F v6 development system is an extraordinary development tool suitable for programming and experimenting with PIC microcontrollers from Microchip The system includes an on board programmer with mikrolCD support providing an interface between the microcontroller and a PC You are simply expected to write a program in one of the PIC compilers generate a hex file and program your microcontroller using the on board LV18P Cprog programmer Numerous on board modules such as 128x64 graphic LCD display alphanumeric 2x16 LCD display serial EEPRO
17. each containing up to 16 characters of 7x5 pixels Contrast adjus ment _ Contrast adjustment potentiometer SW12 NO Top view LCD BCK ONEGIN ch N O al o gt N CO VCC 3 3O m RH5 mm RH4 mm RF 1 uu ENVREG mm AVCCG Nel mm RA3 mm RA2 mm RA1 mm RAO Kein 5 m CC mm RA5 mm RA4 mm RC1 m RCO mm RC6 Chile mm RJ4 mm RJ5 O VCC 3 3 Figure 18 3 Alphanumeric 2x16 LCD display connection schematic MikroElektronika LV 18F v6 Development System 2 19 0 128x64 Graphic LCD Display 128x64 graphic LCD display GLCD is connected to the microcontroller via PORTB and PORTE 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 Since the PORTB port is also used by the alphanumeric 2x16 LCD display it is not possible to use both displays simultaneously Potentiometer P2 is used for the GLCD display contrast adjustment Switch 8 GLCD BCK on the DIP switch SW12 is used to turn the display backlight on off GLCD display connector r pe a 7 i Y ae ea Et j Touch panel connector Wan Y E S Contrast adjustment potentiometer Figure 19 1 GLCD display Figure 19 2 GLCD connector GLCD display backlight is on NO P2 10K n n ri i REITER E Top view GLCD B
18. enabled via pins used for programming Icon commands Watch Values Ey En ER gt o ow oI m ER dw Add Remove lt gt Properties G Add Select variable from list mikrolCD debugger options Start Debugger F9 Run Pause Debugger F6 Stop Debugger Ctrl F2 Step Into F7 Step Over F8 Step Out Ctrl F8 A list of all registers and variables within the microcontroller being programmed Toggle Breakpoint F5 Show Hide Breakpoints Shift F4 Clear Breakpoints Ctrl Shift F4 A list of registers and variables to be monitored They change their state l i Each of these commands is activated via during program execution keyboard shortcuts or by clicking appropriate icon within the Watch Values window Double click on the Value field enables data format to be changed Figure 5 1 Watch Values Window The mikrolCD debugger also offers options 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 values of some variables etc The following example illustrates a step by step program execution using the Step Over command Step 1 In this example the 41st program line is highlighted in PORTE OxD0 PORTE 0x00 PORTD OxO0 while ji During operation the program line to be executed blue which means that it will next is highligh
19. gt Lt d Figure 7 2 Voltage regulator Figure 7 1 Voltage regulator schematic 8 0 USB Communication Interface The CN11 USB connector enables PIC microcontrollers with built in USB interface to be connected to peripheral modules The microcontroller is connected to the CN11 USB connector via USB DM and USB DP lines The function of the LED diode marked as USB ON is to indicate connection between USB devices and development system hence the microcontroller USB connector Roma HT Figure 8 1 USB connector schematic MikroElektronika 13 page 14 LV 18F v6 Development System U O 32 9 0 RS 232 Communication Interface The 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 LV 18F v6 provides two RS 232 ports RS 232A and RS 232B Use switches marked as RX232 A RC7 or RB5 pin and TX232 A RC6 or RB7 pin on the DIP switch SW12 to enable port RS 232A Likewise use switches RX232 B RG2 pin and TX232 B RG1 pin on the DIP switch SW12 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 Baud rate goes up to 115 kbps In order to enable the USART module of the microcontroller to receive input signals with differen
20. here is a RESET button connected to the MCLR pin over the on board programmer Powersiomy A EZ Top view Inside view f LI A T E NG E x Les KL Re ET EY e E Push buttons used for J hb wr Gi simulating digital inputs e ss E LS roy Bottom view Side view RESET button Jumper J12 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 J12 is in the VCC position a logic one 3 3V will be applied to the appropriate microcontroller pin as shown in Figure 16 2 Jumper J12 is in the VCC position lt op wo wo RH1 mm RHO RE2 mm RES mm RE4 mm RE5 mm REG mm RE7 RDO SS VCC m GND RD1 mm RUSS GNDPLL mm VCCPLL mm RBIAS mm GNDTX um TPOUT mm TPOUT um VCCTX VCCRX IN TPIN mm TPIN um GNDRX m RGO m RG1 mm RB4 mm RB5 mm RBG mm PIC18Fxx coe OSC1 V le 1 OVCC 3 3 RB7 i MM M RC2 J12 RCO ej e ejej ej ejej ej 4 5 mm RH5 us RH4 mm RF 1 mm ENVREG mm AVCC m AGND mm A3 mm RA2 mm RA1 m RAO Ce Np Figure 16 2 Push buttons and port PORTC connection schematic MikroElektronika LV 18F v6 Development System 2 17 0 MENU Keypad There is a group of push buttons which form a navigation keypad called MENU provided on the LV 18F v6 development system The main advantage of such keypad is the button arrangement i e it consists of four push button
21. nd LV18PICFlash manuals quick guide for installing USB drivers electrical schematic of the system System specification D e LIS kaq 3 Power supply over a DC connector 7 23V AC or 9 32V DO or 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 404g 0 89lbs ICC Z IT gt faery foi sd MikroElektronika LV 18F v6 Development System 23 JPO amp Of ON BOARD H CONNECTS ETHERNET PROGRAMMER SS LEDA TO RAO PIN EXTERNAL ICD MD use Link H CONNECTS ETHERNET it BE SURE TO TURN OFF THE POWER SUPPLY BEFORE PLACING LCD OR bg GLCD ON DEVELOPMENT BOARD OTHERWISE BOTH LCD AND GLCD 1 UNITS CAN BE PERMANENTLY DAMAGED 1 1 BESSER We m El Lad BE SURE TO PLACE LCD AND GLCD PROPERLY OTHERWISE BOTH LCD AND GLCD UNITS CAN BE PERMANENTLY DAMAGED LE mi E D mm mmm m Be USB PROG ULCD2xI6 WITH BACKLIGHT OOOO OOOO EN mim m 9 32U DC g mm E EIN EI zz DN DUDU van O EB GN N 19 li EE OO D D D OO D D D nooo 222 D DD D zz DO 00 sss OO OD 7 D mm EN i ononon Sopy POWER BH uens ane HHH exteeluss NU ZS UN D oO OOOO POWER SUPPLY imi O nga m m m rt m gf fl le p
22. ne of the PIC compilers and generate a hex file 2 Use the LV18PICflash program to select desired microcontroller to be programmed and load a hex file 3 Click the Write button to dump the code into the microcontroller ij On the left side of the LV18PICflash program s _ window there is a number of options used for setting parameters for the operation ofthe microcontroller Options enabling the hex code to be loaded intothe microcontroller are provided on the right side of the window Positioned in the bottom right corner of the window the Progress bar enables you to monitor the programming progress For more information on the LV18PICflash with mikrolCD programmer refer to the relevant manual provided with the system MikroElektronika page O 10 LV 18F v6 Development System d Q amp All the settings related to the programming of the microcontrollers are automated However there is a number of options which enable additional programming settings provided in the LV18PICflash program Beginners are not advised to use them One of the advantages offered by the on board LV18PICprog with mikrolCD programmer is a multiplexer The principle of operation of the programmer with integrated multiplexer is shown in Figure 3 3 On board programmer with mikroICD support Multiplexer MCU PGD ae i VCC PGC D MCU PGC PROG D GND MCLR l interface ES J During the programmi
23. ng the multiplexer disconnects EN MCLR the microcontroller pins used for programming from the rest of the board and connects them to the LV18PICprog with mikrolCD programmer When the process of programming is complete these pins are i automatically disconnected from the programmer and may be used as input output pins Figure 3 3 The principle of programmer s operation 4 0 ICD Connector ICD connector In circuit Debugger enables communication between the microcontroller and an external ICD debugger from Microchip ICD2 or ICD3 Such connector is directly connected to the microcontroller and therefore no additional settings are needed RB6 PGC ICD connector Figure 4 1 ICD connector s pinout and pin designations MikroElektronika LV 18F v6 Development System 5 0 mikroICD In Circuit Debugger The mikrolCD In Circuit Debugger is an integral part of the on board programmer It is used for 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 it operates in real environment The mikro CD software is integrated in all PIC compilers designed by mikroElektronika mikroBASIC PRO IM mikroC PRO V mikroPASCAL PRO etc As soon as the mikro CD debugger starts up the Watch Values window as shown in Figure 5 1 appears on the screen Communication between the mikrolCD debugger and microcontroller is
24. on schematic PORTA 2x5 male connector Additional module connected to PORTC TRCI T RC 4T Rc3 TTI Rc Pt gy tt RCS TII Rc Rc7 Figure 21 2 J2 in the pull down position Figure 21 3 J2 in the pull up position A Rco A LD15 VV MikroElektronika page UI NO LV 18F v6 Development System d O G 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 RGO pin with the relevant DIP switch SW7 jumper J7 and RGO push button with jumper J12 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 RH1 m RHO ma RE2 RE3 mm RE4 m RE5 REG m RE7 RDO 1 VCC ma GND mm RD1 mm RD2 GNDPLL un VCCPLL m RBIAS mm GNDTX mm TPOUT m TPOUT um VCCTX HN VCCRX TPIN mm TPIN um GNDRX mm RGO Set RB4 m RB5 m RBG m ENDE wiet OSC1 mm PIC18Fxx VCC 3 3 dun JI SWT7 6 0 1 OVCC 3 3 RB7 RC5 1 RC4 RC3 mu Siet RG2 mm 12345678 Figure 21 5 Jumper J7 in pull down position and jumper J12 in pull up position RBIAS mm GNDTX mm TPOUT m VCCTX HEN GNDPLL mm VCCPLL TPOUT um VCCRX TPIN TPIN um GNDRX mm RGO m lenkt RB4 mm RB5 mm RBG GND m OSC2 OS
25. ontroller via RC5 RC4 RC3 RCO and RC1 pins Figure 11 1 Serial RAM schematic 12 0 Serial EEPROM EEPROM Electrically Erasable Programmable Read Only Memory is a built in memory module used to store data that must be saved when power goes off The 24AA01 circuit is capable of storing up to 1Kbit data It communicates to the microcontroller via RC4 RB4 RC3 and RB6 pins by means of serial EC communication To establish connection between the EEPROM module and the microcontroller it is necessary to set switches 1 and 3 on the DIP switch SW13 to the ON position Switches 2 and 4 can also be used for this purpose depending on which pins are to be used for serial communication RD1 mm RD2 mm GNDPLL m VCCPLL m RBIAS m GNDTX mm TPOUT mm TPOUT mm VCCRX HN BA SW13 ES fe EEPROM SDA C9 m A2 EEPROM SCL a 100nF GND SDAI Jeerromsoa 24AA01 PIC18Fxx Serial EEPROM is connected to the microcontoller via pins RC4 and RC3 Figure 12 1 Serial EEPROM schematic MikroElektronika LV 18F v6 Development System 13 0 A D Converter Test Inputs An A D converter is used for converting an analog signal into the appropriate digital value A D converter is linear which means that converted number is linearly dependent on the input voltage value The A D converter integrated into the microcontroller converts an analog voltage value into a 10 bit number The microcontroller with a built in A D converter is supplied with DC vol
26. r and a PC LED diode marked as PRG ICD will illuminate while transferring a code from a PC to the microcontroller C mikroC PRO for PIC C Program Files Mikroel File Edit wiew Project Run Tools Help OSAAN ASAA E E amp 8 R RS m 3 2 char i void Move Delai Delay ma 500 void maini li ANSEL OD ANSELH U C1ON bit C20N bit Write a code in one of the PIC compilers generate a hex file and employ the on board programmer to load data into the microcontroller Figure 3 2 The process of programming NOTE programmer Compiling program 1110001001 Bin 0110100011 011112FC23AA7 1011 F43E0021A Hex DA67F0541 Click on the Load button for e hex code loading All ellene Le EPP LAH s D Pia Deeg kiya a UNS Ades He oe alabada ner Co abled np eros a pepj on TWEEN bi Si ek Prerio Lili Beit Er Wad evel reno Ref Ce giel Legacy mude Bags Debugger scit Lade Probado Ps p m rm np a Pii ber ndm Hear he lr lr mE ls Caer Gelert OSC 0002 as Frans Fah kale Cho Parar racist b Tei Uns iia deber nie Warken Tierenr Eelst ger lola OFT S fcr eel s t EC WLUP RH ECCE eue mah ffe BES ECC mmn lh IER PE iiem LED FAE RL mr ra ft th IDA Propet Messier es A9 AR Zap Es Is Pepa dice Dh LL xd Fiz EPOCA FLESERRORLEE TPS FOR PEOEEAMPLETADEVELOPHENT DUE P Oe CD HER Dem Fic d Oper slice Mone 1 Write a program in o
27. r is performed as follows 8 Q el MD x i EM OUT 1 gt Le 2 A Ey thes ai D LS red Open extraction levers A and B Place the MCU card into the DIMM 168P connector A gt AP JA Zeien Pa E mee Push 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 Extraction levers used for fixing MCU card in for fixing MCU card in the the open position closed position In addition to the MCU card with 80 pin microcontroller in TQFP package there are also MCU cards with 64 pin microcontrollers in TQFP package which can be ordered separately They are placed into the appropriate connector in the same manner as described above MikroElektronika LV 18F v6 Development System 3 0 On board USB 2 0 LV18PICprog with mikrolCD Programmer A programmer is a necessary tool when working with microcontrollers The LV 18F v6 has an on board LV18P Cprog programmer with mikrolCD support which provides an interface between the microcontroller and the PC The LV18PICflash program is used for loading a hex file into the microcontroller Figure 3 2 shows connection between the compiler LV78P Cprog with mikroICD programmer and the microcontroller USB connector of B type LED diode marked as USB LINK indicates the established connection between the programme
28. rocontroller and no additional settings are needed Such connection is established via microcontroller pins TPOUT TPOUT TPIN and TPIN Jumpers J16 and J17 enable LED indicating ethernet operation to be connected to the microcontroller Jumper J16 is used to interface LED marked as LEDA to the RAO pin whereas jumper J17 is used to interface LED marked as LEDB to the RA1 microcontroller pin Figure 10 1 Ethernet module Ethernet connector is directly connected to the microcontroller pins RH1 mm RHO m RE2 RE3 RE4 RE5 mu REG mu RE7 RDO mm VCC ma GND mu RD1 RD2 mu GNDPLL mu PIC18Fxx Figure 10 2 Ethernet module schematic MikroElektronika 16 LV 18F v6 Development System U 3 11 0 Serial RAM Thanks to the built in 23K640 circuit the development system has 64Kbit RAM memory that can be connected to the microcontroller via SPI serial connection SPI serial communication is enabled by means of DIP switch SW11 Switches 7 and 8 on the DIP switch SW11 enable RAM CS and RAM HOLD RAM CS is used for controlling the access to RAM memory whereas RAM HOLD is used to temporarily disable communication between the microcontroller and RAM RH1 ma RHO mms ot RES mm RE4 mm RE5 m REG RE7 RDO m VCC m GND mu RD1 RD2 GNDPLL m VCCPLL RBIAS m GNDTX TPOUT mm TPOUT um VCCTX 1 RAM HOLD HOLD SCKI o 0 spevosi PIC18Fxx 23K640 RAM HOLD Serial RAM is connected to the microc
29. s marked as left right up and down arrow In addition to them there are two push buttons marked as ENTER and CANCEL The MENU push buttons are connected in the same way as the port PORTF push buttons Their function is determined by the user when writing a program for the microcontroller Have in mind when writing a program for the microcontrollerthat MENU keypad is connected to the PORTF port S ts Figure 17 1 MENU keypad MENU push buttons are connected the same as port PORTF push buttons RH1 SS RHO mu RE2 RES mm RE4 mm RES mm RE6 mm RE7 RDO m VCC m GND m RD1 mm RD2 m GNDPLL m VCCPLL m RBIAS m GNDTX mm TPOUT TPOUT um VCCTX iil m RH2 mu RH3 mm RE1 mm REO m RBO mm RB1 mu RB2 um RB3 ma VCLR ND PIC18Fxx VCC 3 30 L 1 90 eg gt get a eege uM CA me REZ RH7 m RHG fe Les Figure 17 2 MENU keypad and microcontroller connection schematic MikroElektronika page N page LV 18F v6 Development System The LV 18F v6 development system provides an on board connector for the alohanumeric 2x16 LCD display Such connector is linked to the microcontroller via the PORTB port Potentiometer P1 is used to adjust display contrast The LCD BCK switch on the DIP switch SW 12 is used to turn the display backlight on off Communication between the LCD display and the microcontroller is performed in a 4 bit mode Alphanumeric digits are displayed in two lines
30. t voltage levels it is necessary to provide a voltage level converter such as MAX3238E Yon e ipm qc Figure 9 1 RS 232 module The function of switches 1 6 on the DIP switch SW12 is to determine which of the microcontroller pins are to be used as RX and TX lines Figure 9 2 N U4 U5 C35 C38 100nF 100nF END V Lem Keine V 17 c2 ered OVCC 3 3 c2 vcc OVCC 3 3 Iv C1 lI Iv e C37 C41 EE mount Tii AN Rel ATA BE TEE 100r co BT3OUT T3INE TX232 A TX232 B Erour raid PIC18Fxx Sco sc sou RX232 A ER2IN R2OUTE RX232 B Keyes Cal TR Cal VCCRX ll PIN mm TPIN mm SERE 879S8vt cl OSC2 Wat ze RP SY hz Te RPSL R53 VCC See AN d 1K ER3IN R3OUTI RB7 mm 1 ROS o CC a IT5OUT T5INE Q O GC ane SE VCC 3 3 CH AO VCC 3 3 Got f Force OFF INVALID BFoRcE OFF INVALID Fom E MAX3238E MAX3238E Ports RS 232A and RS 232B are connected to the microcontroller via pins RC7 RC6 RG2 and RG1 Figure 9 2 RS 232 module schematic Bottom view Bottom view NOTE Make sure that your microcontroller is provided with the USART module as it is not necessarily integrated in all PIC microcontrollers MikroElektronika LV 18F v6 Development System 15 page 10 0 Ethernet An ethernet connector is provided on the LV 18F v6 Here ethernet is used to connect the microcontroller to a LAN local area network The ethernet connector is directly connected to the mic
31. tages varying from O to 5V over test inputs Jumpers J14 and J15 are used for selecting some of the following pins RAO RA1 RA2 RA3 RCO RC1 RC2 and RC3 for A D conversion Resistors R16 and R17 have a protective function and are used for limiting current flow through the potentiometer or the microcontroller pin The value of the input analog voltage can be changed linearly using potentiometers P3 and P4 Figure13 1 ADC jumper in default position A D conversion is performed v a microcontroller pins RA0 and RCO RBIAS mm GNDTX mm TPOUT um eed GNDPLL mm VCCPLL mm TPOUT mm 37 age PIC18Fxx OVCC 3 3 Figure 13 3 Microcontroller and A D converter test inputs connection schematic NOTE In order to enable the microcontroller to accurately perform A D conversion it is necessary to turn off LEDs and pull up pull down resistors on the port pins used by the A D converter MikroElektronika page 18 d Q 8 14 0 DS1820 Temperature Sensor 1 wire amp serial communication enables data to be transferred over a single communication line while the process itself is under control of the master device The advantage of such communication is that only one microcontroller pin is used All slave devices have by default a unique ID code which enables the master device to easily identify all devices sharing the same communication interface LV 18F v6 Development System The DS1820 is a temperature sensor
32. ted in blue while those containing be executed next The current DO TE for counter breakpoints are highlighted in red The Run command state of all registers within the C ns executes the program in real time until a breakpoint is san o encountered microcontroller can be viewed in the Watch Values window Step 2 After the Step Over command PORTS RU is executed the microcontroller AD eu will execute the 41st program line The first next line to be executed is highlighted in blue The state of registers being changed by executing the last instruction may be viewed in the Watch Values window FX en oe or m f de add Me ig Adda ke R Select wanable lom liat ECRLCOH x Seach Vor wanabe by acerbe rame ANSELM for jcounrer O counter c contar s FORTE 1 lt lt counter ANRT dm 1 lt lt Forme NOTE Find more information on the mikro CD debugger in the relevant manual MikroElektronika Ea page 12 LV 18F v6 Development System d 8 6 0 Power supply The LV 18F v6 development system may use one of two power supply sources 1 5V PC power supply through the USB programming cable 2 External power supply connected to a DC connector provided on the development board 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 J
33. that uses 1 wire communication for its operation It is capable of measuring temperatures within the range of 55 to 125 C and provides 0 5 C accuracy for temperatures within the range of 10 to 85 C A power supply voltage of 3V to 5 5V is required for its operation It takes maximum 750ms for the DS1820 to calculate temperature with 9 bit resolution The LV 18F v6 development system provides a separate socket for the DS1820 It uses either RDO or RA5 pin for communication with the microcontroller which depends on the position of jumper J11 In Figure 14 5 jumper J11 is placed in the RDO position which means that 1 wire communication is enabled via the RDO microcontroller pin Figure 14 1 DS1820 connector DS1820 is not placed NOTE Make sure that half circle on the board matches the round side of the DS1820 Figure 14 2 DS 1820 is plugged into the connector Temperature sensor is connected to the microcontroller via the RDO pin DS1820 Botoom view A VCC MCU GND Figure 14 5 DS1820 and microcontroller connection schematic MikroElektronika Figure 14 3 DS1820 is connected to the is connected to the microcontroller via the microcontroller via the RAS pin RDO pin Figure 14 4 DS1820 LV 18F v6 Development System 19 page 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 Acommon LED dio
Download Pdf Manuals
Related Search
Related Contents
VISION VXL Vocabulaire publicitaire Operation and Service Manual Anleitung Steel Pro Frame Pool - free internet phone call by USB phone and Skype phone Electra Accessories Answering Machine 616 User's Manual 取扱説明書 Sample Pages Minka Lavery 4491-298 Instructions / Assembly PDFファイル Copyright © All rights reserved.
Failed to retrieve file