Home

BigPIC6 Development System User Manual

image

Contents

1. erro 4 GLCD 128x6 SOON A A R AA AA A ANA A NANA gt POS gt gt S gt ONP gt S gt gt gt gt S gt O gt p gt pO Op gt O O gt gt OOOO gt OS 9 GUS Y 8 toy EEE Sees SS ray pm mm U mm EN sajru UN am un sAm CRH mikroklekironika DS1820 temperature sensor Serial EEPROM Graphic LCD display contrast adjustment Touch panel controller Graphic LCD display connector Touch panel connector Push buttons to simulate digital inputs Protective resistor ON OFF jumper Pins logic state selector Reset button MENU keypad Port expander 67 LEDs to indicate pins logic state Alphanumeric LCD display contrast adjustment Alphanumeric LCD display connector BigPIC6 Development System 1 0 Connecting the System to your PC Step 1 Follow the instructions for installing USB drivers and the PICflash with mikrolCD programmer provided in the relevant manuals It is not possible to program PIC microcontrollers without having these devices installed first In case you already have some of the MikroElektronika s compilers installed on your PC there is no need to reinstall drivers as they will be automatically installed along with the compiler Step 2 Use the USB cable to connect the BigPIC6 development system to your PC One end of the USB cable provided with a connector of the USB B type should be connected to the development system as shown i
2. 11 0 DS1820 Temperature Sensor 1 wire serial communication enables data to be transferred over one single communication line while the process itself is under the control of the master microcontroller The advantage of such communication is that only one microcontroller pin is used All slave devices have by default a unique ID code which enables the master device to easily identify all devices sharing the same interface DS1820 is a temperature sensor that uses 1 wire standard for its operation It is capable of measuring temperatures within the range of 55 to 125 C and provides 0 5 C accuracy for temperatures within the range of 10 to 85 C Power supply voltage of 3V to 5 5V is required for its operation It takes maximum 750ms for the DS1820 to calculate temperature with 9 bit resolution The BigPIC6 development system provides a separate socket for the DS1820 It may use either RE2 or RE5 pin for communication with the microcontroller which depends on the position of switches 7 and 8 on the DIP switch SW12 In Figure 11 5 switch 8 on the DIP switch SW12 is in ON position which means that the communication is enabled via the RES pin Lo NOTE Make sure that half circle on the board matches the round side of the DS1820 Figure 11 1 DS182 Figure 11 2 DS1820 Figure 11 3 Switch 7 on Figure 11 4 Switch 8 on connector DS1820 is is plugged into the the DIP switch SW12 is in the DIP switch SW12 is in not placed connector ON
3. KelND SpA BAT1 3V 230MA DS1307 Figure 12 2 Real time clock and microcontroller connection schematic MikroElektronika 18 BigPIC6 Development System 13 0 LEDs LED diode Light Emitting Diode is a highly efficient electronic light source When connecting LEDs it is necessary to use a current limiting resistor the value of which is calculated using formula R U I where R is referred to resistance expressed in ohms U is referred to voltage on the LED and stands for LED diode current A common LED diode voltage is approximately 2 5V while the current varies from 1mA to 20mA depending on the type of LED diode The BigP C6 development system uses LEDs with current 1mA The BigPIC6 development system has 67 LEDs which visually indicate the state of each microcontroller I O pin An active LED diode indicates that a logic one 1 is present on the pin In order to enable the pin state to be shown it is necessary to select appropriate port PORTA PORTB PORTC PORTD PORTE PORTF G PORTH or PORTJ using the DIP switch SW10 wae n CHE Mier VERTI v DAMAGED Leo ra 1 CONTRAS PORTB LEDs are turned on RBO AR LD7 PV PIC18Fxx Figure 13 2 LED diode and port PORTB connection schematic MikroElektronika BigPIC6 Development System 1 14 0 Push Buttons The logic state of all microcontroller digital inputs may be changed using the push buttons Jumper J12 is used to determine the logic state to be applied
4. BI P C 6 User manual All MikroElektronika s development systems represent irreplaceable tools for programming and developing microcontroller based devices Carefully chosen components and the use of machines of the last generation for mounting and testing thereof are the best guarantee of high reliability of our devices Due to simple design a large number of add on modules and ready to use examples all our users regardless of their experience have the possibility to develop their project in a fast and efficient way Q gt hi el a S a EJMikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD waking ik simple TO OUR VALUED CUSTOMERS 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 Pe a General Manager The Microchip9 name and logo PIC and dsPIC are registered trademarks of Microchip Technology Incorporated in the U S A and other countries All other trademarks mentioned herein are property of their respective companies and are only used for the purpose of identification or explanation and to the owner s benefit with no intent to infringe BigPIC6 Development System TABLE OF CONTENTS Introduction to BigPIC6 Development System Key Features 10 0 11 0 12
5. 6 lt lll CHARACTERS IN 4 BIT MODE l m IMPORTANT BE SURE TO TURN OFF THE POWER SUPPLY BEFORE PLACING LCD OR GLCD ON DEVELOPMENT BOARD OTHERWISE BOTH LCD AND GLCD UNITS CAN BE PERMANENTLY DAMAGED O BE SURE TO PLACE LCD AND GLCD PROPERLY OTHERWISE BOTH Fr LCD AND GLCD UNITS CAN BE PERMANENTLY DAMAGED O MBN SL 5522202 iii TR AAA A S l Ell ERED Em ERED En CR css OF OF 0 MA ERED 1 ERED mm m mis m Em MODE DO EN m m m gt Ol R aa im ml im ml im imi imi sm Je Z 7 Z Z Z 7 4 A 4 e D s OA Z Pull A Z 80000000 Z Z j Z Z fru A f PORD A Z Es Es lis isj ls ss Essj ls apm lt Z mam s 2009 Z lt HHB l nan THU ay Z J 111 1111 ms Of Z Z A noo DEE Ko Aer 7 j mmm A un VOLTAGE Z Z re Samm o mm REFERENCE L i A ESE ES IE N ES E IE u LI MBN ar j gt i HIM Z Z u E Bee 8 duu m j j a m Z Z wo H 7 mee p Ses PORTF D Z e 0 Z W III L Z Z m Z Z 3 0000 ews m JC el m j OO Z O SERIAL EEPROM 9 0 7 ROHS Mr a SW1 SW9 ENABLE PULL UP OR PULL DOWN RESISTORS ON PORTA PORTB PORTC PORTD PORTE PORT PORTG PORTH AND PORTJ PINS SW10 TURNS ON OFF PORT LEDS SW11 ENABLES SP COMMUNICATON AND CONNECTS PORT EXPANDER S CS AND RST LINES TO REO AND RE1 PINS RESPECTIVELY TURNS ON OFF PORTO AND PORTI LEDS CONNECTS 4 096V VOLTAGE REFERENCE TO RA3 PIN SW12 CONNECTS RX AND TX LINES FOR RS 232A
6. COMMUNICATION TO RC7 AND RC6 PINS RESPECTIVELY CONNECTS RX AND TX LINES FOR RS 232B COMMUNICATION TO RG2 AND RG PINS RESPECTIVELY CONNECTS EEPROM SDA AND SCL LINES TO RC4 AND RC3 PINS RESP col SW13 CONNECTS TOUCHPANEL CONTROILER T RAO AND RA1 ANALOG INPUTS AND TO RJ6 AND RJ7 CONJROL PINS CONNECTS RTC SDA SCL AND RTG OUT INES TO RC4 RC3 AND RBO PINS RESPECTIVELY ENABLES LCD AND GLCD BACKLIGHT J1 J9 SELECT PULL UP OR PULL DOWN RESISTORS ON PORTA PORTB PORTC PORTD PORTE PORTF PORTG PORTH AND PORTJ J10 CHOOSE BETWEEN EXTERNAL OR U5B POWER SUPPLY J11 CONNECTS POTENTIOMETER P3 TO RAO RA1 RA2 OR RA3 00000000 H sil 41111111 mlel 44444444 Down 0 CONTROLLER ECTIVELY NNECTS DS1820 TEMPERATURE BENSOR TO RE2 OR RES PIN m m Im mi sm ml mi mi s sql ml PORTJ Em UN mg Es Es lis lis lis ssi saj LM E ANALOG INPUT 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3 a Ea EN a ED un J13 DISABLES CURRENT LIMITING PROTECTION FOR BUTTONS FOR MORE INFORMATION REFER TD THE BIGPIC MANUAL O HIT HRE DEVELOPMENT BOARD E BY MIKROELEKTRONIKA Isi sl imi mi ml ml sl ml mmm SY ae Down SATA v O Mass E D 5 sm ml ml ml ml m sl mi Se eee v HH N ESSE E E E O O O SS E OSOS S SS O OSOS E S SS SS O SS O OS SS S OSOS OS S SOS OS OS OO SS ED EDGE CONTACT MCU CARD
7. levers must be closed Extraction levers used for fixing MCU card in the opened position Extraction levers used for fixing MCU card in the closed position In addition to MCU card with the microcontroller in 80 pin TQFP package there are also cards with microcontrollers in 64 pin TQFP package which can be ordered separately They are plugged into the connector in the same way as the above mentioned card MikroElektronika BigPIC6 Development System 3 0 On board USB 2 0 PiCflash with mikrolCD Programmer A programmer is a necessary tool when working with the microcontroller The BigP C6 development system has an on board P Cflash programmer with mikrolCD support which allows you to establish a connection between the microcontroller and your PC Use the PICflash program to load a hex file into the microcontroller Figure 3 2 shows the connection between a compiler P Cflash programmer and microcontroller USB type B connector LED diode marked as USB LINK indicates connection established between programmer and PC LED diode marked as PRG ICD will be turned on during programming the microcontroller E mikroC PRO for PIC C Program Files Mikroel File Edit wiew Project in dae B B TE sala Run Tools Help char i void Move Delayt Delay me 500 void mainiji ANSEL ANSELH C1ON bit C20N bit Write a code in some of PIC compilers generate a hex file and load data into the microcontroller usng the on boar
8. shall assume no responsibility or liability for any errors omissions and inaccuracies that may appear in this manual In no event shall MikroElektronika its directors officers employees or distributors be liable for any indirect specific incidental or consequential damages including damages for loss of business profits and business information business interruption or any other pecuniary loss arising out of the use of this manual or product even if MikroElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at any time without prior notice if necessary All the product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies and are only used for identification or explanation and to the owners benefit with no intent to infringe HIGH RISK ACTIVITIES The products of MikroElektronika are not fault tolerant nor designed manufactured or intended for use or resale 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 MikroElek
9. to the desired microcontroller pin by pressing the appropriate push button The purpose of the protective resistor is to limit the maximum current thus preventing a short circuit from occurring If needed advanced users may short such resistor using jumper J13 Right next to the push buttons there is a RESET button which is not connected to the MCLR pin The reset signal is generated by the programmer g ri F a A z Y K oo e Top view Inside view g J p LET r i i My co j iy i Li L b Tm F Push buttons used for Lav Feo FORT simulating digital inputs Y G a a SB deeds s a a O Mio Bottom view Side view Jumper J13 used for short VCC O ing protective resistor R7 RESET RESET button 10K RSTbut E Jumper J12 used for selecting logic state to be applied to the pin by pressing button Figure 14 1 Push buttons By pressing any push button when jumper J12 is in the VCC position a logic one 5V will be applied to the appropriate microcontroller pin as shown in Figure 14 2 Jumper J12 in the VCC position PIC18Fxx Figure 14 2 Push buttons and port PORTB connection schematic MikroElektronika 20 BigPIC6 Development System 15 0 MENU Keypad There is a navigation keypad called MENU provided on the BigP C6 development system It primarily consists of four push buttons marked as left right up and down arrow Besides there are also two additi
10. 0 13 0 14 0 15 0 16 0 17 0 18 0 19 0 20 0 MENU INC VC STO sucursales 2x16 LCD Display 128x64 Graphic LCD Display Port Expander Additional I O Ports 1 0 Connecting the System to your PC 2 0 Supported Microcontrollers 3 0 On board USB 2 0 PICflash with mikrolCD Programmer 4 0 ICD Connector 5 0 mikrolCD In Circuit Debugger 6 0 Power Supply 7 0 RS 232 Communication Interface 8 0 Serial EEPROM 9 0 Voltage Reference A D Converter a beneandae saad bsacgsvacesusceeades Touch Panel uuu ull uuu Eaa a s ii KOPO o dre unu Ds 4 BigPIC6 Development System Introduction to BigPIC6 Development System The BigPIC 6 is a great development tool suitable for programming and experimenting with PIC microcontrollers from Microchip Such development system includes an on board programmer with mikrolCD support providing an interface between the microcontroller and the PC You are simply expected to write a code in one of the PIC compilers generate a hex file and program your microcontroller using the on board P Cflash programmer Numerous on board modules such as 128x64 graphic LCD display alphanumeric 2x16 LCD display port expander etc allow you to easily simulate the operation of the target device Full featured and user friendly development board for PIC microcontrollers u E E 77772 Jo High performance USB 2 0 Pi ee On board programmer r al dis au id PROGRAMME
11. 4g 0 89lbs a a EXTERNAL fe CD i ag 16 momig a SUPPLY g ha MikroElektronika BigPIC6 Development System m EXTERNAL oO os E HEB HA m TP HH O la ca mi a Cal mii JEJL N oom Ji2 IS USE D FOR SELECTING VOLTAGE LEVEL TO BE APPLIED WHEN BUTTON IS PRESSED 24 Se e 20 Key Features Power supply voltage regulator Microchip debugger connector ICD2 or ICD3 On board programmer s USB connector USB 2 0 programmer with mikro CD support A connector for RS 232 communication A D converter test inputs B connector for RS 232 communication DIMM 168P connector for MCU card Pull up pull down resistor selection DIP switches to enable pull up pull down resistors O port connectors Real time clock RTC module DIP switches to enable disable integrated modules 4 096V voltage reference oe oe eS NS ee eo ee UN WUN EN eS F E EE EE EE EE EE EE EE VOLTAGE LEVEL TO BE APPLIED WHEN MENU KEYPAD BUTTONS g E w ARE PRESSED IS ALSO SELECTED l I 1 I 1 I 1 I I BY JUMPER J12 POSITION n EE EE EE Bie 8 co pa ka ka e ll h E z m G 88 8 8 40 44 8 8 4 FG O I I m E EN EN mm m o e E E E E E E 1 Jj j j j 3 l J 1 gt g LI Di F AEE E E l l POWER _O ukrgp 1O I W RR P ee 5 5 5 575 5 5 TS ooo SUPPLY W ES 8luse z LCD 2x1
12. BigPIC6 development system may use one of two power supply sources 1 5V PC power supply through the USB programming cable 2 External power supply connected to a DC connector provided on the development board The MC34063A voltage regulator and Gretz rectifier are used for enabling external power supply voltage to be either AC in the range of 7V to 23V or DC in the range of 9V to 32V Jumper J10 is used as a power supply selector When using USB power supply jumper J10 should be placed in the USB position When using external power supply jumper J10 should be placed in the EXT position The development system is turned on by setting the POWER SUPPLY switch to the ON position Power supply voltage regulator Jumper J10 as a power supply selector IPD ji R ion _ MN amp mL Figure 6 1 Power supply J10 EXT USB AC DC connector Eao aa USB connector J10 EXT Side view E gt lt Side view Side view 385 4x1N4007 gt EW Side view D13 P L2 220uH VCC 5V D7 S MBRS140T3 m rm Side view Bottom view Side view Figure 6 2 Power supply source connection schematic MikroElektronika BigPIC6 Development System 7 0 RS 232 Communication Interface The USART universal synchronous asynchronous receiver transmitter is one of the most common ways of exchanging data between the PC and peripheral components RS 232 serial communication is performed through a 9 pin SUB D connector and the microc
13. P1541 100 E10 10uF Figure 9 1 Voltage reference connection schematic MikroElektronika BigPIC6 Development System 1 10 0 A D Converter Test Inputs An A D converter is used for converting an analog signal into the appropriate digital value A D converter is linear which means that the converted number is linearly dependent on the input voltage value The A D converter within the microcontroller converts an analog voltage value into a 10 bit number Voltages varying from OV to 5V DC may be supplied through the A D test inputs Jumper J11 is used for selecting some of the following pins RAO RA1 RA2 or RA3 for A D conversion The R16 resistor has a protective function as it is used for limiting current flow through the potentiometer or the microcontroller pin The value of the input analog voltage can be changed linearly using potentiometer P3 i hor i o he ra Figure 10 1 ADC jumper in default position Figure 10 2 Pin RAO used as input pin for A D conversion A D conversion is performed via the RA0 microcontroller pin PIC18Fxx Top view Figure 10 3 Microcontroller and A D converter test inputs connection NOTE In order to enable the microcontroller to accurately perform A D conversion it is necessary to turn off LED diodes and pull up pull down resistors on port pins used by the A D converter For higher A D conversion accuracy use the voltage reference MikroElektronika BigPIC6 Development System
14. R ag F s PETE oe Ba Hardware In Circuit Debugger for real time debugging at hardware level P a Os Ores Os i Es d FHH U Dear w E PEEL 00 ua kin mo ar E di i e A a s BR mo Tito wi ws WE Ws Or de w thea Pee r E 5 a lst Port expander provides easy I O expansion by 2 additional ports K la g TU z ve Es dais a a ka BA n l R i E r b HE H i DADA AMO Dm cis en Ld B Te E pi g E pa Ie Bier E HE i gi H i Tl SL ee x wal g a Ll GRAPHIC LCD CONNECTOR m m Tai i Graphic LCD display with backlight m l A daddacad mn runt The PICflash program provides a complete list of supported microcontrollers The latest version of this program with updated list of supported microcontrollers can be downloaded from our website at www mikroe com Package contains Development system BigPIC6 CD product CD with appropriate software Cables USB cable Documentation BigPIC6 and PICflash manuals Installing USB drivers quick guide and Electrical Schematic of the BigPIC6 development system i fies System specification Power supply over a DC connector 7 to 23V AC or 9 to 32V DC or over a USB cable for programming 5V DC Power consumption 40mA in idle state when on board modules are inactive Size 26 5 x 22cm 10 4 x 8 6inch Weight 40
15. abled via programming pins Ju Watch Values En 90 A 09 DT Um WNW Icon commands m E We Add Remove Properties amp Add Select variable from list PORTE Search for variable by assembly name A complete list of registers within the microcontroller being programmed A list of selected registers to be monitored The state of these registers changes during the program execution which can be viewed in this window Double click on the Value field enables you to change data format Figure 5 1 Watch Values window mikrolCD debugger options Start Debugger Run Pause Debugger Stop Debugger Step Into Step Over Step Out Toggle Breakpoint Show Hide Breakpoints Clear Breakpoints F9 F6 Ctrl F2 F7 F8 Ctrl F8 FS Shift F4 Ctrl Shift F4 Each of these commands is activated via keyboard shortcuts or by clicking appropriate icon within the Watch Values window The mikro CD debugger also offers functions such as running a program step by step single stepping pausing the program execution to examine the state of currently active registers using breakpoints tracking the values of some variables etc The following example illustrates a step by step program execution using the Step Over command Step 1 In this example the 41st program line is highlighted in blue which means that it will be executed next The current state of all regis
16. d programmer Figure 3 2 The principle of programmer s operation NOTE system package r Sr all al eth i Eie a bye E INAL bel w 2 A 4 we me ed _ b Ag a o m PRG ICD Figure 3 1 PICflash programmer Compiling program gt 1110001001 0110100011 011112FC23AA7 1011 F43E0021A Hex DA67F0541 Bin Click the Load button to load HEX code Whe protection Of Grown Dut Debect BOO Enabled 0000 OF Protected Irt st Switchover Erabler Faf safn Ok Meriter Erebied Lew Voltage Program Dssbkd he Chrcut Debugger 0006s Broma Reset Sel et to ama 0000 OF Protected 0000 OF Protected Rabo ad mex Y Calibration word Protect Y CODE Y DATA EEPROM DLocsions FFF FFF FFF FFF Progen Vercry re Y K aceite Bases w O ES sell Y e Al ide Hy me gt E O Write a program in some of PIC compilers and generate a hex file 2 Use the PiCflash program to select the microcontroller to be programmed and load the hex file Click the Write button to load the program into the microcontroller On the left side of the PICflash program s window there are a number of options used for setting parameters for the operation of the microcontroller On the right side of the window there are a number of buttons which enable the HEX code to be loaded into the microcontroller Positioned in the bottom right corn
17. e sure that your microcontroller is provided with the USART module as it is not necessarily integrated in all PIC microcontrollers MikroElektronika 14 BigPIC6 Development System 8 0 Serial EEPROM EEPROM Electrically Erasable Programmable Read Only Memory is a built in memory module used to store data that must be saved when power goes off The 24AA01 circuit can store up to 1Kbit data and uses serial IC communication via RC3 and RC4 pins for communication with the microcontroller In order to enable connection between EEPROM and microcontroller it is necessary to set switches 5 and 6 on the DIP switch SW12 to ON position Serial EEPROM connected to microcontroller via RC4 and RC3 pins RJ2 ma RJ3 mm RBO RB1 mm RB2 mm RB3 mu RB4 mm RB5 mu RBG mm PIC18Fxx a U1 OSC1 i R63 r64 Vee ovce BAO VCCI 1K 1K RB7 mw AN WPI RC5 HR aN RCA es o DA EEPROM C9 RC3 m RCS o gt SCL 100nF RC2 N RJ7 RJ6 mm Paya SCLI ee A 24AA01 OVCC Figure 8 1 Serial EEPROM connection schematic 9 0 Voltage Reference The BIGPIC6 development system provides an MCP 1541 circuit which generates the voltage reference used for A D conversion The value of the voltage reference is 4 096V and it is brought to the microcontroller via the RA3 pin Microcontroller is fed with voltage reference via the RA3 pin VCC Q VIN PIC18Fxx GND OVCC VOUT MC
18. ed over a GLCD display The main purpose of this panel is to register pressure at some specific display point and to forward its coordinates in the form of analog voltage to the microcontroller Switches 1 2 3 and 4 on the DIP switch SW13 are used for connecting touch panel to the microcontroller 1 k nic ee oe i 3 W A w w g i L r T _ 1 e le Figure 18 1 Touch panel Figure 18 1 shows how to place a touch panel over a GLCD display Make sure that the flat cable is to the left of the GLCD display as shown in Figure 4 Touch panel is connected to the microcontroller via RAO RA1 RJ6 and RJ7 pins fe RAO READ X RA1 J READ Y EA DRIVEA KA DRIVEB el19srezi a PIC18Fxx BOTTOM TOUCHPANEL CONTROLLER Figure 18 2 Touch panel connection schematic Figure 18 3 Placing touch panel Figure 18 3 shows in detail how to connect a touch panel to the microcontroller Bring the end of the flat cable close to the CN13 connector as shown in Figure 1 Plug the cable into the connector as shown in Figure 2 and press it easily so as to fit the connector as shown in Figure 3 Now you can plug a GLCD display into the appropriate connector as shown in Figure 4 NOTE LEDs and pull up pull down resistors on the PORTA port must be turned off when using a touch panel MikroElektronika Da 4 BigPIC6 Development System 19 0 Input Output Ports Along the right side of the development s
19. er of the window the Progress bar enables you to monitor the programming progress For more information on the PICflash programmer refer to the relevant manual provided in the BigPIC6 development MikroElektronika 10 BigPIC6 Development System PIC microcontrollers can be programmed either in Low Voltage or High Voltage programmings modes The P Cflash programmer uses solely High Voltage programming mode for its operation Such mode requires voltage higher than the microcontroller s power supply voltage to be brought to the MCLR Vpp pin in order for the programming process to be performed The voltage value usually ranges between 8 and 14V depending on the type of the microcontroller in use The Low Voltage programming mode can be enabled disabled using configuration bits of the microcontroller If the Low Voltage programming mode is enabled the programming process is initiated by applying a logic one 1 to the PGM pin Unlike this mode the High Voltage programming mode is always enabled and the programming process starts by applying a high voltage to the MCLR VPP pin All the settings that have to do with programming the microcontrollers are automatically performed and no extra work is needed However there is a number of options for additional programming settings provided in the P Cflash program It is not recommended for beginners to change the default settings One of the advantages offered by the on board P Clash programmer is a mult
20. he performance of pull up pull down resistors The principle of their operation is identical for all the microcontroller pins RN2 SW2 O PIC18Fxx RN2 p down E J2 sw2 O PIC18Fxx Figure 19 7 Jumpers J2 and J12 in the same position N IUUUUI 8x10K N VCC O In order to enable the port PORTB pins to be connected to the pull down resistors first it is necessary to set jumper J2 in the Down position This enables any port PORTB pin to be provided with a logic zero OV in idle state over jumper J2 and 8x10K resistor network To provide the RBO pin with such signal it is necessary to set switch RBO on the DIP switch SW2 in the ON position As a result every time you press the RBO push button a logic one 1 will appear on the RBO pin provided that jumper J12 is set in the VCC position In order to enable port PORTB pins to be connected to pull up resistors and port input pins to be activated with logic zero 0 it is necessary to set jumper J2 in the Up position 5V and jumper J12 in the GND position OV This enables any port PORTB input pin to be provided with a logic one 5V in idle state over the 10k resistor The RBO switch should be set in the ON position afterwards As a result every time you press the RBO push button a logic zero 0 will appear on the RBO pin In case that jumpers J2 and J12 have the same logic state pressure on any button will not cause input pins to change their
21. iplexer Build in programmer with mikrolCD Multiplexer MCU PGD ESE J VCC DE PGC MCU PGC PROG D GND MCLR MCLR Programming lines L interface Ka During the programming the multiplexer ay disconnects the microcontroller pins used for programming from the rest of the board and connects them to the P Cflash programmer After the programming is complete these pins are disconnected from the programmer and may be used as input output pins Figure 3 3 The principle of programmer s operation 4 0 ICD Connector ICD connector enables communication between the microcontroller and external ICD debugger programmer from Microchip ICD2 or ICD3 m ICD connector Front view Side view Bottom view Figure 4 2 ICD connector pinout and pin designations MikroElektronika 5 0 MikrolCD In Circuit Debugger The mikrolCD In Circuit Debugger is an integral part of the on board programmer It is used for testing and debugging programs in real time The process of testing and debugging is performed by monitoring the state of all registers within the microcontroller while operating in real environment The mikro CD software is integrated in all PIC compilers designed by mikroElektronika mikroBASIC PRO mikroC PRO mikroPASCAL etc As soon as the mikro CD debugger starts up the Watch Values window as shown in figure 5 1 below appears Communication between mikro CD debugger and microcontroller is en
22. logic state MikroElektronika 9 20 0 Port Expander Additional Input Output Ports The SPI communication lines and MCP23S17 circuit provide the BigPIC6 development system with a means of increasing the number of available I O ports by two If the port expander communicates to the microcontroller over the DIP switch SW11 then the microcontroller pins REO RE1 RC5 RC4 and RC3 used for the operation of port expander cannot be used as l O pins a POWER ETT I i I A AA Figure 20 2 Position of DIP switch SW11 when port expander is enabled Figure 20 3 Port expander schematic MikroElektronika The microcontroller communicates to the port expander MCP23S17 circuit using serial communication SPI The advantage of such communication is that only five lines are used for transmitting and receiving data simultaneously MOSI Master Output Slave Input microcontroller output MCP23S17 input MISO Master Input Slave Output microcontroller input MCP23S17 output SCK Serial Clock microcontroller clock signal CS Chip Select enables data transfer RST Reset Data transfer is performed in both directions simultaneously by means of MOSI and MISO lines The MOSI line is used for transferring data from the microcontroller to the port expander whereas the MISO line transfers data from the port expander to the microcontroller The microcontroller initializes data transfer when the CS pin is driven low OV It causes
23. n Figure 1 2 whereas the other end of the cable USB A type should be connected to your PC When establishing a connection make sure that jumper J10 is placed in the USB position as shown in Figure 1 1 USB connector FA POWER SUPPLY MISMO lear sale i a Pr PRG ICD u switch OFF ON luse PROG a Perr J10 power supply ee Sica asun selector y 4 ii gz g gg2ee Figure 1 1 Power supply Step 3 Turn on your development system by setting the POWER SUPPLY switch to the ON position Two LEDs marked as POWER and USB LINK will be turned on to indicate that your development system is ready to use Use the on board PICflash programmer and PICflash program to dump a HEX code into the microcontroller and employ the board to test and develop your projects NOTE If you use additional modules such as LCD GLCD etc it is necessary to place them properly on the develop ment board before it is turned on Otherwise both additional modules and development system can be permanently damaged Refer to Figure 1 3 for their proper placing a A Figure 1 3 Placing additional modules on the board MikroElektronika BigPIC6 Development System 2 0 Supported Microcontrollers The BigPIC6 development system provides a DIMM 168P connector used for placing MCU card The BigPIC6 comes with an MCU card with the 80 pin microcontroller in TQFP package soldered on it as shown in Figure 2 3 Besides an oscilla
24. onal push buttons marked as ENTER and CANCEL MENU push buttons are connected in the same way as the port PORTH push buttons Their function is determined by the user when writing the program for the microcontroller Have in mind when writing the program for the microcontroller that MENU keypadis connected to the port PORTH Figure 15 1 MENU keypad MENU keypad is connected the same as port PORTH push buttons PIC18F xx lt wF M Figure 15 2 MENU keypad and microcontroller connection schematic MikroElektronika BigPIC6 Development System 21 The BigPIC6 development system provides an on board connector so that the alphanumeric 2x16 LCD display can be plugged into Such connector is linked to the microcontroller through the PORTD port Potentiometer P1 is used for display contrast adjustment The LCD GLCD BACKLIGHT switch on the DIP switch SW13 is used for turning on off display backlight Communication between such LCD display and the microcontroller is established by using a 4 bit mode Alphanumeric digits are displayed in two lines each containing up to 16 characters of 7x5 pixels eT emsa ae eee BSS ste a IE tt m ES TREER AR r gt Le No mm LINK Tl Gy gt Usa PROG i sj rin nT IGHT 3g r mo 7 CHARACTER r E iM war Py Hone fi pr Gs m i 40 i m a Contrast adjustment _ potentiometer Figure 16 2 Alphanumeric 2x16 LCD dis
25. ontroller USART module The BigPIC6 provides two RS 232 ports RS 232A and RS 232B Use switches marked as RX232 A and TX232 A on the DIP switch SW12 to enable RS 232A port Likewise use switches RX232 B and TX232 B on the DIP switch SW12 to enable RS 232B port The microcontroller pins used in such communication are marked as follows RX receive data and TX transmit data Baud rate goes up to 115 kbps In order to enable the USART module of the microcontroller to receive input signals with different voltage levels it is necessary to provide a voltage level converter such as MAX202C MAX232 Em ei Shr RS 232 s puna S j cOtmanece es el cai hd E E 40 88 m t tl 2 ttt Ln k La Figure 7 1 RS 232 module The function of switches 1 2 3 and 4 on the DIP switch SW12 is to determine which of the microcontroller pins are to be used as RX and TX lines Figure 7 2 Ports RS 232A and RS 232B are connected to the microcontroller C35 RX232 A 100nF 2 IRX232 B TX232 B C36 100nF C34 100nF 8LOGVECL o vcc U4 gt F C1 vcc y E 100nF ES END KAS T1 OUTH c2 R1 0 c2 R1 our iv T1 IN FL BT2OUT T2INBH ANA Bottom view Figure 7 2 RS 232 module schematic NOTE VCC U5 O C38 E C1 VCC ll C41 100nF 100nF v END Kone T1 OUTE c59 Kors R1 Th R1 our iil T1 IN ial BT2OUT AN BR2IN R2OUT Bottom view Mak
26. play Top view LCD GLCD BACKLIGHT PIC18Fxx Figure 16 3 Alphanumeric 2x16 LCD display connection schematic MikroElektronika 22 BigPIC6 Development System 17 0 128x64 Graphic LCD Display 128x64 graphic LCD display 128x64 GLCD provides an advanced method for displaying graphic messages It is connected to the microcontroller through PORTD and PORTJ GLCD display has the screen resolution of 128x64 pixels which allows you to display diagrams tables and other graphic content Since the PORTD port is also used by 2x16 alphanumeric LCD display you cannot use both displays simultaneously Potentiometer P2 is used for the GLCD display contrast adjustment Switch 8 _CD GLCD BACKLIGHT on the DIP switch SW13 is used for turning on off display backlight GLCD connector Contrast adjustment potentiometer Touch panel connector Figure 17 1 GLCD display Figure 17 2 GLCD connector GLCD display backlight is turned on NO P2 m 10K las y LCD GLCD Top view BACKLIGHT OAI 2 Q Z 33 O 14 14 o0oooaaaja 1 909009 oes SEs N OS OO ezosrez l O RD7 RJ5 GND TRD E RD2 E RD3 ORDA RD5 a a aja ja CN21 E S1 S 53 Su 55 S6 57 Tmp PIC18Fxx os 30 Figure 17 3 GLCD display connection schematic MikroElektronika BigPIC6 Development System 2 18 0 Touch Panel The touch panel is a thin self adhesive transparent panel sensitive to touch It is plac
27. position DS1820 is ON position DS1820 is connected to the PE2 pin connected to the PES pin Temperature sensor is connected to the microcontroller via the RE5 pin PIC18Fxx DQ Botoom view aun VCC MCU GND Figure 11 5 DS1820 and microcontroller connection schematic MikroElektronika BigPIC6 Development System 11 12 0 Real Time Clock RTC The DS1307 circuit enables the BigP C6 development system to keep the real time The real time clock s main features are as follows providing information on seconds minutes hours days days in a week and dates including corrections for a leap year 12C serial interface Automatic power fail detection Power consumption less than 500nA The real time clock is widely used in alarm devices industrial controllers mass consumption products etc The real time clock provided on the BigPIC6 development system is used to generate an interrupt at pre set time In order to establish the connection between the microcontroller and real time clock it is necessary to set switches RC4 RC3 and RBO on the DIP switch SW13 to ON position 3V battery enables the operation te 2 of the real time clock when the xi l CONTRAST a power supply is off Quartz crystal provides real time clock with clock signal Figure 12 1 Real time clock Real time clock connected to the microcontroller via RC4 RC3 and RB0 pins U6 a aA be eg 32 768 he our PIC18Fxx os EVBAT SCL AAA
28. ters within the microcontroller can be viewed in the mikrolCD Watch Values window Step 2 After the Step Over command is executed the microcontroller will execute the 41st program line The next line to be executed is highlighted in blue The state of registers being changed by executing this instruction may be viewed in the Watch Values window 0x00 while counter O PORTC while C20N bit 0 TRISB 0x00 TRISC 0x00 TRISD 0x00 turn OFF the PORTC 0x00 PORTD 0x00 while 1 PORTB 1 lt lt counter DARTE I 1 lt lt enuntrers NOTE During operation the program line to be executed next is highlighted in blue while the breakpoints are highlighted in red The Run command executes the program in real time until it encounters a breakpoint igure AN pins as digital ible comparators set direction to be outpkt set direction to be outpkt set direction to be out turn C PORTD turn OFF the PORTC leds turn OFF the PORTD leds for counter 0 counter lt 8 counter Watch values FF leds For more information on the mikro CD debugger refer to the mikro CD Debugger manual Ba E oo oo ol m E 9 qu we Add Remove Properties Y AddAl R Select variable from list CCP1CON Search for variable by assembly name ANSELH PC 0x00001D 6 00 us MikroElektronika 11 12 BigPIC6 Development System 6 0 Power Supply The
29. the microcontroller to send clock signal SCK and therefore starts data exchange The principle of operation of the port expander s ports O and 1 is almost identical to the operation of other ports on the development system The only difference here is that port signals are received in parallel format The MCP23S17 converts then such signals into serial format and sends them to the microcontroller The result is a reduced number of lines used for sending signals from ports 0 and 1 to the microcontroller U7 P1 0 wre IGPB1 GPA7 IRS CPAS em GPA Rese BEER crez warescr s wearer wearers DIP switch SW11 enables port expander DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty Therefore this manual is to be treated as any other copyright material No part of this manual including product and software described herein may be reproduced stored in a retrieval system translated or transmitted in any form or by any means without the prior written permission of MikroElektronika The manual PDF edition can be printed for private or local use but nat for distribution Any modification of this manual is prohibited MikroElektronika provides this manual as is without warranty of any kind either expressed or implied including but not limited to the implied warranties or conditions of merchantability or fitness for a particular purpose MikroElektronika
30. tor and 80 pads connected to the microcontroller pins are also provided on the MCU card Each pad is marked as its relevant pin These pads make placing of MCU card easy when it is used in the target device tiid tiiij ES Fin _ R r SO pin C TOFp ANII ilatag a DIMM 168P connector for placing MCU card with the ane microcontroller in Bown an TQFP package Up R Mi 80 pin TOFP MIKKOEIEKIKONIKAR Pig G MCU CARD DEVELOPMENT TOOLS FOR EMBEDDED WORLD borro osea Lara jodo HW REV 1 00 Figure 2 1 DIMM 168P connector Figure 2 3 MCU card with soldered 80 pin microcontroller in TQFP package VCC VCC VCC GND GND GND MCLR RAO RA1 RA2 RA3 RA4 RA5 RBO RB1 RB2 RB3 RB4 RB5 RB6 PGC RB7 PGD RCO RC1 RC2 RC3 RC4 RC5 RC6 RC7 RDO RD1 RD2 RD3 RD4 RD5 RD6 RD7 REO RE1 RE2 RE3 RE4 RES RE6 RE7 RFO RF1 RF2 RF3 RF4 RF5 RF6 RF7 RGO RG1 RG2 RG3 RG4 RHO RH1 RH2 RH3 RH4 RH5 RH6 o Io to SOIT o s o oO el l 1 1elsl IZIZIZIZIZIZIS m x RB7 PGD Figure 2 4 Schematic of DIMM 168P connector pinout MikroElektronika page wa BigPIC6 Development System Plugging MCU card into the DIMM 168P connector is performed as follows LEE E i n ag phir Tore j Me a B0 pln T E OF CU CARD z k VAAN Mcu CARD Push io al MCU eae into A connector and slowly When the MCU card is properly placed into the connector the lift extraction levers extraction
31. tronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities Copyright 2003 2009 by MikroElektronika All rights reserved U09 30 4 1109 99 10 ye sn JDe UOD o aye say JOU Op siesodold ssaursnq Jo S UswWWOd suonsenb Aue aney noA J noddhs a uoo SOY UI MMM ye Jey UNOA agejd aseajd UOIeWOJUI jeuonippe p u sn Jo sjonpoid Jno JO Ue YM Sw9 qo1d US Bursuanedxa ase nof J woof ooy MMM Je asqam INO 1ISIA aseajd sjonpoid mo rioqe 9JOW Ulea 0 JULM NOK y Cd 1dOM 13I0034W3 404 SNOILNTOS JAVMOIIVH ANY JAVWML1IOS H E E LU A
32. ystem there are nine 10 pin connectors which are connected to the microcontroller s I O ports Pins RB6 and RB7 are not directly connected to the appropriate 10 pin connector but via programmer s multiplexer DIP switch es SW1 SW9 enable each connector pin to be connected to one pull up pull down resistor Whether port pins are to be connected to a pull up or pull down resistor depends on the position of jumpers J1 J9 T y a fe 1 K 2x5 PORTA male connector MCU CARD lly a i ED COWNTar T air Figure 19 2 J2 in the pull down positon Jumper for pull up pull down resistor selection DIP switch to turn on pull up pull down resistors for each pin Figure 19 3 J2 i in the pull up position Figure 19 1 I O ports Microcontroller port PORTB pins connected to pull down resistors wf RNZ INI eck ke J2 swe ee ee RJ2 mm A Eo RBo M NLD7 Na Y RB1 mm DA RB2 m Rss o RB6 D e e RB7 m RC5 RC4 ma A RB1 N Los PV RC3 mm RC2 m RJ7 mm RJ6 mm Figure 19 4 Port PORTB connection schematic MikroElektronika BigPIC6 Development System 2 Pull up pull down resistors enable you to set the logic level on all microcontroller input pins when they are in idle state Such level depends on the position of the pull up pull down jumper The RBO pin with the relevant DIP switch SW2 jumper J2 and RBO push button with jumper J12 are used here for the purpose of explaining t

Download Pdf Manuals

image

Related Search

Related Contents

RKS User Manual  キ居付工事説明書    MAN J0102141/1 (system 1)  N° 01-071-A1 du 2-08-2001 : Recouvrement de l`impôt direct.  取扱説明書 355mm 切断機  AC658HB AC708RB AC908HB AC6520HB  Sony DSC-H55/B Marketing Specifications  Sony VGN-BX540 Replacement Instructions  

Copyright © All rights reserved.
Failed to retrieve file