Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to...

28
Ready for XMEGA ® Best solution for fast and simple development of applications using ATxmega128A1 device. With special white plastic casing you can quickly turn your Ready for XMEGA project into a final product.

Transcript of Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to...

Page 1: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Ready for XMEGA®

Best solution for fast and simple development

of applications using ATxmega128A1 device.

With special white plastic casing you can

quickly turn your Ready for XMEGA project

into a final product.

Page 2: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 3

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.

TO OUR VALUED CUSTOMERS

Nebojsa Matic

General Manager

The AVR®, XMEGA® and Windows® logos and product names are trademarks of Atmel® and Microsoft® in the U.S.A. and other countries.

Page 3: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 3

Introduction 4

Package Contains 5

Key Features 6

1. Power supply 8

2. ATxmega128A1 Microcontroller 10

Key microcontroller features 10

3. Programming the microcontroller 11

Programming with mikroBootloader 12

mikroBootloader software 12

Identifying device COM port 13

step 1 – Choosing COM port 13

step 2 – Establishing connection 14

step 3 – Browsing for .hex file 14

step 4 – Selecting .hex file 15

step 5 – Uploading .hex file 15

step 6 – Progress bar 16

step 7 – Finish upload 16

Programing with JTAG programmer 17

Programing with PDI 18

4. USB-UART 20

5. Prototyping area 21

6. Pin headers 22

7. Reset button 23

8. Piezo buzzer 24

9. Integrating with the casing 25

10. Dimensions 26

Table of Contents

Page 4: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 4 Page 5

Ready for XMEGA Board is the best

solution for fast and simple 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,

so you have everything on the silkscreen.

You don’t even have to browse through the

datasheet. Board also contains USB-UART

module, prototyping area and a power

supply circuit. Board is specially designed

to fit into special white plastic casing so

you can turn your XMEGA project into a

final product.

Introduction

Page 5: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 4 Page 5

Package Contains

Copyright ©2011 Mikroelektronika.

All rights reserved. Mikroelektronika, Mikroelektronika logo and other

Mikroelektronika trademarks are the property of Mikroelektronika.

All other tradmarks are the property of their respective owners.

Unauthorised copying, hiring, renting, public performance and

broadcasting of this DVD prohibited.

20122011 www.mikroe.com

01 02

04 05

03

06

Damage resistant

protective box

Ready for XMEGA board with

double row male pin headers

Ready for XMEGA

user’s guide

Ready for XMEGA

schematic

DVD with documentation

and examples

USB cable

Page 6: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 6 Page 7

Key Features

01

02

03

04

05

06

07

08

09

10

11

12

1213

14

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

ATxmega128A1 microcontroller

Piezo Buzzer

System Specification

power supply

Via AC/DC connector 7-23V AC

or 9-32V DC

board dimensions

141 x 84mm (5.55 x 3.3 inch)

weight

~67g (0.15 lbs)

power consumption

50mA in idle state

(when on-board modules are off)

Page 7: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 6 Page 7

01

09

02

10 11 12

03

10

0504 06 07

13

08

10 14

Page 8: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 8 Page 9

1. Power supply

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 indicate the presence

of power supply. Use only one of suggested methods for powering the board.

Figure 1-1: AC/DC adapter power supply connected

Figure 1-2: laboratory power supply connected to screw terminals

Figure 1-3: USB power

supply connected

Page 9: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 8 Page 9

8

7

6

5

1

2

3

4

VCC-5V

POWER

R562K2

LD1

SWC

SWE

CT

GND

DRVC

IPK

VIN

CMPR

U1

MC34063A

R120.22

R103K

C21

220pF

D6MBRS140T3

L2 220uH

E1

330uF/35V

VCC-EXT

R111K

VCC-5V

+ -

D1

1N4007

D4

1N4007

D3

1N4007

D5

1N4007

CN4 CN2

E2

330uF/6V

5V SWITCHING POWER SUPPLY

