Home
Ready for XMEGA Manual
Contents
1. AA mmm YON 2 6 099699 mim m C v ma 249696499921 Der CO 2 3 z 222222222 Ready 4 2 gS gs mu XMEGA Ert 0000000000 5oxcpirioN ee c jeeeeeoceee UNE c eo ose ee eeeecoeeee mme 9 60 3 4 5 0 Ve ss 2 ON 682 8 e 16660 XS e PELL ELL ERERREREEEL LEH b 5 a tl 1 n nn amp amp amp amp n n n n n n n amp mn n n 5 e HW REV 1 01 4882 mils 124 mm DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty Therefore this manual is to be treated as any other copyright material No part of this manual including product and software described herein may be reproduced stored in a retrieval system translated or transmitted in any form or by any means without the prior written permission of MikroElektronika The manual PDF edition can be printed for private or local use but 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
2. 4 x ATXmega128A1 63 14 62 C4 22pF 15 e 16 60 18 58 3 57 E 56 e 55 ELT 54 23 53 24 52 25 EN Figure 8 2 Piezo buzzer Decoupling eee eel connection capacitors schematics Page 24 Figure 9 1 Figure 9 2 Figure 9 2 Place the board into the bottom part Wind screws into inner screw Place cover casing plastic and wind of the casing Make sure to align the holes to mount the board to the screws into outter screw holes for connectors with the square openenings bottom casing plastic connecting it with bottom plastics Ready for XMEGA can easily be integrated into the specialized white plastic casing This feature is very convenient for turning the board into a final product The white plastic casing contains inner and outter screw holes Inner are used for attaching the board to the casing and outter are used for connecting the top part of the casing and enclosing the board Casing comes with holes for USB and power adapter connector but you can customize it by driling and cutting holes in specific areas depending on the target application Page 25 510 mils 1839 mils 12 59 mm 46 7 mm 10 Dimensions 1268 mils 32 2 mm 360 mils 9 14 mm 100 mils 2 54 mm 220 mils 975 mils 5 59 mm 24 76 mm d on E4 Q e Ta FAT a 2222222222 M uim
3. Re d V XMEGA Best solution for fast and simple development of applications using 128 1 device With special white plastic casing you quickly turn your Ready for XMEGA project into a final product DEVELOPMENT TOOLS COMPILERS BOOKS TRO MIS RSS 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 Table of Contents Introduction Package Contains Key Features 1 Power supply 2 ATxmegal28Al Microcontroller Key microcontroller features 3 Programming the microcontroller Programming with mikroBootloader mikroBootloader software Identifying device COM port step 1 Choosing COM port Step 2 Establishing connection Step 3 Browsing for hex file Q O U 10 10 11 12 12 13 15 14 14 Step 4 Selecting hex file step 5 Uploading hex file step 6 Progress bar Step 7 Finish upload Programing with JTAG programmer Programing with PDI 4 USB UART 5 Prototyping area 6 Pin headers 7 Reset button 8 Piezo buzzer 9 Integrating with the casing 10 Dimensions 15 15 16 16 17 18 20 21 22 23 24 25 26 Introduction Ready for XMEGA Board is the best solution for fast and s
4. gt Multifunction adapters gt Network adapters b Setup COM Port 1 Change 01 port Saud Rate 115200 Settings i Ai Portable Devices 9 Ports COM amp LPT PCI Parallel Port LPT3 PCI Serial Port COMI Connect to MCU Connect Settings Choose Browse HEX file for HEX Baud rate Data bits ian 02 Start Begin bootloader uploading Stop bits Parity Flow control b BD Processors gt Sound video and game controllers gt lt gt Storage controllers gt lll System devices p Universal Serial Bus controllers gt WSD Print Provider Figure 3 3 Identifying COM port Figure 63095 COM port Open Device Manager window expand Click the Change Settings button Ports section to see which COM port is assigned iate COM to Ready for board in this case COM34 pal IIS which is used for communication with a PC B Page 13 Step 2 Establishing Connection Baud rate is set to 115200bps by default 22 mikroElektronika Bootloader v2 0 0 0 Setup COM Port COM34 port Baud Rate 115200 Change Settings Connect to MCU Sewer Port COM34 Waiting MCU response Connected Browse for HEX Choose HEX file Start Begin bootloader uploading No files opened Figure 3 5 Connecting with mikroBootloader Press Reset button on Ready for XMEG
5. 3 3V TOSC2 PQ1 TOSC1 PQ0 jaja ja co PS PB4 TMS NCEBS TDI mala 12 13 14 15 Sa Ne Ne 128 1 83 e Sou a N Gs N e 2x30 header 2x30 header Figure 6 1 Connection PQ1 TOSC2 8 schematics of 5 HHI pin headers Page 22 Figure 6 2 Pin headers Each microcontroller pin is available for futher connections through on board connection headers Each line is available in two header pins Pins are groupped according to their functions which makes development and connections much easier Everything is printed on the silkscreen so you won t even have to open the microcontroller datasheet while developing Before using the pins you have to solder the provided 2x30 and 2x26 male headers onto the board s pads 7 Reset button VCC 3 3V R8 10K R9 Ti 100 E 100nF RESET 22pF N Em x VOS a ill 22pF Decoupling capacitors PQ1 TOSC2 PQO TOSC1 AVCC m e m N NINININJe jeje e je wINje Solos O U1 S Co 24 Q OR AID ID o 00 O O 2 CN CY CY CY o RESET co ci DID o ja XTAL1 PR1 XTAL2 PRO RESET PDI PDI PQ3 PQ2 TOSC2 PQ1 TOSC1 PQO Figure 7 1 Reset button connection
6. 55 x 3 3 inch weight 67g 0 15 Ibs Page 6 JTAG connector Power LED indicator UART communication LEDs RX TX Power regulator FTDI chip USB UART connector Power connector Power screw terminals Reset button Double row pin headers PDI connection Prototyping area 1 28 1 microcontroller Piezo Buzzer 05 069 ki CUVTVINt UU ANALOG IN mm n E rr n JCIIIIXIIII 2 QE E KLOAT c o HE sct f PET ii N xu foi eral aT al T igi C7 F9 R8 e DIGITAL WO R27 SCL SDA 4 lt e li 5 RR reall 13 ANALOG DIGITALUO e IN DIGITAL VO e 3 22 EG 9 gt H L F t r G t c P Na r t 1 1 Power supply Figure 1 1 Figure 1 2 Figure 1 3 AC DC adapter power supply laboratory power supply USB power connected connected to screw terminals supply connected Ready for XMEGA board can be powered in two ways via USB connection or using external power sources such as adapters and laboratory power supplies USB connection can provide up to 500mA of current which is more than enough for every on board module and for operation of the microcontroller If you decide to use external power supply you can choose between AC DC adapter connector or power screw terminals Voltage values must be within 7 23V AC or 9 32V DC ranges Power LED GREEN will i
7. A board click Connect button within 5s otherwise existing microcontroller program will execute If connected caption on a button will be changed to Disconnect Page 14 step 3 Browsing for HEX file 22 mikroElektronika Bootloader v2 0 0 0 Setup COM Port COM34 port Baud Rate 115200 Change Settings Connect to MCU Disconnect Setup Port COM34 Waiting MCU response Choose HEX file ENT Compected 01 Start Begin bootloader uploading No files opened Figure 3 6 Browse for HEX 9 Click the Browse for HEX button and from a pop up window Figure 3 7 choose HEX file which will be uploaded to MCU memory Step 4 Selecting HEX file Step 5 Uploading HEX file 12 Open 5 mikroElektronika Bootloader v2 0 0 0 b Computer gt 05 Project 1 Search Project Orge New folder mikroBootloader Ji J Program Setup Port COM34 Change Conn Program Files x85 port Baud Rate 115200 Settings a ProgramData Project liste Ni qum B Setup Port COM34 SPI 15553 Waiting MCU response Ji TeDeList c n Connected rowse Opened C Project Led Blinking hex totalemd HEX file for HEX wamp 4 v nAVR 20100110 Start Begin 01 bootloader uploading L Viindouws Suppor D C Project Led Blinking hex Figure 3 7 Locating and Selecting hex file Figure 3 8 Begin upload
8. 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 RISK ACTIVITIES The products of MikroElektronika are not fault tolerant nor designed manufactured or intended for use or resale as on line control equipment in hazard ous 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 mikroBasic mik
9. imple development of various microcontroller applications It comes with ATxmega128A1 and contains double row smart headers for all available microcontroller ports We have groupped pins according to their functions a so you have everything on the silkscreen pis Ready for You don t even have to browse through the Je zy XMEGA 4 datasheet Board also contains USB UART ij M BHO 56000 module prototyping area and power CIO supply circuit Board is specially designed to fit into special white plastic casing so you can turn your XMEGA project into a final product Package Contains Damage resistant protective box Ready Ready for XMEGA user s guide 22 wt EL 4994999998999 9499999999970 VT ses Ready for XMEGA board with double row male pin headers ka CHEMATICS 7 Ready XMEGA Ready for XMEGA schematic Page 5 PRODUCT DVD COMPILERS EXAMPLES SCHEMATICS DRIVERS MANUALS H 20122011 www mikroe c ET Mikrostektronika DEVELOPMENT TOOLS COMPILERS I BOOKS making k simple rights Mikroel 5 DVD with documentation and examples System Specification AC 7 23V DC 9 3ev VLL CONSUMPTION power supply Via AC DC connector 7 23V AC or 9 32V DC power consumption 50mA in idle state when on board modules are off board dimensions 141 x 84mm 5
10. ing RN o Select HEX file using open dialog window To start file bootloding click the 2 Click the Open button Begin uploading button Page 15 Step 6 Progress bar mikroElektronika Bootloader v2 0 0 0 mikroBootloater Setup Port COM34 Change Conn port Baud Rate 115200 Settings o 9 History Window Disconnect Setup Port COM34 Waiting MCU response Browse for Connect to MCU Connected Opened Project Led Blinking hex Uploading Choose HEX file Start bootloader Show Activity C Project Led Blinking hex Figure 3 9 Progress bar You can monitor HEX file uploading via progress Page 16 Step 7 Finish upload r G mikroElektronika Bootloader v2 0 0 0 Reset MCU Uploading program has finished progress ba Show Activity C Project Led Blinking hex Figure 3 10 Restarting MCU Click OK button after uploading is finished Press Reset button on Ready for XMEGA board and wait for 5 seconds Your program will execute automatically Figure 3 11 amp placing 10 pin header g Figure 3 12 connecting JTAG programmer Ready for XMEGA board contains JTAG connector pads so you can program the board and debug your code using external programer debugger Before connecting the programmer you have to solder the provided IDC10 2x5 male header onto the board
11. l programmer 2 Using PDI external programmer You can program the microcontroller with bootloader which is preprogrammed into the device by default To transfer hex file from aPC to MCU you need bootloader software mikroBootloader USB HID which can be downloaded from QG http www mikroe com eng downloads get 1271 mikrobootloader_xmega_v101 zip After software is downloaded unrar it to a desired location and start mikroBootloader USB HID software mikroBootloader 4 WinRAR archive 1 51 MB Firmware File folder Software Linux File folder ti Software Windows File folder mikroBootloader 4 Bootloader tool for mikroElektron mikroElektronika n ot e This version of mikroBootloader is specialized for 1 28A1 chip Page 12 Before starting mikroBootloader software connect Ready for XMEGA with a PC using USB cable provided with the package 22 mikroElektronika Bootloader v2 0 0 0 Setup Port COM1 Change port Baud Rate 115200 Settings Connect History Windo to MCU Connect Choose Browse file for HEX Start Begin bootloader uploading No files opened Figure 3 2 mikroBootloader window When you start mikroBootloader software a window shown on Figure 3 2 should appear Identifying device COM port step 1 Choosing COM port Device Manager mikroElektronika Bootloader 2 0 0 0 File Action View Help e 9 m 58 S 2 Rs
12. ndicate the presence of power supply Use only one of suggested methods for powering the board Page 8 VCC 3 3V AVCC VCC 5V VCC USB MBRS140T3 FP2 FERRITE VCC 3 3V 2 E C18 C19 C10 VREF 1 8V VCC 3 3V 2 FERRITE 3 C22 22K 12K1 m I USB 1 8V VOLTAGE REGULATOR 3 3V VOLTAGE REGULATOR VCC 5V VCC 5V R56 1N4007 1N4007 POWER VCC EXT LD1 5 D3 330uF 6V MBRS140T3 MC34063A 3K 1N4007 330uF 35V R11 1K 5V SWITCHING POWER SUPPLY Figure 1 4 Power supply schematics 2 Ready for XMEGA development system comes with the ATxmega128A1 microcontroller Having lots of MIPS power flash and RAM and rich set of inegrated modules 128 1 is ideal choice for both beginners and professionals DATA BUS Debug Prog interface Key microcontroller features Up to 32 MIPS Operation 8 16 bit architecture 128KB of Flash memory 8KB of SRAM memory 2048Bytes of EEPROM 78 pins c dog Timer 32kHz RTC 1 6 to 3 6V Operating Voltage VCC DATA BUS EVENT ROUTING NETWORK TIMERS COUNTERS JU UU a ADC DAC AC etc ZART SPI TWI COMMUNICATION Page 10 Figure 3 1 ATxmega128A1 Maier ee m 205 microcontroller be programmed three ways Via USB UART mikroBootloader Using externa
13. roPascal AVRProg Ready for XMEGA EasyAVR EasyAVR PRO Click Boards and mikromedia 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 owners benefit with no intent to infringe Copyright MikroElektronika 2012 All Rights Reserved If you want to learn more about our products please visit our website at www mikroe com If you are experiencing some problems with any of our products or just need additional information please place your ticket at www mikroe com esupport If you have any questions comments or business proposals Ready for XMEGA Manual ver 1 00 07100000 019061 do not hesitate to contact us at office mikroe com
14. s JTAG connector pads If bootloader program is accidentally erased you can upload it again via AVR JTAG or PDI programmer Ready for XMEGA Bootloader Firmware hex can be found under Firmware folder see page 12 Figure 3 13 placing 6 pin header i Kae gt aa The board is also equipped with PDI connector pads which allow you to program the microcontroller using external serial PDI programmer Before attaching the programming connector you have to solder the provided 2x3 male header to the board s PDI connector pads Figure 3 14 Connecting PDI programmer Page 18 i Co N2 I PB4 TMS PB5 TDI PB6 TCK PB7 TDO MT PRI PQO TOSCI XTAL1 PR1 XTAL2 PRO RESET PDI TOSC2 PQ1 TOSC1 PQ0 128 1 Figure 3 15 PDI amp JTAG programmer connection schematics UPA VCC 3 3V CN6 CN8 PDI Decoupling Capacitors VCC 3 3V PDI VCC 3 3V M 3 PB4 TMS s PB5 TDI I PO1 TOSC2 0 5 MM RESET 22pF I _1 2 22 1 45 ZH189Z 4 USB UART Fast on board FTDI chip allows you to communicate with a PC or other UART devices using USB UART connection USB B connector CN3 is used for connecting the USB cable RX receive and TX transmit LEDs will indicate communication status Before conecting the board with
15. schematics JO JLT IM ja 5 jaja jr jo oo co CO co oO CO oo JOO JIN I gt I gt I gt GND VCC PK7 PK6 PK5 PK4 PK3 PK2 1 128 1 co xr Lo IR O FIN o0 ILN JO O gOo eco e lt 5 sr sr SE SE koni koni L a VCC 3 3V Ready for XMEGA board has a specialized reset circuit with high quality reset button which can be used to reset the program execution of the microcontroller If you want to reset the circuit press on board RESET button It will generate low voltage level on microcontroller reset pin input In addition a reset can be externally provided through RST pin on 2x26 header Figure 6 1 On board piezo buzzer is a very useful module which can be used in debuging your code or to have audio signalization feature when board is integrated as a final product Piezo buzzer s resonant frequency is 3 8kHz In addition other frequencies in the range between 20Hz and 20 000Hz can be used but the best performance is provided by frequencies ranging between 2kHz and 4kHz VCC 5V TOP VIEW AVCC PZ1 k PERSPECTIVE VIEW 012 NN R27 BC846 PQ2 AJ m PQ2 VCC 3 3V PQO TOSC1 XTAL1 PR1 XTAL2 PRO RESET PDI TOSC2 PQ1 TOSC1 PQO 2 74 3 73 i 2 72 Figure 8 1 L 5 Piezo buzzer C3 22 59 A Q 66 ecd LEE zs
16. the PC make sure to have the gt appropriate FTDI drivers installed on your operating system Drivers can be found at following URL Figure 4 1 http www ftdichip com Drivers VCP htm USB UART connected VCC 3 3V VCC SV VCC 5V VCC 5V 05 CN3 RX MCU 1 5 R57 R58 Ha 73 2K2 2K2 D2 ES MBRS140T3 TX MCU 5 RX Zw X USBDP D 3 d 6 2 1 2 LD3 7 TX LED 13 2 a 9 VCC FTDI p 10 DSR DCD FERRITE CTS CBUS4 CBUS2 CBUS3 C29 N VCC FTDI Te 3 3V FTDI 100nF d DATA BUS FT232RL 100nF Figure 4 2 gt USB UART schematics Page 20 5 Prototyping area uev Figure 5 2 schematics of three LEDs connected to microcontroller pins as shown in Figure 5 1 EE No gp La Proto area allows you to expand your Ready for XMEGA board with additional functionalities That can be done by placing your additional components on available prototyping area Pads are arranged in standard 100mils distance form factor There are 20 connected lines on both halves of the breadboard area and each line consists of 5 soldering pads which are on the same voltage level connected to each other Figure 5 1 Proto area usage Page 21 B4 TMS PB5 TDI s Ed Decoupling capacitors Decoupling capacitors PB4 TMS PB5 TDI PB6 TCK PB7 TDO VCC 3 3V VCC
Download Pdf Manuals
Related Search
Related Contents
Spanish - Besøg masterpiece.dk Notice GourmetPro38L Sony MDS-PC2 User's Manual sa2042 gsr french - Thought Technology, Ltd. じつは派遣より悲惨!? “ブラック化”する外食・小売 Cables Direct B5ST-305K networking cable 悩みを解決! Benq MW817ST data projector PROGRAMME WMA - Web Muslimpreneur Academy KitchenAid KCDB250S1 User's Manual Copyright © All rights reserved.
Failed to retrieve file