AT32UC3A364-ALUT Atmel, AT32UC3A364-ALUT Datasheet

IC MCU 64KB FLASH 144LQFP

AT32UC3A364-ALUT

Manufacturer Part Number
AT32UC3A364-ALUT
Description
IC MCU 64KB FLASH 144LQFP
Manufacturer
Atmel
Series
AVR®32 UC3r
Datasheets

Specifications of AT32UC3A364-ALUT

Core Processor
AVR
Core Size
32-Bit
Speed
66MHz
Connectivity
EBI/EMI, I²C, IrDA, MMC, SPI, SSC, UART/USART, USB OTG
Peripherals
Brown-out Detect/Reset, DMA, POR, WDT
Number Of I /o
110
Program Memory Size
64KB (64K x 8)
Program Memory Type
FLASH
Ram Size
128K x 8
Voltage - Supply (vcc/vdd)
1.65 V ~ 1.95 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
144-LQFP
Processor Series
AT32UC3x
Core
AVR32
Data Bus Width
32 bit
Data Ram Size
96 KB
Interface Type
IrDA/SCI/SCIF/UDI
Maximum Clock Frequency
66 MHz
Number Of Timers
3
Operating Supply Voltage
3 V to 3.6 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
EWAVR32, EWAVR32-BL, KSK-EVK1100-PL
Development Tools By Supplier
ATAVRDRAGON, ATSTK500, ATSTK600, ATAVRISP2, ATAVRONEKIT, ATEXTWIFI, ATEVK1104
Minimum Operating Temperature
- 40 C
Controller Family/series
AT32UC3A
No. Of I/o's
110
Ram Memory Size
64KB
Cpu Speed
66MHz
No. Of Timers
2
Rohs Compliant
Yes
For Use With
ATEVK1104 - KIT DEV/EVAL FOR AVR32 AT32UC3AATAVRONEKIT - KIT AVR/AVR32 DEBUGGER/PROGRMMRATEVK1100 - KIT DEV/EVAL FOR AVR32 AT32UC3A
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT32UC3A364-ALUT
Manufacturer:
Atmel
Quantity:
10 000
Features
High Performance, Low Power 32-bit AVR
Multi-Layer Bus System
Internal High-Speed Flash
Internal High-Speed SRAM
Interrupt Controller
System Functions
External Memories
External Storage device support
One Advanced Encryption System (AES) for AT32UC3A3256S, AT32UC3A3128S,
AT32UC3A364S, AT32UC3A4256S, AT32UC3A4128S and AT32UC3A364S
Universal Serial Bus (USB)
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)
– Compact Single-Cycle RISC Instruction Set Including DSP Instruction Set
– Read-Modify-Write Instructions and Atomic Bit Manipulation
– Performing up to 1.51DMIPS/MHz
– Memory Protection Unit
– High-Performance Data Transfers on Separate Buses for Increased Performance
– 8 Peripheral DMA Channels (PDCA) Improves Speed for Peripheral
– 4 generic DMA Channels for High Bandwidth Data Paths
– 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
– 64KBytes Single-Cycle Access at Full Speed, Connected to CPU Local Bus
– 64KBytes (2x32KBytes with independent access) on the Multi-Layer Bus System
– Autovectored Low Latency Interrupt Service with Programmable Priority
– 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
– Support SDRAM, SRAM, NandFlash (1-bit and 4-bit ECC), Compact Flash
– Up to 66 MHz
– MultiMediaCard (MMC V4.3), Secure-Digital (SD V2.0), SDIO V1.1
– CE-ATA V1.1, FastSD, SmartMedia, Compact Flash
– Memory Stick: Standard Format V1.40, PRO Format V1.00, Micro
– IDE Interface
– 256-, 192-, 128-bit Key Algorithm, Compliant with FIPS PUB 197 Specifications
– Buffer Encryption/Decryption Capabilities
– 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
– Fractionnal Baudrate Generator
Communication
• Up to 92DMIPS Running at 66MHz from Flash (1 Wait-State)
• Up to 54 DMIPS Running at 36MHz from Flash (0 Wait-State)
®
Microcontroller
32-bit AVR
Microcontroller
AT32UC3A3256S
AT32UC3A3256
AT32UC3A3128S
AT32UC3A3128
AT32UC3A364S
AT32UC3A364
AT32UC3A4256S
AT32UC3A4256
AT32UC3A4128S
AT32UC3A4128
AT32UC3A464S
AT32UC3A464
Preliminary
32072C–03/2010
®

Related parts for AT32UC3A364-ALUT

AT32UC3A364-ALUT Summary of contents

Page 1

... 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 • ...

Page 2

Support for SPI and LIN – Optionnal support for IrDA, ISO7816, 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 ...

Page 3

Description The AT32UC3A3/ complete System-On-Chip microcontroller based on the AVR32 UC RISC processor running at frequencies up to 66MHz. AVR32 high-performance 32-bit RISC microprocessor core, designed for cost-sensitive embedded applications, with particular emphasis on ...

Page 4