VCC-5V

1

2

3

5

4

VREF-1.8V

C22

2.2uF

VCC-3.3V

E6

10uF

IN

GND

OUT

ENADJ

U5

AP7331-ADJ

R15

120K

R13

22K

R14

12K1

1

32

C2

100nF

VCC-5V GNDVout

Vin

REG1

MC33269DT3.3E5

10uF

VCC-3.3V

E4

10uF

C1

100nF

C19

100nF

VCC-3.3V AVCC

FP2FERRITE

C18

100nF

1

2

3

4

VCC

GND

CN3

USB B

VCC-USBVCC-5V

D2MBRS140T3

FP1

FERRITE

C10100nF

1.8V VOLTAGE REGULATOR 3.3V VOLTAGE REGULATOR

Figure 1-4: Power supply schematics

Page 10: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 10 Page 11

Ready for XMEGA development system comes with the

ATxmega128A1 microcontroller. Having lots of MIPS power, flash

and RAM, and rich set of inegrated modules, ATxmega128A1 is ideal

choice for both beginners and professionals.

Key microcontroller features- Up to 32 MIPS Operation;

- 8/16-bit architecture;

- 128KB of Flash memory;

- 8KB of SRAM memory;

- 2048Bytes of EEPROM;

- 78 I/O pins;

- 32kHz RTC;

- 1.6V to 3.6V Operating Voltage (VCC);

- UART, SPI, TWI;

- ADC, DAC, AC; etc.

EVENT ROUTING NETWORK

DATA BUS

DATA BUSPower/ResetControl

AES/DESCryptoSupport

DMAController

EventSystemController

Debug/Prog. interfaceBOD

Temp sensor RTC

FLASH

RAM

EEPROMOSC/CLK

Interrupt Controller EBI

Watchdog Timer

VREF OCD

ADC

DAC

AC

TIMERS/COUNTERS UART/SPI/TWI/ COMMUNICATION

I/OPORTS

AVRCPU

2. ATxmega128A1 microcontroller

Page 11: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 10 Page 11

Via USB-UART mikroBootloader

Using JTAG external programmer

Using PDI external programmer

Figure 3-1: ATxmega128A1

3. Programming the microcontroller

01

02

03

The microcontroller can be programmed in three ways:

Page 12: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 12 Page 13

Programming with mikroBootloaderYou can program the microcontroller with bootloader which is

preprogrammed into the device by default. To transfer .hex file

from a PC to MCU you need bootloader software (mikroBootloader

USB HID) which can be downloaded from:

After software is downloaded, unrar it to a desired location, and

start mikroBootloader USB HID software.

http://www.mikroe.com/eng/downloads/get/1271/mikrobootloader_xmega_v101.zip

note

Figure 3-2: mikroBootloader window

mikroBootloader software

01 When you start mikroBootloader software, a window shown on Figure 3-2 should appear.

Before starting mikroBootloader software, connect Ready for

XMEGA with a PC using USB cable provided with the package

This version of mikroBootloader is specialized for ATxmega128A1 chip.note

Page 13: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 12 Page 13

step 1 – Choosing COM port

Figure 3-4: Choosing COM port

01

0201

Identifying device COM port

Figure 3-3: Identifying COM port

01 Open Device Manager window and expand Ports section to see which COM port is assigned to Ready for XMEGA board (in this case COM34)

01

02

03

Click the ”Change Settings” button.

From the drop down list, select appropriate COM port which is used for communication with a PC

Click OK.

03

Page 14: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 14 Page 15

step 2 - Establishing Connection step 3 - Browsing for .HEX file

01

01

Figure 3-5: Connecting with mikroBootloader Figure 3-6: Browse for HEX

01 01Press ”Reset” button on Ready for XMEGA board and click ”Connect” button within 5s, otherwise existing microcontroller program will execute. If connected, caption on a button will be changed to ”Disconnect”.

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

note: Baud rate is set to 115200bps by default.

