MIKROE-755_1

MIKROE-755_1

mikromedia

for XMEGA

®

Compact multimedia development system rich with on-board peripherals for all-round development on ATxmega128A1 device

AVR

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 XMEGA® and Windows® logos and product names are trademarks of ATMEL® and Microsoft® in the U.S.A. and other countries.

Page 2 Page 3

Table of Contents

Introduction to mikromedia for XMEGA®

Package Contains

Key Features

System Specification

1. Power supply

USB power supply

Battery power supply

2. ATxmega128A1 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 step 4 – Selecting .HEX file

12

14

14

15

10

10

11

12

15

16

8

8

7

8

4

5

6 step 5 – Uploading .HEX file step 6 – Progress bar step 7 – Finishing upload

Programming with external programmer

4. Reset Button

5. Crystal Oscillators

6. MicroSD Card Slot

7. Touch Screen

8. Audio Module

9. USB UART connection

10. Accelerometer

11. Flash Memory

12. Pads

13. Pinout

14. Dimensions

15. Mikromedia Accessories

16. What’s Next

Page 3

31

32

33

34

24

26

28

30

35

36

16

17

17

18

20

22

23

Introduction to mikromedia for XMEGA

®

The

mikromedia for XMEGA

®

is a compact development system with lots of on-board peripherals which allow development of devices with multimedia contents. The central part of the system is a 8-bit

ATxmega128A1

microcontroller. The mikromedia for XMEGA

® features integrated modules such as stereo

MP3 codec,

TFT 320x240

touch screen display, accelerometer, MMC/SD card slot, 8 Mbit flash memory, battery charger. The board also contains

MINI-B USB connector, two 1x26 connection pads and other. It comes pre programmed with

UART bootloader, but can also be programmed with external PDI programmers. Mikromedia is compact and slim, and perfectly fits in the palm of your hand, which makes it convenient platform for mobile devices.

Page 4 Page 5

Page 4

Package Contains

01

Damage resistant protective box

02 mikromedia for XMEGA

® development system

EX

AM

PL

ES

AD

DI

TI

ON

COMPI

LERS • • • • • • • • •

MIKROC, M

AL

SO

FT

WA

RE

• •

• •

• •

• • IKROB

ASIC

, MIK

PRODUCT DVD

ROP

ASC

AL C

OM

PIL

ER

S

• • www.mikroe.com

www.libstock.com

• •

• •

DR

IV

ER

MA

HE

SC All rights reserved. MikroElektronika, MikroElektronika logo and other

MikroElektronika trademarks are the property of MikroElektronika.

Unauthorised copying, hiring, renting, public performance and broadcasting of this DVD is strictly prohibited.

S

UAL

MAN

03

DVD with documentation and examples

04 mikromedia for XMEGA

® user’s guide

05 mikromedia for XMEGA

® schematic

Page 5

06

USB cable

Key Features

11

12

13

14

15

06

07

08

09

10

16

17

01

02

03

04

05

Connection Pads

TFT 320x240 display

USB MINI-B connector

Charge indication LED

Li-Polymer battery connector

3.5mm headphone connector

Power supply regulator

FTDI USB UART

Serial Flash memory

VS1053 Stereo mp3 coder/decoder

RESET button

ATxmega128A1 microcontroller

Accelerometer

Crystal oscillator microSD Card Slot

PDI connector

Power indicator LED

01

02

Page 6

11

Page 7

Page 6

16

03

04

05

07

08

09

10

06

12

13

14

15

17

Page 7

System Specification

power supply

Over a USB cable (5V DC)

power consumption

87 mA with erased MCU

(when back-light is ON)

board dimensions

81.2 x 60.5 mm (3.19 x 2.38 inch)

weight

~45 g (0.10 lbs)

1. Power supply

Figure 1-1: Connecting

USB power supply

USB power supply

You can apply power supply to the board using

MINI-B USB

cable provided with the board. On-board voltage regulators provide the appropriate voltage levels to each component on the board.

Power

LED (GREEN)

will indicate the presence of power supply.

Battery power supply

You can also power the board using

Li-Polymer

battery, via on-board battery connector. On-board battery charger circuit

MCP73832

enables you to charge the battery over USB connection.

LED diode (RED)

