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-15
1.
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
Packages
̶
100-lead LQFP – 14 x 14 mm, pitch 0.5 mm
̶
100-ball TFBGA – 9 x 9 mm, pitch 0.8 mm
̶
100-ball VFBGA – 7 x 7 mm, pitch 0.65 mm
̶
64-lead LQFP – 10 x 10 mm, pitch 0.5 mm
̶
64-pad QFN – 9 x 9 mm, pitch 0.5 mm
̶
48-lead LQFP – 7 x7 mm, pitch 0.5 mm
̶
48-pad QFN – 7 x 7 mm, pitch 0.5 mm
1.1
Configuration Summary
The SAM4N series devices differ in memory size, package and features.
Table 1-1
summarizes the configurations
of the device family.
Table 1-1.
Feature
Flash
SRAM
Package
Number of PIOs
10-bit ADC
10-bit DAC
16-bit Timer
PDC Channels
USART/UART
SPI
TWI
PWM
Notes:
1.
2.
3.
4.
5.
Configuration Summary
SAM4N16C
1024 Kbytes
80 Kbytes
LQFP100
TFBGA100
VFBGA100
79
17 ch
(1)
1 ch
6
23
3/4
4
(3)
3
7
(4)
SAM4N16B
1024 Kbytes
80 Kbytes
LQFP64
QFN64
47
11 ch
(1)
1 ch
6
(2)
SAM4N8C
512 Kbytes
64 Kbytes
LQFP100
TFBGA100
VFBGA100
79
17 ch
(1)
1 ch
6
23
3/4
4
(3)
3
7
(4)
SAM4N8B
512 Kbytes
64 Kbytes
LQFP64
QFN64
47
11 ch
(1)
1 ch
6
(2)
SAM4N8A
512 Kbytes
64 Kbytes
LQFP48
QFN48
34
9 ch
(1)
–
6
(5)
23
1/4
2
(3)
3
4
(4)
23
2/4
3
(3)
3
4
(4)
23
2/4
3
(3)
3
4
(4)
Includes Temperature Sensor
Only 3 channels output
USARTs with SPI mode are taken into account.
Timer Counter in PWM mode is taken into account
Only 2 channels output
SAM4N8/SAM4N16 [DATASHEET]
Atmel-11158B-ATARM-SAM4N8-SAM4N16-Datasheet_23-Mar-15
3
2.
Block Diagram
4
Atmel-11158B-ATARM-SAM4N8-SAM4N16-Datasheet_23-Mar-15
See
Table 1-1
for detailed configurations of memory size, package and features of the SAM4N devices.
SAM4N8/SAM4N16 [DATASHEET]
Figure 2-1.
SAM4N 100-pin Version Block Diagram
TD
I
TD
O
TM
S
TC /S
K/ WD
SW IO
CL
JT
K
AG
SE
L
N
DI
VD
DO
VD
UT
System Controller
TST
XIN
XOUT
PCK[2:0]
RC Oscillator
4/8/12 MHz
PMC
In-Circuit Emulator
3–20 MHz
Oscillator
Voltage
Regulator
JTAG and Serial Wire
Flash
Unique ID
PLL
Cortex-M4 Processor
f
MAX
100 MHz
NVIC
24-bit SysTick Counter
MPU
ROM
8 Kbytes
SRAM
80 Kbytes
64 Kbytes
Flash
1024 Kbytes
512 Kbytes
WKUP[15:0]
SUPC
XIN32
XOUT32
32K Osc
32K RC
Tamper Detection
ERASE
RTCOUT0
8 GPBR
S
I/D
RTC
RTT
VDDPLL
VDDIO
VDDCORE
NRST
M
POR
RSTC
M
S
S
S
3-layer Bus Matrix
f
MAX
100 MHz
S
Peripheral Bridge
SM
WDT
M
PDC
PIO A/B/C
PDC
PDC
PDC
PDC
PDC
PDC
PDC
PDC
3x
TWI
UART0
UART1
UART2
UART3
3x
USART
PIO
Timer
Counter
0
Timer
Counter
1
10-bit
ADC
Temp.
Sensor
10-bit
DACC
SPI
PWM
PI PI
O OD
DC 0
PI EN ..7
O 1
DC ..2
CL
K
TC
LK
TI 0.
O .2
TI A0.
O .2
B0
..2
TC
L
TI K3.
O .5
TI A3.
O .5
B3
..5
AD
T
AD RG
0.
.1
5
UR
X
UT D0
XD ..2
0.
.2
DA
DA C0
TR
G
M
IS
M O
O
S
NP S P I
CS C K
0.
.3
X
UT D3
XD
3
SC
K
TX 0..2
D
RX 0..
D 2
RT 0..
S 2
CT 0..
S0 2
..2
TW
TW D
0
CK ..2
0.
.2
AD
VR
PW
M
0.
.3
UR
EF
P
3.
Signals Description
Table 3-1
gives details on signal names classified by peripheral.
Table 3-1.
Signal Name
Signal Description List
Function
Type
Power Supplies
Active
Level
Voltage
Reference
Comments
VDDIO
VDDIN
VDDOUT
VDDPLL
VDDCORE
GND
Peripherals I/O Lines Power Supply
Voltage Regulator, ADC and DAC Power
Supply
Voltage Regulator Output
Oscillator Power Supply
Core Chip Power Supply
Ground
Power
Power
Power
Power
Power
Ground
1.62V to 3.6V
1.6V to 3.6V
1.2V Output
1.08V to 1.32V
1.08V to 1.32V
Connected externally to
VDDOUT
Clocks, Oscillators and PLLs
XIN
XOUT
XIN32
XOUT32
PCK0–PCK2
Main Oscillator Input
Main Oscillator Output
Slow Clock Oscillator Input
Slow Clock Oscillator Output
Programmable Clock Output
Input
Output
Input
Output
Output
ICE and JTAG
TCK
TDI
TDO
TRACESWO
SWDIO
SWCLK
TMS
JTAGSEL
Test Clock
Test Data In
Test Data Out
Trace Asynchronous Data Out
Serial Wire Input/Output
Serial Wire Clock
Test Mode Select
JTAG Selection
Input
Input
Output
Output
I/O
Input
Input
Input
Flash Memory
ERASE
Flash and NVM Configuration Bits Erase
Command
Input
High
VDDIO
Pull-down (15 k
Ω
) resistor
High
VDDIO
VDDIO
VDDIO
VDDIO
VDDIO
VDDIO
VDDIO
VDDIO
No pull-up resistor
Pull-down resistor
No pull-up resistor
No pull-up resistor
VDDIO
VDDIO
Reset/Test
NRST
TST
Microcontroller Reset
Test Mode Select
I/O
Input
Low
VDDIO
VDDIO
Pull-up resistor
Pull-down resistor
Universal Asynchronous Receiver Transmitter - UARTx
URXDx
UTXDx
UART Receive Data
UART Transmit Data
Input
Output
SAM4N8/SAM4N16 [DATASHEET]
Atmel-11158B-ATARM-SAM4N8-SAM4N16-Datasheet_23-Mar-15
5