Datasheet PIC32CM6408PL10028, PIC32CM6408PL100032, PIC32CM6408PL100048, PIC32CM6408PL100064 (Microchip) - 5
| Hersteller | Microchip |
| Beschreibung | 5 Volt, 64 KB Flash, 8 KB SRAM with Advanced Analog |
| Seiten / Seite | 937 / 5 — PIC32CM6408PL10028/032/048/064. Table of Contents |
| Dateiformat / Größe | PDF / 11.5 Mb |
| Dokumentensprache | Englisch |
PIC32CM6408PL10028/032/048/064. Table of Contents

Modelllinie für dieses Datenblatt
Textversion des Dokuments
link to page 1 link to page 3 link to page 4 link to page 4 link to page 12 link to page 13 link to page 13 link to page 14 link to page 19 link to page 21 link to page 21 link to page 21 link to page 22 link to page 22 link to page 23 link to page 23 link to page 24 link to page 28 link to page 28 link to page 30 link to page 31 link to page 32 link to page 32 link to page 32 link to page 32 link to page 33 link to page 38 link to page 51 link to page 51 link to page 51 link to page 51 link to page 51 link to page 56 link to page 84 link to page 86 link to page 87 link to page 92 link to page 94 link to page 94
PIC32CM6408PL10028/032/048/064 Table of Contents
5 Volt, 64 KB Flash, 8 KB SRAM with Advanced Analog.. 1 Family Overview..3 Memory Overview... 4 Peripheral Overview..4 1. Block Diagram..12 2. Pinout... 13 2.1. Configuration Summary..13 2.2. Pinout Diagrams.. 14 2.3. Pinout and Multiplexing..19 3. Power Supply and Start-Up Considerations.. 21 3.1. Power Domain Overview.. 21 3.2. Power Supply Considerations.. 21 3.3. Start-Up... 22 3.4. Power-On Reset (POR) and Brown-Out Detectors (BOD)..22 4. CPU and Architecture... 23 4.1. Cortex M0+ Processor... 23 4.2. NVIC – Nested Vectored Interrupt Controller...24 4.3. Product Mapping... 28 4.4. HMATRIXHS - High-Speed Bus System.. 28 4.5. Micro Trace Buffer... 30 4.6. Reset Sources... 31 5. Memories... 32 5.1. Embedded Memories..32 5.2. Physical Memory..32 5.3. Register Properties.. 32 5.4. SIGNATURE... 33 5.5. BOOTCFG - Boot Configuration Fuses...38 6. BootROM - Boot ROM...51 6.1. Features.. 51 6.2. Overview... 51 6.3. Block Diagram.. 51 6.4. Functional Description.. 51 6.5. Programming Specifications...56 6.6. Dependencies...84 7. SYSCTRL - System Controller..86 7.1. Register Summary - SYSCTRL... 87 8. Peripherals Configuration Summary.. 92 9. Clock System..94 9.1. Clock Distribution.. 94 Preliminary Data Sheet DS40002667A - 5 © 2025 Microchip Technology Inc. and its subsidiaries Document Outline 5 Volt, 64 KB Flash, 8 KB SRAM with Advanced Analog Family Overview 1. Memory Overview 2. Peripheral Overview Table of Contents 1. Block Diagram 2. Pinout 2.1. Configuration Summary 2.2. Pinout Diagrams 2.2.1. 28-pin SSOP and SPDIP 2.2.2. 28-pin VQFN 2.2.3. 32-pin VQFN and TQFP 2.2.4. 48-pin VQFN and TQFP 2.2.5. 64-pin VQFN and TQFP 2.3. Pinout and Multiplexing 3. Power Supply and Start-Up Considerations 3.1. Power Domain Overview 3.2. Power Supply Considerations 3.2.1. Power Supplies 3.2.2. Voltage Regulator 3.2.3. Power-Up Sequence 3.3. Start-Up 3.3.1. Starting of Clocks 3.3.2. I/O Pins 3.3.3. Fetching of Initial Instructions 3.4. Power-On Reset (POR) and Brown-Out Detectors (BOD) 4. CPU and Architecture 4.1. Cortex M0+ Processor 4.1.1. Cortex M0+ Configuration 4.1.2. Cortex-M0+ Peripherals 4.1.3. Cortex-M0+ Address Map 4.1.4. I/O Interface 4.2. NVIC – Nested Vectored Interrupt Controller 4.2.1. Overview 4.2.2. Interrupt Line Mapping 4.3. Product Mapping 4.4. HMATRIXHS - High-Speed Bus System 4.4.1. Features 4.4.2. Configuration 4.4.3. SRAM Quality of Service 4.5. Micro Trace Buffer 4.5.1. Features 4.5.2. Overview 4.6. Reset Sources 5. Memories 5.1. Embedded Memories 5.2. Physical Memory 5.3. Register Properties 5.4. SIGNATURE 5.4.1. Register Summary - SIGNATURE 5.4.1.1. Serial Number 0 5.4.1.2. Serial Number 1 5.4.1.3. Serial Number 2 5.4.1.4. Serial Number 3 5.5. BOOTCFG - Boot Configuration Fuses 5.5.1. Register Summary - BOOTCFG 5.5.1.1. Sequence Number Fuse 5.5.1.2. Boot Protection Fuse 5.5.1.3. Watchdog Timer Configuration Fuse 5.5.1.4. BOD Configuration Fuse 5.5.1.5. User Configuration Fuse 5.5.1.6. Boot External Notification I/O Pin Fuse 6. BootROM - Boot ROM 6.1. Features 6.2. Overview 6.3. Block Diagram 6.4. Functional Description 6.4.1. Boot ROM Operation at Startup 6.4.2. Debugger Access Level (DAL) 6.4.3. Operating Modes 6.4.4. Boot Failure Signal 6.4.5. Sequence Number Fuse Check 6.4.6. Debugger Usage 6.4.7. Program and Debug interface Disable (PDID) 6.4.8. Status and Error Codes 6.4.8.1. Status Codes 6.4.8.2. Error Codes 6.5. Programming Specifications 6.5.1. Reference Documents 6.5.2. Memory Map 6.5.3. Device ID 6.5.4. Device Reset 6.5.4.1. System Reset 6.5.4.2. Vector Catch 6.5.4.3. External Reset 6.5.4.4. CPU Reset Extension 6.5.4.5. CPU Boot 6.5.5. SW-DP – Serial Wire Debug Port 6.5.5.1. Overview 6.5.5.2. Operation Sequences 6.5.5.3. Debugger Features 6.5.5.3.1. Debugger Routing 6.5.5.4. Debugger Security 6.5.5.4.1. DAL – Debug Access Level 6.5.5.4.2. DSU Register Access 6.5.5.4.3. Debugger Detection 6.5.5.5. DSU Register Write Protection 6.5.5.6. Serial Wire Interface 6.5.5.6.1. Architecture 6.5.5.6.2. Debug Port 6.5.5.6.3. Memory Access Port 6.5.6. Boot ROM for Programming and Debugging 6.5.6.1. Integrity Checks and Initialization 6.5.6.1.1. Hardware CRC of PFM on Boot 6.5.6.1.2. Error Handling 6.5.6.2. Debugger Communication Channels 6.5.6.2.1. Debug Communication Channels 6.5.6.2.2. Boot Communication Channels 6.5.6.3. Boot ROM Operation During Programming and Debugging 6.5.6.4. Interactive Mode 6.5.6.4.1. Entering Interactive Mode 6.5.6.4.2. Interactive Mode Command Access Controls 6.5.6.4.3. Challenge-Response 6.5.6.4.4. Command Diagram and Definition Legend 6.5.6.4.5. Interactive Mode Commands 6.5.6.4.5.1. Command IMODE 6.5.6.4.5.2. Command EXIT 6.5.6.4.5.3. Command READCFM 6.5.6.4.5.4. Command CRC 6.5.6.4.5.4.1. CRC Tables 6.5.6.4.5.5. Command CE_ALL 6.5.6.4.5.6. Command SDAL0 6.5.7. Programming 6.5.7.1. General 6.5.7.1.1. Get Device ID 6.5.7.1.2. Read Memory 6.5.7.1.3. Write SRAM 6.5.7.1.4. DHCSR – Read Debug Halting Control and Status Register 6.5.7.1.5. Write Word 6.5.7.1.6. Read Word 6.5.7.1.7. Erase Memory 6.5.7.1.8. Programming a Flash Page 6.5.7.1.9. Check If The Device Is Locked 6.5.8. In-Circuit Debugging 6.5.8.1. Debug and Trace Support 6.5.8.2. Debugger Access Support 6.5.8.2.1. Debug and Access Ports (SW-DP And AHB-AP Subblocks) 6.5.8.2.2. Breakpoint, Watchpoint and Trace Support 6.5.8.3. Debug Reset 6.5.8.4. Operation Sequences 6.5.8.4.1. Enter Debug Mode 6.5.8.4.2. Exit Debug Mode 6.5.8.4.3. Register Reads and Writes 6.5.8.4.4. Run 6.5.8.4.5. Halt 6.5.8.4.6. Get Halt Status 6.5.8.4.7. Get Core Registers 6.5.8.4.8. Get Program Status Register (PSR) 6.5.8.4.9. Get Program Counter 6.5.8.4.10. Set Program Counter 6.5.8.4.11. Get Stack Pointer 6.5.8.4.12. Set Stack Pointer 6.5.8.4.13. Single Step 6.5.8.4.14. Set Core Registers 6.6. Dependencies 7. SYSCTRL - System Controller 7.1. Register Summary - SYSCTRL 7.1.1. Boot Control 7.1.2. User Configuration 7.1.3. Temperature Sensor Calibration 8. Peripherals Configuration Summary 9. Clock System 9.1. Clock Distribution 9.2. Clock System Features 9.3. Clocks After Reset 9.4. SERCOM Clocking Example 9.5. Synchronous and Asynchronous Clocks 9.6. Register Synchronization 9.6.1. Overview 9.6.2. General Write Synchronization 9.6.3. General Read-Synchronization 9.6.4. Completion of Synchronization 9.6.5. Write-Synchronization for CTRLA.ENABLE 9.6.6. Software Reset Write Synchronization 9.6.7. Synchronization Delay 9.7. Enabling a Peripheral 9.8. On-Demand Clock Requests 9.9. Power Consumption Versus Speed 10. GCLK – Generic Clock Controller 10.1. Features 10.2. Overview 10.3. Block Diagram 10.3.1. Signal Description 10.4. Functional Description 10.4.1. Initialization 10.4.2. Operation 10.4.2.1. Enabling, Disabling and Resetting 10.4.2.2. Generic Clock Generators 10.4.2.2.1. Enabling and Disabling a Generator 10.4.2.2.2. Selecting a Clock Source for the Generator 10.4.2.2.3. Changing the Clock Frequency and Duty Cycle 10.4.2.2.4. External Clock 10.4.2.3. Peripheral Clocks 10.4.2.3.1. Enabling a Peripheral Clock 10.4.2.3.2. Disabling a Peripheral Clock 10.4.2.3.3. Selecting the Clock Source for a Peripheral 10.4.2.3.4. Configuration Lock 10.4.2.4. Synchronization 10.4.2.5. Generic Clock After Reset 10.4.3. Sleep Mode Operation 10.4.4. Debug Operations 10.5. Dependencies 10.5.1. I/O Lines 10.5.2. Power Management 10.5.3. Clocks 10.5.4. DMA 10.5.5. Interrupts 10.5.6. Events 10.5.7. Analog Connections 10.6. Register Summary - GCLK 10.6.1. Synchronization Busy 10.6.2. Generator Control 10.6.3. Peripheral Channel Control n 11. MCLK – Main Clock 11.1. Features 11.2. Overview 11.3. Block Diagram 11.3.1. Signal Description 11.4. Functional Description 11.4.1. Initialization 11.4.2. Operation 11.4.2.1. Enabling, Disabling and Resetting 11.4.2.2. Selecting the Main Clock Source 11.4.2.3. Selecting the Synchronous Clock Division Ratio 11.4.2.4. Clock Ready Flag 11.4.2.5. Peripheral Clock Masking 11.4.3. Sleep Mode Operation 11.4.4. Debug Operations 11.5. Dependencies 11.5.1. I/O Lines 11.5.2. Power Management 11.5.3. Clocks 11.5.4. DMA 11.5.5. Interrupts 11.5.6. Events 11.5.7. Analog Connections 11.6. Register Summary - MCLK 11.6.1. Interrupt Enable Clear 11.6.2. Interrupt Enable Set 11.6.3. Interrupt Flag Status and Clear 11.6.4. CPU Clock Division 11.6.5. AHB Bridge Mask 11.6.6. APB Bridge A Mask 11.6.7. APB Bridge B Mask 11.6.8. APB Bridge C Mask 12. OSCCTRL – Oscillators Controller 12.1. Features 12.2. Overview 12.3. Block Diagram 12.3.1. Signal Description 12.4. Functional Description 12.4.1. Initialization 12.4.2. Operation 12.4.2.1. Internal High Frequency Oscillator (OSCHF) Operation 12.4.3. Additional Features 12.4.3.1. Auto-Tune Operation 12.4.4. Sleep Mode Operations 12.4.5. Debug Operations 12.5. Dependencies 12.5.1. I/O Lines 12.5.2. Power Management 12.5.3. Clocks 12.5.4. DMA 12.5.5. Interrupts 12.5.6. Events 12.5.7. Analog Connections 12.6. Register Summary - OSCCTRL 12.6.1. Interrupt Enable Clear 12.6.2. Interrupt Enable Set 12.6.3. Interrupt Flag Status and Clear 12.6.4. Interrupt Flag Software Set 12.6.5. Status 12.6.6. OSCHF Control 12.6.7. OSCHF Oscillator Frequency Tune 12.6.8. Write Protection Control 13. OSC32KCTRL – 32.768 kHz Oscillators Controller 13.1. Features 13.2. Overview 13.3. Block Diagram 13.3.1. Signal Description 13.4. Functional Description 13.4.1. Initialization 13.4.1.1. OSC32K Initialization 13.4.1.2. XOSC32K Initialization 13.4.2. Operation 13.4.2.1. OSC32K - Internal 32.768 kHz Oscillator Operation 13.4.2.2. XOSC32K - External 32.768 kHz Crystal Oscillator Operation 13.4.2.3. Watchdog Timer Clock Selection 13.4.2.4. Real-Time Counter (RTC) Clock Selection 13.4.2.5. Supply Controller (SUPC) Sampled Brown-Out Detector (BOD) Clock Selection 13.4.2.6. External Interrupt Controller (EIC) Clock Selection 13.4.3. Additional Features 13.4.3.1. CFD - Clock Failure Detector 13.4.3.1.1. Clock Failure Detection 13.4.3.1.2. Clock Switch 13.4.3.1.3. Prescaler 13.4.3.1.4. Events 13.4.3.1.5. Sleep Mode 13.4.4. Sleep Mode Operation 13.4.5. Debug Operations 13.5. Dependencies 13.5.1. I/O Lines 13.5.2. Power Management 13.5.3. Clocks 13.5.4. DMA 13.5.5. Interrupts 13.5.6. Events 13.5.7. Analog Connections 13.6. Register Summary - OSC32KCTRL 13.6.1. Interrupt Enable Clear 13.6.2. Interrupt Enable Set 13.6.3. Interrupt Flag Status and Clear 13.6.4. Interrupt Flag Software Set 13.6.5. Status 13.6.6. RTC Control 13.6.7. XOSC32K Control 13.6.8. Clock Failure Detector Control 13.6.9. Event Control 13.6.10. 32.768 kHz Internal Oscillator (OSC32K) Control 13.6.11. Write Protection Control 14. PM – Power Manager 14.1. Features 14.2. Overview 14.3. Block Diagram 14.3.1. Signal Description 14.4. Functional Description 14.4.1. Initialization 14.4.2. Operation 14.4.2.1. Enabling, Disabling and Resetting 14.4.2.2. Sleep Modes 14.4.3. Additional Features 14.4.3.1. Regulator Automatic Low-Power Mode 14.4.4. Sleep Mode Operation 14.4.4.1. Idle Sleep Mode 14.4.4.2. Standby Sleep Mode 14.4.5. Debug Operation 14.5. Dependencies 14.5.1. I/O Lines 14.5.2. Power Management 14.5.3. Clocks 14.5.4. DMA 14.5.5. Interrupts 14.5.6. Events 14.5.7. Analog Connections 14.6. Register Summary - PM 14.6.1. Sleep Configuration 14.6.2. Write Protection Control 15. SUPC – Supply Controller 15.1. Features 15.2. Overview 15.3. Block Diagram 15.3.1. Signal Description 15.4. Functional Description 15.4.1. Initialization 15.4.2. Brown-out Detectors 15.4.2.1. BODVDD Basic Operation 15.4.2.2. VLM Basic Operation 15.4.2.3. Enabling, Disabling, and Resetting 15.4.2.4. Brown-Out Reset Operation 15.4.2.5. Continuous Mode 15.4.2.6. Sampling Mode 15.4.2.7. Sleep Mode Operation 15.4.2.7.1. Standby Mode 15.4.3. Voltage Regulator System Operation 15.4.3.1. VREG Basic Operation 15.4.3.2. Initialization 15.4.3.3. Enabling, Disabling, and Resetting 15.4.3.4. Sleep Mode Operation 15.4.3.5. Debug Mode 15.4.4. Multi-Voltage I/O 15.4.4.1. Initialization 15.4.4.2. Low Power Operation 15.4.4.3. Power Sequencing 15.4.4.4. Sleep Mode Operation 15.5. Dependencies 15.5.1. I/O Lines 15.5.2. Power Management 15.5.3. Clocks 15.5.4. DMA 15.5.5. Interrupts 15.5.6. Events 15.5.7. Analog Connections 15.6. Register Summary - SUPC 15.6.1. Interrupt Enable Clear 15.6.2. Interrupt Enable Set 15.6.3. Interrupt Flag Status and Clear 15.6.4. Interrupt Flag Software Set 15.6.5. Status 15.6.6. VDD Brown-Out Detector Control 15.6.7. Voltage Regulator Control 15.6.8. MVIO Control 15.6.9. Event Control 15.6.10. Write Protection Control 16. RSTC – Reset Controller 16.1. Features 16.2. Overview 16.3. Block Diagram 16.3.1. Signal Description 16.4. Functional Description 16.4.1. Initialization 16.4.2. Operation 16.4.2.1. Enabling, Disabling, and Resetting 16.4.2.2. Reset Causes and Effects 16.4.3. Sleep Mode Operation 16.4.4. Debug Operation 16.5. Dependencies 16.5.1. I/O Lines 16.5.2. Power Management 16.5.3. Clocks 16.5.4. DMA 16.5.5. Interrupts 16.5.6. Events 16.5.7. Analog Connections 16.6. Register Summary - RSTC 16.6.1. Control A 16.6.2. Reset Cause 16.6.3. Debug Control 16.6.4. Write Protection Control 17. PAC - Peripheral Access Controller 17.1. Features 17.2. Overview 17.3. Block Diagram 17.3.1. Signal Description 17.4. Functional Description 17.4.1. Initialization 17.4.2. Operation 17.4.2.1. Peripheral Access Errors 17.4.2.2. Write Access Protection Management 17.4.2.3. Write Access Protection Management Errors 17.4.2.4. AHB Client Bus Errors 17.4.3. Sleep Mode Operation 17.4.4. Debug Operation 17.5. Dependencies 17.5.1. I/O Lines 17.5.2. Power Management 17.5.3. Clocks 17.5.4. DMA 17.5.5. Interrupts 17.5.6. Events 17.5.7. Analog Connections 17.6. Register Summary - PAC 17.6.1. Write Control 17.6.2. Event Control 17.6.3. Interrupt Enable Clear 17.6.4. Interrupt Enable Set 17.6.5. AHB Client Bus Interrupt Flag Status and Clear 17.6.6. Peripheral Interrupt Flag Status and Clear A 17.6.7. Peripheral Interrupt Flag Status and Clear B 17.6.8. Peripheral Interrupt Flag Status and Clear C 17.6.9. Peripheral Write Protection Status A 17.6.10. Peripheral Write Protection Status B 17.6.11. Peripheral Write Protection Status C 18. DSU – Device Service Unit 18.1. Features 18.2. Overview 18.3. Block Diagram 18.3.1. Signal Description 18.4. Functional Description 18.4.1. Initialization 18.4.2. Operation 18.4.2.1. Operation From a Debug Adapter 18.4.2.2. Operation From the CPU 18.4.2.3. Programming 18.4.3. Additional Features 18.4.3.1. Debug Communication Channels 18.4.3.2. Intellectual Property Protection 18.4.3.3. Device Identification 18.4.3.3.1. CoreSight Identification 18.4.3.3.2. Chip Identification Method 18.4.4. Sleep Mode Operation 18.4.5. Debug Operation 18.4.5.1. Principle of Operation 18.4.5.2. Debugger Probe Detection 18.4.5.2.1. Cold-Plugging 18.4.5.2.2. Hot-Plugging 18.4.5.2.3. CPU Reset Extension 18.5. Dependencies 18.5.1. I/O Lines 18.5.2. Power Management 18.5.3. Clocks 18.5.4. DMA 18.5.5. Interrupts 18.5.6. Events 18.5.7. Analog Connections 18.6. Register Summary - DSU 18.6.1. Control B 18.6.2. Write Protection Control 18.6.3. Control C 18.6.4. Status A 18.6.5. Status B 18.6.6. Boot ROM Channel n 18.6.7. Debug Communication Channel n 18.6.8. Device Identification 18.6.9. Debugger Access Level 18.6.10. CoreSight ROM Table Entry 0 18.6.11. CoreSight ROM Table Entry 1 18.6.12. CoreSight ROM Table Entry 2 18.6.13. CoreSight ROM Table Entry 3 18.6.14. CoreSight ROM Table Memory Type 18.6.15. CoreSight Peripheral Identification 4 18.6.16. CoreSight Peripheral Identification 5 18.6.17. CoreSight Peripheral Identification 6 18.6.18. CoreSight Peripheral Identification 7 18.6.19. CoreSight Peripheral Identification 0 18.6.20. CoreSight Peripheral Identification 1 18.6.21. CoreSight Peripheral Identification 2 18.6.22. CoreSight Peripheral Identification 3 18.6.23. CoreSight Component Identification 0 18.6.24. CoreSight Component Identification 1 18.6.25. CoreSight Component Identification 2 18.6.26. CoreSight Component Identification 3 19. DMAC – Direct Memory Access Controller 19.1. Features 19.2. Overview 19.3. Block Diagram 19.3.1. Signal Description 19.4. Functional Description 19.4.1. Initialization 19.4.2. Operation 19.4.2.1. DMA 19.4.2.2. CRC 19.4.2.3. Enabling, Disabling and Resetting 19.4.2.4. Transfer Descriptors 19.4.2.5. Arbitration 19.4.2.6. Data Transaction 19.4.2.7. Transfer Triggers and Actions 19.4.2.8. Addressing 19.4.2.9. Error Handling 19.4.3. Additional Features 19.4.3.1. Linked Descriptors 19.4.3.1.1. Adding a Descriptor to the End of a List 19.4.3.1.2. Adding a Descriptor to a List 19.4.3.1.3. Adding a Descriptor Between Existing Descriptors 19.4.3.2. Channel Suspend 19.4.3.3. Channel Resume and Next Suspend Skip 19.4.3.4. Aborting Transfers 19.4.3.5. CRC Operation 19.4.4. Sleep Mode Operation 19.4.5. Debug Operation 19.5. Dependencies 19.5.1. I/O Lines 19.5.2. Power Management 19.5.3. Clocks 19.5.4. DMA 19.5.5. Interrupts 19.5.6. Events 19.5.6.1. Event Input Actions 19.5.7. Analog Connections 19.6. Register Summary - DMAC 19.6.1. Control 19.6.2. CRC Control 19.6.3. CRC Data Input 19.6.4. CRC Checksum 19.6.5. CRC Status 19.6.6. Debug Control 19.6.7. Quality of Service Control 19.6.8. Software Trigger Control 19.6.9. Priority Control 0 19.6.10. Interrupt Pending 19.6.11. Interrupt Status 19.6.12. Busy Channels 19.6.13. Pending Channels 19.6.14. Active Channel and Levels 19.6.15. Descriptor Memory Section Base Address 19.6.16. Write-Back Memory Section Base Address 19.6.17. Channel ID 19.6.18. Channel Control A 19.6.19. Channel Control B 19.6.20. Channel Interrupt Enable Clear 19.6.21. Channel Interrupt Enable Set 19.6.22. Channel Interrupt Flag Status and Clear 19.6.23. Channel Status 19.7. Register Summary - DMAC_SRAM 19.7.1. Block Transfer Control 19.7.2. Block Transfer Count 19.7.3. Block Transfer Source Address 19.7.4. Block Transfer Destination Address 19.7.5. Next Descriptor Address 20. WDT – Watchdog Timer 20.1. Features 20.2. Overview 20.3. Block Diagram 20.3.1. Signal Description 20.4. Functional Description 20.4.1. Initialization 20.4.2. Operation 20.4.2.1. Normal Mode 20.4.2.2. Window Mode 20.4.2.3. Enabling, Disabling, and Resetting 20.4.2.4. Configurable Reset Values 20.4.3. Additional Features 20.4.3.1. Early Warning 20.4.3.2. Always-On Mode 20.4.4. Sleep Mode Operation 20.4.5. Debug Operation 20.5. Dependencies 20.5.1. I/O Lines 20.5.2. Power Management 20.5.3. Clocks 20.5.4. DMA 20.5.5. Interrupts 20.5.6. Events 20.5.7. Analog Connections 20.6. Register Summary - WDT 20.6.1. Control A 20.6.2. Configuration 20.6.3. Early Warning Control 20.6.4. Interrupt Enable Clear 20.6.5. Interrupt Enable Set 20.6.6. Interrupt Flag Status and Clear 20.6.7. Synchronization Busy 20.6.8. Clear 21. RTC – Real-Time Counter 21.1. Features 21.2. Overview 21.3. Block Diagram 21.3.1. Signal Description 21.4. Functional Description 21.4.1. Initialization 21.4.2. Operation 21.4.2.1. Prescaler 21.4.2.2. 32-Bit Counter (Mode 0) 21.4.2.3. 16-Bit Counter (Mode 1) 21.4.2.4. Clock/Calendar (Mode 2) 21.4.3. Additional Features 21.4.3.1. Periodic Intervals 21.4.3.2. Frequency Correction 21.4.4. Sleep Mode Operation 21.4.5. Debug Operation 21.5. Dependencies 21.5.1. I/O Lines 21.5.2. Power Management 21.5.3. Clocks 21.5.4. DMA 21.5.5. Interrupts 21.5.6. Events 21.5.7. Analog Connections 21.6. Register Summary - RTC.MODE0 21.6.1. Control A - MODE0 21.6.2. Event Control - MODE0 21.6.3. Interrupt Enable Clear - MODE0 21.6.4. Interrupt Enable Set - MODE0 21.6.5. Interrupt Flag Status and Clear - MODE0 21.6.6. Debug Control 21.6.7. Synchronization Busy - MODE0 21.6.8. Frequency Correction 21.6.9. Counter Value - MODE0 21.6.10. Compare n Value - MODE0 21.7. Register Summary - RTC.MODE1 21.7.1. Control A - MODE1 21.7.2. Event Control - MODE1 21.7.3. Interrupt Enable Clear - MODE1 21.7.4. Interrupt Enable Set - MODE1 21.7.5. Interrupt Flag Status and Clear - MODE1 21.7.6. Debug Control 21.7.7. Synchronization Busy - MODE1 21.7.8. Frequency Correction 21.7.9. Counter Value - MODE1 21.7.10. Counter Period - MODE1 21.7.11. Compare n Value - MODE1 21.8. Register Summary - RTC.MODE2 21.8.1. Control A - MODE2 21.8.2. Event Control - MODE2 21.8.3. Interrupt Enable Clear - MODE2 21.8.4. Interrupt Enable Set - MODE2 21.8.5. Interrupt Flag Status and Clear - MODE2 21.8.6. Debug Control 21.8.7. Synchronization Busy - MODE2 21.8.8. Frequency Correction 21.8.9. Clock Value - 24H Format - MODE2 21.8.10. Clock Value - 12H Format - MODE2 21.8.11. Alarm n Value - 24H Format - MODE2 21.8.12. Alarm n Value - 12H Format - MODE2 21.8.13. Alarm n Mask - MODE2 22. TC - Timer/Counter 22.1. Features 22.2. Overview 22.3. Block Diagram 22.3.1. Signal Description 22.4. Functional Description 22.4.1. Initialization 22.4.2. Operation 22.4.2.1. Enabling, Disabling, and Resetting 22.4.2.2. Prescaler Selection 22.4.2.3. Counter Mode 22.4.2.4. Counter Operations 22.4.2.4.1. Stop Command and Event Action 22.4.2.4.2. Retrigger Command and Event Action 22.4.2.4.3. Count Event Action 22.4.2.4.4. Start Event Action 22.4.2.5. Compare Operations 22.4.2.5.1. Waveform Output Operations 22.4.2.6. Double Buffering 22.4.2.7. Capture Operations 22.4.2.7.1. Event Capture Action on Events or I/Os 22.4.2.7.2. Period and Pulse-Width (PPW/PWP) Capture Action on Events 22.4.2.7.3. Pulse-Width (PW) Capture Action on Events 22.4.3. Additional Features 22.4.3.1. One-Shot Operation 22.4.3.2. Time-Stamp Capture on Events or I/Os 22.4.3.3. Minimum Capture 22.4.3.4. Maximum Capture 22.4.4. Sleep Mode Operation 22.4.5. Debug Operation 22.5. Dependencies 22.5.1. I/O Lines 22.5.2. Power Management 22.5.3. Clocks 22.5.4. DMA 22.5.5. Interrupts 22.5.6. Events 22.5.7. Analog Connections 22.6. Register Summary - TCn.COUNT8 22.6.1. Control A 22.6.2. Control B Clear 22.6.3. Control B Set 22.6.4. Event Control 22.6.5. Interrupt Enable Clear 22.6.6. Interrupt Enable Set 22.6.7. Interrupt Flag Status and Clear 22.6.8. Status 22.6.9. Waveform Generation Control 22.6.10. Driver Control 22.6.11. Debug Control 22.6.12. Synchronization Busy 22.6.13. Counter - COUNT8 22.6.14. Period - COUNT8 22.6.15. Channel n Compare/Capture - COUNT8 22.6.16. Period Buffer - COUNT8 22.6.17. Channel n Compare Buffer - COUNT8 22.7. Register Summary - TCn.COUNT16 22.7.1. Control A 22.7.2. Control B Clear 22.7.3. Control B Set 22.7.4. Event Control 22.7.5. Interrupt Enable Clear 22.7.6. Interrupt Enable Set 22.7.7. Interrupt Flag Status and Clear 22.7.8. Status 22.7.9. Waveform Generation Control 22.7.10. Driver Control 22.7.11. Debug Control 22.7.12. Synchronization Busy 22.7.13. Counter - COUNT16 22.7.14. Channel n Compare/Capture - COUNT16 22.7.15. Channel n Compare Buffer - COUNT16 22.8. Register Summary - TCn.COUNT32 22.8.1. Control A 22.8.2. Control B Clear 22.8.3. Control B Set 22.8.4. Event Control 22.8.5. Interrupt Enable Clear 22.8.6. Interrupt Enable Set 22.8.7. Interrupt Flag Status and Clear 22.8.8. Status 22.8.9. Waveform Generation Control 22.8.10. Driver Control 22.8.11. Debug Control 22.8.12. Synchronization Busy 22.8.13. Counter - COUNT32 22.8.14. Channel n Compare/Capture - COUNT32 22.8.15. Channel n Compare Buffer - COUNT32 23. TCC - Timer/Counter for Control Applications 23.1. Features 23.2. Overview 23.3. Block Diagram 23.3.1. Signal Description 23.4. Functional Description 23.4.1. Initialization 23.4.2. Operation 23.4.2.1. Enabling, Disabling and Resetting 23.4.2.2. Prescaler Selection 23.4.2.3. Counter Operation 23.4.2.4. Compare Operations 23.4.2.4.1. Waveform Output Generation Operations 23.4.2.4.2. Normal Frequency (NFRQ) 23.4.2.4.3. Match Frequency (MFRQ) 23.4.2.4.4. Normal Pulse-Width Modulation (NPWM) 23.4.2.4.5. Single-Slope PWM Operation 23.4.2.4.6. Dual-Slope PWM Generation 23.4.2.4.7. Dual-Slope Critical PWM Generation 23.4.2.4.8. Output Polarity 23.4.2.5. Double Buffering 23.4.2.6. Capture Operations 23.4.3. Additional Features 23.4.3.1. One-Shot Operation 23.4.3.2. Circular Buffer 23.4.3.3. Ramp Operations 23.4.3.4. Recoverable Faults 23.4.3.5. Non-Recoverable Faults 23.4.3.6. Time-stamp Capture 23.4.3.7. Waveform Extension 23.4.4. Sleep Mode Operation 23.4.5. Debug Operation 23.5. Dependencies 23.5.1. I/O Lines 23.5.2. Power Management 23.5.3. Clocks 23.5.4. DMA 23.5.5. Interrupts 23.5.6. Events 23.5.7. Analog Connections 23.6. Register Summary - TCCn 23.6.1. Control A 23.6.2. Control B Clear 23.6.3. Control B Set 23.6.4. Synchronization Busy 23.6.5. Recoverable Fault Control x 23.6.6. Waveform Extension Control 23.6.7. Driver Control 23.6.8. Debug control 23.6.9. Event Control 23.6.10. Interrupt Enable Clear 23.6.11. Interrupt Enable Set 23.6.12. Interrupt Flag Status and Clear 23.6.13. Status 23.6.14. Counter 23.6.15. Pattern 23.6.16. Waveform 23.6.17. Compare/Capture Channel n 23.6.18. Period 23.6.19. Pattern Buffer 23.6.20. Period Buffer 23.6.21. Compare/Capture Channel n Buffer 24. EVSYS – Event System 24.1. Features 24.2. Overview 24.3. Block Diagram 24.3.1. Signal Description 24.4. Functional Description 24.4.1. Initialization 24.4.2. Operation 24.4.2.1. Enabling, Disabling, and Resetting 24.4.2.2. Event Users 24.4.2.3. Event System Channel 24.4.2.4. Channel Path 24.4.2.5. Event Latency 24.4.2.6. Edge Detection 24.4.2.7. Event Generators 24.4.3. Additional Features 24.4.3.1. Overrun Channel Detection 24.4.3.2. Channel Event Detection 24.4.3.3. Software Event 24.4.3.4. Channel Status 24.4.4. Sleep Mode Operation 24.4.5. Debug Operation 24.5. Dependencies 24.5.1. I/O Lines 24.5.2. Power Management 24.5.3. Clocks 24.5.4. DMA 24.5.5. Interrupts 24.5.6. Events 24.5.7. Analog Connections 24.6. Register Summary - EVSYS 24.6.1. Control A 24.6.2. Channel Status 24.6.3. Interrupt Enable Clear 24.6.4. Interrupt Enable Set 24.6.5. Interrupt Flag Status and Clear 24.6.6. Software Event 24.6.7. Channel n Control 24.6.8. User n Channel Selection 25. EIC – External Interrupt Controller 25.1. Features 25.2. Overview 25.3. Block Diagram 25.3.1. Signal Description 25.4. Functional Description 25.4.1. Initialization 25.4.2. Operation 25.4.2.1. Enabling, Disabling and Resetting 25.4.2.2. External Pin Processing 25.4.3. Additional Features 25.4.3.1. Non-Maskable Interrupt (NMI) 25.4.3.2. Asynchronous Edge Detection Mode 25.4.4. Sleep Mode Operation 25.4.5. Synchronization 25.5. Dependencies 25.5.1. I/O Lines 25.5.2. Power Management 25.5.3. Clocks 25.5.4. DMA 25.5.5. Interrupts 25.5.6. Events 25.5.7. Analog Connections 25.6. Register Summary - EIC 25.6.1. Control A 25.6.2. Non-Maskable Interrupt Control 25.6.3. Non-Maskable Interrupt Flag Status and Clear 25.6.4. Synchronization Busy 25.6.5. Event Control 25.6.6. Interrupt Enable Clear 25.6.7. Interrupt Enable Set 25.6.8. Interrupt Flag Status and Clear 25.6.9. External Interrupt Asynchronous Mode 25.6.10. External Interrupt Sense Configuration 0 25.6.11. External Interrupt Sense Configuration 1 26. NVMCTRL – Non-Volatile Memory Controller 26.1. Features 26.2. Overview 26.3. Block Diagram 26.3.1. Signal Description 26.4. Functional Description 26.4.1. Initialization 26.4.2. Operation 26.4.2.1. Principle of Operation 26.4.2.2. Memory Organization 26.4.2.2.1. Program Flash Memory 26.4.2.2.2. Signature 26.4.2.2.3. BOOTCFG 26.4.2.3. Memory Access 26.4.2.3.1. Flash Read 26.4.2.3.2. Flash Programming 26.4.2.3.3. Flash Erase 26.4.2.3.4. Command and Data Interface 26.4.2.3.4.1. Flash Write Mode 26.4.2.3.4.2. Flash Page Erase Mode 26.4.2.3.4.3. Flash Multi-page Erase Mode 26.4.2.3.4.4. Lock and Unlock Region Commands 26.4.2.3.4.5. BOOTCFG Erase Mode 26.4.2.3.4.6. BOOTCFG Write Mode 26.4.2.3.4.7. ROMCFG Write Mode 26.4.2.3.4.8. Chip Erase Command 26.4.2.4. Preventing Flash Corruption 26.4.3. Other Dependencies 26.4.3.1. Region Lock Bits 26.4.4. Sleep Mode Operation 26.4.5. Debug Operation 26.5. Dependencies 26.5.1. I/O Lines 26.5.2. Power Management 26.5.3. Clocks 26.5.4. DMA 26.5.5. Interrupts 26.5.6. Events 26.5.7. Analog Connections 26.6. Register Summary - NVMCTRL 26.6.1. Control B 26.6.2. NVM Parameters 26.6.3. Interrupt Enable Clear 26.6.4. Interrupt Enable Set 26.6.5. Interrupt Flag Status and Clear 26.6.6. Interrupt Flag Software Set 26.6.7. Status 26.6.8. Address 26.6.9. Lock Section 26.6.10. Read Data 26.6.11. Write Protection Control 27. PORT - I/O Pin Controller 27.1. Features 27.2. Overview 27.3. Block Diagram 27.3.1. Signal Description 27.4. Functional Description 27.4.1. Initialization 27.4.2. Operation 27.4.2.1. I/O Pin Configuration 27.4.2.1.1. Input Pin Configuration 27.4.2.1.2. Output Pin Configuration 27.4.2.1.3. Digital Functionality Disabled 27.4.2.2. Peripheral Functions Multiplexing 27.4.3. Additional Features 27.4.3.1. Read-Modify-Write Pin Configuration 27.4.3.2. Multi-Pin Write Configuration 27.4.3.3. Slew Rate Limitation 27.4.4. Sleep Mode Operation 27.4.5. Debug Operation 27.5. Dependencies 27.5.1. I/O Lines 27.5.2. Power Management 27.5.3. Clocks 27.5.4. DMA 27.5.5. Interrupts 27.5.6. Events 27.5.7. Analog Connections 27.5.8. Access Priority 27.6. Register Summary - PORT 27.6.1. Data Direction 27.6.2. Data Direction Clear 27.6.3. Data Direction Set 27.6.4. Data Direction Toggle 27.6.5. Data Output Value 27.6.6. Data Output Value Clear 27.6.7. Data Output Value Set 27.6.8. Data Output Value Toggle 27.6.9. Data Input Value 27.6.10. Control 27.6.11. Write Configuration 27.6.12. Event Control 27.6.13. Peripheral Multiplexing m 27.6.14. Pin Configuration n 28. SERCOM — Serial Communication Interface 28.1. Features 28.2. Overview 28.3. Block Diagram 28.3.1. Signal Description 28.4. Functional Description 28.4.1. Initialization 28.4.2. Operation 28.4.2.1. Clock Generation – Baud Rate Generator 28.4.2.1.1. Asynchronous Arithmetic Mode BAUD Value Selection 28.4.3. Additional Features 28.4.3.1. Address Match and Mask 28.4.3.1.1. Address With Mask 28.4.3.1.2. Two Unique Addresses 28.4.3.1.3. Address Range 28.4.4. Sleep Mode Operation 28.4.5. Debug Operation 28.5. Dependencies 28.5.1. I/O Lines 28.5.2. Power Management 28.5.3. Clocks 28.5.4. DMA 28.5.5. Interrupts 28.5.6. Events 28.5.7. Analog Connections 29. SERCOM USART — SERCOM Universal Synchronous and Asynchronous Receiver and Transmitter 29.1. Features 29.2. Overview 29.3. Block Diagram 29.3.1. Signal Description 29.4. Functional Description 29.4.1. Initialization 29.4.2. Operation 29.4.2.1. Clock Generation and Selection 29.4.2.1.1. Synchronous Clock Operation 29.4.2.2. Data Register 29.4.2.3. Data Transmission 29.4.2.3.1. Disabling the Transmitter 29.4.2.4. Data Reception 29.4.2.4.1. Disabling the Receiver 29.4.2.4.2. Error Bits 29.4.2.4.3. Asynchronous Data Reception 29.4.2.4.4. Asynchronous Operational Range 29.4.3. Additional Features 29.4.3.1. Parity 29.4.3.2. Hardware Handshaking 29.4.3.3. IrDA Modulation and Demodulation 29.4.3.4. Break Character Detection and Auto-Baud 29.4.3.5. LIN Host 29.4.3.6. RS485 29.4.3.7. Collision Detection 29.4.3.8. Loop-Back Mode 29.4.3.9. Start-of-Frame Detection 29.4.3.10. Sample Adjustment 29.4.4. Sleep Mode Operation 29.4.5. Debug Operation 29.5. Dependencies 29.5.1. I/O Lines 29.5.2. Power Management 29.5.3. Clocks 29.5.4. DMA 29.5.5. Interrupts 29.5.6. Events 29.5.7. Analog Connections 29.6. Register Summary - SERCOMn.USART 29.6.1. Control A - USART 29.6.2. Control B - USART 29.6.3. Control C - USART 29.6.4. Baud - Arithmetic Mode - USART 29.6.5. Baud - Fractional Mode - USART 29.6.6. Receive Pulse Length - USART 29.6.7. Interrupt Enable Clear - USART 29.6.8. Interrupt Enable Set - USART 29.6.9. Interrupt Flag Status and Clear - USART 29.6.10. Status - USART 29.6.11. Synchronization Busy - USART 29.6.12. Data - USART 29.6.13. Debug Control - USART 30. SERCOM SPI — SERCOM Serial Peripheral Interface 30.1. Features 30.2. Overview 30.3. Block Diagram 30.3.1. Signal Description 30.4. Functional Description 30.4.1. Initialization 30.4.2. Operation 30.4.2.1. Enabling, Disabling, and Resetting 30.4.2.2. Clock Generation 30.4.2.3. Data Register 30.4.2.4. SPI Transfer Modes 30.4.2.5. Transferring Data 30.4.2.5.1. Host 30.4.2.5.2. Client 30.4.2.6. Receiver Error Bit 30.4.3. Additional Features 30.4.3.1. Address Recognition 30.4.3.2. Preloading of the Client Shift Register 30.4.3.3. Host with Several Clients 30.4.3.4. Loop-Back Mode 30.4.3.5. Hardware Controlled SS 30.4.3.6. SPI Select Low Detection 30.4.4. Sleep Mode Operation 30.4.5. Debug Operation 30.5. Dependencies 30.5.1. I/O Lines 30.5.2. Power Management 30.5.3. Clocks 30.5.4. DMA 30.5.5. Interrupts 30.5.6. Events 30.5.7. Analog Connections 30.6. Register Summary - SERCOMn.SPI 30.6.1. Control A - SPI 30.6.2. Control B - SPI 30.6.3. Baud Rate - SPI 30.6.4. Interrupt Enable Clear - SPI 30.6.5. Interrupt Enable Set - SPI 30.6.6. Interrupt Flag Status and Clear - SPI 30.6.7. Status - SPI 30.6.8. Synchronization Busy - SPI 30.6.9. Address - SPI 30.6.10. Data - SPI 30.6.11. Debug Control - SPI 31. SERCOM I2C — SERCOM Inter-Integrated Circuit 31.1. Features 31.2. Overview 31.3. Block Diagram 31.3.1. Signal Description 31.4. Functional Description 31.4.1. Initialization 31.4.2. Operation 31.4.2.1. I2C Bus State Logic 31.4.2.2. I2C Host Operation 31.4.2.2.1. Host Clock Generation 31.4.2.2.1.1. Clock Generation (Standard-Mode, Fast-Mode, and Fast-Mode Plus) 31.4.2.2.2. Transmitting Address Packets 31.4.2.2.3. Transmitting Data Packets 31.4.2.2.4. Receiving Data Packets (SCLSM=0) 31.4.2.2.5. Receiving Data Packets (SCLSM=1) 31.4.2.2.6. 10-Bit Addressing 31.4.2.3. I2C Client Operation 31.4.2.3.1. Receiving Address Packets (SCLSM=0) 31.4.2.3.2. Receiving Address Packets (SCLSM=1) 31.4.2.3.3. Receiving and Transmitting Data Packets 31.4.2.3.4. 10-Bit Addressing 31.4.2.3.5. PMBus Group Command 31.4.3. Additional Features 31.4.3.1. SMBus 31.4.3.2. Smart Mode 31.4.3.3. 4-Wire Mode 31.4.3.4. Quick Command 31.4.4. Sleep Mode Operation 31.4.5. Debug Operation 31.5. Dependencies 31.5.1. I/O Lines 31.5.2. Power Management 31.5.3. Clocks 31.5.4. DMA 31.5.4.1. Client DMA 31.5.4.2. Host DMA 31.5.5. Interrupts 31.5.6. Events 31.5.7. Analog Connections 31.6. Register Summary - SERCOMn.I2CS 31.6.1. Control A - I2CS 31.6.2. Control B - I2CS 31.6.3. Interrupt Enable Clear - I2CS 31.6.4. Interrupt Enable Set - I2CS 31.6.5. Interrupt Flag Status and Clear - I2CS 31.6.6. Status - I2CS 31.6.7. Synchronization Busy - I2CS 31.6.8. Address - 7-Bit Addressing mode - I2CS 31.6.9. Address - 10-Bit Addressing mode - I2CS 31.6.10. Data - I2CS 31.7. Register Summary - SERCOMn.I2CM 31.7.1. Control A - I2CM 31.7.2. Control B - I2CM 31.7.3. Baud Rate - I2CM 31.7.4. Interrupt Enable Clear - I2CM 31.7.5. Interrupt Enable Set - I2CM 31.7.6. Interrupt Flag Status and Clear - I2CM 31.7.7. Status - I2CM 31.7.8. Synchronization Busy - I2CM 31.7.9. Address - 7-Bit Addressing mode - I2CM 31.7.10. Address - 10-Bit Addressing mode - I2CM 31.7.11. Data - I2CM 31.7.12. Debug Control - I2CM 32. CCL - Configurable Custom Logic 32.1. Features 32.2. Overview 32.3. Block Diagram 32.3.1. Signal Description 32.4. Functional Description 32.4.1. Initialization 32.4.2. Operation 32.4.2.1. Write Protection Control 32.4.2.2. Lookup Table Logic 32.4.2.3. Truth Table Inputs Selection 32.4.2.3.1. Input Selection Multiplexer 32.4.2.4. Filter 32.4.2.5. Edge Detector 32.4.2.6. Sequential Logic 32.4.3. Sleep Mode Operation 32.4.4. Debug Operation 32.5. Dependencies 32.5.1. I/O Lines 32.5.2. Power Management 32.5.3. Clocks 32.5.4. DMA 32.5.5. Interrupts 32.5.6. Events 32.5.7. Analog Connections 32.6. Register Summary - CCL 32.6.1. Control A 32.6.2. Sequential Control 32.6.3. LUT Control n 32.6.4. Write Protection Control 33. ADC - Analog-to-Digital Converter 33.1. Features 33.2. Overview 33.3. Block Diagram 33.3.1. Signal Description 33.4. Functional Description 33.4.1. Initialization 33.4.2. Operation 33.4.2.1. Operation Modes 33.4.2.2. Conversion Triggers 33.4.2.3. Aborting a Conversion 33.4.2.4. Output Formats 33.4.2.5. ADC Clock 33.4.2.6. Input and Reference Selection 33.4.2.6.1. Analog Input Circuit 33.4.2.7. Conversion Timing 33.4.3. Additional Features 33.4.3.1. 13-bit Mode Operation 33.4.3.2. Offset Reduction by Sign Chopping 33.4.3.3. Window Comparator 33.4.3.4. Low-pass Filter 33.4.3.5. Accumulator Test 33.4.4. Sleep Mode Operation 33.4.5. Debug Operation 33.5. Dependencies 33.5.1. I/O Lines 33.5.2. Power Management 33.5.3. Clocks 33.5.4. DMA 33.5.5. Interrupts 33.5.6. Events 33.5.7. Analog Connections 33.6. Register Summary - ADCn 33.6.1. Control A 33.6.2. Control B 33.6.3. Control C 33.6.4. Control D 33.6.5. Control E 33.6.6. Window Control 33.6.7. Window Low Threshold 33.6.8. Window High Threshold 33.6.9. Input Multiplexer Control 33.6.10. Event Control 33.6.11. Interrupt Enable Clear 33.6.12. Interrupt Enable Set 33.6.13. Interrupt Flag Status and Clear 33.6.14. Interrupt Flag Set 33.6.15. Status 33.6.16. Command 33.6.17. Result 33.6.18. Sample 33.6.19. Debug Control 33.6.20. Write Protection Control 34. Temperature Sensor 35. PTC - Peripheral Touch Controller 35.1. Features 35.2. Overview 35.3. Block Diagram 35.4. Signal Description 35.5. Functional Description 35.5.1. Basic Operation 35.5.1.1. Initialization 35.5.1.2. Enabling, Disabling and Resetting 35.5.1.3. Sensor Configurations 35.5.1.3.1. Self-Capacitance Sensor Arrangement 35.5.1.3.2. Mutual Capacitance Sensor Arrangement 35.5.2. Sleep Mode Operation 35.5.3. Debug Operation 35.6. Dependencies 35.6.1. I/O Lines 35.6.2. Power Management 35.6.3. Clocks 35.6.4. Analog Connections 35.6.5. Events 35.6.6. Interrupts 36. AC - Analog Comparators 36.1. Features 36.2. Overview 36.3. Block Diagram 36.3.1. Signal Description 36.4. Functional Description 36.4.1. Initialization 36.4.2. Operation 36.4.2.1. Enabling, Disabling and Resetting 36.4.2.2. Selecting Comparator Inputs 36.4.2.3. Comparator Output 36.4.3. Additional Features 36.4.3.1. Input Hysteresis 36.4.3.2. Voltage Reference Selection 36.4.3.3. Window Mode 36.4.4. Sleep Mode Operation 36.4.5. Debug Operation 36.5. Dependencies 36.5.1. I/O Lines 36.5.2. Power Management 36.5.3. Clocks 36.5.4. DMA 36.5.5. Interrupts 36.5.6. Events 36.5.7. Analog Connections 36.6. Register Summary - AC 36.6.1. Control A 36.6.2. Control B 36.6.3. Window Control 36.6.4. Event Control 36.6.5. Interrupt Enable Clear 36.6.6. Interrupt Enable Set 36.6.7. Interrupt Flag Status and Clear 36.6.8. Interrupt Flag Set 36.6.9. Status 36.6.10. Comparator n Comparator Control A 36.6.11. Comparator n Comparator Control B 36.6.12. Comparator n Comparator Scaler 36.6.13. Write Protection Control 37. Electrical Characteristics @85°C 37.1. Disclaimer 37.2. Absolute Maximum Ratings 37.3. Operating Frequencies and Thermal Limitations 37.4. Power Supply 37.5. Power Consumption 37.5.1. MCU Active Power 37.5.2. MCU Idle Power 37.5.3. MCU Standby Power 37.5.4. Peripheral Active Current 37.6. Wake-up Timing 37.7. I/O Pin Electrical Specifications 37.8. Internal Voltage Reference Specifications 37.9. Clock Controller (CLKCTRL) Characteristics 37.9.1. Maximum Clock Frequencies Electrical Specifications 37.9.2. External 32 kHz Crystal Oscillator (XOSC32K) Electrical Specifications 37.9.3. Internal 32.768 kHz RC Oscillator (OSC32K) 37.9.4. Internal RC Oscillator (OSCHF) 37.10. Analog-to-Digital Converter (ADC) Electrical Specifications 37.11. Analog Comparator (AC) Electrical Specifications 37.12. Peripheral QTouch® Controller (PTC) Electrical Specifications 37.13. Serial Peripheral Interface (SERCOM SPI) Mode Electrical Specifications 37.14. SERCOM Universal Synchronous and Asynchronous Receiver and Transmitter (SERCOM USART) 37.15. SERCOM Inter-Integrated Circuit (SERCOM I2C) Electrical Specifications 37.16. Timer Counter (TC) Module Electrical Specifications 37.17. Timer/Counter for Control (TCC) Application Electrical Specifications 37.18. NVM Block (Flash, Data Flash and NVM Configuration Rows) Electrical Specifications 37.19. Configurable Custom Logic (CCL) Electrical Specifications 38. Graphical Characteristics 38.1. I/O Pin Graphical Characteristics 39. Packaging Information 39.1. Package Marking Information 39.1.1. 64-Pin VQFN Wettable Flanks 39.1.2. 64-Pin TQFP 39.1.3. 48-Pin VQFN Wettable Flanks 39.1.4. 48-Pin TQFP 39.1.5. 32-Pin VQFN Wettable Flanks 39.1.6. 32-Pin TQFP 39.1.7. 28-Pin VQFN Wettable Flanks 39.1.8. 28-Pin SSOP 39.1.9. 28-Pin SPDIP 39.2. Package Drawings 39.2.1. 64-Pin VQFN Wettable Flanks 39.2.2. 64-Pin TQFP 39.2.3. 48-Pin VQFN Wettable Flanks 39.2.4. 48-Pin TQFP 39.2.5. 32-Pin VQFN Wettable Flanks 39.2.6. 32-Pin TQFP 39.2.7. 28-Pin VQFN Wettable Flanks 39.2.8. 28-Pin SSOP 39.2.9. 28-Pin SPDIP 39.3. Soldering Profile 40. Schematic Checklist 40.1. Introduction 40.2. Operation in Noisy Environment 40.3. Power Supply 40.3.1. Power Supply Connections 40.3.1.1. Power Supply 40.3.1.2. Analog Power Supply 40.3.1.3. Multi-Voltage I/O 40.4. External Analog Reference Connections 40.5. External Reset Circuit 40.6. Unused or Unconnected Pins 40.7. Clocks and Crystal Oscillators 40.7.1. External Clock Source 40.7.2. Crystal Oscillator 40.7.3. External Slow Clock Source 40.7.4. 32.768 kHz Crystal Oscillator 40.8. Programming and Debug Ports 40.8.1. Cortex Debug Connector (10-pin) 40.8.2. 20-pin IDC JTAG Connector 41. Ordering Information 42. Data Sheet Revision History 42.1. Rev.A - 12/2025 Microchip Information Trademarks Legal Notice Microchip Devices Code Protection Feature Product Page Links