This action might not be possible to undo. Are you sure you want to continue?
EasyPIC™ v7 is the seventh generation of the famous EasyPIC development board. It is the product of accumulated knowledge over the past 10 years, and it’s state of the art in design, functionality and quality. It is loved by beginners and hobbyists, as well as professionals, and used in education and development by thousands. It is equipped with many on-board modules, including mikroProg™ fast programmer with mikroICD™ (In-Circuit Debugger) support.
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 EasyPIC™ 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
Table of contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . It's good to know . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
mikroBUS sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input/Output Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Dual power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LCD 2x16 characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . GLCD 128x64px . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22 23 24 25
Supported microcontrollers . . . . . . . . . . . . . . . . . . . . . . . .
Touchpanel controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 digit 7-seg display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
On-board programmer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing programmer drivers . . . . . . . . . . . . . . . . . . . . . . Programming software . . . . . . . . . . . . . . . . . . . . . . . . . . . . mikroICD™ - In Circuit Debugger . . . . . . . . . . . . . . . . . . .
DS1820 - Digital Temperature Sensor . . . . . . . . . . . . . . LM35 - Analog Temperature Sensor . . . . . . . . . . . . . . . . ADC inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I2C EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Piezo Buzzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10 12 13 14
26 27 28 29 30 31
UART via RS-232 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UART via USB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . USB connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Additional GNDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
16 17 18
What’s Next? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
We may say that it’s the most famous PIC development system in the world. Dual Power Supply EasyPIC v7 is among few development boards which support both 3. And we made some brilliant changes. enthusiasts and professionals. unlike any previous version of the board. This feature greatly increases the number of supported MCUs. hobbyists.3V and 5V microcontrollers. and we hope that you will be thrilled with your new board. We now present you with the new version 7 that brings so much more. Many of us made our first steps in embedded world with EasyPIC™. We asked ourselves what we can do to make such a great board even greater.3V and 5V power supply For easier connections Amazing connectivity EasyPIC v7 is all about connectivity. EasyPIC™ development Team Four Connectors for each port Everything is already here 3. page 4 . We picked up a set of the most useful pins you need for development and made a pinout standard you will enjoy using. just as we are. We focused all of our creativity and knowledge into making a revolutionary new design. It’s like having two boards instead of one! mikroBUS support Just plug in your mikroBUS board. You will need it. sensors and your custom electronics easier then ever before. mikroProg on board Powerful on-board mikroProg programmer and In-Circuit debugger can program and debug over 250 microcontrollers. you can connect accessory boards. Today it has thousands of users: students. and it’s ready to work. It’s used in many schools and other educational intitutions across the globe. whether you are a professional or a beginner.introruction Introduction EasyPIC™ is an old friend. Its been with us for six generations. Having four different connectors for each port.
PIC18F45K22 is the new default microcontoller! Until now.Comes with examples for mikroC. Digital-To-Analog Converter (DAC).Great choice for both beginners and professionals .47 x 8. Now.Enough RAM and Flash . 30 Analog Input pins (AD). . EasyPIC™ development boards were equipped with PIC16® as the default chip. 3896 bytes of linear data memory. 64K bytes of linear program memory.981 lbs) Package contains 1 Damage resistant protective box 2 EasyPIC™ v7 board in antistatic bag 3 USB cable 4 User Manuals and Board schematics 5 DVD with examples and documentation page 5 introduction It's good to know .8V to 5V. It’s loaded with great modules: 36 General purpose I/O pins. and support for a wide range of power supply from 1. three 8-bit timers and four 16-bit timers. support for Capacitive Touch Sensing using Charge Time Measurement Unit (CTMU). mikroBasic and mikroPascal compilers System Specification power supply 7–23V AC or 9–32V DC or via USB cable (5V DC) power consumption ~85mA when all peripheral modules are disconnected board dimensions 266 x 220mm (10. I2C. It also has pair of each: SPI.More power than ever before .Rich with modules . PIC18F45K22 is the new default chip of EasyPIC v7! It has 16 MIPS operation. CCP and Comparator modules. for the first time we are giving you more power than ever before.66 inch) weight ~445g (0.
you can turn the board on using SWITCH 1 (Figure 3-1). External adapter voltage levels must be in range of 9-32V DC and 7-23V AC. 1 REG1 GND VOUT SWITCH1 VCC-5V E4 1 2 3 100uF VCC-5V C14 100nF 3 power supply Figure 3-1: Dual power supply unit of EasyPIC v7 VCC-BRD VCC-5V VCC-3. Use jumper J6 to specify which power source you are using. Upon providing the power using either external adapter.3 J5 M1X3 VCC-USB J6 M1X3 VCC-SW E2 100uF L2 220uH D1 MBRS140T3 C8 220pF 1 2 3 4 U3 SWC SWE CT GND MC34063A DRVC IPK VIN CMPR 8 7 6 5 R65 0. and MC33269DT3.Dual power supply Board contains switching power supply that creates stable voltage and current levels necessary for powering each part of the board. which generates VCC-5V.22 VCC-EXT VCC-SW R34 3K E1 330uF/35V D13 D12 1N4007 D14 CON2 CON2 VCC-5V CN31 CN30 LD37 POWER + 1N4007 D15 - 1N4007 1N4007 R66 2K2 R35 1K Figure 3-2: Dual power supply unit schematics page 6 . or USB power source. and using external adapters via adapter connector (CN31) or additional screw terminals (CN30). Power supply section contains two power regulators: MC34063A.3V microcontroller.3V microcontrollers. and jumper J5 to specify whether you are using 5V or 3. Power supply unit can be powered in two different ways: with USB power supply. thus making the board capable of supporting both 5V and 3.3 E7 10uF VIN MC33269DT3.3V power supply.3 VCC-BRD E3 330uF/6V 2 VCC-3.3 which creates VCC-3.
Smart engineering of EasyPIC v7 development board allowed us to support both 3. Using adapter Set J6 jumper to EXT position To power the board via adapter connector. You can then plug in the adapter cable as shown on images 3 and 4 . 5 6 page 7 power supply How to power the board? . and turn the power switch ON. depending on which microcontroller you are using. Power supply: via DC connector or screw terminals (7V to 23V AC or 9V to 32V DC). place jumper J6 in EXT position. depending on which microcontroller you are using. and place jumper J5 in 5V or 3. place jumper J6 in EXT position. and turn the power switch ON.3V position.3V and 5V microcontrollers on a single board. and place jumper J5 in 5V or 3. and turn the power switch ON. which is more then 250 devices. or via USB cable (5V DC) Power consumption: up to 600mA (depending on how many on-board modules are currently active) 1.3V position. You can then plug in the USB cable as shown on images 1 and 2 . With laboratory power supply Set J6 jumper to EXT position To power the board using screw terminals. place jumper J6 in USB position. depending on which microcontroller you are using.3V position. You can then plug in the adapter cable as shown on images 5 and 6 . 3 4 3. 1 2 2. With USB cable Set J6 jumper to USB position To power the board with USB cable. and place jumper J5 in 5V or 3.
PIC18F25J10 PIC18F2XJ50.8V-2. and VCAP jumpers RA2 RA3 RA4 MCLR-RA5 RB0 RB1 RB2 RB3 1 2 3 4 5 6 7 8 9 DIP SKT 18A VCC-MCU 18 17 16 15 14 13 12 11 10 RA1 RA0 RA7-MCU RA6-MCU VCC-MCU RB7-MCU RB6-MCU RB5 RB4 8 VCC-MCU J13 MCLR-RA3 C12 100nF VCC-MCU RA7 2 RA2 RA7-MCU 3 RA1-MCU 4 C39 100nF 7 RA6 6 RA6-MCU 5 RA0-MCU M2X3 X1 DIP SKT 8 8MHz SYS 10F20X 10F22X C6 22pF C7 22pF J22 VCAP position when using PIC16F724/16F727 J17 VCAP position for PIC18F44J10 and PIC18F45J10 J10 VCAP for PIC18F24J10. DIP14. Here is list of devices that require jumpers placed in VCAP position: (see figure 4-1) RC1 RC2 RC3-MCU VCC-MCU RA5-MCU RA4-MCU MCLR-RA3 8 C40 100nF 7 6 5 RA0-MCU RA1-MCU RA2 DIP SKT 28 SKT3 Figure 4-1: Schematics of on-board DIP sockets. PIC18F45J10 J10 M1X3 RA4 RA4-DIP28 E13 10uF for PIC18F24J10. PIC16F726 If you do not place VCAP jumper for the MCUs that need it. The EasyPIC v7 development system comes with the PIC18F45K22 microcontroller in a DIP40 package. DIP18B. PIC16Enh.Supported microcontrollers supported MCUs Board contains eight DIP sockets: DIP40. PIC18FJ and PIC18FK families.3V and 5V voltages. With dual power supply and smart on-board mikroProg. DIP8 and support for PIC10F MCUs. In order for those devices to have a stable operation of the core. manufacturer recommends that decoupling capacitive filters should be provided. those microcontrollers have power regulators. DIP20.5V voltage range. PIC18F. which adjust the core voltage levels. EasyPIC v7 board provides jumpers which are used for this purpose.DIP18A and DIP18B. Internally. C6 RA7 RA7-MCU M2X3 X1 8MHz SYS J13 RA6 RA6-MCU RA5 J14 RA5-MCU M2X3 X2 8MHz SEC RA4 RA4-MCU IMPORTANT: C7 22pF C22 22pF C21 22pF Figure 4-2: crystal oscillators 22pF RA5 RA5-MCU J14 RA4 RA4-MCU page 8 M2X3 X2 8MHz SEC . DIP28. PIC18F25J10 PIC18F2XJ50. PIC12F. you might experience some instabilities in program execution. PIC18F2XJ11 VCC-MCU 20 19 18 17 16 15 14 13 12 11 RA0-MCU RA1-MCU RA2-MCU RC0 RC1 RC2 RB4 RB5 RB6 C9 100nF C13 100nF J23 M1X3 RA5 RA5-DIP28 C37 100nF C38 100nF MCLR-RE3 RA0 RA1 RA2 RA3 RA4-DIP28 RA5-DIP28 VCC-MCU RA5-DIP28 RA7-MCU RA6-MCU RC0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 DIP SKT 40 SKT2 RB7-MCU RB6-MCU RB5 RB4 RB3 RB2 RB1 RB0 VCC-MCU RC7 RC6 RC5-MCU RC4-MCU for PIC16F722/723/726 J20 M1X2 VCC-MCU RA5-MCU RA4-MCU MCLR-RA3 RC5 RC4 RC3 1 2 3 4 5 6 7 DIP SKT 14 SKT7 1 2 3 4 DIP SKT 8 SKT8 1 VCC-MCU VCC-MCU 14 13 12 11 10 9 8 RA0-MCU RA1-MCU RA2 RC0 RC1 RC2 C42 100nF for PIC18F2331/2431 20 19 18 17 16 15 C10 100nF VCAP jumpers explained Some PIC16F. There are two DIP18 sockets for PIC microcontrollers provided on the board . PIC16F723. PIC18F2XJ11 J23 VCAP for PIC16F722. and connected between specific microcontroller pins designated with VCAP and GND. PIC18FK and all PIC18FJ microcontrollers have cores that work on 1. in order to route VCC power line to RA5 pin (Figure 4-1) J22 M1X3 RA5 RA5-DIP40 C36 100nF MCLR-RE3 RA0 RA1 RA2 RA3 RA4 RA4-DIP40 E11 10uF RA4-DIP40 RA5-DIP40 RE0 RE1 RE2 VCC-MCU RA7-MCU RA6-MCU RC0 RC1 RC2 RC3-MCU RD0 RD1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 DATA BUS SKT1 40 39 38 VCC-MCU SKT4 RB7-MCU RB6-MCU RB5 RB4 RB3 RB2 RB1 RB0 VCC-MCU RD7 RD6 RD5 RD4 RC7 RC6 RC5-MCU RC4-MCU RD3 RD2 VCC-MCU RA5-MCU RA4-MCU MCLR-RA3 RC5 RC4 RC3 RC6 RC7 RB7 28 27 26 25 24 23 22 21 VCC-MCU C35 100nF RA0 RA1 RA4 MCLR-RA5 RA2 RA3 RB0 RB1 1 2 3 4 5 6 7 8 9 DIP SKT 18B SKT5 1 2 3 4 5 6 7 8 9 10 DIP SKT 20 SKT6 VCC-MCU VCC-MCU 18 17 16 15 14 13 12 11 10 RB3 RB2 RA7-MCU RA6-MCU VCC-MCU RB7-MCU RB6-MCU RB5 RB4 for PIC16F724/727 J7 M1X3 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 C33 100nF C11 100nF for PIC18F44J10. DIP18A. and peripherals that work with 3. Which of these sockets you will use depends solely on the pinout of the microcontroller in use. board is capable of programming over 250 microcontrollers from PIC10F. IMPORTANT: When using PIC18F2331 or PIC18F2431 microcontollers it is necessary to place J20 jumper. PIC16F.
IMPORTANT: Microcontrollers which are plugged into socket 10F use their own internal oscillator and are not connected to any of the mentioned quartz-crystal sockets. and your application. Using crystal oscillators 1 2 3 4 Figure 4-6: RA6 and RA7 as I/O pins (when using internal oscillator) Figure 4-7: RA6 and RA7 connected to X1 oscillator Figure 4-8: RA4 and RA5 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. IMPORTANT: Only one microcontroller may be plugged into the development board at the same time. Images above show how to correctly plug a microcontroller. First make sure that a half circular cut in the microcontroller DIP packaging maches the cut in the DIP socket. . The EasyPIC v7 provides two sockets for quartz-crystal. Microcontrollers in DIP18A. page 9 supported MCUs Figure 4-3: Place both ends of microcontroller on the socket so the pins are aligned correctly Figure 4-4: with both fingers. Figure 4-5: Properly placed microcontroller will have equally leveled pins. If you want to use microcontrollers in DIP8. The value of the quartzcrystal depends on the maximum clock frequency allowed. DIP28 and DIP40 packages use socket X1 (OSC1) for quartz-crystal. evenly distribute the force and press the chip into the socket. and you can always exchange the default 8MHz crystal with another one. make sure that the power supply is turned off.How to properly place your microcontroller into the DIP socket? 1 2 3 Before you plug the microcontroller into the appropriate socket. Then put the microcontroller slowly down until all the pins thereof match the socket as shown in Figure 4-4. Place one end of the microcontroller into the socket as shown in Figure 4-3. 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. it is necessary to put quartz crystal into socket X2 (OSC2). DIP14 and DIP20 packages. DIP18B.
you want to make sure that programmer jumpers are placed in proper positions for your microcontroller socket. PIC12. as shown below. Outstanding performance and easy operation are among it's top features. Why so many LEDs? Three LEDs indicate specific programmer operation. you just have to follow two simple steps: 1. If you are using the default PIC18F45K22. Make sure to place jumpers in the proper position for your socket. Install the necessary software . DIP28 DIP18A. Smart engineering allows mikroProg to support all PIC10.On-board programmer What is mikroProg? mikroProg™ is a fast USB 2. DIP18B DIP20. and program your microcontroller.0 programmer with mikroICD hardware In-Circuit Debugger.LINK LED should light up. Active LED lights up when programmer is active. Link LED lights up when USB link is established with your PC. DIP28. DIP8 MCLR as MCLR MCLR as I/O page 10 .Plug in the programmer USB cable . Data is on when data is being transfered between the programmer and PC software (compiler or mikroProg Suite). jumpers are supposed to be set for DIP40. so that MCLR line is routed to the correct socket for your microcontroller. Power up the board. programming How do I start? In order to start using mikroProg. PIC18. and you are ready to go. make sure to set MCLR pin jumpers J1 and J2. or acts just as I/O pin.Install mikroProg Suite™ for PIC software 2. . devices in a single programmer! It supports over 250 microcontrollers from Microchip®. MCLR pin function Using jumper J19 you can specify whether RST pin of your microcontroller is connected to the onboard reset circuit.Install USB drivers . PIC16. DIP14. Programing lines selection Jumpers J8 and J9 are used to select PGC and PGD programming lines for your microcontroller. MCLR pin selection Before using the programmer. DIP18A. DIP18B DIP20 DIP14 DIP8 DIP40. NOTE: If you use other than the default PIC18F45K22 MCU. DIP40.
But you still have to set the appropriate jumpers.3 VCC-5V VCC-MCU VCC-BRD I/O VCC-USB M2X3 J2 L4 FERRITE CN2 VCC 1 D. as described in the previous page.3 VCC-3. Insert your ICD programmer cable into connector CN28. and use other programming tools with the board.2 D+ 3 MCU-VPP MCU-PGC MCU-PGD C19 100nF GND 4 USB BOARD-VPP BOARD-PGC BOARD-PGD MCU-PGC BOARD-PGC MCU-VPP M2X3 J8 RB6-MCU RA1-MUX RB6 RA1 MCLR-RE3 MCLR-RA5 MCLR-RA3 J1 LD38 LINK LD39 ACTIVE LD40 DATA RE3 RA5 RA3 R67 2K2 R68 4K7 R69 6K8 M2X3 M2X4 J9 BOARD-PGD M2X3 M2X4 DATA BUS VCC-BRD R7 10K T65 RESET C41 100nF R6 1K J19 M1X3 #RST #RST BOARD-VPP I/O CN28 MCU-PGC MCU-PGD VCC-BRD 1 2 3 4 5 6 RJ12 ICD VCC-BRD C18 100nF MCU-VPP Figure 5-1: mikroProg block schematics Programming with ICD2/ICD3 EasyPIC v7 is equipped with RJ-12 connector compatibile with Microchip® ICD2® and ICD3® external programmers. 1 2 page 11 programming MCU-PGD RB7-MCU RA0-MUX RB7 RA0 . as shown in images 1 and 2 . This way you can override the on-board mikroProg™ programmer and In-Circuit Debugger.VCC-3.
Installing programmer drivers On-board mikroProg™ requires drivers in order to work. In the opened folder you should be able to locate the driver setup file. please extract files from the ZIP archive. Click on Finish button to end installation process.Accept EULA Carefully read End User License Agreement. click Next to procede.Installing drivers Drivers are installed automatically in a matter of seconds.Finish installation You will be informed if the dirvers are installed correctly. page 12 .Start Installation Welcome screen of the installation. Just click on Next button to procede. Step 4 .zip programming When you locate the drivers. ai lab le on Product D! DV Av Step 1 . Folder with extracted files contains folders with drivers for different operating systems. Step 3 . If you agree with it. Drivers are located on the Product DVD that you received with the EasyPIC v7 package: DVD://download/eng/software/ development-tools/universal/ mikroprog/mikroprog_for_pic_ drivers_v200. Step 2 . Depending on which operating system you use. Double click on setup file to begin installation of the programmer drivers. choose adequate folder and open it.
Software has intuitive interface and SingleClick™ programming technology. D! Step 1 .Accept EULA and continue Step 3 . first locate the installation archive on the Product DVD: DVD://download/eng/software/development-tools/universal/ mikroprog/mikroprog_suite_for_pic_v215.Programming software mikroProg Suite™ for PIC® On-board mikroProg™ programmer requires special programming software called mikroProg Suite™ for PIC®.6 simple steps lab le on Produc After downloading.Start Installation Step 2 .Choose destination folder Step 5 . PIC12. PIC16.zip ai V tD Installation wizard .Installation in progress Step 6 . including PIC10. PIC24 and PIC32. to start installation. To begin. extract the package and double click the executable setup file.Finish Installation page 13 programming Av . dsPIC30/33. This software is used for programming all of Microchip® microcontroller families.Install for All users Step 4 . PIC18.
mikroICD™ is one of the fastest. which enables you to simulate what is supposed to be happening on the microcontroller as your code lines are executed. most reliable one. and a blue line will mark where code execution is currently paused. or errors in the code is called debugging. This hunt for bugs. Compiler will change layout to debugging view. CODE and EEPROM memory along with the mikroICD™ code execution on hardware. Add the desired variables to Watch Window and monitor their values. mikroICD in-circuit de bugger ™ programming Figure 5-2: mikroICD™ manual explains debugging thoroughly What is mikroICD™? The on-board mikroProg™ programmer supports mikroICD™ a highly effective tool for a Real-Time debugging on hardware level. Complete guide to using mikroICD™ with your compiler is provided with the EasyPIC v7 package. and the other. Use debugging toolbar in the Watch Window to guide the program execution. There are two ways to do this: one is the software simulation.code executes right on the target device. The mikroICD™ debugger enables you to execute your program on the host PIC microcontroller and view variable values. Supported Compilers All MikroElektronika compilers. "In-Circuit" means that it is the real deal .mikroICD™ . make sure to install the appropriate programmer drivers and mikroProg Suite for PIC programming software. this powerful tool. with intuitive interface and convenient set of commands will enable you to track down bugs quickly. And this latter one is called In-Circuit debugging. and most reliable debugging tools on the market. Whether you are a beginner. Along with compilers. or a professional. dsPIC and PIC32 natively support mikroICD™. mikroC. and program the microcontroller with this HEX file. Special Function Registers (SFR). as described on pages 12 and 13. with SFR registers in Watch Window .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 the code. and stop anytime. How do I use the debugger? When you build your project for debugging. RAM. is monitoring the code execution on the chip itself. or simply to see if everything is going as planed. you can start the debugger using [F9] command. mikroBasic and mikroPascal for PIC. page 14 Figure 5-3: mikroC PRO for PIC compiler in debugging view. Specialized mikroICD DLL module allows compilers to exploit the full potential of fast hardware debugging.
then halts. Shows/Hides window with all breakpoints Delete’s selected breakpoints Opens window with available interrupts (doesnt work in mikroICD mode) page 15 Step Over [F8] Step Out Run To Cursor Toggle Breakpoint Show/Hide breakpoints Clears breakpoints Jump to interrupt [Ctrl + F8] [F4] [F5] [Shift+F4] [Shift+Ctrl+F5] [F2] programming . the debugger will not step into it. Executes all remaining program lines within the subroutine. Stops Debugger. Executes the current program line. If the executed program line calls another routine. Run/Pause Debugger.mikroICD™ commands Here is a short overview of which debugging commands are supported in mikroElektronika compilers. the debugger steps into the routine and halts after executing the first instruction within it. then halts. The whole routine will be executed and the debugger halts at the first instruction following the call. Executes the program until reaching the cursor position. Executes the current program line. The debugger halts immediately upon exiting the subroutine. You can see what each command does. It will give you some general picture of what your debugger can do. Toggle breakpoints option sets new breakpoints or removes those already set at the current cursor position. If the executed program line calls another routine. Toolbar Icon Command Name Start Debugger Run/Pause Debugger Stop Debugger Step Into Shortcut [F9] [F6] [Ctrl + F2] [F7] Description Starts Debugger. and what are their shortcuts when you are in debugging mode.
if you want to enable RS-232 connection on UART1 module of the default PIC18F45K22 chip. communication SUB-D 9p CN37 VCC-MCU C29 100nF 1 6 2 7 3 8 4 9 5 C28 100nF C30 100nF U4 1 2 3 4 5 6 7 C31 100nF 8 C1+ V+ C1 C2+ C2 VT2 OUT R2 IN VCC GND T1 OUT R1 IN R1 OUT T1 IN T2 IN R2 OUT 16 15 14 13 12 11 10 9 VCC-MCU R32 100K SW1 RX-232 TX-232 VCC-MCU E8 10uF RX-232 RX-FTDI J3 RX M1X3 1 2 3 4 5 6 7 8 16 15 14 13 12 11 10 9 RC7 RB2 RB1 RB4 RA3 RB5 RC5 RD7 TX-232 TX-FTDI J4 TX M1X3 1 2 3 4 5 6 7 8 ON SW2 16 15 14 13 12 11 10 9 RC6 RB5 RB2 RB1 RA2 RB7 RC4 RD6 ON 6 9 1 5 MAX3232 Bottom view DIP SW 8 DATA BUS page 16 5 1 9 6 DIP SW 8 RS-232 Figure 6-1: RS-232 connection schematics . Both sides must be initialized with the same baudrate.UART via RS-232 Enabling RS-232 The UART (universal asynchronous receiver/transmitter) is one of the most common ways of exchanging data between the MCU and peripheral components. In order to enable this communication. and enable desired RX and TX lines via SW1 and SW2 DIP switches. you must set J3 and J4 jumpers in the RS-232 position. such as MAX3232 as shown on Figure 6-1.1 (RC6) lines. otherwise the data will not be received correctly. you should enable SW1. For example. and can be used for full-duplex communication. Since RS-232 communication voltage levels are different than microcontroller logic levels. RS-232 serial communication is performed through a 9-pin SUB-D connector and the microcontroller UART module. It is a serial protocol with separate transmit and receive lines. In order to enable RS-232 communication. it is necessary to establish a connection between RX and TX lines on SUB-D connector and the same pins on the target microcontroller using DIP switches.1 (RC7) and SW2. it is necessary to use a RS-232 Transceiver circuit.
you must first install FTDI drivers on your computer. USB connector (CN32).1 (RC7) and SW2. 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. if you want to enable USB-UART connection on UART1 module of the default PIC18F45K22 chip. you must set J3 and J4 jumpers in the USB-UART position. Still.UART via USB Enabling USB-UART Modern PC computers. Drivers can be found on Product DVD: DVD://download/eng/software/development-tools/ universal/ftdi/vcp_drivers.zip In order to enable USB-UART communication. This selection is done using DIP switches SW1 and SW2. you should enable SW1. and microcontroller UART module.1 (RC6) lines. USB-UART communication is being done through a FT232RL controller. In order to use USB-UART module on EasyPIC v7. They are nowdays replaced with USB connectors and USB controllers. certain technology enables UART communication to be done over USB connection. Controllers such as FT232RL from FTDI® convert UART signals to the appropriate USB standard. laptops and notebooks are no longer equpped with RS-232 connectors and UART controllers.2 DATA BUS RX-LED TX-LED R78 4K7 DIP SW 8 SW2 TX-232 J4 TX M1X3 1 2 3 4 5 6 7 8 ON FT232RL CBUS1 GND VCC D+ 3 GND 4 USB DSR# DCD# CTS# CBUS4 CBUS2 CBUS3 RESET# GND 3V3OUT USBDM USBDP Figure 7-1: USB-UART connection schematics TX-FTDI R79 10K DIP SW 8 C32 100nF page 17 communication lab le on Product D! DV Av . For example. ai VCC-MCU U2 SW1 RX-232 RX-FTDI J3 RX M1X3 1 2 3 4 5 6 7 8 16 15 14 13 12 11 10 9 RC7 RB2 RB1 RB4 RA3 RB5 RC5 RD7 ON RX-FTDI 1 2 3 4 TX-FTDI 5 6 7 8 16 15 14 13 12 11 10 9 RC6 RB5 RB2 RB1 RA2 RB7 RC4 RD6 9 10 11 12 13 14 TXD DTR# RTS# VCCIO RXD RI# GND NC FTDI VCC-5V VCC-5V C50 100nF LED VCC-5V E12 10uF VCC-MCU C34 100nF OSCO OSCI TEST AGND NC CBUS0 28 27 26 25 24 23 22 21 20 19 18 17 16 15 VCC-MCU VCC-MCU R8 2K2 R9 4K7 LD41 LD42 CN32 VCC 1 D. To establish this connection. and enable desired RX and TX lines via SW1 and SW2 DIP switches.
CN4 VCC-3. For PIC18Fxx(J)50. Laptop. PIC18FXX58 RA2-MCU RA2 RA1-MCU RA1-MUX RA0-MCU RA0-MUX J18 M3X3 for PIC18F1XK50. PIC18LF1XK50 LD44 USB ON R11 4K7 Figure 8-1: USB function disabled Figure 8-2: USB enabled on PORTC Figure 8-3: USB enabled on PORTA page 18 DATA BUS Figure 8-4: USB connection schematics (jumpers are in USB disabled position) .3 USB VCC 1 D. they are cut off from the rest of the board. EasyPICv7 contains USB connector (CN4) which enables microcontrollers that support USB communication to establish a connection with the target host (eg. and cannot be accessed via PORT headers. PIC18Fxx(J)55 and PIC18Fxx58 place J12 jumpers in the USB position (Figure 8-2). USB communication can be enabled on PORTA or PORTC. connectors and protocols used for communication and power supply between computers and other devices. PIC18FXX(J)55. PIC18Fxx(J)53. This is a very popular industry standard that defines cables. When communication lines are routed from the microcontroller to the USB connector using mentioned jumpers. Dedicated USB ON LED signalizes the presense of USB connection.USB connection communication USB is the acronym for Universal Serial Bus. when the USB cable is inserted into the USB connector. etc). Selection of communication lines is done using jumpers J12 or J18. PIC18FXX(J)53. PC. For PIC18(L)F1XK50 you should put J18 jumpers in the USB position (Figure 8-3).2 D+ 3 GND 4 RC3-MCU RC3 RC4-MCU RC4 RC5-MCU RC5 J12 M3X3 PIC18FXX(J)50. Enabling USB connection Depending on your target microcontroller. depending on the target microcontroller.
page 19 connectivity INT . 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 accessory board. As we in mikroElektronika see it.Analog pin RST . Reset and Chip Select.3V power line GND .PWM output line INT . Success of the USB standard comes from it’s simplicity of usage and high and reliable data transfer rates. Plug-and-Play devices with minimum settings are the future in embedded world too. Pinout contains two power groups: +5V and GND on one header and +3. there are no additional DIP switches.3V . UART and I2C communication.mikroBUS sockets Easier connectivity and simple configuration are imperative in modern electronic devices. Analog input.SPI Slave Output line MOSI .I2C Data line +5V .VCC-3.Reset pin CS .UART Transmit line SCL .SPI Chip Select line SCK . but briliant pinout with lines that most of today’s accessory boards require. Almost each month several new Click boards are released.3 RC1 RB1 RC7 R91 1K 1 2 3 4 5 6 7 8 F1X8 1 2 3 4 5 6 7 8 F1X8 1 2 3 4 5 6 7 8 F1X8 1 2 3 4 5 6 7 8 F1X8 PWM RX TX SCL SDA +5V GND 1 RC6 RC3 RC4 VCC-5V 2 RC6 RC3 RC4 VCC-5V Figure 9-1: mikroBUS connection schematics Click boards are mikroBUS compatible mikroElektronika’s portfolio of over 200 accessory boards is now enriched by an additional set of mikroBUS compatible Click Boards.3 RC0 RB0 RC7 R90 1K CN35 PWM INT RX TX SCL SDA +5V GND AN RST CS SCK MISO MOSI +3. We called this new standard the mikroBUS.Hardware Interrupt line RX . It is our intention to provide the community with as much of these boards as possible. Everything is already routed to the most appropriate pins of the microcontroller sockets.3V GND CN34 RA2 RE1 RE0 RC3 RC4 RC5 VCC-3.SPI Slave Input line +3.3V GND CN36 RA3 RE2 RA5 RC3 RC4 RC5 VCC-3.3V and GND on the other 1x8 header. Interrupt.SPI Clock line MISO .VCC-5V power line GND . so you will be able to expand your EasyPIC v7 with additional functionality with literaly zero hardware configuration. This is why our engineers have come up with a simple.Reference Ground PWM . As you can see. There are also single pins for PWM. There are three groups of communication pins: SPI. which almost completely eliminates the need of additional hardware settings. or jumper selections.I2C Clock line SDA . EasyPIC v7 is the first development board in the world to support mikroBUS with two on-board sockets.UART Receive line TX . mikroBUS pinout explained AN .Reference Ground DATA BUS CN33 AN RST CS SCK MISO MOSI +3. Just plug and play.
RC7 RC6 RC5 RC4 RC3 RC2 RC1 RC0 DATA BUS CN25 PORT C RC0 RC2 RC4 RC6 CN15 RC1 RC3 RC5 RC7 RC0 RC2 RC4 RC6 PORT C CN10 RC1 RC3 RC5 RC7 connectivity RN3 SW3 ON PC_LED SW7 UP PULL DOWN 1 2 3 4 5 6 7 8 8x4K7 VCC-BRD DIP SW 8 TRI-STATE M2X5 VCC-BRD M2X5 RC0 1 2 RC1 RC2 3 RC3 4 5 RC4 RC5 6 RC6 7 RC7 8 9 VCC-BRD 10 VCC-MCU N1X10 DIP SW 8 RN8 8x10K DATA BUS PORT C RC0 RC2 RC4 RC6 VCC-BRD RC7 RC6 RC5 RC4 RC3 RC2 RC1 RC0 RC0 T17 CN20 RC1 RC3 RC5 RC7 VCC-MCU R80 220 J24 BUTTON PRESS LEVEL T24 T23 T22 T21 T20 T19 T18 LD24 LD23 LD22 LD21 LD20 LD19 LD18 LD17 J17 RC7 RC6 RC5 RC4 RC3 RC2 RC1 M2X5 Figure 10-3: Additional PORT header on the left side of the board page 20 Figure 10-4: Schematic of the single I/O group connected to microcontroller PORTC . buttons and LEDs all in one place you want from both sides of the board. Each of those switches has three states: 1. are used to enable 4K7 pull-up or pull-down resistor on any desired port pin. and groupped together. We have also provided Figure 10-1: I/O group contains 3 PORT headers. up position connects the resistor in pull-up state to the selected pin 3. PORT buttons and PORT LEDs next to each other.Input/Output Group One of the most distinctive features of EasyPIC v7 are it’s Input/Output PORT groups. J12 and J18). They add so much to the connectivity potential of the board. Tri-state pull-up/down DIP switches Tri-state DIP switches. and some that are connected to other on-board modules are enabled via jumpers (for example USB jumpers. down position connects the Figure 10-2: Tri-state resistor in pull-down state to the DIP switch on PORTC selected PORT pin. middle position disables both pull-up and pull-down feature from the PORT pin 2. and the entire EasyPIC v7 cleaner and well organized. makes development easier. like SW7 on Figure 10-2. so you can access any pin pull up/down DIP switch. Some PORT pins are directly connected to the microcontroller. tri-state an additional PORT headers on the left side of the board. Everything is groupped together It took us a while to realize that having PORT headers.
Advanced users may.1 it is necessary to enable the through SW3. Figure 10-7: SW3. while the current varies from 0. By pressing any push button when jumper J17 is in the VCC-MCU position.2mA or 0. I/O PORT group contains two male IDC10 2x5 headers (like CN10 and CN15 on Figure 10-4).2mA to 20mA. When connecting LEDs. disable such resistor using jumper J24. we have provided four connection headers for each PORT. depending on the type of the LED. depending of VCC voltage selection. The EasyPIC v7 board uses lowcurrent LEDs with typical current consumption of 0. LEDs LED (Light-Emitting Diode) is a highly efficient electronic light source. The purpose of the protective resistor is to limit maximum current thus preventing a short circuit from occurring.Headers Buttons With enhanced connectivity as one of the key features of EasyPIC v7.3mA. Instead. or custom user boards. and enable simple connection. This button is directly connected to the MCLR pin. header on the left side of the board is not meant for placing accessory boards directly.5V.4 corresponding DIP switches switches are used to on SW3 (Figure 10-7). Figure 10-5: IDC10 male headers enable easy connection with mikroElektronika accessory boards connectivity . Jumper J17 is Figure 10-6: Use J17 jumper used to determine to specify press level of PORT the logic state to buttons. next to the section with displays. A common LED diode voltage is approximately 2. a logic one (3. NOTE: Because of it's orientation.3V or 5V) will be applied to the appropriate microcontroller pin. The logic state of all microcontroller digital inputs may be changed using push buttons. use wire jumpers or other ways to establish connection and utilize these pins. it is Microcontroller neccessary to place SMD resistor a current limiting limiting current resistor in series through the LED so that LEDs are provided with the current value specified by the manufacturer. which can be used to manually reset the microcontroller. I/O PORT group also contains 1x10 connection pad (like CN25 on Figure 10-4) which can be used for connecting mikroElektronika PROTO boards. if needed. In order to enable PORT LEDs. there is a RESET button. There is one more IDC10 header available on the left side of the board. An active LED indicates that a logic high (1) is present on the pin. Use J24 to disable be applied to the protective resistor desired microcontroller pin when pressing the appropriate push button. enable PORT LEDs page 21 Reset Button In the far upper right section of the board. Board contains 36 LEDs which can be used for visual indication of the logic state on PORT pins. These headers are all compatible with over 70 mikroElektronika accessory boards.
D0–D3 . Otherwise your display can be permanently damaged. Communication with the display module is done through CN7 display connector. 2. EasyPIC v7 provides the connector and the necessary interface for supporting 2x16 character LCDs in 4-bit mode.6 switch. This backlight mode is enabled with SW4. so lower half of the data byte interface is connected to GND. It’s always connected to GND.Display Enable line R/W . Vss Vdd Vee RS R/W E D0 D1 D2 D3 D4 D5 D6 D7 A K IMPORTANT: In order to use PWM backlight both SW4. Connector pinout explained GND and VCC . Board is fitted with uniquely designed plastic display distancer.LCD 2x16 characters Liquid Crystal Displays or LCDs are cheap and popular way of representing information to the end user of some electronic device.Register Select Signal line E . Each field is a 7x5 pixel matrix..6 switches must be enabled at the same time. D4–D7 . allowing you to write custom backlight controling software.5 switch.Connection with the backlight LED anode LED.Upper half of the data byte LED+ . LCD2X16 page 22 . It can be turned on with full brightness using SW4. which allows the LCD module to perfectly and firmly fit into place.5 and SW4. This type of display has two rows consisted of 16 character fields.Display power supply lines Vo . Figure 11-1: On-board LCD 2x16 display connector IMPORTANT: Make sure to turn off the power supply before placing LCD onto the board.Connection with the backlight LED cathode DATA BUS P4 10K VCC-MCU VCC-MCU Q11 BC846 R89 4K7 RB5 RB4 RB3 RB2 RB1 RB0 VCC-5V R10 1K LCD-GLCD BPWM SW4 ON RC2 VCC-5V R93 56 VEE RB4 GND RB5 GND GND GND GND RB0 RB1 RB2 RB3 LCD-GLCD BCK K-LCD displays GND Figure 11-2: 2x16 LCD connection schematics CN7 Standard and PWM-driven backlight We have allowed LCD backlight to be enabled in two different ways: 1.Determines whether display is in Read or Write mode. Character LCDs can be used to represent standard and custom characters in the predefined number of fields. Brightness level can be determined with PWM signal from the microcontroller.LCD contrast level from potentiometer P4 RS .Display is supported in 4-bit data mode. leaving the display in Write mode all the time.
and PWM-driven backlight with SW4.Data (High). Since PORTB is also used by 2x16 character LCD display. we have allowed GLCD backlight to be enabled in two different ways: 1. allowing you to write custom backlight controling software.Controller Chip Select lines VCC .6 switch. driven by the KS108 or similar display controller.6 switches must be enabled at the same time. images human-machine interfaces and other content. page 23 displays Standard and PWM-driven backlight . IMPORTANT: In order to use PWM backlight both SW4.Connection with the backlight LED anode LED.. which allows the GLCD module to perfectly and firmly fit into place.5 switch. 2. or GLCDs are used to display monochromatic graphical content. It can be turned on with full brightness using SW4.6 switch. Communication with the display module is done through CN6 display connector. Board is fitted with uniquely designed plastic display distancer. you cannot use both displays simoutaneously.GLCD contrast level from potentiometer P3 RS .5 and SW4.Reference ground Vo . VCC-MCU R10 1K Display connector is routed to PORTB (control lines) and PORTD (data lines) of the microcontroller sockets. You can control the display contrast using dedicated potentiometer P3.Display Enable line D0–D7 .GLCD 128x64 Graphical Liquid Crystal Displays.Connection with the backlight LED cathode VCC-5V RB0 RB1 GND Vo RB2 RB3 RB4 RD0 RD1 RD2 RD3 RD4 RD5 RD6 RD7 RB5 LCD-GLCD BCK K-GLCD CN6 GLCD 128X64 As for LCD.Display reset line Vee . Instruction (Low) selection line R/W . Full brightness display backlight can be enabled with SW4. E .Reference voltage for GLCD contrast potentiometer P3 LED+ . EasyPIC v7 provides the connector and necessary interface for supporting GLCD with resolution of 128x64 pixels.+5V display power supply GND .Determines whether display is in Read or Write mode. Brightness level can be determined with PWM signal from the microcontroller. This backlight mode is enabled with SW4.5 switch. SW4 ON Figure 12-1: GLCD 128x64 connection schematics Q11 BC846 R89 4K7 R92 20 RC2 VCC-5V DATA BUS P3 10K LCD-GLCD BPWM Connector pinout explained CS1 and CS2 . such as text.Data lines RST .
SW3. EasyPIC v7 is equipped with touchpanel controller and connector for 4-wire resistive touchpanels.5. Touchpanel is ment to be mounted onto the GLCD display. SW3. representing the touch coordinates in the form of analog voltages. This is how touchpanels can be used as an input devices.8 switches. and DRIVEA and DRIVEB with RC0 and RC1 digital outputs on microcontroller sockets. Do not connect additional boards or otherwise interfere with these lines while you use touchpanel. which can then be easily converted to X.6.7 and SW3. They connect READ-X and READ-Y lines of the touchpanel with RA0 and RA1 analog inputs. When the screen is pressed. It can very accurately register pressure at a specific point. the outer layer is pushed onto the inner layer and appropriate controllers can measure that pressure and pinpoint its location.values. because you may corrupt the results of the readings and get inacurate touch coordinates. RIGHT VCC-MCU Q14 BC856 TOP LEFT R15 10K R14 10K Q12 BC846 displays DRIVEA C25 100nF LEFT R25 100K CN29 R45 10K BOTTOM Q16 BC846 VCC-MCU R23 1K DRIVEB C26 100nF R26 100K R24 10K TOUCHPANEL CONTROLLER BOTTOM LEFT TOP RIGHT GLCD 128X64 Figure 13-4: Touch Panel controller and connection schematics Figure 13-5: Turn on switches 5 through 8 on SW3 to enable Touch panel controller page 24 .Touchpanel controller Touchpanel is a glass panel whose surface is covered with two layers of resistive material. Correctly placing the touchpanel cable into the connector 1 Figure 13-1: Put Touch Panel flat cable in the connector SW3 ON VCC-MCU BOTTOM LEFT DRIVEA DRIVEB RA0 RA1 RC0 RC1 2 Figure 13-2: Use a tip of your finger to push it inside 3 Figure 13-3: Now place GLCD with Touch panel into GLCD socket VCC-MCU Q15 BC856 R22 10K R16 1K Q13 BC846 R12 1K DATA BUS Enabling Touch panel Touchpanel is enabled using SW3.and Y.
By multiplexing data through all four segments fast enough. while data lines are connected to RD0 – RD8 pins. SW4. and digit select lines are connected to RA0–RA3 lines on the microcontroller sockets. Enabling the display To enable digit select lines for the 4-digit 7-segment display you have to turn on SW4. you create an illusion that all four segments are in operation simoutaneously. One additional LED is used for marking the decimal dot. which is used to enable the digit to which the data is currently being sent. Figure 14-1: Turn on switches 1 through 4 on SW4 to enable 4-digit 7-seg display SW4 DIS0 DIS1 DIS2 DIS3 LCD-GLCD BPWM LCD-GLCD BCK EEPROM-SCL EEPROM-SDA 1 2 3 4 5 6 7 8 16 15 14 13 12 11 10 9 RA0 RA1 RA2 RA3 RC2 VCC-5V RC3 RC4 ON DIP SW 8 cc 8 cc 8 cc 8 cc R28 10K Q4 BC846 R29 10K Q3 BC846 R30 10K Q2 BC846 R31 10K Q1 BC846 DIS3 DIS2 DIS1 DIS0 Figure 14-2: 4-digit 7-segment display schematics page 25 DATA BUS 8x470 8 displays RD0 RD1 RD2 RD3 RD4 RD5 RD6 RD7 R81-R88 SEG A SEG B SEG C SEG D SEG E SEG F SEG G SEG DP SEG E SEG D SEG C SEG DP SEG B SEG A SEG F SEG G 1 2 3 4 5 6 7 8 DIS3 7 SEG DISP e d c dp b a f g SEG E SEG D SEG C SEG DP SEG B SEG A SEG F SEG G 1 2 3 4 5 6 7 8 DIS3 7 SEG DISP e d c dp b a f g SEG E SEG D SEG C SEG DP SEG B SEG A SEG F SEG G 1 2 3 4 5 6 7 8 DIS3 7 SEG DISP e d c dp b a f g SEG E SEG D SEG C SEG DP SEG B SEG A SEG F SEG G 1 2 3 4 5 6 7 8 DIS3 7 SEG DISP e d c dp b a f g . This is possible because human eye has a slower reaction time than the mention changes.1. Digit select lines are connected to RA0 – RA3 pins on the microcontroller sockets.4 switches. SW4. Data lines are shared between segments. This way you can represent numbers in decimal or hexadecimal form.3 and SW4. make sure that you do not place additional boards on mentioned lines which can interfere with logic levels used in your application.2. Driving such a display is done using multiplexing techniques.4 digit 7-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 0 to 9 and even some letters. For proper operation of the display. Each digit has it’s unique digit select line. 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. and therefore the same segment LEDs in each digit are connected in parallel. Eight data lines that are common for all the digits are connected to PORTD.
make sure that no other device (except those in 1-wire network) uses the selected line. EasyPIC v7 provides a separate socket (TS1) for the DS1820. Multiple sensors can be connected on the same line. The selection of either of those two lines is done using J11 jumper. which enables the master device to easily identify all devices sharing the same interface. it may be permanently damaged and you might need to replace it with another one. It takes maximum of 750ms for the DS1820 to calculate temperature with 9-bit resolution.DS1820 . and provides ±0. because it may interfere with the data. The advantage of such communication is that only one microcontroller pin is used.5V power supply for stable operation. All slave devices by default have a unique ID code. Enabling DS1820 Sensor 1 2 3 4 DS1820 TOP VIEW TS1 GND 1 DQ 2 VCC 3 GND VCC-MCU R2 1K DQ VCC EasyPIC v7 enables you to establish 1-wire® communication between DS1820 and the microcontroller over RA4 or RE2 microcontroller pins.5°C accuracy for temperatures within the range of -10 to 85°C. Communication line with the microcontroller is selected with a J11 jumper. while the process itself is under the control of the master microcontroller. During the readings of the sensor. It is capable of measuring temperatures within the range of -55 to 128°C. 1-wire® serial communication enables data to be transfered over a single communication line. It requires 3V to 5. 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. modules J11 Figure 15-5: DS1820 connected to RE2 pin RE2 RA4 page 26 DATA BUS Figure 15-1: DS1820 not connected Figure 15-2: DS1820 placed in socket Figure 15-3: DS1820 connected to RE2 pin Figure 15-4: DS1820 connected to RA4 pin .Digital Temperature Sensor DS1820 is a digital temperature sensor that uses 1-wire® interface for it’s operation.
LM35 . The selection of either of those two lines is done using J25 jumper.Analog Temperature Sensor The LM35 is a low-cost precision integrated-circuit temperature sensor. because it may interfere with the readings. The LM35 does not require any external calibration or trimming to provide typical accuracies of ±¼°C at room temperature and ±¾°C over a full -55 to +150°C temperature range. it can be permanently damaged and you might need to replace it with another one.0 mV/°C scale factor and less than 60 μA current drain. If you accidently connect the sensor the other way. which is selected with a J25 jumper. Enabling LM35 Sensor 1 2 3 4 TOP VIEW Figure 16-1: LM35 not connected Figure 16-2: LM35 placed in socket Figure 16-3: LM35 connected to RE1 pin Figure 16-4: LM35 connected to RE2 pin LM35 TS2 1 2 3 VCC VOUT EasyPIC v7 enables you to get analog readings from the LM35 sensor using RE1 or RE2 microcontroller pins. Readings are done with microcontroller using single analog input line. make sure that no other device uses the selected analog line. As it draws only 60 μA from its supply. The LM35 thus has an advantage over linear temperature sensors calibrated in ° Kelvin. less than 0. it has very low self-heating.1°C in still air. 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. VCC-5V GND J25 RE2 RE1 page 27 DATA BUS modules Figure 16-5: LM35 connected to RE1 pin VCC VOUT GND . EasyPIC v7 provides a separate socket (TS2) for the LM35 sensor in TO-92 plastic packaging. as the user is not required to subtract a large constant voltage from its output to obtain convenient Centigrade scaling. During the readings of the sensor. whose output voltage is linearly proportional to the Celsius (Centigrade) temperature. It has a linear + 10.
you can create voltages in range from GND to VCC. meaning that maximum value of conversion can be represented with 10 bits. Resolution is represented in maximum number of bits that resulting number occupies. can be devided into 1024 discrete steps of about 4. The value of this number is lineary dependent on the input voltage value.ADC inputs Digital signals have two discrete states. Conversion time determines how fast can an analog voltage be represented in form of a digital number. and can have any value within defined range. If you want to connect potentiometer P2 to any of the RB0 – RB4 analog microcontroller inputs. usually in form of an integer number. The other parameter is resolution. RA1. P1 10K R63 220 M2X5 VCC-MCU Enabling ADC inputs RA0 RA1 RA2 RA3 RA5 J15 Figure 17-1: use J15 and J16 jumpers to connect analog input lines with potentiometers P1 and P2 In order to connect the output of the potentiometer P1 to RA0. Analog signals. RA2. and interpreted as logic 1 and logic 0. on the other hand. for example from 0-5V. Most PIC microcontrollers have 10-bit resolution. which are decoded as high and low. you have to place the jumper J15 in the desired position. Most microcontrollers nowdays internally have A/D converters connected to one or more input pins. A/D converters are specialized circuits which can convert analog signals (voltages) into a digital representation. Resolution represents the number of discrete steps that supported voltage range can be divided into. This is an important parameter if you need fast data acquisition. This means that supported voltage range. By moving the potentiometer knob. which converted to integer is 210=1024. place jumper J16 in the desired position. are continuous. RA3 or RA5 analog microcontroller inputs. It determines the sensitivity of the A/D converter. 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. Some of the most important parameters of A/D converters are conversion time and resolution.88mV. DATA BUS RB0 RB1 RB2 RB3 RB4 ADC INPUT J16 R64 220 M2X5 P2 10K VCC-MCU modules Figure 17-2: Schematic of ADC input page 28 .
VCC-MCU U8 A0 A1 A2 VSS VCC WP SCL SDA SW4 VCC-MCU VCC-MCU VCC-MCU RA0 RA1 RA2 RA3 RC2 RC3 RC4 DIP SW 8 VCC-5V ON DATA BUS VCC-MCU C24 100nF 3 4 6 5 EEPROM-SCL EEPROM-SDA DIP SKT 8 (24C08) page 29 modules 1 2 8 7 R4 1K R5 1K Figure 18-1: Schematic of I2C EEPROM module . 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 devices are used to store personal preference and configuration data in a wide spectrum of consumer. medical.I C EEPROM 2 Enabling I2C EEPROM Figure 18-1: Activate SW4. so you can easily exchange it with different memory size EEPROM IC. Data rates are dependant of power supply voltage. Each slave must have a unique address. 4K7 pull-up resistors necessary for I2C communication are already provided on SDA and SCL lines once switches are turned on. telecommunication.8 switches to enable pull-up resistors in I2C lines of Serial EEPROM. Because of the ability to alter single bytes of data. automotive. EasyPIC v7 supports serial EEPROM which uses I2C communication interface and has 1024 bytes of available memory. Board contains socket for serial EEPROMs in DIP8 packaging. It is usually a secondary storage memory in devices containing data that is retained even if the device looses power supply. and go up to 1 MHz with 5V power supply. as shown on Figure 18-1. and PC applications. pulled up with resistors. Up to 112 slave devices can be connected to the same bus.8 switches. EEPROM itself supports single byte or 16-byte (page) write and read operations. make sure to disconnect other peripherials. Data and clock lines are driven with a master device. What is I2C? I2C is a multi-master serial single-ended bus that is used to attach low-speed peripherals to computer or embedded systems. In order to connect I2C EEPROM to the microcontroller you must enable SW4. industrial. and 400 kHz for 3. Serial Data Line (SDA) and Serial Clock (SCL). EEPROMs come with parallel or serial interface to the master device. EEPROM is short for Electrically Erasable Programmable Read Only Memory.3V power supply. Prior to using EEPROM in your application.7 and SW4.7 and SW4. I²C uses only two bidirectional open-drain lines.
EasyPIC v7 comes with piezo buzzer which can be connected either to RC2 or RE1 microcontroller pins. which is nothing more than VCC-5V a sequence of logic zeros and ones. which is determined by the position of J21 jumper. Supported sound frequencies Piezo buzzer’s resonant frequency (where you can expect it's best performance) is 3. Duty Cycle = 80% Freq = 3kHz. VIEW VIEW PZ1 10K VCC-5V R3 Q8 BC846 1K RE1 R3 R27 1K J21 PERSPECTIVEVolume = 50% Q8 BC846 BUZZER How to make it sing?RE1 10K RC2 Freq = 3kHz. Buzzer is driven by transistor Q8 (Figure 19-1). VIEW BC846 RC2 R27 and amplitude is determined by the BUZZER Freq = 3kHz. TO SOCKETS TOP VIEW PZ1 R3 1K VCC-5V Enabling Piezo Buzzer In order to use the on-board Piezo Buzzer in your application. 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.Piezo Buzzer Piezoelectricity is the charge which accumulates in certain solid materials in response to mechanical pressure. RE1 Volume = 20% 10K Q8 BC846 J21 R3 Buzzer starts "singing" when you provide RC2 1K R27 PWM BUZZER from the microcontroller signal modules page 30 TO SOCKETS SOCKETS SOCKETS TO TO Figure 19-1: Piezo buzzer connected to RC2 microcontroller pin PERSPECTIVE VIEW TOP VIEW J21 R27 RC2 .8kHz. You can generate PWM signal using hardware capture-compare module. RE1 10K to the buzzer driver. or by writing a custom software which emulates the desired signal waveform. but also providing the charge to the piezoelectric material causes it to physically deform. duty cycle of the PWM signal. Piezo buzzer is an electric component that comes in different shapes and sizes. you first have to connect the transistor driver of piezo buzzer to the appropriate microcontroller pin. This is done using jumper J21. which can be used to create sound waves when provided with analog electrical signal. Duty Cycle = TOP VIEW PERSPECTIVE VCC-5V VIEW PZ1 TOP 50% Freq = 3kHz. One of the most widely used applications of piezoelectricity is the production of sound generators. which is usually available in most microcontrollers. Microcontrollers can create sound by generating a PWM (Pulse Width Modulated) signal – a square wave signal. but you can also use it to create sound in the range between 2kHz and 4kHz. called piezo buzzers. Figure 19-2: Use jumper J12 to connect Piezo buzzer on RE1 or RC2 pin BUZZER PZ1 Freq = 3kHz. The pitch of the PERSPECTIVEVolume = 80% Q8 J21 sound is determined by the frequency. Frequency of the square signal determines the pitch of the generated sound. thus connecting the buzzer driver to either RC2 or RE1 microcontroller pin. Duty Cycle = 20% Freq = 3kHz. You can place the jumper in two positions.
1 3 Figure 20-1: 3 oscilloscope GND pins are conveniently positioned so each part of the board 2 can be reached with an oscilloscope probe 2 3 page 31 modules modules . 2 GND is located in the cross section between DIP18 and DIP14 sockets 3 GND is located between PORTD I/O group and DIP28 socket. which allow you to easily connect oscilloscope GND reference when you monitor signals on microcontroller pins. or signals of on-board modules.Additional GNDs 1 EasyPIC v7 contains three GND pins located in three different sections of the board. 1 GND is located between UART module and 4-digit 7-seg display.
http://www. programmer and debugger. and see how it works on hardware. Browse through the compiler Examples path to find the following folder: \Development Systems\EASYPIC_v7 Community If you want to find answers to your questions on many interesting topics we invite you to visit our forum at http://www. so if something goes wrong. MikroElektronika offers Free Tech Support to the end of product lifetime.What’s Next? You have now completed the journey through each and every feature of EasyPIC v7 board. mikroBasic and mikroPascal and download fully functional demo version.com/ Support le on Product We all know how important it is that we can rely on someone in moments when we are stuck with our projects.com/forum and browse through more than 150 thousand posts. Now you are ready to start using your new board. facing a deadline. that’s pulling us back for a while. we are ready and willing to help! http://www. or share your own code.com/esupport/ what’s next? page 32 D! DV Av . With user profiles. basic question. organization. or when we just want to ask a simple. We have equipped our compilers with dozens of examples that demonstrate the use of each and every feature of the EasyPIC™ board. supported microcontrollers. you are ready to start writing your first projects. Welcome! 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. you can get to know other programmers.mikroe. You got to know it’s modules. and all of our accessory boards as well. On the other hand.libstock. so you can begin building your PIC applications.mikroe. Just load the example. You will find very useful projects and tutorials and can get help from a large ecosystem of users. We invite you to join thousands of users of EasyPIC™ brand. ai lab Projects Once you have chosen your compiler. You are likely to find just the right information for you. We are suggesting several steps which are probably the best way to begin. please visit the Libstock website. read well commented code. if you want to download free projects and libraries. This makes an excellent starting point for your future projects. 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. and since you already got the board. and subscribe to receive notifications on their code.
page 33 notes .
notes page 34 .
if necessary. In no event shall MikroElektronika. including product and software described herein. but not limited to. All Rights Reserved. even if MikroElektronika has been advised of the possibility of such damages. EasyPIC6. including. SmartGSM/GPRS. BigPIC5. ARMflash. 8051prog. mikroPascal. business interruption or any other pecuniary loss) arising out of the use of this manual or product. PICflash. All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies. MikroElektronika reserves the right to change information contained in this manual at any time without prior notice. mikroC PRO. dsPIC PRO4. EasyVR Stamp LV18FJ. HIGH RISK ACTIVITIES The products of MikroElektronika are not fault – tolerant nor designed. MikroElektronika shall assume no responsibility or liability for any errors. EasyARM. EasyAVR5. UNI-DS are trademarks of Mikroelektronika. The manual PDF edition can be printed for private or local use. MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities. the implied warranties or conditions of merchantability or fitness for a particular purpose. but not for distribution. No part of this manual. All other trademarks mentioned herein are property of their respective companies. either expressed or implied. mikroBasic. EasyPIC5. LV24-33A. mikroC. stored in a retrieval system. without the prior written permission of MikroElektronika. PICPLC8 PICPLC4. EasydsPIC4A.DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. direct life support machines or weapons systems in which the failure of Software could lead directly to death. PSOCprog. this manual is to be treated as any other copyright material. 18FJprog. specific. PICPLC16. . omissions and inaccuracies that may appear in this manual. AVRflash. employees or distributors be liable for any indirect. BigPIC6. aircraft navigation or communication systems. the Mikroelektronika logo. LV32MX. its directors. EasyAVR6. personal injury or severe physical or environmental damage (‘High Risk Activities’). TRADEMARKS The Mikroelektronika name and logo. and are only used for identification or explanation and to the owners’ benefit. mikroPascal PRO. Any modification of this manual is prohibited. mikroBasic PRO. translated or transmitted in any form or by any means. © Mikroelektronika™. PIC32MX4 MultiMedia Board. EasyPSoC4. Therefore. incidental or consequential damages (including damages for loss of business profits and business information. AVRprog. officers. BigAVR2. must not be reproduced. MikroElektronika provides this manual ‘as is’ without warranty of any kind. such as in the operation of nuclear facilities. with no intent to infringe. air traffic control. manufactured or intended for use or resale as on – line control equipment in hazardous environments requiring fail – safe performance. 2011. Easy8051B. dsPICprog.
mikroe.com If you are experiencing some problems with any of our products or just need additional information.com/en/support If you have any questions.mikroe. please place your ticket at www.com . do not hesitate to contact us at office@mikroe.If you want to learn more about our products. comments or business proposals. please visit our website at www.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue listening from where you left off, or restart the preview.