Home

BIGPIC4 Manual - MikroElektronika

image

Contents

1. PICflash PIC18FXXXX osc2 oJ OSC1 CLKI j vdd c X1 10MHz 2 un Figure 17 Pushbutton switches page ICD 41 G MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4 MIKROELEKTRONIKA BigPIC4 Users Manual DEVELOPMENT TOOLS Buttons connections to PORTA PORTB PORTC PORTD PORTE and PORTF are shown in Fig 18 Jumper J12 determines whether a button press will bring logical zero or logical one to the appropriate pin ES L 1 When the button is not pressed the pin state is determined by the pull up or pull down jumpers In the example shown in Fig 18 J12 1s connected to 5V so pressing the buttons will bring logical one to the appropriate pins SUTTON SW PORTC mu 1 T 1 RCO I Roo REO a L L L 1 o L 1 1 I I I a RCJ 01 1 a I a RFI i o o i P 1 0 2 gp 2 o o P 1 1 o RC3 1 RF3 o 1 I oo
2. 0 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4 MIKROELEKTRONIKA BigPIC4 Users Manual DEVELOPMENT TOOLS POWER SUPPLY POWER SUPPLY As a power supply source user can select either a regulated supply from USB cable default or an external non regulated power supply SELECTABLE In case of the USB power supply the system should be connected to a PC using the USB programming cable and jumper J14 should be set in the right hand position In case of an external power supply the BIGPIC4 board produces 5V using an LM7805 voltage regulator The external power supply can be AC or DC with a voltage between 8V and 16 V and the jumper J14 should be set in the left hand position In Fig 7 you can see the power connectors USB left and external right Power supply select jumper USB and power supply connectors gd POWER SUPPLY J14 in the left hand position system will take power from the external AC DC power adapter J14 in the right hand position system will take power from the USB cable USB connector Ext EC USB Power Supply Colam uss External Power Supply External power supply connector REGi CN10 8 16V AC DC TT J14 5V x Vin Vout GND mam C1 C2 E2 C3 470uF x 100nF x 100nF x 470uF 100nF Figure 9 J14 is set to USB power supply
3. o i I a 1 Rod 4 ar Rr4 nn o o o o L E ol iy ro US fe 25 1 I 1 I I RD6 L REG RF6 n o o 9 1 i r RF7 1 o I i 1 EU 1 1 i I 1 I L mm mm mum m m m L 1 m um um um Um M L mm a vcc U J12 Figure 18 Buttons schematic OV while button 5V while button is pressed is pressed vec mede ICD page BIGPIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BigPIC4 Users Manual MW RELERTRONIKA DEVELOPMENT TOOLS On Fig 19 the J5 jumper is set to pull up so when the button is not pressed pull up resistor pulls the microcontroller s REO pin to 5V A button press causes the port pin to be connected to ground m 5 PIC18FXXXX J12 1s in the lower position vec I E y Thus only when the button is gt pressed the microcontroller will I i sense a logical zero otherwise iL mE the pin state will always be log P M 5 Figure 19
4. Button with pull up resistor ical one On Fig 20 the J5 jumper is set to pull down so when the but J5 PUSEBPUSHIBUTITON SWITCHES ton is not pressed pull down E resistor sets the microcon 1 troller s REO pin to OV T M ne A button press causes the port di Re pin to be connected to 5V J12 is in the upper position veo 9 RES 10MHz Thus only when the button is 22 ay presses 25 22pF pressed the microcontroller 225 22828088 100n I will sense a logical one other wise the pin state will always be logical zero Figure 20 Button with pull down resistor page ICD MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 4 GRAPHIC LCD CONNECTOR GRAPHIC LCD A graphic LCD GLCD allows advanced visual messages to be displayed While a charac ter LCD can display only alphanumeric characters a GLCD can be used to display mes sages in the form of drawings and bitmaps The most commonly used graphic LCD has the screen resolution of 128x64 pixels Before a GLCD 15 connected the user needs to set the jumper 19 Fig 21 to the lower position The GLCD s contrast be adjusted using the potentiometer P3 Jumper J9 and potentiometer P3 are placed to the upper right of the GLCD GLCD selection jumper In order to enable GLCD j
5. DEVELOPMENT TOOLS BigPIC4 Users Manual 2 ON BOARD USB 2 0 PROGRAMMER There is no need for the use of external IN CIRCUIT equipment during programming as BIGPIC4 development system has its own on board USB 2 0 programmer All you need to do is connect the system to a PC using the USB cable Then load your program into the microcontroller via the PICflash programming software which is supplied with the board 9 3 Figure 10 On Board USB programmer Note There is no need for manually reseting MCU after programming The programmer will reset the MCU automatically vcc USB LINK SWITCH ON BOARD USB 2 0 PROGRAMME Jawweiboid gsn pyeog uo uUSE JOId TO PERIPHERALS ON DEVELOPMENT BOARD USB CONN page ICD 41 2 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4 BigPIC4 Users Manual mikrolCD Real Time Hardware In Circuit Debugger 0 mikroICD is highly effective tool for Real Time debugging hardware level mikroICD 75 debugger enables you to execute a program on a PIC microcontroller and view variable val ues Special Function Registers SFR and EEPROM as the program is running D You can use mikroICD within any of MikroElektronika s compilers for PIC mikroC mikroBasic or mikroPascal Al
6. 14 illustrates the connection of a LEDs to PORTD of the microcontroller A resistor 1s used in series with the LED to limit the LED s current In this case the resistor s value 1s 1K page ICD 41 21 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 4 DEVELOPMENT TOOLS MIKROELEKTRONIKA BigPIC4 Users Manual All LEDs from one port are connected to a common point through these resistors which can then be connected or disconnected to ground by the corresponding switch on SW2 The LEDs are enabled when connected to a ground and will display the state of the correspon ding microcontroller pin otherwise the LEDs will always be off no matter what the pin state is because no current can flow through them LEDS PORTA LED PORTB LED PORTC LED PORTD LED PORTE LED PORTF LED 4 lt RPACK8 9 8x1K PIC18FXXXX ICD page BIGPIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 5 BigPIC4 Users Manual wi RELERTRONIKA DEVELOPMENT TOOLS PUSHBUTTON SWITCHES S The BIGPIC4 has 46 push buttons which can be used to provide digital inputs to microcontroller s ports There is also one push button that acts as a RESET Figure 15 H Figure 16 Reset button scheme
7. EMPLOY EES OR DISTRIBUTORS BE LIABLE FOR ANY INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING DAMAGES FOR LOSS OF PROFITS LOSS OF BUSINESS LOSS OF USE OR DATA INTERRUPTION OF BUSINESS AND THE LIKE EVEN IF MIKROELEKTRONIKA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES ARISING FROM ANY DEFECT OR ERROR IN THIS MANUAL OR PRODUCT SPECIFICATION AND INFORMATION CONTAINED IN THIS MANUAL ARE FURNISHED FOR INTERNATIONAL USE ONLY AND ARE SUBJECT TO CHANGE AT ANY TIME WITH OUT 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 trade marks or copyrights of their respective companies and are used only for identification or explanation and to the owners benefit without intent to infringe BIGPIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2 CONTENTS BigPIC4 Users Manual 99 CONNECTING THE SYSTEM INTRODUCTION DESCRIPTION OF THE DEVELOPMENT SYSTEM Switches and their functions Jumpers MCU card Power Supply On board USB 2 0 programmer mikrolCD In Circuit Debugger LEDs Pushbutton switches Graphic LCD LCD 2x16 in 4 bit mode LCD 2x16 in 8 bit mode RS 232 Communication DS1820 Digital Thermom
8. on SW3 are used to connect Rx and Tx lines from microcontroller to RS 232 A port and the second two for connecting Rx and Tx lines to RS 232 B N A 142 2322 COMMUNIC ICD page DIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 228 BigPIC4 Users Manual en CONNECT MCU TO PC data Rx SERIAL M Ne CABLE gt CONNECT PC TO MCU Send Data Tx RS 232 A COMMUNICATION PIC18FXXXX Osc 2221 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4 de BigPIC4 Users Manual Receive data Rx CONNECT MCU TO PC gt gt E PC TO MCU Send RS 232 B CON COMMMUYNUGATTON PIC18FXXXX OSC1 RS 232 B BIGPIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 25 BigPIC4 Users Manual WW RIELERTRONIKA DEVELOPMENT TOOLS DS1820 DIGITAL THERMOMETER The DS1820 digital thermometer is well suited to environmental temperature measurement having the temperature range of 55 C to 125 C and the accuracy of 0 5 C It must be placed correctly in the 3 pin socket provided on the BIGPIC4 with its rounded side to the left as marked on the board Fig 31 Otherwise the DS1820 could be pe
9. 4 15 installed and ready for use You can try to read a pro gram from the chip or to load an example from the examples folder of mikroElektronika s compllers for PIC or from the product CD CD_Drive product zip bigpic4 examples zip page ICD Al MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4 MICROCHIP INTRODUCTION DEVELOPMENT The BIGPIC4 development system 15 a full featured development board for Microchip PIC BOARD microcontrollers It has been designed to allow students and engineers to easily exercise and explore the capabilities of PIC microcontrollers It allows PIC microcontrollers to be inter faced with external circuits and a broad range of peripheral devices allowing the user to concentrate on software development Figure 1 illustrates the development board On a silkscreen there are identification marks next to each component These marks describe connections to the microcontroller operation modes and provide other useful notes The need for additional schematics is minimized as all relevant information 15 printed on the board BIGPIC4 development board Figure 1 O G AD CONVERTER INPUT w Q K K E F 4 BY MIKROELEE TRCHNTICA ew 1 E ER MMC SD CARD e nesto MMC Gh T
10. ET HE ELTE TTL Figure 25 LCD 2x16 in 4 bit mode schematics page ICD 20 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4 LCD 2X16 IN 8 BIT MODE a When using a character LCD 8 bit mode it should be placed on the GLCD connector since GLCD connector has 20 pins and the character LCD has only 14 pins special atten tion 1s required when placing the LCD Otherwise the LCD can be permanently damaged The LCD must be placed in the marked position with two free pins to the left and four free pins to the right When you add or remove LCD be sure that the power supply 15 off 9 LCD 22X16 View from the back shows which pins stays disconnected Figure 26 LCD 2x16 in 8 bit mode Before adding the LCD set the jumper J9 to the upper position labeled as CHAR The LCD s contrast can be adjusted using potentiometer which 15 located to the upper right of the GLCD LCD connector Fig 26 NOTE Special attention 15 required when placing the LCD Otherwise the LCD can be per manently damaged ICD page 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 24 BigPIC4 Users Manual we RELERTRONIKA DEVELOPMENT TOOLS In order to enable LCD jumper J9 should be set to lt lt the position labeled
11. GPIC4 MCU Card is shown on the following picture MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD When you are placing MCU Card on the BIGPIC4 MCU socket you must follow these Steps Step no 1 If there is already MCU Card placed on BIGPIC4 you must remove it by slowly pulling it up Step no 2 Place MCU Card on the board Note that label on the MCU Card must be at the upper left corner as it is drawn on the BIGPIC4 board Step no 3 When MCU Card is on the place push it down by applying the pressure on all edges at the same time MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MGUY GARD BigPIC4 Users Manual MIKROELEKTRONIKA DEVELOPMENT TOOLS The microcontroller s pins are routed to various peripherials as illustrated in Fig 6 All ports have direct connections to Direct Port Access connectors Such connectors are typically used for connecting external peripherials to the board or for providing useful points for connect ing digital logic probes All ports are connected to LEDs push button switches and pull up down resistors allow ing easy digital pin state monitoring and testing Some of the pins are connected to other peripherials such as the DS1820 temperature sen sor RS 232 communication LCD etc MCU GARD Pd Pd
12. N and other switches are OFF Group of 8 switches SwitchisON 6 69 lt T Switch is OFF 5709 page ICD MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4 MIKROELEKTRONIKA BigPIC4 Users Manual DEVELOPMENT TOOLS JUMPERS Jumpers like switches can break or establish a connection between two points Beneath the plastic cover of the jumper is a metal contact which makes a connection when the jumper is placed between two disconnected pins JUMPERS For example the jumper J10 is used to connect or disconnect potentiometer for analog input A connection is made when the jumper is placed between two contacts Figure 3 Jumper is ON Jumper as a switch Jumper is OFF More often jumpers are used as a selector between two possible connections using a three pin connector As illustrated in Fig 4 the middle connector can be connected to the left or right pin depending on the jumper s position All lines are Left line Right line Figure 4 disconnected is selected is selected Jumper as a multiplexer BIGPIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 7 GARD MCU CARD The BIGPIC4 development board has a 80 pin MCU Card If you want to use some other microcontroller all you have to do 1s to change MCU Cards BI
13. O pressed keys or it can be connected to a PC to act as a keyboard CLK and DATA lines O used for data tansfer In this case they are connected to pins RC1 and RCO respectively n ANE Figure 35 S P di AMAN f VCC PS 2 connector Keyboard connected to 1111 E development board WS 3 lt m NC CLK J lt L 1 py 5V N BE NC DATA PS 2 communication X1 10MHz C1 C2 schematic oe oor UU UU RCO ms RC1 PS2 CLK and DATA lines are CONNECTOR connected to RC1 and RCO pins respectively ICD page BIGPIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 20 MOR ACCESS DIRECT PORT ACCESS All microcontroller input output pins can be accessed via connectors placed along the right side of the board For each of PORTA PORTB PORTC PORTD PORTE PORTF and PORTG there is one 10 pin connector providing VCC GND and up to eight port pins Direct port access connectors Figure 37 These connectors can be used for system expansion with external boards such as Serial Ethernet Compact Flash MMC SD ADC DAC CAN RTC RS 485 etc Ensure that the on board peripherals are disconnected from microcontroller by setting the appropriate jumpers while external pe
14. PU lt UI CON WE ICD page DIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 22 7f BigPIC4 Users Manual AD CONVERTER INPI A D Converter input schematics pull up down PORTA Pull up down resis Lar tors on PORTA SW1 analog input pins should be disabled using SW1 vec 1 10K RA2 0 5V 3 RA3 5V J11 inis vcc P2 RA2 is connected 10K J10 RA2 is disconnected Potentiometer P1 is con nected to RA2 pin and potentiometer P2 is con nected to pin MIKROELEKTRONIKA DEVELOPMENT TOOLS vcc J1 vcc PIC18FXXXX X1 10MHz C1 C2 SELES 3323 88229895 22pF 22pF RA3 is connected J11 RA3 is disconnected Potentiometers P1 and P2 are discon nected from the microcontroller 22683 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4 ICD MIKROELEKTRONIKA BigPIC4 Users Manual DEVELOPMENT TOOLS yaaa 5 2 KEYBOARD CONNECTOR D The PS 2 connector allows direct connection between BIGPIC4 and devices that use PS 2 communication such as PC keyboard or mouse For example the microcontroller can be connected to a keyboard to capture VECIT
15. SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MikroElektronika BigPIC4 Users Manual With useful implemented peripherals plentiful practical code examples and a broad set of additional add on IN CIRCUIT iar boards Serial Ethernet Compact Flash MMC SD DEBUGGER PROGRAMMER ADC DAC CAN RTC RS 485 etc MikroElektronika development boards make fast and reliable tools that can satisfy the needs of experienced engineers and beginners alike Software and Hardware solutions for Embedded World MIKROELEKTRONIKA BigPIC4 Users Manual DEVELOPMENT TOOLS Second edition December 2006 No part of this manual including the product and software described in it may be repro duced transmitted transcribed stored in a retrieval system or translated into any language in any form or by any means except documentation kept buy the purchaser for backup pur poses without the express 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 PROVIDE THIS MANUAL AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY OR FITNESS FOR A PARTIC ULAR PUROSE IN NO EVENT SHALL MIKROELEKTRONIKA ITS DIRECTORS OFFICERS
16. as vcc CHAR J9 GLCD contrast LCD8 contrast GLCD and LCD8 amp selected selected contrast not selected GRAPH Ves E 10K Contrast Vo Adjustment Leave four 5 8 lt free pins to the right side 0 RH3 D3 RE1 R W LGD 22 lt 1 IN teu wr MODE RS RGO RG1 10K MCLR PIC18FXXXX Vdd RF7 x1 RF6 t RF5 10MHz RF4 Leave two free 88 pins to the left side ot 62 22pF 22pF 14 429 LCD 8 bit mode schematic Reset 100n ouo o O zr rz creer e S SCO EP D5 D4 E page ICD 22222 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4 gt 1 RS gt iT RS 232 COMMUNICATION ey _ RS 232 communication enables point to point data transfer It 15 commonly used in data ENABLED acquisition applications for the transfer of data between the microcontroller and a PC Since the voltage levels of a microcontroller and PC are not directly compatible with each other a level transition buffer such as the MAX232 must be used 28 RS232 connectors BIGPIC4 development board have two RS 232 communication devices RS 232 A and RS 232 B In order to provide a more flexible system the microcontroller is connected to the MAX232 through DIP switch SW3 The first two switches
17. eter A D Converter input PS 2 Keyboard connector Direct port access MMC SD Multimedia Card page 4 page 5 page 6 page 6 page page 8 page 11 page 12 page 13 page 14 page 16 page 19 page 20 page 21 page 23 page 26 page 27 page 29 page 30 page 32 BIGPIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BigPIC4 Users Manual DEVELOPMENT TOOLS CONNECTING THE SYSTEM The development system box contains the development system product CD USB cable RS232 cable and this manual Step no 1 The first thing to do is to take the system out of the box Unpack the USB cable and con nect it to the PC Please use USB ports on the back of the PC with direct connection to the motherboard Step no 2 Install the PICFLASH programmer and drivers Start the installation from the product CD CD Drive productzip PICFlash setup exe Step no 3 After the installation connect the USB cable to the BIGPIC4 board You will be asked for the PICFLASH drivers Point to them in order to finish the driver installation They are placed in the folder System Drive Program Files Mikroelektronika PICFLASH Driver NT Step no 4 Run and use PICFLASH as explained in the document P Cflash programmer CD_Drive product pdf picprog manual pdf CONNECTING ule SYSTEM After these 4 steps your BIGPIC
18. l MIKROELEKTRONIKA DEVELOPMENT TOOLS If you are experiencing problems with any of our products or you just want additional information please let us know We are committed to meeting your every need Technical Support support mikroe com If you have any other question comment or a business proposal please contact us ne E E mail office mikroe com Web www mikroe com Forum www mikroe com forum ICD MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4
19. l you have to do is to select appropriate build type Release or ICD Debug build the project program the MCU select appropriate debugger mikroICD Debugger and you are ready to go 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 within the Help documen tation inside any of the mentioned compilers mikroICD debugger uses on board programmer to communicate with the compiler and it supports common debugger commands Start Debugger F9 Run Pause Debugger F6 Toggle Breakpoints F5 IN GIRGUIT D Run to cursor F4 Step Into F7 Step Over F8 Step Ctrl F8 Flush RAM F2 Stop Debugger Ctrl F2 On Board USB programmer with mikrolCD ICD BIGPIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD a 24 BigPIC4 Users Manual x ne LEDs DS Light Emitting Diodes LEDs are the most commonly used components usually for dis playing pin s digital state The BIGPIC4 has 46 LEDs that are connected to the microcon troller s ports PORTA PORTB PORTC PORTD PORTE and PORTF 5 Light Emitting Diodes Each group of eight LEDs except PORTA which has 6 LEDs can be enabled or disabled using switch SW2 as shown in Fig 13 Fig
20. ri DIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 5 OLN LODU BigPIC4 Users Manual SWITCHES The BIGPIC4 development board features many peripherial devices In order to enable these devices before programming you need to check if appropriate jumpers or switches have been properly set Switches are devices that have two positions ON and OFF which have a role to establish or break a connection between two contacts The BIGPIC4 development system has three groups of switches SWITCHES The first group SW1 enables a connection between the microcontroller PORTA with external pull up down resistors When PORTA pins are used as digital inputs outputs the appropriate pull up down resistors should be enabled The switches of SW2 are used to enable LEDs connected to PORTA PORTB PORTC PORTD PORTE and PORTF For example if switch PORTB is OFF all PORTB LED s will be turned off The switches of SW3 enable connections among the microcontroller pins and MMC SD Card via SPI communication and also among the microcontroller pins and both RS232 communication devices The first two switches are used for RS232 A communica tion lines while the second two are used for RS232 B communication lines and the last four are used for MMC SD Card switch 1 and 2 are O
21. ripherals are using the same pins The connectors can also be used for attaching logic probes or other test equipment Example of how to connect external peripheral with flat cable MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 3IGPIC vcc 10K Reset MIKROELEKTRONIKA DEVELOPMENT TOOLS ALUEENA Port B connection RH1 RHO RE2 RE3 RE4 RE5 RE6 RE7 RDO Vdd Vss RD1 RD2 RD3 RD4 RD5 RGO RG1 RG2 RG3 MCLR RG4 Vss Vdd RF7 RF6 RF5 RF4 RF3 RF2 RH7 RH6 PIC18FXXXX 100n RH5 RH4 RF1 RFO AVdd AVss RA3 RA2 RAO Vss Vdd RA5 RA4 BigPIC4 vcc J2 RN2 1 RB7 2 RB6 3 RB5 4 RB4 5 RB3 6 RB2 7 RB1 8 RBO 9 RPACK8 9 8x10K Users Manual Pull up line is connected Pull down line is connected All lines are disconnected ACCESS POR CN2 RBO RB1 RB2 RB3 RB4 RB5 RB6 RB7 i HEADER 5x2 S P ICD 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BigPIC4 Users Manual MMC SD MULTIMEDIA CARD MASS STORAGE Es MMC card is used as storage media for a portable devices in a form that can easily be removed for access by a PC For example a digital camera would use an MMC card for storing image files With an MMC reader t
22. rmanently damaged In order to work DS1820 must be connected to microcontroller s RAS pin by enabling jumper J13 051820 125 There is a mark in the form of half circle for proper ori entation of DS1820 sensor m DS1820 2 PIC18FXXXX 10 94 83200 DIGITAL THERMOMETER RA5 is connected RA5 is disconnected Figure 32 DS1820 Schematic page ICD 2G MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4 INPU A D CONVERTER INPUT i BIGPICA development board has two potentiometers for working with Analog to Digital NABUED Converter ADC Both potentiometers outputs are in the range of to 5V Two analog sig nals can be connected on two different analog input pins at the same time The jumper J10 enables connection between potentiometer P1 and pin RA2 The jumper 711 enables connec tion between potentiometer P2 and pin RA3 A D Converter input In order to measure analog signal without interference turn the coresponding switch on SWI to OFF position This will disable connection from the used PORTA pin to the pull up down resistors Applications of A D Conversion are various Microcontroller takes analog signal from its input pin and translates it into a digital value Basically you can measure any analog signal that fits in range acceptable by PIC That range 1s OV to 5V J
23. umper J9 should be set to the lower position labeled as GRAPH CHAR J9 GRAPH Vee Contrast Adjustment 4 GLCD schematics Ovec LCD8 contrast GLCD and LCD8 selected contrast not selected vcc 1 O C2 22pF LCD 128x64 ND A GR ICD BIGPIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BigPIC4 Users Manual x ne LCD 2X16 IN 4 BIT MODE a The standard character LCD is probably most widely used data visualization compo E nent Usually it can display two lines of 16 alphanumeric characters each character made ES up of 5x8 pixels The character LCD communicates with the microcontroller via a 4 bit or i 8 bit data bus each requiring the use of a different connector on the BIGPIC4 development board For 4 bit data bus use the LCD should be placed in the upper left of the board above the LEDs The connection to the microcontroller 1s shown in Fig 25 where there are only F four data lines It is important that the LCD is only inserted or removed from the BIGPIC4 l when the power is off Z LTEM LCD 2x16 in 4 bit mode KY N N A Reset m dl X1 10MHz C1 22pF 22pF 100n lt T
24. ypically small box that connects via USB or some other serial connection you can easily transfer data from MMC card to your comput er Microcontroller on BIGPIC4 communicates with Multi Media Card via SPI communi cation Modern computers both lap tops and desktops often have SD slots which can read MMC cards MMC slot on board MMCISD MULTIMEDIA CARD To enable MMC card you must turn on switches 5 6 7 and 8 on SW3 By doing that micro controllers s SPI comunnication lines SDI SDO and SCK and Chip Select are connected to MMC Working voltage of BIGPIC4 is 5V DC while working voltage of MMC card is 3 3V DC Because of that there is a voltage regulator on board with MMC card MC33269DT 3 3 Data lines from microcontroller to MMC card must be also adjusted to 3 3V It is done with resister voltage dividers as shown on Figure 41 page ICD 242 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BIGPIC 4 BigPIC4 Users Manual SPI SDI SPI SDO CN22 N CARD A MMC SD CARD WISI 1 C13 2 00nF 100nF GND E LT 1 10MHz SPI SDI C1 C2 22pF 22pF MULI MMC schematic Figure 41 ICD page BIGPIC 4 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD B3 B3 BigPIC4 Users Manua

Download Pdf Manuals

image

Related Search

Related Contents

"user manual"  USER MANUAL - VisionW3.com  Philips myGarden Wall light 17235/93/16  Conair CS19JCS User's Manual  報告書2) [PDFファイル/1.94MB]  Getting started with STM8L  

Copyright © All rights reserved.
Failed to retrieve file