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

Step 4.1: Configure Generic Display Module

1

Associate the Generic Display module to Integrated Touch Driver by right-clicking on the yellow diamond.

associate_generic_display.png

2

Select Generic Display in the Project Graph and verify the Generic Display on Configuration Options.

generic_display_config.png

Step 4.2: Configure External Display Controller Driver

1

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

associate_le_external_ctrl.png

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

gfx_core_auto_activate.png
added_le_xtrnl_ctrl_nd_gfx_core.png

2

Select the LE External Controller in the Project Graph and configure the LE External Controller on Configuration Options.

le_xtrnl_ctrl_config.png

3

Select the GFX Core LE in the Project Graph and configure the GFX Core LE on Configuration Options.

gfx_core_le_config.png

Step 4.3: Configure Legato Graphics Library

1

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

associate_legato_graphic_lib.png
added_legato_graphic_lib.png

Legato Graphic Library will be configured in Legato composer in the further steps.

legato_graphic_lib_config.png

Step 4.4: Configure Parallel Display Interface

1

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

associate_parallel_display_interface.png
added_parallel_display_interface.png

2

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

parallel_display_interface_config.png

3

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

open_dma_configuration.png

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

dma_window.png

4

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.png

4

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_ch_0_evsys_config.png


Next Step >

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.