will indicate when battery is charging. Charging current is ~250mA and charging voltage is 4.2V DC. Figure 1-2: Connecting Li-Polymer battery

Page 8 Page 9

Page 8

C25

100nF

AVCC VCC-3.3

FP4

FERRITE

C30

100nF

VCC-SYS

PMEG3010ER

D1

VCC-USB

1

2

3

4

5

CN3

VCC-SYS

VCC-BAT

DMP2160UW

M1

CN1

BATT CONN

R43

10K

FP2

FERRITE

C28

10nF

VBUS

D-

D+

ID

GND

USB MINIB

VSENSE

VCC-3.3

R35

10K

VCC-BAT

R6

4K7

R49

4K7

R34

4K7

VCC-3.3

R39

4K7

LD2

CHARGE

VCC-3.3

R36

10K

VREF-1.8

FP3

E11

10uF

FERRITE

VCC-1.8

VCC-3.3

C29

E10

VCC-1.8

VCC-1.8

2.2uF

U3

1

2

3

Vin

GND

EN

Vout

MIC5205-ADJ

ADJ

10uF

5

4

R47

220K

R46

100K

R50

0R

Figure 1-3: Power supply schematics

VCC-3.3

VCC-BAT

E7

VCC-SYS

C40

STAT

Q4

BC846

Q5

BC846

R37

10K

R38

10K

E5

10uF

R45

1K

1

2

3

10uF

U5

STAT

VSS

VBAT

PROG

VDD

5

4

MCP73832

Charging Current approx. 250mA

Page 9

2.2uF

R44

3K9

LD1

POWER

VCC-3.3

HDR1

M1X26

15

16

17

18

11

12

13

14

5

6

7

8

9

10

3

4

1

2

23

24

25

26

19

20

21

22

VCC-3.3

HDR2

M1X26

41

42

43

44

37

38

39

40

31

32

33

34

35

36

27

28

29

30

49

50

51

52

45

46

47

48

R26

2K2

VCC-SYS

E3

10uF

VCC-3.3

1

3

E4

10uF

REG1

Vin

Vout

GND

LD29080DT33

2

2. ATxmega128A1 microcontroller

The mikromedia for XMEGA

®

development system comes with the

ATxmega128A1

microcontroller. This high-performance

8-bit

microcontroller with its integrated modules and in combination with other on-board modules is ideal for multimedia applications.

ADC

DAC

AC

Key microcontroller features

- Up to

32 MIPS

Operation;

- 8-bit architecture;

- 128 KB of Flash memory;

- 8 KB of SRAM memory;

- 2048 Bytes of EEPROM

- 78 I/O pins;

- 32kHz RTC;

- UART, SPI, ADC, DAC etc.

I/O

PORTS

DATA BUS

DMA

Controller

Debug/Prog.interface

Reset

Control

AES/DES

Crypto

Support

BOD

Temp sensor

AVR

CPU

OSC/CLK

VREF

OCD

RTC

FLASH

RAM

EEPROM

Event

System

Controller

Watchdog Timer

Interrupt Controller

EBI

UART/SPI/TWI/COMMUNIC

ATION

Page 10 Page 11

Page 10

3. Programming the microcontroller

Figure 3-1:

ATxmega128A1

Microcontroller

Page 11

The microcontroller can be programmed in two ways:

01

Over UART mikroBootloader

02

Using external PDI programmer

Programming with mikroBootloader mikroBootloader software

You can program the microcontroller with UART bootloader which is pre programmed by default. To transfer .hex file from a PC to

MCU you need bootloader software (

mikroBootloader

) which can be downloaded from: http://www.mikroe.com/downloads/get/1669/ mikromedia_xmega_bootloader_v101.zip

After the mikroBootloader software is downloaded unzip it to desired location and start it.

Page 12

Figure 3-2: mikroBootloader window

01

When you start mikroBootloader software, a window as shown in Figure 3-2 should appear

Page 13

note

Connect mikromedia for XMEGA

®

with a PC before starting mikroBootloader software

Identifying device COM port step 1 – Choosing COM port

02

01

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 it is COM5)

Page 14

03

Figure 3-4: Choosing COM port

01

02

03

Click the

Change Settings

button

From the drop down list, select appropriate

COM

port

(in this case it is COM5)

Click

OK

01

Page 15

Page 14

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

01

01

Figure 3-5: Connecting with mikroBootloader

