The SAMD21 Mini Breakout (DEV-13664 ) graphical datasheet at https://cdn.sparkfun.com/assets/learn_t … t-Mini.pdf includes pin connections for Timer/Counters that do not exist in the Microchip SAMD21G18A. This model includes only 3 of the 5 possible TCs (TC3/TC4/TC5). TC6 and TC7 do not exist but are included in the graphical datasheet. See Table 2-1. SAM D21 E/G/J and SAM D21 EL/GL Product Family Features in the Microchip datasheet (Rev G) or the configuration summary on page 3 of the slightly obsolete Atmel datasheet at https://cdn.sparkfun.com/datasheets/Dev … asheet.pdf This makes the graphical datasheet less useful since I am trying to teach my students to use it to pick a TC to use based on what free pins they have. Since the SparkFun graphical datasheet shows TCs that don’t exist, it is pretty confusing to them.
Here are the definitions of the TCs from the CMSIS samd21g18a.h header file. Only the three available TCs are included.
#define TC3 ((Tc *)0x42002C00UL) /**< \brief (TC3) APB Base Address */
#define TC4 ((Tc *)0x42003000UL) /**< \brief (TC4) APB Base Address */
#define TC5 ((Tc *)0x42003400UL) /**< \brief (TC5) APB Base Address */
#define TC_INST_NUM 3 /**< \brief (TC) Number of instances */
#define TC_INSTS { TC3, TC4, TC5 } /**< \brief (TC) Instances List */
You should remove references to TC6 and TC7 from the graphical datasheet on pins PA20, PA21 and PB03