SAM4CM Series
Atmel | SMART ARM-based Flash MCU
DATASHEET
Description
The Atmel
®
| SMART SAM4CM series represents a family of system-on-chip
solutions for residential and polyphase metering applications. The devices offer
up to class 0.2 metrology accuracy over a dynamic range of 3000:1 within the
industrial temperature range and are compliant with ANSI C12.20-2002 and IEC
62053-22 standards.
A seamless extension of Atmel's SAM4, SAM4CP and SAM4C family of
microcontrollers and solutions for smart grid security and communications
applications, these metrology-enabled devices offer an unprecedented level of
integration and flexibility with dual 32-bit ARM
®
Cortex
®
-M4 RISC processors
running at a maximum speed of 120 MHz each
(1)
, up to 2 Mbytes of embedded
Flash, 304 Kbytes of SRAM and on-chip cache.
The unique dual ARM Cortex-M4 architecture supports implementation of signal
processing, application and communications firmware in independent partitions,
and offers the ability to extend program and data memory via parallel external bus
interface (EBI) to ensure scalability of the design to meet future requirements.
The peripheral set includes metrology-specific precision voltage reference, up to
seven (7) simultaneously sampled Sigma-Delta ADC subsystems supporting
three (3) voltage and four (4) current measurement channels (polyphase versions
only), an extensive set of embedded cryptographic features, anti-tamper, Floating
Point Unit (FPU), four USARTs, two UARTs, two TWIs, four SPIs, three 16-bit
PWMs, two 3-channel general-purpose 16-bit timers, 6-channel 10-bit ADC,
battery-backed RTC with <1 µA consumption and a 38 x 6 segmented LCD
controller.
To ensure the distinct separation of metrology and application or communication
functions, the SAM4CM integrates a dedicated Cortex-M4F core that manages all
necessary metrology resources and memory.
Atmel-11203E-ATARM-SAM4CM32-SAM4CM16-SAM4CM8-SAM4CM4-Datasheet_24-Oct-16
Features
Application/Master Core
̶
̶
̶
̶
̶
̶
ARM Cortex-M4 running at up to 120 MHz
(1)
Memory Protection Unit (MPU)
DSP Instruction
Thumb
®
-2 instruction set
Instruction and Data Cache Controller with 2 Kbytes Cache Memory
Memories
Up to 2 Mbytes of Embedded Flash for Program Code (I-Code bus) and Program Data (D-Code bus)
with Built-in ECC (2-bit error detection and 1-bit correction per 128 bits)
Up to 256 Kbytes of Embedded SRAM (SRAM0) for Program Data (System bus)
8 Kbytes of ROM with embedded bootloader routines (UART) and In-Application Programming (IAP)
routines
Coprocessor (provides ability to separate application, communication or metrology functions)
̶
̶
̶
̶
̶
̶
ARM Cortex-M4F running at up to 120 MHz
(1)
IEEE
®
754 Compliant, Single-precision Floating-Point Unit (FPU)
DSP Instruction
Thumb-2 instruction set
Instruction and Data Cache Controller with 2 Kbytes of Cache Memory
Memories
Up to 32 Kbytes of Embedded SRAM (SRAM1) for Program Code (I-Code bus) and Program Data
(D-Code bus and System bus)
Up to 16 Kbytes of Embedded SRAM (SRAM2) for Program Data (System bus)
Symmetrical/Asynchronous Dual Core Architecture
̶
̶
̶
̶
Interrupt-based Interprocessor Communication
Asynchronous Clocking
One Interrupt Controller (NVIC) for each core
Each Peripheral IRQ routed to each NVIC Input
̶
̶
̶
̶
High-performance AES 128 to 256 with various modes (GCM, CBC, ECB, CFB, CBC-MAC, CTR)
TRNG (up to 38 Mbit/s stream, with tested Diehard and FIPS)
Public Key Crypto accelerator and associated ROM library for RSA, ECC, DSA, ECDSA
Integrity Check Module (ICM) based on Secure Hash Algorithm (SHA1, SHA224, SHA256),
DMA-assisted
̶
̶
Up to two physical Anti-tamper Detection I/Os with Time Stamping and Immediate Clear of General
Backup Registers
Security Bit for Device Protection from JTAG Accesses
̶
Power Supply
Embedded core and LCD voltage regulator for single-supply operation
Power-on-Reset (POR), Brownout Detector (BOD) and Dual Watchdog for safe operation
Ultra-low-power Backup mode (< 0.5 µA Typical @ 25°C)
Cryptography
Safety
Shared System Controller
2
SAM4CM Series [DATASHEET]
Atmel-11203E-ATARM-SAM4CM32-SAM4CM16-SAM4CM8-SAM4CM4-Datasheet_24-Oct-16
̶
Clock
3 to 20 MHz oscillator supporting crystal, ceramic resonator or external clock signal. Also supports
clock failure detection
Ultra-low power 32.768 kHz oscillator supporting crystal or external clock signal and frequency
monitoring
High-precision 4/8/12 MHz factory-trimmed internal RC oscillator with on-the-fly trimming capability
One high-frequency PLL up to 240 MHz, one 8 MHz PLL with internal 32 kHz input, as source for
high-frequency PLL
Low-power slow clock internal RC oscillator as permanent clock
̶
̶
Ultra-low-power RTC with Gregorian and Persian Calendar, Waveform Generation in Backup mode
and Clock Calibration Circuitry for 32.768 kHz Crystal Frequency Compensation Circuitry
Up to 23 Peripheral DMA (PDC) Channels
̶
One Low-power Segmented LCD Controller
Display capacity of 38 segments and 6 common terminals
Software-selectable LCD output voltage (Contrast)
Low current consumption in Low-power mode
Can be used in Backup mode
Up to four USARTs with ISO7816, IrDA
®
, RS-485, SPI and Manchester Mode
Two 2-wire UARTs with one UART (UART1) supporting optical transceiver providing an electrically
isolated serial communication with hand-held equipment, such as calibrators, compliant with ANSI-
C12.18 or IEC62056-21 norms
Up to two 400 kHz Master/Slave and Multi-Master Two-wire Interfaces (I
2
C compatible)
Shared Peripherals
̶
̶
̶
̶
̶
̶
̶
̶
Up to four Serial Peripheral Interfaces (SPI)
Two 3-channel 16-bit Timer/Counters with Capture, Waveform, Compare and PWM modes
Quadrature Decoder Logic and 2-bit Gray Up/Down Counter for Stepper Motor
3-channel 16-bit Pulse Width Modulator
32-bit Real-time Timer
̶
̶
̶
̶
̶
̶
̶
Two-phase (SAM4CMS) or three-phase (SAM4CMP) Energy Metering Analog Front-End
Works with the Atmel MCU Metrology library
Compliant with Electricity Metering Standards up to Class 0.2 (ANSI C12.20-2002 and IEC 62053-22)
Four or seven Sigma-Delta ADC measurement channels, 20-bit resolution, 102 dB dynamic range
Current channels with Pre-gain (x1, x2, x4, x8) support directly connected Shunt, Current Transformer
and Rogowsky Coils sensors without any active components
Dedicated current channel for neutral current measurement (anti-tamper)
1.2V Precision Voltage Reference. Temperature drift: 10 ppm/C typical with software correction using
factory-programmed calibration registers (SAM4CMx8C/16C/32C devices), 50 ppm typical
(SAM4CMS4C devices)
̶
̶
Dedicated 2.8V LDO regulator to supply the Analog Front-End
3.0V to 3.6V operation, ultra-low-power: < 2.5 mW / channel @ 3.3V
̶
̶
̶
6-channel, 500 kS/s, Low-power 10-bit SAR ADC with Digital Averager providing 12-bit Resolution
at 30 kS/s
Software-controlled On-chip Reference ranging from 1.6V to 3.4V
Temperature Sensor and Backup Battery Voltage Measurement Channel
Energy Metering Analog Front-End
Analog Conversion Block
SAM4CM Series [DATASHEET]
Atmel-11203E-ATARM-SAM4CM32-SAM4CM16-SAM4CM8-SAM4CM4-Datasheet_24-Oct-16
3
Debug
̶
̶
Star Topology AHB-AP Debug Access Port Implementation with Common SW-DP / SWJ-DP Providing
Higher Performance than Daisy-chain Topology
Debug Synchronization between both Cores (cross triggering to/from each core for Halt and Run
Mode)
̶
Up to 57 I/O lines with External Interrupt Capability (edge or level sensitivity), Schmitt Trigger, Internal
Pull-up/pull-down, Debouncing, Glitch Filtering and On-die Series Resistor Termination
̶
100-lead LQFP, 14 x 14 mm, pitch 0.5 mm
1.
120 MHz: -40°C/+85°C, VDDCORE = 1.2V
I/O
Package
Note:
4
SAM4CM Series [DATASHEET]
Atmel-11203E-ATARM-SAM4CM32-SAM4CM16-SAM4CM8-SAM4CM4-Datasheet_24-Oct-16
1.
Configuration Summary
The SAM4CM devices differ in memory size, package and features.
Table 1-1
summarizes the different device
configurations.
Table 1-1.
Feature
Flash
SRAM
Package
Number of
PIOs
External Bus
Interface
16-bit Timer
16-bit PWM
UART /
USART
SPI
(1)
TWI
10-bit ADC
Channels
(2)
Energy
Metering
Analog Front
End
Cryptography
Segmented
LCD
Anti-
Tampering
Inputs
Flash Page
Size
Flash Pages
Flash Lock
Region Size
Flash Lock
Bits
Notes:
Configuration Summary
SAM4CMP32C SAM4CMP16C
2048 Kbytes
256 + 32 +16
Kbytes
1024 Kbytes
SAM4CMP8C
512 Kbytes
SAM4CMS32C SAM4CMS16C
2048 Kbytes
256 + 32 +16
Kbytes
LQFP 100
52
8-bit data
6 channels
3 channels
2/3
1/4 + 3
2
6
2/4
1/4 + 4
57
1024 Kbytes
SAM4CMS8C
512 Kbytes
128 + 16 + 8 Kbytes
SAM4CMS4C
256 Kbytes
128 + 16 + 8 Kbytes
7 channels (3 voltages, 4 currents)
4 channels (2 voltages, 2 currents)
AES, CPKCC, ICM (SHA), TRNG
33 segments × 6 commons
38 segments × 6 commons
1
2
512 bytes
2 × 2048
2048
1024
2 × 2048
8 Kbytes
2 × 128
128
64
2 × 128
128
64
32
2048
1024
512
1. 1/4 + 3 = Number of SPI Controllers / Number of Chip Selects + Number of USARTs with SPI mode.
2. One channel is reserved for internal temperature sensor and one channel for VDDBU measurement.
SAM4CM Series [DATASHEET]
Atmel-11203E-ATARM-SAM4CM32-SAM4CM16-SAM4CM8-SAM4CM4-Datasheet_24-Oct-16
5