01

Press the

Reset

button on Ready for XMEGA

®

board and click the

Connect

button within 5s, otherwise the existing microcontroller program will run. If connected, the button’s caption will be changed to

Disconnect

Page 15

Figure 3-6: Browse for HEX

01

Click the

Browse for HEX

button and from a pop-up window (Figure 3-7) choose a .HEX file to be uploaded to MCU memory

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

01

02

Figure 3-7: Locating and selecting .hex file

01

Select .HEX file using open dialog window.

02 Click the

Open

button

Page 16

01

Figure 3-8: Begin uploading

01

To start .HEX file bootloding click the

Begin uploading

button

Page 17

Page 16

step 6 - Progress bar step 7 - Finishing upload

01

01

Figure 3-9: Progress bar

01

Progress bar enables you to monitor .HEX file uploading

Page 17

Figure 3-10: Restarting MCU

01

Click

OK

button after the uploading process is finished

02 Press

Reset

button on Ready for XMEGA

®

board and wait for 5 seconds. Your program will run automatically

Programming with external programmer

The microcontroller can be programmed with external programmer (AVRISP mkII, AVR

JTAGICE mkII or other supported programer with PDI interface). The external programmer is connected to the development system via pads marked with

PDI

(CN5), Figure 3-11. In order to connect the external programmer to the development system, it is necessary to solder a 2x3 male header on the pad (CN5). If bootloader program is accidently erased you can upload it again via external PDI programmer. Program

atxmega128a1_bootloader_firmware.hex

can be found under Firmware folder

(page 12).

Page 18

Figure 3-11: connecting PDI programmer

AVCC

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

3

4

5

1

2

6

7

8

PB2

PB3

PB4

PB5

PB6

PB7

GND

VCC

PC0

PC1

PC2

PC3

PC4

PC5

PC6

PC7

GND

PA6

PA7

GND

AVCC

PB0

PB1

VCC

PD0

PDI

RESET#

1

3

5

CN5

M2X3

2

4

6

VCC-3.3

VCC-3.3

ATxmega128A1

U1

59

58

57

56

55

63

62

61

60

67

66

65

64

70

69

68

54

53

52

51

75

74

73

72

71

PJ4

PJ3

PJ2

PJ1

PJ0

VCC

GND

PH7

PH6

PH5

PH4

PH3

PH2

PH1

PH0

VCC

GND

PK0

VCC

GND

PJ7

PJ6

PJ5

PF7

PF6

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

VCC-3.3

VCC-3.3

VCC-3.3

C8

100nF

C31

100nF

C35

100nF

Figure 3-12: PDI programmer connection schematic

Page 19

4. Reset Button

Board is equipped with reset button, which is located at the top of the front side (Figure 4-2). If you want to reset the circuit, press the reset button. It will generate low voltage level on microcontroller reset pin

(input). In addition, a reset can be externally provided through pin 27 on side headers (Figure 4-3).

NOTE

You can also solder additional reset button on the appropriate place at the back side

of the board, Figure 4-1.

Figure 4-1: Location of additional reset button

Page 20

Figure 4-2: Frontal reset button

Page 21

Page 20

AVCC

C1

22pF

C2

22pF

PA6

PA7

GND

AVCC

PB0

PB1

PB2

PB3

PB4

PB5

PB6

PB7

GND

VCC

PC0

PC1

PC2

PC3

PC4

PC5

PC6

PC7

GND

VCC

PD0

5

6

3

4

1

2

10

11

12

13

14

7

8

9

19

20

21

22

23

24

25

15

16

17

18

ATxmega128A1

RST

VCC-3.3

U1

75

74

73

72

71

67

66

65

64

70

69

68

56

55

54

53

59

58

57

52

51

63

62

61

60

PK0

VCC

GND

PJ7

PJ6

PJ5

PJ4

PJ3

PJ2

PJ1

PJ0

VCC

GND

PH7

PH6

PH5

PH4

PH3

PH2

PH1

PH0

VCC

GND

PF7

PF6

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

VCC-3.3

VCC-3.3

C8

100nF

C31

RST

100nF

VCC-3.3

C35

100nF

VCC-3.3

HDR2

M1X26

39

40

41

42

35

36

37

38

31

32

33

34

27

28

29

30

47

48

49

50

43

44