Page 15: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 14 Page 15

step 4 - Selecting .HEX file step 5 - Uploading .HEX file

Figure 3-7: Locating and Selecting .hex file Figure 3-8: Begin uploading

01 01

02

Select .HEX file using open dialog window.

Click the ”Open” button.

To start .HEX file bootloding click the ”Begin uploading” button.

01

02 01

Page 16: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 16 Page 17

step 7 - Finish upload

01

01

Figure 3-9: Progress bar Figure 3-10: Restarting MCU

01 01

02

You can monitor .HEX file uploading via progress bar. 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.

step 6 - Progress bar

Page 17: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 16 Page 17

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’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-12:connecting JTAG

programmer

Figure 3-11:placing 10 pin header

Programming with JTAG programmer

Page 18: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 18 Page 19

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

Programming with PDI programmerFigure 3-13:placing 6 pin header

Page 19: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 18 Page 19

PDI

RESET#

VCC-3.3V

PDI

CN8

0987 43 665 2 3 4 57 08 92 8 9 0 1 716

58575655545352

72

6968676665646362616059

71

51

70

757473

78 777980 7681828384858687888990919293949596979899109

1112

43

2423

181716151413

5678

10

12

22212019

25

PB0PB1PB2PB3PB4/TMSPB5/TDIPB6/TCKPB7/TDO

PC0PC1PC2PC3PC4

PD1

PD2

PD3

PD4

PD6

PD0

PE0

PE1

PE2

PE3

PE4

PE5

PE6

PE7

PF0

PF1

PF2

PF3

PF4

PF5

PF7PF6

PH7PH6PH5PH4PH3PH2PH1PH0

PJ7PJ6PJ5PJ4PJ3PJ2PJ1PJ0

PK7

PK6

PK5

PK4

PK3

PK2

PK1

PK0

PR1

PR0

RES

ET#

PDI

PQ3

PQ2

PQ1/

TOSC

2PQ

0/TO

SC1

PA5

VREF

-1.8

V

PA4

PA1

PA3

PA2

PA6PA7

PC6

R1 27 R2 27

R327

R427

PD5

PD7

PC5

PC7

3222 33 433 4 4 4 43 54 43 3 3 4 4 432

ATxmega128A1

0

PE0

VCC

GN

DPD

7

PE7

PE6

PB0PB1PB2PB3

PJ4PJ3PJ2

PH2

VCC

GN

D

GNDVCCPH0PH1

PF0

PF1

XTA

L2/P

R0

RES

ET/P

DI

PDI

GN

D

PQ3

PQ2

GN

DVC

C

AVCCGND

PA3

PA2

PA1

PA0

AVC

C

XTA

L1/P

R1

PB7PD

3

GNDPC7PC6PC5PC4PC3

PJ6PJ5

PF7PF6

VCC

PB6PB5

PE3

PA4

PA5

PA6PA7

PD2

PD1

PD0VCC

PF4

PF5

PJ1

PH6

PF2

PF3

PH3

PE4

PE2

PH4

PH7

TOSC

2/PQ

1

PC2PC1PC0

PE1

PE5

PH5

PJ0

TOSC

1/PQ

0

PD6

PD5

PD4

GND

PB4

GNDVCC

PJ7

PK3

PK1

GNDVCCPK0

PK2

PK4

PK5

PK6

PK7

U4

VCC-3.3VAVCC

JTAG

CN6

RESET#

PB6/TCKPB7/TDOPB4/TMS

PB5/TDI

VCC-3.3VVCC-3.3V

X2

32.768kHz

C422pF

C322pF

PQ1/TOSC2PQ0/TOSC1

VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V

VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V

C6

100nF

C11

100nF

C12

100nF

C13

100nF

C14

100nF

C15

100nF

C16

100nF

C17

100nF

Decoupling capacitors

Figure 3-15: PDI & JTAG programmer connection schematics

Page 20: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 20 Page 21

123456789

