mikromedia - docs.rs-online.comthe development system, it is necessary to solder a 2x3 male header...
TRANSCRIPT
Compact multimedia development system rich with on-board peripherals for
all-round development on ATxmega128A1 device
for XMEGA®mikromedia™
AVR
Page 3Page 2
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.
The XMEGA® and Windows® logos and product names are trademarks of ATMEL® and Microsoft® in the U.S.A. and other countries.
TO OUR VALUED CUSTOMERS
Nebojsa Matic
General Manager
Page 3
Introduction to mikromedia for XMEGA® 4
Package Contains 5
Key Features 6
System Specification 7
1. Power supply 8
USB power supply 8
Battery 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 14
step 1 – Choosing COM port 14
step 2 – Establishing connection 15
step 3 – Browsing for .HEX file 15
step 4 – Selecting .HEX file 16
step 5 – Uploading .HEX file 16
step 6 – Progress bar 17
step 7 – Finishing upload 17
Programming with external programmer 18
4. Reset Button 20
5. Crystal Oscillators 22
6. MicroSD Card Slot 23
7. Touch Screen 24
8. Audio Module 26
9. USB UART connection 28
10. Accelerometer 30
11. Flash Memory 31
12. Pads 32
13. Pinout 33
14. Dimensions 34
15. Mikromedia Accessories 35
16. What’s Next 36
Table of Contents
Page 4 Page 5
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
01 02
04 05
03
06
Damage resistant
protective box
mikromedia for XMEGA®
development system
mikromedia for XMEGA®
user’s guide
mikromedia for XMEGA®
schematic
DVD with documentation
and examples
USB cable
Copyright ©2012 Mikroelektronika. All rights reserved. MikroElektronika, MikroElektronika logo and other
MikroElektronika trademarks are the property of MikroElektronika. All other trademarks are the property of their respective owners.
Unauthorised copying, hiring, renting, public performance and broadcasting of this DVD
is strictly prohibited.
MIKROMEDIA BOARDS • • • • • • • • • MANUALS • • • • • • • • • DEVELOPMENT BOARDS • • • •
• • •
• • SCHEMAT
ICS •
• • • • •
• •
• A
CCES
SOR
Y B
OA
RD
S •
• •
• •
• •
• •
EXAM
PLES
• • • • • • • • •
ADDIT
IONAL SOFTWARE • •
• • • •
• • • COMPILERS • • • • • • • • • MIKROC, MIKROBASIC, MIKROPASCAL COMPILERS • • • • • • • • • DRIVERS • • • • • • • • • P
RO
GR
AM
MER
S AN
D D
EBUGGERS • • • • • • • • •
PRODUCT DVDwww.mikroe.comwww.libstock.com
Package Contains
Page 6 Page 7
01
16
02
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
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
11Key Features
17
Page 6 Page 7
System Specification
power supply
Over a USB cable (5V DC)
board dimensions
81.2 x 60.5 mm (3.19 x 2.38 inch)
weight
~45 g (0.10 lbs)
power consumption
87 mA with erased MCU
(when back-light is ON)
03
06
07
08 09
10
12
13
14
15
16
0405
17
Page 8 Page 9
1. 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.
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.
Battery power supply
USB power supply
Figure 1-1: Connecting USB power supply
Figure 1-2: Connecting Li-Polymer battery
Page 8 Page 9
23
5
4
1
VCC-BAT
D1PMEG3010ER
R443K9
Charging Current approx. 250mA
R394K7
VCC-3.3
E7
10uF
C40
2.2uF
R344K7
R64K7
VCC-BAT
VSENSE
VCC-SYS
VCC-SYS
R4310K
R37
10K
R3610K
VCC-3.3
STAT
R3810K
R451K
VCC-3.3
E510uF
R3510K
VCC-3.3
R494K7
M1DMP2160UW
STATVSSVBAT VDD
PROG
U5
MCP73832Q4BC846
Q5BC846
VCC-USB
C29
2.2uF
VCC-3.3
R46100K
E10
10uF
R47220K
VCC-1.8
VCC-1.8
R500R
123
5
4
VinGNDEN ADJ
Vout
U3
MIC5205-ADJ
DAT
A BU
S
LD2CHARGE
VCC-BAT
VCC-1.8VREF-1.8
E1110uF
FP3
FERRITE
CN1BATT CONN
VCC-SYS VCC-3.3
E310uF
E410uF
R26
2K2Vout
3
Vin1
2GND
REG1
LD29080DT33LD1
POWER
1234567891011121314151617181920212223242526
HDR1
M1X26
2728293031323334353637383940414243444546474849505152
HDR2
M1X26
VCC-3.3 VCC-3.3
VCC-SYS
C2810nF
FP2FERRITE
12345 GND
IDD+D-VBUS
CN3
USB MINIB
VCC-3.3AVCC
FP4
FERRITE
C30100nF
C25100nF
Figure 1-3: Power supply schematics
Page 10 Page 11
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.
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.
DATA BUS
EVENT ROUTING NETWORK
Power/ResetControl
AES/DESCrypto
Support
DMAController
EventSystem
Controller
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
Page 10 Page 11
3. Programming the microcontroller
01
02
Over UART mikroBootloader
Using external PDI programmer
Figure 3-1:ATxmega128A1
Microcontroller
The microcontroller can be programmed in two ways:
Page 12
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:
After the mikroBootloader software is downloaded unzip it to
desired location and start it.
http://www.mikroe.com/downloads/get/1669/mikromedia_xmega_bootloader_v101.zip
Programming with mikroBootloader
Figure 3-2: mikroBootloader window
01 When you start mikroBootloader software, a window as shown in Figure 3-2 should appear
mikroBootloader software
Connect mikromedia for XMEGA® with a PC before
starting mikroBootloader softwarenote
Page 13
Page 14 Page 15
step 1 – Choosing COM port
Figure 3-4: Choosing COM port
01
01
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 it is COM5)
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
03
02
Page 14 Page 15
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
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 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
Page 16 Page 17
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
0201
Page 16 Page 17
step 7 - Finishing upload
01
Figure 3-9: Progress bar Figure 3-10: Restarting MCU
01 01
02
Progress bar enables you to monitor .HEX file uploading
Click OK button after the uploading process is finished
Press Reset button on Ready for XMEGA® board and wait for 5 seconds. Your program will run automatically
step 6 - Progress bar
01
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).
Figure 3-11:connecting PDI
programmer
Programming with external
programmer
Page 18
Page 19
Figure 3-12: PDI programmer connection schematic
VCC-3.3
30292827 3433
58575655545352
463635 42 43 44 4537 50
9
48 49
1112
32
72
69686766656463
43
78 77
2423
181716151413
5678
10
7980
12
22212019
62616059
38 39 40 41 47
71
31
51
7026
25
76
757473
ATxmega128A1
81828384858687888990919293949596979899100
PE0
VCC
GN
DPD
7
PE7
PE6
PB0PB1PB2PB3
PJ4PJ3PJ2
PH2
VCC
GN
DGNDVCCPH0PH1
PF0
PF1
XTAL
2/PR
0RE
SET/
PDI
PDI
GN
D
PQ3
PQ2
GN
DVC
C
AVCCGND
PA3
PA2
PA1
PA0
AVCC
XTAL
1/PR
1
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
U1
AVCC PDI
RESE
T#
135 6
42
CN5
M2X3
VCC-3.3
PDI
RESET#
C5
100nF
C6
100nF
C7
100nF
C8
100nF
E8
10uF
VCC-3.3 VCC-3.3 VCC-3.3
VCC-3.3
VCC-3.3
C31
100nF
VCC-3.3
C35
100nF
VCC-3.3
Page 20 Page 21
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).
4. Reset Button
Figure 4-2: Frontal reset buttonFigure 4-1: Location of additional reset button
You can also solder additional reset button on the appropriate place at the back side of the board, Figure 4-1.
NOTE
Page 20 Page 21
R810K
VCC-3.3
C3
100nF
T1BU
TTO
N
T2BU
TTO
N
RST
VCC-3.3
C5
100nF
C6
100nF
C7
100nF
C8
100nF
E8
10uF
VCC-3.3 VCC-3.3 VCC-3.3
VCC-3.3
VCC-3.3
C31
100nF
VCC-3.3
C2
22pF
C1
22pF X132.768kH
z
30292827 3433
58575655545352
463635 42 43 44 4537 50
9
48 49
1112
32
72
69686766656463
43
78 77
2423
181716151413
5678
10
7980
12
22212019
62616059
38 39 40 41 47
71
31
51
70
26
25
76
757473
ATxmega128A1
81828384858687888990919293949596979899100
PE0
VCC
GN
DPD
7
PE7
PE6
PB0PB1PB2PB3
PJ4PJ3PJ2
PH2
VCC
GN
D
GNDVCCPH0PH1
PF0
PF1
XTAL
2/PR
0RES
ET/P
DI
PDI
GN
D
PQ3
PQ2
GN
DVC
C
AVCCGND
PA3
PA2
PA1
PA0
AVCC
XTAL
1/PR
1PB7
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
1PC2PC1PC0
PE1
PE5
PH5
PJ0
TOSC
1/PQ
0
PD6
PD5
PD4
GND
PB4
GNDVCC
PJ7
PK3
PK1
GNDVCCPK0
PK2
PK4
PK5
PK6
PK7
U1
C35
100nF
VCC-3.3
AVCC
PQ1/
TOSC
2PQ
0/TO
SC1
R7
100
RST
2728293031323334353637383940414243444546474849505152
HDR2
M1X26
VCC-3.3
RST
Figure 4-3: Reset circuit schematic
Page 22 Page 23
Figure 5-1:32.768kHz crystal oscillator
connected to RTCC module (X1)
VCC-3.3
C222pF
C122pF X1
32.768kHz
30292827 3433
58575655545352
463635 42 43 44 4537 50
9
48 49
1112
32
72
69686766656463
43
78 77
2423
181716151413
5678
10
7980
12
22212019
62616059
38 39 40 41 47
71
31
51
70
26
25
76
757473
ATxmega128A1
81828384858687888990919293949596979899100
PE0
VCC
GN
DPD
7
PE7
PE6
PB0PB1PB2PB3
PJ4PJ3PJ2
PH2
VCC
GN
D
GNDVCCPH0PH1
PF0
PF1
XTAL
2/PR
0RE
SET/
PDI
PDI
GN
D
PQ3
PQ2
GN
DVC
C
AVCCGND
PA3
PA2
PA1
PA0
AVCC
XTAL
1/PR
1
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
U1
AVCC
PQ1/
TOSC
2PQ
0/TO
SC1
C5
100nF
C6
100nF
C7
100nF
C8
100nF
E8
10uF
VCC-3.3 VCC-3.3 VCC-3.3
VCC-3.3
VCC-3.3
C31
100nF
VCC-3.3
C35
100nF
VCC-3.3
Figure 5-2:Crystal oscillator schematic
The use of crystal in all other schematics is implied even if it is purposely left out because of the schematics clarity.
NOTE :
5. Crystal oscillatorsATxmega128A1 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.
Page 22 Page 23
VCC-3.3
30292827 3433
58575655545352
463635 42 43 44 4537 50
9
48 49
1112
32
72
69686766656463
43
78 77
2423
181716151413
5678
10
7980
12
22212019
62616059
38 39 40 41 47
71
31
51
70
26
25
76
757473
ATxmega128A1
81828384858687888990919293949596979899100
PE0
VCC
GN
DPD
7
PE7
PE6
PB0PB1PB2PB3
PJ4PJ3PJ2
PH2
VCC
GN
D
GNDVCCPH0PH1
PF0
PF1
XTAL
2/PR
0RE
SET/
PDI
PDI
GN
D
PQ3
PQ2
GN
DVC
C
AVCCGND
PA3
PA2
PA1
PA0
AVCC
XTAL
1/PR
1
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
U1
AVCC
SD-C
D#
SD-C
S#
SD-CS#
R1110K
R1010K
VCC-MMC
R910K
SD-CD#
VCC-MMC
R16
27
VCC-3.3
E6 10uF
C38 100nF
FP1
FERRITE
124567
CDCD
CSDin+3.3VSCKGNDDout
GN
D
CN4MMC CARD MICRO
MOSIC-PC5
SCKC-PC7
MISOC-PC6
R5
R4
MOSIC-PC5
SCKC-PC7MISOC-PC6
C5
100nF
C6
100nF
C7
100nF
C8
100nF
E8
10uF
VCC-3.3 VCC-3.3 VCC-3.3
VCC-3.3
VCC-3.3
C31
100nF
VCC-3.3
C35
100nF
VCC-3.3
27
27
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.
Figure 6-3:Inserting microSD card
Figure 6-1: microSD card slot
Figure 6-2: microSD Card Slot module connection schematic
6. microSD Card Slot
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.
Figure 7-1: Touch Screen
7. Touch Screen
Page 24
Page 25
VCC-3.3
30292827 3433
58575655545352
463635 42 43 44 4537 50
9
48 49
1112
32
72
69686766656463
43
78 77
2423
181716151413
5678
10
7980
12
22212019
62616059
38 39 40 41 47
71
31
51
7026
25
76
757473
ATxmega128A1
81828384858687888990919293949596979899100
PE0
VCC
GN
DPD
7
PE7
PE6
PB0PB1PB2PB3
PJ4PJ3PJ2
PH2
VCC
GN
DGNDVCCPH0PH1
PF0
PF1
XTAL
2/PR
0RE
SET/
PDI
PDI
GN
D
PQ3
PQ2
GN
DVC
C
AVCCGND
PA3
PA2
PA1
PA0
AVCC
XTAL
1/PR
1PB7
PD3
GNDPC7PC6PC5PC4PC3
PJ6PJ5
PF7PF6
VCC
PB6PB5
PE3
PA4
PA5
PA6PA7
PD2
PD1
PD0VCC
PF4
PF5
PJ1
PH6
PF2
PF3
PH3PE
4
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
U1
AVCC
LCD-BLED
LCD-CS#LCD-RS
LCD-RST
T-D0
T-D
1T-
D2
T-D
3T-
D4
T-D
5T-
D6
T-D
7
LCD
-YD
LCD
-XL
DRI
VEA
DRI
VEB
PMRDPMWR
R23
1K
VCC-SYS
LCD-RST
LCD-RSLCD-CS#
LCD-YULCD-XLLCD-YDLCD-XR
VCC-3.3
E1310uF
R2510K
VCC-3.3
R2410K
LCD-RSTLCD-CS#
VCC-3.3
LCD-BLEDR4012
VCC-SYS
PMRDPMWR
D2
BAT43
LED-A12
DB1715
HSYNC12
RD35
VSYNC11
WR/SCL36
LED-A23
LED-A34
LED-A45
IM06
ENABLE14
IM17
IM28
IM39
DOTCLK13
GND43
SDO33
RESET10
RS37
CS38
FMARK39
VCC-IO40
XR44
YD45
XL46
SDI34
LED-K1
YU47
DB1616
DB1517
DB1418
DB1319
DB1220
DB1121
DB1022
DB923
DB824
DB725
DB626
DB527
DB428
DB329
DB230
DB131
DB032
VCC41
VCC-I42
TFT1
MI0283QT2
VCC-3.3
Q9BC856
Q10BC846
R58
10K
R411K
VCC-1.8
R15
10K
R31K
VCC-3.3
Q8BC856
VCC-1.8
R55
10K
Q6BC846
R14
10KC21100nF
R42100K
Q7BC846
R56
10K C22100nF
R57100K
R541K
VCC-3.3
LCD-XR
LCD-YU
LCD-XL
LCD-YD
DRIVEA
DRIVEB
T-D5T-D6T-D7
T-D4T-D3T-D2T-D1T-D0
Q3BC846
Q2BC846
Q1BC846
C5
100nF
C6
100nF
C7
100nF
C8
100nF
E8
10uF
VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3
C31
100nF
VCC-3.3
C35
100nF
VCC-3.3
Figure 7-2: Touch Screen connection schematic
Page 26 Page 27
Figure 8-2: Inserting 3.5mm headphones jack
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).
Figure 8-1: On-board VS1053
MP3 codec
8. Audio Module
Page 26 Page 27
Figure 8-3: Audio module connection schematic
VCC-3.3
R5
R4
30292827 3433
58575655545352
463635 42 43 44 4537 50
9
48 49
1112
32
72
69686766656463
43
78 77
2423
181716151413
5678
10
7980
12
22212019
62616059
38 39 40 41 47
71
31
51
70
26
25
76
757473
ATxmega128A18182838485868788899091929394959697989910
0
PE0
VCC
GN
DPD
7
PE7
PE6
PB0PB1PB2PB3
PJ4PJ3PJ2
PH2
VCC
GN
D
GNDVCCPH0PH1
PF0
PF1
XTAL
2/PR
0RE
SET/
PDI
PDI
GN
D
PQ3
PQ2
GN
DVC
C
AVCCGND
PA3
PA2
PA1
PA0
AVCC
XTAL
1/PR
1
PB7
PD3
GNDPC7PC6PC5PC4PC3
PJ6PJ5
PF7PF6
VCC
PB6PB5
PE3
PA4
PA5
PA6PA7
PD2
PD1
PD0VCC
PF4
PF5
PJ1
PH6PF
2PF
3
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
U1
AVCC
MP3
-DREQ
MOSIC-PC5
SCKC-PC7MISOC-PC6
MP3-RST#MP3-CS#
MP3-DCS
MP3-CS#
C20
22pF
C19
22pF
R1 1M
R2010K
R21
10K
MP3
-DREQ
MP3-RST#
R210K
R1910K
X212.288MHz
C131uF
VCC-3.3
GPI
O
VCC-3.3
LEFT
RIGHT
GBUF
C11
100nF
C10
100nF
C4
100nF
C12
100nF
C9
100nF
C23
100nF
VCC-3.3
C24
100nF
VCC-3.3
C26
100nF
VCC-3.3 VCC-3.3
C27
100nF
VCC-1.8 VCC-1.8 VCC-1.8 VCC-1.8 VCC-3.3
E1
10uF
E2
10uF
CN2
PHONEJACK
LEFT
RIGHT
C16
10nF
C14
47nF
C15
10nF
R2710
R3020
R3120
R28 10
R29 10
R32
470 C173.3nF
R17100K
R33
470 C183.3nF
R18100K
L
R
R2227
2345671112
1314
25
24232221
18171615
8 1
19
9102726
20
28 29 30 31 32 33 34 35 36
373839404142434445464748
MCP/LN
1M
ICNXR
ESETD
GN
D0
CVDD
0IO
VDD
0CVD
D1
DREQ
GPIO
2G
PIO3
GPIO
6G
PIO7
XDCS/BSYNCIOVDD1VC0DGND1XTAL0XTAL1IOVDD2DGND2DGND3DGND4XCSCVDD2
GPIO
5RX TX
SCLK SISO
CVDD
3XTESTG
PIO0
GPIO
1G
ND
GPIO
4
AGND0AVDD0
AVDD2
AGND1AGND2
AGND3LN2
LEFT
RCAPAVDD1
GBUF
RIGHT
VS1053
U2
VCC-1.8 VCC-3.3
MP3-CS#
MP3
-RST
#
MO
SIC-
PC5
SCKC
-PC7
MIS
OC-
PC6
MP3-DCS
27
27
C5
100nF
C6
100nF
C7
100nF
C8
100nF
E8
10uF
VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3
C31
100nF
VCC-3.3
C35
100nF
VCC-3.3
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
9. USB UART connection
Page 28
Page 29
Figure 9-2: USB module connection schematic
USBDPUSBDM
VCC-USB
C2810nF
FP2FERRITE
USBDET
R60100
123456789
1011121314 15
16171819202122232425262728
TXDDTR#RTS#VCCIORXDRI#GNDNCDSR#DCD#CTS#CBUS4CBUS2CBUS3
CBUS0CBUS1
OSCOOSCITESTAGND
NC
GND
GND
VCCRESET#
3V3OUTUSBDMUSBDP
FT232RL
U4
FT232RL
VCC-3.3 VCC-3.3
C36100nF
R53220
R51
4K7
R5210K
C34100nF
TXF-MCU
RXF-MCU
12345 GND
IDD+D-VBUS
CN3 USB MINIB
LD3TX/RX
VCC-3.3
30292827 3433
58575655545352
463635 42 43 44 4537 50
9
48 49
1112
32
72
69686766656463
43
78 77
2423
181716151413
5678
10
7980
12
22212019
62616059
38 39 40 41 47
71
31
51
70
26
25
76
757473
ATxmega128A18182838485868788899091929394959697989910
0
PE0
VCC
GN
DPD
7
PE7
PE6
PB0PB1PB2PB3
PJ4PJ3PJ2
PH2
VCC
GN
D
GNDVCCPH0PH1
PF0
PF1
XTAL
2/PR
0RE
SET/
PDI
PDI
GN
D
PQ3
PQ2
GN
DVC
C
AVCCGND
PA3
PA2
PA1
PA0
AVCC
XTAL
1/PR
1
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
PJ0TO
SC1/
PQ0
PD6
PD5
PD4
GND
PB4
GNDVCC
PJ7
PK3
PK1
GNDVCCPK0
PK2
PK4
PK5
PK6
PK7
U1
AVCC
TXF-
MCU
RXF-
MCU
USBDET
C5
100nF
C6
100nF
C7
100nF
C8
100nF
E8
10uF
VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3
C31
100nF
VCC-3.3
C35
100nF
VCC-3.3
Page 30 Page 31
VCC-3.3
30292827 3433
58575655545352
463635 42 43 44 4537 50
9
48 49
1112
32
72
69686766656463
43
78 77
2423
181716151413
5678
10
7980
12
22212019
62616059
38 39 40 41 47
71
31
51
70
26
25
76
757473
ATxmega128A1
81828384858687888990919293949596979899100
PE0
VCC
GN
DPD
7
PE7
PE6
PB0PB1PB2PB3
PJ4PJ3PJ2
PH2
VCC
GN
D
GNDVCCPH0PH1
PF0
PF1
XTAL
2/PR
0RE
SET/
PDI
PDI
GN
D
PQ3
PQ2
GN
DVC
C
AVCCGND
PA3
PA2
PA1
PA0
AVCC
XTAL
1/PR
1
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
U1
AVCC
SCLD
-PD
1
SDAD-PD0
C32100nF
C33100nF
VCC-3.3
R1210K
R1310K
VCC-3.31 2 3
J1SMD JUMPER
ACC ADDRESS123
VCCGNDRes
4 GND5
GND6VCC
7CS
8INT1
9INT2
10NC
11Res
12ADD
13SDA
14SC
L
U9
ADXL345
VCC-3.3
VCC-3.3 VCC-3.3
SCLD-PD1
SDAD-PD0
C5
100nF
C6
100nF
C7
100nF
C8
100nF
E8
10uF
VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3
C31
100nF
VCC-3.3
C35
100nF
VCC-3.3
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.
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.
Figure 10-2:Accelerometer connection schematic
Figure 10-1: Accelerometer
module
10. Accelerometer
Page 30 Page 31
VCC-3.3
R5
R4
30292827 3433
58575655545352
463635 42 43 44 4537 50
948 49
1112
32
72
69686766656463
43
78 77
2423
181716151413
5678
10
7980
12
22212019
62616059
38 39 40 41 47
71
31
51
70
26
25
76
757473
ATxmega128A1
81828384858687888990919293949596979899100
PE0
VCC
GN
DPD
7
PE7
PE6
PB0PB1PB2PB3
PJ4PJ3PJ2
PH2
VCC
GN
D
GNDVCCPH0PH1
PF0
PF1
XTAL
2/PR
0RE
SET/
PDI
PDI
GN
D
PQ3
PQ2
GN
DVC
CAVCCGND
PA3
PA2
PA1
PA0
AVCC
XTAL
1/PR
1
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
U1
AVCC
MOSIC-PC5
SCKC-PC7MISOC-PC6
FLASH-CS#
FLASH-CS#
C37
100nFR4810K
VCC-3.3
VCC-3.3
VCC-3.3
123
54678CS
SDOWPGND SDI
SCKHOLD
VCC
U10
M25P80
MOSIC-PC5SCKC-PC7R59 27
MISOC-PC6
C5
100nF
C6
100nF
C7
100nF
C8
100nF
E8
10uF
VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3
C31
100nF
VCC-3.3
C35
100nF
VCC-3.3
27
27
Figure 11-2:Flash memory module connection schematic
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).
Figure 11-1:Flash memory module
11. Flash Memory
Page 32 Page 33
VCC-3.3
R5
R4
30292827 3433
58575655545352
463635 42 43 44 4537 50
9
48 49
1112
32
72
69686766656463
43
78 77
2423
181716151413
5678
10
7980
12
22212019
62616059
38 39 40 41 47
71
31
51
70
26
25
76
757473
ATxmega128A1
81828384858687888990919293949596979899100
PE0
VCC
GN
DPD
7
PE7
PE6
PB0PB1PB2PB3
PJ4PJ3PJ2
PH2
VCC
GN
D
GNDVCCPH0PH1
PF0
PF1
XTAL
2/PR
0RE
SET/
PDI
PDI
GN
D
PQ3
PQ2
GN
DVC
C
AVCCGND
PA3
PA2
PA1
PA0
AVCC
XTAL
1/PR
1
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
U1
AVCC
PB1PB2PB3
PC0PC1PC2PC3
SCLD
-PD
1
SDAD-PD0
PA6PA7
PD4
PF0
PF1
PE3
PE4
PE2
PE6
PE7
MOSIC-PC5
SCKC-PC7MISOC-PC6
RXD
-PD
2TX
D-P
D3
PD5
PD7
PD6
PE1
PE0
PB5PB6
PH1PH0
PR1
PR0
PF6PF7
PH7
PJ7
PA5
PA4
PJ0
SCKSDISDO
1234567891011121314151617181920212223242526
HDR1
M1X26
VCC-3.3
VCC-SYS
PD5
PD7PD6
PB1PB2PB3
PH1PH0
PH7
PA6PA7
PD4
PE1PE0
PA5PA4
MOSIC-PC5
SCKC-PC7MISOC-PC6
PB5PB6
PJ0RXTX
SDASCL
2728293031323334353637383940414243444546474849505152
HDR2
M1X26
VCC-3.3
PC0PC1PC2PC3
SCLD-PD1
RXD-PD2TXD-PD3
SDAD-PD0
PF7
PJ7
PF6
PF1PF0
PR1PR0
PE3
PE4
RST
PE2
PE6PE7
LR
27
27
R7100
RST
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.
Pads HDR2 Pads HDR1
Figure 12-1: connecting pads schematic
12. Pads
Page 32 Page 33
SPI LinesInterrupt LinesAnalog LinesDigital lines I2C Lines UART lines PWM lines
VSYS RST Reset pinSystem power supplyGND GND Reference GroundReference GroundPB1 LPB2 R
left ch.right ch.
PWM lines
Digital I/O lines
Digital I/O lines
Interrupt lines
Analog linesPB3 PC0PA4 PC1PA5 PC2PA6 PC3PA7 PF0PH0 PF1PH1 PE4PB5 PJ7PB6 PR0PE1 PR1PE0 PE2PD7 PE3PD6 PE6PD5 PE7PH7 PF6PJ0 PF7
PD4 PD2 RXPC7 PD3 TXSCKPC6 PD1 SCL2SDIPC5 PD0 SDA2SDO
3.3V 3.3V 3.3V power supply3.3V power supplyGND GND Reference GroundReference Ground
audio out
13. Pinout
Pin functions Pin functions
Page 34 Page 35
73.66 mm
81.15 mm
63.5 mm
2.67 mm2.54 mm
36.5
8 m
m
55.8
8 m
m
60.4
5 m
m
2.03
mm
(3195 mils)
(2900 mils)
(238
0 m
ils)
(220
0 m
ils)
(2500 mils)
(144
0 m
ils)
(105 mils)(100 mils)
(80
mils
)
8.89
mm
(350
mils
)7.
62 m
m(3
00 m
ils)
14. Dimensions
Page 34 Page 35
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.
04
01 02 03
Gaming shield
Connect shield BatteryBoost shield PROTO shield
06 07Li-Polimer battery Wire Jumpers05 mikroBUS shield
Page 36 Page 37
You still don’t have an appropriate compiler? Locate AVR® compiler that suits you best on
the Product DVD provided with the package:
Choose between mikroC™, mikroBasic™ and mikroPascal™ and download fully functional
demo version, so you can begin building your first applications.
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.
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
Projects
DVD://download/eng/software/compilers/
What’s next?
Page 36 Page 37
Notes:
Page 38 Page 39
Notes:
Page 38 Page 39
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™, 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.
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 40
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]
AVR
mikromedia for XMEGA Manual ver. 1.11
0 100000 020487