Getting Started with Harmony v3 Peripheral Libraries on SAM E70/S70/V70/V71 MCUs
This tutorial shows you how to use MPLAB Code Configurator MCC to create an application that gets you started in developing applications on SAM E70/S70/V70/V71 MCUs using MPLAB Harmony v3 software framework.
The application makes use of SAM E70 Xplained Ultra board and I/O1 Xplained Pro Extension Kit (sold separately).
The application reads the current room temperature from the temperature sensor on the I/O1 Xplained Pro Extension. The temperature read is displayed on a serial console periodically every 500 milliseconds. The periodicity of the temperature values displayed on the serial console is changed to 1 second, 2 seconds, 4 seconds, and back to 500 milliseconds every time you press the switch SW0 on the SAM E70 Xplained Ultra Evaluation Kit. Also, an LED, LED3, is toggled every time the temperature is displayed on the serial console.
The application you create will utilize:
- Two-Wire Interfaces (TWIHS) (I²C) Peripheral Library to read the temperature from a temperature sensor
- Timer Counter (TC) Peripheral Library to periodically sample temperature sensor data
- Universal Synchronous Asynchronous Receiver Transmitter (USART) and Direct Memory Access (DMA) Peripheral Libraries to print the temperature values on a COM (serial) port terminal application running on a PC
- PORTS Peripheral Library to change the periodicity of temperature sensor data read using SWITCH event and toggle the LED
For more information refer the links below.