1011121314 15

16171819202122232425262728

C10

100nF

C8

100nF

VCC-5VVCC-5V VCC-5V

RX-LEDTX-LED

PC2

PC3

RX-MCU

TX-MCU

VCC-FTDI

D2MBRS140T3

FP1

FERRITE

VCC-3.3V

LD2 LD3

R572K2

R582K2

RX TX

1

2

3

4

VCC

GND

D-

D+

CN3

USB B

TXDDTR#RTS#VCCIORXDRI#GNDNCDSR#DCD#CTS#CBUS4CBUS2CBUS3

CBUS0CBUS1

OSCOOSCITESTAGND

NC

GND

GND

VCCRESET#

3V3OUTUSBDMUSBDP

FT232RL

U2

FT232RL

VCC-USB

USBDP

USBDMJ2

J3

DAT

A B

US

C5

100nF

C9

100nF

E3

10uF

VCC-3.3V VCC-FTDIVCC-FTDI

4. USB-UART

Figure 4-2: USB-UART schematics

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 the PC, make sure to have the

appropriate FTDI drivers installed on your operating system.

Drivers can be found at following URL:Figure 4-1:

USB-UART connectedhttp://www.ftdichip.com/Drivers/VCP.htm

Page 21: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 20 Page 21

5. Prototyping area

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

LD1

GREEN

LD2

RED

LD3

YELLOW

R1 R2 R3

PJ0

PJ1

PJ2

DATA BUS

Figure 5-2:schematics of three LEDs connected to microcontroller pins as shown in Figure 5-1

Page 22: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 22 Page 23

6. Pin headers

0987 43 665 2 3 4 57 08 92 8 9 0 1 716

58575655545352

72

6968676665646362616059

71

51

70

757473

78 777980 768182838485868788899091929394959697989910

9

1112

43

2423

181716151413

5678

10

12

22212019

25

PB0PB1PB2PB3PB4/TMSPB5/TDIPB6/TCKPB7/TDO

PC0PC1PC2PC3PC4

PD1

PD2

PD3

PD4

PD6

PD0

PE0

PE1

PE2

PE3

PE4

PE5

PE6

PE7

PF0

PF1

PF2

PF3

PF4

PF5

PF7PF6

PH7PH6PH5PH4PH3PH2PH1PH0

PJ7PJ6PJ5PJ4PJ3PJ2PJ1PJ0

PK7

PK6

PK5

PK4

PK3

PK2

PK1

PK0

PR1

PR0

RES

ET#

PDI

PQ3

PQ2

PQ1/

TOSC

2PQ

0/TO

SC1

PA5

VREF

-1.8

V

PA4

PA1

PA3

PA2

PA6PA7

PC6

PB0

PB1

PB2

PB3

PB4/

TMS

PB5/

TDI

PB6/

TCK

PB7/

TDO

PF6

PF7

PF4

PF5

PH7

PH6

PH5

PH4

PH3

PH2

PH1

PH0

PB0

PB1

PB2

PB3

PB4/

TMS

PB5/

TDI

PB6/

TCK

PB7/

TDO

PF6

PF7

PF4

PF5

PH7

PH6

PH5

PH4

PH3

PH2

PH1

PH0

RESE

T#RE

SET#

PDI

PDI

R1 27 R2 27

R327

R427

PD5

PD7

PC5

PC7

X2

32.768kHz

C422pF

C322pF

PD1PD2PD3PD4PD5PD6PD7

PD0

PC0PC1PC2PC3PC4PC5PC6PC7

PE0PE1PE2PE3PE4PE5PE6PE7PF0PF1PF2PF3

PD1PD2PD3PD4PD5PD6PD7

PD0

PC0PC1PC2PC3PC4PC5PC6PC7

PE0PE1PE2PE3PE4PE5PE6PE7PF0PF1PF2PF3

3222 33 433 4 4 4 43 54 43 3 3 4 4 432

ATXmega128A1

0

