APPLICATION NOTE Atmel AVR32924: UC3-L0 XPLAINED Hardware User’s Guide Atmel 32-bit Microcontroller 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 Atm
Table of Contents 1. Related Items ....................................................................................... 3 2. General Information ............................................................................. 4 2.1 2.2 2.3 2.4 2.5 Preprogrammed Firmware ................................................................................ 5 Power Supply ....................................................................................................
1. Related Items Atmel Studio (IDE Supports all 8- and 32-bit AVR and ARM® devices) http://www.atmel.com/tools/atmelstudio.aspx?tab=overview Atmel AVR JTAGICE3 (on-chip programming and debugging tool) http://www.atmel.com/tools/JTAGICE3.aspx Atmel AVR ONE! (on-chip programming and debugging tool) http://www.atmel.com/tools/AVRONE_.aspx Atmel Software Framework (ASF) http://gallery.atmel.
2. 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.
Figure 2-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 Dataflash HID QTouch button MEMORIES QMatrix slider AT32UC3L064 Temperature Sensor, PWM Voltage generation JTAG USART/TWI AT32UC3B1256 2.1 DEBUG USB Device Preprogrammed Firmware The Atmel AT32UC3L064 and the Atmel AT32UC3B1256 that come with the Atmel UC3-L0 Xplained kit are both preprogrammed.
2.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 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.
3. Connectors The 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 2-1. 3.
Table 3-2. UC3-L0 Xplained I/O Expansion Header – J1. Pin J1 UC3 pin Shared with onboard functionality 1 TWI SDA PA21 Header J4, board controller 2 TWI SCL PB05 Header J4, board controller 3 UART RX PB11 Header J4 4 UART TX PB10 Header J4 5 SPI CS2 PA08 - 6 SPI MOSI PB03 Header J4, DataFlash 7 SPI MISO PB02 Header J4, DataFlash 8 SPI SCK PB01 Header J4, DataFlash 9 GND - - 10 VCC_P3V3 - - Table 3-3. Pin UC3-L0 Xplained I/O Expansion Header – J2.
Table 3-4. UC3-L0 Xplained I/O Expansion Header – J3. Pin J3 UC3 pin Shared with onboard functionality 1 PWM0 PA13 RGB LED (RED), RC filter input 2 PWM1 PA17 RGB LED (GREEN) 3 PWM2 PA20 RGB LED (BLUE) 4 PWM3 PA22 QMatrix slider X2 5 PWM4 PB12 QTouch SNS 6 PWM5 PB09 QTouch SNSK 7 PWM6 PB04 LED1 PA11 LED0, mechanical button - - - - 8 PWM7 9 GND 10 Notes: (1) VCC_P5V0 (2) 1. Mechanical button and LED0 are sharing I/O.
4. Memories The Atmel UC3-L0 Xplained does not have any external memories mounted on the board. Footprints are available for adding either an industrial standard or a proprietary Atmel DataFlash serial flash. Note: The footprints share the same SPI lines, including the chip select, and so it is not possible to mount a device on both footprints at the same time. Table 4-1. Compatible Devices for the Footprints.
5. Miscellaneous I/O 5.1 Mechanical Switch The board is equipped with one mechanical switch. The button is shared with LED0, and onboard protection circuitry is added to avoid a short when driving the port high at the same time as pushing the button, which will short it to ground. To be able to use both button and LED, time multiplexing has to be used. To be able to detect a button press, the firmware has to periodically set the I/O pin to input with pull-up and check if it is low.
5.4 Touch The UC3-L0 Xplained kit has one QTouch button and one QMatrix slider implemented onboard. The button and the slider are connected to the built-in CAT module in the AT32UC3L064. The QMatrix slider can be reconfigured to be used as four separate buttons instead of as a slider. Table 5-1. UC3-L0 Xplained Touch Connections.
6. Included Code Example The example application is based on the Atmel AVR Software Framework found online at http://asf.atmel.no. The example can be found in the path “avr32\applications\uc3-l0_xplained” in the ASF. For documentation, help, and examples on the drivers used, please see the website. Note: ASF in Atmel Studio does not require a specific download. Use Atmel Studio Extension Manager (Tools->Extension Manager) or visit Atmel Gallery to update ASF in Atmel Studio. 6.
7. Schematics 1 2 3 4 5 6 7 8 A A U_Dat af a l sh Dat aflash. SchDoc U_M CU M CU. SchDoc U_I O IO . SchDoc Dat af a l sh B LEDS BUTTO N Q TO UCH_BUTTO N Q M ATRI X_SL IDER Dat aflash SPI _SCK SPI _M O SI SPI _M ISO SPI _CS L EDS BUTTO N Q TO UCH_BUTTO N Q M ATRI X_SL IDER JTAG / aWir e JTAG Header J1 Header J2 Header J3 Header J4 B U_Analog Analog . SchDoc SENSO RS HEADER J1 HEADER J2 HEADER J3 HEADER J4 U_Pow er M anagement Pow er M anagement .
1 2 3 4 5 6 7 TWI 0_SDA TWI 0_SCL USART1_RXD USART1_TXD SPI 0_CS2 SPI 0_M O SI SPI 0_M ISO SPI 0_SCK A TM S TDO TDI TCK RESET PWM A 0 A DC0 A DC1/QM ATRIX_X 7 A DC2/A CREF PWM A 1 A DC4 A DC5/QM ATRIX_X 10 PWM A 2 TW I0_SDA PWM A 3/QM ATRIX_X 11 26 36 37 38 39 41 40 25 24 9 22 PWM A7/ BTN0 5 44 23 29 32 31 30 20 21 8 7 16 6 PWM A0 PWM A1 PWM A2 PWM A3/ Q M ATRI X_X11 PWM A4/ Q TO UCH_SNS15 PWM A5/ Q TO UCH_SNSK15 PWM A6 PWM A7 PWM A4/ Q TO UCH_SNS15 USART1_RXD USART1_TXD PWM A5/ Q TO UCH_SNSK1
2 3 Header J1 G ND US B M i n i A B c o n n e c t o r JTAG RESET and aWir e DATA 2 4 6 8 10 J3 USB_AB SHI ELD4 SHI ELD3 SHI ELD2 SHI ELD1 GND ID D+ DVBUS J204 G ND VCC_P3V3 G ND G ND M USB- 05- F- AB- SM - A G ND 1 R G 2 3 SM L-020M LT 2 USB_P USB_I D G ND VCC_P5V0 PO WER_LED 1 R206 1M VCC_P5V0 5 USB_N USB_P 2 Q 200 2N7002 G PIO G PIO G PIO G PIO 4 STATUS_LED 3 R204 220R 1 R205 220R A 2 4 6 8 10 S p a re Di g i t a l S i g n a l s USB_N D205 J202 HEADER 2x J T A G/ a
1 2 3 4 5 6 7 8 A A 3 . 3 V l i n e a r re g u liat ht oirn w p u t ra n g e f ro m - 4 . 4 V - 1 8 V U300 NCP1117L PST33T3G VI N G ND VO UT VO UT_PAD 2 VCC_P3V3 VCC_P3V3 4 C301 10u USB 2. 0 Input volt age specifci at o i n: 4. 4V - 5. 25V, nom n i al 5. 0V 1 G ND G ND + 10u 3 VCC_P5V0 C300 VCC_P5V0 G ND This r egulat or can handle up t o 18V n i put olvt age and maxim um 1. 0A o l ad cur r ent , tiwh a maxim um volt age dr op of 1. 4V. The out put oltvage si 3. 3V ± 2% .
1 2 3 4 5 6 7 8 RGB L E D Q 400 A NTC Tem per at ur e Sensor J400 2 NCP18WF104J03RB R G 3 R403 62R 3 1 2 3 2 2N7002 RED G REEN BL UE R407 100k 1 R404 180R Ex .
1 2 3 4 5 6 7 8 A A Dat af a l sh B R502 100k VCC_P3V3 R500 100k R501 100k VCC_P3V3 DF_M I SO 1 2 3 4 DF_M O SI DF_SCK DF_CS U500 SI SCK RESET CS SO G ND VCC WP AT45DB642D- G ND 1 2 3 4 VCC HO LD SCK SI AT25DF641A- B G ND C500 100n VCC_P3V3 CNU U501 CS SO WP G ND 8 7 6 5 8 7 6 5 VCC_P3V3 SH- T C C D ATM EL Nor way * Vest r e Rost en 79 * N- 7075 TI LLER * D NO RWAY Dat e: 6/ 4/ 2013 Docum ent num ber : TI TLE: 6 5: 16: 54 PM PAG E: Reviso i n: 6 of 7 4 UC
1 2 3 4 5 6 7 8 Decoupling VCC_P3V3 VCC_P3V3 C600 C601 100n G ND A A 100n G ND VCC_UC3B_P1V8 C602 2. 2uF C603 22n VCC_P3V3 C604 2. 7n VCC_UC3B_P1V8 C605 470p G ND R600 100k C606 2. 2uF BO O T_SEL ECT C607 VCC_P3V3 100n J601 HEADER 1x C608 4. 7uF 2 G ND G ND TWI _SCL TWI _SDA C609 100n G ND 1 2 Shor t t hese towt est point s t o e gt n ito boot o l ader mode. G ND VCC_P3V3 VCC_UC3B_P1V8 Cr yst al dat asheet : Load capacit ance CL = 20 pF ESR 80 O hm M ax.
8. Known Issues 8.1 Light Sensor The output range on the light sensor is 0V – 3.3V. The ADC reference must therefore be high enough to match the output range of the light sensor when doing measurements. 8.2 USB Test Points Touching the test points for the USB data lines on the back side of the board while there is ongoing communication might interrupt the device and cause the device to stop responding. The kit must be reconnected to start working properly again.
9. Revision History Revision 4 of the Atmel UC3-L0 Xplained kit is the first revision released. 9.1 Revision 4 Revision 4 of the UC3-L0 Xplained kit can be identified by a bar-code sticker on the back side with the following product ID: A09-1053/4.
10. EVALUATION BOARD/KIT IMPORTANT NOTICE This evaluation board/kit is intended for use for FURTHER ENGINEERING, DEVELOPMENT, DEMONSTRATION, OR EVALUATION PURPOSES ONLY. It is not a finished product, and may not (yet) comply with some or any technical or legal requirements that are applicable to finished products, including, without limitation, directives regarding electromagnetic compatibility, recycling (WEEE), FCC, CE, or UL (except as may be otherwise noted on the board/kit).
11. Document Revision History Doc. Rev. Date Comments 32156C 06/2013 The Chapter “Schematics” is added.
Atmel Corporation Atmel Asia Limited Atmel Munich GmbH Atmel Japan G.K. 1600 Technology Drive Unit 01-5 & 16, 19F Business Campus 16F Shin-Osaki Kangyo Building San Jose, CA 95110 BEA Tower, Millennium City 5 Parkring 4 1-6-4 Osaki, Shinagawa-ku USA 418 Kwun Tong Road D-85748 Garching b. Munich Tokyo 141-0032 Tel: (+1)(408) 441-0311 Kwun Tong, Kowloon GERMANY JAPAN Fax: (+1)(408) 487-2600 HONG KONG Tel: (+49) 89-31970-0 Tel: (+81)(3) 6417-0300 www.atmel.