Home

EasyPIC5 Users Manual

image

Contents

1. TR KL SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S SOHAQUOOU AUD OLP0O Ve MANUAL 3 o oS o On some microcontrollers oscillator input pins can be also used as digital input output pins In order to implement this feature EasyPIC5 has jumpers for connecting MCU either to oscil lator or digital I O pins Refer to the schematic of the OSC1 oscillator in figure 16 c3 ou OSGULIWANT OLS Page Op o d 4 Be e Dee ECH at Oscillator connection with MCU EE HERE MCLR RB7 RA6 and RAT pins are RA6 and RAT pins are RAO RB6 used as oscillator input used as digital I O RA1 RB5 RA2 RB4 RA3 RB3 RA4 00 RB2 RA5 ep VCC REO RBo RE1 Ls VDD Default position ER JP4 3 y RE2 e vss VDD RD7 VSS a RD6 ar RATIOSC1 gt RD5 T ED RAG OSC2 RD4 8MHz RCO RC7 SE RC1 RC6 66 RC2 RC5 22pF 22pF i RC3 RC4 ly RDO RD3 RD1 RD2 RA6 E v RAT 4 Note Silcsreen identificatiion marks beside each MCU socket determine which oscillator should be used If two microcontroller pins are designated as OSCI oscillator should be placed in the OSC1 connector If two microcontroller pins are designated as OSC2 oscillator should be placed in the OSC2 connector SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika lstsiststsisteisltstsisteistste USER S MikrolCD HAR
2. PICflash On Board USB programmer D O Wi Q c cc e e Figure 21 Reset switch schematic SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika E Y 0 COQHOOUAHOOUDNOO USER S e s e MANUAL DA PUSHBUTTON SWITCHES 9 S EasyPIC5 has 36 pushbuttons which can be used to change states of digital inputs on the microcontroller ports Connection between buttons and PORTA PORTB PORTC PORTD 0 and PORTE is shown in figure 22 Jumper J17 determines whether a button press will bring iii logic zero 0 or logic one 1 to the appropriate pin When button is released pin state is T determined by pull up or pull down port jumpers Figure 22 Buttons schematic Ha ____ PORTA ____PORTB PORTC PORTD PORTE 4 d Cod EE cedes t quc p gesucht A i e RAO i RBO rm RCO i RDO REO d d SE o o o i o o o o d i a Di a FEI CEA PEDE 1 oe REV L H MEM TEE ME 3 Si La E CU SCR i f ia PC i l SG za bel Si Reo H vec As 3 RBS RC3 RD3 L BEZ SF on i 5 o o o o l o o o o o o dz cf co a iw Hei icm d ect E RAS RBS RC5 RDS Bo E d O it d HSAN inne ine EE e i Lesi ie em Lem H 9 RK OL E GEAR ZU d F n As seen in figure above J17 is connected to 5V vec so the button press will bring logic one 1 to the d appropriate pin H GND OV on pin while 5V on pin while button is pr
3. NE oid O Z 9SN eld 2 X n kh X9 J pue sez Alan Zd pue Li sJojeulonuejod j i S ede Od OV l A 94 g Ajddns 0 Dote a J8Mod euJ9 X3 u09 9q ueo SVa OWe Suld J sobeyoed gdiq REINER pue pidid OZdlG ul uld Gy JO Z3 nduli 0jpeoeuuoo q pyeoghoy Dd s Mid d RC vdf ede ued Josues N e1eduie 0Z8LSA GES SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika None of the parts of this manual including the product and software described in it may be reproduced transmitted transcribed stored in a retrieval system or translated into any language in any form or by any means excepting the documentation kept by the purchaser for backup purposes without expressed written permission of MikroElektronika Company Product warranty or service will not be extended if the product is repaired modified or altered unless such repair modification or alteration is authorized in writing by MikroElektronika MikroElektronika provides this manual as is without warranty of any kind either expressed or implied including but not limiting to implied warranties or conditions of merchantability or fitness for a particular purpose In no event shall MikroElektronika its directors officers employees or distributors be liable for any indirect specific incidental or consequential damages whatsoever including damages for loss of business profits and business information business interruption
4. upper position default as shown in figure 12 When using DIP20 DIP 14 and DIP8 sockets these jumpers should be in lower position Fig ure 13 Jumper J7 allows the use of MCLR pin as RESET or digital I O It can be RE3 RA5 or RA3 pin depending on MCU in use When J7 is in lower position the hardware reset is enabled by pressing reset button The MCLR pin cannot be used as I O pin When J7 is in upper position the MCLR pin can be used as I O pin Hardware reset is dis abled in this case Figure 14 J2 jumper ONBOARD WS J7 i MCLR pin wous Ei used as UO J7 u MCLR pin MCLR used as RESET SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika page OR GJ OSG y ane o SQHOOUALOS USER S z i MANUAL OSCILLATOR Since there are so many sockets on the EasyPICS5 board there are two oscillators connected to two main sections of the MCU sockets One oscillator designated as OSC1 is connected to DIP40 DIP28 DIP18A and DIP18B socket Another one designated as OSC2 is connected to DIP20 DIP14 and DIP8 socket ITI Pl WO S p s 3 gp GE vor 3 it ge i qu t HM el oes e ch cde de d bm ri Ka Bel AR o n A L As seen in the figure above 10F MCU socket is not connected to oscillators These MCUS have only an internal oscillator and cannot be used with external crystal
5. connection between potentiometer P2 and one of the following pins RAI RA2 RA3 RAA or RAS NID CONVERTER INPI ROEE A D Converter input In order to measure analog signal without interference turn off the corresponding switch on the SW1 This will disable connection between PORTA pins and pull up down resistors There are many applications of A D conversion The microcontroller takes analog signal from its input pin and converts it into digital value Basically you can measure any analog signal that fits in the range acceptable by PIC That range is 0 5V MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL 53 5 page Figure 45 A D Converter input 0 5V VCC Pull up down resistors on PORTA pull up down analog input pins should be disabled PortA using SW1 Potentiometer P1 is connect ed to RA2 pin and poten s tiometer P2 to RA3 pin B ND CONVERTER INPI eu 0 8V po Z 0 5V id i Z 3 CS EK 15 J16 Ty MCLR RB7 RAO RB6 RA1 RB5 RA2 RB4 RA3 RB3 RA4 RB2 RA5 gai VCC REO RBO RE1 VDD H RE2 vss VDD RD7 vss WW pell OSC1 RD5 x oscz RD4 1 RCO RC7 C6 C7 RC1 RC6 22pF besi 22pF RC2 RC5 RC3 RC4 RDO RD3 RD1 RD2 VW Wi I NOTE Jumpers J15 and J16 should not select the same pin SOFTWARE AND H
6. or any other pecuniary loss arising from any defect or error in this manual or product even if MikroElektronika has been advised of the possibility of such damages Specification and information contained in this manual are furnished for internal use only and are subject to change at any time without notice and should be construed as a commitment 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 registered trademarks or copyrights of their respective companies and are used only for identification or explanation and to the owners benefit with no intent to infringe Bolo o LAYAUN Ui e 4 oJ P IV WI Y LYOddNS TVDINHDAL MOU SN 19 aseajd uoneuuojur euonippe 3uew 1enl no JO sjonpoud ino jo Aue Uu SWajqoid 6ui usuedxe ase no JI UJ02 90JX1U42921JJO IeUJ 9 UEko TV WRe yw sn 1203002 eseejd jesodoid sseursnq e 10 1uSuuu0 uonsenb 193470 Aue aney nof JI ge NEE Glee NER ee SNOILA TOS 3d vVMCHVH ANY 3d VM1dOS 1 E PF
7. set in the right hand position OWEIR SUPPLY page In case of the external power supply the EasyPIC5 board produces 5V using LM7805 volt age regulator The external power supply can be AC or DC While power supply voltage can be in the range of 8 16V The jumper J1 should be set in the left hand position Figure 9 illus trates USB and external power supply connectors Power supply connector P POWER SUPPLY SWITCH C gt SYSTEM ES vcc Figure 9 J6 is set to USB power supply eeu REG1 7805 CN1 8 16V AC DC J6 5V FP1 5V 1 3 VCC D USB T Sa SO T GND vv JOCU Power supply select jumper Je mne letnand pocition SUPPLY SELECT i vm BM system is powered from the EXT IET external AC DC power adapter J J6 in the right hand position system is powered from the SUPPLY SELECT EXT TJ USB cable J SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika lstsiststsisteiststsisteistste USER S MANUAL ON BOARD USS PROGRAMMER page ig v ON BOARD USB 2 0 PROGRAMMER There is no need to use external equipment during programming as the EasyPICS develop ment system has its own on board USB 2 0 programmer All you need to do is to connect the system to PC using the USB cable Then load your program into the microcontroller B via the P Cflash programming software sup plied with EasyPICS LY Please refer
8. 232 COMMUNICATION q S RS 232 communication enables point to point data transfer It is commonly used in data acquisition applications for data transfer between the microcontroller and PC Since the volt age levels of the microcontroller and PC are not directly compatible with those of RS 232 a level transition buffer such as MA X232 must be used In order to provide a more flexible sys tem the microcontroller is connected to the MA X232 via the switch groups SW7 and SWS The switch group SW7 is used to connect Rx line to RC7 RB2 RB1 RB4 RA3 or RBS The switch group SWS is used to connect Tx line to RC6 RB5 RB2 RB1 RA2 or RB7 Note that pins RBI and RB2 must not be simultaneously connected SW enables connections between RBO pin and CTS and RC2 pin and RTS line in order to implement hardware handshaking SlSUICEORN RS232 connector p 2 2 2 2 2 2 2 2 4 RS 232 COMMUNICATION JCU SJA Connection between microcontroller and PC MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S CODQDOODADOOHP0O Cf MANUAL e USB COMMUNICATION IN el USB communication connector is placed in the upper right corner of the EasyPICS It is used with specific PIC microcontrollers which have USB support such as PICISF2450 or PICI8F4550 Note that USB communication connector cannot be used for programming while the USB programming connector can not be used for communicati
9. A D Converter input 30 Direct port access 32 e Ej MikroElektronika MikroElektronika EasyPIC5 KEY FEATURES 10 11 12 13 External power supply 8 16 V AC DC Choose between external and USB power supply When using USB port there is no need for an external power supply Power supply ON OFF switch Very fast and flexible on board USB programmer with mikrolCD In Circuit Debug ger The key feature is ability to upgrade By down loading new software it will be possible to program new MCUs in coming years DS1820 temperature sensor allows temperature measurement with 0 5 C accuracy RS232 communication with selectable TX and RX for all microcontrollers For testing purposes pins RAO RA5 can be connected to the potentiometers P1 and P2 These pins can be used as inputs for measuring adjustable voltages set by these potentiometers PORTA is connected to a resistor network using the switch group SW1 If a switch is OFF the appropriate pin does not have resistor attached Simultaneously it enables PORTA pins to be used in analog mode as well as an ordi nary digital I O pins Jumper to determine port performance in idle state pull up or pull down Select pull up if port pins should detect signals of logic zero 0 and vice versa 16 pin connector allows easy connection of LCD 20 pin connector allows easy connection of graphic LCD Connector for touch panel Touchpanel cont
10. ARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika E Y 0 COQHOOUAHOOUDNOO USER S QD DIRECT PORT ACCESS Vv S All microcontroller input output pins can be accessed via 2 x 5 connectors placed along the right side of the board For each PORTA PORTB PORTC PORTD and PORTE there is one 10 pin connector providing VCC GND and maximum eight port pins These connectors can be used for system extension with external boards such as Serial Ethernet Flash MMC SD ADC DAC CAN RTC RS 485 etc Ensure that on 3 board peripherals are discon nected from the microcon JA troller by setting the appro SSS priate jumpers while exter KS nal peripherals use the same d pins The connectors can be also used for attaching logic probes or other test equip ment DIRECT PORT ACCESS Figure 47 Example of how to connect exter nal peripheral via flat cable MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL e lr al PORTB connection DIS TT PORT ACCESS page Up Pull Pull down line u is connected Down Up Pull up line is Pull connected Down Up All lines Pull are disconnected o vcc HEADER 5x2 SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika GO d Se3 uo pesn eq Aew sjej ojuoo0JoruJ diu20J9 A jo eBueiJ aJnue y 1souu e eJ0JoJau eDex
11. DWARE IN CIRCUIT DEBUGGER MikroICD is a highly effective tool for Real Time debugging on hardware level The mikroICD debugger enables you to execute a program on the PIC microcontroller and view variable values special function registers SFRs and EEPROM while the program is running MikroICD can be used with any PIC compiler manufactured by MikroElektronika mikroC mikroBasic or mikroPascal You just have to select the appropriate build type Release or ICD Debug build the project program the MCU and run debugger The mikroICD debugger uses on board programmer to communicate with the compiler and supports common debugger commands Start Debugger F9 Run Pause Debugger F6 Toggle Breakpoints F5 Run to cursor F4 Step Into F7 step Over F8 Flush RAM F2 Stop Debugger Ctrl F2 V a On Board USB programmer with mikrolCD Program debugging pem UINeGURGUUT DEBUGGER page L1 Lo ful Development system V Note For more information on how to use mikroICD debugger please refer to the mikroICD documentation mikroICD User s Manual You can also find it in Help documentation inside any of the mentioned compilers MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL LEDs dE Light Emitting Diodes LEDs are most commonly used components usually for displaying o pin digital state EasyPIC5 has 36 LEDs connected to the microcontrol
12. E3MikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD waking it si ple EasyPIC5 2 e oo o O6 D e amp CH e 9 J gt 6 e e e Te e e e e e amp e With useful implemented peripherals plentiful practical code examples and a broad set of add on boards Serial Ethernet Compact Flash MMC SD etc MikroElektronika development boards make fast and reliable tools that can satisfy the needs of experienced engineers and beginners alike USB 2 0 IN CIRCUIT TOUCH PROGRAMMER SCREEN TO OUR VALUED CUSTOMERS I want to express my thanks to you for being interested in our products and having confidence in MikroElektronika It is our intention to provide you with the best quality products Furthermore we will continue to improve our performance to better suit your needs Nebojsa Matic General Manager DISCLAIMER All products are owned by MikroElektronika and protected by copyright law and international copyright treaty Therefore you should treat this manual as any other copyright material The manual and products may not be copied partially or as a whole without written consent of MikroElektronika Manual PDF edition can be printed for private or local use but not for distribution Modifying manuals or products is prohibited HIGH RISK ACTIVITIES The products of MikroElektronika are not fault tolerant and nor designed manufactured or intended for use or res
13. F Their functon is to establish or break connection between two contacts The EasyPICS development board has nine groups of switches Switch groups SW1 SWS are used to enable external pull up pull down resistors on port pins Each pull up pull down resistor is individually enabled SWITCHES page x Switch group SW6 is used to enable disable LEDs connected to the microcontroller ports Each group of 8 port LEDs has its own switch Four lower switches in this group are used to enable disable 7 segment LED display drivers That means that each LED display can be indi vidually enabled Switch groups SW7 and SWS are used for selecting RX nd TX serial communication pins Switch group SWO is used to control both LCD backlights communication via PS 2 connec tor and driver for touch panel Switches 1 2 3 and 4 are ON other switches are OFF Figure 2 Group of 8 switches Gi Switchis ON o gt ds BN Switch is OFF P SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika fey USER S JUMPERS g Ch Jumpers like switches can break or establish connection between two points Under the plas tic cover of a jumper there is a metal contact which establishes connection when the jumper Jump Jump o is placed over two pins ee UL GE Jumper as a switch CH Jumper is ON Se Gi Jumper is OFF t o N Jumpers are commonly used as selectors between
14. LCD can be used to display messages in S the form of drawings and bitmaps The most commonly used graphic LCD has the screen res 5 olution of 128x64 pixels The GLCD contrast can be adjusted using the potentiometer P3 placed right above the GLCD Figure 30 TET GLCD a GLCD contrast adjus de S SC ment potentiometer Contrast Adjustment D 5c MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD aI XM GLCD MANUAL TOUCH PANEL 25 Touch panel is a tin self adhesiv transparent foil which could be placed over screen of graph ic LCD It consists of two separate foils which form sandwich structure They are very sen sitive to press so that even a soft touch causes some changes on output signal It is used in va Be rious user friendly devices in combination with graphic LCD uU Connector CN13 enables this device to be con 4 GE nected to on board touch panel controller whose E E active part consists of 5 discrete transistors r e m Four switches of the SW9 enable or disable Eu conection between this controller and RAO B GC RAI RCO and RCI pins Touch panel connector LOUG Touch panel mounted E on graphic LCD 8SL9O9OGVTETZL ae 9 GLCD TOUCHPANEL CONTROLLER SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika E Y 0 COQHOOUAHOOUDOO USER S e s DG RS
15. S1820 DIGITAL THERMOMETER DG U DS1820 digital thermometer is convenient for environmental temperature measurement hav A ing the temperature in the range of 55 C to 125 C with 0 5 C accuracy It must be prop erly placed in the 3 pin socket provided on EasyPIC5 with its rounded side to the right as marked on the board see figure below Otherwise the DS1820 could be permanently damaged DS1820 data pin can be connected to either RA5 or RE2 pin which is determined by the jumper J11 wll ET i IRE2 O 125 C DS1820 Schematic OS 8 20 Did 37200 DIGITAL THERMOMETER 55 C vcc e VCC GND DQ J11 J11 DQ line is DQ line is DQ line is connected to RE2 connected to RA5 disconnected Q NOTE There is a mark in the shape of a half circle for proper orientation of DS1820 sensor SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika E Y 0 COQHOOUAHOOUDNOO USER S e e MANUAL BO A D CONVERTER INPUT Vv S The EasyPICS development board has two potentiometers for working with analog to digital converter ADC Both potentiometers outputs are in the range of 0 5V Two analog signals can be connected to two different analog input pins simultaneously The jumper group J15 enables connection between potentiometer P1 and one of the following pins RAO RAI RA2 RA3 or RA4 The jumper group J16 enables
16. ale as on line control equipment in hazardous environments requiring fail safe performance such as in the operation of nuclear facilities aircraft navigation or communication systems air traffic control direct life support machines or weapons systems in which the failure of Software could lead directly to death personal injury or severe physical or environmental damage High Risk Activities MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities LICENSE AGREEMENT By using our products you agree to be bound by all terms of this agreement Copyright by MikroElektronika 2003 2008 PIC PICmicro and MPLAB are registered trademarks of Microchip Company Windows is a registered trademark of Microsoft Corporation All other trade and or service marks are the property of the respective owners QO l cc O m LLJ QO QO CONTENTS eccccccon Tz is aa EasyPIC5 KEY FEATURES 4 e CONNECTING THE SYSTEM 5 Z INTRODUCTION 6 2 D e Switches T Lu Jumpers 8 MCU sockets 9 gt Power supply 11 ac On board USB 2 0 programmer 12 Oscillator 14 C mikroICD hardware In Circuit Debugger 16 LEDs 17 L Reset circuit 19 ef Pushbutton switches 20 segment displays 22 O 2x16 character LCD 23 r graphic LCD 24 Touch panel 25 RS 232 communication 26 USB communication 27 PS 2 communication 28 DS1820 digital thermometer 29
17. ch SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S CODQDOODADOOHPDO L MANUAL CONNECTING THE SYSTEM page amp Apart from this manual development system box contains development system product CD USB cable RS232 cable and user s manuals for PICflash programmer mikroICD Debugger and Installing USB drivers In order to use EasyPICS properly follow the steps below Step no 1 Take the system board and product CD out of the box First of all insert the product CD in CD drive Do not connect development system to PC yet Step no 2 Install PICflash programmer software It enables program written on PC to be transferred to the microcontroller chip Detailed instructions on how to install it are contained in PICflash programmer manual Step no 3 Install USB drivers on your PC They enable programmer s hardware to operate propperly on EasyPICS board For information on their installa tion refer to nstalling USB drivers manual Step no 4 Connect EasyPIC5 to PC using USB cable Please use one of USB ports on the back of the PC because they have direct connection to the computer motherboard 72 If you turn ON the power supply switch on the EasyPIC5 board for the very first time your PC will immediately detect a new hardware After that a message asking if Windows update should search for new drivers will appear on the screen Select the option No not this ti
18. essed button is pressed GND aI KM Pushbuttons MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S Klees MANUAL g RES In figure 24 jumper J2 is set to pull up so that when the button is realised pull up resistor pulls the microcontroller RB4 pin to 5V Figure 24 Button with pull up resistor By pressing button the port pin ELLE EE l Pull u is connected to ground J17 is g ER in lower position PortB X Thus only when the button 1s l alk pressed the microcontroller will Se sense a logic zero 0 Otherwise the pin state will eer dere MC always be logic one 1 p Ge ies iu 0V while pressed RA2 RB4 RA3 RB3 RA4 RB2 RES RB1 vcc RB4 REO RBO RE1 VDD RE2 VSS J17 VDD RD7 VSS RD6 PUSHBUTTON SWITCHES page In figure 25 switch J2 is set to pull down so that when the Se KEE button is released pull down euis J2 resistor pulls the microcon troller RB4 pin to OV By pressing button the port pin aes is connected to 5V J17 is 15 NENNEN higher position NLR E Thus only when the button is Ge es EE pressed the microcontroller will ee Ge vec SES sense a logic one 1 REO RBO Otherwise the pin state will em EN dg always be logic zero 0 P e SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika lsts
19. iststsisteiststsisteistste USER S DD 7 SEGMENT DISPLAYS 0 S EasyPIC5 has four 7 segment displays in multiplex mode Data lines are connected to PORTD while each display is enabled by four PORTA low bits LLLI ee displays Ee m amp use p SEGMENT DISPLAYS DIS3 DIS2 DIS1 DISO tr m EN d i i i Wy wv Jn IN y a i sI 14 9 423 7 segment displays schematic MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S OOTOQUT OH ACO OLIN O for MANUAL e 2X16 CHARACTER LCD K A standard character LCD is probably the most widely used data visualization component It usually can display two lines of 16 alphanumeric characters each made up of 5x8 pixels The character LCD communicates with the microcon troller via 4 bit data bus The connection to the ES microcontroller is shown in figure 29 LCD 2X16 IN deleti MODE page X vcc o Contrast P4 f Adjustment 10K Figure 29 LCD 2x16 schematic 9 V Note It is important to know that LCD should be placed or removed from EasyPIC5 only after the power is turned off SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika Pie USER S e MANUAL ZA GRAPHIC LCD q S A graphic LCD GLCD allows advanced visual messages to be displayed While a character S LCD can display only alphanumeric characters a G
20. ler PORTA PORTB E PORTC PORTD and PORTE Oo 2 LL T Each group of eight LEDs can be enabled or disabled using switches on the SW6 The excep tion is PORTE which has 4 LEDs and is connected to the same switch as PORTA The LEDs are enabled when the corresponding switch on the SW6 is ON When enabled LEDs will display the state of the corresponding microcontroller pin Otherwise the LEDs are always off no matter what the port state is as no current can flow through them SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika E Y 0 COQHOOUAHOOUDOO USER S e s 4 Figure 19 illustrates the connection between LEDs and PORTB on the microcontroller A resistor 1s serially connected to the LEDs in order to limit their current In this case the resis o tor value is 1K 2 S Ca HEP E EE Figure 19 LEDs schematic J z Ser i L PORTC LED PORTD LED SE ges a EUREERT FLOW A EE l E es 4 A UJ e MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S E MANUAL d RESET CIRCUIT Among other pushbuttons there is one red button on the far left marked as RESET It is used for MCU reset S Figure 20 Reset button You can see in figure below that the microcontroller MCLR pin is connected to programmer circuit instead to RESET button directly PUSHBUTTON SWITGInIlES page
21. lower position designated as VCC When using some other 28 pin MCU this jumper has to be in upper position designated as RAS SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika E Y 0 COQHOOUAHOOUDOO USER S e s e MANUAL JA Microcontroller pins are routed to various peripherals as illustrated in figure 6 All MCU ports are directly connected to 2 x5 connectorson right side of the board Direct Port Access con nectors Such connectors are normally used for connecting external peripherals to the board or for digital logic probes for testing and measurement page Also all ports are connected to LEDs and push button switches which allows easy monitor ing and testing digital pin state Some pins are connected to other peripherals such as DS1820 temperature sensor RS 232 com munication 7 segment displays LCD etc depends on MCU internal peripheral organization Figure 6 System connnection MECU SOGIMETS PORTA PORTGP 8x10K 2i lt DIR DIR DUR DIR DIP28 DIP18 DIP14 MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S CODQDOODADOOHPDO MANUAL POWER SUPPLY 44 EasyPIC5 has two power supply sources regulated supply from the USB cable by default and external power supply In case of the USB power supply the system should be connect ed to PC using the USB programming cable while the jumper J1 should be
22. me and click Next In a window to appear you just have to click Next and the operating system will find them automatically To complete this process click Finish After that you can run and use PICflash as explained in P Cflash programmer manual In case you have already powered your EasyPIC5 during driver installation Windows will not ask for update drivers again NIEGWTIING THE SYSTEM G After these four steps your EasyPIC5 is installed and ready for use Now you can read a pro gram from the chip or write a new one to it The product CD provides numerous simple pro gram examples which will make your first steps Easy SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika page NURODWUG UO many INTRODUCTION The EasyPIC5 development system is a full featured development board for almost all Microchip PIC microcontrollers It is designed to allow students and engineers to easily test and explore the capabilities of PIC microcontrollers It also allows PIC microcontrollers to be interfaced with external circuits and a broad range of peripheral devices The user can there fore concentrate on software development only Figure 1 illustrates the development board There are identification marks beside each com ponent on a silkscreen both on the top and bottom These marks describe connections to
23. oed opdig pue gzdia OZdIC 8Ldla Ldi Gd ur JejojuoooJoru SHoddns Go dAsey ejeis MOJ uBiu suid ejeAnoe oj suong Jojeujonuejod seJ1uo2 2 19 s EE DE MEM A pened q vop my v ja pegdde og 4 pa ES EI L Te Lai Ce MNA NOS a i d p la P E ESEERRAA am i nd T ps cA M Tak BSIOA Tet EEE EEE i w 4 9 Ech af KT EE i e mE C 99IA pue 0 E T i i T i r N 132222427 pus ala d aA P ejt ai 019Z 9160 Jo d i NUN i 4 pessoeud si Lie es a T TEC SC HEN sjeublis 129jep uojnq y u ym pinoys suid e suid indui y uod H dn jnd Jo ejeis wol uDiu joejJeg uwop Dalias o Jeduunf jnd so dn Iind ege op ox SX ui eoueuuojed E LS uodeuiuuejep E Se Ke 0 Jeduunf NN noJi J S Y S S peuone Gd E T nep us Josisejo eu PF A oe GZ E E KR SE ee juseopud E CN e M Ux Ms 13 3 pue q 0 a v i OE 39 4 BR a es e Deo spod uo sqa319ui ejeudoJdde ou usos i 1909900 i E B E Jii r3 E oe Se m SC JO S yoyms X Lie im ji ihn E E EI GMS LMS 4 We ESTESA He m E 1 sdnoi6 uouws eae gt BH E E Us 440 NO Duren 440m uon PM IM des E Es jeu JOjsIs9J lem 1 5 Aiddns jewod e 0 pojoeu RS Jeu19 xe JO peeu OU SI 3194 od gsn Buisn ueuw UOO 9JE Sod EE DI sen Ajddns samod jea Bured gsn pue jeuse xe SIp JO pow u m q 9soou xe dninuu e Te See ui s Kejdsip JeuJuJeJ6 jueuubes EN
24. on In order to enable connection between the microcontroller and USB communication connector the J12 jumper group should be set to right position In consequence of that the microcontroller pins RC3 RC4 and RCS are disconnected from the rest of the system and connected to the USB communication connector page Figure 39 USB USB communication schematic VSB COMMUNICATION D D O VCC J12 RC3 o RC4 3 RCS J12 E E s RC3 U RC4 U RC5 U are RC3 U RC4 U RC5 U are available to other peripherials connected only to USB rs H 5 Lie Iifeeil li IEL ie E CO Q To enable USB communication all three jumpers must be set to right position SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika E Y 0 COQHOOUAHOOUDNOO USER S e s DR PS 2 COMMUNICATION o PS 2 connector allows direct connection between EasyPICS and devices using PS 2 commu E nication such as PC keyboard or mouse For example the microcontroller can be connected either to a keyboard to capture pressed keys or to PC to act as a keyboard CLK and DATA lines are used for data tansfer In this case they are connected to the pins RC1 and RCO respectively PSA COMMUNICATION PS2 CONNECTOR MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S CODQDOODADOOHPDO MANUAL D
25. roller Se NI T CE Rp D a D D H D LI D D D LI LI D H ef E Ba Lati ET Nl La Dn WI a Er DESCR Gel HO Ka ba E22 Site 47 IS 15 16 17 18 19 20 21 22 23 24 25 tt e WETENEENHN ae 7 e E r Se rina ETTE TEETE HE as nm HET EP HET TTT LITERE ti Deen s m La ZE F 3 4 eis Tian E ad d UII d ES TSRGSHRGRARARS SARE A CH ES CS iu s f s Sa a Dira E SS oan fanen Se Se E gori d TII ice i e AAT j n Fa lf w n SPEERE BE E Lt OTT EasyPIC5 supports microcontrollers in DIP8 DIP14 DIP18 DIP20 DIP28 and DIP40 packages Therefore almost the entire range of Microchip microcontrollers may be used on EasyPIC5 36 pushbuttons allow control of every pin on the micro controller Jumper to select high low state of the input pin when the appropriate pushbutton is pressed 36 LEDs connected to the microcontroller UO ports 7 segment displays in multiplex mode Turn ON or OFF the LEDs on ports A B C D and E You can choose which port you want LEDs to be con nected to Also these switches turn on off digits on 7 segment LED displays Finally these DIP switches let you disconnect all LEDs from MCU pins Potentiometer for LCD contrast Potentiometer for graphic LCD contrast USB port for MCU with USB support PC keyboard connector Reset circuit MCU power swit
26. the microcontroller operation modes and provide additional useful information Since all rele vant information is provided on the board there is almost no need for additional schematics Figure 1 EasyPIC5 development board AM AJO CONVERTER INPVYI l uz e s OT E s 32 USB COMM D51820 san 23 315 N AA LEE 21 ge TNT o P ug PORTA Lag se a QA ea dni Ez A 2 ARA vee e TITHTPRS e d i TASCHE 233 a D iN TERS ac z TIT gaan HILPBLLEE ts imm TTTTITT LJ t z A H AIS LEE uec D 0 ow E SEI i o DIP40 e 10F MCU i EasyPICS Ee j LORS KA wru we d vx VEU EN EEE Ld LJ LV DCH L Ld LI LI ET LEESI A woe GNO aM ox Le OSCI B co aci wo we ads noo wo bo SESE Jue ie t ON m b BA UU E 23456 a og Sununu RAHHHSSS d Eg 2 moe E RN BI TIER CR IO TTTHTTERE LJ or LZ Ag JF17 Choose vologe level 10 be opplied when the button jg pressed MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER S OOD QUS OT AVS OLIN O for MANUAL e SWITCHES E The EasyPICS development board features a number of peripheral devices In order to enable them before programming the appropriate jumpers or switches have to be properly set Switches are devices which have two positions ON and OF
27. to PICflash documentation for M more information Figure 10 USB 2 0 programmer On the right of the USB programmer there is the jumper group J10 These jumpers are used for PGM pin selection There are two different programming modes for PIC MCUs Low Voltage and High Voltage programming mode PICflash supports High Voltage programming mode which can be applied regardless of MCU programming state Some PIC MCUs are shipped with Low Voltage programming mode by default In order to use this programmer you must select the appropriate PGM pin depending on chip For most MCUs there is no need to use PGM selection The jumper group J10 should remain in default position Default position RB3 used as PGM E s PGM PIN SELECTION PGM PIN SELECTION RB5 used as PGM RB4 used as PGM z z zo zo 26 26 5 o ui aw D LI o Note There is no need to reset MCU after programming because programmer will reset the MCU automatically MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL RA J8 and J9 for DIP40 DIP28 DIP18A and DIP18B 3 PROGIRAAINJINILEL page D D SOCKET SELECTION J8 and J9 for DIP20 DIP14 and DIP8 SOCKET SELECTION When using DIP40 DIP28 DIP18A and DIP18B sockets jumpers J8 and J9 should be in
28. two possible connections via 3 pin connec tor As illustrated in figure 4 the middle connector pin can be connected to the left or right pin depending on the jumper s position Figure 4 Jumper as a multiplexer Sea E j DCH Jumper is not placed and Jumper is placed on the left side Jumper is placed on the right side middle pin is unconnected connecting middle and left pin connecting middle and right pin MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL MCU SOCKETS EasyPIC5 is delivered with the 40 pin microcontroller The user can remove this chip and fit another microcontroller DIP40 DIP28 DIP20 DIP18 DIP14 or DIP8 packages into MCU socket MCU SOCKETS page t Figure 5 MCU sockets We AM 3 LED Py LIT el EI Io Fal RT 24 Pe MN d 1 7 SC amp Note There are two DIP18 sockets with different pinouts DIP18A and DIP18B Make sure to select the corresponding DIP18 socket for the 18 pin microcontroller For example PIC18F1220 uses DIPI8A socket while PICI6F628A uses DIP18B socket The 10F MCU socket is used for PICIOF family only and the DIP8 socket is used for all other 8 pin micro controllers Note Since all packages have parallel connections it is not allowed to have more than one microcontroller on the board at a time Note When using PIC18F2331 microcontroller the jumper J18 has to be in

Download Pdf Manuals

image

Related Search

Related Contents

Olympus - Delta User Manual  高精度温度計 | 株式会社チノー  MUX 16 - CONRAD Produktinfo.  NEOPERL 97127.05 Installation Guide  PocketWizard AC 3  LS1216 LS1216L LS1216F LS1216FL  

Copyright © All rights reserved.
Failed to retrieve file