Features * High Performance, Low Power AVR(R)32 UC 32-Bit Microcontroller * * * * * * * * * * * * - Compact Single-Cycle RISC Instruction Set Including DSP Instruction Set - Read-Modify-Write Instructions and Atomic Bit Manipulation - Performing 1.49DMIPS/MHz * Up to 91DMIPS Running at 66MHz from Flash (1 Wait-State) * Up to 54 DMIPS Running at 36MHz from Flash (0 Wait-State) - Memory Protection Unit Multi-Layer Bus System - High-Performance Data Transfers on Separate Buses for Increased Performance - 8 Peripheral DMA Channels (PDCA) Improves Speed for Peripheral Communication - 4 generic DMA Channels for High Bandwidth Data Paths Internal High-Speed Flash - 256KBytes, 128KBytes, 64KBytes versions - Single-Cycle Flash Access up to 36MHz - Prefetch Buffer Optimizing Instruction Execution at Maximum Speed - 4 ms Page Programming Time and 8ms Full-Chip Erase Time - 100,000 Write Cycles, 15-year Data Retention Capability - Flash Security Locks and User Defined Configuration Area Internal High-Speed SRAM - 64KBytes Single-Cycle Access at Full Speed, Connected to CPU Local Bus - 64KBytes on the Multi-Layer Bus System Interrupt Controller - Autovectored Low Latency Interrupt Service with Programmable Priority System Functions - Power and Clock Manager Including Internal RC Clock and One 32KHz Oscillator - Two Multipurpose Oscillators and Two Phase-Lock-Loop (PLL), - Watchdog Timer, Real-Time Clock Timer External Memories - Support SDRAM, SRAM, NandFlash (1-bit and 4-bit ECC), Compact Flash - Up to 66 MHz External Storage device support - MultiMediaCard (MMC), Secure-Digital (SD), SDIO V1.1 - CE-ATA, FastSD, SmartMedia, Compact Flash - Memory Stick: Standard Format V1.40, PRO Format V1.00, Micro - IDE Interface One Advanced Encryption System (AES) for AT32UC3A3256S, AT32UC3A3128S, AT32UC3A364S, AT32UC3A4256S, AT32UC3A4128S and AT32UC3A364S - 256-, 192-, 128-bit Key Algorithm, Compliant with FIPS PUB 197 Specifications - Buffer Encryption/Decryption Capabilities Universal Serial Bus (USB) - High-Speed USB (480Mbit/s) Device/MiniHost with On-The-Go (OTG) - Flexible End-Point Configuration and Management with Dedicated DMA Channels - On-Chip Transceivers Including Pull-Ups One 8-channel 10-bit Analog-To-Digital Converter, multiplexed with Digital IOs. Two Three-Channel 16-bit Timer/Counter (TC) Four Universal Synchronous/Asynchronous Receiver/Transmitters (USART) - Independent Baudrate Generator, Support for SPI, IrDA and ISO7816 interfaces AVR(R)32 32-Bit Microcontroller AT32UC3A3256S AT32UC3A3256 AT32UC3A3128S AT32UC3A3128 AT32UC3A364S AT32UC3A364 AT32UC3A4256S AT32UC3A4256 AT32UC3A4128S AT32UC3A4128 AT32UC3A464S AT32UC3A464 Preliminary Summary 32072BS-AVR32-09/09 AT32UC3A3/A4 - Support for Hardware Handshaking, RS485 Interfaces and Modem Line * Two Master/Slave Serial Peripheral Interfaces (SPI) with Chip Select Signals * One Synchronous Serial Protocol Controller - Supports I2S and Generic Frame-Based Protocols * Two Master/Slave Two-Wire Interface (TWI), 400kbit/s I2C-compatible * On-Chip Debug System (JTAG interface) - Nexus Class 2+, Runtime Control, Non-Intrusive Data and Program Trace * 110 General Purpose Input/Output (GPIOs) - Standard or High Speed mode - Toggle capability: up to 66MHz * 144-pin TBGA and LQFP * 100-pin VFBGA * Single 3.3V Power Supply 2 32072BS-AVR32-09/09 AT32UC3A3/A4 1. Description The AT32UC3A3/A4 is a complete System-On-Chip microcontroller based on the AVR32 UC RISC processor running at frequencies up to 66MHz. AVR32 UC is a high-performance 32-bit RISC microprocessor core, designed for cost-sensitive embedded applications, with particular emphasis on low power consumption, high code density and high performance. The processor implements a Memory Protection Unit (MPU) and a fast and flexible interrupt controller for supporting modern operating systems and real-time operating systems. Higher computation capabilities are achievable using a rich set of DSP instructions. The AT32UC3A3/A4 incorporates on-chip Flash and SRAM memories for secure and fast access. The Peripheral Direct Memory Access Controller (PDCA) enables data transfers between peripherals and memories without processor involvement. The PDCA drastically reduces processing overhead when transferring continuous and large data streams. The Direct Memory Access controller (DMACA) allows high bandwidth data flows between high speed peripherals (USB, External Memories, MMC, SDIO, ...) and through high speed internal features (AES, internal memories). The Power Manager improves design flexibility and security: the on-chip Brown-Out Detector monitors the power supply, the CPU runs from the on-chip RC oscillator or from one of external oscillator sources, a Real-Time Clock and its associated timer keeps track of the time. The Device includes two sets of three identical 16-bit Timer/Counter (TC) channels. Each channel can be independently programmed to perform frequency measurement, event counting, interval measurement, pulse generation, delay timing and pulse width modulation. 16-bit channels are combined to operate as 32-bit channels. The AT32UC3A3/A4 also features many communication interfaces for communication intensive applications like UART, SPI or TWI. Additionally, a flexible Synchronous Serial Controller (SSC) and an USB are available. The SSC provides easy access to serial communication protocols and audio standards like I2S. The High-Speed (480 MBit/s) USB 2.0 Device interface supports several USB Classes at the same time thanks to the rich Endpoint configuration. The On-The-Go (OTG) Host interface allows device like a USB Flash disk or a USB printer to be directly connected to the processor. AT32UC3A3/A4 integrates a class 2+ Nexus 2.0 On-Chip Debug (OCD) System, with non-intrusive real-time trace, full-speed read/write memory access in addition to basic runtime control. 3 32072BS-AVR32-09/09 AT32UC3A3/A4 2. Blockdiagram Blockdiagram NEXUS CLASS 2+ OCD USB HS INTERFACE ID VBOF INSTR INTERFACE DATA INTERFACE M S M DMA M M S S M DMACA 32KB RAM DMA S S S HRAM S M S S CONFIGURATION PB HS B HSB-PB BRIDGE B REGISTERS BUS HSB PERIPHERAL DMA CONTROLLER HSB-PB BRIDGE A PB NMI_N EXTERNAL INTERRUPT CONTROLLER PDC EXTINT[7..0] KPS[7..0] PDC INTERRUPT CONTROLLER USART1 USART0 USART2 PDC PA PB PC PX MULTIMEDIA CARD & MEMORY STICK INTERFACE USART3 PDC DATA[15..0] DMA CLK CMD[1..0] SERIAL PERIPHERAL INTERFACE 0/1 PDC PBA GENERAL PURPOSE IOs 32KB RAM SYNCHRONOUS SERIAL CONTROLLER WATCHDOG TIMER XOUT1 CLOCK GENERATOR SDA10 SDCK SDCKE SDCS1 SDWE CFCE1 CFCE2 CFRW NANDOE NANDWE RXD TXD CLK RTS, CTS DSR, DTR, DCD, RI RXD TXD CLK RTS, CTS TXD PA PB PC PX SCK MISO, MOSI NPCS0 NPCS[3..1] TX_CLOCK, TX_FRAME_SYNC TX_DATA RX_CLOCK, RX_FRAME_SYNC TWO-WIRE INTERFACE 0/1 ANALOG TO DIGITAL CONVERTER AUDIO BITSTREAM DAC SCL SDA OSC0 OSC1 PLL0 CLOCK CONTROLLER SLEEP CONTROLLER PLL1 RESET_N NCS[5..0] NRD NWAIT NWE0 NWE1 NWE3 RAS CAS RX_DATA PDC XIN1 POWER MANAGER PDC XIN0 XOUT0 32 KHz OSC DATA[15..0] ADDR[23..0] CLK PDC XIN32 XOUT32 512/256/ 128/64 KB FLASH RXD REAL TIME COUNTER 115 kHz RCOSC 64 KB SRAM M HIGH SPEED BUS MATRIX AES FAST GPIO GENERAL PURPOSE IOs VBG VBUS DH+,DL+ DH-,DL- MEMORY PROTECTION UNIT PBB MCKO MDO[5..0] MSEO[1..0] EVTI_N EVTO_N UC CPU LOCAL BUS INTERFACE FLASH CONTROLLER JTAG INTERFACE EXTERNAL BUS INTERFACE (SDRAM, STATIC MEMORY, COMPACT FLASH & NAND FLASH) TCK TDO TDI TMS MEMORY INTERFACE Figure 2-1. GCLK[3..0] A[2..0] B[2..0] CLK[2..0] RESET CONTROLLER AD[7..0] ADVREF DATA[1..0] DATAN[1..0] TIMER/COUNTER 0/1 4 32072BS-AVR32-09/09 AT32UC3A3/A4 2.1 2.1.1 Processor and Architecture AVR32 UC CPU * 32-bit load/store AVR32A RISC architecture - - - - - 15 general-purpose 32-bit registers 32-bit Stack Pointer, Program Counter and Link Register reside in register file Fully orthogonal instruction set Privileged and unprivileged modes enabling efficient and secure Operating Systems Innovative instruction set together with variable instruction length ensuring industry leading code density - DSP extension with saturating arithmetic, and a wide variety of multiply instructions * Three stage pipeline allows one instruction per clock cycle for most instructions - Byte, halfword, word and double word memory access - Multiple interrupt priority levels * MPU allows for operating systems with memory protection 2.1.2 Debug and Test System * IEEE1149.1 compliant JTAG and boundary scan * Direct memory access and programming capabilities through JTAG interface * Extensive On-Chip Debug features in compliance with IEEE-ISTO 5001-2003 (Nexus 2.0) Class 2+ * * * * 2.1.3 - Low-cost NanoTrace supported Auxiliary port for high-speed trace information Hardware support for six Program and two data breakpoints Unlimited number of software breakpoints supported Advanced Program, Data, Ownership and Watchpoint trace supported Peripheral DMA Controller * Transfers from/to peripheral to/from any memory space without intervention of the processor * Next Pointer Support, forbids strong real-time constraints on buffer management * Eight channels and 24 Handshake interfaces - - - - - - 2.1.4 Two for each USART Two for each Serial Synchronous Controller (SSC) Two for each Serial Peripheral Interface (SPI) One for ADC Four for each TWI Interface Two for each Audio Bit Stream DAC Bus System * High Speed Bus (HSB) matrix with 7 Masters and 10 Slaves handled - Handles Requests from * Masters: the CPU (Instruction and Data Fetch), PDCA, CPU SAB, USBB, DMACA * Slaves: the internal Flash, internal SRAM, Peripheral Bus A, Peripheral Bus B, External Bus Interface (EBI), Advanced Encrytion Standard (AES) - Round-Robin Arbitration (three modes supported: no default master, last accessed default master, fixed default master) - Burst breaking with Slot Cycle Limit - One address decoder provided per master * Peripheral Bus A able to run on at divided bus speeds compared to the High Speed Bus 5 32072BS-AVR32-09/09 AT32UC3A3/A4 3. Signals Description The following table gives details on the signal name classified by peripheral Table 3-1. Signal Description List Signal Name Function Type Active Level Comments Power VDDIO I/O Power Supply Power 3.0 to 3.6 V VDDANA Analog Power Supply Power 3.0 to 3.6 V VDDIN Voltage Regulator Input Supply Power 2.7 to 3.6 V ONREG Voltage Regulator ON/OFF Power Control VDDCORE Voltage Regulator Output for Digital Supply Power Output GNDANA Analog Ground Ground GNDIO I/O Ground Ground GNDCORE DIgital Ground Ground GNDPLL PLL Ground Ground 1 2.7 to 3.6 V 1.65 to 1.95V Clocks, Oscillators, and PLL's XIN0, XIN1, XIN32 Crystal 0, 1, 32 Input Analog XOUT0, XOUT1, XOUT32 Crystal 0, 1, 32 Output Analog JTAG TCK Test Clock Input TDI Test Data In Input TDO Test Data Out TMS Test Mode Select Output Input Auxiliary Port - AUX MCKO Trace Data Output Clock Output MDO[5:0] Trace Data Output Output MSEO[1:0] Trace Frame Control Output EVTI_N Event In Output Low EVTO_N Event Out Output Low Power Manager - PM 6 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 3-1. Signal Description List Signal Name Function GCLK[2:0] Generic Clock Pins RESET_N Reset Pin Type Active Level Comments Output Input Low DMA Controller - DMACA (optional) DMAACK[1:0] DMA Acknowledge DMARQ[1:0] DMA Requests Output Input External Interrupt Module - EIM EXTINT[7:0] External Interrupt Pins Input KPS0 - KPS7 Keypad Scan Pins NMI_N Non-Maskable Interrupt Pin Output Input Low General Purpose Input/Output pin - GPIOA, GPIOB, GPIOC, GPIOX PA[31:0] Parallel I/O Controller GPIOA I/O PB[11:0] Parallel I/O Controller GPIOB I/O PC[5:0] Parallel I/O Controller GPIOC I/O PX[59:0] Parallel I/O Controller GPIO X I/O External Bus Interface - EBI ADDR[23:0] Address Bus Output CAS Column Signal Output Low CFCE1 Compact Flash 1 Chip Enable Output Low CFCE2 Compact Flash 2 Chip Enable Output Low CFRNW Compact Flash Read Not Write Output DATA[15:0] Data Bus NANDOE NAND Flash Output Enable Output Low NANDWE NAND Flash Write Enable Output Low NCS[5:0] Chip Select Output Low NRD Read Signal Output Low NWAIT External Wait Signal Input Low NWE0 Write Enable 0 Output Low NWE1 Write Enable 1 Output Low I/O 7 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 3-1. Signal Description List Type Active Level Row Signal Output Low SDA10 SDRAM Address 10 Line Output SDCK SDRAM Clock Output SDCKE SDRAM Clock Enable Output SDCS SDRAM Chip Select Output Low SDWE SDRAM Write Enable Output Low Signal Name Function RAS Comments MultiMedia Card Interface - MCI CLK Multimedia Card Clock Output CMD[1:0] Multimedia Card Command I/O DATA[15:0] Multimedia Card Data I/O Serial Peripheral Interface - SPI0 MISO Master In Slave Out I/O MOSI Master Out Slave In I/O NPCS[3:0] SPI Peripheral Chip Select I/O SCK Clock Low Output Synchronous Serial Controller - SSC RX_CLOCK SSC Receive Clock I/O RX_DATA SSC Receive Data Input RX_FRAME_SYNC SSC Receive Frame Sync I/O TX_CLOCK SSC Transmit Clock I/O TX_DATA SSC Transmit Data Output TX_FRAME_SYNC SSC Transmit Frame Sync I/O Timer/Counter - TC0, TC1 A0 Channel 0 Line A I/O A1 Channel 1 Line A I/O A2 Channel 2 Line A I/O B0 Channel 0 Line B I/O B1 Channel 1 Line B I/O 8 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 3-1. Signal Description List Signal Name Function Type B2 Channel 2 Line B CLK0 Channel 0 External Clock Input Input CLK1 Channel 1 External Clock Input Input CLK2 Channel 2 External Clock Input Input Active Level Comments I/O Two-wire Interface - TWI0, TWI1 SCL Serial Clock I/O SDA Serial Data I/O Universal Synchronous Asynchronous Receiver Transmitter - USART0, USART1, USART2, USART3 CLK Clock I/O CTS Clear To Send DCD Data Carrier Detect Only USART1 DSR Data Set Ready Only USART1 DTR Data Terminal Ready Only USART1 RI Ring Indicator Only USART1 RTS Request To Send RXD Receive Data Input RXDN Inverted Receive Data Input TXD Transmit Data Output TXDN Inverted Transmit Data Output Input Output Low Low Analog to Digital Converter - ADC AD0 - AD7 Analog input pins Analog input Audio Bitstream DAC (ABDAC) DATA0-DATA1 D/A Data out Output DATAN0-DATAN1 D/A Data inverted out Output Universal Serial Bus Device - USB FSDM USB Full Speed Data - Analog FSDP USB Full Speed Data + Analog HSDM USB High Speed Data - Analog 9 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 3-1. Signal Description List Signal Name Function Type HSDP USB High Speed Data + Analog USB_VBIAS USB VBIAS reference Analog USB_VBUS USB VBUS for OTG feature Output Active Level Comments Connect to the ground through a 6810ohms (+/- 0.5%) resistor 10 32072BS-AVR32-09/09 AT32UC3A3/A4 4. Package and Pinout 4.1 Package The device pins are multiplexed with peripheral functions as described in the Peripheral Multiplexing on I/O Line section. Figure 4-1. TBGA144 Pinout (top view) 1 2 3 4 5 6 7 8 9 10 11 12 A B C D E F G H J K L M Table 4-1. BGA144 Package Pinout A1..M8 1 2 3 4 5 6 7 8 9 10 11 12 PX40 PB00 PA28 PA27 PB03 PA29 PC02 PC04 PC05 DPHS DMHS USB_VBUS PX10 PB11 PA31 PB02 VDDIO PB04 PC03 VDDIO DMFS GNDPLL PA09 C PX09 PX35 GNDIO PB01 PX16 PX13 PA30 PB08 DPFS GNDCORE PA08 PA10 D PX08 PX37 PX36 PX47 PX19 PX12 PB10 PA02 PA26 PA11 PB07 PB06 E PX38 VDDIO PX54 PX53 VDDIO PX15 PB09 VDDIN PA25 PA07 VDDCORE PA12 F PX39 PX07 PX06 PX49 PX48 GNDIO GNDIO PA06 PA04 PA05 PA13 PA16 G PX00 PX05 PX59 PX50 PX51 GNDIO GNDIO PA23 PA24 PA03 PA00 PA01 H PX01 VDDIO PX58 PX57 VDDIO PC01 PA17 VDDIO PA21 PA22 VDDANA PB05 J PX04 PX02 PX34 PX56 PX55 PA14 PA15 PA19 PA20 TMS TDO RESET_N K PX03 PX44 GNDIO PX46 PC00 PX17 PX52 PA18 PX27 GNDIO PX29 TCK L PX11 GNDIO PX45 PX20 VDDIO PX18 PX43 ONREG PX26 PX28 GNDANA TDI M PX22 PX41 PX42 PX14 PX21 PX23 PX24 PX25 PX32 PX31 PX30 PX33 A B USB_ VBIAS 11 32072BS-AVR32-09/09 AT32UC3A3/A4 Figure 4-2. LQFP144 Pinout 108 73 109 72 144 37 1 Table 4-2. 36 Package Pinout 1 USB_VBUS 37 PX10 73 PX20 109 PA21 2 VDDIO 38 PX35 74 PX46 110 PA22 3 USB_VBIAS 39 PX47 75 PX50 111 PA23 4 GNDIO 40 PX15 76 PX57 112 PA24 5 DMHS 41 PX48 77 PX51 113 PA20 6 DPHS 42 PX53 78 PX56 114 PA19 7 GNDIO 43 PX49 79 PX55 115 PA18 8 DMFS 44 PX36 80 PX21 116 PA17 9 DPFS 45 PX37 81 VDDIO 117 GNDANA 10 VDDIO 46 PX54 82 GNDIO 118 VDDANA 11 PB08 47 GNDIO 83 PX17 119 PA25 12 PC05 48 VDDIO 84 PX18 120 PA26 13 PC04 49 PX09 85 PX23 121 PB05 14 PA30 50 PX08 86 PX24 122 PA00 15 PA02 51 PX38 87 PX52 123 PA01 16 PB10 52 PX39 88 PX43 124 PA05 17 PB09 53 PX06 89 PX27 125 PA03 18 PC02 54 PX07 90 PX26 126 PA04 19 PC03 55 PX00 91 PX28 127 PA06 20 GNDIO 56 PX59 92 PX25 128 PA16 21 VDDIO 57 PX58 93 PX32 129 PA13 22 PB04 58 PX05 94 PX29 130 VDDIO 23 PA29 59 PX01 95 PX33 131 GNDIO 24 PB03 60 PX04 96 PX30 132 PA12 25 PB02 61 PX34 97 PX31 133 PA07 26 PA27 62 PX02 98 PC00 134 PB06 12 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 4-2. Package Pinout 27 PB01 63 PX03 99 PC01 135 PB07 28 PA28 64 VDDIO 100 PA14 136 PA11 29 PA31 65 GNDIO 101 PA15 137 PA08 30 PB00 66 PX44 102 GNDIO 138 PA10 31 PB11 67 PX11 103 VDDIO 139 PA09 32 PX16 68 PX14 104 TMS 140 GNDCORE 33 PX13 69 PX42 105 TDO 141 VDDCORE 34 PX12 70 PX45 106 RESET_N 142 VDDIN 35 PX19 71 PX41 107 TCK 143 ONREG 36 PX40 72 PX22 108 TDI 144 GNDPLL Figure 4-3. VFBGA100 Pinout (top view) 1 2 3 4 5 6 7 8 9 10 A B C D E F G H J K Table 4-3. VFBGA100 Package Pinout 1 2 3 4 5 6 7 8 9 10 A PA28 PA27 PB04 PA30 PC02 PC03 PC05 HSDP HSDM VBUS B PB00 PB01 PB02 PA29 VDDIO VDDIO PC04 FSDP FSDM GNDUSB C PB11 PA31 GNDIO PB03 PB09 PB08 VBIAS GNDIO PA11 PA10 D PX12 PX10 PX13 PX53/PX16 PB10 PB07 PB06 PA09 ONREG VDDIN E PX47/PA02 GNDIO PX08 PX09 VDDIO GNDIO PA16 PA06/PA13 PA04 VDDCORE F PX59/PX19 VDDIO PX06 PX07 GNDIO VDDIO PA26/PB05 PA08 PA03 GNDCORE G PX05 PX01 PX02 PX00 PX30 PA23/PX46 PA25/PA12 PA18/PA00 PA05 PA17/PA01 H PX04 PX21 GNDIO PX25 PX31 PA22/PX20 TMS GNDANA PA20/PX18 PA19/PA07 J PX03 PX24 PX26 PX29 VDDIO VDDANA PA15/PX45 TDO RESET_N PA24/PX17 K PX23 PX27 PX28 PX32/PX15 PC00/PX14 PC01 PA14/PX11 TDI TCK PA21/PX22 13 32072BS-AVR32-09/09 AT32UC3A3/A4 4.2 Peripheral Multiplexing on I/O lines Each GPIO line can be assigned to one of 4 peripheral functions; A, B, C, or D. The following table define how the I/O lines on the peripherals A, B, C, or D are multiplexed by the GPIO. Table 4-4. TBGA144 G11 G12 GPIO Controller Function Multiplexing QFP144 122 123 VFBGA100 (1) G8 G10 (1) GPIO Pin Function A Function B Function C PA00 GPIO 0 USART0 - RTS TC0 - CLK1 SPI1 - NPCS[3] PA01 GPIO 1 USART0 - CTS TC0 - A1 USART2 - RTS PA02 GPIO 2 USART0 - CLK TC0 - B1 SPI0 - NPCS[0] D8 15 G10 125 F9 PA03 GPIO 3 USART0 - RXD EIC - EXTINT[4] DAC - DATA[0] F9 126 E9 PA04 GPIO 4 USART0 - TXD EIC - EXTINT[5] DAC - DATAN[0] F10 124 G9 PA05 GPIO 5 USART1 - RXD TC1 - CLK0 USB - USB_ID PA06 GPIO 6 USART1 - TXD TC1 - CLK1 USB - USB_VBOF PA07 GPIO 7 SPI0 - NPCS[3] DAC - DATAN[0] USART1 - CLK F8 127 E1 (1) PIN E8 (1) (1) E10 133 H10 C11 137 F8 PA08 GPIO 8 SPI0 - SCK DAC - DATA[0] TC1 - B1 B12 139 D8 PA09 GPIO 9 SPI0 - NPCS[0] EIC - EXTINT[6] TC1 - A1 C12 138 C10 PA10 GPIO 10 SPI0 - MOSI USB USB_VBOF TC1 - B0 D10 136 C9 PA11 GPIO 11 SPI0 - MISO USB - USB_ID TC1 - A2 E12 132 G7(1) PA12 GPIO 12 USART1 - CTS SPI0 - NPCS[2] TC1 - A0 F11 129 E8(1) PA13 GPIO 13 USART1 - RTS SPI0 - NPCS[1] EIC - EXTINT[7] J6 100 K7(1) PA14 GPIO 14 SPI0 - NPCS[1] TWIMS0 TWALM TWIMS1 - TWCK J7 101 (1) PA15 GPIO 15 MCI - CMD[1] SPI1 - SCK TWIMS1 - TWD F12 128 PA16 GPIO 16 MCI - DATA[11] SPI1 - MOSI TC1 - CLK2 PA17 GPIO 17 MCI - DATA[10] SPI1 - NPCS[1] ADC - AD[7] PA18 GPIO 18 MCI - DATA[9] SPI1 - NPCS[2] ADC - AD[6] PA19 GPIO 19 MCI - DATA[8] SPI1 - MISO ADC - AD[5] ADC - AD[4] H7 K8 J8 J9 H9 H10 G8 116 115 114 113 109 110 111 J7 E7 G10 (1) (1) G8 H10 (1) H9(1) K10 H6 (1) PA20 GPIO 20 EIC - EXTINT[8] SSC RX_FRAME_SYN C PA21 GPIO 21 ADC - AD[0] EIC - EXTINT[0] USB - USB_ID (1) PA22 GPIO 22 ADC - AD[1] EIC - EXTINT[1] USB - USB_VBOF (1) PA23 GPIO 23 ADC - AD[2] EIC - EXTINT[2] DAC - DATA[1] (1) PA24 GPIO 24 ADC - AD[3] EIC - EXTINT[3] DAC - DATAN[1] G6 Function D ] G9 112 J10 E9 119 G7(1) PA25 GPIO 25 TWIMS0 - TWD TWIMS1 TWALM USART1 - DCD D9 120 F7(1)) PA26 GPIO 26 TWIMS0 - TWCK USART2 - CTS USART1 - DSR A4 26 A2 PA27 GPIO 27 MCI - CLK SSC - RX_DATA USART3 - RTS MSI - SCLK A3 28 A1 PA28 GPIO 28 MCI - CMD[0] SSC RX_CLOCK USART3 - CTS MSI - BS A6 23 B4 PA29 GPIO 29 MCI - DATA[0] USART3 - TXD TC0 - CLK0 MSI - DATA[0] 14 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 4-4. GPIO Controller Function Multiplexing C7 14 A4 PA30 GPIO 30 MCI - DATA[1] USART3 - CLK DMACA DMAACK[0] MSI - DATA[1] B3 29 C2 PA31 GPIO 31 MCI - DATA[2] USART2 - RXD DMACA DMARQ[0] MSI - DATA[2] A2 30 B1 PB00 GPIO 32 MCI - DATA[3] USART2 - TXD ADC - TRIGGER MSI - DATA[3] C4 27 B2 PB01 GPIO 33 MCI - DATA[4] DAC - DATA[1] EIC - SCAN[0] MSI - INS B4 25 B3 PB02 GPIO 34 MCI - DATA[5] DAC - DATAN[1] EIC - SCAN[1] A5 24 C4 PB03 GPIO 35 MCI - DATA[6] USART2 - CLK EIC - SCAN[2] B6 22 A3 PB04 GPIO 36 MCI - DATA[7] USART3 - RXD EIC - SCAN[3] H12 121 F7(1) PB05 GPIO 37 USB - USB_ID TC0 - A0 EIC - SCAN[4] D12 134 D7 PB06 GPIO 38 USB USB_VBOF TC0 - B0 EIC - SCAN[5] D11 135 D6 PB07 GPIO 39 SPI1 - SCK SSC TX_CLOCK EIC - SCAN[6] C8 11 C6 PB08 GPIO 40 SPI1 - MISO SSC - TX_DATA EIC - SCAN[7] E7 17 C5 PB09 GPIO 41 SPI1 - NPCS[0] SSC - RX_DATA EBI - NCS[4] SPI1 - MOSI SSC RX_FRAME_SYN C EBI - NCS[5] USART1 - RXD SSC TX_FRAME_SYN C PM - GCLK[1] D7 16 D5 PB10 GPIO 42 B2 31 C1 PB11 GPIO 43 K5 98 K5(1) PC00 GPIO 45 H6 99 K6 PC01 GPIO 46 A7 18 A5 PC02 GPIO 47 B7 19 A6 PC03 GPIO 48 A8 13 B7 PC04 GPIO 49 A9 12 A7 PC05 GPIO 50 G1 55 G4 PX00 GPIO 51 EBI - DATA[10] USART0 - RXD USART1 - RI H1 59 G2 PX01 GPIO 52 EBI - DATA[9] USART0 - TXD USART1 - DTR J2 62 G3 PX02 GPIO 53 EBI - DATA[8] USART0 - CTS PM - GCLK[0] K1 63 J1 PX03 GPIO 54 EBI - DATA[7] USART0 - RTS J1 60 H1 PX04 GPIO 55 EBI - DATA[6] USART1 - RXD G2 58 G1 PX05 GPIO 56 EBI - DATA[5] USART1 - TXD F3 53 F3 PX06 GPIO 57 EBI - DATA[4] USART1 - CTS F2 54 F4 PX07 GPIO 58 EBI - DATA[3] USART1 - RTS D1 50 E3 PX08 GPIO 59 EBI - DATA[2] USART3 - RXD C1 49 E4 PX09 GPIO 60 EBI - DATA[1] USART3 - TXD B1 37 D2 PX10 GPIO 61 EBI - DATA[0] USART2 - RXD L1 67 K7(1) PX11 GPIO 62 EBI - NWE1 USART2 - TXD D6 34 D1 PX12 GPIO 63 EBI - NWE0 USART2 - CTS MCI - CLK C6 33 D3 PX13 GPIO 64 EBI - NRD USART2 - RTS MCI - CLK 15 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 4-4. GPIO Controller Function Multiplexing M4 68 K5(1) PX14 GPIO 65 EBI - NCS[1] E6 40 K4(1) PX15 GPIO 66 EBI - ADDR[19] USART3 - RTS TC0 - B0 C5 32 D4(1) PX16 GPIO 67 EBI - ADDR[18] USART3 - CTS TC0 - A1 K6 83 J10(1) PX17 GPIO 68 EBI - ADDR[17] DMACA DMARQ[1] TC0 - B1 L6 84 H9(1) PX18 GPIO 69 EBI - ADDR[16] DMACA DMAACK[1] TC0 - A2 D5 35 F1(1) PX19 GPIO 70 EBI - ADDR[15] EIC - SCAN[0] TC0 - B2 L4 73 H6(1) PX20 GPIO 71 EBI - ADDR[14] EIC - SCAN[1] TC0 - CLK0 M5 80 H2 PX21 GPIO 72 EBI - ADDR[13] EIC - SCAN[2] TC0 - CLK1 M1 72 K10(1) PX22 GPIO 73 EBI - ADDR[12] EIC - SCAN[3] TC0 - CLK2 M6 85 K1 PX23 GPIO 74 EBI - ADDR[11] EIC - SCAN[4] SSC - TX_CLOCK M7 86 J2 PX24 GPIO 75 EBI - ADDR[10] EIC - SCAN[5] SSC - TX_DATA M8 92 H4 PX25 GPIO 76 EBI - ADDR[9] EIC - SCAN[6] SSC - RX_DATA TC0 - A0 L9 90 J3 PX26 GPIO 77 EBI - ADDR[8] EIC - SCAN[7] SSC RX_FRAME_SYN C K9 89 K2 PX27 GPIO 78 EBI - ADDR[7] SPI0 - MISO SSC TX_FRAME_SYNC L10 91 K3 PX28 GPIO 79 EBI - ADDR[6] SPI0 - MOSI SSC - RX_CLOCK K11 94 J4 PX29 GPIO 80 EBI - ADDR[5] SPI0 - SCK M11 96 G5 PX30 GPIO 81 EBI - ADDR[4] SPI0 - NPCS[0] M10 97 H5 PX31 GPIO 82 EBI - ADDR[3] SPI0 - NPCS[1] PX32 GPIO 83 EBI - ADDR[2] SPI0 - NPCS[2] M9 93 M12 95 PX33 GPIO 84 EBI - ADDR[1] SPI0 - NPCS[3] J3 61 PX34 GPIO 85 EBI - ADDR[0] SPI1 - MISO PM - GCLK[0] C2 38 PX35 GPIO 86 EBI - DATA[15] SPI1 - MOSI PM - GCLK[1] D3 44 PX36 GPIO 87 EBI - DATA[14] SPI1 - SCK PM - GCLK[2] D2 45 PX37 GPIO 88 EBI - DATA[13] SPI1 - NPCS[0] PM - GCLK[3] E1 51 PX38 GPIO 89 EBI - DATA[12] SPI1 - NPCS[1] USART1 - DCD F1 52 PX39 GPIO 90 EBI - DATA[11] SPI1 - NPCS[2] USART1 - DSR A1 36 PX40 GPIO 91 EBI - SDCS MCI - CLK M2 71 PX41 GPIO 92 EBI - CAS M3 69 PX42 GPIO 93 EBI - RAS L7 88 PX43 GPIO 94 EBI - SDA10 USART1 - RI K2 66 USART1 - DTR L3 K4 70 74 K4 (1) J7 PX44 GPIO 95 EBI - SDWE (1) PX45 GPIO 96 EBI - SDCK (1) PX46 GPIO 97 EBI - SDCKE (1) PX47 GPIO 98 EBI - NANDOE ADC - TRIGGER MCI - DATA[11] G6 D4 39 E1 F5 41 PX48 GPIO 99 EBI - ADDR[23] USB USB_VBOF MCI - DATA[10] F4 43 PX49 GPIO 100 EBI - CFRNW USB - USB_ID MCI - DATA[9] 16 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 4-4. GPIO Controller Function Multiplexing G4 75 PX50 GPIO 101 EBI - CFCE2 TC1 - B2 MCI - DATA[8] G5 77 PX51 GPIO 102 EBI - CFCE1 DMACA DMAACK[0] MCI - DATA[15] K7 87 PX52 GPIO 103 EBI - NCS[3] DMACA DMARQ[0] MCI - DATA[14] E4 42 PX53 GPIO 104 EBI - NCS[2] E3 46 PX54 GPIO 105 EBI - NWAIT USART3 - TXD MCI - DATA[12] J5 79 PX55 GPIO 106 EBI - ADDR[22] EIC - SCAN[3] USART2 - RXD J4 78 PX56 GPIO 107 EBI - ADDR[21] EIC - SCAN[2] USART2 - TXD H4 76 PX57 GPIO 108 EBI - ADDR[20] EIC - SCAN[1] USART3 - RXD H3 57 PX58 GPIO 109 EBI - NCS[0] EIC - SCAN[0] USART3 - TXD G3 56 PX59 GPIO 110 EBI - NANDWE D4(1) F1(1) Note: 4.2.1 MCI - CMD[1] 1. Those balls are physically connected to 2 GPIOs. Software must managed carrefully the GPIO configuration to avoid electrical conflict Oscillator Pinout Table 4-5. Oscillator Pinout TBGA144 QFP144 VFBGA100 Pad Oscillator pin A7 18 A5 PC02 xin0 A8 13 B7 PC04 xin1 PC00 xin32 (1) K5 98 B7 19 A6 PC03 xout0 A9 12 A7 PC05 xout1 H6 99 K6 PC01 xout32 Note: 4.3 MCI - DATA[13] K5 1. This ball is physically connected to 2 GPIOs. Software must managed carrefully the GPIO configuration to avoid electrical conflict Signal Descriptions The following table gives details on signal name classified by peripheral. Table 4-6. Signal Description List Signal Name Function Type Active Level Comments Power VDDIO I/O Power Supply Power 3.0 to 3.6V VDDANA Analog Power Supply Power 3.0 to 3.6V VDDIN Voltage Regulator Input Supply Power 2.7 to 3.6V 17 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 4-6. Signal Description List Signal Name Function Type ONREG Voltage Regulator ON/OFF Power Control VDDCORE Voltage Regulator Output for Digital Supply Power Output GNDANA Analog Ground Ground GNDIO I/O Ground Ground GNDCORE DIgital Ground Ground GNDPLL PLL Ground Ground Active Level Comments 1 2.7 to 3.6 V 1.65 to 1.95 V Clocks, Oscillators, and PLL's XIN0, XIN1, XIN32 Crystal 0, 1, 32 Input Analog XOUT0, XOUT1, XOUT32 Crystal 0, 1, 32 Output Analog JTAG TCK Test Clock Input TDI Test Data In Input TDO Test Data Out TMS Test Mode Select Output Input Auxiliary Port - AUX MCKO Trace Data Output Clock Output MDO[5:0] Trace Data Output Output MSEO[1:0] Trace Frame Control Output EVTI_N Event In Output Low EVTO_N Event Out Output Low Power Manager - PM GCLK[2:0] Generic Clock Pins RESET_N Reset Pin Output Input Low DMA Controller - DMACA (optional) DMAACK[1:0] DMA Acknowledge DMARQ[1:0] DMA Requests Output Input External Interrupt Module - EIM 18 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 4-6. Signal Description List Signal Name Function Type EXTINT[7:0] External Interrupt Pins Input KPS0 - KPS7 Keypad Scan Pins NMI_N Non-Maskable Interrupt Pin Active Level Comments Output Input Low General Purpose Input/Output pin - GPIOA, GPIOB, GPIOC, GPIOX PA[31:0] Parallel I/O Controller GPIO port A I/O PB[11:0] Parallel I/O Controller GPIO port B I/O PC[5:0] Parallel I/O Controller GPIO port C I/O PX[59:0] Parallel I/O Controller GPIO port X I/O External Bus Interface - EBI ADDR[23:0] Address Bus Output CAS Column Signal Output Low CFCE1 Compact Flash 1 Chip Enable Output Low CFCE2 Compact Flash 2 Chip Enable Output Low CFRNW Compact Flash Read Not Write Output DATA[15:0] Data Bus NANDOE NAND Flash Output Enable Output Low NANDWE NAND Flash Write Enable Output Low NCS[5:0] Chip Select Output Low NRD Read Signal Output Low NWAIT External Wait Signal Input Low NWE0 Write Enable 0 Output Low NWE1 Write Enable 1 Output Low RAS Row Signal Output Low SDA10 SDRAM Address 10 Line Output SDCK SDRAM Clock Output SDCKE SDRAM Clock Enable Output SDCS SDRAM Chip Select Output Low SDWE SDRAM Write Enable Output Low I/O 19 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 4-6. Signal Description List Signal Name Function Type Active Level Comments MultiMedia Card Interface - MCI CLK Multimedia Card Clock Output CMD[1:0] Multimedia Card Command I/O DATA[15:0] Multimedia Card Data I/O Serial Peripheral Interface - SPI0 MISO Master In Slave Out I/O MOSI Master Out Slave In I/O NPCS[3:0] SPI Peripheral Chip Select I/O SCK Clock Low Output Synchronous Serial Controller - SSC RX_CLOCK SSC Receive Clock I/O RX_DATA SSC Receive Data Input RX_FRAME_SYNC SSC Receive Frame Sync I/O TX_CLOCK SSC Transmit Clock I/O TX_DATA SSC Transmit Data Output TX_FRAME_SYNC SSC Transmit Frame Sync I/O Timer/Counter - TC0, TC1 A0 Channel 0 Line A I/O A1 Channel 1 Line A I/O A2 Channel 2 Line A I/O B0 Channel 0 Line B I/O B1 Channel 1 Line B I/O B2 Channel 2 Line B I/O CLK0 Channel 0 External Clock Input Input CLK1 Channel 1 External Clock Input Input CLK2 Channel 2 External Clock Input Input Two-wire Interface - TWI0, TWI1 SCL Serial Clock I/O 20 32072BS-AVR32-09/09 AT32UC3A3/A4 Table 4-6. Signal Description List Signal Name Function SDA Serial Data Type Active Level Comments I/O Universal Synchronous Asynchronous Receiver Transmitter - USART0, USART1, USART2, USART3 CLK Clock I/O CTS Clear To Send DCD Data Carrier Detect Only USART1 DSR Data Set Ready Only USART1 DTR Data Terminal Ready Only USART1 RI Ring Indicator Only USART1 RTS Request To Send RXD Receive Data Input RXDN Inverted Receive Data Input TXD Transmit Data Output TXDN Inverted Transmit Data Output Input Output Low Low Analog to Digital Converter - ADC AD0 - AD7 Analog input Analog input pins Audio Bitstream DAC (ABDAC) DATA0-DATA1 D/A Data out Output DATAN0-DATAN1 D/A Data inverted out Output Universal Serial Bus Device - USB FSDM USB Full Speed Data - Analog FSDP USB Full Speed Data + Analog HSDM USB High Speed Data - Analog HSDP USB High Speed Data + Analog USB_VBIAS USB VBIAS reference Analog USB_VBUS USB VBUS for OTG feature Output 4.3.1 Connect to the ground through a 6810 ohms (+/- 0.5%) resistor JTAG Pins TMS and TDI pins have pull-up resistors. TDO pin is an output, driven at up to VDDIO, and has no pull-up resistor. 21 32072BS-AVR32-09/09 AT32UC3A3/A4 4.3.2 RESET_N Pin The RESET_N pin is a schmitt input and integrates a permanent pull-up resistor to VDDIO. As the product integrates a power-on reset cell, the RESET_N pin can be left unconnected in case no reset from the system needs to be applied to the product. 4.3.3 TWI Pins When these pins are used for TWI, the pins are open-drain outputs with slew-rate limitation and inputs with inputs with spike filtering. When used as GPIO pins or used for other peripherals, the pins have the same characteristics as other GPIO pins. 4.3.4 GPIO Pins All the I/O lines integrate a programmable pull-up resistor. Programming of this pull-up resistor is performed independently for each I/O line through the I/O Controller. After reset, I/O lines default as inputs with pull-up resistors disabled, except when indicated otherwise in the column "Reset State" of the I/O Controller multiplexing tables. 22 32072BS-AVR32-09/09 AT32UC3A3/A4 4.4 4.4.1 Power Considerations Power Supplies The AT32UC3A3 has several types of power supply pins: * * * * VDDIO: Powers I/O lines. Voltage is 3.3V nominal VDDANA: Powers the ADC Voltage and provides the ADVREF voltage is 3.3V nominal VDDIN: Input voltage for the voltage regulator. Voltage is 3.3V nominal VDDCORE: Output voltage from regulator for filtering purpose and provides the supply to the core, memories, and peripherals. Voltage is 1.8V nominal The ground pins GNDCORE are common to VDDCORE and VDDIN. The ground pin for VDDANA is GNDANA. The ground pin for VDDIO is GNDIO. Refer to Electrical Characteristics chapter for power consumption on the various supply pins. 4.4.2 Voltage Regulator The AT32UC3A3 embeds a voltage regulator that converts from 3.3V to 1.8V with a load of up to 100 mA. The regulator takes its input voltage from VDDIN, and supplies the output voltage on VDDCORE and powers the core, memories and peripherals. Adequate output supply decoupling is mandatory for VDDCORE to reduce ripple and avoid oscillations. The best way to achieve this is to use two capacitors in parallel between VDDCORE and GNDCORE: * One external 470pF (or 1nF) NPO capacitor (COUT1) should be connected as close to the chip as possible. * One external 2.2F (or 3.3F) X7R capacitor (COUT2). Adequate input supply decoupling is mandatory for VDDIN in order to improve startup stability and reduce source voltage drop. The input decoupling capacitor should be placed close to the chip, e.g., two capacitors can be used in parallel (100nF NPO and 4.7F X7R). 3.3V VDDIN CIN2 CIN1 ONREG 1.8V 1.8V Regulator VDDCORE COUT2 COUT1 ONREG input must be tied to VDDIN. 23 32072BS-AVR32-09/09 AT32UC3A3/A4 5. Power Considerations 5.1 Power Supplies The AT32UC3A3/A4 has several types of power supply pins: * * * * VDDIO: Powers I/O lines. Voltage is 3.3V nominal VDDANA: Powers the ADC Voltage and provides the ADVREF voltage is 3.3V nominal VDDIN: Input voltage for the voltage regulator. Voltage is 3.3V nominal VDDCORE: Output voltage from regulator for filtering purpose and provides the supply to the core, memories, and peripherals. Voltage is 1.8V nominal The ground pins GNDCORE are common to VDDCORE and VDDIN. The ground pin for VDDANA is GNDANA. The ground pin for VDDIO is GNDIO Refer to Electrical Characteristics chapter for power consumption on the various supply pins. 5.2 Voltage Regulator The AT32UC3A3 embeds a voltage regulator that converts from 3.3V to 1.8V with a load of up to 100 mA. The regulator takes its input voltage from VDDIN, and supplies the output voltage on VDDCORE and powers the core, memories and peripherals. Adequate output supply decoupling is mandatory for VDDCORE to reduce ripple and avoid oscillations. The best way to achieve this is to use two capacitors in parallel between VDDCORE and GNDCORE: * One external 470pF (or 1nF) NPO capacitor (COUT1) should be connected as close to the chip as possible. * One external 2.2F (or 3.3F) X7R capacitor (COUT2). Adequate input supply decoupling is mandatory for VDDIN in order to improve startup stability and reduce source voltage drop. The input decoupling capacitor should be placed close to the chip, e.g., two capacitors can be used in parallel (100nF NPO and 4.7F X7R). 3.3V VDDIN CIN2 CIN1 ONREG 1.8 V 1.8V Regulator VDDCORE COUT2 COUT1 ONREG input must be tied to VDDIN. 24 32072BS-AVR32-09/09 AT32UC3A3/A4 6. I/O Line Considerations 6.1 JTAG Pins TMS and TDI pins have pull-up resistors. TDO pin is an output, driven at up to VDDIO, and has no pull-up resistor. 6.2 RESET_N Pin The RESET_N pin is a schmitt input and integrates a permanent pull-up resistor to VDDIO. As the product integrates a power-on reset cell, the RESET_N pin can be left unconnected in case no reset from the system needs to be applied to the product. 6.3 TWI Pins When these pins are used for TWI, the pins are open-drain outputs with slew-rate limitation and inputs with inputs with spike filtering. When used as GPIO pins or used for other peripherals, the pins have the same characteristics as other GPIO pins. 6.4 GPIO Pins All the I/O lines integrate a programmable pull-up resistor. Programming of this pull-up resistor is performed independently for each I/O line through the I/O Controller. After reset, I/O lines default as inputs with pull-up resistors disabled, except when indicated otherwise in the column "Reset State" of the I/O Controller multiplexing tables. 25 32072BS-AVR32-09/09 AT32UC3A3/A4 7. Memories 7.1 Embedded Memories * Internal High-Speed Flash - 256KBytes (AT32UC3A3256/S) - 128Kbytes (AT32UC3A3128/S) - 64Kbytes (AT32UC3A364/S) * 0 wait state access at up to 36MHz in worst case conditions * 1 wait state access at up to 66MHz in