Home

LV 18FJ Manual - MikroElektronika

image

Contents

1. J E d Pull down line Pull up line is All lines is connected connected are disconnected DIREGI PORT ACCESS Reset e LE C17 00n Dx x x X lt lt PORTB connection LVISFJ MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 22 T with USB 2 0 PROGRAMMER LVISEJ Users Manual E DEVELOPMENT TOOLS Ale MMC SD Multimedia Card MASS STORAGE E S l M 256MB MMC SD card is used as a storage media for a portable device in a form that can be easily accessed by PC For example a digital camera uses MMC CD card to store image files Microcontroller on the LVISFJ development board comunicates with MMC SD via SPI communication The on board connector enables users to easily access MMC SD card from the microcontroller JOUKE MMC Card SUPPORTED MMC SD MULTIMEDIA CARD In order to enable MMC card switches 5 6 7 and 8 on the SW1 must be turned on as shown at figure 38 By doing that SPI communication lines SCK MISO and MOSI are connected to the microcontroller and CS line is turned on AR MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ with USB 2 0 PROGRAMMER Meets LVISEJ Users Manual DEVELOPMENT TOOLS Operating voltage of the MMC Card is 3 3V DC 3 3V power supply voltage regulator MC33269DT 3 3 are used for the adjusting MMC card vol
2. P1 P3 o AN vec a O d ha 8 S E Lj PIC18F6XJ11 did E PIC18F6XJ16 o S8 L L L3 I z ER E x m P2 P4 5 Rue pr E 3 4 EM m x NO 5x RH4 3B De T RE x LVISFI MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 25 with USB 2 0 PROGRAMMER LVISFJ Users Manual ei 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 PORT there is one 10 pin connector providing VCC GND and eight port pins Figure 34 Direct port access connectors DIRECT PORT ACCESS 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 on board peripherals are disconnected from the microcontroller when an external peripheral is attached to the board The appropriate jumpers and switches must be set for this purpose The connectors can also be used for attaching logic probes or test equipment Figure 35 Example of how to connect exter nal peripheral with flat cable with USB 2 0 PROGRAMMER 2G MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ VERE eret LVISEJ Users Manual DEVELOPMENT TOOLS
3. MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ INTRODUCTION LVISFJ PWN The LV18FJ development system is a full featured development board for Microchip s low BOARD voltage microcontrollers It 1s designed to allow students and engineers to easily test and explore the capabilities of low voltage microcontrollers It also allows low voltage micro controllers to be interfaced with external circuits and a broad range of peripheral devices making it possible for the user to concentrate on software development Figure 1 illustrates the development board There are identification marks beside each com ponent on a silkscreen These marks describe connections to the microcontroller operation modes and provide additional information Since all relevant information is provided on the board there is almost no need for additional schematics Figure 1 LV18FJ development board HEF z a 5 UT t a mixro ON BOARD PROGRAMMER eo ICD E Exe EX Et 2 me TI PX N77 LI CAD a PORTS MILL E PORTC EREE PORTO AEE 30 E r v TIT TEES ELE ET T 5 TIN zEg POATF y SOFTWARE AND HARDPNARE SOLUTIONS lae Hi es e WORLD ee eee F n Wd B r y duh LE rame Lum TET Con auam PORTS Beggs 34s 8 a MU TEFAL HO TIEN T7 EEEE TII PORTH f oi Fe SFL AP aj Dra i LV ISFJ eb page MIKRO
4. am PORTE c ia Rc TT NEN PIC18F6XJ11 PIC18F6XJ16 LVISFJ MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 9 with USB 2 0 PROGRAMMER LUVISBSFJ Users Manual a zwsEmm POWER SUPPLY LV18FJ has two kinds of power supply regulated supply from the USB cable default or external power supply In case of the USB power supply the system should be connected to PC using the USB programming cable while the power supply selection switch should be set in the right hand position SELECTABLE In case of the external power supply the LV18FJ board produces 5V using an LM7805 voltage regulator The external power supply can be AC or DC Power supply voltage can be in the range of 8 16V and the power supply selection switch should be set in the left hand position Figure 8 illustrates USB and external power supply connectors z Figure 9 Power supply selection switch USB and power supply connectors POWER SUPPLY USB connector External power supply connector REG4 dd 7805 8 16V AC DC on Vin Vout usg 5V z GND 2 m C6 C15 m 8280C1500 Programmer I Connector E18 id 470uF sx I 14 9149 Power supply schematic vcc 2 0 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ with USB 2 0 PROGRAMMER
5. Meet mtr LVISEJ Users Manual DEVELOPMENT TOOLS Meise ON BOARD USB 2 0 PROGRAMMER lt r Neattatira There is no need to use external equipment eS during programming as the LV18FJ devel opment system has its own on board USB 2 0 programmer All you need to do is to connect the system WY to PC using the USB cable Then load your INE program into the microcontroller via the PICFlash programming software supplied Ile with the board d M E ud ithe m a2 mus Figure 11 On Board USB programmer Note After programming the programmer will reset MCU automatically 1K TO PERIPHERALS ON DEVELOPMENT BOARD vee vcc L ONBOARD USE PROGRAMMER D USB LINK T X MULTIPLEXER Jowwesboid gsn pJeog uo yse 4lSos PIC18F6XJ11 iHe PIC18F6XJ16 R35 USB Programmer Connector Programmer schematic Figure 12 LVISFJ MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD il sil with USB 2 0 PROGRAMMER LVISEJ Users Manual chelate DEVELOPMENT TOOLS mikrolCD IN CIRCUIT DEBUGGER mikroICD is a highly effective tool for Real Time debugging on hardware level The mikroICD debugger enables you to execute a program on the LvPIC microcontroller and view variable values Special Function Registers SFR and EEPROM while the program is running DEBUGGER LJ mikroICD can
6. f n Y j B al De E i 9 h 93 9 7 e amp L i gt L i 3 Y Fi J 1 A v d N i X Li suid N ou jo ers Mol uBiu Jeles o suong N9119 JOSOY Je O 1HOd JLYOd VLMHOd uo sqa1 eui 440 10 NO suun epouu 1Iq y ul G97 40 uonoou uoo Asea SMO e Jojoeuuoo q21 Aia 4 I1 X exoos ped eip euuninuJ CIS OININ jddns samod gsn Jo jeuje1xe Uu99M eq esoou OQ oOV WWNOO 3O08 DDIILA AAA S OO amp g S 3 qdiWatdg saoaao L EXIUO4 9 30 D HAI BUuJ91X3 SNL EF SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD OPOCZNA ly OL PTI OJ 4 SYOC AB LJ bof c POCS gt bor 41 o POt2zj gt POCOIJ por73 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 every need of yours If you have any question comment or business pro posal please contact us E mail office mikroe com Web www mikroe com Forum www mikroe com forum Software and Hardware J f solutions for Embedded World B
7. N Reset p C17 100n with USB 2 0 PROGRAMMER LVISFJ MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD P LVISEJ Users Manual crashes DEVELOPMENT TOOLS SERIAL ETHERNET Ethernet is the most common Local Area Network LAN technology in use today On the top of the physical layer Ethernet stations mutually communicate by sending data packets to each other Each Ethernet station is assigned a single 48 bit MAC address used to speci fy both the destination and the source of each data packet a 14 34 98 Serial Ethernet SERIAL SWInILSUSSINIIS UL QIN BOARD 2 VAS y VA Note Make sure to select the proper voltage level depending on the MCU Card attached to the LVISFJ development board Improper voltage level can damage development system or Serial Ethernet chip Note Both jumpers J9 and J10 must be connected 2272 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ with USB 2 0 PROGRAMMER clause LVISFJ Users Manual Figure 29 Serial Ethernet schematic VCC3 3 LD91 Reset r A Ln rr ELE T EL J 5 SERIAL ETHERNET ON BOARD LD90 LUVISFJ MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 728 with USB 2 0 PROGRAMMER DEVELOPMENT TOOLS Easy8O5IA Users Manual mieRoLexrRON DS1820 DIGITAL THERMOMETER DS1820 digital the
8. be used within any of MikroElektronika s compilers for LvPIC mikroC mikroBasic or mikroPascal You just have to select the appropriate build type Release or ICD Debug build the project program the MCU select the appropriate debugger mikroICD Debugger and that s all The mikroICD debugger uses the P CFlash programmer to communicate with the compil er and supports common debugger commands JINECURGUI RFSDDLS LSU XO SESS Start Debugger F9 Run Pause Debugger F6 Toggle Breakpoint F5 Run to cursor F4 Step Into F7 Step Over F8 Flush RAM F2 Stop Debugger Ctrl F2 leit On Board USB programmer Note For more information on how to use mikroICD debugger please refer to the mikroICD documentation mikroICD User s Manual You can also find it within the Help documentation inside any of the compilers mentioned above i 22 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ with USB 2 0 PROGRAMMER LEDs Light Emitting Diodes LEDs are the most commonly used components usually for dis playing pin s digital state LV 18FJ has 70 LEDs connected to the microcontroller s PORTS EDS Figure 14 Light Emitting Diodes Each group of eight LEDs can be enabled or disabled using the SW2 Figure 14 illustrates the connection between LEDs and PORTB on the microcontroller A resistor is used in series with the LED to limit the LED s current In this
9. case the resistor s value is 1K MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD m 83 with USB 2 0 PROGRAMMER LVISEJ Users Manual tocar DEVELOPMENT TOOLS The LEDs are enabled when the corresponding switch on the SW2 is on When enabled LEDs will display the state of the corresponding microcontroller pin otherwise the LEDs are always off no matter what the port state 1s as no current can flow through LED Figure 15 LED schematic LEDS PORTA PORTB PORTC PORTD PORTE PORTF PORTG PORTH J VEG alk On Board U y PIC18F6XJ11 programm WP 5 PIC18F6XJ16 o MULTIPLEXER 22pF 22pF with USB 2 0 PROGRAMMER i Al MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ eur LVISFJ Users Manual PUSHBUTTON SWITCHES LV18FJ has 70 push buttons which can be used to change states of digital inputs on the microcon troller s ports There is also one switch that acts as a RESET Reset switch 1s shown in Figure 16 Figure 17 Reset switch PUSHBUTTON SWITCHES 8051Flash On Board USB programmer with USB 2 0 PROGRAMMER LVISFJ MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD i 5 LVISEJ Users Manual erence DEVELOPMENT TOOLS The connection between buttons and PORTA PORTB PORTC and PORTD is shown in Figure 19 Jumper J1 determines whether a button press will bring l
10. drawings and bitmaps The most commonly used graphic LCD has the screen resolution of 128x64 pixels The GLCD s contrast can be adjusted using the poten tiometer P6 placed to the right of the GLCD MEC As ww pot F La Figure 22 Borne bj P i GLCD A CA PA Me Sp 95 EZ GLCD schematic m M LIC Contrast R5 lm E O VCC ji GRAPHIC LCD 126x44 QNO x 100r O5 ZL AM Rei PIC18F6XJ11 PIC18F6XJ46 C8 100n 10MHz h HU UU UU UU UO 9 s Note Do not connect LCD and GLCD at the same time because they share the same data and control pins Page eeu i MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ with USB 2 0 PROGRAMMER e ALT LVISFJ Users Manual mmm LCD 2X16 IN 4 BIT MODE LC B A standard character LCD is probably the most widely used data visualization component ANE te Usually it can display two lines of 16 alphanumeric characters each made up of 5x8 pix els The character LCD communicates with the microcontroller via a 4 bits The connection to the microcontroller is shown in Figure 25 where there are only four data lines It 1s important to know that the LCD should be placed or removed from LV18FJ board only after the power is turned off LCD 2x16 in place ll LCD 2x16 in 4 bit mode schematics vcc Contrast p2 Adjustment 10K 3111311717707 o LGD 2X16 PIC18F6XJ11 PIC18
11. the signals each pin has a LED On board Ethernet socket Switches on the SW2 turns on off the LEDs on ports Select port to connect LEDs to These switches are used to disconnect all LEDs from MCU pins Set LCD contrast according to display characteristics AREER 20 ICD 4 A penra Ls ae aa alt LI USB mikro Th A bE p en tale piaci ae LER eral dun ba geirin ys mabe murp te piece LCD pr ip l A apt ier e ELIT he fy i tea Le Li HBG eelwaaescennk 48 2 Fi ii LLLL 411 JA Menem M mae mare rm LLS Lar plan a eee HM rur ie UN I Jh Crea DEUM pede as T MI E pia h Erbie prar mpri LJ LEE TA ee eee Lo V oL i Jia opm Ur nons a B wr DH LM L oa Bia wor ao E i uc ati io m 4444 There a ICD 17 Set GLCD contrast according to display characteristics 18 On Board peripherals are connected to the microcontroller via switches 19 Enabling disabling ethernet connection to MCU 20 Reset circuit 21 if the reset button is pressed MCU will start execut ing from the beginning of the program MikroElektronika s MCU card Development board dimensions Width 250 mm 9 84 Inches Height 210 mm 8 27 Inches LVISFJ Users Manual o CONTENTS gt uu CONNECTING THE SYSTEM page 4 5 INTRODUCTION page 5 E DESCRIPTION OF THE DEVELOPMENT SYSTEM page 6 Switches and their functions page 6 Jump
12. 425 wout bo om Ml owls Owl 9 id ebeeotuse s baan an P Il poe e aum tn 2I oww suid 9je idoidde eui i gaze i3333 Jo e1eis 3150 nell gt odo E oe Wb p dl Aan atr apaan r yNejap 1o9eJes oe hs stein gt N cw eu srep Are mem 0 s1eduunr a Lm ees ap 3 we xy ns od aune XE mxX AI DHCELELITTILME T ERC z vd ELLE Mrd M uL LLL b e n Pe wac T oe morei t E r aoe zo uid oe som pe o NEC on 29d 10 99d E 0 peoeuuoo UM em 2 9q ued JOS ne ues ainjesed a g uie 0Z8LSA om ico z ww Ss F VOR CLA O o qumpeynas s Dy i E TN m nt rn ae jan Ros T Y APTUM e ae hi a Ls oon n Le pen ET eer n Ge om T Er ATE suid ERER sas We w L4 uo sjndu qv MNE cS DT VERE ui d t S JEU je 4o0s jeuJeuje Jeuegs sod uon edIUNWWOD ZEZSH SNIN Jld diHOUODCZOJIIN AOS TOOL LN3laol3QA Aacd Joj euuoo 1219 le ecn hia parod aa sejjuoo 21 Niaga poroa LEON m D m Pana ms Sirs DT m YU GD E 21 En s Jd BL i MIL 7 C7 an bpi oF ose M pulus g UES 18 Oy LUPA om NO ee a jj NT NU V iud 09I UI Mm um 0 ore oe a 1 111112221111 71111 2121 CET C uM D JeujuJeJ6oud 0 c ASN eldaixel pue 1seJ JoA JoMod 9 9 Ajddns 9 e S MO JO 3 8 S ybiy suid Buel NWIS JO suong m E m N 1 A B B m r 4 at p E EE lt ce S s P ab E 1 D
13. EKTRONIKA ITS DIRECTORS OFFICERS EMPLOY EES OR DISTRIBUTORS BE LIABLE FOR ANY INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES WHATSOEVER INCLUDING DAMAGES FOR LOSS OF BUSINESS PROFITS AND BUSINESS INFORMATION BUSINESS INTERRUPTION OR ANY OTHER PECUNIARY LOSS ARISING FROM ANY DEFECT OR ERROR IN THIS MANUAL OR PRODUCT EVEN IF MIKROELEKTRONIKA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES 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 MIKROELEK TRONIKA MIKROELEKTRONIKA ASSUMES NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR INACCURACIES THAT MAY APPEAR IN THIS MANUAL INCLUDING THE PRODUCT AND SOFTWARE DESCRIBED IN IT PRODUCT AND CORPORATE NAMES APPEARING IN THIS MANUAL MAY OR MAY NOT BE REGISTERED TRADEMARKS OR COPYRIGHTS OF THEIR RESPECTIVE COMPA NIES AND ARE USED ONLY FOR IDENTIFICATION OR EXPLANATION AND TO THE OWNERS BENEFIT WITH NO INTENT TO INFRINGE eA 0 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ with USB 2 0 PROGRAMMER pJe NOW SeJjuoo Iao19 IUOJP9 430J IUJ JO 19320S m yt T yam 2 hid Ej 9 H p jy Sigd o uneg NiP p A SJ eV IRR ET RN Ea anes 5o LEN etSu ope ngos j r x Mere MET ti y me dope oe m IT V NP ril e mane wut bo I N om s 47 EN sd E UN ia ou evg c Ej eet 350
14. ELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 5 with USB 2 0 PROGRAMMER d i Is aT lt r g H E mem Den BA MD uc EN LJ ma BHi i jaar ncn T pea nea ucc HT nod um jum Nd nte mm Od mE ucc a0 L J ai Ae wa m ma ucc L E a ai na Bi Disi ucc NI man ao Beer Diis mun um TE Aji Be ver a ARLINIP C IESU CNCE edi Re BE Ba ee ee OLN ROWUG N LVISEJ Users Manual eE DEVELOPMENT TOOLS SWITCHES The LV18FJ development board features a number of peripherial devices In order to enable them before programming the appropriate jumpers or switches have to be properly set Switches are devices that have two positions ON and OFF which having the role to estab lish or break connection between two contacts The LV18FJ development board has three groups of switches SWISS The first group SWI is used to enable SPI communication for interfacing with MMC SD multimedia card It is also used for RS 232 communication Switches of the SW2 are used to enable LEDs connected to ports For example if the switch enabling PORTB is OFF all PORTB LEDs will be turned off Switches of the SW3 SW4 and SWS5 are used for controlling output port pins by enabling disabling them Group of 8 switches Switch 2 is ON other switches are OFF r1 T Swit
15. F6XJ16 Note Do not connect LCD and GLCD at the same time because they share same data and control pins with USB 2 0 PROGRAMMER LVISFJ MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD a 9 OLN D S 22 COMMUNIA RSe3c ENABLED 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 PC Since the voltage levels of the microcontroller and PC are not directly compatible with each other a level transition buffer such as the MAX232 must be used Figure 26 RS232 connectors In order to provide a more flexible system the microcontroller is connected to the MAX232 through switches on the SW1 In order to use it switches 1 and 2 or 3 and 4 on the SW1 must be enabled Both RS232 modules can be used at the same time MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD Meets LVISEJ Users Manual DEVELOPMENT TOOLS Figure 27 Connection between microcontroller and PC Receive data Rx e CONNECT L uS i MCU TO PC lt lt zt SERIAL gt mend CABLE D Data Tx vo CONNECT PC TO MCU CN8 SUB D 9p RS 232 COMMUNICATION MCLR RG4 PIC18F6XJ11 Vss vddoe PIC18F6XJ16 RF7 RF6 RF5 RF4 RF3 RF2 m
16. SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MikroElektronika LVISFJ Users Manual 25 3 hf Jn Af L My E SUNIN Ceni Seria staat Ie 1 With useful implemented peripherals plentiful practical m code examples and a broad set of add on boards Serial uw Ethernet Compact Flash MMC SD ADC DAC CAN IN CIRCUIT cH EGIT l i PROGRAMMER SUPPORTED RTC RS 485 etc MikroElektronika development boards make fast and reliable tools that can satisfy the needs of experienced engineers and beginners alike DESERT CERES Software and Hardware solutions for Embedded World 10 11 12 13 14 15 16 LV18FJ KEY FEATURES External power supply 8 16 V AC DC Choose between external and USB power supply Very fast and flexible on board USB pro grammer The key feature is expandabili v ty By downloading new software you will be able to program new MCUS in coming years DS1820 temperature sensor allows to measure temperature with 0 5 C accu racy Two RS232 ports for communication with PC or another microcontroller 16 channels for MCU Analog to Digital Converter MMC SD Multimedia card socket Jumpers to select default logic state of the appropriate pins LCD connector allows easy connection of LCD in 4 bit mode Graphic LCD connector allows easy connection of GLCD 70 buttons allow control of every pin on the microcontroller Buttons to select high low state of the pins See all
17. chis ON O9m3 lt Switch is OFF O993 LEDs ON LEDs ON LEDs ON LEDs ON LEDS ON LEDs ON LEDs ON LEDs ON S MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ with USB 2 0 PROGRAMMER Meet LVISEJ Users Manual DEVELOPMENT TOOLS JUMPERS Jumpers like switches can break or establish connection between two points Under the plastic cover of a jumper there is a conductive contact which establishes connection when the jumper is placed over two pins JUMPERS For example the jumpers J9 and J10 are used to connect or disconnect ethernet leds to the RAO and RAI pins respectively In order to establish a connection the jumper should be placed over two contacts Jumper is ON to o3 a 5 Jumper is OFF 7 7 o ROUER Jumper as a switch Jumpers are commonly used as selectors between two possible connections via three pin connector As illustrated in Figure 4 the connector in the middle can be connected to the left or right pin depending on the jumper s position All lines are Left line Right line Figure 4 disconnected is selected Is selected Jumper as a multiplexer LVISFI MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD T7 with USB 2 0 PROGRAMMER MCU SOCKETS MCU SOCKETS LV18FJ is delivered with the PIC18F97J60 64
18. ers page 7 MCU sockets page 8 Power Supply page 10 On Board USB 2 0 programmer page 11 MikrolCD debugger page 12 LEDs page 13 Pushbutton switches page 15 Graphic LCD page 18 LCD 2x16 in 4 bit mode page 19 RS 232 Communication page 20 Serial Ethernet page 22 Digital Thermometer page 24 MCU A D Converter Support page 25 Direct port access page 26 MMC SD Connector page 28 with USB 2 0 PROGRAMMER LVISFI MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISE J Users Manual D ene CONNECTING THE SYSTEM The development system box contains a development system product CD USB cable RS232 cable and this manual Step no 1 First of all take the system out of the box Unpack the USB cable and connect it to the PC Do not connect it to LVI8FJ yet Step no 2 Install the PICFlash programmer Start the installation from the product CD CD_Drive zip lv18picflash zip Step no 3 Open the folder CD Drive zip rivers and run installation for the appropriate operating sys tem Do not connect LV18FJ until the installation 1s finished CONINIEGTIING The SYSTEM Step no 4 Connect USB cable to LVI8FJ Run and use LV18PICFlash exe as explained in the docu ment vI8PICFlash with mikroICD support CD_Drive pdf lv18picflash_manual After these four steps your LV18FJ is installed and ready for use You can now read a pro gram from the chip or load an example from the product CD
19. ogic zero or logic one to the appropriate pin When button is released pin state 1s determined by the pull up or pull down port jumpers In the example shown in Figure 19 J1 is connected to 5V therefore a button press will bring logic one to the appropriate pins a PORTA _ PORTB _ PORTC PORTD PAO PBO PCO PDO i i g y 5 o o o o o o o o PUSHBUTTON SWITCHES o o o o E x rg pas EE E rm PIC18F6XJ11 o 3 oo er HR Vadcore PIC18F6XJ16 PA4 i 4 J E a o hN c o Q 100n z co ee ee eee ee dir Em EE EH EE EE EE EM EM ED EN EE EM ED EM EM REED EE E ED ED ES ES S OO Gn Gn oH mz um uH EE EM EM EE EM E E GU UU RO GU RU GU UD UD UU D I E E En Un no mn m um mu mm um EE EE EE EE EE ES E E E ERR E EU GR Um Um m m m m um J uv o ER mmmmmmmmmmmmmmmmmmmmmmmi OV while button 5V while button is pressed is pressed f C3 IC mi Buttons schematic with USB 2 0 PROGRAMMER 2l 5 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ In Figure 20 the J16 jumper is set to pull up therefore when the button is released pull up resistor pulls the microcontroller s PB5 pin to 5V By pressing the button the port pin is connected to ground Jl is in the GND position Thus only when the button is pressed the microcon troller will sense a logic zero otherwise the pin sta
20. pin microcontroller User can remove this chip and fit a different microcontroller into MCU socket nil eet iz os LE f8 There is a white line around MCU socket which outlines the proper position of the MikroElektronika Card Be sure that the upper left corner of the card with label LVISFJ MCU CARD maches the upper left corner of the outlined image with the same label h e MCU placed on socket Figure above illustrates MCU Socket before Ind 79 dey 4 v i 0 94 placing the MikroElektronika card V16F MCU CARD ant Figure 6 on the right illustrates MCU Sock et with properly placed MikroElektronika card mnm b 89999999 with USB 2 0 PROGRAMMER Meet LVISEJ Users Manual DEVELOPMENT TOOLS Microcontroller s pins are routed to various peripherals as illustrated in Figure7 All ports are directly connected to Direct Port Access connectors Such connectors are normally used for connecting external peripherals to the board or for providing digital logic probes for test ing and measuring All ports are connected to LEDs push button switches and pull up down resistors which allow easy monitoring and testing of digital pin state Some pins are connected to other peripherials such as DS1820 temperature sensor RS 232 communication 7 segment displays LCD etc MCU SXOXGUSLS I SS E le PORTA ro Sa PORTS wo a PORTC 4am PORTO n am POATE m am POATF
21. rmometer is convenient for envi ronmental temperature measurement having the tem perature in the range of 55 C to 125 C with 0 5 C accuracy It must be properly placed in the 3 pin sock et provided on LVISFJ with its rounded side to the right edge of the board see Fig 30 otherwise the DS1820 could be permanently damaged DS1820 s data pin can be connected to either RDO or RD1 pin which is determined by the jumper J2 MINE DS1820 schematic There is a mark in the shape of a half circle for proper orientation of DS1820 sensor Zia Jl Aw LO 4 37200 DIGITAL THERMOMETER 125 C a o 55 C VCC3 3 VCC3 3 R4 J2 GND vcc un DQ DQ line is DQ line is DQ line is connected to RDO connected to RD1 disconnected Zl MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LVISFJ with USB 2 0 PROGRAMMER pei eins LVISEJ Users Manual DEVELOPMENT TOOLS MCU A D CONVERTER SUPPORT LV18FJ microcontrollers have built in A D Converter For the purpose of accessing the ADC there are 4 potentiometers available on the development board each connected to four dif ferent A D inputs A detailed scheme is shown below A D Converter Bas ossa xi 4 096 reference voltage schematic VCC3 3 MOSS AVI CONVERTER SUPPORT
22. tage level an F a 2 ee EN C H wT VCC3 3 O ells 3 al MMC SD MULTIMEDIA CARD x PIC18F66J60 TO Ta vege SS PIC18F67J60 us j E ifi 10MHz L 4 1 VCC3 3 22pF i d 22pF VCC3 30 E VCC3 3 10K R12 10K R10 10K RQ 10K l R11 SCK RC3 SDO RC4 SDI RC3 gs RD2 REG2 VCC3 3 m CN6 E7 C8 10uF 100nF ACUO MMC Card schematic with USB 2 0 PROGRAMMER LVISFJ MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 29 LVISEJ Users Manual ore DEVELOPMENT TOOLS Second edition October 2007 NO PART OF THIS MANUAL INCLUDING THE PRODUCT AND SOFTWARE DESCRIBED IN IT MAY BE REPRODUCED TRANSMITTED TRANSCRIBED STORED IN A RETRIEVAL SYSTEM OR TRANSLATED INTO ANY LANGUAGE IN ANY FORM OR BY ANY MEANS EXCEPTING THE DOCUMENTATION KEPT BY THE PURCHASER FOR BACKUP PURPOSES WITHOUT EXPRESSED WRITTEN PERMISSION OF MIKROELEKTRONIKA COMPANY PRODUCT WARRANTY OR SERVICE WILL NOT BE EXTENDED IF THE PRODUCT IS REPAIRED MODIFIED OR ALTERED UNLESS SUCH REPAIR MODIFICATION OR ALTERATION IS AUTHORIZED IN WRITING BY MIKROELEKTRONIKA MIKROELEKTRONIKA PROVIDES THIS MANUAL AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED INCLUDED BUT NOT LIMITED TO IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE IN NO EVENT SHALL MIKROEL
23. te will always be logic one In Figure 21 the J16 jumper is set to pull down therefore when the button is released pull down resistor pulls the microcontroller s RB5 pin to OV By pressing the button the port pin is connected to 5V Jl is in the VCC position Thus only when the button is pressed the microcon troller will sense a logic one otherwise the pin state will always be logic zero vcc J16 PORTB pulls 6 PESEERSS 2509009 RE1 REO RGO RG1 RG2 RG3_ MCLR RGI PIC18F6XJ11 Ve PIC18F6XJ16 o RES RB5 RF4 RF3 RF2 o9 ETT Opor L2222588 28 SERE vcc J1 OV while pressed 3 am Figure 20 Button with pull up resistor vcc J16 PORTB pull down 6 PUPEEPESTRERBEE RE1 REO RGO RG1 RG2 RG3_ MCLR 5 PIC18F6XJ11 Vddeore PIC18F6XJ16 os RES RB5 RF4 RF3 RF2 o d gt 88 con 588 bZSSeS3 532823095 vcc J1 5V while pressed 3 rr Figure 24 Button with pull down resistor Qo Br D Z a D QS LVISFJ MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD ll 7 with USB 2 0 PROGRAMMER LVISE J Users Manual cashes 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

Download Pdf Manuals

image

Related Search

Related Contents

User Manual - Austin Hughes  MOD-IO2 extension board USER`S MANUAL  To The Installer: Please Make Sure You Provide  Manuel d`installation et d`utilisation  Tach Instructions General  通信機能付で遠隔監視。 エネミエール S  Manual Home Star HT-08 01-13 Rev00  Convertidor de la señal para caudalímetros electromagnéticos  PR-C101 Operation Manual  

Copyright © All rights reserved.
Failed to retrieve file