MPLAB® Harmony Graphics Suite
|
Defining the Architecture
In this configuration, the Aria Graphics library renders the frame to a 32-bit frame buffer in external DDR. The LCDC display controller on the A5D2 is used to drive frame data from DDR to the display. 16-bit RGB565 frame buffer is stored in the internal SRAM.
User touch input on the display panel is received thru the PCAP capacitive touch controller, which sends a notification to the Touch Input Driver. The Touch Input Driver reads the touch information over I2C and sends the touch events to the Aria Graphics Library Task thru the Input System Service Task.
Demonstration Features
• Input system service and driver
• Time system service, timer-counter peripheral library and driver
• LCDC peripheral and driver
• I2C driver
• 32-bit RGBA8888 color depth support
• RAW RLE image stored in internal flash
Creating the Project Graph
The Project Graph diagram shows the Harmony components that are included in this application. Lines between components are drawn to satisfy components that depend on a capability that another component provides.
Adding the “SAM A5D2 XPlained Ultra BSP” and “Aria Graphics w/ PDA TM4301B Display” Graphics Template component into the project graph will automatically add the components needed for a graphics project and resolve their dependencies. It will also configure the pins needed to drive the external peripherals like the display and the touch controller.
The GFX template automatically sets the heap size to 32768 bytes. The heap is set in the System component properties as shown in the image below:
Building the Application
The parent directory for this application is gfx/apps/aria_quickstart. To build this application, open the IAR project at: gfx/apps/aria_quickstart/firmware/aria_qs_a5d2_xu_tm4301b.eww. Once IAR is launched, simply build the application to produce the harmony.bin image. Copy harmony.bin to a FAT32-formatted SD card. The SD card must also contain the supplied bootloader binary needed to boot Harmony applications. Insert the card to the SDMMC1 port on the SAM A5D2 Xplained Ultra board
For more building information, see: Getting started with Harmony 3 on the SAMA5D2.
The following table lists configuration properties:
Project Name |
BSP Used |
Graphics Template Used |
Description |
aria_qs_a5d2_xu_tm4301b.eww |
SAM A5D2 Xplained Pro |
Aria Graphics w/ Xplained Pro Display |
Aria GFX on SAM A5D2 Xplained Ultra Board and PDA TM4301 Display |
![]() |
This application may contain custom code that is marked by the comments // START OF CUSTOM CODE ... and // END OF CUSTOM CODE. When using the MPLAB Harmony Configurator to regenerate the application code, use the "ALL" merging strategy and do not remove or replace the custom code. |
Configuring the Hardware
The final setup should be:
Running the Demonstration
When power-on is successful, the demonstration will display a similar menu to that shown in the following figure (different configurations may have slight variation in the screen aspect ratio):
When Make changes. Generate. Run. is touched, the button will toggle with each individual touch.
MPLAB® Harmony Graphics Suite
|