Atmel START: Introduction Videos with SAM L21 Project Development and Debug

Last modified by Microchip on 2024/01/19 00:08

The following series of videos shows you how to use Atmel START, the Advanced Software Framework 4 (ASF4), and the Atmel Studio IDE to develop and debug a project for the SAM L21 microcontroller.

Glen also demonstrates many valuable tips and tricks for the Atmel Studio IDE. For example: Do you know what "F1 datasheet help" is? Watch video eight to see it in action.

Training Videos

Introduction to the video series

Back to Top


Hello World!

  • Create a project from scratch using the Atmel START graphical project configurator.
  • Add a Universal Synchronous Asynchronous Receiver Transmitter (USART) driver to the project.
  • Use ASF4 example code to send a message to a serial terminal over the USART.

Back to Top


Best Practice Code Cleanup

  • Move USART ASF4 example code into main.c.

Back to Top


Configuring and Reading the ADC

  • Add and configure an Analog-to-Digital Converter (ADC) driver to the project.
  • Add ADC example code.
  • Measure the analog output from the light sensor on the I/O1 Xplained Pro board.
  • Use an I/O view window to display the ADC Result register.

Back to Top


ADC with Delay, Visualization

  • Add and configure a Delay driver to start an ADC conversion.
  • Add code to the ADC callback function for the Interrupt Service Routine (ISR).
  • Display ADC result values on a serial terminal and graph with the Data Visualizer.

Back to Top


ADC with Timer Callback, Visualization

  • Add and configure a Timer driver to start an ADC conversion.
  • Add Timer example code.

Back to Top


ADC Timer GPIO

  • Use a SAM L21 General Purpose Input/Output (GPIO) pin to measure the ADC conversion time.
  • Plot the conversion time in the Data Visualizer.
    • Embedded Debugger (EDBG) GPIO pins with the Data Gateway Interface (DGI).

Back to Top


Measuring Power and Going to Sleep

  • Put SAM L21 into Sleep mode.
  • Configure Timer and ADC to run in Sleep.
  • Use the Data Visualizer to measure power consumption.

Back to Top


ADC with Delay, Visualization

  • Download the Low power example project from Atmel START and import it into Atmel Studio.
  • The Data Visualizer is used to display the power consumption.
  • The USART is used to temporarily wake the SAML21 from sleep.
  • A low power SleepWalking project is also demonstrated.

Back to Top


SAM L21 Low Power Examples and Training Material

  • Add temperature sensor middleware.
  • Add temperature sensor code.
  • Use a watch window to view temperature sensor data.

Back to Top


Configuring the SPI for the EDBG DGI

  • Add and configure an Serial Peripheral Interface (SPI) driver for the data stream module in the Data Visualizer.
    • Embedded Debugger (EDBG) SPI pins with the Data Gateway Interface (DGI).
  • Add SPI initialization example code.

Back to Top


Implementing the Data Streamer Protocol

  • Add example code to implement the data streamer protocol.
  • Use the data stream module to send temperature and light sensor measurements to the Data Visualizer.

Back to Top