sam c21 family - microchip technologyww1.microchip.com/downloads/en/devicedoc/60001479a.pdf–...

1118
SAM C21 Family 32-bit Cortex M0+ with 5V support, CAN-FD, PTC and Advanced Analog Introduction The SAM C21 is a series of microcontrollers optimized for industrial automation, appliances and other 5V applications using the 32-bit ARM ® Cortex ® -M0+ processor, ranging from 32- to 100-pins with up to 256KB Flash and 32KB of SRAM and operate at a maximum frequency of 48MHz and reach 2.46 CoreMark ® /MHz. The SAM C21 devices are designed for simple and intuitive migration with identical peripheral modules, hex compatible code, identical linear address map and pin compatible migration paths between all devices in the product series. All devices include intelligent and flexible peripherals, Event System for inter-peripheral signaling, and support for capacitive touch button, slider and wheel user interfaces. SAM C21 devices are pin compatible to the SAM D and SAM C family of general purpose microcontrollers. Features Processor ARM Cortex-M0+ CPU running at up to 48MHz Single-cycle hardware multiplier Micro Trace Buffer Memory Protection Unit (MPU) Memories 32/64/128/256KB in-system self-programmable Flash 1/2/4/8KB independent self-programmable Flash for EEPROM emulation 4/8/16/32KB SRAM Main Memory System Power-on reset (POR) and brown-out detection (BOD) Internal and external clock options with 48MHz to 96MHz Fractional Digital Phase Locked Loop (FDPLL96M) External Interrupt Controller (EIC) (Interrupt pin debouncing is only available in SAM C21N) 16 external interrupts Hardware debouncing (only on the 100Pin TQFP) One non-maskable interrupt Two-pin Serial Wire Debug (SWD) programming, test and debugging interface Low Power Idle and standby sleep modes SleepWalking peripherals © 2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 1

Upload: dinhtu

Post on 10-May-2018

288 views

Category:

Documents


12 download

