MPLAB® Harmony v3 Drivers and System Services on SAM E70/S70/V70/V71: Step 3

Last modified by Microchip on 2024/09/27 12:46

Configure the LED pin.

In this step, the user LED on the SAM E70 Xplained Ultra Evaluation Kit will be configured according to the USER_LED design schematic.

user led schematics 2

Figure 1

In MPLAB® Code Configurator (MCC), select the Pin Settings tab, scroll down to PA5 (Pin Number 73) in the Pin ID column, and then configure the PORT pin PA5 as an output pin for LED functionality.

led pin configuration

Figure 2

Information

The LED on the SAM E70 Xplained Pro board is active low. Configure the LED in default OFF state by configuring the latch value to logic High.


Rename the default main file.

Under the Project Graph tab, click on System and give a name of your liking to the default template main file generated by the MCC.

Main File Name Setup

Figure 3

Information

The name of the default main.c is changed to main_e70.c to indicate that the referred main.c is for the SAM E70/S70/V70/V71 Getting Started Training Module.


Configure Application Tasks.

Go to the Project Graph and select Harmony Core.

Harmony Core

Figure 4

The Configuration Options show that for a Harmony project, MCC automatically enables the generation of application files (app.c and app.h).

Change the Number of Applications to 2.

Expand Application 0 Configuration and rename the default application name to app_sensor.

Expand Application 1 Configuration and rename the default application name to app_eeprom as shown in Figure 5. Press the Enter key to save the application name.

app names

Figure 5

Back to Top