45

46

51

52

VCC-3.3

R8

10K

C3

100nF

Figure 4-3: Reset circuit schematic

Page 21

5. Crystal oscillators

ATxmega128A1

uses internal 2MHz and

32MHz oscillators that provide the necessary clock frequency. In combination with prescalers and multipliers it gives you a wide range of output frequencies, which ensures proper operation of bootloader and your custom applications. Board contains

32.768kHz

Crystal oscillator (X1)

which provides external clock for internal

RTCC

module.

C1

22pF

AVCC

C2

22pF

VCC-3.3

Figure 5-2:

Crystal oscillator schematic

PB0

PB1

PB2

PB3

PB4

PB5

PA6

PA7

GND

AVCC

PB6

PB7

GND

VCC

PC0

PC1

PC2

PC3

PC4

PC5

PC6

PC7

GND

VCC

PD0

5

6

3

4

1

2

10

11

12

13

14

7

8

9

19

20

21

22

23

24

25

15

16

17

18

ATxmega128A1

U1

75

74

73

72

71

67

66

65

64

70

69

68

56

55

54

53

59

58

57

52

51

63

62

61

60

PK0

VCC

GND

PJ7

PJ6

PJ5

PJ4

PJ3

PJ2

PJ1

PJ0

VCC

GND

PH7

PH6

PH5

PH4

PH3

PH2

PH1

PH0

VCC

GND

PF7

PF6

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

VCC-3.3

VCC-3.3

VCC-3.3

C8

100nF

C31

100nF

C35

100nF

Figure 5-1:

32.768kHz crystal oscillator connected to RTCC module (X1)

NOTE :

The use of crystal in all other schematics is implied even if it is purposely left out because of the schematics clarity.

Page 22 Page 23

Page 22

6. microSD Card Slot

Board contains

microSD card slot

for using microSD cards in your projects. It enables you to store large amounts of data externally, thus saving microcontroller memory. microSD cards use Serial Peripheral Interface (

SPI

) for communication with the microcontroller.

AVCC

MOSIC-PC5

MISOC-PC6

SCKC-PC7

R5

R4

27

27

PB6

PB7

GND

VCC

PC0

PC1

PC2

PC3

PC4

PC5

PC6

PC7

GND

VCC

PD0

PB1

PB2

PB3

PB4

PB5

PA6

PA7

GND

AVCC

PB0

18

19

20

21

22

23

24

25

10

11

12

13

14

15

16

17

7

8

9

4

5

6

1

2

3

ATxmega128A1

U1

PK0

VCC

GND

PJ7

PJ6

PJ5

PJ4

PJ3

PJ2

PJ1

PJ0

VCC

GND

PH2

PH1

PH0

VCC

GND

PF7

PF6

PH7

PH6

PH5

PH4

PH3

66

65

64

63

62

70

69

68

67

75

74

73

72

71

56

55

54

53

52

51

61

60

59

58

57

VCC-3.3

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

VCC-3.3

VCC-3.3

VCC-3.3

C8

100nF

C31

100nF

C35

100nF

SD-CS#

MOSIC-PC5

SCKC-PC7

MISOC-PC6

SD-CD#

Figure 6-1: microSD card slot

VCC-MMC

R11

10K

R10

10K

R9

10K

VCC-MMC VCC-3.3

FP1

FERRITE

E6 10uF

C38 100nF

CN4

MMC CARD MICRO

R16

27

1

2

4

5

6

7

CD

CS

Din

+3.3V

SCK

GND

Dout

CD

Figure 6-3:

Inserting microSD card

Figure 6-2: microSD Card Slot module connection schematic

Page 23

7. Touch Screen

Figure 7-1:

Touch Screen

The development system features a

TFT

320x240 display

covered with a resistive touch panel. Together they form a functional unit called a

touch screen.

It enables data to be entered and displayed at the same time. The

TFT display is capable of showing graphics in

262.144

diffe rent

colors

.

Page 24

AVCC

LCD-BLED

9

10

11

12

13

7

8

14

15

16

17

5

6

3

4

1

2

22

23

24

25

18

19

20

21

PB2

PB3

PB4

PB5

PB6

PB7

GND

VCC

PC0

PC1

PC2

PC3

PC4

PC5

PC6

PC7

GND

VCC

PD0

PA6

PA7

