Home
EasyPIC3 Manual - MikroElektronika
Contents
1. 8 12V AC DC C8 E2 E3 C15 100nF 470uF 470uF 100nF 1 0 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD asyPIC 3 a EasyPIC3 Users Manual TOOLS ON BOARD USB PROGRAMMER There is no need for the use of external equipment during pro gramming as the EasyPIC3 devel opment system has its own on board USB programmer All you need to do is connect the system to a PC using the USB cable Then load your program into the micro controller via the PICFlash2 pro gramming software which is sup plied with the EasyPIC3 Figure 10 USB programming connector To the right of the USB programmer there are jumpers JP2 JP3 and JP4 Figure 11 Gag Default position ___ used as JP4 jumper emm explanation ON BOARD USB PROGRAMMER s 885 used as E C E 684 used as When using the DIP18 DIP28 and DIP40 sockets default jumpers JP2 and JP3 should be in the upper position default as shown in Fig 12 JP2 and for DIP18 DIP28 or DIP40 For the DIP8 and DIPI4 sockets these jumpers should be in the lower position Fig 13
2. JP2 and for DIP8 or DIP 14 EasyPIC3 Users Manual TOOLS LEDs Light Emitting Diodes LEDs are the most commonly used components usually for displaying pin s digital state The EasyPIC3 has 32 LEDs that are connected to the microcontroller s PORTA E PORTB PORTC and PORTD LEDs Each group of eight LEDs can be enabled or disabled using switch SW2 Connec tion for is shown in Fig 15 Light Emitting Diodes PORTC co mum PORTO aem 0151 cn ame 192 o am A resistor is used in series with the LED to limit the LED s current In this case the resistors value is IK All eight LEDs from one port are connected to a common point through these resistors which can then be connected or disconnected to ground by the corresponding switch on SW2 DE MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 1 2 a EasyPIC3S Users Manual TOOLS The LEDs are enabled when connected to ground and will display the state of the corresponding microcontroller pin otherwise the LEDs will always be off no mat ter what the port state is as no current can flow through it LEDs T LED LED schematic Figure 15 PORTB LED PORTC LED PORTD LED USB MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD EasyPIC 3 PUSHBUTTON SWITCHES
3. disconnected LCD 2X16 IN 8 BIT MODE The LCD must be placed in the marked position with two free pins to the left and four free pins to the right Figure 29 Only add or remove the LCD from the EasyPIC3 when the power is off Before adding the LCD set jumper 17 to the lower position The LCD s contrast can be adjusted using potentiometer P3 which is located to the left of the GLCD LCD connector NOTE Special attention is required when placing the LCD Otherwise the LCD can be permanently damaged a EasyPIC3 Users Manual TOOLS Figure 30 LCD 8 bit mode schematic In order to enable LCD jumper JP17 should be set to the lower position labeled as CHAR LCD8 contrast selected E o GLCD contrast GLCD and LCD8 GRAPH selected contrast deselected E eave four free pins to the right side Adjustment CHAR s 33H11 LCD 2X16 IN 9 BIT MODE Leave two free pins to the left side EasyPIC3 Users Manual e TOOLS RS 232 COMMUNICATION RS 232 communication enables point to point data transfer It is commonly used in data acquisition applications for the transfer of data between the microcontroller and a PC Since the voltage levels of a microcontroller and PC are not directly com patible with those of RS 232 a level transition buffer such as the MAX232 must be used In order
4. set to the right hand side USB 100n 100n D D USB communication RC3 schematic RC4 RC5 RC3 U RC4 U RC5 U are RC3 U RC4 U RC5 U are available to other peripherials connected only to USB EasyPIC3 Users Manual TOOLS PS 2 COMMUNICATION ON The PS 2 connector allows direct connection between the EasyPIC3 and devices that use PS 2 communication such as a PC keyboard or mouse For example the microcontroller can be connected to a keyboard to read the pressed keys or it can be connected to a PC to act as a keyboard For data tansfer CLK and DATA lines are used In this case they are connected to pins and RCO respectively PS 2 connector PS 2 COMIMUNICA I I Keyboard connected to develop ment board CONNECTOR PS 2 communication schematic 2 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD asyPIC 3 Users Manual TOOLS DS1820 DIGITAL THERMOMETER The DS1820 digital thermometer is well suited to environmental temperature measurement having a temperature range of 55C to 125C and an accura cy of 0 5C It must be placed correctly in the 3 pin socket provided on the EasyPIC3 with its rounded side to the right as marked on the board see Fig 38 otherwise the DS1820 could be per manently damaged The DS1820 s dat
5. to provide a more flexible system the microcontroller is connected to the MAX232 through the two jumpers 5 and JP6 Jumper JP5 is used to connect the Rx line to RC7 RB2 or RB1 Jumper is used to connect the Tx line to RC6 RB5 or RB2 Note that JP5 and JP6 must not be connected to RB2 at the same time Connection between microcon troller and a PC RS 232 COMMUNICATION Serial Cable 2 2 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD us EasyPIC a EasyPIC3S Users Manual TOOLS USB COMMUNICATION A USB communication connector is placed in the upper right corner of the EasyPIC3 between the RS 232 and PS 2 connectors It is used with specific PIC microcontrollers that have USB support such as PICISF2450 and PICISF4550 Note that the USB communication connector cannot be used for programming and that the USB programming connector cannot be used for communication In order to enable connec tion between the microcontroller and USB com munication connector jumpers 7 JP8 and JP9 should be set to the right hand position As a result the microcontroller s RC3 RC4 and RC5 pins are disconnected from the rest of the sys tem and connected to the USB communicati n ON USB COMMUNICATI connector vcc 1o enaple USE commu USB communication connector nication all three VCC jumpers have to be
6. 4 1 l vcc 1 1 i o o o l O P L P I 1 I _ RD3 1 i i A 4 4 i iu I I a I I I 7 ___ n RB4 L gRp4 vss l ee 1 i o L 1 o o 1 1 1 Z RAS 1 i _ RBS gt 1 x1 H I z I o RD5 jn F RC7 P 1 1 1 i 1 1 1 L I L REO 1 886 i 1 RD6 dou ik P P o 1 o I d I L 1 __ i J 1 RB 1 ae 207 1 l i I 1 o i 1 I 1 I 1 I I I I i A N i J OV while button 5V while button is pressed is pressed Buttons schematic Figure 19 EasyPIC3 Users Manual TOOLS In the case of Fig 20 the pull up resistor pulls the microcon troller port pin to 5V 7 when the button is not pressed A button press causes the port pin to be connected to ground JP20 is in the lower position Thus only vcc pull up 5 RB4 when the button is wee pressed will the micro T controller sense a logi B cal ZERO otherwise the pin state will always be logical ONE OV while pressed Figure 20 Button with pull up resistor PUSHBUTTON SWITCHES In the case of Fig 21 the pull down resistor pul
7. E SOLUTIONS FOR THE EMBEDDED WORLD 2 6 EasyuPIC EasyPIC3S Users Manual TOOLS Figure 41 A D Converter input schematic Qu Zz Pull up down resistors on pins RA2 HAS ac should be disabled using SW1 66 vcc gt P1 10K JP15 O EE GE JP16 lt L P vcc LL 5U OU 850 OV 10K i A RASI IPLS C h ANA h LL Xl TEE y 5 NUERT Potentiometers are con Potentiometers are dis nected to RA2 and RA3 connected from micro m pins controller gt DIRECT PORT ACCESS All microcontroller input output pins can be accessed via connectors placed along the right hand side of the board For each of the PORTA PORTB PORTC PORTD and PORTE there is one 10 pin connector providing Vdd GND and up to eight port pins PORT ACCESS DIRECT Direct port access connectors Figure 42 These connectors can be used for system expansion with external boards such as Compact Flash CAN RS 485 etc Ensure that the on board peripherals are dicon nected from microcontroller by setting the appropriate jumpers while external peripherals are using the same pins The connectors can also be used for attaching logic probes or other test equipment Example of how to connect external peripheral with flat cable 2 MIKROELEKTRONIKA a EasyPIC3 U
8. ECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING DAMAGES FOR LOSS OF PROFITS LOSS OF BUSINESS LOSS OF USE OR DATA INTERRUP TION OF BUSINESS AND THE LIKE EVEN IF MIKROELEKTRONIKA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES ARISING FROM ANY DEFECT OR ERROR IN THIS MANUAL OR PRODUCT SPECIFICATION AND INFORMATION CONTAINED IN THIS MANUAL ARE FUR NISHED FOR INTERNATIONAL USE ONLY AND ARE SUBJECT TO CHANGE AT ANY TIME WITHOUT NOTICE AND SHOULD BE CONSTRUED AS A COMMIT MENT BY MIKROELEKTRONIKA MikroElektronika assumes no responsibility or liability for any errors or inaccuracies that may appear in this manual including the product and software described in it Product and corporate names appearing in this manual may or may not be regis tered trademarks or copyrights of their respective companies and are used only for identification or explanation and to the owners benefit without intent to infringe MIKROELEKTRONIKA Manual DEVELOPMENT EasyuPIC3S Users TOOLS Direct Port Access Uf CONTENTS CONNECTING THE SYSTEM page 4 INTRODUCTION page 5 DESCRIPTION OF THE DEVELOPMENT SYSTEM page 6 Switches and their functions page 6 Jumpers page 7 MCU sockets page 8 Power Supply page 10 On board USB programmer page 11 LEDs page 12 Pushbutton Switches page 14 7 segment displays page 17 Graphic LCD page 18 LCD 2x16 in 4 bit mode page 19 LCD 2x16 in 8 bit mode page 20 RS 232 Communication
9. SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MikroElektronika EasyPIC3 Users Manual Y YA MM with on board U S With useful implemented peripherals plentiful practical code examples and a broad set of additional add on boards ADC 2 O programmer DAC CAN RTC RS 485 etc MikroElektronika development boards make fast and reliable tools that can satisfy the needs of experienced engineers and beginners alike Software and Hardware solutions for Embedded World cd EasyPIC3 Users Manual TOOLS Second edition November 2005 No part of this manual including the product and software described in it may be reproduced transmitted transcribed stored in a retrieval system or translated into any language in any form or by any means except documentation kept buy the pur chaser for backup purposes without the express written permission of MikroElektronika company Product warranty or service will not be extended if the product 15 repaired modified or altered unless such repair modification or alteration is authorized in writing by MikroElektronika MIKROELEKTRONIKA PROVIDE THIS MANUAL AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PUROSE IN NO EVENT SHALL MIKROELEKTRONIKA ITS DIRECTORS OFFICERS EMPLOYEES OR DISTRIBUTORS BE LIABLE FOR ANY INDIR
10. The EasyPIC3 has 32 pushbutton switches which can be used to provide digital inputs to the microcontroller s ports There is also one switch that acts as a RESET Reset switch schematic is shown in Figure 17 VCC uL Reset switch schematic R17 10K PICflash 058 A Reset _ J 100n C14 Switch connections to PORTA E PORTB PORTC and PORTD are shown in Fig 19 Jumper JP20 determines whether a button press will bring logical zero or logical one to the appropriate pin In the example shown in Fig 19 the switches are connected to 4 5 V ES PUSHBUTTON SWITCI EasyPIC3 Users Manual TOOLS In order to detect a switch state pull up or pull down resistors should be used Which is used depends on how JP20 is set and is illustrated on the next page For the example shown in Fig 19 pull down resistors would be required PUSHBUTTON SWITCHES MCLR RB7 I RAO PORTB PORTD T m um Eu E RD RR E 1 g RA1 RB5 P P 1 L La Rao 1 i i RA2 RB4 1 1 i i H RA3 RB3 de P P i 2 Ra i 79 1 RA4 RB2 I I L I L 1 1 RA5 RB1 P Lt 2 RB2 1 202
11. a pin can be connected to either the RA5 or RE2 pin which is determined by jumper JP14 Als E DS1820 125 C There is a mark in 50 C the form of half circle for proper orientation of DS1820 sensor vcc D51820 DIGITAL THERMOMETER TE DQ line is DQ line is DQ line is connected to RE2 connected to RA5 disconnected Figure 39 DS1820 Schematic EasyPIC3 Users Manual TOOLS A D CONVERTER INPUT The EasyPIC3 development board have two potentiometers for working with Analogue to Digital Converter ADC Potentiometer P1 is active when jumper JP15 is enabled and gives analogue signal to microcontroller s RA2 pin Potentiometer P2 is active when jumper JP16 is enabled and gives analogue signal to RA3 pin Both potentiometers analogue output is in the range of OV to 5V as drawn on board A D Converter input In order to measure analogue signal without interference the pull up down jumper should be removed from PORTA In this way PORTA pins remain floating The application of A D Conversion is various Microcontroller takes analogue sig nal from its input pin and translates it into a digital number Basically you can meas ure any analogue signal that fits in range acceptable by PIC That range is OV to 5V ANALOGUE TO DIGITAL CONVERTER INPUT USB MIKROELEKTRONIKA SOFTWARE AND HARDWAR
12. break a connection between two contacts The EasyPIC3 development system has two groups of switches SWITCHES The first group SW1 enable a connection between the microcontroller ports with analog capabilities PORTA and PORTE and external pull up down resistors The pull up down resistors should be disconnected from the analog input pins otherwise they will affect the input voltage level When PORTA and PORTE pins are used as digital inputs outputs the appropriate pull up down resistors should be enabled The upper four switches of SW2 are used to enable LEDs connected to PORTA E PORTB PORTC and PORTD For example if switch PORTB is OFF all PORTB LEDs will be turned off The lower four switches of SW2 are used to enable the 7 segment displays If you don t need the 7 segment displays in your project these switches should be OFF Switch 4 is ON and other switches are OFF Group of 8 switches M Switchis 0708 T Switch is OFF 65703 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 6 EasyuPIC a EasyPIC3 Users Manual TOOLS JUMPERS Jumpers like switches can break or establish a connection between two points Beneath the plastic cover of the jumper is a metal contact which makes a connec tion if the jumper is placed between two disconnected pins For example JP15 and JP16 are used to connect or disconnect potentiometers to RA2 or RA3 anal
13. ls the microcon troller port pin to ground when the button is not pressed A button press causes the port pin to be connected to 5V JP20 is in the upper position Thus only when the button is pressed will the micro controller sense a logi cal ONE otherwise the pin state will always be logical ZERO pull down USB MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 1 6 EasyuPIC a EasyPIC3 Users Manual TOOLS 7 SEGMENT DISPLAYS The EasyPIC3 has four 7 segment displays in multiplex mode Data lines are con nected to PORTB while each display is enabled through the lower four bits of PORTA 7 segment displays DISPLAYS 1 SEGMEN EasyPIC3 Users Manual e TOOLS GRAPHIC LCD The Graphic LCD GLCD allows advanced visual messages to be displayed E While a character LCD can display only alphanumeric characters a GLCD can be 9 used to display messages in the form of drawings and bitmaps The most common 2 ly used graphic LCD has a screen resolution of 128x64 pixels Before GLCD 18 connected the user needs to set jumper JP17 Fig 24 to the upper position The GLCD s contrast can be adjusted using potentiometer P3 which is placed to the left of the GLCD below jumper JP17 O 2 Figure 24 GLCD C selection JL GE D In order to enable GLCD jumper JP17 should be set to the upper
14. ocontrollers It has been designed to allow students and engi neers to easily exercise and explore the capabilities of PIC microcontrollers It allows PIC microcontrollers to be interfaced with external circuits and a broad range of peripheral devices allowing the user to concentrate on software development Figure 1 illustrates the development board Each component is marked on a silkscreen These marks describe connections to the microcontroller operation modes and provide some useful notes The need for additional schematics 18 mini mized as all the information is printed on the board Figure 1 EasyPIC3 development board m LE z Dui i z E 2M E y S82 CONVERTER INPUT 04 uL i i L i L P Li LI L L E LI i L FJ OOTTETETETTTYTETEN YN 3l B Fi xs i Ln 1 i 1 D TTE i 4 SEO REE i i S or ri 4 2 g INTRODUCTION EasyPIC3 Users Manual imi SWITCHES The EasyPIC3 development board features a number of peripherial devices In order to enable these devices before programming you need to check if appropri ate jumpers or switches have been properly set Switches are devices that have two positions ON and OFF which have a role to establish or
15. og inputs Connection is made when the jumper is placed between two contacts UMPERS Figure 3 15 to switch 12 JumperisOFF 010 More often jumpers are used as a selector between two possible connections using a three pin connector As illustrated in Fig 4 the middle contact can be connected to the left or right pin depending on the jumper s position Figure 4 _ GER All lines are disconnected CHS pum Jumper as a multiplexer CLE Left line is selected em D m E 1C JJ Right line is selected MCU SOCKETS The EasyPIC3 is delivered with a 40 pin microcontroller Users can remove this and fit a different microcontroller in DIP40 DIP28 DIP18 DIP14 or DIP8 pack ages of an adequate pin out MCU SOCKETS MCU sockets NOTE Since all packages have parallel connections there must not be more than one microcontroller on the board at a time p ae EasyPIC3 Users Manual TOOLS The microcontroller s pins are routed to various peripherals as illustrated in Fig 6 All ports have direct connections to Direct Port Access connectors Such connectors are typically used for connecting external peripherals to the board or for providing useful points for connecting digital logic probe All ports are connected to LEDs push button switches and p
16. page 22 USB Communication page 23 PS 2 keyboard page 24 DS1820 Digital Thermometer page 25 A D Converter input page 26 page 28 EasyPIC3 Users Manual imi CONNECTING THE SYSTEM The development system box 1 basic option contains a development system CD USB cable serial cable and this manual Step no 1 The first thing to do is to insert the CD into your PC s CD ROM drive Step no 2 Take the system out of a box Unpack the USB cable and connect it to the PC Please use USB ports from the back of the PC with direct contact to the mother board Step no 3 Connect the USB cable to the EasyPIC3 board Step no 4 The PC will start the procedure for installing the USB driver for the on board USB 2 0 programmer Follow the procedure from the document nstalling Driver for USB programmer and install the USB driver CONNECTING THE SYSTEM Step no 5 Copy the file PICFlash2 exe to the folder of your choice You can find this file in the PICFLASH2 folder on the CD Step no 6 Run and use PICflash2 as explained in the document PICflash programmer After these 6 steps your EasyPIC3 is installed and ready for use You should try to read a program from the chip or to load an example from the examples folder USB MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD Al EasyPIC INTRODUCTION The EasyPIC3 development system is a full featured development board for Microchip PIC micr
17. position labeled as GRAPH L T a t 5 s GLCD contrast GLCD and LCD8 selected contrast deselected o VCC GRAPH el Contrast vcc Adjustment EasyPIC3 Users Manual TOOLS LCD 2X16 IN 4 BIT MODE The standard character LCD is probably the most widely used data visualization component Normally it can display two lines of 16 alphanumeric characters each made up of 5x7 pixels The character LCD communicates with the microcontroller via a 4 bit or 8 bit data bus each requiring the use of a different connector on the EasyPIC3 For 4 bit data bus use the LCD should be placed in the upper left of the board above the LEDs The connection to the microcontroller is shown in Fig 28 where there are only four data lines It is important that the LCD is only added or removed from the EasyPIC3 when the power is off Figure 27 77771 LCD 2x16 in 4 bit mode E Four data lines Figure 28 LCD 2x16 in 4 bit mode schematic vcc Q Contrast p 5K f f LCD 2X16 IN 4 BIT MODE LCD 2X16 IN 8 BIT MODE When using a character LCD in 8 bit mode the connector that is shared with the GLCD should be used Since this connector has 20 pins and the character LCD has only 14 pins special attention is required when placing the LCD Otherwise the LCD can be permanently damaged LCD 2x16 in 8 bit mode View from the back shows which pins stays
18. sers Manual TOOLS Pull up line is connected Figure 44 PORTB connection 5 2 5 Pull down line All lines is connected are disconnected DIRECT PORT ACCESS C7 C6 22pF 22pF iH EI HEADER 5 2 USB MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD EasyPIC 2 Q Easy PIC 3 User s Manual MIKROELEKTRONIKA DEVELOPMENT TOOLS If you are experiencing problems with any of our products or you just want additional information please let us know We are committed to meeting your every need Technical Support support mikroe com em a ar E d m If you have any other question comment or a business proposal please contact us E mail office mikroe com Web www mikroe com DE MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 3
19. ull up down resistors which allow for easy digital pin state monitoring and testing Some of the pins are connected to other peripherials such as the DS1820 tempera ture sensor RS 232 communication 7 segment displays LCD etc MCU SOCKETS System connection PX Xx x 4 4 Dx XI JL I D lt x Dx 1 e Q le OOOO OOOO EasyPIC3 Users Manual TOOLS POWER SUPPLY As a power supply source users can select either a regulated supply from the USB cable default or an external non regulated power supply In case of the USB power supply the system should be connected to a PC using the USB programming cable and jumper JP1 should be set in the right hand position In the case of an external power supply the EasyPIC3 board produces 5V using an LM7805 voltage regulator The external power supply can be AC or DC with a voltage between 9V and 16 V and jumper JP1 should be set in the left hand posi tion In Fig 7 you can see the USB left and power supply right connectors POWER SUPPLY Power supply select jumper USB and power supply connectors JP1 in the left posi tion system will take power from the external AC DC power adapter all gt c JP1 in the right position system will take power from the USB cable 5 usB External Power Supply USB Power Supply
Download Pdf Manuals
Related Search
Related Contents
TV 301 Navigator - Agilent Technologies Operating lnstructions Mode d`emploi lstruzioni d WINAQMS – Mini Fluke - Quicktools Audio Transceiver Manual zsh: Power Tools. Because having all your Samsung Samsung G400 Instrukcja obsługi Sony VPL-VW12HT User's Manual Tripp Lite SUBB330 circuit breaker Bedienungsanleitung Third Edition Copyright © All rights reserved.
Failed to retrieve file