PE0

VCC

GN

DPD

7

PE7

PE6

PB0PB1PB2PB3

PJ4PJ3PJ2

PH2

VCC

GN

D

GNDVCCPH0PH1

PF0

PF1

XTA

L2/P

R0

RES

ET/P

DI

PDI

GN

D

PQ3

PQ2

GN

DVC

CAVCCGND

PA3

PA2

PA1

PA0

AVC

C

XTA

L1/P

R1

PB7

PD3

GNDPC7PC6PC5PC4PC3

PJ6PJ5

PF7PF6

VCC

PB6PB5

PE3

PA4

PA5

PA6PA7

PD2

PD1

PD0VCC

PF4

PF5

PJ1

PH6

PF2

PF3

PH3

PE4

PE2

PH4

PH7

TOSC

2/PQ

1

PC2PC1PC0

PE1

PE5

PH5

PJ0

TOSC

1/PQ

0

PD6

PD5

PD4

GND

PB4

GNDVCC

PJ7

PK3

PK1

GNDVCCPK0

PK2

PK4

PK5

PK6

PK7

U4

VCC-3.3VAVCCVCC-5VVCC-5V

VCC-5V

VCC-5V

VCC-3.3V

VCC-3.3V

PJ7PJ6PJ5PJ4PJ3PJ2PJ1PJ0

PA5PA4

PA1

PA3PA2

PA6PA7

PK7PK6PK5PK4PK3PK2PK1PK0

PQ3PQ2PR1PR0

PJ7PJ6PJ5PJ4PJ3PJ2PJ1PJ0

PA5PA4

PA1

PA3PA2

PA6PA7

PK7PK6PK5PK4PK3PK2PK1PK0

PQ3PQ2PR1PR0

VCC-3.3VVCC-3.3V

PQ1/TOSC2PQ0/TOSC1

VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V

C6

100nF

C11

100nF

C12

100nF

C13

100nF

C14

100nF

C15

100nF

C16

100nF

C17

100nF

Decoupling capacitors

Decoupling capacitors

2x30 header

2x30 header

2x26 header

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.

Figure 6-1:Connection schematics of pin headers

Figure 6-2:Pin headers

Page 23: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 22 Page 23

R810K

VCC-3.3V

C7

100nFRESET

R9

100T1

0987 43 665 2 3 4 57 08 92 8 9 0 1 716

58575655545352

72

6968676665646362616059

71

51

70

757473

78 777980 768182838485868788899091929394959697989910

9

1112

43

2423

181716151413

5678

10

12

22212019

25

RES

ET#

PQ1/

TOSC

2PQ

0/TO

SC1

3222 33 433 4 4 4 43 54 43 3 3 4 4 432

ATXmega128A1

0

PE0

VCC

GN

DPD

7

PE7

PE6

PB0PB1PB2PB3

PJ4PJ3PJ2

PH2

VCC

GN

D

GNDVCCPH0PH1

PF0

PF1

XTA

L2/P

R0

RES

ET/P

DI

PDI

GN

D

PQ3

PQ2

GN

DVC

C

AVCCGND

PA3

PA2

PA1

PA0

AVC

C

XTA

L1/P

R1

PB7

PD3

GNDPC7PC6PC5PC4PC3

PJ6PJ5

PF7PF6

VCC

PB6PB5

PE3

PA4

PA5

PA6PA7

PD2

PD1

PD0VCC

PF4

PF5

PJ1

PH6

PF2

PF3

PH3

PE4

PE2

PH4

PH7

TOSC

2/PQ

1

PC2PC1PC0

PE1

PE5

PH5

PJ0

TOSC

1/PQ

0

PD6

PD5

PD4

GND

PB4

GNDVCC

PJ7

PK3

PK1

GNDVCCPK0

PK2

PK4

PK5

PK6

PK7

U4

VCC-3.3VAVCC

X2

32.7

68kH

z

C4 22pF

C3 22pF

