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

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

Configure Generic Display Module

Associate the Generic Display module to Integrated Touch Driver by right-clicking on the yellow diamond.
Associate generic display
Click image to enlarge.
Select Generic Display in the Project Graph and verify the Generic Display on Configuration Options.
Generic display configuration
Click image to enlarge.

Configure External Display Controller Driver

Associate LE External Controller module to Generic Display by right-clicking on the yellow diamond.

If auto prompted to auto-activate GFX Core LE, click Yes.

Click yes

Added LE external

Associate LE external
Click image to enlarge.
Select the LE External Controller in the Project Graph and configure the LE External Controller on Configuration Options.
LE external control configuration
Click image to enlarge.
Select the GFX Core LE in the Project Graph and configure the GFX Core LE on Configuration Options.
Graphics core LE configuration
Click image to enlarge.

Back to Top


Configure Legato Graphics Library

Associate Legato Graphics Library module to LE External Controller by right-clicking on the yellow diamond.
Associate Legato
Added Legato
Click image to enlarge.

Configure Parallel Display Interface

Associate Parallel Display Interface module to LE External Controller by right-clicking on the red diamond.
Associate parallel display interface

Select the Parallel Display Interface in the Project Graph and configure the Parallel Display Interface on Configuration Options.

Parallel display interface configuration

From the Project Graph tab, select Plugins > DMA Configuration to launch the DMA Configuration window.

Open DMA configuration

A new window, DMA Settings, is opened in the project’s main window.

DMA window

Click on the DMA Settings tab. Configure DMA Channel 0 to transfer application buffer to the Parallel Display Interface. The DMA transfers 1 byte from the CCL output to Parallel Display Interface on each trigger.

Based on the trigger source, the DMA channel configuration is automatically set by Microchip Code Configurator (MCC).

  • Trigger Action: Action was taken by DMA on receiving a trigger
    • One beat transfer: Generally used during a memory-to-peripheral or peripheral-to-memory transfer
    • One block transfer: Generally used during memory-to-memory transfer on a software trigger
  • Source Address Mode, Destination Address Mode: Select whether to increment Source/Destination Address after every transfer. Automatically set by MCC based on the trigger type. For example:
    • If the trigger source is memory-to-peripheral, then the Source Address is incremented, and the Destination Address is fixed
    • If the trigger source is peripheral-to-memory, then the Source Address is fixed, and the Destination Address is incremented
  • Beat Size: Size of one beat. The default value is 8-bits. For example:
    • If the SPI peripheral is configured for 16-bit/32-bit mode, then the beat size must be set to 16-bits/32-bits respectively
Display interface DMA setup
Click image to enlarge.
Also, configure the DMA Channel 0 Event System Configuration and Priority Level 0 Arbitration Scheme by selecting System component in the Project Graph and expand the System > DMA (DMAC) > Use DMA Channel 0 > Event System Configuration.
DMA channel 0 configuration
Click image to enlarge.

Back to Top