SAM C20/C21 Family Data
Sheet
32-bit Arm Cortex-M0+ with 5V Support, CAN-FD, PTC, and
Advanced Analog
Features
Operating Conditions
• 2.7V – 5.5V, -40°C to +125°C, DC to 48 MHz
Core
• Arm
®
Cortex
®
-M0+ CPU running at up to 48 MHz:
– Single-cycle hardware multiplier
– Micro Trace Buffer
– Memory Protection Unit (MPU)
Memories
• 32/64/128/256 KB in-system self-programmable Flash
• 1/2/4/8 KB independent self-programmable Flash for EEPROM emulation
• 4/8/16/32 KB SRAM Main Memory
System
• Power-on Reset (POR) and Brown-out Detection (BOD)
• Internal and external clock options with 48 MHz to 96 MHz Fractional Digital Phase Locked Loop (FDPLL96M)
• External Interrupt Controller (EIC) (Interrupt pin debouncing is only available in SAM C20/C21N)
• 16 external interrupts
– Hardware debouncing (only available in SAM C20/C21N)
• One non-maskable interrupt
• Two-pin Serial Wire Debug (SWD) programming, test, and debugging interface
Low-Power
• Idle and Standby Sleep modes
• SleepWalking peripherals
Peripherals
• Hardware Divide and Square Root Accelerator (DIVAS)
• 12-channel Direct Memory Access Controller (DMAC)
• 12-channel Event System
• Up to eight 16-bit Timer/Counters (TC), configurable as either (see
Note):
Note:
Maximum and minimum capture is only available in SAM C21N devices.
– One 16-bit TC with compare/capture channels
– One 8-bit TC with compare/capture channels
– One 32-bit TC with compare/capture channels, by using two TCs
Two 24-bit and one 16-bit Timer/Counter for Control (TCC), with extended functions:
– Up to four compare channels with optional complementary output
– Generation of synchronized pulse width modulation (PWM) pattern across port pins
– Deterministic fault protection, fast decay and configurable dead-time between complementary output
– Dithering that increase resolution with up to 5 bit and reduce quantization error
•
©
2020 Microchip Technology Inc.
Datasheet
DS60001479D-page 1
SAM C20/C21 Family Data Sheet
•
•
•
•
•
Frequency Meter (The division reference clock is only available in the SAM C21N)
32-bit Real Time Counter (RTC) with clock/calendar function
Watchdog Timer (WDT)
CRC-32 generator
Up to two Controller Area Network (CAN) interfaces in the SAM C21:
– CAN 2.0A/B and CAN-FD (ISO 11898-1:2015)
• Each CAN interface have two selectable pin locations to switch between two external CAN
transceivers (without the need for an external switch)
Up to eight Serial Communication Interfaces (SERCOM), each configurable to operate as either:
– USART with full-duplex and single-wire half-duplex configuration
– I
2
C up to 3.4 MHz (Except SERCOM6 and SERCOM7)
– SPI
– LIN master/slave
– RS-485
– PMBus
One Configurable Custom Logic (CCL)
Up to Two 12-bit, 1 Msps Analog-to-Digital Converter (ADC) with up to 12 channels each (20 unique channels)
– Differential and single-ended input
– Automatic offset and gain error compensation
– Oversampling and decimation in hardware to support 13-, 14-, 15- or 16-bit resolution
One 16-bit Sigma-Delta Analog-to-Digital Converter (SDADC) with up to 3 differential channels in the SAM C21
10-bit, 350 ksps Digital-to-Analog Converter (DAC) in the SAM C21
Up to four Analog Comparators (AC) with Window Compare function
Integrated Temperature Sensor in the SAM C21
Peripheral Touch Controller (PTC)
– 256-Channel capacitive touch and proximity sensing
•
•
•
•
•
•
•
•
I/O
• Up to 84 programmable I/O pins
Qualification
•
AEC-Q100 Grade 1 (-40°C to 125°C)
Packages
• 100-pin TQFP
• 64-pin TQFP, VQFN
• 56-pin WLCSP
• 48-pin TQFP, VQFN
• 32-pin TQFP, VQFN
General
•
Drop in compatible with SAM D20 and SAM D21 (see
Note)
Note:
Only applicable to 32-pin, 48-pin, and 64-pin TQFP and VQFN packages.
©
2020 Microchip Technology Inc.
Datasheet
DS60001479D-page 2
SAM C20/C21 Family Data Sheet
Table of Contents
Features......................................................................................................................................................... 1
1.
2.
3.
4.
Configuration Summary........................................................................................................................ 13
Ordering Information............................................................................................................................. 17
Block Diagram.......................................................................................................................................18
Pinout.................................................................................................................................................... 20
4.1.
4.2.
4.3.
4.4.
5.
6.
SAM C21E / SAM C20E.............................................................................................................20
SAM C21G / SAM C20G............................................................................................................ 21
SAM C21J / SAM C20J.............................................................................................................. 22
SAM C21N / SAM C20N............................................................................................................ 24
Signal Descriptions List.........................................................................................................................25
I/O Multiplexing and Considerations..................................................................................................... 27
6.1.
6.2.
Multiplexed Signals.................................................................................................................... 27
Other Functions..........................................................................................................................33
7.
Power Supply and Start-Up Considerations..........................................................................................36
7.1.
7.2.
7.3.
7.4.
Power Domain Overview............................................................................................................36
Power Supply Considerations.................................................................................................... 37
Power-Up................................................................................................................................... 39
Power-On Reset and Brown-Out Detector................................................................................. 40
8.
9.
Product Mapping................................................................................................................................... 41
Memories.............................................................................................................................................. 45
9.1.
9.2.
9.3.
9.4.
9.5.
9.6.
Embedded Memories................................................................................................................. 45
Physical Memory Map................................................................................................................ 45
NVM User Row Mapping............................................................................................................46
NVM Software Calibration Area Mapping...................................................................................47
NVM Temperature Calibration Area Mapping, SAM C21........................................................... 47
Serial Number............................................................................................................................ 48
10. Processor and Architecture...................................................................................................................49
10.1.
10.2.
10.3.
10.4.
Cortex M0+ Processor............................................................................................................... 49
Nested Vector Interrupt Controller..............................................................................................50
Micro Trace Buffer...................................................................................................................... 53
High-Speed Bus System............................................................................................................ 54
11. PAC - Peripheral Access Controller...................................................................................................... 57
11.1.
11.2.
11.3.
11.4.
11.5.
11.6.
Overview.................................................................................................................................... 57
Features..................................................................................................................................... 57
Block Diagram............................................................................................................................ 57
Product Dependencies............................................................................................................... 57
Functional Description................................................................................................................58
Register Summary......................................................................................................................62
©
2020 Microchip Technology Inc.
Datasheet
DS60001479D-page 3
SAM C20/C21 Family Data Sheet
11.7. Register Description................................................................................................................... 63
12. Peripherals Configuration Summary..................................................................................................... 79
12.1. SAM C20/C21 N.........................................................................................................................79
12.2. SAM C20/C21 E/G/J.................................................................................................................. 83
13. DSU - Device Service Unit.................................................................................................................... 87
13.1. Overview.................................................................................................................................... 87
13.2. Features..................................................................................................................................... 87
13.3. Block Diagram............................................................................................................................ 87
13.4. Signal Description...................................................................................................................... 88
13.5. Product Dependencies............................................................................................................... 88
13.6. Debug Operation........................................................................................................................ 89
13.7. Chip Erase..................................................................................................................................90
13.8. Programming..............................................................................................................................91
13.9. Intellectual Property Protection.................................................................................................. 91
13.10. Device Identification................................................................................................................... 92
13.11. Functional Description................................................................................................................93
13.12. Register Summary..................................................................................................................... 98
13.13. Register Description...................................................................................................................99
14. DIVAS – Divide and Square Root Accelerator.................................................................................... 122
14.1.
14.2.
14.3.
14.4.
14.5.
14.6.
14.7.
14.8.
Overview.................................................................................................................................. 122
Features................................................................................................................................... 122
Block Diagram.......................................................................................................................... 122
Signal Description.................................................................................................................... 122
Product Dependencies............................................................................................................. 122
Functional Description..............................................................................................................123
Register Summary....................................................................................................................125
Register Description................................................................................................................. 125
15. Clock System...................................................................................................................................... 133
15.1.
15.2.
15.3.
15.4.
15.5.
15.6.
15.7.
Clock Distribution..................................................................................................................... 133
Synchronous and Asynchronous Clocks..................................................................................134
Register Synchronization......................................................................................................... 134
Enabling a Peripheral............................................................................................................... 135
On-demand, Clock Requests................................................................................................... 135
Power Consumption vs. Speed................................................................................................ 136
Clocks after Reset.................................................................................................................... 136
16. GCLK - Generic Clock Controller........................................................................................................ 137
16.1.
16.2.
16.3.
16.4.
16.5.
16.6.
16.7.
16.8.
Overview.................................................................................................................................. 137
Features................................................................................................................................... 137
Block Diagram.......................................................................................................................... 137
Signal Description.................................................................................................................... 138
Product Dependencies............................................................................................................. 138
Functional Description..............................................................................................................139
Register Summary....................................................................................................................144
Register Description................................................................................................................. 145
©
2020 Microchip Technology Inc.
Datasheet
DS60001479D-page 4
SAM C20/C21 Family Data Sheet
17. MCLK – Main Clock............................................................................................................................ 154
17.1.
17.2.
17.3.
17.4.
17.5.
17.6.
17.7.
17.8.
Overview.................................................................................................................................. 154
Features................................................................................................................................... 154
Block Diagram.......................................................................................................................... 154
Signal Description.................................................................................................................... 154
Product Dependencies............................................................................................................. 154
Functional Description..............................................................................................................156
Register Summary....................................................................................................................161
Register Description................................................................................................................. 161
18. RSTC – Reset Controller.................................................................................................................... 176
18.1.
18.2.
18.3.
18.4.
18.5.
18.6.
18.7.
18.8.
Overview.................................................................................................................................. 176
Features................................................................................................................................... 176
Block Diagram.......................................................................................................................... 176
Signal Description.................................................................................................................... 176
Product Dependencies............................................................................................................. 176
Functional Description..............................................................................................................177
Register Summary....................................................................................................................179
Register Description................................................................................................................. 179
19. PM – Power Manager......................................................................................................................... 181
19.1.
19.2.
19.3.
19.4.
19.5.
19.6.
19.7.
19.8.
Overview.................................................................................................................................. 181
Features................................................................................................................................... 181
Block Diagram.......................................................................................................................... 181
Signal Description.................................................................................................................... 181
Product Dependencies............................................................................................................. 181
Functional Description..............................................................................................................182
Register Summary....................................................................................................................187
Register Description................................................................................................................. 187
20. OSCCTRL – Oscillators Controller......................................................................................................190
20.1.
20.2.
20.3.
20.4.
20.5.
20.6.
20.7.
20.8.
Overview.................................................................................................................................. 190
Features................................................................................................................................... 190
Block Diagram.......................................................................................................................... 191
Signal Description.................................................................................................................... 191
Product Dependencies............................................................................................................. 191
Functional Description..............................................................................................................192
Register Summary....................................................................................................................201
Register Description................................................................................................................. 202
21. OSC32KCTRL – 32KHz Oscillators Controller................................................................................... 228
21.1.
21.2.
21.3.
21.4.
21.5.
21.6.
21.7.
Overview.................................................................................................................................. 228
Features................................................................................................................................... 228
Block Diagram.......................................................................................................................... 229
Signal Description.................................................................................................................... 229
Product Dependencies............................................................................................................. 229
Functional Description..............................................................................................................231
Register Summary....................................................................................................................236
©
2020 Microchip Technology Inc.
Datasheet
DS60001479D-page 5