Atmel START: Using the SAM E54 Event System with RTC, ADC, USART and DMA - Step 5

Step 5.1: Build and program the application

1

Build build.png the project. After a successful build, the "Build succeed" message will appear on the output window.

In case of compilation errors, recheck the steps and build the project again.

2

Program run.png the code.

3

Open Tera Term. Navigate to File > New connection > Serial. Select 'COM PORT' and press OK to make a serial connection open. Go to Setup > Serial port… and make sure the baud rate is set to '9600'.

Tera Term displays the value in ASCII format by default. The light sensor values in the demo are in HEX format. Hence, you need to change the Tera Term configuration to HEX format.

To change Tera Term from ASCII format to Hex format:

  • Go to the Tera Term installation folder and search for the file TERATERM.INI.
  • Open TERATERM.INI and set the debug variable to On.
  • Open Tera Term and set up the connection then press Shift + Esc twice to change the mode to Hex format.

4

Once Tera Term is connected, press the RESET button on the SAME54 Xplained Pro Board. You will see a light sensor value displayed every second continuously. Hover your hand nearer to the light sensor present in the I/O1 Xplained board to see the values changing.

result1.png

Step 5.2: Observe current consumption on Data Visualizer

1

Use the Data Visualizer to read current consumption values. The current consumption will be low when the MCU is in the sleep state. The Data Visualizer can be opened from the Atmel Studio Menu (Tools > Data Visualizer).

data_visualizer.png

2

Click on the Connect button to have the Data Visualizer ready to receive information from the Xplained Pro Board.

dvconnect.png

3

After the Data Visualizer is connected to the Xplained Pro Board, select the 'Power' interface and click on the Start button.

dvstart.png

4

On the right-hand side of the Power Analysis window, click on the 'Control Panel' tab and the change settings to the following:

  1. Change the Channel A mode setting to 'HiRes'
  2. Enable 'Cursors' in the cursor tab
  3. Disable 'Auto-scroll'
  4. Place the cursors at the RTC events to measure event occurring time as shown in below image.
dvresult1.png

5

Note that the Data Visualizer is showing that the power consumption is low (in sleep mode) for most of the time for the above assignment. Now you are able to see that the power consumption differs between active mode and standby mode, highlighted in orange with text for active mode and sleep mode in the image above.

 Results

You observed how the event system and drivers worked together to read and display the light sensor value using the SAME54 Xplained Pro Evaluation Kit and I/O1 Xplained Pro Kit.

 Analysis

In this lab, you have successfully created a project from scratch, added drivers and learned how to use the EVENT SYSTEM to drive the events received from the peripherals without CPU intervention. You also learned how to use Atmel START for creating the project, adding and reconfiguring the drivers for your existing project.

 Conclusions

In this tutorial, you discovered how to utilize Atmel START for creating your custom projects, adding drivers, configuring the event system, DMA, etc. through hands-on experience. If you need to start creating your custom application with drivers, this tutorial can be used as a reference.

© 2025 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.