Datasheet SAM3X, SAM3A Series (Microchip)

DescriptionSMART ARM-based MCU
Pages / Page1459 / 1 — SAM3X / SAM3A Series. Atmel | SMART ARM-based MCU. DATASHEET. Description
File Format / SizePDF / 6.1 Mb
Document Languageenglish

SAM3X / SAM3A Series. Atmel | SMART ARM-based MCU. DATASHEET. Description

Datasheet SAM3X, SAM3A Series Microchip, Revision: 03-01-2015

Model Line for this Datasheet

Text Version of Document

SAM3X / SAM3A Series Atmel | SMART ARM-based MCU DATASHEET Description
The Atmel | SMART SAM3X/A series is a member of a family of Flash microcontrollers based on the high performance 32-bit ARM Cortex-M3 RISC processor. It operates at a maximum speed of 84 MHz and features up to 512 Kbytes of Flash and up to 100 Kbytes of SRAM. The peripheral set includes a High Speed USB Host and Device port with embedded transceiver, an Ethernet MAC, 2 CANs, a High Speed MCI for SDIO/SD/MMC, an External Bus Interface with NAND Flash Controller (NFC), 5 UARTs, 2 TWIs, 4 SPIs, as well as a PWM timer, three 3-channel general-purpose 32-bit timers, a low-power RTC, a low- power RTT, 256-bit General Purpose Backup Registers, a 12-bit ADC and a 12-bit DAC. The SAM3X/A devices have three software-selectable low-power modes: Sleep, Wait and Backup. In Sleep mode, the processor is stopped while all other functions can be kept running. In Wait mode, all clocks and functions are stopped but some peripherals can be configured to wake up the system based on predefined conditions. In Backup mode, only the RTC, RTT, and wake-up logic are running. The SAM3X/A series is ready for capacitive touch thanks to the QTouch library, offering an easy way to implement buttons, wheels and sliders. The SAM3X/A architecture is specifically designed to sustain high-speed data transfers. It includes a multi-layer bus matrix as well as multiple SRAM banks, PDC and DMA channels that enable it to run tasks in parallel and maximize data throughput. The device operates from 1.62V to 3.6V and is available in 100 and 144-lead LQFP, 100-ball TFBGA and 144-ball LFBGA packages. The SAM3X/A devices are particularly well suited for networking applications: industrial and home/building automation, gateways. Atmel-11057C-ATARM-SAM3X-SAM3A-Datasheet_23-Mar-15 Document Outline Description 1. Features 1.1 Configuration Summary 2. SAM3X/A Block Diagram 3. Signal Description 3.1 Design Considerations 4. Package and Pinout 4.1 SAM3A4/8C and SAM3X4/8C Package and Pinout 4.1.3 100-lead LQFP Pinout 4.1.4 100-ball TFBGA Pinout 4.2 SAM3X4/8E Package and Pinout 4.2.3 144-lead LQFP Pinout 4.2.4 144-ball LFBGA Pinout 5. Power Considerations 5.1 Power Supplies 5.2 Power-up Considerations 5.2.1 VDDIO Versus VDDCORE 5.2.2 VDDIO Versus VDDIN 5.3 Voltage Regulator 5.4 Typical Powering Schematics 5.5 Active Mode 5.6 Low Power Modes 5.6.1 Backup Mode 5.6.2 Wait Mode 5.6.3 Sleep Mode 5.6.4 Low Power Mode Summary Table 5.7 Wake-up Sources 5.8 Fast Startup 6. Input/Output Lines 6.1 General Purpose I/O Lines (GPIO) 6.2 System I/O Lines 6.2.1 Serial Wire JTAG Debug Port (SWJ-DP) Pins 6.3 Test Pin 6.4 NRST Pin 6.5 NRSTB Pin 6.6 ERASE Pin 7. Memories 7.1 Product Mapping 7.2 Embedded Memories 7.2.1 Internal SRAM 7.2.2 Internal ROM 7.2.3 Embedded Flash Flash Overview Flash Power Supply Enhanced Embedded Flash Controller Lock Regions Security Bit Feature Calibration Bits Unique Identifier Fast Flash Programming Interface (FFPI) SAM-BA Boot GPNVM Bits 7.2.4 Boot Strategies 7.3 External Memories 7.3.1 External Memory Bus 7.3.2 Static Memory Controller 7.3.3 NAND Flash Controller 7.3.4 NAND Flash Error Corrected Code Controller 7.3.5 SDR-SDRAM Controller (217-pin SAM3X8H(l) only) 8. System Controller 8.1 System Controller and Peripherals Mapping 8.2 Power-on-Reset, Brownout and Supply Monitor 8.2.1 Power-on-Reset on VDDBU 8.2.2 Brownout Detector on VDDCORE 8.2.3 Supply Monitor on VDDUTMI 9. Peripherals 9.1 Peripheral Identifiers 9.2 APB/AHB Bridge 9.3 Peripheral Signal Multiplexing on I/O Lines 9.3.1 PIO Controller A Multiplexing 9.3.2 PIO Controller B Multiplexing 9.3.3 PIO Controller C Multiplexing 9.3.4 PIO Controller D Multiplexing 9.3.5 PIO Controller E Multiplexing 9.3.6 PIO Controller F Multiplexing 10. ARM Cortex® M3 Processor 10.1 About this section 10.2 Embedded Characteristics 10.3 About the Cortex-M3 processor and core peripherals 10.3.1 System level interface 10.3.2 Integrated configurable debug 10.3.3 Cortex-M3 processor features and benefits summary 10.3.4 Cortex-M3 core peripherals Nested Vectored Interrupt Controller System control block System timer Memory protection unit 10.4 Programmers model 10.4.1 Processor mode and privilege levels for software execution Thread mode Handler mode Unprivileged Privileged 10.4.2 Stacks 10.4.3 Core registers General-purpose registers Stack Pointer Link Register Program Counter Program Status Register Application Program Status Register Interrupt Program Status Register Execution Program Status Register Interruptible-continuable instructions If-Then block Exception mask registers Priority Mask Register Fault Mask Register Base Priority Mask Register CONTROL register 10.4.4 Exceptions and interrupts 10.4.5 Data types 10.4.6 The Cortex Microcontroller Software Interface Standard 10.5 Memory model 10.5.1 Memory regions, types and attributes Normal Device Strongly-ordered Shareable Execute Never (XN) 10.5.2 Memory system ordering of memory accesses 10.5.3 Behavior of memory accesses Additional memory access constraints for shared memory 10.5.4 Software ordering of memory accesses DMB DSB ISB 10.5.5 Bit-banding Directly accessing an alias region Directly accessing a bit-band region 10.5.6 Memory endianness Little-endian format 10.5.7 Synchronization primitives A Load-Exclusive instruction A Store-Exclusive instruction 10.5.8 Programming hints for the synchronization primitives 10.6 Exception model 10.6.1 Exception states Inactive Pending Active Active and pending 10.6.2 Exception types Reset Non Maskable Interrupt (NMI) Hard fault Memory management fault Bus fault Usage fault SVCall PendSV SysTick Interrupt (IRQ) 10.6.3 Exception handlers Interrupt Service Routines (ISRs) Fault handlers System handlers 10.6.4 Vector table 10.6.5 Exception priorities 10.6.6 Interrupt priority grouping 10.6.7 Exception entry and return Preemption Return Tail-chaining Late-arriving Exception entry Exception return 10.7 Fault handling 10.7.1 Fault types 10.7.2 Fault escalation and hard faults 10.7.3 Fault status registers and fault address registers 10.7.4 Lockup 10.8 Power management 10.8.1 Entering sleep mode Wait for interrupt Wait for event Sleep-on-exit 10.8.2 Wakeup from sleep mode Wakeup from WFI or sleep-on-exit Wakeup from WFE 10.8.3 Power management programming hints 10.9 Instruction set summary 10.10 Intrinsic functions 10.11 About the instruction descriptions 10.11.1 Operands 10.11.2 Restrictions when using PC or SP 10.11.3 Flexible second operand Constant Instruction substitution Register with optional shift 10.11.4 Shift Operations ASR LSR LSL ROR RRX 10.11.5 Address alignment 10.11.6 PC-relative expressions 10.11.7 Conditional execution The condition flags Condition code suffixes Absolute value Compare and update value 10.11.8 Instruction width selection Instruction width selection 10.12 Memory access instructions 10.12.1 ADR Syntax Operation Restrictions Condition flags Examples 10.12.2 LDR and STR, immediate offset Syntax Operation Offset addressing Pre-indexed addressing Post-indexed addressing Restrictions Condition flags Examples 10.12.3 LDR and STR, register offset Syntax Operation Restrictions Condition flags Examples 10.12.4 LDR and STR, unprivileged Syntax Operation Restrictions Condition flags Examples 10.12.5 LDR, PC-relative Syntax Operation Restrictions Condition flags Examples 10.12.6 LDM and STM Syntax Operation Restrictions Condition flags Examples Incorrect examples 10.12.7 PUSH and POP Syntax Operation Restrictions Condition flags Examples 10.12.8 LDREX and STREX Syntax Operation Restrictions Condition flags Examples 10.12.9 CLREX Syntax Operation Condition flags Examples 10.13 General data processing instructions 10.13.1 ADD, ADC, SUB, SBC, and RSB Syntax Operation Restrictions Condition flags Examples Multiword arithmetic examples 64-bit addition 96-bit subtraction 10.13.2 AND, ORR, EOR, BIC, and ORN Syntax Operation Restrictions Condition flags Examples 10.13.3 ASR, LSL, LSR, ROR, and RRX Syntax Operation Restrictions Condition flags Examples 10.13.4 CLZ Syntax Operation Restrictions Condition flags Examples 10.13.5 CMP and CMN Syntax Operation Restrictions Condition flags Examples 10.13.6 MOV and MVN Syntax Operation Restrictions Condition flags Example 10.13.7 MOVT Syntax Operation Restrictions Condition flags Examples 10.13.8 REV, REV16, REVSH, and RBIT Syntax Operation Restrictions Condition flags Examples 10.13.9 TST and TEQ Syntax Operation Restrictions Condition flags Examples 10.14 Multiply and divide instructions 10.14.1 MUL, MLA, and MLS Syntax Operation Restrictions Condition flags Examples 10.14.2 UMULL, UMLAL, SMULL, and SMLAL Syntax Operation Restrictions Condition flags Examples 10.14.3 SDIV and UDIV Syntax Operation Restrictions Condition flags Examples 10.15 Saturating instructions 10.15.1 SSAT and USAT Syntax Operation Restrictions Condition flags Examples 10.16 Bitfield instructions 10.16.1 BFC and BFI Syntax Operation Restrictions Condition flags Examples 10.16.2 SBFX and UBFX Syntax Operation Restrictions Condition flags Examples 10.16.3 SXT and UXT Syntax Operation Restrictions Condition flags Examples 10.17 Branch and control instructions 10.17.1 B, BL, BX, and BLX Syntax Operation Restrictions Condition flags Examples 10.17.2 CBZ and CBNZ Syntax Operation Restrictions Condition flags Examples 10.17.3 IT Syntax Operation Restrictions Condition flags Example 10.17.4 TBB and TBH Syntax Operation Restrictions Condition flags Examples 10.18 Miscellaneous instructions 10.18.1 BKPT Syntax Operation Condition flags Examples 10.18.2 CPS Syntax Operation Restrictions Condition flags Examples 10.18.3 DMB Syntax Operation Condition flags Examples 10.18.4 DSB Syntax Operation Condition flags Examples 10.18.5 ISB Syntax Operation Condition flags Examples 10.18.6 MRS Syntax Operation Restrictions Condition flags Examples 10.18.7 MSR Syntax Operation Restrictions Condition flags Examples 10.18.8 NOP Syntax Operation Condition flags Examples 10.18.9 SEV Syntax Operation Condition flags Examples 10.18.10 SVC Syntax Operation Condition flags Examples 10.18.11 WFE Syntax Operation Condition flags Examples 10.18.12 WFI Syntax Operation Condition flags Examples 10.19 About the Cortex-M3 peripherals 10.20 Nested Vectored Interrupt Controller 10.20.1 The CMSIS mapping of the Cortex-M3 NVIC registers 10.20.2 Interrupt Set-enable Registers 10.20.3 Interrupt Clear-enable Registers 10.20.4 Interrupt Set-pending Registers 10.20.5 Interrupt Clear-pending Registers 10.20.6 Interrupt Active Bit Registers 10.20.7 Interrupt Priority Registers IPRm IPR4 IPR3 IPR2 IPR1 IPR0 10.20.8 Software Trigger Interrupt Register 10.20.9 Level-sensitive interrupts Hardware and software control of interrupts 10.20.10 NVIC design hints and tips NVIC programming hints 10.21 System control block 10.21.1 The CMSIS mapping of the Cortex-M3 SCB registers 10.21.2 Auxiliary Control Register About IT folding 10.21.3 CPUID Base Register 10.21.4 Interrupt Control and State Register 10.21.5 Vector Table Offset Register 10.21.6 Application Interrupt and Reset Control Register Binary point 10.21.7 System Control Register 10.21.8 Configuration and Control Register 10.21.9 System Handler Priority Registers System Handler Priority Register 1 System Handler Priority Register 2 System Handler Priority Register 3 10.21.10 System Handler Control and State Register 10.21.11 Configurable Fault Status Register Memory Management Fault Status Register Bus Fault Status Register Usage Fault Status Register 10.21.12 Hard Fault Status Register 10.21.13 Memory Management Fault Address Register 10.21.14 Bus Fault Address Register 10.21.15 System control block design hints and tips 10.22 System timer, SysTick 10.22.1 SysTick Control and Status Register 10.22.2 SysTick Reload Value Register Calculating the RELOAD value 10.22.3 SysTick Current Value Register 10.22.4 SysTick Calibration Value Register 10.22.5 SysTick design hints and tips 10.23 Memory protection unit 10.23.1 MPU Type Register 10.23.2 MPU Control Register 10.23.3 MPU Region Number Register 10.23.4 MPU Region Base Address Register The ADDR field 10.23.5 MPU Region Attribute and Size Register SIZE field values 10.23.6 MPU access permission attributes 10.23.7 MPU mismatch 10.23.8 Updating an MPU region Updating an MPU region using separate words Updating an MPU region using multi-word writes Subregions Example of SRD use 10.23.9 MPU design hints and tips MPU configuration for a microcontroller 10.24 Glossary 11. Debug and Test Features 11.1 Description 11.2 Embedded Characteristics 11.3 Application Examples 11.3.1 Debug Environment 11.3.2 Test Environment 11.4 Debug and Test Pin Description 11.5 Functional Description 11.5.1 Test Pin 11.5.2 Debug Architecture 11.5.3 Serial Wire/JTAG Debug Port (SWJ-DP) SW-DP and JTAG-DP Selection Mechanism 11.5.4 FPB (Flash Patch Breakpoint) 11.5.5 DWT (Data Watchpoint and Trace) 11.5.6 ITM (Instrumentation Trace Macrocell) How to Configure the ITM Asynchronous Mode 5.4.3. How to Configure the TPIU 11.5.7 IEEE® 1149.1 JTAG Boundary Scan JTAG Boundary-scan Register 11.5.8 ID Code Register 12. Reset Controller (RSTC) 12.1 Description 12.2 Embedded Characteristics 12.3 Block Diagram 12.4 Functional Description 12.4.1 Reset Controller Overview 12.4.2 NRST Manager NRST Signal or Interrupt NRST External Reset Control 12.4.3 Brownout Manager 12.4.4 Reset States General Reset Backup Reset User Reset Software Reset Watchdog Reset 12.4.5 Reset State Priorities 12.4.6 Reset Controller Status Register 12.5 Reset Controller (RSTC) User Interface 12.5.1 Reset Controller Control Register 12.5.2 Reset Controller Status Register 12.5.3 Reset Controller Mode Register 13. Real-time Timer (RTT) 13.1 Description 13.2 Embedded Characteristics 13.3 Block Diagram 13.4 Functional Description 13.5 Real-time Timer (RTT) User Interface 13.5.1 Real-time Timer Mode Register 13.5.2 Real-time Timer Alarm Register 13.5.3 Real-time Timer Value Register 13.5.4 Real-time Timer Status Register 14. Real-time Clock (RTC) 14.1 Description 14.2 Embedded Characteristics 14.3 Block Diagram 14.4 Product Dependencies 14.4.1 Power Management 14.4.2 Interrupt 14.5 Functional Description 14.5.1 Reference Clock 14.5.2 Timing 14.5.3 Alarm 14.5.4 Error Checking 14.5.5 Updating Time/Calendar 14.6 Real-time Clock (RTC) User Interface 14.6.1 RTC Control Register 14.6.2 RTC Mode Register 14.6.3 RTC Time Register 14.6.4 RTC Calendar Register 14.6.5 RTC Time Alarm Register 14.6.6 RTC Calendar Alarm Register 14.6.7 RTC Status Register 14.6.8 RTC Status Clear Command Register 14.6.9 RTC Interrupt Enable Register 14.6.10 RTC Interrupt Disable Register 14.6.11 RTC Interrupt Mask Register 14.6.12 RTC Valid Entry Register 14.6.13 RTC Write Protect Mode Register 15. Watchdog Timer (WDT) 15.1 Description 15.2 Embedded Characteristics 15.3 Block Diagram 15.4 Functional Description 15.5 Watchdog Timer (WDT) User Interface 15.5.1 Watchdog Timer Control Register 15.5.2 Watchdog Timer Mode Register 15.5.3 Watchdog Timer Status Register 16. Supply Controller (SUPC) 16.1 Description 16.2 Embedded Characteristics 16.3 Block Diagram 16.4 Supply Controller Functional Description 16.4.1 Supply Controller Overview 16.4.2 Slow Clock Generator 16.4.3 Voltage Regulator Control/Backup Low Power Mode 16.4.4 Using Backup Batteries/Backup Supply 16.4.5 Supply Monitor 16.4.6 Backup Power Supply Reset Raising the Backup Power Supply NRSTB Asynchronous Reset Pin SHDN output pin 16.4.7 Core Reset Supply Monitor Reset Brownout Detector Reset 16.4.8 Wake Up Sources Force Wake Up Wake Up Inputs Clock Alarms Supply Monitor Detection 16.5 Supply Controller (SUPC) User Interface 16.5.1 System Controller (SYSC) User Interface 16.5.2 System Controller (SYSC) User Interface 16.5.3 Supply Controller Control Register 16.5.4 Supply Controller Supply Monitor Mode Register 16.5.5 Supply Controller Mode Register 16.5.6 Supply Controller Wake Up Mode Register 16.5.7 System Controller Wake Up Inputs Register 16.5.8 Supply Controller Status Register 17. General Purpose Backup Registers (GPBR) 17.1 Description 17.2 Embedded Characteristics 17.3 General Purpose Backup Registers (GPBR) User Interface 17.3.1 General Purpose Backup Register x 18. Enhanced Embedded Flash Controller (EEFC) 18.1 Description 18.2 Embedded Characteristics 18.3 Product Dependencies 18.3.1 Power Management 18.3.2 Interrupt Sources 18.4 Functional Description 18.4.1 Embedded Flash Organization 18.4.3 Flash Commands Getting Embedded Flash Descriptor Write Commands Erase Commands Lock Bit Protection GPNVM Bit Calibration Bit Security Bit Protection Unique Identifier 18.5 Enhanced Embedded Flash Controller (EEFC) User Interface 18.5.1 EEFC Flash Mode Register 18.5.2 EEFC Flash Command Register 18.5.3 EEFC Flash Status Register 18.5.4 EEFC Flash Result Register 19. Fast Flash Programming Interface (FFPI) 19.1 Description 19.2 Parallel Fast Flash Programming 19.2.1 Device Configuration 19.2.2 Signal Names 19.2.3 Entering Programming Mode 19.2.4 Programmer Handshaking Write Handshaking Read Handshaking 19.2.5 Device Operations Flash Read Command Flash Write Command Flash Full Erase Command Flash Lock Commands Flash General-purpose NVM Commands Flash Security Bit Command SAM3X/A Flash Select EEFC Command Memory Write Command Get Version Command 20. SAM3X/A Boot Program 20.1 Description 20.2 Flow Diagram 20.3 Device Initialization 20.4 SAM-BA Monitor 20.4.1 UART Serial Port 20.4.2 Xmodem Protocol 20.4.3 USB Device Port Enumeration Process Communication Endpoints 20.4.4 In Application Programming (IAP) Feature 20.5 Hardware and Software Constraints 21. Bus Matrix (MATRIX) 21.1 Description 21.2 Embedded Characteristics 21.2.1 Matrix Masters 21.2.2 Matrix Slaves 21.2.3 Master to Slave Access 21.3 Memory Mapping 21.4 Special Bus Granting Techniques 21.4.1 No Default Master 21.4.2 Last Access Master 21.4.3 Fixed Default Master 21.5 Arbitration 21.5.1 Arbitration Rules Undefined Length Burst Arbitration Slot Cycle Limit Arbitration 21.5.2 Round-Robin Arbitration Round-Robin arbitration without default master Round-Robin arbitration with last access master Round-Robin arbitration with fixed default master 21.5.3 Fixed Priority Arbitration 21.6 System I/O Configuration 21.7 Write Protect Registers 21.8 Bus Matrix (MATRIX) User Interface 21.8.1 Bus Matrix Master Configuration Registers 21.8.2 Bus Matrix Slave Configuration Registers 21.8.3 Bus Matrix Priority Registers For Slaves 21.8.4 Bus Matrix Master Remap Control Register 21.8.5 System I/O Configuration Register 21.8.6 Write Protect Mode Register 21.8.7 Write Protect Status Register 22. AHB DMA Controller (DMAC) 22.1 Description 22.2 Embedded Characteristics 22.3 Block Diagram 22.4 Functional Description 22.4.1 Basic Definitions 22.4.2 Memory Peripherals 22.4.3 Handshaking Interface Software Handshaking 22.4.4 DMAC Transfer Types Multi-buffer Transfers Ending Multi-buffer Transfers 22.4.5 Programming a Channel Programming Examples 22.4.6 Disabling a Channel Prior to Transfer Completion Abnormal Transfer Termination 22.5 DMAC Software Requirements 22.6 Write Protection Registers 22.7 AHB DMA Controller (DMAC) User Interface 22.7.1 DMAC Global Configuration Register 22.7.2 DMAC Enable Register 22.7.3 DMAC Software Single Request Register 22.7.4 DMAC Software Chunk Transfer Request Register 22.7.5 DMAC Software Last Transfer Flag Register 22.7.6 DMAC Error, Buffer Transfer and Chained Buffer Transfer Interrupt Enable Register 22.7.7 DMAC Error, Buffer Transfer and Chained Buffer Transfer Interrupt Disable Register 22.7.8 DMAC Error, Buffer Transfer and Chained Buffer Transfer Interrupt Mask Register 22.7.9 DMAC Error, Buffer Transfer and Chained Buffer Transfer Status Register 22.7.10 DMAC Channel Handler Enable Register 22.7.11 DMAC Channel Handler Disable Register 22.7.12 DMAC Channel Handler Status Register 22.7.13 DMAC Channel x [x = 0..5] Source Address Register 22.7.14 DMAC Channel x [x = 0..5] Destination Address Register 22.7.15 DMAC Channel x [x = 0..5] Descriptor Address Register 22.7.16 DMAC Channel x [x = 0..5] Control A Register 22.7.17 DMAC Channel x [x = 0..5] Control B Register 22.7.18 DMAC Channel x [x = 0..5] Configuration Register 22.7.19 DMAC Write Protect Mode Register 22.7.20 DMAC Write Protect Status Register 23. External Memory Bus 23.1 Description 23.2 Embedded Characteristics 23.3 Block Diagram 23.4 I/O Lines Description 23.5 Application Example 23.5.1 Hardware Interface 23.6 Product Dependencies 23.6.1 I/O Lines 23.7 Functional Description 23.7.1 Bus Multiplexing 23.7.2 Static Memory Controller 23.7.3 NAND Flash Controller 23.7.4 SDRAM Controller 23.7.5 ECC Controller 23.8 Implementation Examples 23.8.1 SDR-SDRAM Software Configuration (2 x 8-bit SDR-SDRAM) Software Configuration (1 x 16-bit SDR-SDRAM) 23.8.2 8-bit and 16-bit NAND Flash Software Configuration (8-bit and 16-bit NAND Flash) 23.8.3 NOR Flash on NCS0 Software Configuration (NOR Flash on NCS0) 24. AHB SDRAM Controller (SDRAMC) 24.1 Description 24.2 Embedded Characteristics 24.3 I/O Lines Description 24.4 Application Example 24.4.1 Software Interface 16-bit Memory Data Bus Width 24.5 Product Dependencies 24.5.1 SDRAM Device Initialization 24.5.2 I/O Lines 24.5.3 Interrupt 24.5.4 Power Management 24.7 AHB SDRAM Controller (SDRAMC) User Interface 24.7.1 SDRAMC Mode Register 24.7.2 SDRAMC Refresh Timer Register 24.7.3 SDRAMC Configuration Register 24.7.4 SDRAMC Low Power Register 24.7.5 SDRAMC Interrupt Enable Register 24.7.6 SDRAMC Interrupt Disable Register 24.7.7 SDRAMC Interrupt Mask Register 24.7.8 SDRAMC Interrupt Status Register 24.7.9 SDRAMC Memory Device Register 24.7.10 SDRAMC Configuration 1 Register 24.7.11 SDRAMC OCMS Register 25. Static Memory Controller (SMC) 25.1 Description 25.2 Embedded Characteristics 25.3 Block Diagram 25.4 I/O Lines Description 25.5 Multiplexed Signals 25.6 Application Example 25.6.1 Implementation Examples 25.6.2 Hardware Interface 25.7 Product Dependencies 25.7.1 I/O Lines 25.7.2 Power Management 25.7.3 Interrupt 25.8 External Memory Mapping 25.9 Connection to External Devices 25.9.1 Data Bus Width 25.9.2 Byte Write or Byte Select Access Byte Write Access Byte Select Access Signal Multiplexing 25.10 Standard Read and Write Protocols 25.10.1 Read Waveforms NRD Waveform NCS Waveform Read Cycle 25.10.2 Read Mode Read is Controlled by NRD (READ_MODE = 1): Read is Controlled by NCS (READ_MODE = 0) 25.10.3 Write Waveforms NWE Waveforms NCS Waveforms Write Cycle 25.10.4 Write Mode Write is Controlled by NWE (WRITE_MODE = 1) Write is Controlled by NCS (WRITE_MODE = 0) 25.10.5 Coding Timing Parameters 25.10.6 Reset Values of Timing Parameters 25.10.7 Usage Restriction For Read Operations For Write Operations 25.11 Scrambling/Unscrambling Function 25.12 Automatic Wait States 25.12.1 Chip Select Wait States 25.12.2 Early Read Wait State 25.12.3 Reload User Configuration Wait State User Procedure Slow Clock Mode Transition 25.12.4 Read to Write Wait State 25.13 Data Float Wait States 25.13.1 READ_MODE 25.13.2 TDF Optimization Enabled (TDF_MODE = 1) 25.13.3 TDF Optimization Disabled (TDF_MODE = 0) 25.14 External Wait 25.14.1 Restriction 25.14.2 Frozen Mode 25.14.3 Ready Mode 25.14.4 NWAIT Latency and Read/Write Timings 25.15 Slow Clock Mode 25.15.1 Slow Clock Mode Waveforms 25.15.2 Switching from (to) Slow Clock Mode to (from) Normal Mode 25.16 NAND Flash Controller Operations 25.16.1 NFC Overview 25.16.2 NFC Control Registers Building NFC Address Command Example. NFC Address Command NFC Data Address NFC DATA Status 25.16.3 NFC Initialization NAND Flash Controller Timing Engine 25.16.4 NFC SRAM NFC SRAM Mapping NFC SRAM Access Prioritization Algorithm 25.16.5 NAND Flash Operations Page Read Program Page 25.17 SMC Error Correcting Code Functional Description 25.17.1 Write Access 25.17.2 Read Access 25.18 Static Memory Controller (SMC) User Interface 25.18.1 SMC NFC Configuration Register 25.18.2 SMC NFC Control Register 25.18.3 SMC NFC Status Register 25.18.4 SMC NFC Interrupt Enable Register 25.18.5 SMC NFC Interrupt Disable Register 25.18.6 SMC NFC Interrupt Mask Register 25.18.7 SMC NFC Address Cycle Zero Register 25.18.8 SMC NFC Bank Register 25.18.9 SMC ECC Control Register 25.18.10 SMC ECC MODE Register 25.18.11 SMC ECC Status Register 1 25.18.12 SMC ECC Status Register 2 25.18.13 SMC ECC Parity Register 0 for a Page of 512/1024/2048/4096 Bytes 25.18.14 SMC ECC Parity Register 1 for a Page of 512/1024/2048/4096 Bytes 25.18.15 SMC ECC Parity Registers for 1 ECC per 512 Bytes for a Page of 512/2048/4096 Bytes, 9-bit Word 25.18.16 SMC ECC Parity Registers for 1 ECC per 256 Bytes for a Page of 512/2048/4096 Bytes, 8-bit Word 25.18.17 SMC Setup Register 25.18.18 SMC Pulse Register 25.18.19 SMC Cycle Register 25.18.20 SMC Timings Register 25.18.21 SMC Mode Register 25.18.22 SMC OCMS Register 25.18.23 SMC OCMS Key1 Register 25.18.24 SMC OCMS Key2 Register 25.18.25 SMC Write Protection Control 25.18.26 SMC Write Protection Status 26. Peripheral DMA Controller (PDC) 26.1 Description 26.2 Embedded Characteristics 26.3 Block Diagram 26.4 Functional Description 26.4.1 Configuration 26.4.2 Memory Pointers 26.4.3 Transfer Counters 26.4.4 Data Transfers 26.4.5 PDC Flags and Peripheral Status Register Receive Transfer End Transmit Transfer End Receive Buffer Full Transmit Buffer Empty 26.5 Peripheral DMA Controller (PDC) User Interface 26.5.1 Receive Pointer Register 26.5.2 Receive Counter Register 26.5.3 Transmit Pointer Register 26.5.4 Transmit Counter Register 26.5.5 Receive Next Pointer Register 26.5.6 Receive Next Counter Register 26.5.7 Transmit Next Pointer Register 26.5.8 Transmit Next Counter Register 26.5.9 Transfer Control Register 26.5.10 Transfer Status Register 27. Clock Generator 27.1 Description 27.2 Embedded Characteristics 27.3 Block Diagram 27.4 Slow Clock 27.4.1 Slow Clock RC Oscillator 27.4.2 Slow Clock Crystal Oscillator 27.5 Main Clock 27.5.2 3 to 20 MHz Crystal or Ceramic Resonator-based Oscillator 27.5.3 Main Clock Oscillator Selection 28. Power Management Controller (PMC) 28.1 Description 28.2 Embedded Characteristics 28.3 Block Diagram 28.8 Free Running Processor Clock 28.9 Programmable Clock Output Controller 28.10 Fast Startup 28.11 Main Crystal Clock Failure Detector 28.12 Programming Sequence 28.13 Clock Switching Details Master Clock Switching Timings Clock Switching Waveforms 28.14 Write Protection Registers 28.15 Power Management Controller (PMC) User Interface 28.15.1 PMC System Clock Enable Register 28.15.2 PMC System Clock Disable Register 28.15.3 PMC System Clock Status Register 28.15.4 PMC Peripheral Clock Enable Register 0 28.15.5 PMC Peripheral Clock Disable Register 0 28.15.6 PMC Peripheral Clock Status Register 0 28.15.7 PMC UTMI Clock Configuration Register 28.15.8 PMC Clock Generator Main Oscillator Register 28.15.9 PMC Clock Generator Main Clock Frequency Register 28.15.10 PMC Clock Generator PLLA Register 28.15.11 PMC Master Clock Register 28.15.12 PMC USB Clock Register 28.15.13 PMC Programmable Clock Register 28.15.14 PMC Interrupt Enable Register 28.15.15 PMC Interrupt Disable Register 28.15.16 PMC Status Register 28.15.17 PMC Interrupt Mask Register 28.15.18 PMC Fast Startup Mode Register 28.15.19 PMC Fast Startup Polarity Register 28.15.20 PMC Fault Output Clear Register 28.15.21 PMC Write Protect Mode Register 28.15.22 PMC Write Protect Status Register 28.15.23 PMC Peripheral Clock Enable Register 1 28.15.24 PMC Peripheral Clock Disable Register 1 28.15.25 PMC Peripheral Clock Status Register 1 28.15.26 PMC Peripheral Control Register 29. Chip Identifier (CHIPID) 29.1 Description 29.2 Embedded Characteristics 29.3 Chip Identifier (CHIPID) User Interface 29.3.1 Chip ID Register 29.3.2 Chip ID Extension Register 30. Synchronous Serial Controller (SSC) 30.1 Description 30.2 Embedded Characteristics 30.5 Pin Name List 30.6 Product Dependencies 30.6.1 I/O Lines 30.6.2 Power Management 30.6.3 Interrupt 30.7 Functional Description 30.7.1 Clock Management Transmitter Clock Management Receiver Clock Management Serial Clock Ratio Considerations 30.7.7 Data Format 30.7.8 Loop Mode 30.7.9 Interrupt 30.8 SSC Application Examples 30.8.1 Write Protection Registers 30.9 Synchronous Serial Controller (SSC) User Interface 30.9.1 SSC Control Register 30.9.2 SSC Clock Mode Register 30.9.3 SSC Receive Clock Mode Register 30.9.4 SSC Receive Frame Mode Register 30.9.5 SSC Transmit Clock Mode Register 30.9.6 SSC Transmit Frame Mode Register 30.9.7 SSC Receive Holding Register 30.9.8 SSC Transmit Holding Register 30.9.9 SSC Receive Synchronization Holding Register 30.9.10 SSC Transmit Synchronization Holding Register 30.9.11 SSC Receive Compare 0 Register 30.9.12 SSC Receive Compare 1 Register 30.9.13 SSC Status Register 30.9.14 SSC Interrupt Enable Register 30.9.15 SSC Interrupt Disable Register 30.9.16 SSC Interrupt Mask Register 30.9.17 SSC Write Protect Mode Register 30.9.18 SSC Write Protect Status Register 31. Parallel Input/Output Controller (PIO) 31.1 Description 31.2 Embedded Characteristics 31.3 Block Diagram 31.4 Product Dependencies 31.4.1 Pin Multiplexing 31.4.2 Power Management 31.4.3 Interrupt Generation 31.5 Functional Description 31.5.1 Pull-up Resistor Control 31.5.2 I/O Line or Peripheral Function Selection 31.5.3 Peripheral A or B Selection 31.5.4 Output Control 31.5.5 Synchronous Data Output 31.5.6 Multi Drive Control (Open Drain) 31.5.7 Output Line Timings 31.5.8 Inputs 31.5.9 Input Glitch and Debouncing Filters 31.5.10 Input Edge/Level Interrupt Example Interrupt Mode Configuration Edge or Level Detection Configuration Falling/Rising Edge or Low/High Level Detection Configuration. 31.5.11 I/O Lines Lock 31.6 I/O Lines Programming Example 31.6.1 Write Protection Registers 31.7 Parallel Input/Output Controller (PIO) User Interface 31.7.1 PIO Controller PIO Enable Register 31.7.2 PIO Controller PIO Disable Register 31.7.3 PIO Controller PIO Status Register 31.7.4 PIO Controller Output Enable Register 31.7.5 PIO Controller Output Disable Register 31.7.6 PIO Controller Output Status Register 31.7.7 PIO Controller Input Filter Enable Register 31.7.8 PIO Controller Input Filter Disable Register 31.7.9 PIO Controller Input Filter Status Register 31.7.10 PIO Controller Set Output Data Register 31.7.11 PIO Controller Clear Output Data Register 31.7.12 PIO Controller Output Data Status Register 31.7.13 PIO Controller Pin Data Status Register 31.7.14 PIO Controller Interrupt Enable Register 31.7.15 PIO Controller Interrupt Disable Register 31.7.16 PIO Controller Interrupt Mask Register 31.7.17 PIO Controller Interrupt Status Register 31.7.18 PIO Multi-driver Enable Register 31.7.19 PIO Multi-driver Disable Register 31.7.20 PIO Multi-driver Status Register 31.7.21 PIO Pull Up Disable Register 31.7.22 PIO Pull Up Enable Register 31.7.23 PIO Pull Up Status Register 31.7.24 PIO Peripheral AB Select Register 31.7.25 PIO System Clock Glitch Input Filtering Select Register 31.7.26 PIO Debouncing Input Filtering Select Register 31.7.27 PIO Glitch or Debouncing Input Filter Selection Status Register 31.7.28 PIO Slow Clock Divider Debouncing Register 31.7.29 PIO Output Write Enable Register 31.7.30 PIO Output Write Disable Register 31.7.31 PIO Output Write Status Register 31.7.32 Additional Interrupt Modes Enable Register 31.7.33 Additional Interrupt Modes Disable Register 31.7.34 Additional Interrupt Modes Mask Register 31.7.35 Edge Select Register 31.7.36 Level Select Register 31.7.37 Edge/Level Status Register 31.7.38 Falling Edge/Low Level Select Register 31.7.39 Rising Edge/High Level Select Register 31.7.40 Fall/Rise - Low/High Status Register 31.7.41 Lock Status Register 31.7.42 PIO Write Protect Mode Register 31.7.43 PIO Write Protect Status Register 32. Serial Peripheral Interface (SPI) 32.1 Description 32.2 Embedded Characteristics 32.3 Block Diagram 32.4 Application Block Diagram 32.5 Signal Description 32.6 Product Dependencies 32.6.1 I/O Lines 32.6.2 Power Management 32.6.3 Interrupt 32.7 Functional Description 32.7.1 Modes of Operation 32.7.2 Data Transfer 32.7.3 Master Mode Operations Master Mode Block Diagram Master Mode Flow Diagram Clock Generation Transfer Delays Peripheral Selection SPI Direct Access Memory Controller (DMAC) Peripheral Chip Select Decoding Peripheral Deselection without DMAC Peripheral Deselection with DMAC Mode Fault Detection 32.7.4 SPI Slave Mode 32.7.5 Write Protected Registers 32.8 Serial Peripheral Interface (SPI) User Interface 32.8.1 SPI Control Register 32.8.2 SPI Mode Register 32.8.3 SPI Receive Data Register 32.8.4 SPI Transmit Data Register 32.8.5 SPI Status Register 32.8.6 SPI Interrupt Enable Register 32.8.7 SPI Interrupt Disable Register 32.8.8 SPI Interrupt Mask Register 32.8.9 SPI Chip Select Register 32.8.10 SPI Write Protection Mode Register 32.8.11 SPI Write Protection Status Register 33. Two-wire Interface (TWI) 33.1 Description 33.2 Embedded Characteristics 33.3 List of Abbreviations 33.4 Block Diagram 33.5 Application Block Diagram 33.5.1 I/O Lines Description 33.6 Product Dependencies 33.6.1 I/O Lines 33.6.2 Power Management 33.6.3 Interrupt 33.7 Functional Description 33.7.1 Transfer Format 33.7.2 Modes of Operation 33.8 Master Mode 33.8.1 Definition 33.8.2 Application Block Diagram 33.8.3 Programming Master Mode 33.8.4 Master Transmitter Mode 33.8.5 Master Receiver Mode 33.8.6 Internal Address 7-bit Slave Addressing 10-bit Slave Addressing 33.8.7 Using the Peripheral DMA Controller (PDC) Data Transmit with the PDC Data Receive with the PDC 33.8.8 SMBUS Quick Command (Master Mode Only) 33.8.9 Read-write Flowcharts 33.9 Multi-master Mode 33.9.1 Definition 33.9.2 Different Multi-master Modes TWI as Master Only TWI as Master or Slave 33.10 Slave Mode 33.10.1 Definition 33.10.2 Application Block Diagram 33.10.3 Programming Slave Mode 33.10.4 Receiving Data Read Sequence Write Sequence Clock Synchronization Sequence General Call PDC 33.10.5 Data Transfer Read Operation Write Operation General Call Clock Synchronization Reversal after a Repeated Start 33.10.6 Read Write Flowcharts 33.11 Two-wire Interface (TWI) User Interface 33.11.1 TWI Control Register 33.11.2 TWI Master Mode Register 33.11.3 TWI Slave Mode Register 33.11.4 TWI Internal Address Register 33.11.5 TWI Clock Waveform Generator Register 33.11.6 TWI Status Register 33.11.7 TWI Interrupt Enable Register 33.11.8 TWI Interrupt Disable Register 33.11.9 TWI Interrupt Mask Register 33.11.10 TWI Receive Holding Register 33.11.11 TWI Transmit Holding Register 34. Universal Asynchronous Receiver Transceiver (UART) 34.1 Description 34.2 Embedded Characteristics 34.3 Block Diagram 34.4 Product Dependencies 34.4.1 I/O Lines 34.4.2 Power Management 34.4.3 Interrupt Source 34.5 UART Operations 34.5.1 Baud Rate Generator 34.5.2 Receiver Receiver Reset, Enable and Disable Start Detection and Data Sampling Receiver Ready Receiver Overrun Parity Error Receiver Framing Error 34.5.3 Transmitter Transmitter Reset, Enable and Disable Transmit Format Transmitter Control 34.5.4 Peripheral DMA Controller 34.5.5 Test Modes 34.6 Universal Asynchronous Receiver Transceiver (UART) User Interface 34.6.1 UART Control Register 34.6.2 UART Mode Register 34.6.3 UART Interrupt Enable Register 34.6.4 UART Interrupt Disable Register 34.6.5 UART Interrupt Mask Register 34.6.6 UART Status Register 34.6.7 UART Receiver Holding Register 34.6.8 UART Transmit Holding Register 34.6.9 UART Baud Rate Generator Register 35. Universal Synchronous Asynchronous Receiver Transmitter (USART) 35.1 Description 35.2 Embedded Characteristics 35.3 Block Diagram 35.4 Application Block Diagram 35.5 I/O Lines Description 35.6 Product Dependencies 35.6.1 I/O Lines 35.6.2 Power Management 35.6.3 Interrupt 35.7 Functional Description 35.7.1 Baud Rate Generator Baud Rate in Asynchronous Mode Fractional Baud Rate in Asynchronous Mode Baud Rate in Synchronous Mode or SPI Mode Baud Rate in ISO 7816 Mode 35.7.3 Synchronous and Asynchronous Modes Manchester Encoder Asynchronous Receiver Manchester Decoder Radio Interface: Manchester Encoded USART Application Synchronous Receiver Receiver Operations Parity Multidrop Mode Transmitter Timeguard Receiver Time-out Framing Error Transmit Break Receive Break Hardware Handshaking 35.7.4 ISO7816 Mode ISO7816 Mode Overview Protocol T = 0 Protocol T = 1 35.7.5 IrDA Mode IrDA Modulation IrDA Baud Rate IrDA Demodulator 35.7.6 RS485 Mode 35.7.7 SPI Mode Modes of Operation Baud Rate Data Transfer Receiver and Transmitter Control Character Transmission Character Reception Receiver Timeout 35.7.8 LIN Mode Modes of Operation Baud Rate Configuration Receiver and Transmitter Control Character Transmission Character Reception Header Transmission (Master Node Configuration) Header Reception (Slave Node Configuration) Slave Node Synchronization Identifier Parity Node Action Response Data Length Checksum Frame Slot Mode LIN Errors LIN Frame Handling LIN Frame Handling With The PDC Wake-up Request Bus Idle Time-out 35.7.9 Test Modes Normal Mode Automatic Echo Mode Local Loopback Mode Remote Loopback Mode 35.7.10 Write Protection Registers 35.8 Universal Synchronous Asynchronous Receiver Transmitter (USART) User Interface 35.8.1 USART Control Register 35.8.2 USART Mode Register 35.8.3 USART Interrupt Enable Register 35.8.4 USART Interrupt Disable Register 35.8.5 USART Interrupt Mask Register 35.8.6 USART Channel Status Register 35.8.7 USART Receive Holding Register 35.8.8 USART Transmit Holding Register 35.8.9 USART Baud Rate Generator Register 35.8.10 USART Receiver Time-out Register 35.8.11 USART Transmitter Timeguard Register 35.8.12 USART FI DI RATIO Register 35.8.13 USART Number of Errors Register 35.8.14 USART IrDA FILTER Register 35.8.15 USART Manchester Configuration Register 35.8.16 USART LIN Mode Register 35.8.17 USART LIN Identifier Register 35.8.18 USART Write Protect Mode Register 35.8.19 USART Write Protect Status Register 36. Timer Counter (TC) 36.1 Description 36.2 Embedded Characteristics 36.3 Block Diagram 36.4 Pin Name List 36.5 Product Dependencies 36.5.1 I/O Lines 36.5.2 Power Management 36.5.3 Interrupt Sources 36.5.4 Fault Output 36.6 Functional Description 36.6.1 Description 36.6.2 32-bit Counter 36.6.3 Clock Selection 36.6.4 Clock Control 36.6.5 Operating Modes 36.6.6 Trigger 36.6.7 Capture Mode 36.6.8 Capture Registers A and B 36.6.9 Trigger Conditions 36.6.10 Waveform Mode 36.6.11 Waveform Selection WAVSEL = 00 WAVSEL = 10 WAVSEL = 01 WAVSEL = 11 36.6.12 External Event/Trigger Conditions 36.6.13 Output Controller 36.6.14 Quadrature Decoder Description Input Pre-processing Direction Status and Change Detection Position and Rotation Measurement Speed Measurement 36.6.15 2-bit Gray Up/Down Counter for Stepper Motor 36.6.16 Fault Mode 36.6.17 Register Write Protection 36.7 Timer Counter (TC) User Interface 36.7.1 TC Channel Control Register 36.7.2 TC Channel Mode Register: Capture Mode 36.7.3 TC Channel Mode Register: Waveform Mode 36.7.4 TC Stepper Motor Mode Register 36.7.5 TC Counter Value Register 36.7.6 TC Register A 36.7.7 TC Register B 36.7.8 TC Register C 36.7.9 TC Status Register 36.7.10 TC Interrupt Enable Register 36.7.11 TC Interrupt Disable Register 36.7.12 TC Interrupt Mask Register 36.7.13 TC Block Control Register 36.7.14 TC Block Mode Register 36.7.15 TC QDEC Interrupt Enable Register 36.7.16 TC QDEC Interrupt Disable Register 36.7.17 TC QDEC Interrupt Mask Register 36.7.18 TC QDEC Interrupt Status Register 36.7.19 TC Fault Mode Register 36.7.20 TC Write Protection Mode Register 37. High Speed MultiMedia Card Interface (HSMCI) 37.1 Description 37.2 Embedded Characteristics 37.3 Block Diagram 37.4 Application Block Diagram 37.5 Pin Name List 37.6 Product Dependencies 37.6.1 I/O Lines 37.6.2 Power Management 37.6.3 Interrupt 37.7 Bus Topology 37.8 High Speed MultiMediaCard Operations 37.8.1 Command - Response Operation 37.8.2 Data Transfer Operation 37.8.3 Read Operation 37.8.4 Write Operation 37.8.5 WRITE_SINGLE_BLOCK Operation using DMA Controller 37.8.6 READ_SINGLE_BLOCK Operation using DMA Controller Block Length is Multiple of 4 Block Length is Not Multiple of 4 and Padding Not Used (ROPT field in HSMCI_DMA register set to 0) Block Length is Not Multiple of 4, with Padding Value (ROPT field in HSMCI_DMA register set to 1) 37.8.7 WRITE_MULTIPLE_BLOCK One Block per Descriptor 37.8.8 READ_MULTIPLE_BLOCK Block Length is a Multiple of 4 Block Length is Not Multiple of 4. (ROPT field in HSMCI_DMA register set to 0) Block Length is Not a Multiple of 4. (ROPT field in HSMCI_DMA register set to 1) 37.9 SD/SDIO Card Operation 37.9.1 SDIO Data Transfer Type 37.9.2 SDIO Interrupts 37.10 CE-ATA Operation 37.10.1 Executing an ATA Polling Command 37.10.2 Executing an ATA Interrupt Command 37.10.3 Aborting an ATA Command 37.10.4 CE-ATA Error Recovery 37.11 HSMCI Boot Operation Mode 37.11.1 Boot Procedure, Processor Mode 37.11.2 Boot Procedure DMA Mode 37.12 HSMCI Transfer Done Timings 37.12.1 Definition 37.12.2 Read Access 37.12.3 Write Access 37.13 Write Protection Registers 37.14 High Speed MultiMedia Card Interface (HSMCI) User Interface 37.14.1 HSMCI Control Register 37.14.2 HSMCI Mode Register 37.14.3 HSMCI Data Timeout Register 37.14.4 HSMCI SDCard/SDIO Register 37.14.5 HSMCI Argument Register 37.14.6 HSMCI Command Register 37.14.7 HSMCI Block Register 37.14.8 HSMCI Completion Signal Timeout Register 37.14.9 HSMCI Response Register 37.14.10 HSMCI Receive Data Register 37.14.11 HSMCI Transmit Data Register 37.14.12 HSMCI Status Register 37.14.13 HSMCI Interrupt Enable Register 37.14.14 HSMCI Interrupt Disable Register 37.14.15 HSMCI Interrupt Mask Register 37.14.16 HSMCI DMA Configuration Register 37.14.17 HSMCI Configuration Register 37.14.18 HSMCI Write Protect Mode Register 37.14.19 HSMCI Write Protect Status Register 37.14.20 HSMCI FIFOx Memory Aperture 38. Pulse Width Modulation (PWM) 38.1 Description 38.2 Embedded Characteristics 38.3 Block Diagram 38.4 I/O Lines Description 38.5 Product Dependencies 38.5.1 I/O Lines 38.5.2 Power Management 38.5.3 Interrupt Sources 38.5.4 Fault Inputs 38.6 Functional Description 38.6.1 PWM Clock Generator 38.6.2 PWM Channel Block Diagram Comparator 2-bit Gray Up/Down Counter for Stepper Motor Dead-Time Generator Output Override Fault Protection Synchronous Channels 38.6.3 PWM Comparison Units 38.6.4 PWM Event Lines 38.6.5 PWM Controller Operations Initialization Source Clock Selection Criteria Changing the Duty-Cycle, the Period and the Dead-Times Interrupts Write Protect Registers 38.7 Pulse Width Modulation (PWM) User Interface 38.7.1 PWM Clock Register 38.7.2 PWM Enable Register 38.7.3 PWM Disable Register 38.7.4 PWM Status Register 38.7.5 PWM Interrupt Enable Register 1 38.7.6 PWM Interrupt Disable Register 1 38.7.7 PWM Interrupt Mask Register 1 38.7.8 PWM Interrupt Status Register 1 38.7.9 PWM Sync Channels Mode Register 38.7.10 PWM Sync Channels Update Control Register 38.7.11 PWM Sync Channels Update Period Register 38.7.12 PWM Sync Channels Update Period Update Register 38.7.13 PWM Interrupt Enable Register 2 38.7.14 PWM Interrupt Disable Register 2 38.7.15 PWM Interrupt Mask Register 2 38.7.16 PWM Interrupt Status Register 2 38.7.17 PWM Output Override Value Register 38.7.18 PWM Output Selection Register 38.7.19 PWM Output Selection Set Register 38.7.20 PWM Output Selection Clear Register 38.7.21 PWM Output Selection Set Update Register 38.7.22 PWM Output Selection Clear Update Register 38.7.23 PWM Fault Mode Register 38.7.24 PWM Fault Status Register 38.7.25 PWM Fault Clear Register 38.7.26 PWM Fault Protection Value Register 38.7.27 PWM Fault Protection Enable Register 1 38.7.28 PWM Fault Protection Enable Register 2 38.7.29 PWM Event Line x Register 38.7.30 PWM Stepper Motor Mode Register 38.7.31 PWM Write Protect Control Register 38.7.32 PWM Write Protect Status Register 38.7.33 PWM Comparison x Value Register 38.7.34 PWM Comparison x Value Update Register 38.7.35 PWM Comparison x Mode Register 38.7.36 PWM Comparison x Mode Update Register 38.7.37 PWM Channel Mode Register 38.7.38 PWM Channel Duty Cycle Register 38.7.39 PWM Channel Duty Cycle Update Register 38.7.40 PWM Channel Period Register 38.7.41 PWM Channel Period Update Register 38.7.42 PWM Channel Counter Register 38.7.43 PWM Channel Dead Time Register 38.7.44 PWM Channel Dead Time Update Register 39. USB On-The-Go Interface (UOTGHS) 39.1 Description 39.2 Embedded Characteristics 39.3 Block Diagram 39.3.1 Application Block Diagram Device Mode Host and OTG Modes 39.3.2 I/O Lines Description 39.4 Product Dependencies 39.4.1 I/O Lines 39.4.2 Clocks 39.4.3 Interrupts 39.4.4 USB Pipe/Endpoint x FIFO Data Register (USBFIFOxDATA) 39.5 Functional Description 39.5.1 USB General Operation Introduction Power-On and Reset Interrupts MCU Power Modes Speed Control DPRAM Management Pad Suspend Customizing of OTG Timers Plug-In Detection ID Detection 39.5.2 USB Device Operation Introduction Power-On and Reset USB Reset Endpoint Reset Endpoint Activation Address Setup Suspend and Wake-up Detach Remote Wake-up STALL Request Management of Control Endpoints Management of IN Endpoints Management of OUT Endpoints Underflow Overflow HB IsoIn Error HB IsoFlush CRC Error Interrupts Test Modes 39.5.3 USB Host Operation Description of Pipes Power-On and Reset Device Detection USB Reset Pipe Reset Pipe Activation Address Setup Remote Wake-up Management of Control Pipes Management of IN Pipes Management of OUT Pipes CRC Error Interrupts 39.5.4 USB DMA Operation 39.5.5 USB DMA Channel Transfer Descriptor 39.6 USB On-The-Go Interface (UOTGHS) User Interface 39.6.1 USB General Registers General Control Register General Status Register General Status Clear Register General Status Set Register General Finite State Machine Register 39.6.2 USB Device Registers Device General Control Register Device Global Interrupt Status Register Device Global Interrupt Clear Register Device Global Interrupt Set Register Device Global Interrupt Mask Register Device Global Interrupt Disable Register Device Global Interrupt Enable Register Device Endpoint Register Device Frame Number Register Device Endpoint x Configuration Register Device Endpoint x Status Register Device Endpoint x Clear Register Device Endpoint x Set Register Device Endpoint x Mask Register Device Endpoint x Disable Register Device Endpoint x Enable Register Device DMA Channel x Next Descriptor Address Register Device DMA Channel x Address Register Device DMA Channel x Control Register Device DMA Channel x Status Register 39.6.3 USB Host Registers Host General Control Register Host Global Interrupt Status Register Host Global Interrupt Clear Register Host Global Interrupt Set Register Host Global Interrupt Mask Register Host Global Interrupt Disable Register Host Global Interrupt Enable Register Host Frame Number Register Host Address 1 Register Host Address 2 Register Host Address 3 Register Host Pipe Register Host Pipe x Configuration Register Host Pipe x Status Register Host Pipe x Clear Register Host Pipe x Set Register Host Pipe x Mask Register Host Pipe x Disable Register Host Pipe x Enable Register Host Pipe x IN Request Register Host Pipe x Error Register Host DMA Channel x Next Descriptor Address Register Host DMA Channel x Address Register Host DMA Channel x Control Register Host DMA Channel x Status Register 40. Controller Area Network (CAN) 40.1 Description 40.2 Embedded Characteristics 40.3 Block Diagram 40.4 Application Block Diagram 40.5 I/O Lines Description 40.6 Product Dependencies 40.6.1 I/O Lines 40.6.2 Power Management 40.6.3 Interrupt 40.7 CAN Controller Features 40.7.1 CAN Protocol Overview 40.7.2 Mailbox Organization Message Acceptance Procedure Receive Mailbox Transmit Mailbox 40.7.3 Time Management Unit 40.7.4 CAN 2.0 Standard Features CAN Bit Timing Configuration Error Detection Overload 40.7.5 Low-power Mode Enabling Low-power Mode Disabling Low-power Mode 40.8 Functional Description 40.8.1 CAN Controller Initialization 40.8.2 CAN Controller Interrupt Handling 40.8.3 CAN Controller Message Handling Receive Handling Transmission Handling Remote Frame Handling 40.8.4 CAN Controller Timing Modes Timestamping Mode Time Triggered Mode 40.8.5 Write Protected Registers 40.9 Controller Area Network (CAN) User Interface 40.9.1 CAN Mode Register 40.9.2 CAN Interrupt Enable Register 40.9.3 CAN Interrupt Disable Register 40.9.4 CAN Interrupt Mask Register 40.9.5 CAN Status Register 40.9.6 CAN Baudrate Register 40.9.7 CAN Timer Register 40.9.8 CAN Timestamp Register 40.9.9 CAN Error Counter Register 40.9.10 CAN Transfer Command Register 40.9.11 CAN Abort Command Register 40.9.12 CAN Write Protection Mode Register 40.9.13 CAN Write Protection Status Register 40.9.14 CAN Message Mode Register 40.9.15 CAN Message Acceptance Mask Register 40.9.16 CAN Message ID Register 40.9.17 CAN Message Family ID Register 40.9.18 CAN Message Status Register 40.9.19 CAN Message Data Low Register 40.9.20 CAN Message Data High Register 40.9.21 CAN Message Control Register 41. Ethernet MAC 10/100 (EMAC) 41.1 Description 41.2 Embedded Characteristics 41.4 Functional Description 41.4.1 Clock 41.4.2 Memory Interface FIFO Receive Buffers Transmit Buffer 41.4.3 Transmit Block 41.4.4 Pause Frame Support 41.4.5 Receive Block 41.4.6 Address Checking Block 41.4.7 Broadcast Address 41.4.8 Hash Addressing 41.4.9 Copy All Frames (or Promiscuous Mode) 41.4.10 Type ID Checking 41.4.11 VLAN Support 41.4.12 PHY Maintenance 41.4.13 Physical Interface RMII Transmit and Receive Operation 41.5 Programming Interface 41.5.1 Initialization Transmit Buffer List Address Matching Interrupts Transmitting Frames Receiving Frames 41.6 Ethernet MAC 10/100 (EMAC) User Interface 41.6.1 Network Control Register 41.6.2 Network Configuration Register 41.6.3 Network Status Register 41.6.4 Transmit Status Register 41.6.5 Receive Buffer Queue Pointer Register 41.6.6 Transmit Buffer Queue Pointer Register 41.6.7 Receive Status Register 41.6.8 Interrupt Status Register 41.6.9 Interrupt Enable Register 41.6.10 Interrupt Disable Register 41.6.11 Interrupt Mask Register 41.6.12 PHY Maintenance Register 41.6.13 Pause Time Register 41.6.14 Hash Register Bottom 41.6.15 Hash Register Top 41.6.16 Specific Address 1 Bottom Register 41.6.17 Specific Address 1 Top Register 41.6.18 Specific Address 2 Bottom Register 41.6.19 Specific Address 2 Top Register 41.6.20 Specific Address 3 Bottom Register 41.6.21 Specific Address 3 Top Register 41.6.22 Specific Address 4 Bottom Register 41.6.23 Specific Address 4 Top Register 41.6.24 Type ID Checking Register 41.6.25 User Input/Output Register 41.6.26 EMAC Statistic Registers Pause Frames Received Register Frames Transmitted OK Register Single Collision Frames Register Multicollision Frames Register Frames Received OK Register Frames Check Sequence Errors Register Alignment Errors Register Deferred Transmission Frames Register Late Collisions Register Excessive Collisions Register Transmit Underrun Errors Register Carrier Sense Errors Register Receive Resource Errors Register Receive Overrun Errors Register Receive Symbol Errors Register Excessive Length Errors Register Receive Jabbers Register Undersize Frames Register SQE Test Errors Register Received Length Field Mismatch Register 42. True Random Number Generator (TRNG) 42.1 Description 42.2 Embedded Characteristics 42.3 True Random Number Generator (TRNG) User Interface 42.3.1 TRNG Control Register 42.3.2 TRNG Interrupt Enable Register 42.3.3 TRNG Interrupt Disable Register 42.3.4 TRNG Interrupt Mask Register 42.3.5 TRNG Interrupt Status Register 42.3.6 TRNG Output Data Register 43. Analog-to-Digital Converter (ADC) 43.1 Description 43.2 Embedded Characteristics 43.3 Block Diagram 43.4 Signal Description 43.5 Product Dependencies 43.5.1 Power Management 43.5.2 Interrupt Sources 43.5.3 Analog Inputs 43.5.4 Temperature Sensor 43.5.5 I/O Lines 43.5.6 Timer Triggers 43.5.7 PWM Event Line 43.5.8 Fault Output 43.5.9 Conversion Performances 43.6 Functional Description 43.6.1 Analog-to-digital Conversion 43.6.2 Conversion Reference 43.6.3 Conversion Resolution 43.6.4 Conversion Results 43.6.5 Conversion Triggers 43.6.6 Sleep Mode and Conversion Sequencer 43.6.7 Comparison Window 43.6.8 Differential Inputs 43.6.9 Input Gain and Offset 43.6.10 ADC Timings 43.6.11 Buffer Structure 43.6.12 Fault Output 43.6.13 Write Protection Registers 43.7 Analog-to-Digital Converter (ADC) User Interface 43.7.1 ADC Control Register 43.7.2 ADC Mode Register 43.7.3 ADC Channel Sequence 1 Register 43.7.4 ADC Channel Sequence 2 Register 43.7.5 ADC Channel Enable Register 43.7.6 ADC Channel Disable Register 43.7.7 ADC Channel Status Register 43.7.8 ADC Last Converted Data Register 43.7.9 ADC Interrupt Enable Register 43.7.10 ADC Interrupt Disable Register 43.7.11 ADC Interrupt Mask Register 43.7.12 ADC Interrupt Status Register 43.7.13 ADC Overrun Status Register 43.7.14 ADC Extended Mode Register 43.7.15 ADC Compare Window Register 43.7.16 ADC Channel Gain Register 43.7.17 ADC Channel Offset Register 43.7.18 ADC Channel Data Register 43.7.19 ADC Analog Control Register 43.7.20 ADC Write Protect Mode Register 43.7.21 ADC Write Protect Status Register 44. Digital-to-Analog Converter Controller (DACC) 44.1 Description 44.2 Embedded Characteristics 44.3 Block Diagram 44.4 Signal Description 44.5 Product Dependencies 44.5.1 Power Management 44.5.2 Interrupt Sources 44.5.3 Conversion Performances 44.6 Functional Description 44.6.1 Digital-to-Analog Conversion 44.6.2 Conversion Results 44.6.3 Conversion Triggers 44.6.4 Conversion FIFO 44.6.5 Channel Selection 44.6.6 Sleep Mode 44.6.7 DACC Timings 44.6.8 Write Protection Registers 44.7 Analog Converter Controller (DACC) User Interface 44.7.1 DACC Control Register 44.7.2 DACC Mode Register 44.7.3 DACC Channel Enable Register 44.7.4 DACC Channel Disable Register 44.7.5 DACC Channel Status Register 44.7.6 DACC Conversion Data Register 44.7.7 DACC Interrupt Enable Register 44.7.8 DACC Interrupt Disable Register 44.7.9 DACC Interrupt Mask Register 44.7.10 DACC Interrupt Status Register 44.7.11 DACC Analog Current Register 44.7.12 DACC Write Protect Mode Register 44.7.13 DACC Write Protect Status Register 45. Electrical Characteristics 45.1 Absolute Maximum Ratings 45.2 DC Characteristics 45.3 Power Consumption 45.3.1 Backup Mode Current Consumption Backup Power Configuration 45.3.2 Wait and Sleep Mode Current Consumption Sleep Mode Wait Mode 45.3.3 Active Mode Power Consumption 45.3.4 Peripheral Power Consumption in Active Mode 45.4 Crystal Oscillators Characteristics 45.4.1 32 kHz RC Oscillator Characteristics 45.4.2 4/8/12 MHz RC Oscillators Characteristics 45.4.3 32.768 kHz Crystal Oscillator Characteristics 45.4.4 32.768 kHz Crystal Characteristics 45.4.5 32.768 kHz XIN32 Clock Input Characteristics in Bypass Mode 45.4.6 3 to 20 MHz Crystal Oscillator Characteristics 45.4.7 3 to 20 MHz Crystal Characteristics 45.4.8 3 to 20 MHz XIN Clock Input Characteristics in Bypass Mode 45.4.9 Crystal Oscillator Design Consideration Information Choosing a Crystal Printed Circuit Board (PCB) 45.5 UPLL, PLLA Characteristics 45.6 USB On-the-Go High Speed Port 45.6.1 Typical Connection 45.6.2 Electrical Characteristics USB Transceiver VBUS Pin Characteristics 45.6.3 Static Power Consumption 45.6.4 Dynamic Power Consumption 45.7 12-bit ADC Characteristics 45.7.1 Static Performance Characteristics 45.7.2 Dynamic Performance Characteristics Track and Hold Time versus Source Output Impedance 45.7.3 ADC Application Information 45.8 Temperature Sensor 45.9 12-bit DAC Characteristics 45.10 AC Characteristics 45.10.1 Master Clock Characteristics 45.10.2 I/O Characteristics 45.10.3 SPI Characteristics Maximum SPI Frequency Master Write Mode Master Read Mode Slave Read Mode Slave Write Mode SPI Timings 45.10.4 MCI Timings 45.10.5 SSC Timings 45.10.6 SMC Timings Read Timings Write Timings 45.10.7 USART in SPI Mode Timings 45.10.8 EMAC MII Mode RMII Mode 45.10.9 Two-wire Serial Interface Characteristics 45.10.10 Embedded Flash Characteristics 46. Mechanical Characteristics 46.1 Soldering Profile 46.2 Packaging Resources 47. Marking 48. Ordering Information 49. SAM3X/A Series Errata 49.1 Errata Revision A Parts 49.1.1 Flash Memory Flash: Flash Programming Flash: Fetching Error after Reading the Unique Identifier Flash: Boot Flash Programming Mapping Is Wrong Flash: Flash Programming 49.1.2 Backup Mode Backup mode: The PIO States Are Not Kept Backup Mode: VDDIO/VDDANA Backup Mode Power-Up Sequence 49.1.3 Pulse Width Modulation (PWM) PWM: Write Protection with PIO Lock Feature Not Usable 49.1.4 Analog to Digital Converter (ADC) ADC: First Conversion After Sleep ADC: Last Conversion Error ADC: Wrong First Conversions 49.1.5 JTAG Boundary JJTAG Boundary: PC0/ERASE 50. Revision History Table of Contents
0$ for 10pcs PCB. Register to get $100 free coupons