Home

BigAVR Manual - MikroElektronika

image

Contents

1. External oscillator selected with USB 2 0 PROGRAMMER LEDs Light Emitting Diodes LEDs are the most commonly used components usually for dis playing pin s digital state BigAVR has 86 LEDs that are connected to the microcontroller s PORTA PORTB PORTC PORTD PORTE PORTF PORTG PORTH PORTJ PORTK and PORTL Figure 16 Light Emitting Diodes Each group of LEDs can be enabled or disabled using the switches SW1 and SW2 Fig 17 illustrates the connection of a LEDs to PORTE of the microcontroller A resistor is used in series with the LED to limit the LED s current In this case the resistor s value is 1K gt gAVR MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD D S BigAVR Users Manual DEVELOPMENT TOOLS The LEDs are enabled when the corresponding switch on SW1 and SW2 is on When enabled LEDs will display the state of the corresponding microcontroller pin otherwise the LEDs will always be off no matter what the port state is as no current can flow through LED LEDS PORTA LED PORTB LED PORTC LED PORTD LED l PORTE LED i atststi C s sC lt PORTF LED PORTG LED PORTH LED LED schematic MALUTA PORTJ LED PORTK LED PORTL LED RPACK8 9 8x1K ATmega128 vcc J x1 10MHz 3l C1 C2 p oO ag page a S MIKROELEKTRONIKA SOFTWARE AND HAR
2. J14 5V FP1 5V Vin Vout om GND 2 C1 E 100nF R J ral BigAVR MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD ad i with USB 2 0 PROGRAMMER 1D WSIS PROGRAMMER D sO D D OLN ON BOARD USB 2 0 PROGRAMMER There is no need for the use of exter nal equipment during programming as the BigAVR development system has its own on board USB 2 0 pro grammer All you need to do is connect the sys tem to a PC using the USB cable Then load your program into the microcontroller via the AVRFlash programming software which 1s supplied with the board w Figure 10 On Board USB programmer Note There is no need for manually reseting MCU after programming The programmer will reset the MCU automatically PEO PE1 and PB1 used as programming lines Default i J21 Figure 12 J20 PB2 PB3 and PB1 used as programming lines J21 page MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 3 gAV 4 pevecorwen BigAVR Users Manual TOOLS There are two different AVR MCU groups The first one Default uses special pins for pro gramming PDI PEO pin PDO PEI pin and SCK PBI pin The second one uses SP
3. 11 On Board USB 2 0 programmer page 12 Oscillator page 14 LEDs page 15 Pushbutton switches page 17 Graphic LCD page 20 LCD 2x16 in 4 bit mode page 22 LCD 2x16 in 8 bit mode page 24 RS 232 Communication page 26 DS1820 Digital Thermometer page 29 A D Converter input page 30 PS 2 Keyboard connector page 32 Direct port access page 33 JTAG connector page 35 MMC SD Multimedia Card page 36 BigAVR MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD with USB 2 0 PROGRAMMER BigAVR 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 connect it to the PC Please use USB ports on the back of the PC with direct connection to the moth erboard Step no 2 Install the AVRFlash programmer and drivers Start the installation from the product CD CD_Drive product zip AVRFlash_ setup exe Step no 3 After the installation connect the USB cable to the BigAVR board You will be asked for the AVRFlash drivers Point to them in order to finish the driver installation They are placed in folder System_Drive Program Files Mikroelektronika AVRFLASH Driver NT CONNECTING This SYSTEM Step no 4 Run and use AVRFlash as it is explained in the PDF document AVRFlash programmer CD_Drive
4. product pdf avrprog manual pdf After these 4 steps your BigAVR is 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 compilers for AVR or from the product CD CD_Drive product zip bigavr_examples zip Al MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD with USB 2 0 PROGRAMMER ATMEl INTRODUCTION AVF Ae EE The BigAVR development system is a full featured development board for Atmel AVR 30ARD microcontrollers It has been designed to allow students and engineers to easily exercise and explore the capabilities of AVR microcontrollers It allows AVR microcontrollers to be inter faced with external circuits and a broad range of peripheral devices allowing a user to con centrate on software development Figure 1 illustrates the development board Each component is marked on a silkscreen both top and bottom These marks describe connections to the microcontroller operation modes and provide some useful notes The need for additional schematics is minimized since all relevant information is printed on the board Figure 1 BigAVR development board MMCISD MEMORY CARD Ta mi me is a aBa 5 i m te ia O E b ie m wm E n a io mE T i m i E n E m r D51820 0 S1 Sd 53 54 25 56 57 Tmp w sic iH gA R MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR
5. the screen resolution of 128x64 pixels Before a GLCD 1s connected the user needs to set the jumper J17 Fig 25 to the upper position The GLCD s contrast can be adjusted using the potentiometer P3 which is placed to the right of the GLCD 7 TS Sor tds od a ti d HG 9 a i AASS OKE 4 Gg ZTG i j e gt SS Fy F F ir i Fu z e a he g NOTE Make sure to turn off the power supply before placing GLCD on development board If the power supply is connected while placing GLCD unit can be permanently dam aged MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 3 gA VR bevecorwen BigAVR Users Manual TOOLS In order to enable GLCD f jumper J17 should be set to the upper position labeled as GRAPH J17 GRAPH Vee GLCD contrast LCD8 contrast GLCD and LCD8 selected selected contrast not selected CHAR vec vcc GRAPHIC LGD 126X64 P3 10K R16 10 Contrast Vo vcc Adjustment PE3 PE4 PE5 PE6 PAO PA1 PA2 PA3 PA4 PA5 PAG PA7 PE7 N W a 4 ost PE2 D6 C82 PE3 Br RS PE4 E PE6 ATmega128 RST PE PB7 PG3 PG4 RESET VCC GND XTAL2 XTAL1 PDO PD1 PD2 PD3 PD4 RDS 10K EUGA GLCD schematic C1 C2 Reset ere N N oO al N N g gt a 100n i page BigAVR MIKROELEKTRONIKA SOFTWARE AND HAR
6. using the same pins The connectors can also be used for attaching logic probes or other test equipment ge ee ee X Example of how to connect exter nal peripheral with flat cable MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 3383 with USB 2 0 PROGRAMMER BigAVR Users Manual DEVELOPMENT TOOLS VCC Pull up line is O connected Pull down line All lines is connected are disconnected DIRECT PORT ACCESS PE6 ATmega128 vcc HEADER 5x2 al C1 C2 79 oO ma 22pF 22pF Bl MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BigAVR with USB 2 0 PROGRAMMER MIKROELEKTRONIKA DEVELOPMENT TOOLS JTAG CONNECTOR BigAVR Users Manual JTAG connector can be used as serial programming interface or On Chip debug system For the On chip Debug system in addition to the JTAG interface pins the RESET pin is mon itored by the debugger to be able to detect external reset sources The debugger can also pull the RESET pin low to reset the whole system The JTAG interface is accessed through four pins ect of the microcontroller s TMS Test Mode Sel TCK Test Clock TDI Test Data In TDO Test Data Out PB7 PG3 PG4 RESET I vec GND XTAL2 I XTAL1 Ppo PD1 PD2 4 PD3 PD4 PD5 PD6 MIKROELEK
7. 3 jumper is set to pull up therefore when the button is not pressed pull up resistor pulls the microcontroller s PC2 pin to 5V A button press causes the port pin to be connected to ground J12 is in the lower position Thus only when the button is pressed the microcon troller will sense a logical zero otherwise the pin state will always be logical one On Fig 23 the J3 jumper is set to pull down therefore when the button is not pressed pull down resistor pulls the microcontroller s PC2 pin to 0V A button press causes the port pin to be connected to 5V J12 is in the higher position Thus only when the button is pressed the microcon troller will sense a logical one otherwise the pin state will always be logical zero Reset Q 1 100n BigAVR Users Manual ATmega128 PUSHBUTTON SWITCHES pull down ATmega128 vcc O J12 J 5V while pressed with USB 2 0 PROGRAMMER MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD C LED 128xK64 GRAP awe GRAPHIC LCD CONNECTOR 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
8. DWARE SOLUTIONS FOR THE EMBEDDED WORLD BigAVR with USB 2 0 PROGRAMMER MIKROELEKTRONIKA anaes Users Manual TOOLS PUSHBUTTON SWITCHES BigAVR has 86 push buttons which can be used to change states of digital inputs to microcontroller s ports There is also one switch that acts as a RESET Reset switch schematic is shown in Figure 18 Figure 18 a Reset switch schematic PUSHBUTTON SWITCHES ATmega128 AVRFlash 22pF 22pF On Board USB programmer A E oO oa Reset switch i page BigAVR MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 4 7 with USB 2 0 PROGRAMMER BigAVR Users Manual DEVELOPMENT TOOLS Buttons connections to PORTC is shown in Fig 21 Jumper J12 determines whether a but ton press will bring logical zero or logical one to the appropriate pin When button is not pressed pin state is determined by the pull up or pull down port jumpers In the example shown in Fig 21 J12 is connected to 5V therefore pressing the buttons will bring logical one to the appropriate pins PUSHBUTTON SWITCHES vcc J12 5V while button OV while button is pressed is pressed vec Buttons schematic Figure 21 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD with USB 2 0 PROGRAMMER MIKROELEKTRONIKA DEVELOPMENT TOOLS On Fig 22 the J
9. DWARE SOLUTIONS FOR THE EMBEDDED WORLD Da with USB 2 0 PROGRAMMER MODE J N CD 2x1 amp LCD 2X16 IN 4 BIT MODE A standard character LCD is probably the most widely used data visualization component Usually it can display two lines of 16 alphanumeric characters each made up of 5x8 pix els The character LCD communicates with the microcontroller via a 4 bit or 8 bit data bus each requiring the use of a different connector on BigAVR 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 is shown in Fig 27 where there are only four data lines LCD CONTRAST an i Tae 1 x i pr s i i i n Figure 26 LCD 2x16 in 4 bit mode g NOTE Make sure to turn off the power supply before placing GLCD on development board If the power supply is connected while placing GLCD unit can be permanently dam aged BigGAVR MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD pevecorwen BigAVR Users Manual TOOLS LCD 2x16 in 4 bit mode schematic vcc C Contrast Adjustment P4 i LGD 2X16 UN 4eBUT MODE ATmega128 ss 4004 Aaa 22pF ie aaa Reset 100n i page BigAVR MIKROELEKTRONIKA SOFTWARE AND
10. HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD DD with USB 2 0 PROGRAMMER MODE D D CD 2X16 LCD 2X16 IN 8 BIT MODE When using a character LCD in 8 bit mode the connector that is shared with the GLCD should be used Since this connector has 20 pins and the character LCD has only 14 pins special attention is required when placing the LCD Otherwise the LCD can be permanent ly damaged LCD 2x16 in 8 bit mode CHAR a o g amp Sa a We dey ae FG GLCD LCD i gt CONTRAST pen 552 CEE EAEAEE ALC a oe View from the back ibeberiihiicisi es shows which pins a ae stays disconnected NOTE Make sure to turn off the power supply before placing GLCD on development board If the power supply is connected while placing GLCD unit can be permanently dam aged NOTE Make sure to place the LCD properly Improper placement may damage the LCD unit permanently BigGAVR MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD pevecorwen BigAVR Users Manual TOOLS The LCD must be placed in the marked position with two free pins to the left and four free pins to the right It is important to note that the LCD should be placed or removed from 5 BigAVR only when the power is off Before attachi
11. I communication lines for programming MOSI PB2 pin MISO PB3 pin and SCK PB1 pin With jumpers J20 and J21 you can select which pins will be used for programming acord ing to the MCU type 1K vcc lt cc LONON USB LINK x Reset E5 ree ATmega128 I 100n o m o ol vcc A W 5 a ez S 50 Z e os ae SCL 2 m vE E VEC cuss 5 HE 0 2 U a Tid 27 USB CONN m Cc ee a TO PERIPHERALS ON DEVELOPMENT BOARD ROUE Programmer schematic MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD a 33 with USB 2 0 PROGRAMMER OSCILLATOR BigAVR Users Manual OSCILLATOR MIKROELEKTRONIKA DEVELOPMENT TOOLS BigAVR development board has on board oscillator circuit for generating microcontroller s clock input and also crystal oscillator placed on MCU Card Within the AVRFlash program mer you can either choose internal RC oscillator external clock or external crystal With jumper J1 placed on MCU Card you can choose which clock will be used to drive MCU external oscillator or crystal ATmega128 Oscillator schematic MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD oscilator ETEOREM 74HC04 R10 1M OSCILLATOR J External crystal selected
12. J19 enables connection between 4 096V potentiometer P2 and one of the following pins PF1 PF2 PF3 PF4 or PF5 0 e RiB A D Converter input In order to measure analog signal without interference turn the coresponding switch on SW4 to OFF position This will disable connection of the used PORTF 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 AVR That range is OV to 5V MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 3 gA VR bevecorweny BigAVR Users Manual TOOLS l SiR UNPU A D Converter input schematic A D CONVERTER INPUT E e IO t ON e Li L lL i La ATmega128 Potentiometer P1 is connected to RF2 e and potentiometer P2 is connected to RF3 pin ANALOG TO WUGUUAL CONVER MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD Ol with USB 2 0 PROGRAMMER BigAVR Users Manual DEVELOPMENT TOOLS JAALA PS 2 KEYBOARD CONNECTOR The PS 2 connector allows direct connec tion between BigAVR and devices that use PS 2 communication
13. NS OF MERCHANTABILITY OR FITNESS FOR A PARTIC ULAR PUROSE IN NO EVENT SHALL MIKROELEKTRONIKA ITS DIRECTORS OFFICERS 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 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD D with USB 2 0 PROGRAMMER BigAVR Users Manual W CONTENTS 5 CONNECTING THE SYSTEM page 4 INTRODUCTION page 5 eS DESCRIPTION OF THE DEVELOPMENT SYSTEM page 6 Switches and their functions page 6 Jumpers page MCU sockets page 8 Power Supply page
14. SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MikroElektronika BigAVR Users Manual R ila y id R yS OWA N is tf Lay uy gt fr T fit sess LON iis Y p ao A 7 ko With useful implemented peripherals plentiful practical code examples and a broad set of additional add on boards Serial Ethernet Compact Flash MMC SD ATMEL A V gt ADC DAC CAN RTC RS 485 etc MikroElektronika N N development boards make fast and reliable tools that DEVELOPMEN can satisfy the needs of experienced engineers and IN CIRCUIT 30ARD beginners alike PROGRAMMER Software and Hardware solutions for Embedded World pevecorwen BigAVR Users Manual TOOLS First 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 CONDITIO
15. THE EMBEDDED WORLD L5 with USB 2 0 PROGRAMMER RODUCTION BigAVR Users Manual DEVELOPMENT TOOLS SWITCHES The BigAVR development board features a number of 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 BigAVR development board has four groups of switches The first two groups SW1 and SW2 are used to enable LEDs connected to PORTA PORTB PORTC PORTD PORTE PORTF PORTG PORTH PORTJ PORTK and PORTL Switch SW2 is also used to enable connection between DS1820 temperature sen sor and microcontroller PGO pin and also to enable SPI communication and CS pin for MMC SD Card SWITCHES The switches of SW4 are used to enable a connection between the microcontroller PORTF with external pull up down resistors When PORTF pins are used as digital inputs outputs the appropriate pull up down resistors should be enabled The switches of SW3 are used to enable connection between the microcontroller pins and both RS232 communication devices The first four switches are used for RS232 A communication lines while the second four are used for RS232 B communication lines Group o
16. TRONIKA with USB 2 0 PROGRAMMER ATmega128 SOFTWARE AND HARDWARE JTAG CONNECTOR CN13 Q Z s X X VTref nSRST nTRST X X lt x x DX X lt TDI X x HEADER 5x2 SOLUTIONS FOR THE EMBEDDED WORLD JTAG connector schematic S 00 O mRST es w Zz a St BigAVR Users Manual DEVELOPMENT TOOLS ies MMC SD MULTIMEDIA CARD e MASS STORAGE ac c 2 MMC card is used as storage media for a portable devices in a form that can easily be gt Geet removed for access by a PC For example a digital camera would use an MMC card for storing image files With an MMC reader typically small box that connects via USB or ci some other serial connection you can easily transfer data from MMC card to your comput er Microcontroller on BigAVR communicates with Multi Media Card via SPI communica a tion Modern comput x ers both laptops and desktops often have SD slots which can e read MMC cards a W MMC slot on board To enable MMC card you must turn on switches 5 6 7 and 8 on SW2 By doing that micro controller s SPI comunnication lines SDI SDO and SCK and Chip Select are connected to MMC Working voltage of BigAVR is 5V DC while working vol
17. f 8 switches om Switches 1 and 2 are ON and other switches are OFF C1 _ Switch is ON G O3 lt Switch is OFF E3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD with USB 2 0 PROGRAMMER pevecorwen BigAVR Users Manual 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 For example the jumpers J15 and J16 are used to connect or disconnect PS 2 Data and Clk lines to the PCO and PC1 pins respectively A connection is made when the jumper is placed between two contacts Jumper as a Jumper is ON i switch JUMPERS HE Jumper is OFF cob 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 m MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 7 with USB 2 0 PROGRAMMER MGW GARD MCU CARD The BigAVR development board has a 104 pin MCU Card If you want to use some other microcontroller all you have to do is to change MCU Cards You can use 64 pin MCUs AT
18. megal28 for example or 100 pin MCUs ATmegal280 for example BigAVR MCU Card is shown on the following picture page MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD gAV lt with USB 2 0 PROGRAMMER When you are placing MCU Card on the BigAVR MCU socket you must follow these Steps Step no 1 If there is already MCU Card placed on BigAVR you must remove it by slowly pulling it up Step no 2 ht P ZA Place MCU Card on the board P Note that label on the MCU Card must be at the upper left corner as it is drawn on the BigAVR 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 F F rh wy a lt a Ti Fa r i Ba Eal n JA 3 N a ai AN eS MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MGW GARD MIKROELEKTRONIKA BigAVR Users Manual Devevornet Microcontroller s pins are routed to various peripherals as illustrated in Fig 6 All ports have direct connections to Direct Port Access connectors Such connectors are typically used for connecting external peripherals to the board or for providing useful points for connecting digital logic probe All ports are connected to LEDs push button switches and pull up down resistors which allow easy monitoring and testing of digi
19. ng the LCD set jumper J17 to the lower position The LCD s contrast can be adjusted using potentiometer P3 which is located to the right of the GLCD LCD connector gt U E In order to enable LCD in b jumper J17 should be set P Eon to the lower position Fe labeled as CHAR co z J17 a Vee ew gece aeiead ortreninet onli A im CHAR vo 0 vec S58 P3 10K Contrast Vo Leave four free pins Adjustment Sober oR rere O zoya n a n mee PEN D3 PEO D4 PEJ D5 PE2 D6 PE3 D7 RS PE4 RW PES Leave two free pins E PE ATmega128 to the left side Figure 29 LCD 8 bit mode schematic MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 25 with USB 2 0 PROGRAMMER ON ROZS COMMUNICA RS232 ENABLED RS 232 COMMUNICATION RS 232 communication enables point to point data transfer It is commonly used in data 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 Figure 30 RS232 connectors In order to provide a more flexible system the microcontroller is connected to the MAX232 through the switches 1 2 3 and 4 on SW3 for the RS232 A port and the switches 5 6 7 and 8 on SW3 for the RS232 B port Rx and Tx lines f
20. or the RS232 A port are connected to PEO and PE1 pins respectively Rx and Tx lines for the RS232 B port are connected to PD2 and PD3 pins respectively Both RS232 ports have RTS and CTS lines for implementing hard ware handshaking MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 3 gAV x Devewonnent BigAVR Users Manual Connection between microcontroller and a PC RS232 A Receive data Rx CONNECT MCU TO PC SERIAL gt CABLE 4 CONNECT Sahid PC TO MCU en Data Tx RS232 A CN25 SUB D 9p CON RS 232 COMMUNICATION ATmega128 CIN O RS 232 A BigAVR MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD Tf with USB 2 0 PROGRAMMER BigAVR Users Manual DEVELOPMENT TOOLS Connection between microcontroller and a PC RS232 B CONNECT Receive MCU TO PC data Rx am r gt ET ec D CABLE e CONNECT Send PC TO MCU Data Tx RS232 B CN26 RS 232 COMMUNICATION ATmega128 N Jo lt 0 T F dS O lt zo k O SS ala XVIN N O IS MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BigAVR with USB 2 0 PROGRAMMER bevecorwen BigAVR Users Manual TOOLS DS1820 DIGITAL THERMOMETER DS1820 digital thermometer is well suited to environ mental temperature measu
21. rement having the temper ature 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 BigAVR with its rounded side to the upper edge of the board see Fig 33 otherwise the DS1820 could be permanently damaged DS1820 s data pin can be connected to PGO pin by enabling switch 4 on SW2 There is a mark in the form of half circle for _____ gt proper orientation of DS1820 sensor ATmega128 N S B TET TET DS1820 WIGUT AL THERMOMLE TEL T 50 C g DS1820 T R1 GND VCC l i DS1820 schematic MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 2C with USB 2 0 PROGRAMMER NLP RA GOIN W A JZ LOG TQ DIG A ALN A 2 moana A D CONVERTER INPUT N BigAVR development board has two potentiometers for working with A D Converter aV Analog to Digital Converter Both potentiometers outputs are in the range of OV to 5V Two analog signals can be connected on two different analog input pins at the same time y TY f The jumpers group J18 enables connection between potentiometer P1 and one of the follow b ing pins PFO PF1 PF2 PF3 or PF4 The jumpers group
22. such as PC keyboard or mouse For example the microcontroller can be connected to a keyboard to capture pressed keys or it can be connected to a PC to act as a keyboard CLK and DATA lines are used for data tansfer In this case they are connected to pins PC1 and PCO respec tively DEVELOPMENT PS 2 connector Higteltey ER ae Pe a Phas Figure 38 A 3 s z R Ki YA Keyboard connected to e pa able development board PS 2 KEYBOARD CONNECTOR vec vcc vcc 7 Y vcc R26 i R25 f O PS2 10K 10K CONNECTOR ne CLK DATA Mes Heh 5V ue J15 PE ia NC DATA 5 Pa ATmega128 ye MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD with USB 2 0 PROGRAMMER bevecorwen BigAVR Users Manual TOOLS 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 PORTG PORTH PORTJ PORTK and PORTL there is one 10 pin connector providing DIREGI PORT ACCESS Direct port access connectors Figure 40 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 and switches while external peripherals are
23. tage 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 45 33 6 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD BigAVR with USB 2 0 PROGRAMMER MIKROELEKTRONIKA oe Users Manual TOOLS SPI SDI SPI SDO CS Din GND 3 3V SCK en MMC SD Dout CARD NIS on BY oo ho IRISISIRIRI meee C13 C12 as ols 100nF GND MMC SDI MMC SCK PB3 Pe ATmega128 MMC SD MULTIMEDIA CARD BigAVR MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD B3 7 with USB 2 0 PROGRAMMER BigAVR Users Manual DEVELOPMENT 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 uid PVN If you have any other question comment or a business proposal please contact us E mail office mikroe com Web www mikroe com Forum www mikroe com forum 33683 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD with USB 2 0 PROGRAMMER
24. tal pin state MECU GARD Some pins are connected to other peripherials such as the DS1820 temperature sensor RS 232 communication LCD etc ATmega128 with USB 2 0 PROGRAMMER 0 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD pevecorsen BigAVR Users Manual TOOLS POWER SUPPLY As a power supply source users can select either a regulated supply from the USB cable default or an external power supply In case of the USB power supply the system should be connected to a PC using the USB programming cable while the jumper J14 should be set in the right hand position SELECTABLE In the case of an external power supply the BigAVR board produces 5V using an LM7805 voltage regulator The external power supply can be AC or DC with a voltage between 8V and 16V and the jumper J14 should be set in the left hand position In Fig 7 you can see USB and external power supply connectors POWER SUPPLY Power supply select jumper USB and power supply connectors 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 C usB USB Power Supply ExT CJ G uss External Power Supply External power supply connector 8 16V AC DC

Download Pdf Manuals

image

Related Search

Related Contents

Yamaha KX8 Musical Instrument User Manual  Regulador térmico diferencial TDC 1  Bedienungsanleitung  manual  Kenwood TS-2000(X) External Reference Modification  

Copyright © All rights reserved.
Failed to retrieve file