2 Cross Compatibility Across Product Lines

Table 2-1. Comparison between the SAM C20/C21 and PIC32CM JH01 Peripherals
PeripheralsSeriesCommentsFunctionalityAlternate Peripherals
SAM C20SAM C21PIC32CM JH01
ACYesYesYesAvailable in both series.Consists of two individual comparators, each designed to compare two input voltage levels and generate a corresponding digital signal based on the comparison results.NA
ADCYesYesYesThe SAM C20 has up to 12 ADC instances, while the SAM C21 and PIC32CM JH01 series have up to 20 instances.Converts analog signals into digital values and processes a single independent signal using the Successive Approximation Register (SAR) ADC module.NA
TCYesYesYesAvailable in both series.Used for generating time delays and can be configured to count events or clock pulses. Additionally, it supports waveform generation, including frequency generation and Pulse-Width Modulation (PWM).NA
DACNoYesYesUp to 1 DAC instance in all the series except the SAM C20.Converts digital values to analog signals.NA
TCCYesYesYesAvailable in both series.An advanced timer designed to count events or clock pulses, with additional capabilities for waveform generation, including frequency generation and PWM.NA
RTCYesYesYesAvailable in both series.Typically operates continuously to monitor time and can wake up the device from sleep modes. It uses a 32.768 kHz clock source with a minimum counter tick interval of 30.5 µs and time-out periods of up to 36 hours.NA
RSTCYesYesYesAvailable in both series.Handles the reset functionality of the microcontroller, restoring the device to its initial state.NA
DMACYesYesYesAvailable in both series.Enables data transfers without CPU intervention, facilitating efficient and high-speed data movement between memory and peripherals. The DMAC manages data transfers between memories and peripherals, thereby offloading these tasks from the CPU.NA
WDTYesYesYesAvailable in both series.It is designed to monitor the functioning of programs and facilitate recovery from error situations, such as runaway or deadlocked code.NA
FREQMYesYesYesAvailable in both series.Used to measure the frequency of a clock source by comparing it with a known reference clock.NA
SDADCNoYesNoAvailable only in the SAM C21.Designed for high-resolution analog-to-digital conversion, providing precise measurements.NA
SERCOMYesYesYesAvailable in both series.This peripheral offers hardware support for a range of communication protocols, including I2C, SPI, LIN, and USART. It is designed to operate in various modes, such as I2C Host, I2C Client, SPI Host, SPI Client, LIN Host, LIN Client, and USART.NA
EICYesYesYesAvailable in both series.Allows external pins to be configured as interrupt lines with options for masking and generating interrupts on various signal changes. Each pin has a configurable filter to remove spikes and can be set to wake up the device from sleep modes. In addition, a Non-Maskable Interrupt (NMI) is supported, which can override any other interrupt mode.NA
CAN-FDNoYesYesAvailable only in the SAM C21 and the PIC32CM JH01.Enhances the original CAN protocol by increasing the data rate and payload size. Also allows for faster data transmission and supports payloads of up to 64 bytes, compared to the 8-byte limit in classic CAN.NA
CCLYesYesYesAvailable in both series.Allows users to create custom logic functions tailored to specific application needs. Also enables the integration of user-defined logic directly into the microcontroller, reducing the need for external components and enhancing system performance.NA
PDECNoNoYesAvailable only in the PIC32CM JH01.Consists of a Quadrature or Hall decoder followed by a counter with two compare channels. The counter can be divided into two sections to report both angular position and the number of revolutions.NA
PTCYesYesYesAvailable in both series.Captures signals to detect touch on capacitive sensors. The external capacitive touch sensor is formed on a PCB with sensor electrodes connected to the PTC's analog front end through the device's I/O pins. Supports both self-capacitance and mutual-capacitance sensors.NA
DIVASYesYesYesAvailable in both series.Provides hardware acceleration for 32-bit integer division and square root calculations, significantly reducing the number of clock cycles required for these operations compared to software implementations. This results in faster execution times and reduced CPU load, enhancing overall system performance and efficiency.NA
DSUYesYesYesAvailable in both series.Provides a means to detect debugger probes, enabling the Arm Debug Access Port (DAP) to control multiplexed debug pads and CPU reset, and offers system-level services for memory testing and device identification. Supports features, such as CPU reset extension, debugger probe detection, 32-bit CRC, and onboard Memory Built-in Self-Test (MBIST).NA
ICMNoNoYesAvailable only in the PIC32CM JH01.Performs hash calculations on multiple memory regions using the Secure Hash Algorithm (SHA) engine, suitable for tasks, such as password validation, challenge hash authentication, anti-tamper, and digital signatures. Supports both manual and active monitoring modes, raising interrupts on hash mismatches to ensure data integrity.NA