Home
EasyPIC5 User Manual v1.01
Contents
1. L INTRODUCTION ABE A 4 S 7 4 4 f p 205 _ E Faw 3 mEolOR T 4 I 7 7 5 0 J wd wu The EasyPIC5 is a full featured development system 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 therefore concentrate on software development only Figure 1 illustrates the EasyPIC5 development system There are identification marks next to each component on a silkscreen both on the top and bottom These marks describe connection to the microcontroller operation modes and provide additional useful information so that there is almost no need for additional schematics E 4 1 NN SAM COMM IN LES em TE QN ee Q m EM p XB E UJ t 1 EI a Figure 1 EasyPIC5 development system MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER KIeIu enfe To nJetofoIe uJ eTo SWITCHES e The EasyPIC5 development system features a number of peripheral devices In order to enable these before programming the appropriate jumpers or switches have to be properly set Switches mechanical devices used to establish or break connection between two
2. ol m 10 C Gc ccc o z VCC VCC SW1 ___ 0 5V 0 5 if 10K TOK gw d c ec I Hu 22 15 16 MCLR RB7 LiL RAO RB6 __ RB5 RA2 RB4 22 RB3 RA4 RB2 5 RB1 vcc Pd is ae VCC RE2 VSS VDD RD7 L VSS RD6 7 C L OSC1 RD5 7 X OSC2 RD4 RCO RC7 2256 RCA RC6 RC2 RC5 RC3 RC4 RDO RD3 A D Converter input circuit diagram RD1 RD2 v Note When the both potentiometers are in use be sure that jumpers J15 and J16 do not select the same pin Otherwise the development system can be permanently damaged SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika b DIRECT PORT ACCESS CONNECTORS iS _ 1 iz DIRECT PORT ACCESS CONNECTORS All microcontroller input output pins can be accessed via IDC 10 connectors 2x5 placed along the right side of the board For each microcontroller port there is one connector providing up to eight port pins and two additional pins connected to VCC and GND These connectors can be used to connect the system to external peripherals such as Serial Ethernet Compact Flash MMC SD ADC DAC CAN RTC RS 485 etc If on board and external peripherals use the same pins then on board peripherals must be disconnected from the microcontroller using appropri ate jumpers The
3. 1 RB2 RC2 i i 1 1 RD2 1 o o H o o o o LI i i i RB3 i RC3 p o 1 o i ar LI i L RA4 i RB4 19 65 LI 7 1 I oe 1 oid m eu 1 1 1 1 L H 1 1 1 CS i PE RC RD6 1 1 1 m RA7 1 ne 1 m Rc nu J 1 o o i o 1 o i LI L I L 1 AES L odo ns INE EE Paes VCC OV on pin while 5V on pin while button is pressed button is pressed J17 VCC GND GND GND Figure 22 Push buttons circuit diagram MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER Referring to Figure 24 jumper J2 is set to pull up so that pull up resistor pulls the microcontroller pin RB4 to 5V By pressing the button the RB4 pin is connected to ground via J17 Accordingly only when the button is pressed the microcontroller senses a logic zero 0 Otherwise the pin state will always be a logic one 1 PUSH BUTTONS S Referring to Figure 25 switch J2 is set to pull down so that pull down resistor pulls PortB the microcontroller pin to OV By pressing the button the RB4 pin is 5 connected to 5V via J17 SW2 Accordingly only when the button i
4. LEDs Light Emitting Diodes LEDs are components used for displaying pin digital state The EasyPIC5 has 36 LEDs connected to the microcontroller PORTA PORTB PORTC PORTD and PORTE Each group of eight port LEDs can be enabled or disabled using switches of the DIP switch SW The exception is PORTE which has four LEDs and shares the same switch with PORTA Port LEDs are enabled when the corresponding switch of the DIP switch SW6 is ON In this case 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 h b EDS 5 USER MANUAL Figure 19 illustrates the connection between LEDs and PORTB Resistors are serially connected to the LEDs in order to limit their current In this case the resistor value is 1K LED PORTB LED PORTC LED PORTD LED CURRENT FLOW 4 lt SURREPT lt j lt 4 lt 7 lt 8x 1K Figure 19 LEDs circuit diagram MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD NANUN TX RESET CIRCUIT Apart from 36 push buttons provi
5. Select pull up to enable port pins to detect logic zero 0 and vice versa PORTA connected to a resistor network using DIP switch SW1 If a switch is OFF the appropriate pin does not have a resistor attached It enables PORTA pins to be used in analog mode as well as digital I O pins The same applies to other ports PORTB PORC PORTD and PORTE 36 LEDs connected to the microcontroller I O ports 20 pin connector allows an easy connection of graphic LCD Graphic LCD contrast potentiometer Reset circuit 36 push buttons allow control of every pin on the micro controller Jumper to select high low state of an input pin when the appropriate push button is pressed Touch panel connector and Touch panel controller aum 1 rr Im and a 2j ISIN x u m T GLCD 128x64 MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD CONNECTING THE SYSTEM USER X e Q Apart from this manual the development system box contains development system product CD USB cable and user manuals for P Cflash programmer mikrolCD Debugger and Installing USB drivers In order to use the EasyPIC5 properly it is necessary to go through the following steps page 5 Step no 1 Take the development system and product CD out of the box Insert the product CD into CD drive Do not connect the development system
6. input and converts it into a digital value Basically you can measure any analog signal that fits in the range acceptable by PIC 0 VCC The EasyPIC5 development system has two potentiometers used to adjust the level of analog signals in order to test the operation of analog to digital converter ADC Both potentiometers outputs have voltage in the range of 0 5V These two analog signals can be connected to different analog input pins simultaneously The jumper group J15 enables the P1 potentiometer to be connect ed to one of the following pins RAO RA1 RA2 or RA4 The jumper group J16 enables the P2 potentiometer to be connect ed to one of the following pins RA1 RA2 RA4 or RAS E DiSp x Jd Figure 42 A D Converter input AVD CONMERUER In order to measure an analog signal without interference turn off the corresponding switch of the DIP switch SW1 This will disable connection between PORTA pins and pull up down resistors MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD TT E vcc Pull up down resistors on pull up down i E PORTA analog input pins lo P should be disabled using the Potentiometer P1 is con DIP switch SW1 Yp nected to the RA2 pin m and potentiometer P2 to E
7. and J9 for DIP8 9 DIP14 and DIP20 When using DIP28 DIPAO DIP18A and DIP18B sockets jumpers J8 and J9 should be set in the upper position default as shown in Figure 12 When using DIP8 DIP14 and DIP20 sockets these jumpers should be set in the lower position as shown in Figure 13 Jumper J7 allows the use of the MCLR pin as a RESET or a digital I O pin It can be RA5 or pin depending on MCU in use When J7 is in lower position the hardware reset is enabled by pressing the reset button The MCLR pin cannot be used as I O pin When is in upper position the MCLR pin can be used as I O pin Hardware reset is disabled in this case J7 T MCLR pin MCLR 7 used as I O J7 MCLR pin used as RESET Figure 14 J7 jumper SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika MANUAL OSCILLATOR 2 The EasyPIC5 enables you to use microcontrollers fitting eight different sockets Since these are not close to each other there are two on board clock oscillators One of them denoted by OSC1 is con nected to DIP28 DIP40 DIP18A and DIP18B sockets Another one denoted by OSC2 is connected to Que DIP8 DIP14 and DIP20 sockets There are identification marks next to each MCU socket on a silkscreen indicating which oscillator should be used Quartz crystal is placed in the X1 socket by default TZ If you use OSCA it is ne
8. information Figure 10 USB 2 0 programmer There are two different programming modes for PIC MCUs Low Voltage and High Voltage Some of the PIC MCUs are shipped with Low Voltage programming mode enabled by default PICflash is a High Voltage programmer only and it can program MCUs regardless of whether they have Low Voltage programming mode enabled or disabled In the USB programmer section there is the jumper group J10 These jumpers are used for PGM pin selection The PGM pin is used to enter program ming mode when Low Voltage programming is enabled As the Low Voltage programming mode is not supported by PICflash programmer this jumper group J10 should remain in default position Default position RB3 used as PGM PGM PIN SELECTION PGM PIN SELECTION RB5 used as PGM RB4 used as PGM USB 2 0 PROG az a F Q 5 pj 58 v Note There is no need to reset MCU after programming because it will be automatically cleared by the programmer MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD J8 and J9 for DIP28 DIP40 DIP18A and DIP18B SOCKET SELECTION OUR USB 2 0 SOCKET SELECTION J8
9. C4 RA6 RDO RD3 RAZ RD1 RD2 LX Oscillator connection with MCU SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika 5 USER e e e e MANUAL MikroICD IN CIRCUIT DEBUGGER MikroICD is a highly effective tool for Real Time debugging on hardware level The mikrolCD debug ger enables you to execute a program on PIC microcontroller and view variable values special func tion registers SFRs and EEPROM while the program is running MikrolCD can be used with any PIC compiler manufactured by MikroElektronika mikroC mikroBa sic or mikroPascal You just have to select the appropriate build type Release or ICD Debug build a 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 Stop Debugger Ctrl F2 On Board USB programmer with mikrolCD Program debugging XKCIRGUIT DEBUGGER amp D D 1 CAA Note For more information on how to use mikrolCD debugger please refer to the mikrolCD User s Man ual You can also find it in Help documentation inside any of the before mentioned compilers MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
10. E3MikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD waking it si ple OO c f 29 dd b 1 4 P e e 8 e E M e 6 e e amp e e o e e A large number of useful peripherals ready to go practical code examples and a broad set of add on boards make MikroElektronika development systems fast and reliable tools that can satisfy the needs of experienced engineers and beginners alike VN Lead LUI IN CIRCUIT IN CIRCUIT TOUCH PROGRAMMER SCREEN DEBUGGER CONTENTS EasyPIC5 KEY FEATURES CONNECTING THE SYSTEM INTRODUCTION Switches Jumpers MCU Sockets Power Supply On Board USB 2 0 Programmer Oscillator mikroICD Hardware In Circuit Debugger LEDs Reset Circuit Push Buttons segment Displays 2x16 Character LCD Graphic LCD Touch Panel RS 232 Communication Module USB Communication Module PS 2 Communication Module DS1820 Digital Thermometer A D Converter Test Inputs Direct Port Access Connectors E3 MikroElektronika O LLI Q LLI gt cc LL N 2 A lt cc lt I 2 lt LLI lt LL N Q gt EasyPIC5 KEY FEATURES 1 External power supply connector 8 16V AC DC 2 Power supply selector It is possible to use external or need for ext
11. S 2 connector VCC O PS2 PS2 COMMUNICATION MODULE S PS 2 communication circuit diagram MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER SO QUO OU AUD OPO 051820 DIGITAL THERMOMETER DS1820 digital thermometer is convenient for environmental temperature measurement It can measure temperature in the range between 55 C and 125 C with 0 5 C accuracy It must 229 be properly placed in the 3 pin socket provided on the 52 EasyPIC5 with its rounded side directed to the right as marked UU on the board refer to the Figure 41 below Otherwise the 051820 could be permanently damaged The 051820 data pin HU can be connected to either RA5 or RE2 pin which is determined gt by the jumper J11 gt _ DS1820 connector z 125 C E 55 C A VCC VCC S T E J11 10K VCC RAS A hc 11 11 DQ line is DQ line is DQ line is connected to RE2 connected to RAS disconnected Figure 41 DS1820 circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika Foy USER MANUAL BO A D CONVERTER TEST INPUTS There are many applications of A D conversion The microcontroller takes an analog signal from its
12. UGH PANEL pase 5 DRIVEB 735822232220 2203220221232 TEIL MLLI LITEIT TOUCHPANEL CONTROLLER Touch panel circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika eTofein oyejofoin oYe1ofoIn oYon USER MANUAL RS 232 COMMUNICATION MODULE RS 232 communication module enables point to point data trans fer It is commonly used in data acquisition applications to transfer data between the microcontroller and PC Since the voltage levels of the microcontroller and PC are not directly compatible with each other a level converter such as MAX232 must be used In order to provide more flexible system the microcontroller is connected to the MAX232 the DIP switches SW7 SW8 The DIP switch SW7 is used to connect Rx line to RC7 RB2 RB1 RB4 or RB5 The DIP switch SW8 is used to connect Tx line to RC6 RB5 RB2 RB1 RA2 Note that pin RB2 must not be simultane ously connected to Rx and Tx line If you want to implement hard ware handshaking it is necessary to connect the RBO pin to CTS line and the RC2 pin to RTS line using the DIP switch SW7 RS 232 COMMUNICATION MODULE 5 Connection between microcontroller and PC MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER USB COMMUNICATION MODULE USB communicatio
13. USB cable jumper J6 should be set in the right hand position PROVER SUPPLY page When using external power supply the EasyPIC5 board produces 5V using LM7805 voltage regulator The external power supply can be AC or DC while its voltage ranges between 8 and 16V In this case jumper J6 should be set in the left hand position Figure 9 illustrates USB and external power supply circuit diagram Power supply connector OFF gt ON POWER SUPPLY SWITCH gt SYSTEM VCC 470uF CN1 8 16V AC DC 2222 a 5V vo FP1 7 Vin Vout 3 ECC GND U SB C8 C15 E1 470uF 100nF 100nF DB1 B280C1500 vv Figure 9 Power supply circuit diagram J6 in the left hand position system is powered from external AC DC power adapter J6 in the right hand position system is powered from PC over USB cable Power supply select jumper SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika USER MANUAL 41 ON BOARD USB 2 0 PROGRAMMER There is no need to use external equipment during pro gramming as the EasyPIC5 development 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 via the PICflash programming software supplied with the EasyPIC5 board Please refer to P Cflash documentation for more
14. cessary to remove it from the X1 socket and place it in the X2 socket a HO c c 91 m met O EE a 7 i rarai Se ON 50480 ae ILCD 2x16 GY C QD LI M vu 9 V 10F MCU socket is not connected to either oscillator The appropriate MCUs have only an internal oscillator and do not use quartz crystal Refer to the Figure above SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD USER for On some of the microcontrollers oscillator input pins can also be used as digital input output pins In order to implement this feature the EasyPIC5 has jumpers enabling MCU to be connected to either oscillator or digital I O pins Refer to the schematic of the OSC oscillator in Figure 16 page SENTIS and 7 pins are RA6 and RA pins are used as oscillator inputs used as digital I O pins MCLR RB7 RAO RB6 RA1 RB5 RA2 RB4 RA3 RB3 RA4 RB2 RAS mu vcc REO RBO 1 VDD RE2 vss E asma Default position 443 VDD 207 n 1 us vss 26 RD6 i RA7IOSC1 RD5 WN x1 j RAG OSC2 RD4 8MHz i p RCO RC7 p C6 C7 22pF 22pF RC2 RC5 RC3 R
15. connectors can also be used for attaching logic probes or other test equipment Figure 45 Connecting external peripheral via flat cable Figure 44 Direct port access connectors MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD Oo S Co e E LN VCC J2 n EE A 2 2 Pull down line dfe is connected ec E RN2 sw2 Pull up line is e i connected 1 1 3 RB2 RB3 RB4 I RES lines E57 2 are disconnected s i i 3 ae i RPACK8 9 8x10K TERN NN 1 MCLR RB7 RAO RB6 RA1 RB5 RA2 RB4 Q RA3 RB3 RA4 RB2 RA5 RB1 EE REO RBO RE1 VDD VCC CN9 VCC RE2 VSS RB 0 RB 1 VDD RD7 vss RD6 RB2 RB3 OSC1 RD5 ante OSC2 RD4 RB4 RB5 Ed RB6 RB7 m Z L RCA RC6 RC2 RC5 RC3 RC4 RDO RD3 RD1 RD2 VCC HEADER 5x2 PORTB connection circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika Expand your development system with our extra boards Package content Development system EasyPIC5 comes with PIC16F887 CD mikroE product CD with software Cables USB cable Documentation User manual for EasyPIC5 driver installation guide nstalling USB MMC SD multimedia card drivers manual for P Cflash programmer and manual for mikro CD System specifications USB programm
16. contacts As for this sys tem switches are grouped in nine DIP switches DIP switches SW1 SW5 are used to enable external pull up pull down resistors on port pins Each pull up pull down resistor is individually enabled DIP switch 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 displays Each display digit can be individually enabled 255 lt DIP switches SW7 and SWS select MCU pins to be used as RX or TX in serial communication DIP switch SW9 is used to control both LCD backlights communication PS 2 connector and touch panel driver Figure 2 illustrates the DIP switch SW9 As seen switches 1 2 3 and 4 are ON whereas 5 6 7 and 8 are OFF SLIQ READ X Uil O RAD READ Y N S RAL lt SE RCO DRIUEB MN 1 2 TOUCHPANEL CONTROLLER lt Mia RCO Mm 1 amp LCD UCC GLCD co _ VCC Figure 2 DIP switch SW9 ES BED Switchis ON amp x2 e Switch is OFF lt SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika fe USER e MANUAL JUMPERS Similarly jumpers used to break or establish connection between two points Under the plastic cover of a jumper there is metal contact which establishes connection w
17. ded on the board there is one red button on the far left marked as RESET As its name suggests it is used for MCU reset Figure 20 Reset button As seen in Figure 21 the microcontroller MCLR pin is connected to the programmer instead of being directly connected to the RESET button PICflash On Board USB programmer VCC O Figure 21 Reset switch circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika RESET CIRCUIT 5 MANUAL The EasyPIC5 has 36 push buttons which can be used to change states of digital inputs on the microcontroller ports Con nection between buttons and PORTA PORTB PORTC PORTD and PORTE is shown in Figure 22 Jumper 17 deter mines whether a button press will bring logic zero 0 or logic one 1 to the appro priate pin When the button is released the pin state is determined by pull up or pull down port jumpers As seen in the Figure below J17 is connected to 5V which means that the button press will bring logic one 1 to the appropriate pin PUSH BUTTONS 5 Push buttons ____ __ _ PORTB PORTC PORTD 4 1 EM c 1 1 nce ee E 1 1 1 i RAO f 1 i RCO i RDO i o o o 1 o A i 1 I 1 i 1 A i RC 1 RD1 5 o i o 1 9 o 1 i RA2
18. er USB type B Power supply External 8 16V AC DC PC over USB cable 5V DC Power consumption gt 75mA depends on connected pheriperials Size 25 x 21cm 9 8 x 8 2 inch CAN SPI board Weight 393g 0 866 Ibs lt i _ 85485 board 7 y wwe 1 ext ev f TIL a Lug Tt so ATTAT a E V EOM NA 208 x LAU d Woes 1 mmu IL pie gt E RTC2 Real Time Clock and many others Please visit our website www mikroe com MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD e le OOOOO LHOddns TV2INHO3L MOU SN 1 se jd uoneuuojur jeuonippe snf NOK JO sjonpoJd Aue suJe qoJd ase JI UJO2 90JX1U49 921JO 7 M sn 12e1uo2 eseejd jesodoid sseuisnq e 10 JUBWWOD uonsenb Aue nof y
19. ernal power supply 3 Power ON OFF switch 4 On board USB programmer with mikroICD support Its key feature is an ability to upgrade By downloading a new software it will be possible to program new MCUs in coming years 5 RS 232 communication module with selectable TX and RX for all microcontrollers USB port for MCU with USB support PC keyboard connector DS1820 temperature sensor connector oe converter It is connected to potentiometers P1 and P2 10 7 segment displays in multiplex mode 11 16 pin connector allows an easy connection of LCD 12 LCD contrast potentiometer 13 DIP switch SW6 turns on off LEDs on ports A B C D and E and enables digits on 7 segment LED display E 15 a E gt 7 E 2 5 E 8 L E wd 7 7 RR ws vv ws at LI amp d T USB power supply When using USB port there is no A D input selector used for testing the operation of A D 14 15 16 17 18 19 20 22 21 23 24 CasuPIC5 A 8 DIP switch SW9 turns on off touch panel controller PS 2 and LCD and GLCD backlights EasyPIC5 supports microcontrollers in DIP8 DIP14 DIP18 DIP20 DIP28 and DIP40 packages Jumper to determine port performance in idle state pull up pull down
20. hen the jumper is placed over two pins mum Jumper is ON LPAELRSSSD Ex Jumper is OFF Jumper as a switch Jumper is commonly used as a selector between two possible connections via 3 pin connector As illustrated in Figure 4 the middle connector pin can be connected to the left or right pin depending on the jumper s position e ja 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 Figure 4 Jumper as multiplexer MikroElektroniKa software HARDWARE SOLUTIONS FOR EMBEDDED WORLD MCU SOCKETS The EasyPIC5 comes with a 40 pin microcontroller PIC16F887 The user can remove this microcon troller and fit another one in DIP40 DIP28 DIP20 DIP18 DIP14 or DIP8 package into MCU socket Note Note ci Cre E Pon There two DIP18 sockets with different pinouts DIP18A and DIP18B If you use 18 pin micro controllers make sure to select the right socket For example PIC18F1220 uses DIP18A socket while PIC16F628A uses DIP18B socket All 8 pin microcontrollers use DIP8 socket The exception is PIC10F family which uses 10F MCU socket Since all packages have parallel connections it is not allowed to have more than one microcon troller on the board a
21. n connector is placed in the upper right corner of the EasyPIC5 It is used with PIC microcontrollers having USB support such as PIC18F2450 or PIC18F4550 Note that this USB connector cannot be used for programming In order to make con nection between the microcontroller and USB connector the J12 jumper group should be set in the right hand position As a result the microcontroller pins RC3 RC4 and RC5 are disconnected from the rest of the board and connected to the USB connector C16 C17 RC3 MCU 1001 100 USE MODULE 55 12 12 RC3 U RC4 U RC5 U are RC3 U RC4 U RC5 U are available to other peripherials connected only to USB USB communication circuit diagram SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika USER MANUAL PS 2 COMMUNICATION MODULE PS 2 connector allows the EasyPIC5 to be directly connected to devices such as PC keyboard or mouse The PS 2 communication is of half duplex type It means that the microcontroller can be connected to a keyboard to capture pressed keys or to a PC to act as a keyboard CLK line is used for clock transfer whereas DATA line is used for data transfer In this case these lines are connected to the RC1 and RCO wea pins respectively f gt P
22. only after the power is turned off SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika A graphic LCD GLCD provides an advanced method for displaying visual messages While a character LCD can display only alphanumeric char acters a GLCD can be used to display messages in the form of drawings and bitmaps The most com monly used graphic LCD has the screen resolution of 128x64 pixels The GLCD contrast can be adjusted 9 using the potentiometer placed right above the GLCD Bt KI Contrast Adjustment GLCD VCC Note Have in mind that GLCD should be placed or removed from the EasyPIC5 only after the power is turned off MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD TOUCH PANEL Touch panel is a tin self adhesive transparent panel which could be placed over the screen of 28 graphic LCD It consists of two separate foils E which form a sandwich structure It is very sensi tive to press so that even a soft touch causes some changes on the output signal It is used in various user friendly devices in combination with graphic LCD Connector CN13 enables this device to be con nected to on board touch panel controller the active part of which consists of 5 discrete transis tors Four switches of the DIP switch SW9 enable or disable connection between this controller and RAO RA1 RCO and RC1 pins TO
23. s MCLR RB7 pressed the microcontroller senses a QR RBG E RA1 RB5 logic one 1 Otherwise the pin state will i 5V while pressed always be a logic zero 0 RAS RBS RA4 RB2 RA5 RB1 RB4 REO RBO RE1 VDD RE2 VSS J17 VDD RD7 VSS RD6 Figure 25 _ Button with pull down resistor SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika USER MANUAL The EasyPIC5 has four 7 segment displays set up to operate in multiplex mode Data lines are connected to PORTD while each display is enabled by four PORTA bits Common marking of segment display segments J SEGWIENT DISPLAYS S DIS3 DIS2 0151 DISO nnn l Q11 Y 08 7 segment display circuit diagram MikroElektroniKa software HARDWARE SOLUTIONS FOR EMBEDDED WORLD 2X16 CHARACTER LCD A standard character LCD is probably the most widely used data visualization component It usually displays messages in two lines containing up to 16 alphanumer ic characters each The character LCD communicates with the microcontroller via 4 bit data bus Figure 29 illustrates its connection to the microcontroller VCC 2 Contrast Adjustment 10K LUE 2x16 LCD circuit diagram 23008 CHARACTER LED 5 Note Have in mind that LCD should be placed or removed from the EasyPIC5
24. t a time Some of the 28 pin PIC microcontrollers use the seventh pin as 5 while some of them use this pin as VCC Depending on this jumper J18 must be set in RA5 and VCC position respectively For example if you use the PIC18F2331 microcontroller jumper J18 has to be set in VCC position SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika C J VCU SOCKETS 74 040 V A MANUAL The microcontroller pins are routed to various peripherals as illustrated in Figure 6 All MCU ports are directly connected to Direct Port Access 2x5 10 pin connectors These are normally used for connecting external peripherals to the board or as points for digital logic probe connecting All ports are connected to LEDs and push buttons which allows you to easily test and monitor dig ital pin state Some of the pins are connected to on board peripherals such as DS1820 temperature sensor RS 232 communication module 7 segment displays LCD etc MICU SOCKETS S PORTA PORTGP PORTA E Figure 6 System connection MikroElektroniKa software AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MANUAL NIE POWER SUPPLY ES E The EasyPIC5 can use one out of two power supply sources PC power supply over USB cable by default or external power supply external AC DC power adapter When using power supply over
25. to a PC yet Step no 2 Install PICflash programmer software to enable a program to be transferred from PC to the microcontroller chip For detailed installation instructions refer to the P Cflash programmer manual Step no 3 Install USB drivers on your PC to enable programmer s hardware to operate properly on the EasyPIC5 board For detailed installation instructions refer to the nstalling USB driv ers manual Step no 4 Connect the EasyPIC5 to PC using USB cable Please use one of the USB ports on the back of the PC because these are directly connected to the computer motherboard 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 You will be immediately prompted whether Win dows should search for new drivers update or not Select the option No not this time and click Next Another window appears click Next and the operating system will automatical ly find the drivers Click Finish to complete this process and run PlCflash as explained in the PICflash programmer manual CONNECIING UME SYS ULE After these four steps your EasyPIC5 is successfully installed and ready for use You can read a program from the chip or write another one into it The product CD provides numerous simple program examples to make your first steps Easy SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD MikroElektronika LON LROUDIUIG nn N
Download Pdf Manuals
Related Search
Related Contents
User Manual - Oakley Sound Systems USER - Viglen SolarPIR™ User`s Manual Samsung ST67 راهنمای محصول データシート Copyright © All rights reserved.
Failed to retrieve file