Home

EasyPIC v7 User Manual

image

Contents

1. u ev cere Pleat se aie RBS IMPORTANT When using PIC18F2331 or PIC18F2431 microcontollers it is necessary eme rm m TE n to place J20 jumper in order to route VCC power line to RA5 pin Figure 4 1 m x y xe E M d 2 PIC18F2331 2431 W ME 1 Feaswcu ores 9 rm fro np Rao e Ur a a il VCAP jumpers explained c srg an Some PIC16F PIC18FK and all PIC18F microcontrollers have cores that work on 1 8V 2 5V voltage range and peripherals that work with 3 3V and 5V voltages Internally those microcontrollers have power regulators which adjust Figure 4 1 the core voltage levels In order for those devices to have a stable operation of Schematics the core manufacturer recommends that decoupling capacitive filters should of on board E be provided and connected between specific microcontroller pins designated DIP sockets TE with VCAP and GND EasyPIC v7 board provides jumpers which are used for this and VCAP eu m purpose Here is list of devices that require jumpers placed in VCAP position jumpers eo ep J22 VCAP position when using PIC16F724 16F727 VCAP position for PIC18F44J10 and PIC18F45J10 VCAP for PIC18F24J10 PIC18F25J10 PIC18F2X 50 PIC18F2X 11 23 VCAP for PIC16F722 PIC16F723 PIC16F726 see figure 4 1 Ius NINE f vou do not place VCAP jumper for the MCUs that need it Figure 4 2 you might experience some instabilities in program execution crystal o
2. PIC18F45K22 chip you should enable SW1 1 RC7 and SW2 1 R PA Lh communication b xe Modern PC computers laptops and notebooks are SS no longer equpped with RS 232 connectors and ES UART controllers They are nowdays replaced with USB connectors and USB controllers Still certain technology enables UART communication to be done over USB connection Controllers such as FT232RL from FTDI9 convert UART signals to the appropriate USB standard In order to use USB UART module on EasyPIC v7 you must first install FTDI drivers on your computer Drivers can be found on Product DVD COMPILERS EXAMPLES SCHEMATICS DRIVERS MANUALS DVD download eng software development tools universal ftdi vcp_drivers zip ko Cd USB UART communication is being done through a leonPro9 ET232RL controller USB connector CN32 and microcontroller UART module To establish this connection you must put J3 and J4 jumpers in the USB UART position and connect RX and TX lines of the microcontroller to the appropriate input and output pins of the FT232RL This selection is done using DIP switches SW1 RC6 lines and SW2 aii d FTDI ird VCC 5V VCC 5V VCC MCU lt 9 C50 ii E12 C34 NC RX FTDI 28 DE Wn 100nF TU 100nF z wh g a L 26 2K2 4K7 LED 4 25 po ON32 1 i d rh 4 LD42 E eT VL i ii E RX LED DATA BUS om nml TX LED p R78 i 20 AK
3. 5 C accuracy for temperatures within the range of 10 to 85 C It requires 3V to 5 5V power supply for stable operation It takes maximum psiko Figure 15 2 DS1820 placed in socket B zi Figure 15 1 DS1820 not connected Figure 15 3 DS1820 connected to RE2 pin Figure 15 4 DS1820 connected to RA4 pin EasyPIC v7 enables you to establish 1 wire communication between DS1820 and the microcontroller via RA4 or RE2 microcontroller pins The selection of either of those two lines is done using J11 jumper When placing the sensor in the socket make sure that half circle on the board s silkscreen markings matches the rounded part of the DS1820 sensor If you accidently connect the sensor the other way it may be permanently damaged and you might need to replace it with another one During the readings of the sensor make sure that no other device except those in 1 wire network uses the selected line because it may interfere with the data page 28 of 750ms for the DS1820 to calculate temperature with 9 bit resolution 1 wire serial communication ena bles data to be transfered over a single communication line while the process itself is under the control of the master microcontroller The advantage of such communication is that only one microcontroller pin is used Multiple J E OO N O O O O A Figure 15 5 DS1820 connected to RE2 pin E DS1820 Digital y lemperature Sensor s
4. C connectivity Its good to know PIC18F45K22 is the new default microcontoller System Specification introduction Until now EasyPIC development boards were equipped with More power than ever before ower suppl PIC16 as the default chip Now we are giving you more Great choice for both beginners gE o AC asd 2V DC 5V power than ever before PICL8F45K22 is the new default and professionals or via USB cable 5V DC chip of EasyPIC v7 It has 16 MIPS operation 64K bytes of Rich with modules linear program memory 3896 bytes of linear data memory Enough RAM and Flash l power consumption 85mA when all peripheral and support for a wide range of power supply from 1 8V to Comes with examples for Roe xadileesrediscennactsd 5V It s loaded with great modules 36 General purpose I O mikroC mikroBasic and pins 30 Analog Input pins AD Digital To Analog Converter mikroPascal compilers board dimensions DAC support for Capacitive Touch Sensing using Charge eee CeO L O E Time Measurement Unit CTMU three 8 bit timers and four 16 bit timers It also has pair of CCP Comparators and i i Cre weight 445g 0 981 Ibs MSSP modules which can be either SPI or I C i i ika ikroEleKtro p BOOFS iB TOOLS 1 COMPRE Cade Damage resistant EasyPIC v7 board in User Manuals and DVD with examples protective box antistatic bag Board schematics and documentation v7 EasyPIC connectivity pa
5. DATA Size 256 Bytes Address Oh Revison JMirotiekrenta DEVELOPMENT TOOLS ipei EasyPIC connectivity O0 fo w 070 e e Installation wizard 6 simple steps Welcome to the mikraProg Suite for ires the gargs Sema Eee i aira nr nog une PIC v2 20 Setup Wizard torrie 23 This ieee will uice you Hough the nmialiadsen of Press Page Dern in ser the rest of Se agreement mbrebrog Sure Far PIC va 38 j is recommended tha reme rete voii tgensble to update reievart pisten fles without hang to reboot your TRA Gig hit 32 Eon rud El yew icono Fon lera of the agreement sedent Pai ernia T e a agreement iz Pac d hara Lcd Chick ext bo Horetecami e tere Pu Loewe Arent Chenge inatall Location Chappe thus Raider niwha sa rala minar dure for BTE via Setup wil natali mirsa Some for POC 92 20 he nier folder To rectal in a demr Solder dick ngeba And galat are cher folder Chick pta 12 pent a retala bga Completing the mikroProg Suite for PIC v2 20 Setup Wizard m rniereg Suie fer PIC v2 20 hes been insikallesd on your Click Finish tz dope this mized Step 5 Installation in progress Step 6 Finish Installation page 13 070 fo i era e mikrolCD In Circuit Debugger what is Debugging Every developer comes to a point where he has to monitor the code execution in order to find errors in
6. INT HP ala AMC eem DA RS im ex e RE E Ld B LI ISIR Abed ed LIE GND 50i L4L JL JL t WAE WiFi click 1 INI LU JN 185188 5 ec 006 wa as AL AH Bagh Kegerses LEA 8S 0 000 GPS click RIRERSR AY aro un 21 C1 eo ram a J1 y BB a EHE x KT J NC a puma ilf ie vg NC RX dB TX NC e A 5 5u e AN 7 gt GNO Ep B o L b E i Pim J2 j az 2L TA TE Ly S Lm e a a R2R3R1 B connectivity WIFI click GPS click RS485 click CAN SPI click Buzz click Enter search keywords BROWSECODE SHRRECODE REQUESTCODE ABOUT LIBSTOCK Use your forum account to login CATEGORIES Alicodes Libraries Projects Visual Projects Examples Code Examples LOGIN COMPILERS El mikroc nina _ SORT BY E mikroBasic mikroPascal Other Compilers E bestrank El oldest CATEGORY ALL CODES It easy to get your Click board up and running We provided the examples for mikroC PRESE mikroBasic and mikroPascal compilers on our Libstock E byauthor E alphabetically most downloaded E with source E with example first previous 1 2 4 56 7 8 9next gt last supported microcontrollers E RS485 3 3V click Example community website Just PIC Not registered Sign Up for free Rating Description Author
7. J8 and J9 are Using jumper J19 Why SO many LE Ds make sure to set MCLR pin jumpers used to select PGC and you can specify J1 and J2 so that MCLR line is PGD programming lines whether RST pin of LINK Three LEDs indicate specific programmer routed to the correct socket for for your microcontroller your microcontroller is operation Link LED lights up when USB your microcontroller If you are Make sure to place connected to the on w0 link is established with your PC Active using the default PIC18F45K22 jumpers in the proper board reset circuit or w Dawn LED lights up when programmer is active jumpers are supposed to be set for position for your socket acts just as I O pin mem Data is on when data is being transfered DIP40 as shown below between the programmer and PC software compiler or mikroProg Suite for PICS SOCKET SOCKET SELECTION SELECTION so F JI e DATA c J1 Jig BRIBE els 1 fee Hack MCLR PIN MCLR PIN S LECTION SECTION FUNCTION epe DIP40 DIP18A DIP40 DIP20 MCLR MCLR NOME fyouuse d than a default PICL8F45K22 ier dn DIP28 DIBIGE DIP28 DIP14 ll as V0 want to make sure that programmer jumpers are place DIP18A DIP8 MCLR in proper positions for your microcontroller socket DIP18B page 10 EasyPIC connectivity v7 VCC 3 3 VCC 3 3 O O LD38 LD39 C LN LINK a AN ACTIVE w V LA Iu R67 R68 2K2 4K7 DATA BUS Programming with ICD2 ICD3 EasyPIC v7 is equipped with RJ 12 connector
8. MikroElektronika Team Version 1 0 0 0 Last Updated 2012 01 10 Category CAN LIN RS485 supported compilers MIKROC MIKROBASIC MIKROPASCAL supported visual tools download them and you are ready to start Simple example which demonstrates working with RS485 SN65HVD12 module Master initiates communication with slave The slave accepts data increments it and sends it back archive format to the master RAR Communication with the board is done using simple UART interface PIC examples are written for PIC18FA5K22 learn more CODE CATEGORIES All codes 227 Downloaded 162 times project contains SRC EXA HEX Not followed gt Download 120 52k8 Audio amp Speech 7 http www libstock com Communication 67 Graphics amp LCD 21 v7 EasyPIC connectivity pa g e 2 1 Input Output Group One of the most distinctive features of EasyPIC v7 emere Eee PORTC are it s Input Output PORT groups They add so much to EMEMBMSMBMOMENM p RCO RC1 RCO the connectivity potential of the board up t e t 4 Rc2 nca Rc2l PULL N M W W W W W M RC4 RC5 RC4 RCS RC2 j RCG lt RC7 RC6 RC7 RC3 i GND VCC GND RC4 Everything is groupped together ont eee E Mob Bob IRCE LME L LL RC c3 EJ gc2 EJ gc4 EJ Roo GIRO M a a X8 a E e Y ar vec It took us a while to realize that having PORT headers PORT buttons and a
9. compatibile with Microchip9 ICD2 and ICD3 external programmers This way you can override the on board mikroProg programmer and In Circuit Debugger and use other programming tools with the board But you still have to set the appropriate jumpers as described in the previous page Insert your ICD programmer cable into connector CN28 as shown in images and v7 EasyPI connectivity 070 fo w 073 Oo e veo VCC MCU VCC BRD O O LD40 ols DATA IN a VCC USB Q i mikroProg 6K8 i LA USB 2 0 programmer debugger FERRITE BE PROGRAMMER C19 MCU VPP MCU PGC MCU PGD BOARD VPP BOARD PGC BOARD PGD nubem a N BOARD PGD IL RBZ HH RAO M2X4 COMPILERS SUPPORTED RST CN28 ICD BOARD VPP I ecc VCC BRD Leere qon O J19 R7 B M1X3 VCC BRD O 10K as MCU VPP T65 1K C41 RESET 100nF VCC BRD C18 100nF RST Figure 5 1 mikroProg block schematics page 11 era fo Qo Oo e On board mikroProg requires drivers in order to work Drivers are located on the Product DVD that you received with the EasyPIC v7 package PRODUCT DVD COMPILERS EXAMPLES SCHEMATICS DRIVERS MANUALS DVD download eng software development tools universal mikroprog mikroprog_for_pic_ drivers_v200 zip When you locate the drivers please extract files from the ZIP archive Folder with extracted files contains folders with d
10. duplex communication Both sides must be initialized with the same baudrate otherwise the data will not be received correctly RS 232 serial communication is performed through a In order to enable RS 232 9 pin SUB D connector and the microcontroller UART communication you must set J3 module In order to enable this communication it and J4 jumpers in the RS 232 is necessary to establish a connection between position and enable desired RX RX and TX lines on SUB D connector and the and TX lines via SW1 and SW2 Same pins on the target microcontroller using DIP switches For example if you DIP switches Since RS 232 communication want to enable RS 232 connection voltage levels are different than on UART1 module of the default microcontroller logic levels it is PIC18F45K22 chip you should necessary to use a RS 232 enable SW1 1 RC7 and SW2 1 Transceiver circuit such as RC6 lines MAX3232 as shown on Figure 6 1 DATA BUS VCC MCU VCC MCU C29 U4 I I 1 00k eklo bn hs h SU 9Sc cl 1 EN e wi i a e a1 MAX3232 E8 DIP SW 8 DIP SW 8 Bottom view Figure 6 1 RS 232 connection schematics page 16 EasyPIC connectivity v7 UART via USB In order to enable USB UART communication you must set J3 and J4 jumpers in the USB UART position and enable desired RX and TX lines via SW1 and SW2 DIP switches For example if you want to enable USB UART connection on UART1 module of the default
11. in mikroElektronika compilers You can see what each command does and what are their shortcuts when you are in debugging mode It will give you some general picture of what your debugger can do Description Starts Debugger Run Pause Debugger Stops Debugger Executes the current program line then halts If the executed program line calls another routine the debugger steps into the routine and halts after executing the first instruction within it Executes the current program line then halts If the executed program line calls another routine the debugger will not step into it The whole routine will be executed and the debugger halts at the first instruction following the call Executes all remaining program lines within the subroutine The debugger halts immediately upon exiting the subroutine Executes the program until reaching the cursor position Toggle breakpoints option sets new breakpoints or removes those already set at the current cursor position Shows Hides window with all breakpoints Deletes selected breakpoints Opens window with available interrupts doesnt work in mikrolCD mode page 15 o0 C i Qo O A C 9 fU C E O UW The UART universal asynchronous receiver transmitter is one of the most common ways of exchanging data between the MCU and peripheral components It is a serial protocol with separate transmit and receive lines and can be used for full
12. of some electronic device Character LCDs can be used to represent standard and custom characters in the predefined number of fields EasyPIC v7 provides the connector and the necessary interface for supporting 2x16 character LCDs in 4 bit mode This type of display has two rows consisted of 16 character fields Each field is a 7x5 pixel matrix Communication with the display module is done through CN7 display connector Board is fitted with uniquely designed plastic display distancer which allows the LCD module to perfectly and firmly fit into place aoira r ANg Make sure to turn off the power supply before placing LCD onto the board Otherwise your display can be permanently damaged DATA BUS VCC MCU O O VCC 5V 8 9Srvr cl Figure 11 2 2x16 LCD LCD2X16 a CD ex16 characters E lum ale E LCD 2X16 CHARACTERS IN 4 BIT MODE GND GND 45V VCC RB4 RS GND RAW RBS E GND DO GND D1 GND D2 GNOD3 RBO D4 RB1 D5 RB D6 IMPORTAN BE SURE TO TURN OFF THE POWER SUPPLY BEFORE L a a FLACING LCD OR GLCD ON DEVELOPMENT BOARD OTHERWISE BOTHLCD AND GLCD UNITS CAN BE PERMANENTLY DAMAGED BE SURE TO PLACE LCD AND GLCD PROPERLY OTHERWISE BOTHLCD AND GLCD UNITS CAN BE PERMANENTLY DAMAGED Figure 11 1 On board LCD 2x16 display connector Connector pinout explained GND and VCC Display power supply lines Vo LCD contrast level from potentiometer P4 R
13. 1 or RE2 microcontroller pins The selection of either of those two lines is done using J25 jumper When placing the sensor in the socket make sure that half circle on the board s silkscreen markings matches the rounded part of the LM35 sensor If you accidently connect the sensor the other way it can be permanently damaged and you might need to replace it with another one During the readings of the sensor make sure that no other device uses the selected analog line because it may interfere with the readings v7 EasyPIC connectivity Ww separate socket TS2 for the LM35 sensor in TO 92 plastic packaging Readings are done with microcontroller using single analog input line which is selected with jumper J25 Jumper connects the sensor with either RE2 or RE1 microcontroller pins O O O d DATA BUS Figure 16 5 LM35 connected to RE1 pin page 29 ADC inputs Digital signals have two discrete states which are decoded as high and low and interpreted as logic 1 and logic O Analog signals on the other hand are continuous and can have any value within defined range A D converters are specialized circuits which can convert analog signals voltages into a digital representation usually in form of an integer number The value of this number is lineary dependent on the input voltage value Most microcontrollers nowdays internally have A D converters connected to one or more i
14. 8 on SW3 to enable touch coordinates Touch panel controller touchpanel controller and connector for 4 wire resistive touchpanels t can very accurately register pressure at a specific point representing the touch coordinates in the form of analog voltages which can then be easily converted to X and Y values Touchpanel is ment to be mounted onto the GLCD display a3 a y i 1 c WS ru TN ls i Touch panel into GLCD socket O i o Oo OF I co o H 9 TOUCHPANEL CONTROLLER Easy 4 digit seg display One seven segment digit consist of 7 1 LEDs which are arranged in a specific formation which can be used to represent digits from O to 9 and even some letters One additional LED is used for marking the decimal dot in case you want to write a decimal point in the desired segment EasyPIC v7 contains four of these digits put together to form 4 digit 7 segment display Driving such a display is done using multiplexing techniques Data lines are shared between segments and therefore the same segment LEDs in each digit are connected in parallel Each digit has its unique digit select line LCD GLCD BPWM LCD GLCD BCK 6 EEPROM SDA 8 8 29Srtcl z U co v7 EasyPIC connectivity displays which is used to enable the digit to which the data is currently being sent By multiplexing data through all four segments fast enough you create an illusion that all fo
15. EasyPIC connectivity v7 DUAL POWER SUPPLY Smart engineering of EasyPIC v7 development Power supply via DC connector or screw terminals board allowed us to support both 3 3V and 5V 7V to 23V AC or 9V to 32V DC 33V BV microcontrollers on a single board which is or via USB cable 5V DC more then 250 devices Power consumption up to 600mA depending on how many on board modules are currently active a a ua L C z O e How to power the board 1 With USB cable Set J6 jumper to USB position To power the board with USB cable place jumper J6 in USB position and place jumper J5 in 5V or 3 3V position depending on which microcontroller you are using You can then plug in the USB cable as shown on images and and turn the power switch ON c Using adapter Set J6 jumper to EXT position To power the board via adapter connector place jumper J6 in EXT position and place jumper J5 in 5V or 3 3V position depending on which microcontroller you are using You can then plug in the adapter cable as shown on images and and turn the power switch ON 3 With laboratory power supply Set J6 jumper to EXT position To power the board using screw terminals place jumper J6 in EXT position and place jumper J5 in 5V or 3 3V position depending on which microcontroller you are using You can then plug in the adapter cable as shown on images and and turn the power switch ON EasyPIC con
16. EasyPIC v7 comes with piezo buzzer which can be connected either to RC2 or RE1 microcontroller pins which is determined by the position of J21 jumper Buzzer is driven by transistor Q8 Figure 19 1 Microcontrollers can create sound by generating a PWM Pulse Width Modulated signal a square wave signal which is nothing more than VCC 5V vA UJ vA W eO ua Figure 19 1 Piezo buzzer connected to RC2 microcontroller pin BUZZER Freq 3kHz Duty Cycle 50 fereg 3kHz Volume 50 Freq 3kHz Duty Cycle 80 Fereg 3kHz Volume 80 Freq 3kHz Duty Cycle 20 Meren 3kHz i Volume 20 4 How to make it sing Buzzer starts singing when you provide PWM signal from the microcontroller to the buzzer driver The pitch of the sound is determined by the frequency and amplitude is determined by the duty cycle of the PWM signal Piezo Buzzer a sequence of logic zeros and ones Frequency of the square Signal determines the pitch of the generated sound and duty cycle of the signal can be used to increase or decrease the volume in the range from 0 to 100 of the duty cycle You can generate PWM signal using hardware capture compare module which is usually available in most microcontrollers or by writing a custom software which emulates the desired signal waveform Supported sound frequencies Piezo buzzer s resonant frequency where you can expect it s best performance
17. LA Carefully read End User License Agreement If you agree with it click Next to procede Step 1 Start Installation Welcome screen of the installation Just click on Next button to procede mikroElektronika USB18F Device x64 Vista Platform Installer mikroElektronika USB18F Device x64 Vista Platform Installer ai Congratulations You have finished drivers Instalation The drivers were successfully installed on this computer You can now connect your device to this computer If your device came with instructions please read them first i v Please wat while the drivers install This may take some time to complete Driver Name Status v mikroElektronika USB1 Ready to use Step 4 Finish installation You will be informed if the dirvers are installed correctly Click on Finish button to end installation process Step 3 Installing drivers Drivers are installed automatically in a matter of seconds v7 EasyP connectivity Programming software mikroProg Suite for PIC On board mikroProg programmer requires special programming software called mikroProg Suite for PIC This software is used for programming all of Microchip microcontroller families including PIC10 PIC12 PIC16 PIC18 dsPIC30 33 PIC24 and PIC32 Software has intuitive interface and SingleClick programming technology To begin first locate the installation AL archive on the Product DVD DVD dow
18. PIC connectivity Serer i h f us gt DUM Owen RUPS a una 4 mank 7 E A 93 11 BIR MCLR v 1 habere bu bu id Egi y 4 voc GNO am OCA CPI YO BOARD D 2 s are 2 M AM E EN E SEX ATAS BACKLIGHT 2C 7 CORMNECIANALS z HAV REV 1 03 DUAL POWER SUPPLY a connectivity mikro 3 3V 5V Q 5 O BUS x d microcontrollers supported Supports 3 3V and 5V devices Easily add extra boards Four connectors for each port The ultimate PIC9 board Dual Power Supply mikroBUS sockets Amazing Connectivity Fast USB 2 0 programmer and In Circuit Debugger E MikroElektronika DEVELOPMENT TOOLS COMPILERS I BOOKS To our valued customers From the day one we in mikroElektronika gave ourselves the highest possible goals in pursuit of excellence That same day the idea of EasyPIC development board was born And we all grew together with EasyPIC In its each and tiniest piece we had put all of our energy creativity and sense of what s best for an engineer I ve personally assembled hundreds of early CEasyPIC boards myself with my home soldering iron Today we present you the 7th generation of the board which brings us some exciting new features We hope that you will like it as much as we do Use it wisely and have fun Nebojsa Matic Owner and General Manager of mikroElektronika Introduction MOGUL OH Rare NS REIHE RR nO EO OPERUM 04 It s good to KNO
19. S Register Select Signal line E Display Enable line R W Determines whether display is in Read or Write mode It s always connected to GND leaving the display in Write mode all the time DO D3 Display is supported in 4 bit data mode so lower half of the data byte interface is connected to GND D4 D7 Upper half of the data byte LED Connection with the backlight LED anode LED Connection with the backlight LED cathode oeaan Standard and PWM driven backlight CN7 We have allowed LCD backlight to be enabled in two different ways 1 It can be turned on with full brightness using SW4 6 switch 2 Brightness level can be determined with PWM signal from the microcontroller allowing you to write custom backlight controling E software This backlight mode is enabled with SW4 5 switch IMa rN norder to use PWM backlight both SW4 5 and SW4 6 switches must be enabled at the same time v7 EasyPIC connectivity GLCD 128x04 Graphical Liquid Crystal Displays or GLCDs are used to display monochromatic graphical content such as text images human machine interfaces and other content EasyPIC v7 provides the connector and necessary interface for supporting GLCD with resolution of 128x64 pixels driven by the KS108 or similar display controller Communication with the display module is done through CN6 display connector Board is fitted with uniquely designed plastic display distancer which allows the GLCD module to perfe
20. T T19 USB um um mm um uu um mm Um Em ee um N eV pe R79 T EL Nt koi 3 rg NN ERR RN E connection a schematics DIEBUS L enr EasvPIC y connectivity page 17 y pt E C 9 fU X E E O UW USB is the acronym for Universal Serial Bus This is a very popular industry Standard that defines cables connectors and protocols used for communication and power supply between computers and other devices EasyPIC v7 contains B connection USB connector CN4 which enables microcontrollers that support USB communication to establish a connection with the target host eg PC Laptop etc Selection of communication lines is done using jumpers J12 or J18 depending on Q Enabling USB connection Depending on your target microcontroller USB communication can be enabled on PORTA or PORTC For PIC18 L F1XK50 you should put J18 jumpers in the USB position Figure 8 3 For PIC18Fxx J 50 PIC18Fxx J 53 PIC18Fxx 55 and PIC18Fxx58 place J12 jumpers in the USB position Figure 8 2 FUSBON a Ir a fin eA USB COMM J Figure 8 1 USB function disabled page 18 WO USB Ea us Figure 8 2 USB enabled on PORTC vO USB 5 E a r Figure 8 3 USB enabled on PORTA the target microcontroller When communication lines are routed from the microcontroller to the USB connector using mentioned jumpers they are cut off from the rest of t
21. W Ls reU OR EET End a erence wa 05 Power Supply Dual power supply aco suthebrCE RICE TERCER YE 06 Supported MCUs Supported microcontrollers 00ceeceeeee eens 08 Programming On board prograMMelr 0c cece eee e eens 10 Installing programmer drivers ccc e eee ees 12 Programming software u cece cece eee eens 13 mikrolCD In Circuit Debugger sssssese 14 Communication UART via RS 232 oneris 16 UC 17 USE COMMCCHON MM IM EET 18 Connectivity mikroBUS SODKBES esas up Fett ERR dI GS 19 Input Output Group ee oda ao ERRARE RE 23 Displays ECW EXIGO CNCE S errr NESA 24 GLCD 128x64px ce 25 Touchpanel controller esee 26 4 digit 7 seg display ccc cece cece eee eens 2 Modules DS1820 Digital Temperature Sensor 28 LM35 Analog Temperature Sensor 29 ADC InBliSoossrrRREPIIINESETEFEER I E FPCERENEET 30 2C EEPROM nner eere ee 31 Pie20 BUZZED TT 32 Additional GNDs csse 33 Whats next What s Next oo cc sse een 34 page 3 Introduction EasyPIC is an old friend It has been with us for six generations Many of 2 UJ zx E mc c us made our first steps in embedded world with EasyPIC Today it has WS thousands of users students hobbyists enthusiasts and professionals It s used in many schools and other educational intitutions across the globe We may sa
22. aS as ae ei tei te GND PORT LEDs next to each other and groupped together makes development E m is I xm easier and the entire EasyPIC v7 cleaner and well organized We have also provided an additional PORT headers on the left side of the board so you can access any pin you want from both sides of the board Some PORT pins are directly connected to the microcontroller and some that are connected to other on board modules are enabled via jumpers for example USB jumpers J12 and J18 Figure 10 1 I O group contains 3 PORT headers tri state pull up down DIP switch buttons and LEDs all in one place Tri state pull up down DIP switches Tri state DIP switches like SW7 on Figure 10 2 are used DATA BUS to enable 4K7 pull up or pull down resistor on any desired port I pin Each of those switches has three states RC2 EE 1 middle position disables both GED E je eel lO pull up and pull down feature from i acne ER RC5 Prep RC7 0 VCC BRD the PORT pin 2 up position connects the resistor Pc LED in pull up state to the selected pin 3 down position connects the Figure 10 2 Tri state resistor in pull down state to the DIP switch on PORTC selected PORT pin BE DP sws TRI STATE VCC MCUO N S9 IN Ql ep N oe i U ep DATA BUS VCC MCU O J24 m BUTTON PRESS LEVEL Figure 10 3 Additional PORT header on the left s
23. ceseed n J1 ma i Corpin Stared DC oOo D C eA Compiles Programmed ASPICE Led BlnkmnqiLed lmiingamrppi m zoCPIC 15 bi eue SF DES De MES AITCD DC 2211111114 fo h sers Publi Docume i mikrot PRO for PIC Examples Development Systema EASYPICE Led hardwi er represents mikrolCD In Circ iiis d debugging on pale designed for testing jers with ICD suppor tool mik i C D dsPIC and PIC32 microc in m debugger ge A 09 el 5 En En eo e ikroEl ktronika pA Mikrotlektron Figure 5 2 mikroICD manual explains debugging thoroughly s n TE webs EJ inb eh ih E d ae Add femore o Properties og Add Qe Remove Ali teet vanbi Ion lent pont Search Teu wenteabhe ba acrem race 23 3 Sw Him ES E Z 8 Led T Figure 5 3 mikroC PRO for PIC compiler in debugging view with SFR registers in Watch Window EasyPIC connectivity Toolbar Icon EN gt 0 OD m of EasyPIC connectivity IN CIRCUIT DEBUGGER Command Name Start Debugger Run Pause Debugger Stop Debugger Step Into Step Over Step Out Run To Cursor Toggle Breakpoint Show Hide breakpoints Clears breakpoints Jump to interrupt v7 Shortcut F9 F6 Ctrl F2 F7 F8 Ctrl F8 F4 F5 Shift F4 Shift Ctrl F5 F2 mikrolCD commands 90 oe eI m iE Here is a short overview of which debugging commands are supported
24. cket for serial EEPROMs in DIP8 packaging so you can easily exchange it with different memory size EEPROM IC EEPROM itself supports single byte or 16 byte page write and read operations Data rates are dependant of power supply voltage and go up to 1 MHz with 5V power supply and 400 kHz for 3 3V power supply What is I C I C is a multi master serial single ended bus that is used to attach low speed peripherals to computer or embedded systems l C uses only two bidirectional open drain lines Serial Data Line SDA and Serial Clock SCL pulled up with resistors Data and clock lines are driven with a master device Up to 112 slave devices can be connected to the same bus Each slave must have a unique address ane DATA BUS VCC MCU VCC MCU VCC MCU VCC MCU U o U VCC MCU ie g jm Ax 4 7 Figure 18 1 C24 S As EEPROM SCL a Schematic of 100nF cpa po EEPROM SDA BM C EEPROM ENT module DIP SKT 8 24C08 DIP SW 8 v7 Easy PIC page 31 Piezoelectricity is the charge which accumulates in certain solid materials in response to mechanical pressure but also providing the charge to the piezoelectric material causes it to physically deform One of the most widely used applications of piezoelectricity is the production of sound generators called piezo buzzers Piezo buzzer is an electric component that comes in different shapes and sizes which can be used to create sound waves when provided with analog electrical signal
25. ctly and firmly fit into place Display microcontro VCC MCU O Figure 12 1 GLCD 128x64 connection schematics mE 10K DATA BUS Top view E A a HAHAHHAHAHA e EtthkbEUE TA EE 09 20 2328 OO 52 2 LCD GLCD BCK K GLCD RB GLCD 128X64 Oo 0 gt X z AOAggo000 Pu sl 5B 53 24 55 25 7 Tmp gis EasyPIC connectivity connector is control lines and PORTD data lines of the used by 2x16 character LCD display you cannot use both displays simoutaneously You can control the display contrast using dedicated potentiometer P3 Full brightness display backlight can be enabled with SW4 5 switch and PWM driven backlight with SW4 6 switch routed to PORTB ller sockets Since PORTB is also SW 4 RC2 O VCC 5V BLOGVECL Connector pinout explained CS1 and CS2 Controller Chip Select lines VCC 5V display power supply GND Reference ground Vo RS R W Determines whether display is in Read or Write mode E Display Enable line DO D7 Data lines RST Display reset line GLCD contrast level from potentiometer P3 Data High Instruction Low selection line Vee Reference voltage for GLCD contrast potentiometer P3 LED Connection with the backlight LED anode LED Connection with the backlight LED cathode V Standard and PWM driven backlight As for LCD we have allowed GLCD backlight to be enabled in two different ways 1 It can be turned o
26. ensors can be connected on the same line All slave devices by default have a unique ID code which enables the master device to easily identify all devices sharing the same interface EasyPIC v7 provides a separate socket TS1 for the DS1820 Communication line with the microcontroller is selected with jumper J11 DATA BUS v7 EasyPIC connectivity LM35 Analog Temperature Sensor V The LM35 is a low cost precision integrated circuit temperature sensor whose output voltage is linearly proportional to the Celsius Centigrade temperature The LM35 thus has an advantage over linear temperature sensors calibrated in Kelvin as the user is not required to subtract a large constant voltage from its output to obtain convenient Centigrade scaling It has a linear 10 0 mV C scale factor and less than 60 pA current drain As it draws only 60 pA from its supply it has very low self heating less than 0 1 C in still air EasyPIC v7 enables you to get analog readings from the LM35 sensor in restricted temperature range from 2 C to 150 C Board provides a P e e Enabling LM35 Sensor l1 DSO D 9 Allo ica oO 0 0 E 125 oy e Ig mi uNMS5 J Figure 16 1 LM35 not connected Figure 16 4 LM35 connected to RE2 pin Figure 16 3 LM35 connected to RE1 pin Figure 16 2 LM35 placed in socket EasyPIC v7 enables you to get analog readings from the LM35 sensor using RE
27. essory board There are three groups of communication pins SPI UART and I C communication There are also single pins for PWM Interrupt Analog input Reset and Chip Select Pinout contains two power groups 5V and GND on one header and 3 3V and GND on the other 1x8 header mikro BUS mikro BUS ANIRA2 RCO PWM RST RE1 m RBO INT CS REO 5 RC7 RX SCK RC3 RC6 TX MISO RC4 RC3 SCL MOSIRC5 RCA SDA 3 3V 5 GND GND ANIRA3 RC1 PWM RST RE2 m RB1 INT CS RAS J RC7IRX SCKIRC3 RC6 TX MISO RG4 RC3 SCL MOSIRC5 RC4 SDA 3 3V REM GND GND gt bam D O UW mikroBUS pinout explained AN Analog pin RST Reset pin CS SPI Chip Select line SCK SPI Clock line MISO SPI Slave Output line MOSI SPI Slave Input line 3 3V VCC 3 3V power line GND Reference Ground PWM PWM output line INT Hardware Interrupt line RX UART Receive line TX UART Transmit line SCL 12C Clock line SDA I2C Data line 5V VCC 5V power line GND Reference Ground DATA BUS mikro mikro VCC 3 3V BUS vccsv VCC 3 3V BUS vccsv RCO RA3 AN PWM PWM ie Nem CS RX B RX igure 9 MISO SCL Re cas SCL mIKro MOSI SDA SDA GND GND GND 2 GND schematics Integrate mikroBUS in your design mikroBUS is not made to be only a part of our development boards You can freely place mikroBUS host connectors in your fi
28. ge 5 Board contains switching power supply that creates stable voltage and current levels necessary for powering each part of the board Power supply section contains two power regulators MC34063A which generates VCC 5V and MC33269DT3 3 which creates VCC 3 3V power supply thus making the board capable of supporting both 5V and 3 3V NU microcontrollers Power supply unit can be powered in N za two different ways with USB power supply and using external adapters via adapter connector CN31 or additional screw terminals CN30 External adapter voltage levels must be in range of 9 32V DC or 7 23V AC Use jumper J6 to specify which power source you are using and jumper J5 to specify whether you are using 5V or 3 3V microcontroller Upon providing the power using either external adapter or USB power source you can turn the board on using SWITCH 1 Figure 3 1 SWITCH E ine MC33269DT3 3 w N a9 OVCC 5V E6 o J6 T M1X3 VCC SW 220uH VCC EXT E2 D1 MBRS140T3 C8 GNE o a 220pF MC34063A 220uF 35V ii R34 3K VCC BRD Y I R35 1K VCC 5VO OVCC 3 3 J5 M1X3 hz E Pu p i y ral 4 9 32V DC 7 23V AC zen onl 4 POWER SUP Figure 3 1 Dual power supply unit of EasyPIC v7 OVCC 3 3 E7 10uF VCC 5V D13 CN30 1N4007 1N4007 LD37 POWER D14 D15 CON2 1N4007 Figure 3 2 Dual power supply unit schematics page 6
29. he board and cannot be accessed via PORT headers Dedicated USB ON LED signalizes the presense of USB connection when the USB cable is inserted into the USB connector Figure 8 4 USB connection schematics jumpers are in USB disabled position VCC 3 3 LD44 lt I DATA BUS RC3 MCU PIC18FXX J 50 PIC18FXX J 53 PIC18FXX J 55 PIC18FXX58 RA2 MCU for PIC18F1XK50 PIC18LF1XK50 v EasyPIC connectivity mikroBUS sockets Easier connectivity and simple configuration are imperative in modern electronic devices Success of the USB standard comes from it s simplicity of usage and high and reliable data transfer rates As we in mikroElektronika see it Plug and Play devices with minimum settings are the future in embedded world too This is why our engineers have come up with a simple but briliant pinout with lines that most of today s accessory boards require which almost completely eliminates the need of additional hardware settings We called this new standard the mikroBUS EasyPIC v7 is the first development board in the world to support mikroBUS with two on board sockets As you can see there are no additional DIP switches or jumper selections Everything is already routed to the most appropriate pins of the microcontroller sockets mikroBUS host connector Each mikroBUS host connector consists of two 1x8 female headers containing pins that are most likely to be used in the target acc
30. ide of the board Figure 10 4 Schematic of the single I O group connected to microcontroller PORTC page 22 EasyPIC connectivity v7 ANA Ge a With enhanced connectivity as one of the key features of EasyPIC v7 we have provided four connection headers for each PORT O PORT group contains two male IDC10 2x5 headers like CN10 and CN15 on Figure 10 4 These headers are all compatible with over 70 mikroElektronika accessory boards and enable simple connection There is one more IDC10 header available on the left side of the board next to the section with displays I O PORT group also contains 1x10 connection pad like CN25 on Figure 10 4 which can be used for connecting mikroElektronika PROTO boards or custom user boards Figure 10 5 IDC10 male headers enable easy connection with mikroElektronika accessory boards Easy The logic state of all microcontroller digital inputs may be changed using push buttons Jumper J17 is available Figure 10 6 Button press for selecting which logic level jumper J17 state will be applied to corresponding MCU pin when button is pressed in any I O port group If you for example place J17 in VCC position then pressing of any push button in I O group will apply logical one to the appropriate microcontroller pin The same goes for GND If the jumper is taken out then all push buttons of the associated PORT will be disconnected from the microcontroller pin You can disable pin pro
31. is 3 8kHz but you can also use it to create sound in the range between 2kHz and 4kHz je Enabling Piezo Buzzer In order to use the on board Piezo Buzzer in your application you first have to connect the transistor driver of piezo buzzer to the appropriate microcontroller pin This is done using jumper J21 You can place the jumper in two positions thus connecting the buzzer driver to either RC2 or RE1 microcontroller pin Figure 19 2 Use jumper J12 to connect Piezo buzzer on RE1 or RC2 pin b PIEZO BUZZER PIEZO BUZZER v7 EasyPIC connectivity EasyPIC v7 contains three GND pins located in three different sections of the board which allow you to easily connect oscilloscope GND reference when you monitor or signals of on board modules signals on microcontroller pins GND is located between UART module and 4 digit 7 seg display GND is located in the cross section between DIP18 and DIP14 sockets GND is located between PORTD I O group and DIP28 socket Figure 20 1 3 oscilloscope GND pins are conveniently positioned so each part of the board can be reached with an oscilloscope probe i 3 F A i 3 ki Y LIP n gu dn i Y D Aj oe WM o EX rlw D eiim D d 9 Lm e y Lp t E Easy N Pad QD N fO z Whats Next You have now completed the journey through each and every feature of EasyPIC v7 board You got to
32. know it s modules organization supported microcontrollers programmer and debugger Now you are ready to start using your new board We are suggesting several steps which are probably the best way to begin We invite you to join thousands of users of EasyPIC brand You will find very useful projects and tutorials and can get help from a large ecosystem of users Welcome page 34 Compiler You still don t have an appropriate compiler Locate PIC compiler that suits you best on the Product DVD provided with the package DVD download eng software compilers Choose between mikroC mikroBasic and mikroPascal and download fully functional demo version so you can begin building your PIC applications Projects Once you have chosen your compiler and since you already got the board you are ready to start writing your first projects We have equipped our compilers with dozens of examples that demonstrate the use of each and every feature of the EasyPIC board and all of our accessory boards as well This makes an excellent starting point for your future projects Just load the example read well commented code and see how it works on hardware Browse through the compiler Examples path to find the following folder Development SystemsVEASYPIC v7 mikroC PRO for PIC Community If you want to find answers to your questions on many interesting topics we invite you to visit our forum at http www mikroe com forum and b
33. lace jumper Pemali OPAD l J16 in the desired position By moving input ADC INPUT M2X5 the potentiometer knob you can create voltages in range from GND to VCC v7 page 30 EasyPIC connectivity Figure 18 1 Activate SW4 7 and SW4 8 switches to connect microcontroller lC lines to Serial EEPROM In order to connect l C EEPROM to the microcontroller you must enable SW4 7 and SW4 8 switches as shown on Figure 18 1 1kQ pull up resistors necessary for I C communication are already provided on SDA and SCL lines once switches are turned on Prior to using EEPROM in your application make sure to disconnect other peripherials LEDs and additional pull up or pull down resistors from the RC3 and RC4 communication lines that could interfere with the data signals and cause data corruption EEPROM is short for Electrically Erasable Programmable Read Only Memory It is usually a secondary storage memory in devices containing data that is retained even if the device looses power supply EEPROMs come with parallel or serial interface to the master device Because of the ability to alter single bytes of data EEPROM devices are used to store personal preference and configuration data in a wide spectrum of consumer automotive telecommunication medical industrial and PC applications EasyPIC v7 supports serial EEPROM which uses I communi cation interface and has 1024 bytes of available memory Board contains so
34. n with full brightness using SW4 6 switch 2 Brightness level can be determined with PWM signal from the microcontroller allowing you to write custom backlight controling software This backlight mode is enabled with SW4 5 switch IMPORTANT In order to use PWM backlight both SW4 5 and SW4 6 switches must be enabled at the same time page 25 displays Touchpanel is a glass panel whose surface is covered with two layers of resistive material When the screen is pressed the outer layer is pushed onto the inner layer and appropriate controllers can measure that pressure and pinpoint its location This is how touchpanels can be used as an input devices EasyPIC v7 is equipped with Figure 13 1 Put Touch Panel flat cable in the connector to push it inside TOUCHPANEL CONTROLLER ee ce ee ee ke R R R R u GR Figure 13 4 Touch Panel controller and connection schematics Figure 13 2 Use a tip of your finger Figure 13 3 Now place GLCD with Touchpanel is enabled using SW3 5 SW3 6 SW3 7 and SW3 8 switches They connect READ X and READ Y lines of the touchpanel with RAO and RA1 analog inputs and DRIVEA and DRIVEB with RCO and RC1 digital outputs On microcontroller sockets Do not connect additional boards or otherwise interfere with these lines while you use touchpanel because you may corruptthe Figure 13 5 Turn on switches een results of the readings and get inacurate 5 through
35. nal PCB designs as long as you clearly mark them with mikroBUS logo and footprint specifications For more information logo artwork and PCB files visit our website http www mikroe com mikrobus ele AP 3L gum apc click mikroElektronika s portfolio of over 200 accessory boards is now enriched by an additional set of mikroBUS compatible Click Boards Almost each G i 2 T 2I T33Ar c oo r3 E x TE 90 Ww sil HE L OAR Vf Oo S Z gy 3 ug OO sur 107 Id PIO4 E PIO3 nih mum Ld Nr 20 M ie m T CACETE e hd EX 0 3 m 2e BlueTooth click month several new Click boards are released It is our intention to provide the community with as much of these boards as possible so you will be able to expand your EasyPIC v7 with additional functionality with literaly zero HT mikro bbe 2 Hea Eg kx m pAcclick ae o e 5 F GND B 2HHHHHHE PWR SEL REFERENCE GELIBIEHHB E hardware configuration Just plug and play Visit the Click boards webpage for the complete list of available boards w BSPVPOODSL00 OVW benezii VNOBMrZJMM dlIH2OMOIW Eum Aa m ema Ix 4 Dow em co pr i ama a A Hyp Wil E TII LI Eh H L1 rh Hh ph Ld Hn LL LL Mm p pi Pe 1 f bia Ta ath F Feet Li amp Je2 ut JP1 E E EHE ieee 3p4 r eer Lad TX
36. nectivity v7 page 7 C35 C36 MCLR RE3 40 RB7 MCU RAO 22 u DATA BUS SKT1 N Uu 2 UO se re o m B Q Va IN Ei Tomes RB3 100nF to fro oA nC Rar 2 whiz ne 2 for PIC16F724 727 m m E RN CCE a OA f NE MCLR RA5 ets Reou mMICT ntr S i rex ae RD IS M1X3 RAA RA4 DIP40 a ose LO E25 Rez eee RB7 MCU 5L eS ee e E Ii E Lan Reo p NI En Re o FE Eo RBI to zie RE op N a N Board contains eight DIP sockets DIP40 DIP28 DIP18A DIP18B DIP20 DIP14 Tte nenne oe mE me MIX3 wp Has Ros DIP8 and support for PICLOF MCUs With dual power supply and smart on board fara accu 14 mm now LN cd BED E mikroProg board is capable of programming over 250 microcontrollers from PICLOF E E pe PIC12F PIC16F PIC16Enh PICL8F PIC18FJ and PICL8FK families Iw eco ie EM a T rosmcu m frosmcu eH A os neeucU E Picieraxiso Picea moo om a mos m There are two DIP18 sockets for PIC microcontrollers provided on the board DIP18A a soe Ez no and DIP18B Which of these sockets you will use depends solely on the pinout of 123 Sacra E the microcontroller in use The EasyPIC v7 development system comes with the skra E PIC18F45K22 mi troller in a DIP40 package cs Jos HAE m i eee C microcontroller in a package or ee CEPS ERES ne
37. nies All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies and are only used for identification or explanation and to the owners benefit with no intent to infringe Copyright MikroElektronika 2012 All Rights Reserved EIC DUAL POWER SUPPLY Ed E IN CIRCUIT EEI 5V DEBUGGER If you want to learn more about our products please visit our website at www mikroe com If you are experiencing some problems with any of our products or just need additional information please place your ticket at www mikroe com esupport If you have any questions comments or business proposals do not hesitate to contact us at office mikroe com EasyPIC v7 User Manual ver 1 00 100000 7018859 0
38. nload eng software development tools universal mikroprog mikroprog_suite_for_pic_v220 zip After downloading extract the package and double click the executable setup file to start installation Oscillator EC osc SL 4xPLLE Oscillator thigh power SN vo SEN nable bit Hz Primary Clock Enable Bit SXPLLis under so ftware PUNAS Lo ese are Control PUEN ls P p Fail safe cuk RINarY Clodi always enabled enabled NG Data EEPROM INT Ext tor Disabled 7 Ede 00000 007FF Switch over Disab x Code 00800 0 1FFF e rer EE v Code 02000 03FFF brown Out Voltage sy gt Code 040005 J rown Wis 5 e HEX File Opt Out Detect Hw Enabled EE Options Power Up Timer lE o0 sable all pepe oad Wa ee E n lei d save tchdog Postscale 1 3375 I Configuration Bits E MM C A F Watchdog Timer wor WDT enabled in hardware SWDTEN bit is v en d F Code 00000 007FF A T MCLR Enable Bit MOLR Enabled RES Disab v M Code 00800 01FFF CCP2 B Output MUX bit p25 P Code 0 V Load Save DATA I sacs T3CMX T3CKLis on RCO r ooi HE Intner fact Ctartiin Wenner casui nant dalanna ip CODE ID Locations FF FF FF FF FF FF FF FF q g F Code 00000 007FF Device Status Idle Type Options
39. nput pins Some of the most important parameters of A D converters are conversion time and resolution Conversion time determines how fast can an analog voltage be represented in form of a digital number This is an important parameter if you need fast data acquisition The other parameter is resolution Resolution represents the number of discrete steps that supported voltage range can be divided into It determines the sensitivity of the A D converter Resolution is represented in maximum number of bits that resulting number occupies Most PIC microcontrollers have 10 bit resolution meaning that maximum value of conversion can be represented with 10 bits which converted to integer is 219 1024 This means that supported voltage range for example from O 5V can be devided into 1024 discrete steps of about 4 88mV EasyPIC v7 provides an interface in form of two potentiometers for simulating analog input voltages that can be routed to any of the 10 supported analog input pins ADC INPUT an i an E Figure 17 1 use J15 and J16 jumpers to connect analog input lines with potentiometers P1 and P2 m OVCC MCU T l In order to connect the output of the potentiometer P1 to RAO RA1 RAe2 p2 RA3 or RA5 analog microcontroller inputs 10K you have to place the jumper J15 in the desired position If you want to connect potentiometer P2 to any of the RBO RB4 DATA BUS m OVCC MCU Figure 17 2 analog microcontroller inputs p
40. ontrollers in DIP18A DIP18B DIP28 and DIP40 packages use socket X1 OSC1 for quartz crystal If you want to use microcontrollers in DIP8 DIP14 and DIP20 packages it is necessary to put quartz crystal into socket X2 OSC2 The value of the quartz crystal depends on the maximum clock frequency allowed and your application and you can always exchange the default 8MHz crystal with another one Easy On board programmer What is mikroProg 073 fo n era e e mikroProg is a fast USB 2 0 programmer with mikroICD hardware In Circuit Debugger Smart engineering allows mikroProg to support all PIC10 PIC12 PIC16 PIC18 devices in a single programmer It supports over 250 microcontrollers from Microchip Outstanding N MUSS programmer debugger SB 2 H performance and easy operation are among it s top features How do I start a eat a In order to start using mikroProg and program your microcontroller Bea SOCKET you just have to follow two simple steps l og SELECTION COMPILERS wi p 1 Install the necessary software j SUPPORTED Ig bd D Install USB drivers pr MCLE PIN Install mikroProg Suite for PIC software i mrs 2 Power up the board and you are ready to go Plug in the programmer USB cable MCLR pin Programing MCLR pin LINK LED should light up selection lines selection function O Before using the programmer Jumpers
41. ored 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 TRADEMARKS The MikroElektronika name and logo the MikroElektronika logo mikroC mikroBasic mikroPascal mikroProg EasyPIC EasyPIC PRO mikroBus and Click boards are trademarks of MikroElektronika All other trademarks mentioned herein are property of their respective compa
42. priate programmer drivers and mikroProg Suite for PIC programming software as described on pages 12 and 13 page 14 How do use the debugger When you build your project for debugging and program the microcontroller with this HEX file you can start the debugger using F9 command Compiler will change layout to debugging view and a blue line will mark where code execution is currently paused Use debugging toolbar in the Watch Window to guide the program execution and stop anytime Add the desired variables to Watch Window and monitor their values Complete guide to using mikrolCD with your compiler is provided with the EasyPIC v7 package TD esaet PRO foc PIC 5000 CAUsenPubliciDocurents inai Hle Edt Wie Projet fuel Hum Jocks Heip Dr ps a8 b jud uu cab Hey Ay i Uh B j Cage 5 75 Jat direction Es be pubput 80 direction Eo bs output E PORTA foot Turn OFF LELE of PORTA Turm OFF LEOs on PORTS FORIG GUD Turn OFF LEDs cn POATE i s POD Gad Turn OFF LED an PORTD i second delay PORTA DxFF Turm GF LEDs om PORTA LEDs oh PCHIU EORIC Gaff Turn ON LES an PORTC Turr ON LEDs on PORTO 1 second delay RIS OFF ff IA ON Endless lose b B P B mW o D ir a 3 i E TH A Messages E Quack Converter 2 Erro o rarrans rnt une Herzsse Fin Message Text m Avalabde BLA 572 riral Analai AOH BRE yiri us Al Ses Prepra
43. rivers for different operating systems Depending on which operating system you use choose adequate folder and open it Vista 32bit Win Vista 54bit Win Win 98 2008 32 bit 2008 64 bit Windows 7 32 bit Windows 7 64 bit Adobe installing usb dri Win XP 2003 Win 2000 XP 2003 32 bit 64 bit vers pdt In the opened folder you should be able to locate the driver setup file Double click on setup file to begin installation of the programmer drivers USBISPR G Vista wo EXE page 12 Installing programmer drivers V4 e Z mikroElektronika USB18F Device x64 Vista Platform Installer mikroElektronika USBIBE Device Dr VER DINIIN RENTE ii Welcome to the USB18F Device ey x64 Vista Platform Installer SS This wizard will walk you through updating the drivers merei Eke kunai ee a agreement use the scroll bar or press the Page Down key mikroElektronika Associates License Statement and Limited Waranty IMPORTANT READ CAREFULLY This license statement and limited warranty constitute a legal License Agreement between you either as an individual or a single entity and mikroElektronika mikroElektronika Associates for software product Software identified above including any software media and accompanying ondine or printed documentation C do not accept this EULA To continue click Next lt Back Cre Step 2 Accept EU
44. rowse through more than 150 thousand posts You are likely to find just the right information for you On the other hand if you want to download free projects and libraries or share your own code please visit the Libstock website With user profiles you can get to know other programmers and subscribe to receive notifications on their code http www libstock com mikrot PRO for PIC rTaPASCRL PRO Tor PIC mikraBASIC PRO Tor PIC PRODUCT DVD COMPILERS EXAMPLES SCHEMATICS DRIVERS MANUALS www mikroe com S COMPILERS BOOKS e e Support We all know how important it is that we can rely on someone in moments when we are stuck with our projects facing a deadline or when we just want to ask a simple basic question thats pulling us back for a while We do understand how important this is to people and therefore our Support Department is one of the pillars upon which our company is based MikroElektronika offers Free Tech Support to the end of product lifetime so if something goes wrong we are ready and willing to help http www mikroe com esupport EasyPIC connectivity Q 9le on prod v DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty Therefore this manual is to be treated as any other copyright material No part of this manual including product and software described herein must be reproduced st
45. scillators page 8 EasyPIC connectivity Figure 4 3 Place both ends of microcontroller on the socket so the pins are aligned correctly Before you plug the microcontroller into the appropriate socket make sure that the power supply is turned off Images above show how to correctly plug a microcontroller First make sure that a half circular cut Figure 4 4 with both fingers evenly distribute the force and press the chip into the socket in the microcontroller DIP packaging maches the cut in the DIP socket Place one end of the microcontroller into the socket as shown in Figure 4 3 Then put the microcontroller slowly down until all the pins Figure 4 5 Properly placed microcontroller will have equally leveled pins match the socket as shown in Figure 4 4 Check again if everything is placed correctly and press the microcontroller until it is completely plugged into the socket as shown in Figure 4 5 1 o 4 0 OSC 2 4 0 OSC e rm m RAG x ti 2 i TEN die EH re i i gt 4 KI i l Figure 4 6 RA6 and RA7 as l O pins when using internal oscillator Figure 4 7 RA6 and RA7 connected to X1 oscillator Figure 4 8 RA4 and RAS as I O pins when using internal oscillator Figure 4 9 RA4 and RA5 connected to X1 oscillator PIC microcontrollers normally use a quartz crystal for the purpose of providing clock frequency The asyPIC v7 provides two sockets for quartz crystal Microc
46. tection 220ohm resistors by placing jumper J24 which will connect your push buttons directly to VCC or GND Be aware that doing so you may accidentally damage MCU in case of wrong usage BUTTON PRESS LEVEL In the far upper right section of the board there is a RESET button which can be used to manually reset the microcontroller This button is directly connected to the MCLR pin LED Light Emitting E gt Diode is a highly RL efficient electronic ANDRES light source When connecting LEDS it is neccessary to place SMDresistor a current limiting limiting current resistor in series through the LED so that LEDs are provided with the current value specified by the manufacturer A common LED diode voltage is approximately 2 5V while the current varies from 0 2mA to 20mA depending on the type of the LED The EasyPIC v7 board uses low current LEDs with typical current consumption of 0 2mA or 0 3mA depending of VCC voltage selection Board contains 36 LEDs which can be used for visual indication of the logic state on PORT pins An active LED indicates that a logic high 1 is present on the pin In order to enable PORT LEDs it is necessary to enable the corresponding DIP switches on SW3 Figure 10 7 Microcontroller Figure 10 7 Sw3 1 through SW3 4 switches are used to enable PORT LEDs displays Liquid Crystal Displays or LCDs are cheap and popular way of representing information to the end user
47. the code or simply to see if everything is going as planed This hunt for bugs or errors in the code is called debugging There are two ways to do this one is the software simulation which enables you to simulate what is supposed to be happening on the microcontroller as your code lines are executed and the other most reliable one is monitoring the code execution on the chip itself And this latter one is called In Circuit debugging In Circuit means that it is the real deal code executes right on the target device What is mikrolCD The on board mikroProg programmer supports mikroICD highly effective tool for a Real Time debugging on hardware level The mikrolCD debugger enables you to execute your program on the host PIC microcontroller and view variable values Special Function Registers SFR RAM CODE and EEPROM memory along with the mikrolCD code execution on hardware Whether you are a beginner or a professional this powerful tool with intuitive interface and convenient set of commands will enable you to track down bugs quickly mikrolCD is one of the fastest and most reliable debugging tools on the market Supported Compilers All MikroElektronika compilers mikroC mikroBasic and mikroPascal for PIC dsPIC and PIC32 natively support mikrolCD Specialized mikroICD DLL module allows compilers to exploit the full potential of fast hardware debugging Along with compilers make sure to install the appro
48. ur segments are in operation simoutaneously This is possible because human eye has a slower reaction time than the mention changes This way you can represent numbers in decimal or hexadecimal form Eight data lines that are common for all the digits are connected to PORTD and digit select lines are connected to RAO RA3 lines on the microcontroller sockets Enabling the display To enable digit select lines for the 4 digit segment display you have to turn on SW4 1 SW4 2 SW4 3 and SW4 4 switches Digit select lines are connected to RAO RA3 pins on the microcontroller sockets while data lines are connected to RDO RD8 pins For proper operation of the display make sure that you do not place additional boards on mentioned lines which can interfere with logic levels used in your application C35C36 Figure 14 1 Turn on switches 1 through 4 on SW4 to enable 4 digit 7 seg display DIS3 7 SEG DISP DIS2 7 SEG DISP DIS1 7 SEG DISP zr DISO 7 SEG DISP R81 R88 SEG SEGA oh reso R30 SE 8 R31 SE Q3 BC846 Q2 BC846 Q1 BC846 K DATA BUS DIS1 DISO Figure 14 2 4 digit 7 segment display schematics page 27 D DS1820 is a digital tempera ture sensor that uses 1 wire interface for it s operation It is capable of measuring temperatures within the range of 55 to 128 C and provides 0
49. y that it s the most famous PIC development system in the world We asked ourselves what we can do to make such a great board even greater And we made some brilliant changes We focused all of our creativity and knowledge into making a revolutionary new design unlike any previous version of the board We now present you with the new version 7 that brings so much more and we hope that you will be thrilled with your new board just as we are EasyPIC development Team Four Connectors for each port Everything is already here 3 3V and 5V power supply For easier connections Amazing connectivity mikroProg on board Dual Power Supply mikroBUS support EasyPIC v7 is all about Powerful on board mikroProg EasyPIC v7 is among few Just plug in your Click board connectivity Having four programmer and In Circuit development boards which and it s ready to work We different connectors for debugger can program support both 3 3V and 5V picked up a set of the most each port you can connect and debug over 250 microcontrollers This feature useful pins you need for accessory boards sensors and microcontrollers You will greatly increases the number of development and made a your custom electronics easier need it whether you are a supported MCUs It s like having pinout standard you will then ever before professional or a beginner two boards instead of one enjoy using DUAL POWER SUPPLY IN CIRCUIT DEBUGGER ICD F Gav l sv v7 page 4 EasyP

Download Pdf Manuals

image

Related Search

Related Contents

MathsTrainers Pro Teacher Manual    Connecting UniOP to SEW Controllers  Rencontres - Mode d`emploi {PDF}  Xerox Phaser 6125  Installation Manual - Channel Safety Systems  Arrêté d`exécution - Itinéraires Wallonie  カタログPDF - ナカシマプロペラ  MANUAL DE SERVICIO AL-1000  Egretta 総合カタログ  

Copyright © All rights reserved.
Failed to retrieve file