GND

AVCC

PB0

PB1

ATxmega128A1

U1

PK0

VCC

GND

PJ7

PJ6

PJ5

PJ4

PJ3

PJ2

PJ1

PJ0

VCC

GND

PH7

PH6

PH5

PH4

PH3

PH2

PH1

PH0

VCC

GND

PF7

PF6

75

74

73

72

71

70

69

68

67

66

65

64

63

62

61

60

59

58

57

56

55

54

53

52

51

VCC-3.3

T-D0

LCD-CS#

LCD-RS

PMWR

PMRD

LCD-RST

LCD-BLED

VCC-3.3

R3

1K

R15

10K

VCC-SYS

BAT43

D2

R23

1K

Q2

BC846

Q1

BC846

R40

12

VCC-1.8

R55

10K

R41

1K

R58

10K

Q10

BC846

VCC-3.3

R24

10K

Q3

BC846

VCC-3.3

R25

10K

E13

10uF

Q9

BC856

VCC-1.8

Q8

BC856

VCC-3.3

LCD-RST

LCD-CS#

LCD-XR

LCD-YU

LCD-XL

T-D7

T-D6

T-D5

T-D4

T-D3

T-D2

T-D1

T-D0

VCC-SYS

VCC-3.3

LCD-RST

PMRD

PMWR

LCD-RS

LCD-CS#

LCD-XR

LCD-YD

LCD-XL

LCD-YU

29

30

31

32

33

34

35

36

37

38

39

25

26

27

28

21

22

23

24

40

41

42

43

44

45

46

47

8

9

10

11

5

6

7

12

13

14

15

1

2

3

4

16

17

18

19

20

TFT1

DB16

DB15

DB14

DB13

DB12

DB11

DB10

DB9

DB8

LED-K

LED-A1

LED-A2

LED-A3

LED-A4

IM0

IM1

IM2

IM3

RESET

VSYNC

HSYNC

DOTCLK

ENABLE

DB17

DB7

DB6

DB5

DB4

DB3

DB2

DB1

DB0

SDO

SDI

RD

WR/SCL

RS

CS

FMARK

XR

YD

XL

YU

VCC-IO

VCC

VCC-I

GND

MI0283QT2

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

C31

100nF

C35

100nF

DRIVEA

R14

10K

VCC-3.3

DRIVEB

R54

1K

R56

10K

Figure 7-2: Touch Screen connection schematic

Page 25

Q6

BC846

C21

100nF

R42

100K

Q7

BC846

C22

100nF

R57

100K

LCD-YD

8. Audio Module

Figure 8-2:

Inserting 3.5mm headphones jack

Figure 8-1:

On-board VS1053

MP3 codec

The mikromedia for XMEGA® features stereo audio codec

VS1053

. This module enables audio reproduction by using stereo headphones connected to the system via a

3.5mm

connector CN2. All functions of this module are controlled by the microcontroller over Serial Peripheral Interface (

SPI

).

Page 26 Page 27

Page 26

AVCC

MOSIC-PC5

MISOC-PC6

SCKC-PC7

R5

R4

27

27

PA6

PA7

GND

AVCC

PB0

PB1

PB2

PB3

PB4

PB5

PB6

PB7

GND

VCC

PC0

PC1

PC2

PC3

PC4

PC5

PC6

PC7

GND

VCC

PD0

5

6

3

4

1

2

10

11

12

13

14

7

8

9

19

20

21

22

23

24

25

15

16

17

18

ATxmega128A1

U1

75

74

73

72

71

67

66

65

64

70

69

68

56

55

54

53

59

58

57

52

51

63

62

61

60

PK0

VCC

GND

PJ7

PJ6

PJ5

PJ4

PJ3

PJ2

PJ1

PJ0

VCC

GND

PH7

PH6

PH5

PH4

PH3

PH2

PH1

PH0

VCC

GND

PF7

PF6

VCC-3.3

VCC-3.3

R19

10K

MP3-CS#

MP3-RST#

R2

10K

MP3-DCS

MP3-CS#

MP3-RST#

MP3-DCS

C19

22pF

R1 1M

C20

22pF

MP3-CS#

VCC-1.8

U2

19

20

21

22

23

24

13

14

15

16

17

18

XDCS/BSYNC

IOVDD1

VC0

DGND1

