Digit Recognition AI/ML Application on SAM E51 IGAT Curiosity Evaluation Kit Using MPLAB® Harmony v3: Step 7

Last modified by Microchip on 2023/11/09 09:08

 

Configure Harmony Core Service

Select the Harmony Core Service in the Project Graph and configure the Harmony Core Service in Configuration Options.

Harmony core service configuration
Click image to enlarge.

Back to Top


Configure NVMCTRL Peripheral Library (PLIB)

The NVMCTRL is added by default to the project graph. Select the NVMCTRL in the Project Graph and configure the NVMCTRL PLIB in the Configuration Options.

MVMCTRL configuration
Click image to enlarge.

Back to Top


Configure Event System (EVSYS) PLIB

The EVSYS is added by default to the project graph. Launch the Event System Configuration window from the Project Graph tab, and select Plugins > Event System Configuration.

Open event system configuration

Once open, you will see the following window on your screen:

Event system configuration window
Click image to enlarge.

Configure the EVSYS channel 0 in the Event System Manager window:

  • Set the DMA Controller Channel 0 (DMAC_CH_0) event as the event generator. The event is configured to appear asynchronously.
  • Set the CCL Look-Up Table Input 0 (CCL_LUTIN_0) as the event user.

Make sure that the status of the event and user (Event Status and User Ready) is green. If it is red, verify that the Event Output and Event Input are enabled in the respective PLIB configuration (DMAC and CCL for this application example).

Note: Currently, the User Ready status will be in red at the event generator section in the Event System Manager window even event user is configured.

Event system configuration
Click image to enlarge.

In the Clock Easy View window, open the peripheral clock configuration by clicking on the Peripheral Clock Configuration button.

Event system clock configuration

Once the window is opened, scroll down to the EVSYS_0 peripheral and set GCLK3 (100 MHz) as the source clock to the CCL peripheral.

As per the electrical characteristics of EVSYS, provided in the SAM D5x/E5x Family datasheet, the EVSYS peripheral maximum running clock frequency is 100 MHz.

Event system clock configuration
Click image to enlarge.

Back to Top

Configure Input System Service

Under the left tab Resource Management (MCC), go to Device Resources and expand Input > Service.

Click on the green plus symbol beside Input System Service to add the Input System Service to the project.

Once the Input System Service is added to the Project Graph, configure the Input System Service configuration on Configuration Options.

Input system service configuration

Add input system service
Click image to enlarge.

Back to Top


Configure GPIO Pins for QSPI, Crystal Oscillator and LED

The QSPI pins will be configured as per the following QSPI design schematic on the SAM E51 IGAT Curiosity Evaluation Kit.

In the Pin Settings window, scroll down to respective pin numbers and then configure the pins as shown.

QSPI pin design

QSPI pin configuration
Click image to enlarge.

The 8-48 MHz Crystal Oscillator external input (OSCCTRL_XIN0) pin will be configured as per the following Target Clock design schematic on the SAM E51 IGAT Curiosity Evaluation Kit.

 In the Pin Settings window, scroll down to the respective pin number #31 (PA14) and then configure the pin as shown.

XTAL pin configuration

XTAL oscillator design
Click image to enlarge.

The user LED will be configured as per the following USER_LED design schematic on the SAM E51 IGAT Curiosity Evaluation Kit.

LED design

In the Pin Settings window, scroll down to pin number #63, and then configure this pin according to the list.

  • Set the Pin Number #63 as GPIO:
    • Pin ID = PB02
    • Custom Name = LED0
    • Function = GPIO
    • Direction = Out
    • Latch = High

USER LED configuration

Back to Top