SAM4N8 / SAM4N16 Atmel SMART ARM-based MCU DATASHEET Description The Atmel SMART SAM4N series is a member of a family of Flash microcontrollers based on the high performance 32-bit ARM Cortex -M4 RISC processor. It operates at a maximum speed of 100 MHz and features up to 1024 Kbytes of Flash and up to 80 Kbytes of SRAM. The peripheral set includes 3 USARTs, 4 UARTs, 3 TWIs, 1 SPI, as well as 1 PWM timer, 2 three-channel general-purpose 16-bit timers (with stepper motor and quadrature decoder logic support), a low-power RTC, a low-power RTT, 256-bit general purpose backup registers, a 10-bit ADC (up to 12-bit with digital averaging) and a 10-bit DAC with an internal voltage reference. The SAM4N 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 Real-time Event Managment allows peripherals to receive, react to and send events in Active and Sleep modes without processor intervention. The SAM4N device is a medium range general purpose microcontroller with the best ratio in terms of reduced power consumption, processing power and peripheral set. This enables the SAM4N to sustain a wide range of applications including industrial automation and M2M (machine-to-machine), energy metering, consumer and appliance, building and home control. It operates from 1.62V to 3.6V and is available in 48, 64, and 100-pin QFP, 48 and 64-pin QFN, and 100-ball BGA packages. The SAM4N series offers pin-to-pin compatibility with Atmel SAM4S, SAM3S, SAM3N and SAM7S devices, facilitating easy migration within the portfolio. The SAM4N series is the ideal migration path from the SAM4S for applications that require a reduced BOM cost. Atmel-11158B-ATARM-SAM4N8-SAM4N16-Datasheet 23-Mar-151. Features Core ARM Cortex-M4 running at up to 100 MHz Memory Protection Unit (MPU) Thumb -2 instruction Set Pin-to-pin compatible with SAM3N, SAM3S products (48/64/100-pin versions), SAM4S (64/100-pin versions) and SAM7S legacy products (64-pin version) Memories Up to 1024 Kbytes embedded Flash Up to 80 Kbytes embedded SRAM 8 Kbytes ROM with embedded boot loader routines (UART) and IAP routines, single-cycle access at maximum speed System Embedded voltage regulator for single supply operation Power-on-Reset (POR), Brown-out Detector (BOD) and Watchdog for safe operation Quartz or ceramic resonator oscillators: 3 to 20 MHz main power with Failure Detection and optional low power 32.768 kHz for RTC or device clock High precision 8/12 MHz factory trimmed internal RC oscillator with 4 MHz default frequency for device startup. In-application trimming access for frequency adjustment Slow Clock Internal RC oscillator as permanent low-power mode device clock PLL up to 240 MHz for device clock Temperature Sensor Up to 23 peripheral DMA (PDC) channels Low-power Modes Sleep, Wait, and Backup modes, down to 0.7 A in Backup mode with RTC, RTT, and GPBR Peripherals Up to 3 USARTs with ISO7816, IrDA (only USART0), RS-485, and SPI Mode Up to 4 two-wire UARTs Up to 3 Two-wire Interfaces (TWI) 1 SPI 2 Three-channel 16-bit Timer Counter blocks with capture, waveform, compare and PWM mode, Quadrature Decoder Logic and 2-bit Gray Up/Down for Stepper Motor 1 Four-channel 16-bit PWM 32-bit low-power Real-time Timer (RTT) and low-power Real-time Clock (RTC) with calendar and alarm features 256-bit General Purpose Backup Registers (GPBR) I/Os Up to 79 I/O lines with external interrupt capability (edge or level sensitivity), debouncing, glitch filtering and on- die Series Resistor Termination. Individually Programmable Open-drain, Pull-up and Pull-down resistor and Synchronous Output Three 32-bit Parallel Input/Output Controllers Analog One 10-bit ADC up to 510 ksps, with Digital Averaging Function providing Enhanced Resolution Mode up to 12- bit, up to 16-channels One 10-bit DAC up to 1 msps Internal voltage reference, 3V typ 2 SAM4N8/SAM4N16 DATASHEET Atmel-11158B-ATARM-SAM4N8-SAM4N16-Datasheet 23-Mar-15