Overview 2.1 Block Diagram Figure 2-1. TCK TDO INTERFACE TDI TMS MCKO MDO[5..0] MSEO[1..0] EVTI_N EVTO_N USB_VBIAS USB_VBUS DMFS, DMHS DPFS, DPHS INTERFACE ID VBOF 32KB RAM 32KB RAM DMACA AES CLK CMD[1..0] DATA[15.. EXTINT[7..0] ...

Page 5

... Configuration Summary The table below lists all AT32UC3A3 memory and package configurations: Table 2-1. Device AT32UC3A3256S AT32UC3A3256 AT32UC3A3128S AT32UC3A3128 AT32UC3A364S AT32UC3A364 AT32UC3A4256S AT32UC3A4256 AT32UC3A4128S AT32UC3A4128 AT32UC3A464S AT32UC3A464 32072C–AVR32–2010/03 Memory and Package Configurations Flash SRAM 256KB 128KB 256KB 128KB ...

Page 6

Package and Pinout 3.1 Package The device pins are multiplexed with peripheral functions as described in the Peripheral Multi- plexing on I/O Line section. Figure 3-1. TFBGA144 Pinout (top view) Table 3-1. TFBGA144 Package Pinout ...

Page 7

Figure 3-2. LQFP144 Pinout Table 3-2. LQFP144 Package Pinout 1 USB_VBUS 25 PB02 2 VDDIO 26 PA27 3 USB_VBIAS 27 PB01 4 GNDIO 28 PA28 5 DMHS 29 PA31 6 DPHS 30 PB00 7 GNDIO 31 PB11 8 DMFS 32 ...

Page 8

Figure 3-3. VFBGA100 Pinout (top view) Table 3-3. VFBGA100 Package Pinout PA28 PA27 PB04 B PB00 PB01 PB02 C PB11 PA31 GNDIO D PX12 PX10 PX13 E (1) GNDIO PX08 PA02/PX47 F (1) VDDIO PX06 PX19/PX59 ...

Page 9

Peripheral Multiplexing on I/O lines Each GPIO line can be assigned to one of 4 peripheral functions The following table defines how the I/O lines on the peripherals are ...

Page 10

Table 3-4. GPIO Controller Function Multiplexing PB02 PB03 PB04 (1) H12 121 F7 PB05 D12 134 D7 PB06 D11 135 D6 PB07 PB08 PB09 D7 ...

Page 11

Table 3-4. GPIO Controller Function Multiplexing PX23 PX24 PX25 PX26 PX27 L10 91 K3 PX28 K11 94 J4 PX29 M11 96 G5 PX30 M10 97 ...

Page 12

Oscillator Pinout Table 3-5. Oscillator Pinout TFBGA144 QFP144 Note: 3.2.2 JTAG port connections Table 3-6. JTAG Pinout TFBGA144 QFP144 K12 L12 J11 J10 3.2.3 Nexus OCD AUX port connections If the OCD trace ...

Page 13

Signal Descriptions The following table gives details on signal name classified by peripheral. Table 3-8. Signal Description List Signal Name Function VDDIO I/O Power Supply VDDANA Analog Power Supply VDDIN Voltage Regulator Input Supply VDDCORE Voltage Regulator Output for ...

Page 14

Table 3-8. Signal Description List Signal Name Function RESET_N Reset Pin DMAACK[1:0] DMA Acknowledge DMARQ[1:0] DMA Requests EXTINT[7:0] External Interrupt Pins SCAN[7:0] Keypad Scan Pins NMI Non-Maskable Interrupt Pin General Purpose Input/Output pin - GPIOA, GPIOB, GPIOC, GPIOX PA[31:0] Parallel ...

Page 15

Table 3-8. Signal Description List Signal Name Function SDA10 SDRAM Address 10 Line SDCK SDRAM Clock SDCKE SDRAM Clock Enable SDWE SDRAM Write Enable CLK Multimedia Card Clock CMD[1:0] Multimedia Card Command DATA[15:0] Multimedia Card Data SCLK Memory Stick Clock ...

Page 16

Table 3-8. Signal Description List Signal Name Function B0 Channel 0 Line B B1 Channel 1 Line B B2 Channel 2 Line B CLK0 Channel 0 External Clock Input CLK1 Channel 1 External Clock Input CLK2 Channel 2 External Clock ...

Page 17

Table 3-8. Signal Description List Signal Name Function DMHS USB High Speed Data - DPHS USB High Speed Data + USB_VBIAS USB VBIAS reference USB_VBUS USB VBUS for OTG feature VBOF USB VBUS on/off bus power control port ID ID ...

Page 18

I/O Line Considerations 3.4.1 JTAG Pins TMS and TDI pins have pull-up resistors. TDO pin is an output, driven VDDIO, and has no pull-up resistor. 3.4.2 RESET_N Pin The RESET_N pin is a schmitt input and ...

Page 19

Power Considerations 3.5.1 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 is 3.3V nominal • VDDIN: Input voltage for the voltage ...

Page 20

Processor and Architecture Rev: 1.4.2.0 This chapter gives an overview of the AVR32UC CPU. AVR32UC is an implementation of the AVR32 architecture. A summary of the programming model, instruction set, and MPU is pre- sented. For further details, see ...

Page 21

The register file is organized as sixteen 32-bit registers and includes the Program Counter, the Link Register, and the Stack Pointer. In addition, register R12 is designed to hold return values from function calls and is used implicitly by some ...

Page 22

Figure 4-1. 4.3.1 Pipeline Overview AVR32UC has three pipeline stages, Instruction Fetch (IF), Instruction Decode (ID), and Instruc- tion Execute (EX). The EX stage is split into three parallel subsections, one arithmetic/logic (ALU) section, one multiply (MUL) section, and one ...

Page 23

Figure 4-2. 4.3.2 AVR32A Microarchitecture Compliance AVR32UC implements an AVR32A microarchitecture. The AVR32A microarchitecture is tar- geted at cost-sensitive, lower-end applications like smaller microcontrollers. This microarchitecture does not provide dedicated hardware registers for shadowing of register file registers in interrupt ...

Page 24

The following table shows the instructions with support for unaligned addresses. All other instructions require aligned addresses. Table 4-1. Instruction ld.d st.d 4.3.6 Unimplemented Instructions The following instructions are unimplemented in AVR32UC, and will cause an Unimplemented Instruction Exception if ...

Page 25

Programming Model 4.4.1 Register File Configuration The AVR32UC register file is shown below. Figure 4-3. Application Bit 31 Bit SP_APP R12 R11 R10 R9 R8 INT0PC R7 INT1PC R6 FINTPC R5 SMPC ...

Page 26

Figure 4-5. Bit 4.4.3 Processor States 4.4.3.1 Normal RISC State The AVR32 processor supports several different execution contexts as shown in page 26. Table 4-2. Priority N/A N/A Mode ...

Page 27

All interrupt levels are by default disabled when debug state is entered, but they can individually be switched on by the monitor routine by clearing the respective mask bit in the status register. Debug state can be entered as described ...

Page 28

Table 4-3. Reg # 33- ...

Page 29

Table 4-3. Reg # 100 101 102 103-191 192-255 4.5 Exceptions and Interrupts AVR32UC incorporates a powerful exception handling scheme. The different exception sources, like Illegal Op-code and external interrupt requests, have ...

Page 30

The user must also make sure that the system stack is large enough so that any event is able to push the required registers to stack. If the system stack is full, and an event occurs, the system will enter ...

Page 31

Upon entry into Debug mode, hardware sets the SR[D] bit and jumps to the Debug Exception handler. By default, Debug mode executes in the exception context, but with dedicated Return Address Register and Return Status Register. These dedicated ...

Page 32

Table 4-4. Priority and Handler Addresses for Events Priority Handler Address 1 0x8000_0000 2 Provided by OCD system 3 EVBA+0x00 4 EVBA+0x04 5 EVBA+0x08 6 EVBA+0x0C 7 EVBA+0x10 8 Autovectored 9 Autovectored 10 Autovectored 11 Autovectored 12 EVBA+0x14 13 EVBA+0x50 ...

Page 33

Module Configuration All AT32UC3A3 parts implement the CPU and Architecture Revision 2. 32072C–AVR32–2010/03 AT32UC3A3/A4 33 ...

Page 34

... Embedded Memories • Internal High-Speed Flash – 256KBytes (AT32UC3A3256/S) – 128Kbytes (AT32UC3A3128/S) – 64Kbytes (AT32UC3A364/S) • Internal High-Speed SRAM – 64KBytes, Single-cycle access at full speed on CPU Local Bus and accessible through the High Speed Bud (HSB) matrix – 2x32KBytes, accessible independently through the High Speed Bud (HSB) matrix 5 ...

Page 35

... Bus Monitor module - BUSMON MCI Mulitmedia Card Interface - MCI MSI Memory Stick Interface - MSI PDCA Peripheral DMA Controller - PDCA INTC Interrupt controller - INTC AT32UC3A3/A4 Size Size AT32UC3A3128S AT32UC3A364S AT32UC3A3128 AT32UC3A364 AT32UC3A4128S AT32UC3A464S AT32UC3A4128 AT32UC3A464 32KByte 32KByte 32KByte 32KByte 64KByte 64KByte 64KByte 64KByte 35 ...

Page 36

Table 5-2. Peripheral Address Mapping 0xFFFF0C00 0xFFFF0D00 0xFFFF0D30 0xFFFF0D80 0xFFFF1000 0xFFFF1400 0xFFFF1800 0xFFFF1C00 0xFFFF2000 0xFFFF2400 0xFFFF2800 0xFFFF2C00 0xFFFF3000 0xFFFF3400 0xFFFF3800 0xFFFF3C00 0xFFFF4000 0xFFFF4400 32072C–AVR32–2010/03 PM Power Manager - PM RTC Real Time Counter - RTC WDT Watchdog Timer - WDT ...

Page 37

Table 5-2. Peripheral Address Mapping 0xFFFF5000 0xFFFF5400 5.4 CPU Local Bus Mapping Some of the registers in the GPIO module are mapped onto the CPU local bus, in addition to being mapped on the Peripheral Bus. These registers can therefore ...

Page 38

Table 5-3. Port 2 3 32072C–AVR32–2010/03 Local Bus Mapped GPIO Registers Register Output Driver Enable Register (ODER) Output Value Register (OVR) Pin Value Register (PVR) Output Driver Enable Register (ODER) Output Value Register (OVR) Pin Value Register (PVR) AT32UC3A3/A4 Local ...

Page 39

Boot Sequence This chapter summarizes the boot sequence of the AT32UC3A3/A4. The behavior after power controlled by the Power Manager. For specific details, refer to (PM)” on page 6.1 Starting of Clocks After power-up, the device will ...

Page 40

Power Manager (PM) Rev: 2.3.1.0 7.1 Features • Controls integrated oscillators and PLLs • Generates clocks and resets for digital logic • Supports 2 crystal oscillators 0.4-20MHz • Supports 2 PLLs 40-240MHz • Supports 32KHz ultra-low power oscillator • ...

Page 41

Block Diagram Figure 7-1. Voltage Regulator Calibration fuses Registers Brown-Out Detector Power-On Detector External Reset Pad 32072C–AVR32–2010/03 Power Manager Block Diagram RCSYS Oscillator 0 PLL0 PLL1 Oscillator 1 O SC/PLL Control signals Oscillator and PLL Control Sleep Controller Interrupts ...

Page 42

Product Dependencies 7.4.1 I/O Lines The PM provides a number of generic clock outputs, which can be connected to output pins, multiplexed with I/O lines. The programmer must first program the I/O controller to assign these pins to their ...

Page 43

Figure 7-2. 7.5.3 32 KHz Oscillator Operation The 32 KHz oscillator operates as described for Oscillator 0 and 1 above. The 32 KHz oscillator is used as source clock for the Real-Time Counter. The oscillator is disabled by default, but ...

Page 44

Figure 7-3. Osc0 clock 0 1 Osc1 clock PLLOSC 7.5.4.1 Enabling the PLL PLLn is enabled by writing the PLLEN bit in the PLLn register. PLLOSC selects Oscillator clock source. The PLLMUL and PLLDIV bitfields must ...

Page 45

The PLLn:PLLOPT field should be set to proper values according to the PLL operating fre- quency. The PLLOPT field can also be set to divide the output frequency of the PLLs by 2. The lock signal for each PLL is ...

Page 46

Selecting synchronous clock division ratio The main clock feeds an 8-bit prescaler, which can be used to generate the synchronous clocks. By default, the synchronous clocks run on the undivided main clock. The user can select a pres- caler ...

Page 47

However, when setting mask bits, the registers in the corresponding module must not be written until the clock has actually be re-enabled. The status flag MSKRDY in ISR pro- vides the required mask status information. When writing either ...

Page 48

Table 7-1. Sleep Modes Index Sleep Mode CPU 0 Idle Stop 1 Frozen Stop 2 Standby Stop 3 Stop Stop 4 DeepStop Stop 5 Static Stop The power level of the internal voltage regulator is also adjusted according to the ...

Page 49

Figure 7-5. Osc0 clock Osc1 clock PLL0 clock PLL1 clock 7.5.8.1 Enabling a generic clock A generic clock is enabled by writing the CEN bit in GCCTRL to 1. Each generic clock can use either Oscillator ...

Page 50

Generic clock implementation The generic clocks are allocated to different functions as shown in Table 7-2. Clock number 7.5.9 Divided PB Clocks The clock generator in the Power Manager provides divided PBA and ...

Page 51

Figure 7- r addition to the listed reset ...

Page 52

Table 7-4 on page 52 Table 7-4. Effect of the Different Reset Events CPU/HSB/PBA/PBB (excluding Power Manager) 32 KHz oscillator RTC control register GPLP registers Watchdog control register Voltage calibration register RCSYS Calibration register BOD control register BOD33 control register ...

Page 53

Brown-Out detector 3V3 The Brown-Out Detector 3V3 (BOD33) monitors one VDDIO supply pin and compares the sup- ply voltage to the brown-out detection 3V3 level, which is typically calibrated at 2V7. The BOD33 is enabled by default, but can ...

Page 54

User Interface Table 7-6. Offset 0x000 0x0004 0x008 0x00C 0x010 0x014 0x020 0x024 0x028 Oscillator 0 Control Register 0x02C Oscillator 1 Control Register 0x030 Oscillator 32 Control Register 0x040 PM Interrupt Enable Register 0x044 PM Interrupt Disable Register 0x048 ...

Page 55

Main Clock Control Register Name: MCCTRL Access Type: Read/Write Offset: 0x00 Reset Value: 0x00000000 • OSC1EN: Oscillator 1 Enable 1: Oscillator 1 is ...

Page 56

Clock Select Register Name: CKSEL Access Type: Read/Write Offset: 0x04 Reset Value: 0x00000000 31 30 PBBDIV - 23 22 PBADIV - CPUDIV - • PBBDIV: PBB Division Enable PBBDIV = 0: PBB clock ...

Page 57

Clock Mask Registers Name: CPU/HSB/PBA/PBBMASK Access Type: Read/Write Offset: 0x08-0x14 Reset Value: 0x00000003/0x00000FFF/0x001FFFFF/0x000003FF • MASK: Clock Mask If bit n is cleared, the clock for module n is stopped. If bit ...

Page 58

Table 7-7. Maskable module clocks in AT32UC3A3. Bit CPUMASK HSBMASK 16 SYSTIMER - (compare/count registers clk 31 Note: 32072C–AVR32–2010/03 PBAMASK TC0 TC1 ABDAC (2) (2) ...

Page 59

PLL Control Registers Name: PLL0,1 Access Type: Read/Write Offset: 0x20-0x24 Reset Value: 0x00000000 31 30 PLLTEST - • PLLTEST: PLL Test Reserved for internal use. Always write ...

Page 60

Description PLLOPT[2] 0 Wide Bandwidth Mode enabled 1 Wide Bandwidth Mode disabled • PLLOSC: PLL Oscillator Select 0: Oscillator 0 is the source for the PLL. 1: Oscillator 1 is the source for the PLL. • PLLEN: PLL Enable 0: ...

Page 61

Oscillator 0/1 Control Registers Name: OSCCTRL0,1 Access Type: Read/Write Offset: 0x28-0x2C Reset Value: 0x00000000 • STARTUP: Oscillator Startup Time Select startup time for ...

Page 62

KHz Oscillator Control Register Name: OSCCTRL32 Access Type: Read/Write Offset: 0x30 Reset Value: 0x00000000 • STARTUP: Oscillator Startup Time Select startup time ...

Page 63

Interrupt Enable Register Name: IER Access Type: Write-only Offset: 0x40 Reset Value: 0x00000000 OSC0RDY MSKRDY Writing a one to a bit in this register will ...

Page 64

Interrupt Disable Register Name: IDR Access Type: Write-only Offset: 0x44 Reset Value: 0x00000000 OSC0RDY MSKRDY Writing a one to a bit in this register will ...

Page 65

Interrupt Mask Register Name: IMR Access Type: Read-only Offset: 0x48 Reset Value: 0x00000000 OSC0RDY MSKRDY 0: The corresponding interrupt is disabled. 1: The corresponding interrupt ...

Page 66

Interrupt Status Register Name: ISR Access Type: Read-only Offset: 0x4C Reset Value: 0x00000000 OSC0RDY MSKRDY • BOD33DET: Brown out detection This bit is set when ...

Page 67

LOCK1: PLL1 locked This bit is set when transition on the POSCSR.LOCK1 bit is detected: clock source. This bit is cleared when the corresponding bit in ICR is written to one. • LOCK0: PLL0 locked ...

Page 68

Interrupt Clear Register Name: ICR Access Type: Write-only Offset: 0x50 Reset Value: 0x00000000 OSC0RDY MSKRDY Writing a zero to a bit in this register has ...

Page 69

Power and Oscillators Status Register Name: POSCSR Access Type: Read-only Offset: 0x54 Reset Value: 0x00000000 OSC0RDY MSKRDY • BOD33DET: Brown out 3V3 detection 0: No ...

Page 70

Generic Clock Control Register Name: GCCTRLx Access Type: Read/Write Offset: 0x60 Reset Value: 0x00000000 There is one GCCTRL register per generic clock in the design. ...

Page 71

Reset Cause Register Name: RCAUSE Access Type: Read-only Offset: 0x140 Reset Value: 0x00000000 CPUERR - • BOD33: Brown-out 3V3 Reset The CPU was reset due ...

Page 72

Asynchronous Wake Up Enable Name: AWEN Access Type: Read/Write Offset: 0x144 Reset Value • USB_WAKEN : Wake Up Enable Register Writing a ...

Page 73

BOD Control Register Name: BOD Access Type: Read/Write Offset: 0xD0 Reset Value: 0x00000000 HYST • KEY: Register Write protection This field must be written twice, first ...

Page 74

BOD33 Control Register Name: BOD33 Access Type: Read/Write Offset: 0xD4 Reset Value: 0x0000010X • KEY: Register Write protection This field must be written twice, first ...

Page 75

RC Oscillator Calibration Register Name: RCCR Access Type: Read/Write Offset: 0xC0 Reset Value: 0x00000000 • KEY: Register Write protection This field must be written twice, first with ...

Page 76

Bandgap Calibration Register Name: BGCR Access Type: Read/Write Offset: 0xC4 Reset Value: 0x00000000 • KEY: Register Write protection This field must be written twice, first ...

Page 77

PM Voltage Regulator Calibration Register Name: VREGCR Access Type: Read/Write Offset: 0xC8 Reset Value: 0x00000000 • KEY: Register Write protection This field must be written ...

Page 78

General Purpose Low-power Register Name: GPLP Access Type: Read/Write Offset: 0x200 Reset Value: 0x00000000 These registers are general purpose 32-bit registers that are reset only by power-on-reset. Any other reset will ...

Page 79

Real Time Counter (RTC) Rev: 2.4.0.1 8.1 Features • 32-bit real-time counter with 16-bit prescaler • Clocked from RC oscillator or 32KHz oscillator • Long delays – Max timeout 272years • High resolution: Max count frequency 16KHz • Extremely ...

Page 80

Power Management The RTC remains operating in all sleep modes except Static mode. Interrupts are not available in DeepStop mode. 8.4.2 Clocks The RTC can use the system RC oscillator as clock source. This oscillator is always enabled whenever ...

Page 81

The RTC count value can be read from or written to the Value register (VAL). Due to synchroni- zation, continuous reading of the VAL register with the lowest prescaler setting will skip every other value. 8.5.1.3 RTC interrupt The RTC ...

Page 82

User Interface Table 8-1. RTC Register Memory Map Offset 0x00 Control Register 0x04 0x08 0x10 Interrupt Enable Register 0x14 Interrupt Disable Register 0x18 Interrupt Mask Register 0x1C Interrupt Status Register 0x20 Interrupt Clear Register 32072C–AVR32–2010/03 Register Register Name Value ...

Page 83

Control Register Name: CTRL Access Type: Read/Write Offset: 0x00 Reset Value: 0x00000000 • CLKEN: Clock Enable 1: The clock is enabled. 0: The ...

Page 84

Value Register Name: VAL Access Type: Read/Write Offset: 0x04 Reset Value: 0x00000000 • VAL[31:0]: RTC Value This value is incremented on every rising edge of the source clock. 32072C–AVR32–2010/ ...

Page 85

Top Register Name: TOP Access Type: Read/Write Offset: 0x08 Reset Value: 0x00000000 • VAL[31:0]: RTC Top Value VAL wraps at this value. 32072C–AVR32–2010/ VAL[31:24 VAL[23:16] ...

Page 86

Interrupt Enable Register Name: IER Access Type: Write-only Offset: 0x10 Reset Value: 0x00000000 Writing a zero to a bit in this register has ...

Page 87

Interrupt Disable Register Name: IDR Access Type: Write-only Offset: 0x14 Reset Value: 0x00000000 Writing a zero to a bit in this register has ...

Page 88

Interrupt Mask Register Name: IMR Access Type: Read-only Offset: 0x18 Reset Value: 0x00000000 The corresponding interrupt is disabled. 1: The corresponding interrupt ...

Page 89

Interrupt Status Register Name: ISR Access Type: Read-only Offset: 0x1C Reset Value: 0x00000000 • TOPI: Top Interrupt This bit is set when VAL ...

Page 90

Interrupt Clear Register Name: ICR Access Type: Write-only Offset: 0x20 Reset Value: 0x00000000 Writing a zero to a bit in this register has ...

Page 91

Watchdog Timer (WDT) Rev: 2.4.0.1 9.1 Features • Watchdog timer counter with 32-bit prescaler • Clocked from the system RC oscillator (RCSYS) 9.2 Overview The Watchdog Timer (WDT) has a prescaler generating a time-out period. This prescaler is clocked ...

Page 92

Functional Description The WDT is enabled by writing a one to the Enable bit in the Control register (CTRL.EN). This also enables the system RC clock (CLK_RCSYS) for the prescaler. The Prescale Select field (PSEL) in the CTRL register ...

Page 93

Control Register Name: CTRL Access Type: Read/Write Offset: 0x00 Reset Value: 0x00000000 • KEY: Write protection key This field must be written twice, first with ...

Page 94

Clear Register Name: CLR Access Type: Write-only Offset: 0x04 Reset Value: 0x00000000 • CLR: Writing periodically any value to this field when the WDT is enabled, within the watchdog time-out period, ...

Page 95

Interrupt Controller (INTC) Rev: 1.0.1.5 10.1 Features • Autovectored low latency interrupt service with programmable priority – 4 priority levels for regular, maskable interrupts – One Non-Maskable Interrupt • groups of interrupts with ...

Page 96

Figure 10-1. INTC Block Diagram NMIREQ IREQ63 IREQ34 IREQ33 IREQ32 IREQ31 IREQ2 IREQ1 IREQ0 10.4 Product Dependencies In order to use this module, other parts of the system must be configured correctly, as described below. 10.4.1 Power Management If the ...

Page 97

Interrupt Priority Register (IPR). The GrpReq inputs are then masked by the mask bits from the CPU status register. Any interrupt group that has a pending interrupt of a priority level that is not masked by the CPU status register, ...

Page 98

AT32UC3A3/A4 98 ...

Page 99

User Interface Table 10-1. INTC Register Memory Map Offset Register 0x000 Interrupt Priority Register 0 0x004 Interrupt Priority Register 1 ... 0x0FC Interrupt Priority Register 63 0x100 Interrupt Request Register 0 0x104 Interrupt Request Register 1 ... 0x1FC Interrupt ...

Page 100

Interrupt Priority Registers Register Name: IPR0...IPR63 Access Type: Read/Write Offset: 0x000 - 0x0FC Reset Value: 0x00000000 31 30 INTLEVEL[1: • INTLEVEL: Interrupt Level Indicates the EVBA-relative offset of the ...

Page 101

Interrupt Request Registers Name: IRR0...IRR63 Access Type: Read-only Offset: 0x0FF - 0x1FC Reset Value: N IRR[32*x+31] IRR[32*x+30] IRR[32*x+29 IRR[32*x+23] IRR[32*x+22] IRR[32*x+21 IRR[32*x+15] IRR[32*x+14] IRR[32*x+13 IRR[32*x+7] IRR[32*x+6] IRR[32*x+5] • IRR: Interrupt Request ...

Page 102

Interrupt Cause Registers Register Name: ICR0...ICR3 Access Type: Read-only Offset: 0x200 - 0x20C Reset Value: N • CAUSE: Interrupt Group Causing Interrupt of ...

Page 103

Interrupt Request Signal Map The various modules may output Interrupt request signals. These signals are routed to the Inter- rupt Controller (INTC), described in a later chapter. The Interrupt Controller supports groups of interrupt requests. Each ...

Page 104

Table 10-2. 32072C–AVR32–2010/03 Interrupt Request Signal Map 0 Peripheral DMA Controller 1 Peripheral DMA Controller 2 Peripheral DMA Controller 3 Peripheral DMA Controller 3 4 Peripheral DMA Controller 5 Peripheral DMA Controller 6 Peripheral DMA Controller 7 Peripheral DMA Controller ...

Page 105

Table 10-2. 32072C–AVR32–2010/03 Interrupt Request Signal Map 0 DMA Controller 1 DMA Controller 22 2 DMA Controller 3 DMA Controller 4 DMA Controller 26 0 Memory Stick Interface 27 0 Two-wire Slave Interface 28 0 Two-wire Slave Interface Error code ...

Page 106

External Interrupt Controller (EIC) Rev: 2.4.0.0 11.1 Features • Dedicated interrupt request for each interrupt • Individually maskable interrupts • Interrupt on rising or falling edge • Interrupt on high or low level • Asynchronous interrupts for sleep modes ...

Page 107

Block Diagram Figure 11-1. EIC Block Diagram ...

Page 108

Clocks The clock for the EIC bus interface (CLK_EIC) is generated by the Power Manager. This clock is enabled at reset, and can be disabled in the Power Manager. The filter and synchronous edge/level detector runs on a clock ...

Page 109

However, the corresponding bit in ISR will be set, and EIC_WAKE will be set. If the CTRL.INTn bit is zero, then the corresponding bit in ISR will always be zero. Disabling an external interrupt by ...

Page 110

Non-Maskable Interrupt The NMI supports the same features as the external interrupts, and is accessed through the same registers. The description in instead of the INTn bits. The NMI is non-maskable within the CPU in the sense that it ...

Page 111

Keypad scan support The External Interrupt Controller also includes support for keypad scanning. The keypad scan feature is compatible with keypads organized as rows and columns, where a row is shorted against a column when a key is pressed. ...

Page 112

User Interface Table 11-2. EIC Register Memory Map Offset 0x000 Interrupt Enable Register 0x004 Interrupt Disable Register 0x008 Interrupt Mask Register 0x00C Interrupt Status Register 0x010 Interrupt Clear Register 0x014 0x018 0x01C 0x020 0x024 0x028 Asynchronous Register 0x2C 0x030 ...

Page 113

Interrupt Enable Register Name: IER Access Type: Write-only Offset: 0x000 Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n Writing a zero to this ...

Page 114

Interrupt Disable Register Name: IDR Access Type: Write-only Offset: 0x004 Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n Writing a zero to this ...

Page 115

Interrupt Mask Register Name: IMR Access Type: Read-only Offset: 0x008 Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n 0: The corresponding interrupt is ...

Page 116

Interrupt Status Register Name: ISR Access Type: Read-only Offset: 0x00C Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt interrupt event has ...

Page 117

Interrupt Clear Register Name: ICR Access Type: Write-only Offset: 0x010 Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n Writing a zero to this ...

Page 118

Mode Register Name: MODE Access Type: Read/Write Offset: 0x014 Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n 0: The external interrupt is edge ...

Page 119

Edge Register Name: EDGE Access Type: Read/Write Offset: 0x018 Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n 0: The external interrupt triggers on ...

Page 120

Level Register Name: LEVEL Access Type: Read/Write Offset: 0x01C Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n 0: The external interrupt triggers on ...

Page 121

Filter Register Name: FILTER Access Type: Read/Write Offset: 0x020 Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n 0: The external interrupt is not ...

Page 122

Test Register Name: TEST Access Type: Read/Write Offset: 0x024 Reset Value: 0x00000000 INT7 INT6 • TESTEN: Test Enable 0: This bit disables external interrupt test ...

Page 123

Asynchronous Register Name: ASYNC Access Type: Read/Write Offset: 0x028 Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n 0: The external interrupt is synchronized ...

Page 124

Scan Register Name: SCAN Access Type: Read/Write Offset: 0x2C Reset Value: 0x0000000 • Keypad scanning is disabled 1: Keypad scanning is ...

Page 125

Enable Register Name: EN Access Type: Write-only Offset: 0x030 Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n Writing a zero to this bit ...

Page 126

Disable Register Name: DIS Access Type: Write-only Offset: 0x034 Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n Writing a zero to this bit ...

Page 127

Control Register Name: CTRL Access Type: Read-only Offset: 0x038 Reset Value: 0x00000000 INT7 INT6 • INTn: External Interrupt n 0: The corresponding external interrupt is ...

Page 128

Module Configuration The specific configuration for each EIC instance is listed in the following tables.The module bus clocks listed here are connected to the system bus clocks. Please refer to the Power Manager chapter for details. Table 11-3. Feature ...

Page 129

Flash Controller (FLASHC) Rev: 2.2.0.3 12.1 Features • Controls flash block with dual read ports allowing staggered reads. • Supports 0 and 1 wait state bus access. • Allows interleaved burst reads for systems with one wait state, outputting ...

Page 130

Functional description 12.4.1 Bus interfaces The FLASHC has two bus interfaces, one High-Speed Bus (HSB) interface for reads from the flash array and writes to the page buffer, and one Peripheral Bus (PB) interface for writing com- mands and ...

Page 131

The flash controller supports flash blocks with up to 2^21 word addresses, as displayed in 12-1. Reading the memory space between address pw and 2^21-1 returns an undefined result. The User page is permanently mapped to word address 2^21. Table ...

Page 132

The page buffer is also used for writes to the Write operations can be prevented by programming the Memory Protection Unit of the CPU. Writing 8-bit and 16-bit data to the page buffer is not allowed and may lead to ...

Page 133

All the commands are protected by the same keyword, which has to be written in the eight high- est bits of the FCMD register. Writing FCMD with data that does not contain the correct key and/or with an invalid command ...

Page 134

Erase All operation The entire memory is erased if the Erase All command (EA) is written to the Flash Command Register (FCMD). Erase All erases all bits in the flash array. The flash memory locations, the general-purpose fuse bits, ...

Page 135

Peripheral Bus address. Some of the general-purpose fuse bits are reserved for special purposes, and should not be used for other functions.: Table 12-2. General- Purpose fuse number 15:0 16 19:17 The BOOTPROT fuses protects the following ...

Page 136

To erase or write a general-purpose fuse bit, the commands Write General-Purpose Fuse Bit (WGPB) and Erase General-Purpose Fuse Bit (EGPB) are provided. Writing one of these com- mands, together with the number of the fuse to write/erase, performs the ...

Page 137

User interface 12.8.1 Address map The following addresses are used by the FLASHC. All offsets are relative to the base address allocated to the flash controller. Table 12-4. Offset 0x0 0x4 0x8 0xc 0x10 (*) The value of the ...

Page 138

Flash Control Register Name: FCR Access Type: Read/Write Offset: 0x00 Reset value: 0x00000000 FWS • FRDY: Flash Ready Interrupt Enable 0: Flash Ready does ...

Page 139

Flash Command Register Name: FCMD Access Type: Read/Write Offset: 0x04 Reset value: 0x00000000 The FCMD can not be written if the flash is in the process of performing a flash command. Doing so will cause the FCR write to ...

Page 140

Table 12-5. Set of commands Command Quick Page Read User Page High speed mode enable HIgh speed mode disable • PAGEN: Page number The PAGEN field is used to address a page or fuse bit for certain operations. In order ...

Page 141

Flash Status Register Name: FSR Access Type: Read/Write Offset: 0x08 Reset value: 0x00000000 31 30 LOCK15 LOCK14 23 22 LOCK7 LOCK6 15 14 FSZ • FRDY: Flash Ready Status 0: The flash controller is busy and ...

Page 142

FSZ: Flash Size The size of the flash. Not all device families will provide all flash sizes indicated in the table. Table 12-7. Flash size FSZ Flash Size 0 32 KByte 1 64 kByte 2 128 kByte 3 256 ...

Page 143

Flash General Purpose Fuse Register High Name: FGPFRHI Access Type: Read Offset: 0x0C Reset value: N GPF63 GPF62 23 22 GPF55 GPF54 15 14 GPF47 GPF46 7 6 GPF39 GPF38 This register is only used in systems ...

Page 144

Flash General Purpose Fuse Register Low Name: FGPFRLO Access Type: Read Offset: 0x10 Reset value: N GPF31 GPF30 23 22 GPF23 GPF22 15 14 GPF15 GPF14 7 6 GPF07 GPF06 • GPFxx: General Purpose Fuse xx 0: ...

Page 145

Fuses Settings The flash block contains 32 general purpose fuses. These 32 fuses can be found in the Flash General Purpose Fuse Register Low (FGPFRLO) of the Flash Controller (FLASHC). Some of the FGPFRLO fuses have defined meanings outside ...

Page 146

GPF30 reserved for future use • GPF29 reserved for future use • BODEN fuses set to 0b11. BOD is disabled. • BODHYST fuse set to 0b1. The BOD hystersis is enabled. • BODLEVEL fuses set to 0b111111. This is ...

Page 147

HSB Bus Matrix (HMATRIX) Rev: 2.3.0.2 13.1 Features • User Interface on peripheral bus • Configurable Number of Masters (Up to sixteen) • Configurable Number of Slaves (Up to sixteen) • One Decoder for Each Master • Three Different ...

Page 148

At the end of the current access other request is pending, the slave remains connected to its associated default master. A slave can be associated with three kinds of default masters: no default master, last access master and ...

Page 149

End of Burst Cycles: When the current cycle is the last cycle of a burst transfer. For defined length burst, predicted end of burst matches the size of the transfer but is man- aged differently for undefined length burst. ...

Page 150

This configuration incurs one latency cycle for the first access of a burst. Arbitration without default master can be used for masters that perform ...

Page 151

User Interface Table 13-1. HMATRIX Register Memory Map Offset Register 0x0000 Master Configuration Register 0 0x0004 Master Configuration Register 1 0x0008 Master Configuration Register 2 0x000C Master Configuration Register 3 0x0010 Master Configuration Register 4 0x0014 Master Configuration Register ...

Page 152

Table 13-1. HMATRIX Register Memory Map (Continued) Offset Register 0x008C Priority Register B for Slave 1 0x0090 Priority Register A for Slave 2 0x0094 Priority Register B for Slave 2 0x0098 Priority Register A for Slave 3 0x009C Priority Register ...

Page 153

Table 13-1. HMATRIX Register Memory Map (Continued) Offset Register 0x012C Special Function Register 7 0x0130 Special Function Register 8 0x0134 Special Function Register 9 0x0138 Special Function Register 10 0x013C Special Function Register 11 0x0140 Special Function Register 12 0x0144 ...

Page 154

Master Configuration Registers Name: MCFG0...MCFG15 Access Type: Read/Write Offset: 0x00 - 0x3C Reset Value: 0x00000002 31 30 – – – – – – – – • ULBT: Undefined Length Burst Type 0: Infinite ...

Page 155

Slave Configuration Registers Name: SCFG0...SCFG15 Access Type: Read/Write Offset: 0x40 - 0x7C Reset Value: 0x00000010 31 30 – – – – – – • ARBT: Arbitration Type 0: Round-Robin Arbitration 1: Fixed Priority ...

Page 156

Bus Matrix Priority Registers A For Slaves Name: PRAS0...PRAS15 Access Type: Read/Write Offset: - Reset Value: 0x00000000 31 30 – – – – – – – – • MxPR: Master x Priority Fixed ...

Page 157

Priority Registers B For Slaves Name: PRBS0...PRBS15 Access Type: Read/Write Offset: - Reset Value: 0x00000000 31 30 – – – – – – – – • MxPR: Master x Priority Fixed priority of ...

Page 158

Special Function Registers Name: Access Type: Offset: 0x110 - 0x115 Reset Value • SFR: Special Function Register Fields Those registers are not a HMATRIX specific register. The field of those ...

Page 159

Bus Matrix Connections Accesses to unused areas returns an error result to the master requesting such an access. The bus matrix has the several masters and slaves. Each master has its own bus and its own decoder, thus allowing ...

Page 160

Figure 13-1. HMATRIX Master / Slave Connections CPU Data 0 CPU 1 Instruction CPU SAB 2 PDCA 3 DMACA 4 Master 0 DMACA 5 Master 1 USBB 6 DMA 32072C–AVR32–2010/03 HMATRIX SLAVES AT32UC3A3/ ...

Page 161

External Bus Interface (EBI) Rev.: 1.7.0.0 14.1 Features • Optimized for application memory space support • Integrates three external memory controllers: – Static Memory Controller (SMC) – SDRAM Controller (SDRAMC) – Error Corrected Code (ECCHRS) controller • Additional logic ...

Page 162

Block Diagram Figure 14-1. EBI Block Diagram HMATRIX SFR registers Address Decoders HSB-PB Bridge 32072C–AVR32–2010/03 INTC SDRAMC_irq EBI SDRAM HSB Controller Static Memory Controller ECCHRS Controller NAND Flash SmartMedia Logic Compact FLash Logic Chip Select Assignor Peripheral Bus AT32UC3A3/A4 ...

Page 163

I/O Lines Description Table 14-1. Pin Name DATA[15:0] ADDR[1] ADDR[12] ADDR[15] ADDR[23:18] NCS[0] NWAIT SDCK SDCKE SDWE SDA10 RAS - CAS CFCE1 - CFCE2 CFRNW NANDOE NANDWE NCS[1] ADDR[0] ADDR[11:2] ADDR[14:13] ADDR[16] 32072C–AVR32–2010/03 EBI I/O Lines Description Alternate Name ...

Page 164

Pin Name ADDR[17] NRD NWE0 NCS[4] NCS[5] NCS[2] NCS[3] NWE1 14.5 Product Dependencies In order to use this module, other parts of the system must be configured correctly, as described below. 14.5.1 I/O Lines The pins used for interfacing the ...

Page 165

CLK_ECCHRS Refer to Table 14-2. Clocks name CLK_EBI CLK_SDRAMC CLK_SMC CLK_ECCHRS 14.5.4 Interrupts The EBI interface has two interrupt lines connected to the Interrupt Controller: • SDRAMC_IRQ: Interrupt signal coming from the SDRAMC • ECCHRS_IRQ: Interrupt signal coming from ...

Page 166

Table 14-3. SFR6 Bit Number 14.6 Functional Description The EBI transfers data between the internal HSB bus (handled by the HMATRIX) and the exter- nal memories or peripheral devices. It controls the waveforms and the parameters of the external address, ...

Page 167

CompactFlash Support The External Bus Interface integrates circuitry that interfaces to CompactFlash devices. The CompactFlash logic is driven by the SMC on the NCS[4] and/or NCS[5] address space. Writing to the HMATRIX.SFR6.CS4A and/or HMATRIX.SFR6.CS5A bits the appropriate value enables ...

Page 168

CFCE1 and CFCE2 signals To cover all types of access, the SMC must be alternatively set to drive 8-bit data bus or 16-bit data bus. The odd byte access on the DATA[7:0] bus is only possible when the SMC ...

Page 169

Read/Write signals In I/O mode and True IDE mode, the CompactFlash logic drives the read command signals of the SMC on CFNIORD signal, while the CFNOE and CFNWE signals are deactivated. Likewise, in common memory mode and attribute memory ...

Page 170

Table 14-7. Pins NCS[4] NCS[5] Table 14-8. Pins NRD NWE0 NWE1 CFRNW 14.6.5.5 Application example Figure 14-4 on page 171 CFRNW signals are not directly connected to the CompactFlash slot 0, but do control the direc- tion and the output ...

Page 171

Figure 14-4. CompactFlash Application Example 14.6.6 SmartMedia and NAND Flash Support The EBI integrates circuitry that interfaces to SmartMedia and NAND Flash devices. The NAND Flash logic is driven by the Static Memory Controller on the NCS[2] (and/or NCS[3]) address ...

Page 172

Figure 14-5. NAND Flash Signal Multiplexing on EBI Pins 14.6.6.1 NAND Flash signals The address latch enable and command latch enable signals on the NAND Flash device are driven by address bits ADDR[22] and ADDR[21] of the EBI address bus. ...

Page 173

Application Example 14.7.1 Hardware Interface Table 14-9. Pins name Controller DATA[7:0] DATA[15:0 ADDR[0] ADDR[1] ADDR[23:2] NCS[0] - NCS[5] NRD NWE0 NWE1 Note: Table 14-10. EBI Pins and External Devices Connections Pins name Controller DATA[7:0] DATA[15:8] ADDR[0] ADDR[1] ADDR[10:2] ADDR[11] ...

Page 174

Table 14-10. EBI Pins and External Devices Connections (Continued) Pins name Controller ADDR[21] ADDR[22] NCS[0] NCS[1] NCS[2] NCS[3] NCS[4] NCS[5] NANDOE NANDWE NRD NWE0 NWE1 CFRNW CFCE1 CFCE2 SDCK SDCKE RAS CAS SDWE NWAIT (2) Pxx (2) Pxx Note: 32072C–AVR32–2010/03 ...

Page 175

Connection Examples Figure 14-7 on page devices. Figure 14-7. EBI Connections to Memory Devices EBI 32072C–AVR32–2010/03 175shows an example of connections between the EBI and external DATA[15:0] RAS SDRAM CAS SDCK 2Mx8 DATA[7:0] SDCKE D[7:0] SDWE ADDR[0] CS SDCK ...

Page 176

Static Memory Controller (SMC) Rev. 1.0.6.5 15.1 Features • 6 chip selects available • 16-Mbytes address space per chip select • 16-bit data bus • Word, halfword, byte transfers • Byte write or byte select lines • ...

Page 177

Block Diagram Figure 15-1. SMC Block Diagram (AD_MSB=23) SMC HMatrix Chip Select Power CLK_SMC Manager Peripheral Bus 15.4 I/O Lines Description Table 15-1. Pin Name NCS[5:0] NRD NWR0/NWE A0/NBS0 NWR1/NBS1 A[23:2] D[15:0] NWAIT 15.5 Product Dependencies In order to ...

Page 178

I/O Lines The SMC signals pass through the External Bus Interface (EBI) module where they are multi- plexed. The user must first configure the I/O Controller to assign the EBI pins corresponding to SMC signals to their peripheral function. ...

Page 179

Figure 15-3. Memory Connections for Six External Devices NCS[0] - NCS[5] NRD SMC NWE A[AD_MSB:0] D[15:0] 15.6.3 Connection to External Devices 15.6.3.1 Data bus width A data bus width bits can be selected for each chip ...

Page 180

Figure 15-5. •Byte write access The byte write access mode supports one byte write signal per byte of the data bus and a single read signal. Note that the SMC does not allow boot in byte write access mode. • ...

Page 181

Figure 15-6. •Signal multiplexing Depending on the MODE.BAT bit, only the write signals or the byte select signals are used. To save I/Os at the external bus interface, control signals at the SMC interface are multiplexed. For 16-bit devices, bit ...

Page 182

NWR0 to NWR1 have the same timings and protocol as NWE. In the same way, NCS represents one of the NCS[0..5] chip select lines. 15.6.4.1 Read waveforms The read cycle is shown on The read cycle starts with ...

Page 183

NCSRDSETUP: the NCS setup time is defined as the setup time of address before the NCS falling edge. 2. NCSRDPULSE: the NCS pulse length is the time between NCS falling edge and NCS rising edge. 3. NCSRDHOLD: the NCS ...

Page 184

Figure 15-8. No Setup, No Hold on NRD, and NCS Read Signals CLK_SMC A[AD_MSB:2] NBS0, NBS1, A0, A1 D[15:0] • Null Pulse Programming null pulse is not permitted. Pulse must be at least written to one. A null value leads ...

Page 185

Figure 15-9. READMODE = 1: Data Is Sampled by SMC Before the Rising Edge of NRD CLK_SMC A[AD_MSB:2] NBS0, NBS1, A0, A1 D[15:0] •Read is controlled by NCS (MODE.READMODE = 0) Figure 15-10 on page 186 t after the falling ...

Page 186

Figure 15-10. READMODE = 0: Data Is Sampled by SMC Before the Rising Edge of NCS CLK_SMC A[AD_MSB:2] NBS0, NBS1, A0, A1 D[15:0] 15.6.4.3 Write waveforms The write protocol is similar to the read protocol depicted in write ...

Page 187

Figure 15-11. Write Cycle CLK_SMC A[AD_MSB:2] NBS0, NBS1, A0, A1 •Write cycle The write cycle time is defined as the total duration of the write cycle, that is, from the time where address is set on the address bus to ...

Page 188

If null setup parameters are programmed for NWE and/or NCS, NWE and/or NCS remain active continuously in case of consecutive write cycles in the same memory (see 188). However, for devices that perform write operations ...

Page 189

Figure 15-13. WRITEMODE = 1. The Write Operation Is Controlled by NWE CLK_SMC A[AD_MSB:2] NBS0, NBS1, A0, A1 NWE, NWR0, NWR1 D[15:0] •Write is controlled by NCS (MODE.WRITEMODE = 0) Figure 15-14 on page 189 written to zero. The data ...

Page 190

Coding timing parameters All timing parameters are defined for one chip select and are grouped together in one register according to their type. The Setup register (SETUP) groups the definition of all setup parameters: • NRDSETUP, NCSRDSETUP, NWESETUP, and ...

Page 191

Automatic Wait States Under certain circumstances, the SMC automatically inserts idle cycles between accesses to avoid bus contention or operation conflict. 15.6.5.1 Chip select wait states The SMC always inserts an idle cycle between two transfers on separate chip ...

Page 192

An early read wait state is automatically inserted if at least one of the following conditions is valid: • if the write controlling signal has no hold time and the read controlling signal has no setup time • in NCS ...

Page 193

Figure 15-17. Early Read Wait State: NCS Controlled Write with No Hold Followed by a Read A[AD_MSB:2] NBS0, NBS1, 32072C–AVR32–2010/03 with No Setup. CLK_SMC A0, A1 NWE NRD No hold D[15:0] Write cycle (WRITEMODE=0) AT32UC3A3/A4 No setup Read cycle Early ...

Page 194

Figure 15-18. Early Read Wait State: NWE-controlled Write with No Hold Followed by a Read Internal write controlling signal external write controlling 15.6.5.3 Reload user configuration wait state The user may change any of the configuration parameters by writing the ...

Page 195

A reload configuration wait state is also inserted when the slow clock mode is entered or exited, after the end of the current transfer (see 15.6.5.4 Read to write wait state Due to an internal mechanism, ...

Page 196

Figure 15-19. TDF Period in NRD Controlled Read Access (TDFCYCLES = 2) Figure 15-20. TDF Period in NCS Controlled Read Operation (TDFCYCLES = 3) 32072C–AVR32–2010/03 CLK_SMC A[AD_MSB:2] NBS0, NBS1, A0, A1 NRD NCS t PACC D[15:0] NRD controlled read operation ...

Page 197

TDF optimization enabled (MODE.TDFMODE = 1) When the MODE.TDFMODE bit is written to one (TDF optimization is enabled), the SMC takes advantage of the setup period of the next access to optimize the number of wait states cycle to ...

Page 198

TDF optimization. Figure 15-22. TDF Optimization Disabled (MODE.TDFMODE = 0). TDF Wait States between Two Read Accesses on Dif- ferent Chip Selects. CLK_SMC A[AD_MSB:2] NBS0, ...

Page 199

Figure 15-24. TDF Optimization Disabled (MODE.TDFMODE = 0). TDF Wait States between Read and Write accesses on the Same Chip Select. CLK_SMC A[AD_MSB:2] NBS0, NBS1, A0, A1 Read1 controlling signal(NRD) Write2 controlling signal(NWE) D[15:0] Read1 cycle TDFCYCLES = 5 15.6.7 ...

Page 200

The assertion of the NWAIT signal outside the expected period is ignored as illustrated in 15-26 on page Figure 15-25. Write Access with NWAIT Assertion in Frozen Mode (MODE.EXNWMODE = 2). CLK_SMC A[AD_MSB:2] NBS0, NBS1, A0 NWE 6 ...

Related keywords