Home

BIGdsPIC6 Development System User Manual

image

Contents

1. 6 2 0 Supported Microcontrollers a ias T 3 0 On board dsPICFlash le ele ul EE 9 AA a 10 5 0 Power SUPDIY EE 11 00 10 Converter TeSt JEE 12 7 0 Voltage Reference Source ari eones 13 8 0 Seral EEPROM ele 13 AA eege EE 14 10 0 RS 232 Communication Module a 15 11 0 CAN eieiei le Me de aere UE 16 12 0 Real Time eeler t A KEE 17 TBs U PUA TA e elt 18 14 0 Piezo Buuzgyaeru oi iii 19 A ge 20 16 0 FUSA BUONG ee ee 21 A el L uuu A E E A T E EE A A EA AA E A EES 22 O E An eee ee 23 A A 24 ZO UO FONS eebe 25 MikroElektronika 4 BIGdsPICG Development System Introduction to BIGdsPIC6 Development System The BIGdsPIC6 development system provides a development environment for programming and experimenting with dsPIC microcontrollers from Microchip The system includes an on board programmer with mikrolCD providing an interface between the microcontroller and a PC You are simply expected to write a program in one of the dsPIC compilers generate a hex file and program your microcontroller using the on board dsP Cflash programmer Numerous modules such as 128x64 graphic LCD alphanumeric 2x16 LCD real time clock etc are provided on the board and allow you to e
2. RB3 CONS RB1 mm RB0 dsPIC30F6014 Figure 20 7 Jumpers J6 and J13 in the same positions MikroElektronika down VCC O up Geng DU 8x10K pu ON J6 sw6 V 12345678 oe EI VCC O KES pu down Ile swe ON 12345678 oe EI In order to enable the PORTD port pins to be connected to pull down resistors it is necessary to place jumper J6 in the Down position first This enables any PORTD port pin to be supplied with a logic zero 0V in idle state over jumper J6 and 8x10k resistor network To provide the RD8 pin with such signal it is necessary to set switch RD8 on the DIP switch SW6 to the ON position As a result every time you press the RD8 push button a logic one VCC voltage will appear on the RD8 pin provided that jumper J13 is placed in the VCC position In order to enable port PORTD pins to be connected to pull up resistors and the port input pins to be supplied with a logic zero 0 it is necessary to place jumper J6 in the Up position and jumper J13 in the GND position This enables any port PORTD input pin when it is in idle state to be driven high 5V over the 10k resistor As a result every time you press the RD8 push button a logic zero OV will appear on the RD8 pin provided that the RD8 switch is set to the ON position In case that jumpers J6 and J13 have the same logic state pressure on any button will not cause input pins to change their logic state DISCLAIMER
3. 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 E njama Y al Ge Se E co E a SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD u k s ple TO OUR VALUED CUSTOMERS I want to express my thanks to you for being interested in our products and for having confidence in mikroElektronika The primary aim of our company is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs Nebojsa Matic General Manager The Microchip name and logo the Microchip logo Accuron dsPIC KeeLoq microlD MPLAB PIC PICmicro PICSTART PRO MATE PowerSmart rfPIC and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U S A and other countries BIGASPIC6 Development System TABLE OF CONTENTS Introduction to BIGdsPIC6 Development System EE Eegen 4 Key El 5 1 0 Connecting the System to a PC
4. 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 not 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 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 HIGH R
5. 0 89lbs z lt Bij De HI GH EXTERNA ICD e BIGASPIC6 Development System Les ON BOARD PROGRAMMER e U Ge e A y Ad SSS mae Em a m aoe m IJ Em mi mi imi l mi isi ml O Z E EU N A ES RS 232 mima T Z Z m USBUART porr Fi SSES 217711117 Z a 11110111 E E PANADA E 0000 Z al Z Z E 0 Z Z El Z Z i Z Z S Z Z m ie e PORTB 7 CHARACTERS IN 4 BIT MODE Z I TE Z Z I IMPORTANT it Z BE SURE TO TURN OFF THE POWER SUPPLY BEFORE PLACING LCD OR 1 O Z A GLCD ON DEVELOPMENT BOARD OTHERWISE BOTH LCD AND GLCD Z 4 U AN BE PERMANENTLY DAMAGED nm D m e h Z a Z o BE SURE TO PLACE LCD AND GLCD PROPERLY OTHERWISE BOTH it LCD 2x16 Z Z LCD AND GLCD UNITS CAN BE PERMANENTLY DAMAGED 1 1 CONTRAST Z Z u tt ma im m h c e S 3 si D D 1 Z Z Z mm S m mim m GIE VOLTAGE Z Z VA RH cron oo PI On voutace A EH y Z Z Z Z meo UR NE UR cost OF OF O O sn o N Z 77 PORTD 7 my m mim m s mim m A Gy CH j mu 3 0D m UR DA m mm sl JI Z 7 Z EN um mim Nl Z RIDE E Z ki in j L CEET a OO EE JI 9 e We Y Z Ts a mu m mim m m mis s Z a2 4 0867 x Z Z ZZ Z moO N Det OOO 0 sn OF 0 A Zi Z Z D mm EK CIE H LTE mamam x PORTD A m mu 2 0 ss UR DA m mus m s g VIe CITT E Y we MiO D OoOO SEE oooot oo Kass
6. and USB UART module it is necessary to set switches 1 RF2 and 2 RF3 on the DIP switch SW12 to the ON position When connecting a UART device and the microcontroller it is necessary to cross connect data send and data receive lines In other words the UART s RX pin should be connected to the microcontroller s TX pin while the TX pin should be connected to the RX pin It is not possible to directly connect UART s and microcontroller s TX lines since the microcontroller wouldn t be able to receive nor send data AC L an IATA E d U8 RX FTDI TXD ONIO IDTR Giel CN14 USBDM D USBDP d R2 4K7 RESET R3 10K C10 100nF 10uF 100nF MikroElektronika O VCC givccio AGNDI IROD NC ARI CBUSO el NB CBUS1I INC GNDI gDSR VCC i ater RESET lem Kea RSs GND HBCBUS4 3V3OUTI CBUS2 USBDMI 085 pe LI c9 FT232RL 100nF Figure 13 2 USB connector and microcontroller connection schematic mm RG15 mm RC1 m RC2 RC3 mm RC4 mm RGG m RG7 mm RG8 mm MCLR Soo dsPIC30F6014 m CC RA12 mm RA13 RBS m RB4 ma RB3 ma RB2 mm RB1 m RBO BIGdsPICG6 Development System 1 14 0 Piezo Buzzer Due to a built in piezo buzzer the develompent system is capable of emitting audio signals For the piezo buzzer to operate normally it is necessary to generate a voltage signal of specified frequency The voltage signal is generated in the microcontrol
7. 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 BIGdsPIC6 development system is used to generate an interrupt at pre set time In order to establish connection between the microcontroller and real time clock it is necessary to set switches RG3 RG2 and RA15 on the DIP switch SW12 to the ON position 3V battery enables the operation of the real time clock when the power supply is off Quartz crystal provides real time clock with clock signal Real time clock is connected to the microcontroller via RG3 RG2 and RA15 pins AAA SS TL DLE OOP aaa xa CINE VCC Cie O RC2 RC3 P uiz eng em m RG7 mL he vccl 1K 1K 1K 32 768kHz Lem Su 2 po OUT TT mm CLR Saw dsPIC30F6014 E pa PANN o EA Ieidis SDA me VCC RTC OUT J BAT1 mm RA12 RA13 3V 230mA DS1307 RB5 RB4 mm RB3 RB2 mm RB1 m RBO 8LZ9Gp Figure 12 2 Real time clock and microcontroller connection schematic MikroElektronika 18 BIGdSPIC6 Development System 13 0 USB UART Module The USB UART module is used to connect the microcontroller provided on the development system to external USB devices The USB UART module features the FT232RL circuit providing an interface between the USB device and serial UART module integrated into the microcontroller In order to establish connection between the microcontroller
8. B8 and RB12 used as input pins for A D conversion A D conversion is performed via RB8 and RB12 microcontroller pins VCC O R28 P3 li Soo dsPIC30F6014 Top view me VCC VCC Se me RA12 O RB12 RA13 C B IZ RBS P4 RB14 RB4 10K ei B IS RB3 220 EE he RB1 RBO Figure 6 3 A D converter test inputs and microcontroller connection schematic NOTE In order to enable the microcontroller to accurately perform A D conversion it is necessary to turn off LEDs and pull up pull down resistors on the port pins used by the A D converter MikroElektronika BIGASPIC6 Development System 7 0 Votage Reference Source BIGdsPIC6 provides the MCP1541 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 RA10 or RBO pin Microcontroller is fed with voltage reference via the RA10 pin mm RG15 RC1 RC2 CONOS mm RC4 Lied Cie m RGS MCLR R VCC eer gs dsPIC30F6014 2 GND gt GND VCC D 4 096V VOUT RA12 CINE MCP1541 m RBS ma RB4 m RB3 RB2 RB1 mm RBO 10uF 8l 9sve Figure 7 1 Voltage reference connection schematic 8 0 Serial EEPROM Module EEPROM Electrically Erasable Programmable Read Only Memory is a built in memory module used to store data that should be saved when the power supply goes off The 24AA01 circuit can store up to 1Kbit data and communicates with t
9. D card connector 27 Power supply voltage regulator 28 77 LEDs indicate pins logic state 29 Potentiometer for adjusting LCD contrast 30 Alphanumeric LCD display connector BIGdSPIC6 Development System 1 0 Connecting the System to a PC Step 1 Follow the instructions provided in the relevant manuals and install the dsPICFLASH program and USB driver from the product CD USB drivers are essential for the proper operation of the on board programmer In case you already have one of the Mikroelektronika s dsPIC compilers installed on your PC there is no need to reinstall USB drivers as they are already installed along with the compiler Step 2 Use the USB cable to connect the development system to a PC One end of the USB cable with a USB connector of B type should be connected to the development system as shown in Figure 1 2 whereas the other end of the cable with a USB connector of A type should be connected to a PC When establishing a connection make sure that jumper J11 is placed in the USB position as shown in Figure 1 1 AC DC connector USB connector J usus erenco J11 power supply selector POWER SUPPLY switch Y L j 1 POWER SUPPLY K w gt d WB mmm Figure 1 1 Power supply Figure 1 2 Connecting USB cable 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
10. E ve F EXTERNAL gt gt na d cas EXT XTERNAL gt COM J T MEA Era SR Figure 4 1 Pins RB6 and RB7 are Figure 4 2 Pins RB0 i RB1 are used for programming used for programming External ICD programmer connected to RB0 and RB1 pins RB1 MCU dsPIC30F6014 reich Figure 4 3 ICD connector s pinout and pin designations MikroElektronika BIGASPIC6 Development System 5 0 Power supply The BIGdsPIC6 development system may use one of two power supply sources 1 5V PC power supply through the USB programming cable and 2 External power supply source connected to an AC DC connector provided on the development board The MC34063A voltage regulator and Gretz rectifier are used to enable 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 J11 is used as a power supply source selector To make advantage of the USB power supply jumper J11 should be placed in the USB position When using the external power supply jumper J11 should be placed in the EXT position The development system is turned on off by switching the position of the POWER SUPPLY switch AC DC connector LUSS PROG pegy jajja PP LOGIC ONE AAA sie de ED B J i d d mas metro t i F Cree wii Power supply voltage regulator a g LFL CFE Ds ARE ACTIVAT See sf Lo a CFI
11. Er ON O GE CONTACT MCU CA RS P H LED 5 AA No H rg t Hr SC m y wa Jk ja fa UNO L om Ce ARMA INARO Ele KUKOTNEO DEVELOPMENT TOOLS FOR EMBEDDED WORLD DE i zs a lem A ET ban F Si Seel WI Tel ch Au AAL AM SKS Y a Aa L MEER SEEEN PPB DIMM 168P connector RB1 MCU RB7 MCU RB3 RB5 DIMM 168P RBO MCU RB2 RB4 RB6 MC Figure 2 4 Schematic of the DIMM 168P connector s pinout page wa Placing MCU card into the DIMM 168P connector is performed as follows ed E e tar de iy S CT w BO pin TOFP 1 MCU CARD eS WE UTES SA Vg Sep e Push the MCU card T gently into the DIMM 168P SS and lift extraction levers slowly at the same time Extraction levers used to fix the MCU card in closed position MikroElektronika BIGdSPIC6 Development System ATIT ET Eo En trde EN EE BO pin TOFP 1 MCU CARD 727727 gem F LLL TT i Gas E i A Z MA E Close the extraction ieee when the MCU card is properly placed into the connector Extraction levers used to fix the MCU card in open position BIGASPIC6 Development System 3 0 On board dsPICFlash Programmer A programmer is a necessary tool when working with microcontrollers It is used to load a hex code into the microcontroller and provides an interface between the microcontroller and a PC The B Gd
12. H program to select desired microcontroller to be programmed Click the Write button to dump the code into the microcontroller On the left side of the dsPICFLASH programs main window there is a number of options for setting the operation of the microcontroller to be used A number of options which enable the programming process are provided on the right side of the window Positioned in the bottom right corner of the window the Progress bar enables you to monitor the programming progress MikroElektronika 10 BIGdSPIC6 Development System 4 0 ICD Connector The ICD connector enables communication between the microcontroller and an external ICD debugger programmer ICD2 or ICD3 from Microchip Jumpers J14 and J15 are used for selecting the pin to be fed with programming signal For the programming signal to be sent to the microcontroller it is necessary to place both jumpers in the same position as shown in Figure 4 3 Either RBO and RB1 or RB6 and RB7 microcontroller pins can be fed with this signal The position of jumpers J14 and J15 depends on the microcontroller provided on the MCU card When the dsPIC30F6014 microcontroller is programmed by means of the external ICD programmer jumpers J14 and J15 should be placed in the RBO and RB1 position respectively In case some other microcontroller is used it is necessary to check which microcontroller pins can be fed with the programming signal ie ld CO f p P
13. ISK 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 MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities TRADEMARKS The Mikroelektronika name and logo the Mikroelektronika logo mikroC mikroC PRO mikroBasic mikro Basic PRO mikroPascal mikroPascal PRO AVRflash PICflash dsPICprog 18FJprog PSOCprog AVR prog 8051prog ARMflash EasyPIC5 EasyPIC6 BigPIC5 BigPIC6 dsPIC PRO4 Easy8051B EasyARM EasyAVR5 EasyAVR6 BigAVR2 EasydsPIC4A EasyPSoC4 EasyVR Stamp LV18FJ LV24 33A LV32MX PIC32MX4 MultiMedia Board PICPLC16 PICPLC8 PICPLC4 SmartGSM GPRS UNI DS are trademarks of Mikroelektronika All other trademarks mentioned herein are property of their respective companies All other 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
14. LE J r ell Ruas POWER SUPPLY signal LED POWER ai a POWER d L 4563 Wi s POWER SUPPLY switch 3 DR Jumper J11 as a power supply source selector Re power supiy E ima Figure 5 1 Power supply J11 EXT USB Powering over an USB connector EXT USB Side view AE Side view Side view S85 ay 4x1N4007 Side vie Top E eier M E A Side view I Side view Side view Side view Bottom view Figure 5 2 Power supply source schematic 11 MikroElektronika 12 BIGdSPICG Development System 6 0 A D Converter Test Inputs An A D converter is used for converting an analog voltage into the appropriate digital value The A D converter is linear which means that converted number is linearly dependent on the input voltage value The A D converter built into the microcontroller converts an analog voltage value into a 10 bit number Potentiometers P3 and P4 enable voltage to vary between 0 and 5V The microcontroller with a built in A D converter is supplied with this voltage via test inputs Jumpers J16 and J17 are used for selecting one of the following pins RB8 RB15 to be supplied with A D conversion voltage Resistors R28 and R29 have a protective function and are used to limit current flow through the potentiometer or the microcontroller pin 3 UART I J jj _ F ai a A E a A Figure 6 1 ADC jumpers i in default position Figure 6 2 Pins R
15. R CW Sr Ei gt 2 dl ES Push buttons used for simulating digital inputs ES Bottom view Side view Jumper J12 used to shorten protective resistor RESET button RSTbut B i Jumper J13 used for selecting logic state to be applied to the pin by pressing push button ed TT EC B i pr vm Figure 16 1 Push buttons By pressing any push button when jumper J13 is in the VCC position a logic one 5V will be applied to the appropriate microcontroller pin as shown in Figure 16 2 By pressing a push button the appropriate pin will be driven high 1 dsPIC30F6014 Figure 16 2 Push buttons and port PORTB connection schematic MikroElektronika BIGdSPICG Development System 21 BIGdSPIC6 Development System The BIGdsPIC6 development system provides an on board connector for the alphanumeric 2x16 LCD This connector is linked to the microcontroller via ports PORTB and PORTD Potentiometer P1 is used to adjust display contrast Switch LCD GLCD on the DIP switch SW11 is used to turn the display backlight on off Communication between the LCD and the microcontroller is performed in a 4 bit mode Alphanumeric digits are displayed in two lines each containing up to 16 characters of 7x5 pixels L Pat ri d i Be E USB LART end q W s be oe 3 IFA CAN Pat ae y RN w TA USB UART kt EFF E A De LUTTE TI LCD 2x16 a Diosa amp Ber sc Contrast adju
16. SD CARD W E EA F do N P P F S Roemer Y i Co Yi pu Ls A Z UCC RR WR WR DIR G RR WW J17 CONNECTS POTENTIOMETER F4 TO RB12 RB13 RB14 OR RB15 Le LE Z x Z RESET Ae CONNECTS PIEZO BUZZER TO RD8 PIN it m El sl s mi mi Asssssssss S WE an See ee ee le ee u le it m Em Em mb mi Im DEVELOPMENT BOARD m x mm o can t n n Fm nn R Fa nn nn h A ns EE BIGdsPIC6 PROTECT 13 IS USED FOR SELECTING VOLTAGE LEVEL TO BE APPLIED WHEN BUTTON IS PRESSED HWREV 1 01 BY MIKROELEKTRONIKA Key Features 1 USB 2 0 programmer with mikro CD support 2 Connector for Microchip s debugger ICD2 or ICD3 3 CAN communication module 4 USB UART Module 5 A D converter test inputs 6 Connector A for RS 232 communication 7 Real Time Clock 8 Connector B for RS 232 communication 9 DIMM 168P socket for MCU cards 10 Jumper for pull up pull down resistor selection 11 DIP switches enable pull up pull down resistors 12 I O port connectors 13 DIP switches turn on off on board modules 14 4 096V voltage reference 2923 2969 19 48 17 15 Serial EEPROM module 16 Potentiometer for adjusting graphic display contrast 17 Touch panel controller 18 Graphic LCD connector 19 Piezo buzzer 20 3 3V voltage regulator 21 Touch panel connector 22 Push buttons simulate microcontroller digital inputs 23 Jumper for protective resistor shortening 24 Jumper for selecting push buttons logic state 25 Reset button 26 MMC S
17. TE Em E J J J m mim m j j CIR j Z gt Z lt Z ZG Z RR m mm m B mm m SERIAL Y Z E E SR RSR EEPROM Z Z Z Pub O OR lJ s OR UR UN UN sum UR UR OM JE 7 Z Z ZZ Z GE ones A 7 9 sa A Z Z Z POWER pe un un c no DE Em A ZZ PORTE Z I I I I 1 I i I I j I Z ZZ Z SUPPLY POWER m ren SE hom a k u bu D a k z O Z EXT USB m j Y Z EE ees Z u RE RA Ba ha KA ER KREE j E ZZ Z OFF Sea ON RR NW HR RN f RR K Z CU T deeg el ee a h POWER SUPPLY J F PH PY Pe Te ee oe Y E DR RR WR WR RR RR s es PORTF E ZG TOC A me 7 m A E EN Ri Eh Bir aa SH w O Z Z Z m m DR DR RR WR WR RR RW 4 CA l Y Z 1 ZZ m SE OO iE Y F F F EN PR F F N 5 GY V m nn mm DR DR RS s df Z A m ma Z ZZ PORTG u m NECTS RX AND TX LINES FOR USB UART COMM ON LI ri ma em a a a a a a a et ZZ mej 3 e 1 Ch Ch Ch Ch Ch Ch Ch S 110 Z 7 ma m mmm nm mm Ku 22 Bm mm Ui PA Z E TOUCH Z Z E EE J E PANEL Y Z G b sf a oe ee of E Z 4 Z Wor a 1 3 Ch Oh Ch Ch Ch UI d CONTROLLER Z Z Z OO BM DR RR H DR RR 4 iy ri 110 Z Z Z k ee 11X Z mm mmm Z Z A aja a a A IFE EI qmm mmm wei m bg ha pi nm nn an NE oe Jr 7 ws 7 DISA ONS ro C C Z Z Z E J14 J15 SELECT APPROPRIATE PGC AND PGD PINS FOR EXTE NAL ICD I H H a Z d tt E Z CO H3 TO RB8 RB9 RB10 OR RB11 oo D A MMC
18. asily simulate the operation of the target device E rir Ko wv ie Full featured development r ma ER ung SE system for dsPIC CAA Tee leJN54B microcontroller based devices lt EE EE e sl iii Le LEIIIIILts TEBEOS H USB 2 0 on board programmer y A IN e Pi o je g Bei E HUT a HI Built in debugger for testing E programs in real time at IN CIRCUIT DEBLIGGER hardware level d GOLD PLATED EDGE CONTACT MCU CARD a RR H Ab Eug K a5 e D WER e SaaS e E d me e a iz Lu w CR l x x MMCISD GE A possibility of reading MMC SD memory cards MEMORY CARD O UE HR Graphic LCD with backlight e BIGdSPICE The dsPICFLASH program provides a complete list of all supported microcontrollers The latest version of this program with updated list of supported microcontrollers can be downloaded from our website at www mikroe com Ch Package contains D copie system BIGdsPIC6 product CD with relevant software USB cable Documentation Manuals for BIGdsPIC6 and dsPICflash quick guide for installing USB drivers electrical schematic of the system System specification CH Wi gt ee 2319318 Power Supply over an AC DC connector 7 23V AC or 9 32V DC or over a USB cable for programming 5V DC Power consumption 40mA in idle state when all on board modules are off Dimension 26 5 x 22cm 10 4 x 8 6inch Weight 462g
19. automatically turned on indicating that your development system is ready to use Use the on board programmer and the dsPICFLASH program to dump a hex code into the microcontroller and employ the system to test and develop your projects NOTE If some additional modules are used such as LCD GLCD etc it is necessary to place them properly on the development system while it is turned off Otherwise either can be permanently damaged Refer to figure below for the proper placing of the additional modules F a eh d ker oh I e k Ae ma 7 k w 5 4 b 2 E h lt e Figure 1 3 Placing additional modules on the board MikroElektronika 2 0 Supported Microcontrollers The BIGdsPIC6 development system provides a DIMM 168P connector to place an MCU card into This development system comes with an MCU card with a microcontroller in 80 pin TQFP package soldered on it Figure 2 3 Besides the MCU card alone provides an oscillator as well as 80 soldering pads connected to the microcontroller pins Each pad is marked the same as the pin it is connected to Soldering pads also make connection between the MCU card and target device s modules easy En BO pin TOFP 1 MCU CARD DIMM 168P Ln A o AAA Tees TERR HE connector for placing dd AT TEPER ELDER Eee SEES the MCU card with a microcontroller in TQFP package RD A gt aE z E a d rrr AAA Mo CPA Wreveeces 1 all dl n 8 Li
20. depends on the position of jumpers J1 J10 r 5 PORTA 2x5 male connector Additional module connected to PORTC Jumper for pull up pull down resistor selection Fig re 20 2 J9 in pull down position DIP switch to turn on pull up pull down resis tors for each port pin Figure 20 3 J9 in pull up position E Sita gab e Figure 20 1 UO ports Port PORTB pins are connected to pull down resistors ae RN2 Dot 8x10K dean J2 sw2 n a SE RB0 IN LD9 PY A CRA Cen RC2 mm RC3 me RC4 Casters CAET mu RG8 EES E dsPIC30F6014 RA12 mm RA13 RB3 RB2 RB1 RBO Figure 20 4 Port PORTB connection schematic MikroElektronika fi Pull up pull down resistors enable you to set the logic level on all microcontroller s input pins when they are in idle state Such level depends on the position of the pull up pull down jumper The RD8 pin with the relevant DIP switch SW6 jumper J6 and RD8 push button with jumper J13 are used here for the purpose of explaining the performance of pull up pull down resistors The principle of their operation is the same as for all other microcontroller pins RG13 mm RG12 m RG14 m Cat Cen COSO mm RC3 ma RC4 RG6 L RG7 RG8 mm VICLR CINE CEN CC mm RA12 dsPIC30F6014 mm RA13 mu RB5 CON mm RB3 bb RB1 RBO Cat RC1 51622 m RC3 m RC4 CARELS CARET CARE m VICLR CNet Cela CNO e CONAM COSA RB5 COSES
21. e microcontroller and touch panel Figure 19 1 Placing touch panel over a GLCD Figure 19 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 as shown in Figure 4 Touch panel is connected to the microcontroller via pins RB8 RB9 RF0 and RF1 NO gzosvezi o BEE S m copo TOUCHPANEL CONTROLLER Figure 19 2 Touch panel connection schematic Figure 19 3 Connecting touch panel Figure 19 3 shows in detail how to connect a touch panel to the microcontroller Bring the end of the flat cable close to the CN23 connector Figure 1 Plug the cable into the connector Figure 2 and press it easily so as to fully fit the connector Figure 3 Now a GLCD can be plugged into the appropriate connector Figure 4 NOTE LEDs and pull up pull down resistors on ports PORTB and PORTF must be off when using a touch panel MikroElektronika BIGdSPICG Development System 2 20 0 Input Output Ports Along the right side of the development system there are ten 10 pin connectors connected to the microcontroller s I O ports Pins RBO RB1 RB6 and RB7 are used for programming and therefore are not directly connected to the appropriate 10 pin connector but via the programmer s multiplexer DIP switches SW1 SW10 enable each connector pin to be connected to one pull up pull down resistor Whether pins of some port are to be connected to a pull up or a pull down resistor
22. he microcontroller through pins RG2 and RG3 using lZC communication In order to enable connection between the EEPROM module and the microcontroller it is necessay to set switches 3 and 4 on the DIP switch SW12 to the ON the position Serial EEPROM is connected to the microcontroller via pins RG2 and RG3 mm RG15 mm RC1 m RC2 Cex mm RC4 CARELS r RG7 m RG8 Iw e dsPIC30F6014 s z RA12 Wier t OVCC Goen DN I2C SDA CIA RG2 EED w RB4 RFG mm RB3 RF7 RB2 RFS ma RB1 RF2 mm SU RF3 mu U3 gA0 dee R64 A WPI Be E 2 es ET uvcsaA C6 100nF 24AA01 Figure 8 1 Serial EEPROM module and microcontroller connection schematic MikroElektronika 14 BIGdsPIC6 Development System 9 0 MMC SD Connector The MMC SD connector enables the memory card to be interfaced to the microcontroller in order to expand microcontroller memory To enable serial communication between the microcontroller and the memory card it is necessary to adjust their voltage levels Memory card is powered with the 3 3V power supply voltage VCC MMC generated by the REG1 voltage regulator whereas the value of the microcontroller power suplly voltage is 5V VCC A bus transceiver 74LVCC3245 is used here to adjust these voltage levels In addition in order to establish communication between memory card and microcontroller it is necessary to set switches 6 7 and 8 on the DIP switch SW12 as well as switches 1 and 2
23. ler by the appropriate code written to its memory Remember when writing the voltage signal generation code the piezo buzzer s resonant frequency is 3 8kHz In addition other frequencies in the range between 20Hz and 20kHz can be used but the best performance is provided by frequencies ranging between 2kHz and 4kHz The voltage signal can be generated via the RD8 microcontroller pin Jumper J18 is used to connect the piezo buzzer with the RD8 microcontroller pin Transistor Q5 is used to amplify voltage signal generated by the microcontroller Piezo buzzer s resonant frequency 3 8kHz Figure 14 1 Piezo Buzzer Piezo buzzer is connected to the microcontroller via pin RD8 mE RG15 RC1 m RC2 RC3 RC4 m RG6 Caner mm RG8 m MCLR RG9 So dsPIC30F6014 CC mm RA12 mm RA13 ma RB5 m RB4 mm RB3 m RB2 RB 1 m RBO BUZZER Figure 14 2 Piezo buzzer and microcontroller connection schematic MikroElektronika fi I BIGdsPICG Development System 15 0 LEDs LED Light Emitting Diode is a highly efficient electronic light source When connecting LEDs it is necessary to use a current limiting resistor A common LED voltage is approximately 2 5V while the current varies from 1 to 20mA depending on the type of LED The BIGdsPIC6 uses LEDs with current 1mA There are 77 LEDs on the B GdsPIC6 development system which visually indicate the state of each microcontroller I O pin An active LED indicates that a
24. 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 PORTG or PORTG E using the DIP switch SW11 S PUE CF re PC T F z T Piri 8 Lag Ae L 3 UNITS C A cn boami THEEMS BOT tee e AN BE PEA DeLee K k Sg T PLACE LCE AND GL e i ER e Hat CAN bf aa Notch indicating the SMD LED cathode Microcontroller SMD resistor limiting current flow through an LED TT w l dl A d dd Figure 15 1 LEDs Port PORTB LEDs are turned on A RBO M NLD9 Na Y dsPIC30F6014 Figure 15 2 LEDs and port PORTB connection schematic MikroElektronika 16 0 Push Buttons The logic state of all microcontroller input pins may be changed by means of push buttons Jumper J13 is used to determine the logic state to be applied to the desired microcontroller pin by pressing appropriate push button The function of the protective resistor is to limit the maximum current thus preventing the development system and peripheral modules from being damaged in case a short circuit oc curs If needed advanced users may shorten such resistor using jumper J12 Right next to the push buttons there is a RESET button which is not directly connected to the microcontroller pin The reset signal is generated by the programmer g ya See J A WW rise a ie HA d H e gem E Ro l ane ai L Fr Top view Inside view D gie n L
25. n between the microcontroller and MCP2551 it is necessary to set switches 5 and 7 on the DIP switch SW14 to the ON position Switches 6 and 8 on the DIP switch SW14 may also be used for this purpose Which of these switches is to be used depends solely on the arrangement of the microcontroller pins connected to CAN communication lines The RX line is connected to the microcontroller via RGO and RFO microcontroller pins whereas the TX line is connected to the microcontroller via RG1 and RF1 microcontroller pins e pp ah RBO SA I a 214 318 POR F KTERNAL CAN d CONI mg A COMM A Figure 11 2 CAN module connector Figure 11 1 CAN module CAN communication is enabled via DIP switch SW14 Ge vcc R10 10 RC2 5 mm RO3 I TXD RO CN22 m RX CAN Se B GND No s CANH a ae RG7 e u e e Ng CANL e m RG8 mm MCL 5248 WS See dsPIC30F6014 lt _ mm CC me RA12 VCC mm RA13 m RB5 C1 ma RB4 m RB3 100nF m RB2 m RB 1 m RBO Figure 11 3 Microcontroller and MCP2551 connection schematic MikroElektronika BIGdsPIC6 Development System 1 12 0 Real Time Clock RTC The DS1307 circuit enables the BIGdsPIC6 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
26. on the DIP switch SW13 to the ON position _MMC SD CARD Sg RESET wr o Fi TE VCC MMC REG1 FP2 VOUT a 3 E8 FERRITE E10 1 C5 Es MC33269DT 3 3 10uF 10uF 100nF 10uF mm RC1 VCC MMC UM Vee RC2Z C12 mm RC3 100nF VIN VCCA Wee ROA ma RG6 MMC CS 3 3 m RG fee dsPIC30F6014 A0 E E Hai E VCC MMC MMC CARD MOSI 3 3 SCK 3 3 74LVCC3245 Figure 9 3 MMC SD connector and microcontroller connection schematic MikroElektronika BIGASPIC6 Development System 10 0 RS 232 Communication Module USART Universal Synchronous Asynchronous Receiver Transmitter is one of the most common ways of exchanging data between the PC and peripheral units RS 232 serial communication is performed through a 9 pin SUB D connector and the microcontroller USART module The BIGdsPIC6 provides two RS 232 ports RS 232A and RS 232B Use switches RX232 A and TX232 A on the DIP switch SW14 to enable port RS 232A Likewise use switches RX232 B and TX232 B on the DIP switch SW14 to enable port RS 232B The microcontroller pins used in such communication are marked as follows RX receive data line and TX transmit data line Data 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 adjust these levels using an IC circuit such as MAX202 MAX232 Wf I e RS 232 connect
27. or H Figure 10 1 RS 232 module The function of switches 1 2 3 and 4 on the DIP switch SW14 is to determine which of the microcontroller pins are to be used as RX and TX lines Figure 10 2 Ports RS 232A and RS 232B are connected to the microcontroller U4 O U5 O vcc El ele E vec a RX232 A C1 100nF Wees GNDI E v ci T1 OUTI c1 T1 0UTE TX232 B J C19 R1 IN C2 R1 IN nl 100nF H R1 OUT H c2 R1 OUT H RC4 T1IN cao Iv T1 INE 100nF mm RG6 RG7 BT2OUT T2INE EPA AS RG8 ER2IN R2OUTB vec zm R2OUTI MCLR Eco dsPIC30F6014 E a le i RA12 mm RA13 Nip mm RG15 mm RC 1 Cer m RC3 o 8BLOGVTECI L R CIN mu RB4 RB3 RB2 mm RB1 RBO Bottom view Bottom view Figure 10 2 RS 232 module connection schematic NOTE Make sure that your microcontroller is provided with the USART module as it is not necessarily integrated in all dsPIC microcontrollers MikroElektronika 16 BIGdSPIC6 Development System 11 0 CAN Communication Module CAN Controller Area Network is a communication standard primarily intended for use in automotive industry lt enables the microcontroller to communicate to a car device without using a host PC In addition such communication is widely used in industrial automation The B GdsPIC6 uses the MCP2551 circuit for CAN communication This circuit provides an interface between the microcontroller and some peripheral device To enable connectio
28. owners benefit with no intent to infringe Mikroelektronika 2010 All Rights Reserved 1O09 30 IU O a91yo je sn JOe UOD 0 ajeyisay JOU op TEST JO S U WILUOO suons nb Aue ney nok y yodd nemieuug 8OJJILU AWA ye 1 391l INO ao9ejd aseajd uonEguuiojJui euonippe p u KA sjonposd ino 40 Kue yum Sege ulos Duruauadva ae noA y 1e ONSIOM Ke sb ld EE m qrioge asou MEE O juem NOA J LOS DON IL MN A ATOM Q4GGadglAd dOd SNOILNTOS JHVMAYVH INV 4dVA Ld4OS Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery amp Lifecycle Information mikroElektronika MIKROE 504
29. sPIC6 features an on board dsP CFlash programmer The dsPICFLASH program is used for loading a hex file into the microcontroller Figure 3 3 shows connection between the compiler dsPICFLASH program and the microcontroller Programmer s USB connector Programmer s chip Jada S W Figure 3 1 On board programmer H mikrot compiler for dsPIC 30 33 and PIC 24 File Edit View Project Debugger Run Tools Help SE AM AAA XAB AA E Lrd Custom Test Compiling program 1110001001 Bin 0110100011 011112FC23AA7 zs 1011 F43E0021A 26 char txt 10 mikro Hex DA67F0541 ae 28 void main os dd PORIE 30 ADPCFG 31 32 Led Custom Init LV 24 331 33 Led Custom Out 11 3 ERE s 34 Led Custom Out 2 6 txt ap Led Custom Chr 2 7 a ji 36 Led Custom Out 1 10 txt T Led Custom Chr 11 11 0 17 pennt zm rat Tree pakan Q u Kara dep Prep Minn bedi ET amas aper Sod sssr W O A 38 Een geg Propan ee WE ribe se e p span a a r a hex code loading ia h a a oa Se mui en Se hk Q NA Write a code in oneofthe dsPIC compilers generate a hex file and employ the on board programmer to load the code into the microcontroller E A waw Ba n Ha Sam wan L R Figure 3 3 Programming process 6 q DE TE TS TE Figure 3 2 USB connector s front side Write a program in one of the dsPIC compiler and generate a hex file Use the dsPICFLAS
30. stment potentiometer VCC O Top view LCD GLCD L Figure 17 3 Alphanumeric 2x16 LCD connection schematic MikroElektronika BIGdSPICG Development System 2 18 0 128x64 Graphic LCD 128x64 graphic LCD GLCD is connected to the microcontroller via PORTB and PORTD ports and enables graphic content to be displayed It has the screen resolution of 128x64 pixels which allows diagrams tables and other graphic content to be displayed As both ports are also used for the operation of 2x16 LCD the displays cannot be used simultaneously Potentiometer P2 is used for the GLCD display contrast adjustment Switch 8 LCD GLCD on the DIP switch SW11 is used to turn the display backlight on off Contrast adjustment potentiometer Figure 18 1 GLCD Figure 18 2 GLCD connector GLCD display backlight is on Top view LCD GLCD ma RG6 m RG RG8 Soe dsPIC30F6014 E So S1 SE 53 SH ZS SB S7 Ka LC Mes 0 _ ma RA12 NE m RB5 RB4 a RB3 a RB2 Figure 18 3 GLCD connection schematic a aa MikroElektronika Ki 4 BIGdsPIC6 Development System 19 0 Touch Panel The touch panel is a thin self adhesive transparent touch sensitive panel It is placed over a GLCD display Its main function is to register pressure at some specific display point and to forward its coordinates in the form of analog voltage to the microcontroller Switches 5 6 7 and 8 on the DIP switch SW13 are used to connect th

Download Pdf Manuals

image

Related Search

Related Contents

  Proslat 88109 Instructions / Assembly  Manual de instrucciones Balanzas de precisión  Blanco Single Bowl Undermount 509-337 User's Manual  User Manual - EngineerSupply  

Copyright © All rights reserved.
Failed to retrieve file