View
7
Download
0
Category
Preview:
Citation preview
MikroElektronika
mikroXMEGA™Manual
All MikroElektronika´s development systems represent irreplaceable tools for programming and developing microcontroller-based devices. Carefully chosen components and the use of machines of the last generation for mounting and testing thereof are the best guarantee of high reliability of our devices. Due to simple design, a large number of add-on modules and ready to use examples, all our users, regardless of their experience, have the possibility to develop their projects in a fast and efficient way.
Deve
lopm
ent S
yste
m
MikroElektronika
Figure 1: mikroXMEGA development system
How to connect the development system?
The mikroXMEGA development system can be easily connected to external devices via connectors and pads supplied on the board. The USB connector is used to connect the USB-UART module of the development system to a PC. In order to use the USB-UART module, it is necessary to select which UART module of the microcontroller will be used. This is done via jumpers J1-J4. In order to use PC2 (RX) and PC3 (TX) pins, jumpers J1 and J3 should be placed. Likewise, in order to use PD2 (RX) and PD3 (TX) pins, jumpers J2 and J4 should be placed.
The CN4 (PDI) is used for programming/debugging via PDI interface. The CN5 (JTAG) connector is used for programming/debugging via JTAG interface.
The CN1 and CN3 pads enable the microcontroller pins to be easily accessed. The 3.3V power supply voltage is supplied to the pads marked 3.3V (+3.3V) and GND.
mikroXMEGAThe mikroXMEGA is a compact development system that enables you to experiment with the ATxmega128A1 microcontroller from Atmel®.
Key features:
- Bootloader program loaded into the ATxmega128A1 microcontroller; - USB-UART communication; - JTAG connector; - External power supply 3.3V.
MikroElektronika
MCUTX-
MCURX-
U2
FT232RL
DCD#
CTS#
CBUS4
CBUS2
CBUS3
OSCO
OSCI
TEST
AGND
NC
CBUS0
CBUS1
GND
VCC
RESET#
GND
3V3OUT
USBDM
USBDP
DSR#
TXD
DTR#
RTS#
VCCIO
RXD
RI#
GND
NC
VCC-3.3
C5
100nF
VCC
C7
100nF
VCC-3.3
C6
100nF
VCC-3.3
C11
100nF
VCC-3.3
C12
100nF
VCC-3.3
C13
100nF
VCC-3.3
C14
100nF
VCC-3.3
C15
100nF
VCC-3.3
C16
100nF
VCC-3.3
C17
100nF
VCC-3.3
C10
100nF
VCC
RESET#
USBDPUSBDM
D+GND
V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3VCC-3.3 VCC-3.3
CN3 CN1
X18MHz
U3E74HC04
U3C74HC04
PR1/XTAL1
1M
R61K
R5
R1
0
C2
22pF
C1
22pF
C20
100nF
VCC
U3A74HC04
U3B74HC04
U3D74HC04
U3F74HC04
1 2
3 4
9 8
13 12
C18 C19
100nF 100nF
VCC-3.3
AVCCL110uH
Figure 2: mikroXMEGA development system connection schematic
MikroElektronika
Figure 3: Dimensions of the mikroXMEGA development system
How to program the microcontroller?
The ATxmega128A1 microcontroller is programmed via the bootloader program stored in the microcontroller memory. Connect the development system to a PC via the USB connector CN2. Power the board via two pads 3.3V and GND.
Figure 4: Programming the microcontroller
Figure 5: Powering the board
STEP 1: Connecting the development system to a PC
+3.3V power supply
Ground
MikroElektronika
STEP 2: Starting up the mikroElektronika Bootloader program
STEP 3: Program settings
STEP 4: Connecting
Download the mikroElektronika USB HID Bootloader program from Mikroelektronika’s website at:http://www.mikroe.com/eng/downloads/get/1271/mikrobootloader_xmega_v101.zip
Unzip the file, then double click on the appropriate icon
Click on the Change Settings button
Click on the OK button
Click on the Connect button within 5s after the development system is connected to PC
Select the COM port on the PC that the development system is connected to
The Device Manager on your PC contains information about which COM port is used for USB communication with the development system. The COM7 port is used here.
Select the appropriate COM port from the drop-down list
MikroElektronika
STEP 5: Browsing for .hex file
STEP 6: Uploading the .hex file into the microcontroller
Click on the Browse for HEX button
Click on the Begin uploading button
Follow the process of uploading in the progress bar
Choose a .hex file you want to load into the microcontroller
Click on the Open button
MikroElektronika
STEP 7: Resetting the microcontroller
Click on the OK button
After uploading the .hex file into the microcontroller, it is necessary to reset the development system by turning it off for a few seconds and turning it on again.After that, the microcontroller supplied on the development system has been programmed and ready for use.
MikroElektronika
If yo
u w
ant t
o le
arn
mor
e ab
out o
ur p
rodu
cts,
ple
ase
visi
t our
web
site
at w
ww
.mik
roe.
com
If yo
u ar
e ex
perie
ncin
g so
me
prob
lem
s w
ith a
ny o
f our
pro
duct
s or
just
nee
d ad
ditio
nal i
nfor
mat
ion,
ple
ase
plac
e yo
ur ti
cket
at
ww
w.m
ikro
e.co
m/e
n/su
ppor
t
If yo
u ha
ve a
ny q
uest
ions
, com
men
ts o
r bus
ines
s pr
opos
als,
do
not h
esita
te to
con
tact
us
at o
ffice
@m
ikro
e.co
m
Recommended