AVR32924: UC3-L0 XPLAINED Hardware User's
Guide
Features
•
Atmel® AT32UC3L064 microcontroller
•
Atmel AT32UC3B1256
-
Board controller
-
Communication gateway
•
Analog input (to ADC)
-
Temperature sensor
-
RC filter
•
Digital I/O
-
One mechanical button switch
-
Three LEDs
-
Four expansion headers
•
Footprints for external memory
®
-
Atmel AT45DB series DataFlash serial flash
-
Atmel AT25DF series industry standard serial flash
•
Touch
-
One Atmel QMatrix™ slider (alt. four QMatrix buttons)
-
One Atmel QTouch
®
button
32-bit
Microcontrollers
Application Note
1 Introduction
The Atmel UC3-L0 Xplained evaluation kit is a hardware platform to evaluate the
Atmel AT32UC3L064 microcontroller.
The kit offers a large range of features that enables the Atmel AVR
®
UC3™ user to
get started using UC3 peripherals right away and understand how to integrate the
UC3 device in their own design.
Figure 1-1.
UC3-L0 Xplained evaluation kit.
Rev. 32156A-AVR-01/11
2 Related items
AVR32 Studio
®
(free Atmel 32-bit IDE)
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4116
AVR JTAGICE mkII
(on-chip programming and debugging tool)
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3353
AVR ONE!
(on-chip programming and debugging tool)
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4279
AVR Software Framework
(ASF)
http://asf.atmel.no/selector/show.php?device=uc3&store=app
3 General information
This document targets the Atmel AT32UC3L064 evaluation kit revision 4, and parts of
the document may, therefore, be inconsistent with earlier revisions of the product. For
earlier revisions, please refer to the schematics, which is the only documentation
available for these revisions. The Atmel UC3-L0 Xplained kit is intended to
demonstrate the AT32UC3L064 microcontroller, and the hardware that relates to the
Atmel AT32UC3B1256 (board controller) is, therefore, not covered in detail in this
document.
Figure 3-1.
Overview of the UC3-L0 Xplained kit.
2
AVR32924
32156A-AVR-01/11
AVR32924
Figure 3-2.
Functional overview of the Atmel UC3-L0 Xplained kit.
EXPANSIONS
Four standard 10 pin
headers that can be used
with various top cards
Button
LEDs
HID
MEMORIES
Dataflash
AT32UC3L064
Temperature
Sensor,
PWM Voltage
generation
USART/TWI
QTouch
button
QMatrix
slider
JTAG
DEBUG
AT32UC3B1256
USB Device
3.1 Preprogrammed firmware
The Atmel AT32UC3L064 and the Atmel AT32UC3B1256 that come with the Atmel
UC3-L0 Xplained kit are both preprogrammed.
The preprogrammed firmware in the AT32UC3L064 is set up with a small demo with
the Atmel QMatrix touch slider and Atmel QTouch button that can be used to control
the RGB LED. The device also features a UART boot loader that can be used to
program new firmware to the device. Hold the mechanical button while applying
power to start the boot loader. The boot loader can be used with the command line
tool “batchISP” delivered with FLIP.
The preprogrammed AT32UC3B1256 firmware offers features such as a boot loader
for self-programming of the board controller itself and a UART-to-USB gateway. The
bootloader can be started by shorting the 2-pin header (not mounted) while applying
power to the board. The bootloader can be used with the command line tool
“batchISP” delivered with FLIP.
32156A-AVR-01/11
3.2 Power supply
The kit is powered via the USB connector, which leaves two options to power it:
Connect the kit either to a PC through a USB cable or to a 5V USB power supply
(AC/DC adapter).
The 5V is regulated down to 3.3V with an onboard LDO regulator, which provides
power to the entire board. The Atmel AT32UC3L064 is powered by 3.3V, but if 1.8V
operation is desired, some modifications to the board are needed. This includes
replacing the regulator with one that delivers 1.8V output and rerouting the power to
the device (see schematic for explanation). As some of the other ICs on the Atmel
UC3-L0 Xplained require 3.3V to operate correctly, these devices have to be removed
also.
3.3 Measuring the AT32UC3L064 power consumption
As part of an evaluation of the AT32UC3L064, it can be of interest to measure its
power consumption. The two-pin header with a jumper mounted on it is the only
connection between the common power plane VCC_P3V3 and the VCC_MCU_P3V3
power plane. By replacing the jumper with an ampere meter, it is possible to
determine the current consumption of the AT32UC3L064. To locate the power
measurement header, please refer to
Figure 3-1.
WARNING
Do not power the board without having the jumper or an ampere meter
mounted. Otherwise, the device may be damaged.
3.4 Programming the AT32UC3L064 through the UART-to-USB gateway
The AT32UC3L064 can be programmed through the UART-to-USB gateway. This
can be accomplished using the UART boot loader preprogrammed in the device.
Press and hold the mechanical button switch while powering up the board to enter the
boot loader, and use 32-bit AVR Studio to set up a programming connection to the
device.
NOTE
If the default board controller firmware is replaced, programming of the
AT32UC3L064 may not be possible as the UART-to-USB functionality might be
missing.
If any external programming tool is used on the AT32UC3L064, the boot loader might
be erased, and it will not be possible to program the device through the UART-to-USB
gateway. In this case the boot loader has to be restored with an external
programming tool.
NOTE
3.5 Communication through the UART-to-USB gateway
The AT32UC3L064 UART is connected to a UART on the Atmel AT32UC3B1256.
The AT32UC3B1256 UART is communicating at 57600 baud, using one start bit,
eight data bits, one stop bit, and no parity.
When the AT32UC3B1256 device is enumerated (connected to a PC), the data
transmitted from the AT32UC3L064 is passed on to a (virtual) COM port. This means
that it is possible to use a terminal program to receive the transmitted data on a PC.
Similarly data transmitted from the PC COM port is passed on to the AT32UC3L064
UART through the gateway.
4
AVR32924
32156A-AVR-01/11
AVR32924
4 Connectors
The Atmel UC3-L0 Xplained kit has five 10-pin, 100mil headers. Two headers have a
fixed communication interface (J1 and J4). One header has analog functionality (J2),
and the last header (J3) has general purpose digital I/O.
The 90° angled header is the JTAG programming and debugging header for the
AT32UC3L064.
For the location of the respective headers, refer to
Figure 3-1.
4.1 Programming headers
The Atmel AT32UC3L064 can be programmed and debugged by connecting an
external programming/debugging tool to the JTAG header. The header has a
standard JTAG programmer pinout (refer to online help in AVR Studio), and tools
such as JTAGICE mkII or AVR ONE! can thus be connected directly to the header.
NOTE
NOTE
The grey female 10-pin header on JTAGICE mkII has to be used when connecting to
the kit. A scoring in the board is made to fit the orientation tab on the header.
A standoff adapter (no. 1) is needed Pin 1 on the JTAG header is at the top right
corner. This is rotated 180° compared to the other headers (J1, J2, J3, and J4).J1, J2,
J3, and J4).
Table 4-1.
UC3 programming and debugging interface – JTAG.
Pin
1
2
3
4
5
6
7
8
9
10
Note:
JTAG
(1)
TCK
GND
TDO
VCC
TMS
nSRST
-
-
TDI
GND
1. Standard pinout for JTAGICE mkII and other Atmel programming tools.
The Atmel AT32UC3B1256 can be programmed through its boot loader. The boot
loader is evoked by shorting the two holes close to the device before applying power
to the board. The two holes have 100mil spacing, so the user can solder in a two-pin
header and use a jumper to easily enter the boot loader. Programming is performed
through the boot loader programmer target in the Atmel AVR32 Studio.
Alternatively, the AT32UC3B1256 can also be programmed by connecting a
programming tool, such as JTAGICE mkII, to the 10-pin test points on the bottom side
of the board (marked with BC JTAG).
NOTE
It is not recommended to program the AT32UC3B1256 using a programming tool, as
this will erase the boot loader.
32156A-AVR-01/11