XTAL0

XTAL1

IOVDD2

DGND2

DGND3

DGND4

XCS

CVDD2

RX TX

VS1053

R20

10K VCC-3.3

R21

10K

R22

27

LN2

AGND3

LEFT

AVDD2

RCAP

AVDD1

GBUF

AGND2

AGND1

RIGHT

AVDD0

AGND0

44

43

42

41

40

39

38

37

48

47

46

45

VCC-3.3

R33

470

R32

470

E2

C18

3.3nF

10uF

R18

100K

R

E1

C17

3.3nF

10uF

R17

100K

L

LEFT LEFT

R28 10

RIGHT

R29 10

GBUF

RIGHT

C13

1uF

R30

20

C15

10nF

R31

20

C16

10nF

R27

10

C14

47nF

CN2

PHONEJACK

VCC-3.3

E8

10uF

VCC-3.3

C5

100nF

VCC-3.3

C6

VCC-3.3

100nF

C7

100nF

VCC-3.3

C8

100nF

VCC-3.3

C31

100nF

VCC-3.3

C35

100nF

VCC-1.8

C4

100nF

VCC-1.8

C9

100nF

VCC-1.8

C10

100nF

VCC-1.8

C11

100nF

VCC-3.3

VCC-3.3

C12

100nF

C23

100nF

VCC-3.3

C24

100nF

VCC-3.3

C26

100nF

VCC-3.3

C27

100nF

Figure 8-3: Audio module connection schematic

Page 27

9. USB UART connection

Mikromedia contains USB MINI-B connector which is positioned next to the battery connector.

FT232RL USB-UART IC enables you to implement

UART serial communication functionality via USB cable, since

ATxmega128A1

does not support

USB protocol.

Figure 9-1: Connecting

USB cable to MINI-B

USB connector

Page 28

AVCC

USBDET

PB2

PB3

PB4

PB5

PB6

PB7

GND

PA6

PA7

GND

AVCC

PB0

PB1

VCC

PC0

PC1

PC2

PC3

PC4

PC5

PC6

PC7

GND

VCC

PD0

10

11

7

8

9

5

6

1

2

3

4

15

16

17

18

12

13

14

19

20

21

22

23

24

25

ATxmega128A1

VCC-3.3

U1

PH0

VCC

GND

PF7

PF6

PH7

PH6

PH5

PH4

PH3

PH2

PH1

PJ4

PJ3

PJ2

PJ1

PJ0

VCC

GND

PK0

VCC

GND

PJ7

PJ6

PJ5

64

63

62

61

60

59

58

53

52

51

57

56

55

54

71

70

69

68

67

66

65

75

74

73

72

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

C31

100nF

C35

100nF

VCC-3.3

RXF-MCU

TXF-MCU

7

8

9

5

6

3

4

10

11

12

13

14

1

2

U4

TXD

DTR#

RTS#

VCCIO

RXD

OSCO

OSCI

TEST

AGND

NC

RI#

GND

NC

DSR#

DCD#

CTS#

CBUS4

FT232RL

CBUS0

CBUS1

GND

VCC

RESET#

GND

3V3OUT

CBUS2

CBUS3

USBDM

USBDP

FT232RL

28

27

26

25

24

23

22

21

20

19

18

17

16

15

VCC-3.3

R53

220

LD3

TX/RX

C34

100nF

C36

100nF

R52

10K

R51

4K7

VCC-USB

FP2

FERRITE

R60

100

C28

10nF

USBDM

USBDP 3

4

1

2

5

CN3 USB MINIB

VBUS

D-

D+

ID

GND

USBDET

Figure 9-2: USB module connection schematic

Page 29

10. Accelerometer

On board

ADXL345

accelerometer is used to measure acceleration in three axis: x, y and z. The accelerometer function is defined by the user in the program loaded into the microcontroller. Communication between the accelerometer and the microcontroller is performed via the

I2C

interface.

AVCC

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

C31

100nF

C35

100nF

U1

SDAD-PD0

PB5

PB6

PB7

GND

VCC

PC0

PC1

PA6

PA7

GND

AVCC

PB0

PB1

PB2

PB3

PB4

PC2

PC3

PC4

PC5

PC6

PC7

GND

VCC

PD0

10

11

8

9

12

13

14

4

5

6

7

15

16

17

