SAMC21N Xplained Pro SAMC21N Xplained Pro Preface The SAMC21N Xplained Pro evaluation kit is a hardware platform to evaluate ATSAMC21N18A microcontroller. Supported by the Atmel Studio integrated development platform, the kit provides easy access to the features of the ATSAMC21N18A and explains how to integrate the device in a custom design.
Supported with application examples in Atmel Software Framework Kit Overview The SAMC21N Xplained Pro evaluation kit is a hardware platform to evaluate the ATSAMC21N18A. The kit offers a set of features that enables the ATSAMC21N18A user to get started with the SAM C peripherals right away and to get an understanding of how to integrate the device in their own design.
Embedded Debugger and therefore no external programmer or debugger tool is needed. Design Documentation and Relevant Links The following list contains links to the most relevant documents and software for SAMC21N Xplained Pro: • Xplained products - Xplained evaluation kits are a series of easy-to-use evaluation kits for Microchip microcontrollers and other Microchip products.
Data Visualizer is used to send and receive data through DGI. The EDBG controls two LEDs on SAMC21N Xplained Pro; a power LED and a status LED. The table below shows how the LEDs are controlled in different operation modes.
3600 Maximum Current [mA] uint16_t Power Sources The SAMC21N Xplained Pro kit can be powered by several power sources as listed in the table below. Table 3-3. Power Sources for SAMC21N Xplained Pro Power Input Voltage Requirements Current Requirements Connector Marking External power 5V ±2% (±100mV) for...
SAMC21N Xplained Pro Power Input Voltage Requirements Current Requirements Connector Marking maximum is 2A due to the input protection maximum current specification. Embedded debugger 4.4V to 5.25V (according 500mA (according to DEBUG USB to USB spec.) USB spec.) The kit will automatically detect which power sources are available and choose which one to use according to the following priority: External power.
Page 11
Xplained Pro Power Header The power header can be used to connect external power to the SAMC21N Xplained Pro kit. The kit will automatically detect and switch to any external power if supplied. The power header can also be used as supply for external peripherals or extension boards.
ATSAMC21N18A, on-board peripherals, and connectors. Caution: As the SAMC21N Xplained Pro can be powered by 5.0V care must be taken not to connect any Xplained Pro extensions that does not support this voltage, doing so may result in permanent damage.
Page 13
4.2.1 Xplained Pro Extension Headers The SAMC21N Xplained Pro headers EXT1, EXT2, and EXT3 offers access to the I/O of the microcontroller in order to expand the board e.g. by connecting extensions to the board. These headers are based on the standard extension header specified in Xplained Pro Standard Extension Header.
Page 14
SAMC21N Xplained Pro Pin on EXT1 SAMC21N pin Function Shared functionality 8 [PWM(-)] PB13 TC4/WO[1] or X[13]/Y[29] 9 [IRQ/GPIO] PA22 IRQ6 or TC4/WO[0] or TCC1/ EDBG GPIO1 WO[0] or X[10]/Y[26] 10 [SPI_SS_B/GPIO] PA23 GPIO or TC4/WO[1] or TCC1/ WO[1] or X[11]/Y[27]...
Page 15
SAMC21N Xplained Pro Pin on EXT2 SAMC21N pin Function Shared functionality 12 [TWI_SCL] PA17 SERCOM1 PAD[1] I C SCL EXT3, Shield, EDBG I Crypto Device 13 [USART_RX] PB21 SERCOM3 PAD[1] UART RX 14 [USART_TX] PB20 SERCOM3 PAD[0] UART TX 15 [SPI_SS_A]...
Page 16
Arduino Uno. Caution: The target section of SAMC21N Xplained Pro can be powered by 3.3V or 5.0V. The maximum voltage the I/O pins can tolerate depends on the supply voltage. Providing higher voltages like 5V to an I/O pin when the ATSAMC21N18A is powered by 3.3V could damage the board.
Page 17
SAMC21N Xplained Pro Table 4-5. J803 - Analog Pin on J803 SAMC21N pin Arduino pin Function Shared functionality name PB09 ADC0 ADC0_AIN3 or EXT1 SDADC_INP[1] or Y[15] PB08 ADC1 ADC0_AIN2 or EXT1 SDADC_INN[1] or Y[14] PC00 ADC2 ADC0_AIN8 PC01 ADC3 ADC0_AIN9...
Page 18
4.2.4 VREF Header SAMC21N Xplained Pro has a 6-pin header labeled VREF on the board. This header can be used to select / apply a voltage reference to the ADC, DAC, and SDADC. Jumpers can be used to tie SADC VREF and ADC/DAC VREF to the kit target voltage from pin 1-3 and 2-4, or external voltages can be applied across pin 3-5 and 4-6.
Page 19
ADC / DAC voltage reference Ground Ground 4.2.5 DAC Header SAMC21N Xplained Pro has a 2-pin header labeled DAC-OUT on the board that is connected to the DAC output of the ATSAMC21N18A and ground. Table 4-11. DAC Header DAC header pin Pin / Net...
Target reset signal Peripherals 4.3.1 There is one yellow LED available on the SAMC21N Xplained Pro board that can be turned on and off. The LED is activated by driving the connected I/O line to low. Table 4-13. LED Connection SAMC21N pin...
Page 21
SAMC21N Xplained Pro Table 4-16. External Crystal Footprint SAMC21N pin Function Shared functionality PA14 EXT3 Shield PA15 XOUT EXT3 Shield 4.3.4 ATSAMC21N18A has two CAN modules that performs communication according to ISO11898-1 (Bosch CAN specification 2.0 part A,B) and Bosch CAN FD specification V1.0.
Page 22
4.3.6 QTouch Button There is one self capacitance button available on the SAMC21N Xplained Pro board that can be used as I/O. This QTouch button is intended to be driven by the built-in Peripheral Touch Controller (PTC) of the device.
EDBG I VCC_TARGET_P3V3 PADDLE Kit Modifications SAMC21N Xplained Pro has several resistors and jumpers that can be removed/cut to disconnect I/O pins of the ATSAMC21N18A from connectors and on-board ICs and to disconnect/measure power to different sections. Table 4-27. Resistors Designator...
Page 25
SAMC21N Xplained Pro Figure 4-4. Resistors Bottom Table 4-28. Jumpers Designator From Comment J101 VCC_TARGET_X_P3V3_P5V VCC_MCU_P3V3_P5V0 Remove this jumper (JS100) to measure current to the MCU section J102 VCC_P5V0 (pin 1) and VCC_TARGET_SWITCH_P3 Use this jumper (JS101) to VCC_P3V3 (pin 3) V3_P5V0 select either 5.0V or 3.3V...
Page 26
SAMC21N Xplained Pro Designator From Comment MCU sections. The footprint is 0603 sized. J105 3.3V linear regulator output VCC_EDBG_P3V3 Cut this jumper to measure for EDBG section current to the EDBG section. The footprint is 0603 sized. J106 VCC_TARGET_X_P3V3_P5V VCC_TARGET_P3V3_P5V0 Cut this jumper to measure current to the Target section.
Figure 4-6. Jumpers Bottom Embedded Debugger Implementation SAMC21N Xplained Pro contains an Embedded Debugger (EDBG) that can be used to program and debug the ATSAMC21N18A using Serial Wire Debug (SWD). The Embedded Debugger also include a Virtual Com port interface over UART, an Atmel Data Gateway Interface over SPI, and TWI and it includes four of the SAMC21N GPIOs.
Page 29
SAMC21N Xplained Pro 4.5.2 Virtual COM Port The Embedded Debugger acts as a Virtual Com Port gateway by using one of the ATSAMC21N18A UARTs. For further information on how to use the Virtual COM port, see Embedded Debugger. Table 4-30. Virtual COM Port Connections...
SAMC21N Xplained Pro Appendix Getting Started with IAR ® ® IAR Embedded Workbench for ARM is a proprietary high efficiency compiler not based on GCC. ™ Programming and debugging of Xplained Pro kits are supported in IAR Embedded Workbench for ARM using the common CMSIS-DAP interface.
SAMC21N Xplained Pro Connecting a SAM-ICE to an Xplained Pro Board ™ Xplained Pro kits featuring a 10-pin 50mil debug connector can use external debug tools like SAM-ICE or Atmel-ICE instead of the built-in EDBG. Devices using SWD interface on-board will have a connector...
Page 35
SAMC21N Xplained Pro Figure 5-7. SAM-ICE using an Atmel-ICE Adapter Important: If contention with the on-board EDBG occur, power the Xplained Pro board from another input like the external power header or from the target USB. Physically removing the connection between the EDBG and the debug header by removing 0Ω resistors, where available, or cutting the tracks to the EDBG can also be done.
SAMC21N Xplained Pro The Microchip Web Site Microchip provides online support via our web site at http://www.microchip.com/. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, the web site contains the following information: •...
SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries. GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries.
SAMC21N Xplained Pro ISBN: 978-1-5224-1778-1 Quality Management System Certified by DNV ISO/TS 16949 Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California ® ®...
Need help?
Do you have a question about the SAMC21N Xplained Pro and is the answer not in the manual?
Questions and answers