Using ATSAMC21 as an I2C Slave
Get the demo source code file at the end of the article ↓Software Platform: MCC v5.5.2, MPLAB X IDE v6.25Hardware:ATSAMC21J18AUsing MPLAB-Harmony Configuration ToolSet the system clock to 48MHzSet the corresponding option bits in the clock tree to make the CPU clock 48MHzOpen the pin configuration interfaceUART Pin and Function Parameter SettingsRefer toSAM C21 Xplained Prodevelopment … Read more