TRANSCRIPT

  • SAM C21 Family 32-bit Cortex M0+ with 5V support, CAN-FD, PTC and

    Advanced Analog

    Introduction

    The SAM C21 is a series of microcontrollers optimized for industrial automation, appliances and other 5Vapplications using the 32-bit ARM Cortex-M0+ processor, ranging from 32- to 100-pins with up to256KB Flash and 32KB of SRAM and operate at a maximum frequency of 48MHz and reach 2.46CoreMark/MHz. The SAM C21 devices are designed for simple and intuitive migration with identicalperipheral modules, hex compatible code, identical linear address map and pin compatible migrationpaths between all devices in the product series. All devices include intelligent and flexible peripherals,Event System for inter-peripheral signaling, and support for capacitive touch button, slider and wheel userinterfaces.

    SAM C21 devices are pin compatible to the SAM D and SAM C family of general purposemicrocontrollers.

    Features

    Processor ARM Cortex-M0+ CPU running at up to 48MHz

    Single-cycle hardware multiplier Micro Trace Buffer Memory Protection Unit (MPU)

    Memories 32/64/128/256KB in-system self-programmable Flash 1/2/4/8KB independent self-programmable Flash for EEPROM emulation 4/8/16/32KB SRAM Main Memory

    System Power-on reset (POR) and brown-out detection (BOD) Internal and external clock options with 48MHz to 96MHz Fractional Digital Phase Locked

    Loop (FDPLL96M) External Interrupt Controller (EIC) (Interrupt pin debouncing is only available in SAM C21N) 16 external interrupts

    Hardware debouncing (only on the 100Pin TQFP) One non-maskable interrupt Two-pin Serial Wire Debug (SWD) programming, test and debugging interface

    Low Power Idle and standby sleep modes SleepWalking peripherals

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 1

  • 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(2):

    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 Timer/Counters and one 16-bit Timer/Counter for Control (TCC), with extendedfunctions:

    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

    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:

    CAN 2.0A/B CAN-FD 1.0

    Each CAN interface have two selectable pin locations to switch between two externalCAN 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 I2C up to 3.4MHz (Except SERCOM6 and SERCOM7) SPI LIN master/slave RS-485 PMBus

    One Configurable Custom Logic (CCL) Two 12-bit, 1Msps Analog-to-Digital Converter (ADC) with up to 12 channels each (20 unique

    channels in total) 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 10-bit, 350ksps Digital-to-Analog Converter (DAC) Four Analog Comparators (AC) with window compare function Integrated Temperature Sensor Peripheral Touch Controller (PTC)

    256-Channel capacitive touch and proximity sensing I/O

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 2

  • Up to 84 programmable I/O pins Drop in compatible with SAM D20 and SAM D21(1)

    Packages 100-pin TQFP 64-pin TQFP, QFN 56-pin WLCSP 48-pin TQFP, QFN 32-pin TQFP, QFN

    Operating Voltage 2.7V 5.5V

    1. Only applicable for 32-, 48- and 64-pin TQFP and QFN packages.2. Maximum and minimum capture is only available in SAM C21N

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 3

  • Table of Contents

    Introduction......................................................................................................................1

    Features.......................................................................................................................... 1

    1. Description...............................................................................................................14

    2. Configuration Summary...........................................................................................15

    3. Ordering Information................................................................................................173.1. SAM C21E..................................................................................................................................173.2. SAM C21G................................................................................................................................. 183.3. SAM C21J.................................................................................................................................. 193.4. SAM C21N................................................................................................................................. 203.5. Device Identification................................................................................................................... 20

    4. Block Diagram......................................................................................................... 22

    5. Pinout...................................................................................................................... 255.1. SAM C21E..................................................................................................................................255.2. SAM C21G................................................................................................................................. 265.3. SAM C21J.................................................................................................................................. 275.4. SAM C21N................................................................................................................................. 29

    6. Signal Descriptions List........................................................................................... 30

    7. I/O Multiplexing and Considerations........................................................................327.1. Multiplexed Signals.................................................................................................................... 327.2. Other Functions..........................................................................................................................35

    8. Power Supply and Start-Up Considerations............................................................ 388.1. Power Domain Overview............................................................................................................388.2. Power Supply Considerations.................................................................................................... 398.3. Power-Up................................................................................................................................... 418.4. Power-On Reset and Brown-Out Detector.................................................................................41

    9. Product Mapping..................................................................................................... 43

    10. Memories.................................................................................................................4510.1. Embedded Memories................................................................................................................. 4510.2. Physical Memory Map................................................................................................................4510.3. NVM User Row Mapping............................................................................................................4610.4. NVM Software Calibration Area Mapping...................................................................................4710.5. NVM Temperature Calibration Area Mapping.............................................................................4810.6. Serial Number............................................................................................................................ 48

    11. Processor and Architecture..................................................................................... 50

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 4

  • 11.1. Cortex M0+ Processor............................................................................................................... 5011.2. Nested Vector Interrupt Controller..............................................................................................5211.3. Micro Trace Buffer......................................................................................................................5411.4. High-Speed Bus System............................................................................................................ 54

    12. PAC - Peripheral Access Controller.........................................................................5712.1. Overview.................................................................................................................................... 5712.2. Features..................................................................................................................................... 5712.3. Block Diagram............................................................................................................................5712.4. Product Dependencies...............................................................................................................5712.5. Functional Description................................................................................................................5812.6. Register Summary......................................................................................................................6212.7. Register Description...................................................................................................................63

    13. Peripherals Configuration Summary........................................................................7613.1. SAM C21N................................................................................................................................. 7613.2. SAM C21J, G, E.........................................................................................................................78

    14. DSU - Device Service Unit...................................................................................... 8114.1. Overview.................................................................................................................................... 8114.2. Features..................................................................................................................................... 8114.3. Block Diagram............................................................................................................................8114.4. Signal Description...................................................................................................................... 8114.5. Product Dependencies...............................................................................................................8214.6. Debug Operation........................................................................................................................8314.7. Chip Erase..................................................................................................................................8414.8. Programming..............................................................................................................................8514.9. Intellectual Property Protection.................................................................................................. 8514.10. Device Identification...................................................................................................................8714.11. Functional Description................................................................................................................8814.12. Register Summary..................................................................................................................... 9314.13. Register Description...................................................................................................................95

    15. DIVAS Divide and Square Root Accelerator.......................................................11715.1. Overview...................................................................................................................................11715.2. Features................................................................................................................................... 11715.3. Block Diagram.......................................................................................................................... 11715.4. Signal Description.....................................................................................................................11715.5. Product Dependencies............................................................................................................. 11715.6. Functional Description.............................................................................................................. 11815.7. Register Summary....................................................................................................................12115.8. Register Description.................................................................................................................121

    16. Clock System.........................................................................................................12816.1. Clock Distribution..................................................................................................................... 12816.2. Synchronous and Asynchronous Clocks..................................................................................12916.3. Register Synchronization......................................................................................................... 12916.4. Enabling a Peripheral...............................................................................................................13116.5. On-demand, Clock Requests................................................................................................... 131

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 5

  • 16.6. Power Consumption vs. Speed................................................................................................13216.7. Clocks after Reset....................................................................................................................132

    17. GCLK - Generic Clock Controller.......................................................................... 13317.1. Overview.................................................................................................................................. 13317.2. Features................................................................................................................................... 13317.3. Block Diagram..........................................................................................................................13317.4. Signal Description.................................................................................................................... 13417.5. Product Dependencies.............................................................................................................13417.6. Functional Description..............................................................................................................13517.7. Register Summary....................................................................................................................14017.8. Register Description.................................................................................................................141

    18. MCLK Main Clock...............................................................................................14918.1. Overview.................................................................................................................................. 14918.2. Features................................................................................................................................... 14918.3. Block Diagram..........................................................................................................................14918.4. Signal Description.................................................................................................................... 14918.5. Product Dependencies.............................................................................................................14918.6. Functional Description..............................................................................................................15118.7. Register Summary - MCLK...................................................................................................... 15618.8. Register Description.................................................................................................................156

    19. RSTC Reset Controller.......................................................................................16919.1. Overview.................................................................................................................................. 16919.2. Features................................................................................................................................... 16919.3. Block Diagram..........................................................................................................................16919.4. Signal Description.................................................................................................................... 16919.5. Product Dependencies.............................................................................................................16919.6. Functional Description..............................................................................................................17019.7. Register Summary....................................................................................................................17319.8. Register Description.................................................................................................................173

    20. PM Power Manager............................................................................................17420.1. Overview.................................................................................................................................. 17420.2. Features................................................................................................................................... 17420.3. Block Diagram..........................................................................................................................17420.4. Signal Description.................................................................................................................... 17420.5. Product Dependencies.............................................................................................................17420.6. Functional Description..............................................................................................................17520.7. Register Summary....................................................................................................................17920.8. Register Description.................................................................................................................179

    21. OSCCTRL Oscillators Controller........................................................................18121.1. Overview.................................................................................................................................. 18121.2. Features................................................................................................................................... 18121.3. Block Diagram..........................................................................................................................18221.4. Signal Description.................................................................................................................... 18221.5. Product Dependencies.............................................................................................................182

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 6

  • 21.6. Functional Description..............................................................................................................18321.7. Register Summary....................................................................................................................19321.8. Register Description.................................................................................................................194

    22. OSC32KCTRL 32KHz Oscillators Controller......................................................21522.1. Overview.................................................................................................................................. 21522.2. Features................................................................................................................................... 21522.3. Block Diagram..........................................................................................................................21622.4. Signal Description.................................................................................................................... 21622.5. Product Dependencies.............................................................................................................21622.6. Functional Description..............................................................................................................21822.7. Register Summary....................................................................................................................22422.8. Register Description.................................................................................................................224

    23. SUPC Supply Controller.....................................................................................23623.1. Overview.................................................................................................................................. 23623.2. Features................................................................................................................................... 23623.3. Block Diagram..........................................................................................................................23723.4. Signal Description.................................................................................................................... 23723.5. Product Dependencies.............................................................................................................23723.6. Functional Description..............................................................................................................23823.7. Register Summary....................................................................................................................24323.8. Register Description.................................................................................................................243

    24. WDT Watchdog Timer........................................................................................ 25424.1. Overview.................................................................................................................................. 25424.2. Features................................................................................................................................... 25424.3. Block Diagram..........................................................................................................................25524.4. Signal Description.................................................................................................................... 25524.5. Product Dependencies.............................................................................................................25524.6. Functional Description..............................................................................................................25624.7. Register Summary....................................................................................................................26224.8. Register Description.................................................................................................................262

    25. RTC Real-Time Counter.....................................................................................26925.1. Overview.................................................................................................................................. 26925.2. Features................................................................................................................................... 26925.3. Block Diagram..........................................................................................................................26925.4. Signal Description.................................................................................................................... 27025.5. Product Dependencies.............................................................................................................27025.6. Functional Description..............................................................................................................27225.7. Register Summary - COUNT32................................................................................................27825.8. Register Description - COUNT32.............................................................................................27825.9. Register Summary - COUNT16................................................................................................28925.10. Register Description - COUNT16.............................................................................................28925.11. Register Summary - CLOCK....................................................................................................30025.12. Register Description - CLOCK................................................................................................. 300

    26. DMAC Direct Memory Access Controller........................................................... 312

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 7

  • 26.1. Overview.................................................................................................................................. 31226.2. Features................................................................................................................................... 31226.3. Block Diagram..........................................................................................................................31426.4. Signal Description.................................................................................................................... 31426.5. Product Dependencies.............................................................................................................31426.6. Functional Description..............................................................................................................31526.7. Register Summary....................................................................................................................33626.8. Register Description.................................................................................................................33726.9. Register Summary - SRAM......................................................................................................36326.10. Register Description - SRAM................................................................................................... 363

    27. EIC External Interrupt Controller........................................................................ 37027.1. Overview.................................................................................................................................. 37027.2. Features................................................................................................................................... 37027.3. Block Diagram..........................................................................................................................37027.4. Signal Description.................................................................................................................... 37127.5. Product Dependencies.............................................................................................................37127.6. Functional Description..............................................................................................................37227.7. Register Summary....................................................................................................................37927.8. Register Description.................................................................................................................380

    28. NVMCTRL Non-Volatile Memory Controller....................................................... 39328.1. Overview.................................................................................................................................. 39328.2. Features................................................................................................................................... 39328.3. Block Diagram..........................................................................................................................39328.4. Signal Description.................................................................................................................... 39428.5. Product Dependencies.............................................................................................................39428.6. Functional Description..............................................................................................................39528.7. Register Summary....................................................................................................................40328.8. Register Description.................................................................................................................404

    29. PORT - I/O Pin Controller......................................................................................41529.1. Overview.................................................................................................................................. 41529.2. Features................................................................................................................................... 41529.3. Block Diagram..........................................................................................................................41629.4. Signal Description.................................................................................................................... 41629.5. Product Dependencies.............................................................................................................41629.6. Functional Description..............................................................................................................41829.7. Register Summary....................................................................................................................42429.8. PORT Pin Groups and Register Repetition..............................................................................42629.9. Register Description.................................................................................................................426

    30. EVSYS Event System........................................................................................ 44430.1. Overview.................................................................................................................................. 44430.2. Features................................................................................................................................... 44430.3. Block Diagram..........................................................................................................................44430.4. Signal Description.................................................................................................................... 44530.5. Product Dependencies.............................................................................................................44530.6. Functional Description..............................................................................................................446

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 8

  • 30.7. Register Summary....................................................................................................................45030.8. Register Description.................................................................................................................451

    31. SERCOM Serial Communication Interface.........................................................46631.1. Overview.................................................................................................................................. 46631.2. Features................................................................................................................................... 46631.3. Block Diagram..........................................................................................................................46731.4. Signal Description.................................................................................................................... 46731.5. Product Dependencies.............................................................................................................46731.6. Functional Description..............................................................................................................469

    32. SERCOM USART SERCOM Universal Synchronous and Asynchronous Receiverand Transmitter......................................................................................................47532.1. Overview.................................................................................................................................. 47532.2. USART Features...................................................................................................................... 47532.3. Block Diagram..........................................................................................................................47632.4. Signal Description.................................................................................................................... 47632.5. Product Dependencies.............................................................................................................47632.6. Functional Description..............................................................................................................47832.7. Register Summary....................................................................................................................49132.8. Register Description.................................................................................................................491

    33. SERCOM SPI SERCOM Serial Peripheral Interface..........................................51033.1. Overview.................................................................................................................................. 51033.2. Features................................................................................................................................... 51033.3. Block Diagram.......................................................................................................................... 51133.4. Signal Description.....................................................................................................................51133.5. Product Dependencies............................................................................................................. 51133.6. Functional Description..............................................................................................................51333.7. Register Summary....................................................................................................................52233.8. Register Description.................................................................................................................523

    34. SERCOM I2C SERCOM Inter-Integrated Circuit................................................ 53634.1. Overview.................................................................................................................................. 53634.2. Features................................................................................................................................... 53634.3. Block Diagram..........................................................................................................................53734.4. Signal Description.................................................................................................................... 53734.5. Product Dependencies.............................................................................................................53734.6. Functional Description..............................................................................................................53934.7. Register Summary - I2C Slave.................................................................................................55734.8. Register Description - I2C Slave...............................................................................................55734.9. Register Summary - I2C Master...............................................................................................57134.10. Register Description - I2C Master............................................................................................ 572

    35. CAN - Control Area Network................................................................................. 58835.1. Overview.................................................................................................................................. 58835.2. Features................................................................................................................................... 58835.3. Block Diagram..........................................................................................................................588

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 9

  • 35.4. Signal Description.................................................................................................................... 58935.5. Product Dependencies.............................................................................................................58935.6. Functional Description..............................................................................................................59035.7. Register Summary....................................................................................................................61135.8. Register Description.................................................................................................................61535.9. Message RAM..........................................................................................................................676

    36. TC Timer/Counter...............................................................................................68636.1. Overview.................................................................................................................................. 68636.2. Features................................................................................................................................... 68636.3. Block Diagram..........................................................................................................................68736.4. Signal Description.................................................................................................................... 68736.5. Product Dependencies.............................................................................................................68836.6. Functional Description..............................................................................................................68936.7. Register Description.................................................................................................................705

    37. TCC Timer/Counter for Control Applications...................................................... 75737.1. Overview.................................................................................................................................. 75737.2. Features................................................................................................................................... 75737.3. Block Diagram..........................................................................................................................75837.4. Signal Description.................................................................................................................... 75837.5. Product Dependencies.............................................................................................................75937.6. Functional Description..............................................................................................................76037.7. Register Summary....................................................................................................................79437.8. Register Description.................................................................................................................796

    38. CCL Configurable Custom Logic........................................................................83338.1. Overview.................................................................................................................................. 83338.2. Features................................................................................................................................... 83338.3. Block Diagram..........................................................................................................................83438.4. Signal Description.................................................................................................................... 83438.5. Product Dependencies.............................................................................................................83438.6. Functional Description..............................................................................................................83638.7. Register Summary....................................................................................................................84638.8. Register Description.................................................................................................................846

    39. ADC Analog-to-Digital Converter........................................................................85039.1. Overview.................................................................................................................................. 85039.2. Features................................................................................................................................... 85039.3. Block Diagram..........................................................................................................................85139.4. Signal Description.................................................................................................................... 85139.5. Product Dependencies.............................................................................................................85139.6. Functional Description..............................................................................................................85339.7. Register Summary....................................................................................................................86839.8. Register Description.................................................................................................................869

    40. SDADC Sigma-Delta Analog-to-Digital Converter..............................................88840.1. Overview.................................................................................................................................. 88840.2. Features................................................................................................................................... 888

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 10

  • 40.3. Block Diagram..........................................................................................................................88940.4. Signal Description.................................................................................................................... 88940.5. Product Dependencies.............................................................................................................89040.6. Functional Description..............................................................................................................89140.7. Register Summary....................................................................................................................89940.8. Register Description.................................................................................................................900

    41. AC Analog Comparators.....................................................................................91741.1. Overview.................................................................................................................................. 91741.2. Features................................................................................................................................... 91741.3. Block Diagram..........................................................................................................................91841.4. Signal Description.................................................................................................................... 91941.5. Product Dependencies.............................................................................................................91941.6. Functional Description..............................................................................................................92141.7. Register Summary....................................................................................................................93041.8. Register Description.................................................................................................................930

    42. DAC Digital-to-Analog Converter........................................................................94342.1. Overview.................................................................................................................................. 94342.2. Features................................................................................................................................... 94342.3. Block Diagram..........................................................................................................................94342.4. Signal Description.................................................................................................................... 94342.5. Product Dependencies.............................................................................................................94342.6. Functional Description..............................................................................................................94542.7. Register Summary....................................................................................................................95042.8. Register Description.................................................................................................................950

    43. PTC - Peripheral Touch Controller.........................................................................95943.1. Overview.................................................................................................................................. 95943.2. Features................................................................................................................................... 95943.3. Block Diagram..........................................................................................................................96043.4. Signal Description.................................................................................................................... 96043.5. Product Dependencies.............................................................................................................96043.6. Functional Description..............................................................................................................962

    44. TSENS Temperature Sensor..............................................................................96344.1. Overview.................................................................................................................................. 96344.2. Features................................................................................................................................... 96344.3. Block Diagram..........................................................................................................................96344.4. Signal Description.................................................................................................................... 96344.5. Product Dependencies.............................................................................................................96444.6. Functional Description..............................................................................................................96544.7. Register Summary....................................................................................................................96944.8. Register Description.................................................................................................................969

    45. FREQM Frequency Meter.................................................................................. 98345.1. Overview.................................................................................................................................. 98345.2. Features................................................................................................................................... 98345.3. Block Diagram..........................................................................................................................983

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 11

  • 45.4. Signal Description.................................................................................................................... 98345.5. Product Dependencies.............................................................................................................98345.6. Functional Description..............................................................................................................98545.7. Register Summary....................................................................................................................98845.8. Register Description.................................................................................................................988

    46. Electrical Characteristics 85C (SAM C21J/G/E).................................................. 99446.1. Disclaimer.................................................................................................................................99446.2. Absolute Maximum Ratings......................................................................................................99446.3. General Operating Ratings.......................................................................................................99446.4. Injection Current.......................................................................................................................99546.5. Supply Characteristics..............................................................................................................99646.6. Maximum Clock Frequencies...................................................................................................99646.7. Power Consumption.................................................................................................................99846.8. Wake-Up Time..........................................................................................................................99946.9. I/O Pin Characteristics............................................................................................................100046.10. Analog Characteristics........................................................................................................... 100146.11. NVM Characteristics...............................................................................................................101646.12. Oscillator Characteristics....................................................................................................... 101746.13. Timing Characteristics............................................................................................................1023

    47. Electrical Characteristics 105C (SAM C21J/G/E).............................................. 102747.1. Disclaimer...............................................................................................................................102747.2. General Operating Ratings.....................................................................................................102747.3. Power Consumption...............................................................................................................102747.4. Analog Characteristics........................................................................................................... 102847.5. NVM Characteristics...............................................................................................................103047.6. Oscillator Characteristics........................................................................................................1031

    48. Electrical Characteristics 105C (SAM C21N).....................................................103448.1. Disclaimer...............................................................................................................................103448.2. General Operating Ratings.....................................................................................................103448.3. Power Consumption...............................................................................................................103448.4. Analog Characteristics........................................................................................................... 103548.5. NVM Characteristics...............................................................................................................104548.6. Oscillator Characteristics........................................................................................................1046

    49. Packaging Information.........................................................................................105049.1. Thermal Considerations......................................................................................................... 105049.2. Package Drawings................................................................................................................. 105149.3. Soldering Profile.....................................................................................................................1061

    50. Schematic Checklist............................................................................................ 106250.1. Introduction.............................................................................................................................106250.2. Operation in Noisy Environment.............................................................................................106250.3. Power Supply......................................................................................................................... 106250.4. External Analog Reference Connections............................................................................... 106450.5. External Reset Circuit.............................................................................................................106650.6. Unused or Unconnected Pins.................................................................................................1067

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 12

  • 50.7. Clocks and Crystal Oscillators................................................................................................106750.8. Programming and Debug Ports..............................................................................................1070

    51. Errata...................................................................................................................107451.1. SAM C21E/G/J.......................................................................................................................107451.2. SAM C21N..............................................................................................................................1100

    52. Revision History...................................................................................................110652.1. Rev L - 03/2017...................................................................................................................... 110652.2. Rev K - 11/2016......................................................................................................................110752.3. Rev J - 10/2016...................................................................................................................... 110752.4. Rev I - 09/2016....................................................................................................................... 110752.5. Rev H - 05/2016..................................................................................................................... 110952.6. Rev G - 04/2015..................................................................................................................... 110952.7. Rev F - 02/2015...................................................................................................................... 111152.8. Rev E - 12/2015......................................................................................................................111252.9. Rev D - 09/2015......................................................................................................................111352.10. Rev C - 09/2015..................................................................................................................... 111352.11. Rev B - 06/2015......................................................................................................................111352.12. Rev A - 04/2015......................................................................................................................1113

    The Microchip Web Site.............................................................................................1114

    Customer Change Notification Service...................................................................... 1114

    Customer Support......................................................................................................1114

    Product Identification System.................................................................................... 1115

    Microchip Devices Code Protection Feature..............................................................1115

    Legal Notice............................................................................................................... 1116

    Trademarks................................................................................................................1116

    Quality Management System Certified by DNV......................................................... 1116

    Worldwide Sales and Service.................................................................................... 1118

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 13

  • 1. DescriptionThe SAM C21 devices provide the following features: In-system programmable Flash, twelve-channeldirect memory access (DMA) controller, twelve-channel Event System, programmable interrupt controller,up to 84 programmable I/O pins, 32-bit real-time clock and calendar, up to eight 16-bit Timer/Counters(TC) and three Timer/Counters for Control (TCC), where each TC can be configured to perform frequencyand waveform generation, accurate program execution timing or input capture with time and frequencymeasurement of digital signals. The TCs can operate in 8- or 16-bit mode, selected TCs can be cascadedto form a 32-bit TC, and three timer/counters have extended functions optimized for motor, lighting andother control applications. Two TCC can operate in 24-bit mode, and the third TCC can operate in 16- bitmode. The series provide two Controller Area Network (CAN) modules supported CAN 2.0A/B and CAN-FD 1.0; up to eight Serial Communication Modules (SERCOM) that each can be configured to act as anUSART, UART, SPI, I2C up to 3.4MHz, SMBus,PMBus, RS-485 and LIN master/slave; two 12-bit, 1MspsADCs with up to 12-channels each (20 unique channels total), one 24-bit, 3-channels,1.5Msps Sigma-Delta ADC , one 10-bit 300ksps DAC, four analog comparators with window mode, Peripheral TouchController supporting up to 256 channels for buttons, sliders, wheels and proximity sensing;programmable Watchdog Timer, brown-out detector and power-on reset and two-pin Serial Wire Debug(SWD) program and debug interface.

    All devices have accurate and low-power external and internal oscillators. All oscillators can be used as asource for the system clock. Different clock domains can be independently configured to run at differentfrequencies, enabling power saving by running each peripheral at its optimal clock frequency, and thusmaintaining a high CPU frequency while reducing power consumption.

    The SAM C21 devices have two software-selectable sleep modes, idle and standby. In idle mode theCPU is stopped while all other functions can be kept running. In standby all clocks and functions arestopped expect those selected to continue running. In this mode all RAMs and logic contents areretained. The device supports SleepWalking. This feature allows the peripheral to wake up from sleepbased on predefined conditions, and thus allows some internal operation like DMA transfer and/or theCPU to wake up only when needed, e.g. when a threshold is crossed or a result is ready. The EventSystem supports synchronous and asynchronous events, allowing peripherals to receive, react to andsend events even in standby mode.

    The Flash program memory can be reprogrammed in-system through the SWD interface. The sameinterface can be used for non-intrusive on-chip debug of application code. A boot loader running in thedevice can use any communication interface to download and upgrade the application program in theFlash memory.

    The SAM C21 devices are supported with a full suite of program and system development tools, includingC compilers, macro assemblers, program debugger/simulators, programmers and evaluation kits.

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 14

  • 2. Configuration SummarySAM C21N SAM C21J SAM C21G SAM C21E

    Pins 100 64 (56 for WLCSP) 48 32

    General Purpose I/O-pins(GPIOs)

    84 52 38 26

    Flash 256/128KB 256/128/64/32KB 256/128/61/32KB 256/128/64/32KB

    Flash RWW section 8/4KB 8/4/2/1KB 8/4/2/1KB 8/4/2/1KB

    System SRAM 32/16KB 32/16/8/4KB 32/16/8/4KB 32/16/8/4KB

    Timer Counter (TC) instances 8 5 5 5

    Waveform output channelsper TC instance

    2 2 2 2

    TC Maximum and MinimumCapture

    Yes No No No

    Timer Counter for Control(TCC) instances

    3 3 3 3

    Waveform output channelsper TCC

    8/4/2 8/4/2 8/4/2 6/4/2

    DMA channels 12 12 12 12

    CAN interface 2 2 2 1

    Configurable Custom Logic(CCL) (LUTs)

    4 4 4 4

    Serial CommunicationInterface (SERCOM)instances

    8 6 6 4

    Divide and Square RootAccelerator (DIVAS)

    Yes Yes Yes Yes

    Analog-to-Digital Converter(ADC) channels

    20 20 14 10

    Sigma-Delta Analog-to-DigitalConverter (SDADC) channels

    3 3 2 1

    Analog Comparators (AC) 4 4 4 3

    Digital-to-Analog Converter(DAC) channels

    1 1 1 1

    Real-Time Counter (RTC) Yes Yes Yes Yes

    RTC alarms 1 1 1 1

    RTC compare values One 32-bit value or One 32-bit value or One 32-bit value or One 32-bit value or

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 15

  • SAM C21N SAM C21J SAM C21G SAM C21E

    two 16-bit values two 16-bit values two 16-bit values two 16-bit values

    External Interrupt lines 16 with HWdebouncing

    16 16 16

    Peripheral Touch Controller(PTC)

    Number of self-capacitancechannels (Y-lines)

    32 32 22 16

    Peripheral Touch Controller(PTC)

    Number of mutual-capacitance channels (X x Ylines)

    256 (16x16) 256 (16x16) 121 (11x11) 64 (8x8)

    Frequency Meter (FREQM)reference clock divider

    Yes Yes Yes Yes

    Maximum CPU frequency 48MHz

    Packages TQFP QFN

    TQFP

    WLCSP

    QFN

    TQFP

    QFN

    TQFP

    Oscillators 32.768kHz crystal oscillator (XOSC32K)

    0.4-32MHz crystal oscillator (XOSC)

    32.768kHz internal oscillator (OSC32K)

    32KHz ultra-low-power internal oscillator (OSCULP32K)

    48MHz high-accuracy internal oscillator (OSC48M)

    96MHz Fractional Digital Phased Locked Loop (FDPLL96M)

    Event System channels 12 12 12 12

    SW Debug Interface Yes Yes Yes Yes

    Watchdog Timer (WDT) Yes Yes Yes Yes

    Related LinksI/O Multiplexing and Considerations

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 16

  • 3. Ordering Information SAMC 21 N 18 A - M U T

    Product Family

    E = 32 PinsG = 48 PinsJ = 64 PinsN = 100 Pins

    No character = Tray (Default) T = Tape and Reel

    U = -40 - 85OC Matte Sn PlatingN = -40 - 105OC Matte Sn Plating

    A = TQFPM = QFNU = WLCSP

    21 = Cortex M0+ CPU, DMA, CAN, 16-bit SDADC

    SAMC = 5V Microcontroller

    Product Series

    Flash Memory Density

    Device VariantA = Default Variant

    Pin Count

    Package Carrier

    Package Grade

    Package Type

    18 = 256KB17 = 128KB16 = 64KB15 = 32KB

    3.1 SAM C21ETable 3-1.SAM C21E15A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21E15A-AUT 32K 4K TQFP32 Tape & Reel 85C

    ATSAMC21E15A-ANT 32K 4K TQFP32 Tape & Reel 105C

    ATSAMC21E15A-MUT 32K 4K QFN32 Tape & Reel 85C

    ATSAMC21E15A-MNT 32K 4K QFN32 Tape & Reel 105C

    Table 3-2.SAM C21E16A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21E16A-AUT 64K 8K TQFP32 Tape & Reel 85C

    ATSAMC21E16A-ANT 64K 8K TQFP32 Tape & Reel 105C

    ATSAMC21E16A-MUT 64K 8K QFN32 Tape & Reel 85C

    ATSAMC21E16A-MNT 64K 8K QFN32 Tape & Reel 105C

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 17

  • Table 3-3.SAM C21E17A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21E17A-AUT 128K 16K TQFP32 Tape & Reel 85C

    ATSAMC21E17A-ANT 128K 16K TQFP32 Tape & Reel 105C

    ATSAMC21E17A-MUT 128K 16K QFN32 Tape & Reel 85C

    ATSAMC21E17A-MNT 128K 16K QFN32 Tape & Reel 105C

    Table 3-4.SAM C21E18A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21E18A-AUT 256K 32K TQFP32 Tape & Reel 85C

    ATSAMC21E18A-ANT 256K 32K TQFP32 Tape & Reel 105C

    ATSAMC21E18A-MUT 256K 32K QFN32 Tape & Reel 85C

    ATSAMC21E18A-MNT 256K 32K QFN32 Tape & Reel 105C

    3.2 SAM C21GTable 3-5.SAM C21G15A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAM C21G15A-AUT 32K 4K TQFP48 Tape & Reel 85C

    ATSAM C21G15A-ANT 32K 4K TQFP48 Tape & Reel 105C

    ATSAM C21G15A-MUT 32K 4K QFN48 Tape & Reel 85C

    ATSAM C21G15A-MNT 32K 4K QFN48 Tape & Reel 105C

    Table 3-6.SAM C21G16A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21G16A-AUT 64K 8K TQFP48 Tape & Reel 85C

    ATSAMC21G16A-ANT 64K 8K TQFP48 Tape & Reel 105C

    ATSAMC21G16A-MUT 64K 8K QFN48 Tape & Reel 85C

    ATSAMC21G16A-MNT 64K 8K QFN48 Tape & Reel 105C

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 18

  • Table 3-7.SAM C21G17A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21G17A-AUT 128K 16K TQFP48 Tape & Reel 85C

    ATSAMC21G17A-ANT 128K 16K TQFP48 Tape & Reel 105C

    ATSAMC21G17A-MUT 128K 16K QFN48 Tape & Reel 85C

    ATSAMC21G17A-MNT 128K 16K QFN48 Tape & Reel 105C

    Table 3-8.SAM C21G18A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21G18A-AUT 256K 32K TQFP48 Tape & Reel 85C

    ATSAMC21G18A-ANT 256K 32K TQFP48 Tape & Reel 105C

    ATSAMC21G18A-MUT 256K 32K QFN48 Tape & Reel 85C

    ATSAMC21G18A-MNT 256K 32K QFN48 Tape & Reel 105C

    3.3 SAM C21JTable 3-9.SAM C21J15A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21J15A-AUT 32K 4K TQFP64 Tape & Reel 85C

    ATSAMC21J15A-ANT 32K 4K TQFP64 Tape & Reel 105C

    ATSAMC21J15A-MUT 32K 4K QFN64 Tape & Reel 85C

    ATSAMC21J15A-MNT 32K 4K QFN64 Tape & Reel 105C

    Table 3-10.SAM C21J16A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21J16A-AUT 64K 8K TQFP64 Tape & Reel 85C

    ATSAMC21J16A-ANT 64K 8K TQFP64 Tape & Reel 105C

    ATSAMC21J16A-MUT 64K 8K QFN64 Tape & Reel 85C

    ATSAMC21J16A-MNT 64K 8K QFN64 Tape & Reel 105C

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 19

  • Table 3-11.SAM C21J17A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21J17A-AUT 128K 16K TQFP64 Tape & Reel 85C

    ATSAMC21J17A-ANT 128K 16K TQFP64 Tape & Reel 105C

    ATSAMC21J17A-MUT 128K 16K QFN64 Tape & Reel 85C

    ATSAMC21J17A-MNT 128K 16K QFN64 Tape & Reel 105C

    ATSAMC21J17A-UUT(1) 128K 16K WLCSP56 Tape &Reel 85C

    1. Contact your local Microchip sales representative for availability.

    Table 3-12.SAM C21J18A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21J18A-AUT 256K 32K TQFP64 Tape & Reel 85C

    ATSAMC21J18A-ANT 256K 32K TQFP64 Tape & Reel 105C

    ATSAMC21J18A-MUT 256K 32K QFN64 Tape & Reel 85C

    ATSAMC21J18A-MNT 256K 32K QFN64 Tape & Reel 105C

    ATSAMC21J18A-UUT(1) 256K 32K WLCSP56 Tape & Reel 85C

    1. Contact your local Microchip sales representative for availability.

    3.4 SAM C21NTable 3-13.SAM C21N17A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21N17A-ANT 128K 16K TQFP100 Tape & Reel 105C

    Table 3-14.SAM C21N18A Ordering Codes

    Ordering Code FLASH(bytes)

    SRAM(bytes)

    Package Carrier Type Temp

    ATSAMC21N18A-ANT 256K 32K TQFP100 Tape & Reel 105C

    3.5 Device IdentificationThe DSU - Device Service Unit peripheral provides the Device Selection bits in the Device Identificationregister (DID.DEVSEL) in order to identify the device by software. The SAM C21 variants have a resetvalue of DID=0x1101drxx, with the LSB identifying the die number ('d'), the die revision ('r') and the deviceselection ('xx').

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 20

  • Table 3-15.SAM C21 Device Identification Values

    DEVSEL (DID[7:0]) Device

    0x00 SAM C21J18A

    0x01 SAM C21J17A

    0x02 SAM C21J16A

    0x03 SAM C21J15A

    0x04 Reserved

    0x05 SAM C21G18A

    0x06 SAM C21G17A

    0x07 SAM C21G16A

    0x08 SAM C21G15A

    0x09 Reserved

    0x0A SAM C21E18A

    0x0B SAM C21E17A

    0x0C SAM C21E16A

    0x0D SAM C21E15A

    0x0E - 0x1F Reserved

    0x20 SAM C21N18A

    0x21 SAM C21N17A

    0x22-0xFF Reserved

    Note: The device variant (last letter of the ordering number) is independent of the die revision(DSU.DID.REVISION): The device variant denotes functional differences, whereas the die revision marksevolution of the die.

    Related LinksDSU - Device Service UnitDID

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 21

  • 4. Block DiagramFigure 4-1.System Block Diagram for SAM C21N

    6 x SERCOM

    8 x Timer Counter

    AHB-APB BRIDGE C

    M

    MHIGH SPEED BUS MATRIX

    POR

    T

    PO

    RT

    SERIAL WIRESWDIO

    S

    CORTEX-M0+ PROCESSOR Fmax 48 MHz

    SWCLK

    DEVICE SERVICE

    UNIT

    AHB-APB BRIDGE A

    2x 12-CHANNEL 12-bit ADC 1MSPS

    AIN[11..0]

    VREFA

    AIN[7..0]

    S

    SRAM CONTROLLER

    32/16KB RAM

    M

    5x TIMER / COUNTER

    EVE

    NT

    SYST

    EM

    S

    6x SERCOM

    4 ANALOG COMPARATORS

    X[15..0]

    Y[15..0]

    PERIPHERAL TOUCH

    CONTROLLER

    AHB-APB BRIDGE B

    VREFA

    VOUT

    10-bit DAC

    PERIPHERAL ACCESS CONTROLLER

    S

    PAD0

    WO1

    PAD1PAD2PAD3

    WO0

    256/128KB RWW NVMNVM

    CONTROLLERCache

    M

    DMA

    2x CAN

    3x TIMER / COUNTERFOR CONTROL

    WOn

    IOBUS

    DMA

    DMA

    DMA

    DMA

    DMA

    MIC

    RO

    TRAC

    E BU

    FFER

    S

    WO0WO1

    TxD

    RxD

    3-CHANNEL 16-bit SDADC 3KSPS

    AIN[5..0]

    VREFB

    DMA

    REAL TIME COUNTER

    WATCHDOG TIMER

    RESETN

    OSCILLATORS CONTROLLER

    XOUT XIN

    XOUT32 XIN32

    OSCULP32K

    OSC32K

    OSC48M

    XOSC32K

    XOSC

    EXTERNAL INTERRUPT CONTROLLER

    MAIN CLOCKS CONTROLLER

    EXTINT[15..0] NMI

    GCLK_IO[7..0]

    FDPLL96M

    GENERIC CLOCKCONTROLLER

    POWER MANAGER

    RESET CONTROLLER

    OSC32K CONTROLLER

    SUPPLY CONTROLLER

    VREFBOD55

    VREG

    DivideAccellerator S

    DMA

    TEMPERATURE SENSOR

    FREQUENCY METER

    6 x SERCOM

    3x TIMER / COUNTER

    2x SERCOMPAD0

    WO1

    PAD1PAD2PAD3

    WO0

    DMA

    DMA

    AHB-APB BRIDGE D

    S

    3.3V VREG

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 22

  • Figure 4-2.System Block Diagram for SAM C21E/G/J

    6 x SERCOM

    8 x Timer Counter

    AHB-APB BRIDGE C

    M

    MHIGH SPEED BUS MATRIX

    POR

    T

    PO

    RT

    SERIAL WIRESWDIO

    S

    CORTEX-M0+ PROCESSOR Fmax 48 MHz

    SWCLK

    DEVICE SERVICE

    UNIT

    AHB-APB BRIDGE A

    2x 12-CHANNEL 12-bit ADC 1MSPS

    AIN[11..0]

    VREFA

    AIN[7..0]

    S

    SRAM CONTROLLER

    32/16/8/4KB RAM

    M

    5 x TIMER / COUNTER

    EVE

    NT

    SYST

    EM

    S

    6x SERCOM

    4ANALOG COMPARATORS

    X[15..0]

    Y[15..0]

    PERIPHERAL TOUCH

    CONTROLLER

    AHB-APB BRIDGE B

    VREFA

    VOUT

    10-bit DAC

    PERIPHERAL ACCESS CONTROLLER

    S

    PAD0

    WO1

    PAD1PAD2PAD3

    WO0

    256/128/64/32KB 8KB RWW

    NVMNVM

    CONTROLLERCache

    M

    DMA

    2x CAN

    3x TIMER / COUNTERFOR CONTROL

    WOn

    IOBUS

    DMA

    DMA

    DMA

    DMA

    DMA

    MIC

    RO

    TRAC

    E BU

    FFER

    S

    WO0WO1

    (2)

    TxD

    RxD

    3-CHANNEL 16-bit SDADC 3KSPS

    AIN[5..0]

    VREFB

    DMA

    REAL TIME COUNTER

    WATCHDOG TIMER

    RESETN

    OSCILLATORS CONTROLLER

    XOUT XIN

    XOUT32 XIN32

    OSCULP32K

    OSC32K

    OSC48M

    XOSC32K

    XOSC

    EXTERNAL INTERRUPT CONTROLLER

    MAIN CLOCKS CONTROLLER

    EXTINT[15..0] NMI

    GCLK_IO[7..0]

    FDPLL96M

    GENERIC CLOCKCONTROLLER

    POWER MANAGER

    RESET CONTROLLER

    OSC32K CONTROLLER

    SUPPLY CONTROLLER

    VREFBOD55

    VREG

    DivideAccellerator S

    DMA

    TEMPERATURE SENSOR

    FREQUENCY METER

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 23

  • Note:1. Some products have different number of SERCOM instances, Timer/Counter instances, PTC

    signals and ADC signals.2. The three TCC instances have different configurations, including the number of Waveform Output

    (WO) lines.

    Related LinksTCC ConfigurationsMultiplexed Signals

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 24

  • 5. Pinout

    5.1 SAM C21E

    5.1.1 QFN32 / TQFP32

    PA00 1PA01 2PA02 3PA03 4PA04 5PA05 6PA06 7PA07 8

    VDD

    ANA

    9G

    ND

    10PA

    0811

    PA09

    12PA

    1013

    PA11

    14PA

    1415

    PA15

    16PA2524PA2423PA2322PA2221PA1920PA1819PA1718PA1617

    PA27

    25R

    ESET

    N26

    PA28

    27G

    ND

    28VD

    DC

    OR

    E29

    VDD

    IN30

    PA30

    31PA

    3132

    DIGITAL PINANALOG PINOSCILLATORGROUNDINPUT SUPPLYREGULATED OUTPUT SUPPLYRESET PIN

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 25

  • 5.2 SAM C21G

    5.2.1 QFN48 / TQFP48

    PA21

    PA00 1PA01 2PA02 3PA03 4

    GNDANA 5VDDANA 6

    PB08 7PB09 8PA04 9PA05 10PA06 11PA07 12

    PA08

    13PA

    0914

    PA10

    15PA

    1116

    VDD

    IO17

    GN

    D18

    PB10

    19PB

    1120

    PA12

    21PA

    1322

    PA14

    23PA

    1524

    VDDIO36GND35PA2534PA2433PA2332PA2231

    30PA2029PA1928PA1827PA1726PA1625

    PB22

    37PB

    2338

    PA27

    39R

    ESET

    N40

    PA28

    41G

    ND

    42VD

    DC

    OR

    E43

    VDD

    IN44

    PA30

    45PA

    3146

    PB02

    47PB

    0348

    DIGITAL PINANALOG PINOSCILLATORGROUNDINPUT SUPPLYREGULATED OUTPUT SUPPLYRESET PIN

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 26

  • 5.3 SAM C21J

    5.3.1 QFN64 / TQFP64

    PA00 1PA01 2PA02 3PA03 4PB04 5PB05 6

    GNDANA 7VDDANA 8

    PB06 9PB07 10PB08 11PB09 12PA04 13PA05 14PA06 15PA07 16

    PA08

    17PA

    0918

    PA10

    19PA

    1120

    VDD

    IO21

    GN

    D22

    PB10

    23PB

    11

    24

    PB12

    25PB

    1326

    PB14

    27PB

    1528

    PA12

    29PA

    1330

    PA14

    31PA

    1532

    VDDIO48GND47PA2546PA2445PA2344PA2243PA2142PA2041PB1740PB1639PA1938PA1837PA1736PA1635VDDIO34GND33

    PB22

    49PB

    2350

    PA27

    51R

    ESET

    N52

    PA28

    53G

    ND

    54VD

    DC

    OR

    E55

    VDD

    IN56

    PA30

    57PA

    3158

    PB30

    59PB

    3160

    PB00

    61PB

    0162

    PB02

    63PB

    0364

    DIGITAL PINANALOG PINOSCILLATORGROUNDINPUT SUPPLY REGULATED OUTPUT SUPPLYRESET PIN

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 27

  • 5.3.2 WLCSP56

    1

    2

    3

    4

    5

    6

    7

    A B C D E F G H

    PA00

    PA01

    PA03

    PB08

    PB09

    PA04

    PA06

    PB01

    PB02

    PA02

    PA09

    PA05

    PA07

    PA08

    PA31

    PB00

    PB03

    VDDANA

    VDDIO

    PA10

    PA11

    PA30

    VDDIN

    GNDANA

    GND

    PB12

    PB11

    PB10

    VDDCORE

    GND

    VDDIO

    GND

    PB15

    PB14

    PB13

    RESET_N

    PA28

    PA23

    VDDIO

    GND

    PA13

    PA12

    PB23

    PA27

    PA24

    PA20

    PA18

    PA14

    PA15

    PB22

    PA25

    PA22

    PA21

    PA19

    PA17

    PA16

    DIGITAL PINANALOG PINOSCILLATORGROUNDINPUT SUPPLYREGULATED OUTPUT SUPPLYRESET PIN

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 28

  • 5.4 SAM C21N

    5.4.1 TQFP100

    1

    2

    3

    4

    44434241403938

    5

    6

    7

    8

    9

    10

    11

    3332313029282726

    25

    24

    23

    37363534

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    45 46 47 48

    64

    63

    62

    61

    60

    59

    58

    57

    56

    55

    54

    53

    52

    51

    5049

    70

    69

    68

    67

    66

    65

    74

    73

    72

    71

    75

    100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76

    RES

    ETN

    VDD

    IN

    GN

    D

    PA28

    VDD

    IO

    GND

    VDDANA

    PB01

    PB00

    PB03

    PB02

    PB30

    PB31

    PC05

    PA07

    PA06

    PA04

    PA05

    PB08

    PB09

    PA12

    PA13

    PA14

    PA15

    PC08

    PC09

    PC12

    PC13

    PC10

    PC11

    PB25

    PB24

    PC07

    PB23

    PB22

    PA01

    PA00

    PC26

    PC24

    PC25

    PC06

    PC27

    PA31

    PA30

    VDD

    CO

    RE

    PA27

    PA08

    PA09

    PA10

    PA11

    PA16

    PA17

    PA18

    PA19

    VDDIO

    PA24

    PA25

    PA21

    PA22

    PA20

    PA23

    PB18

    PB19

    PB16

    PB17

    PC21

    PC20

    PC18

    PC19

    PC17

    PC16

    PC14

    PB12

    PB11

    PB10

    PC15

    PB15

    PB13

    PB14

    GN

    DVD

    DIO

    VDDIO

    GND

    PB05

    PB04

    PA02

    PA03

    PB07

    PB06

    PC02

    PC03

    PC01

    PC00

    GND

    VDDIO

    PC28

    GN

    D

    PB20

    GN

    D

    PB21

    DIGITAL PINANALOG PINOSCILLATORGROUNDINPUT SUPPLYREGULATED OUTPUT SUPPLYRESET PIN

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 29

  • 6. Signal Descriptions ListThe following table gives details on signal names classified by peripheral.

    Table 6-1.Signal Descriptions List

    Signal Name Function Type Active Level

    Analog Comparators - AC

    AIN[7:0] AC Analog Inputs Analog

    CMP[2:0] AC Comparator Outputs Digital

    Analog Digital Converter - ADCx

    AIN[19:0] ADC Analog Inputs Analog

    VREFA ADC Voltage External Reference A Analog

    Digital Analog Converter - DAC

    VOUT[1:0] DAC Voltage output Analog

    VREFA DAC Voltage External Reference Analog

    Sigma-Delta Analog Digital Converter - SDADC

    INN[2:0] SDADC Analog Negative Inputs Analog

    INP[2:0] SDADC Analog Positive Inputs Analog

    VREFB SDADC Voltage External Reference B Analog

    External Interrupt Controller - EIC

    EXTINT[15:0] External Interrupts inputs Digital

    NMI External Non-Maskable Interrupt input Digital

    Generic Clock Generator - GCLK

    GCLK_IO[7:0] Generic Clock (source clock inputs or generic clockgenerator output)

    Digital

    Custom Control Logic - CCL

    IN[11:0] Logic Inputs Digital

    OUT[3:0] Logic Outputs Digital

    Power Manager - PM

    RESETN Reset input Digital Low

    Serial Communication Interface - SERCOMx

    PAD[3:0] SERCOM Inputs/Outputs Pads Digital

    Oscillators Control - OSCCTRL

    XIN Crystal or external clock Input Analog/Digital

    XOUT Crystal Output Analog

    32KHz Oscillators Control - OSC32KCTRL

    XIN32 32KHz Crystal or external clock Input Analog/Digital

    XOUT32 32KHz Crystal Output Analog

    Timer Counter - TCx

    WO[1:0] Waveform Outputs Digital

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 30

  • Signal Name Function Type Active Level

    Timer Counter - TCCx

    WO[1:0] Waveform Outputs Digital

    Peripheral Touch Controller - PTC

    X[15:0] PTC Input Analog

    Y[15:0] PTC Input Analog

    General Purpose I/O - PORT

    PA25 - PA00 Parallel I/O Controller I/O Port A Digital

    PA28 - PA27 Parallel I/O Controller I/O Port A Digital

    PA31 - PA30 Parallel I/O Controller I/O Port A Digital

    PB17 - PB00 Parallel I/O Controller I/O Port B Digital

    PB21 - PB19 Parallel I/O Controller I/O Port B Digital

    PB25 - PB22 Parallel I/O Controller I/O Port B Digital

    PB31 - PB30 Parallel I/O Controller I/O Port B Digital

    PC03 - PC-00 Parallel I/O Controller I/O Port C Digital

    PC21 - PC05 Parallel I/O Controller I/O Port C Digital

    PC28 - PC24 Parallel I/O Controller I/O Port C Digital

    Controller Area Network - CAN

    TX CAN Transmit Line Digital

    RX CAN Receive Line Digital

    SAM C21 Family

    2017 Microchip Technology Inc. Datasheet Complete 60001479A-page 31

  • 7. I/O Multiplexing and Considerations

    7.1 Multiplexed SignalsEach pin is by default controlled by the PORT as a general purpose I/O and alternatively it can beassigned to one of the peripheral functions A, B, C, D, E, F, G, H or I. To enable a peripheral function on apin, the Peripheral Multiplexer Enable bit in the Pin Configuration register corresponding to that pin(PINCFGn.PMUXEN, n = 0-31) in the PORT must be written to one. The selection of peripheral functionA to H is done by writing to the Peripheral Multiplexing Odd and Even bits in the Peripheral Multiplexingregister (PMUXn.PMUXE/O) in the PORT.

    Table 7-1.PORT Function Multiplexing for SAM C21NPin I/O Pin Supply A B B(1)(2) C D E F G H I

    EIC REF ADC0 ADC1 SDADC AC PTC DAC SERCOM SERCOM-ALT TC TCC COM AC/GCLK CCL

    1 PA00 VDDANA EXTINT[0] SERCOM1/PAD[0] TC2/WO[0] CMP[2]

    2 PA01 VDDANA EXTINT[1] SERCOM1/PAD[1] TC2/WO[1] CMP[3]

    3 PC00 VDDANA EXTINT[8] AIN[8]

    4 PC01 V