Digit Recognition AI/ML Application on SAM E51 IGAT Curiosity Evaluation Kit Using MPLAB® Harmony v3: Step 7
Configure Harmony Core Service
Select the Harmony Core Service in the Project Graph and configure the Harmony Core Service in Configuration Options.
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.
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.
Once open, you will see the following window on your screen:
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).
In the Clock Easy View window, open the peripheral clock configuration by clicking on the Peripheral Clock Configuration button.
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.
Configure Input System Service
Under the left tab Resource Management (MCC), go to Device Resources and expand Input > Service.
Click on the 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.
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.
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.
The user LED will be configured as per the following USER_LED design schematic on the SAM E51 IGAT Curiosity Evaluation Kit.
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