18

19

1

2

3

20

21

22

23

24

25

ATxmega128A1

63

62

61

60

59

58

57

56

55

54

53

52

51

75

74

73

72

71

70

69

68

67

66

65

64

PK0

VCC

GND

PJ7

PJ6

PJ5

PJ4

PJ3

PJ2

PJ1

PJ0

VCC

GND

PH7

PH6

PH5

PH4

PH3

PH2

PH1

PH0

VCC

GND

PF7

PF6

Figure 10-2:

Accelerometer connection schematic

VCC-3.3

VCC-3.3

R12

10K

R13

10K

SCLD-PD1

U9

4

5

6

1

2

3

VCC

GND

Res

GND

GND

VCC

SDA

ADD

Res

NC

INT2

INT1

ADXL345

13

12

11

10

9

8

ACC ADDRESS

SDAD-PD0

VCC-3.3

VCC-3.3 VCC-3.3

J1

SMD JUMPER

C33

100nF

C32

100nF

Page 30

Figure 10-1:

Accelerometer module

You can set the accelerometer address to 0 or 1 by re-soldering the

SMD jumper (zero-ohm resistor) to the appropriate position. Jumper is placed in address 1 position by default.

Page 31

Page 30

11. Flash Memory

AVCC

VCC-3.3

FLASH-CS#

MOSIC-PC5

MISOC-PC6

SCKC-PC7

R5

R4

27

27

PB6

PB7

GND

VCC

PC0

PC1

PC2

PC3

PC4

PC5

PC6

PC7

GND

PA6

PA7

GND

AVCC

PB0

PB1

PB2

PB3

PB4

PB5

VCC

PD0

5

6

3

4

1

2

10

11

12

13

14

7

8

9

19

20

21

22

23

24

25

15

16

17

18

ATxmega128A1

Figure 11-2:

Flash memory module connection schematic

U1

75

74

73

72

71

67

66

65

64

70

69

68

56

55

54

53

59

58

57

52

51

63

62

61

60

PK0

VCC

GND

PJ7

PJ2

PJ1

PJ0

VCC

GND

PH7

PH6

PJ6

PJ5

PJ4

PJ3

PH5

PH4

PH3

PH2

PH1

PH0

VCC

GND

PF7

PF6

VCC-3.3

VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3

VCC-3.3

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

C31

100nF

C35

100nF

Figure 11-1:

Flash memory module

VCC-3.3

R48

10K

FLASH-CS#

MISOC-PC6

R59 27

C37

VCC-3.3

VCC-3.3

3

4

1

2

U10

CS

SDO

WP

GND

M25P80

VCC

HOLD

SCK

SDI

100nF

8

7

6

5

SCKC-PC7

MOSIC-PC5

Since multimedia applications are getting increasingly demanding, it is necessary to provide additional memory space to be used for storing more data.

The flash memory module enables the microcontroller to use additional

8Mbit

flash memory. It is connected to the microcontroller via the Serial Peripheral

Interface (

SPI

).

Page 31

12. Pads

AVCC

VCC-3.3

R7

100

RST

PE4

PJ7

PR0

PR1

PE2

PE3

PE6

PE7

PF6

L

R

PC0

PC1

PC2

PC3

PF0

PF1

PF7

RXD-PD2

TXD-PD3

SCLD-PD1

SDAD-PD0

VCC-3.3

HDR2

M1X26

48

49

50

45

46

47

51

52

42

43

44

39

40

41

36

37

38

33

34

35

30

31

32

27

28

29

RX

TX

SCL

SDA

PA6

PA7

PB1

PB2

PB3

PB5

PB6

PC0

PC1

PC2

PC3

MOSIC-PC5

MISOC-PC6

SCKC-PC7

R5

R4

SDAD-PD0

27

27

PC1

PC2

PC3

PC4

PC5

PC6

PC7

GND

VCC

PD0

PB2

PB3

PB4

PB5

PB6

PB7

PA6

PA7

GND

AVCC

PB0

PB1

GND

VCC

PC0

8

9

10

5

6

7

1

2

3

4

14

15

16

11

12

13

17

18

19

20

21

22

23

24

25

ATxmega128A1

U1

GND

PH7

PH6

PH5

PH4

PH3

PH2

PH1

PH0

VCC

GND

PF7

PF6