PQ1/TOSC2PQ0/TOSC1

VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V

VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V

C6

100nF

C11

100nF

C12

100nF

C13

100nF

C14

100nF

C15

100nF

C16

100nF

C17

100nF

Decoupling capacitors

7. Reset button

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).

Figure 7-1:Reset button connection schematics

Page 24: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 24 Page 25

8. Piezo buzzerOn-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.

0987 43 665 2 3 4 57 08 92 8 9 0 1 716

58575655545352

72

6968676665646362616059

71

51

70

757473

78 777980 768182838485868788899091929394959697989910

9

1112

43

2423

181716151413

5678

10

12

22212019

25

PQ2

PQ1/

TOSC

2PQ

0/TO

SC1

3222 33 433 4 4 4 43 54 43 3 3 4 4 432

ATXmega128A1

0

PE0

VCC

GN

DPD

7

PE7

PE6

PB0PB1PB2PB3

PJ4PJ3PJ2

PH2

VCC

GN

D

GNDVCCPH0PH1

PF0

PF1

XTA

L2/P

R0

RES

ET/P

DI

PDI

GN

D

PQ3

PQ2

GN

DVC

C

AVCCGND

PA3

PA2

PA1

PA0

AVC

C

XTA

L1/P

R1

PB7

PD3

GNDPC7PC6PC5PC4PC3

PJ6PJ5

PF7PF6

VCC

PB6PB5

PE3

PA4

PA5

PA6PA7

PD2

PD1

PD0VCC

PF4

PF5

PJ1

PH6

PF2

PF3

PH3

PE4

PE2

PH4

PH7

TOSC

2/PQ

1

PC2PC1PC0

PE1

PE5

PH5

PJ0

TOSC

1/PQ

0

PD6

PD5

PD4

GND

PB4

GNDVCC

PJ7

PK3

PK1

GNDVCCPK0

PK2

PK4

PK5

PK6

PK7

U4

VCC-3.3VAVCC

Q12BC846

PZ1R291K

VCC-5V

R27

10K

PQ2

PERSPECTIVEVIEW

TOPVIEW

X2

32.7

68kH

z

C4 22pF

C3 22pF

PQ1/TOSC2PQ0/TOSC1

VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V

VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V

C6

100nF

C11

100nF

C12

100nF

C13

100nF

C14

100nF

C15

100nF

C16

100nF

C17

100nF

Decoupling capacitors

Figure 8-1:Piezo buzzer

Figure 8-2: Piezo buzzer

connection schematics

Page 25: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 24 Page 25

9. Integrating with the casing

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.

Figure 9-1: Place the board into the bottom part of the casing. Make sure to align the connectors with the square openenings

Figure 9-2: Wind screws into inner screw holes to mount the board to the bottom casing plastic

Figure 9-2: Place cover casing plastic and wind screws into outter screw holes for connecting it with bottom plastics

Page 26: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 26 Page 27

12.59 mm 46.7 mm

9.14 mm 32.2 mm

5.59 mm 24.76 mm2.54 mm

2.54

mm

141 mm

124 mm

48 m

m

66 m

m

84 m

m

(510 mils) (1839 mils)

(1268 mils)

(975 mils)(220 mils)

(360 mils)

(100 mils)

(100

mils

)

(4882 mils)

(5551 mils)

(189

0 m

ils)

(259

8 m

ils)

(330

7 m

ils)

10. Dimensions

Page 27: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

Page 26 Page 27

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 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.

TRADEMARKS

The MikroElektronika name and logo, the MikroElektronika logo, mikroC™, mikroBasic™, mikroPascal™, 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.

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.

Page 28: Ready for XMEGA Manual - Mikroelektronika · PDF fileAfter software is downloaded, unrar it to a desired location, and ... 01 Press ”Reset” button on Ready for XMEGA board and

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,

do not hesitate to contact us at [email protected] for XMEGA Manual

ver. 1.00

0 100000 019061