PK0

VCC

GND

PJ7

PJ6

PJ5

PJ4

PJ3

PJ2

PJ1

PJ0

VCC

65

64

63

68

67

66

75

74

73

72

71

70

69

59

58

57

56

55

62

61

60

54

53

52

51

PJ7

PJ0

PH7

PH1

PH0

PF7

PF6

PB1

PB2

PB3

PA4

PA5

PA6

PA7

PH0

PH1

PB5

PB6

PE1

PE0

PD7

PD6

PD5

PH7

PJ0

PD4

SCKC-PC7

MISOC-PC6

MOSIC-PC5

VCC-3.3

VCC-SYS

HDR1

M1X26

21

22

23

18

19

20

24

25

26

15

16

17

12

13

14

9

10

11

6

7

8

3

4

5

1

2

SCK

SDI

SDO

Pads HDR2 Pads HDR1

Figure 12-1: connecting pads schematic

Most microcontroller pins are available for further connectivity via two 1x26 rows of connection pads on both sides of the mikromedia board. They are designed to match additional shields, such as Battery Boost shield, Gaming, PROTO shield and others.

Page 32 Page 33

Page 32

13. Pinout

System power supply

Reference Ground

Analog lines

Interrupt lines

Digital I/O lines

SCK

SDI

SDO

3.3V power supply

Reference Ground

Pin functions

PA7

PH0

PH1

PB5

PB6

PE1

PE0

PD7

VSYS

GND

PB1

PB2

PB3

PA4

PA5

PA6

PD6

PD5

PH7

PJ0

PD4

PC7

PC6

PC5

3.3V

GND

Digital lines Analog Lines

PF0

PF1

PE4

PJ7

PR0

PR1

PE2

PE3

L

R

RST

GND

PC0

PC1

PC2

PC3

PE6

PE7

PF6

PF7

PD2

PD3

PD1

PD0

3.3V

GND

Reset pin

Reference Ground left ch.

right ch.

PWM lines audio out

Digital I/O lines

RX

TX

SCL2

SDA2

3.3V power supply

Reference Ground

Pin functions

Interrupt Lines SPI Lines

Page 33

I2C Lines UART lines PWM lines

14. Dimensions

81.15 mm

(3195 mils)

73.66 mm

(2900 mils)

63.5 mm

(2500 mils)

Page 34

2.54 mm

(100 mils)

2.67 mm

(105 mils)

Page 35

Page 34

15. mikromedia accessories

We have prepared a set of extension boards pin-compatible with your mikromedia, which enable you to easily expand your board basic functionality.

We call them mikromedia shields. But we also offer other accessories, such as Li-polymer battery, stacking headers, wire jumpers and more.

01

Connect shield

02

BatteryBoost shield 03 PROTO shield

04

Gaming shield

05 mikroBUS shield

Page 35

06

Li-Polimer battery

07

Wire Jumpers

What’s next?

You have now completed the journey through each and every feature of mikromedia for XMEGA

®

board. You got to know it’s modules and organization. Now you are ready to start using your new board. We are suggesting several steps which are probably the best way to begin. We invite you to join the users of mikromedia™ brand. You will find very useful projects and tutorials and can get help from a large ecosystem of users. Welcome!

Compiler

You still don’t have an appropriate compiler? Locate AVR

®

compiler that suits you best on the Product DVD provided with the package:

DVD://download/eng/software/compilers/

Choose between mikroC™, mikroBasic™ and mikroPascal™ and download fully functional demo version, so you can begin building your first applications.

Projects

Once you have chosen your compiler, and since you already got the board, you are ready to start writing your first projects.

Visual TFT software

for rapid development of graphical user interfaces enables you to quickly create your

GUI. It will automatically create necessary code which is compatible with mikroElektronika compilers. Visual TFT is rich with examples, which are an excellent starting point for your future projects. Just load the example, read well commented code, and see how it works on hardware. Visual TFT is also available on the Product DVD.

Page 36 Page 37

Page 36 Page 37

Notes:

Notes:

Page 38 Page 39

Page 38

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.

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 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™, mikroBasic™, mikroPascal™, mikroProg™, EasyAVR™, mikroBUS™, 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.

Page 39

AVR

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]

mikromedia for XMEGA Manual ver. 1.11

0 100000 020487

Page 40

Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement