Skip to content

Infineon/mtb-t2g-example-graphics-fpd-link-hdmi-basic

Repository files navigation

FPD-link HDMI basic example for graphics middleware

This code example is for outputting the display of a basic image with graphics library package via FPD-Link of Graphic Subsystems.

The drivers used or available in this code example are listed below.

Note: The above document are available on the myInfineon Collaboration Platform (MyICP). If not already available, please create a myInfineon account on www.infineon.com. Then, contact [email protected] and request access to TRAVEO™ T2G myICP.

Requirements

Supported toolchains (make variable 'TOOLCHAIN')

  • GNU Arm® Embedded Compiler v11.3.1 (GCC_ARM) – Default value of TOOLCHAIN

Device

The device used in this demonstration is:

Board

The board used for testing is:

Scope of work

This is a basic code example for converting FPD-Link (LVDS) to HDMI via IT6263 on a TRAVEO™ T2G Cluster 6M Lite Kit and outputting to an HDMI display. See the Hardware setup for a HDMI display.

Introduction

Graphic Subsystems

  • Supports 2D and 2.5D (perspective warping, 3D effects) graphics rendering
  • 40-bit for internal processing (RGBA 10-bit per color channel)
  • 24-bit for interfaces (RGB 8-bit per color channel)
  • 4096 KB of embedded video RAM memory (VRAM)
  • Up to two video output interfaces supporting two displays from
    • Parallel RGB (max display size: 1600 × 600 at 80 MHz)
    • FPD-link single (max display size: 1920 × 720 at 110 MHz)
    • FPD-link dual (max display size: 2880 × 1080 at 220 MHz)
  • One Capture engine for video input processing for ITU 656 or parallel RGB/YUV or MIPI CSI-2 input
    • ITU656 (standard camera capture: up to 800 × 480)
    • RGB (max capture size 1600 × 600 at 80 MHz) or
    • Two-/four-lane MIPI CSI-2 interface (max capture size: 1920 × 720 for two lanes at 110 MHz, 2880 × 1080 for four lanes at 220 MHz)
  • Display warping on-the-fly for HUD applications
  • Direct video feed through from capture to display interface with graphics overlay
  • Composition engine for scene composition from display layers
  • Display engine for video timing generation and display functions
  • Drawing engine for acceleration of vector graphics rendering
  • Command sequencer for setup and control of the rendering process
  • Supports graphics rendering without frame buffers (on-the-fly to both displays)
  • Dual-channel FPD-Link interface for up to Wide-HD resolution video output
  • JPEG Decoder
    • Decodes JPEG images of various formats into pixel data with conformance to a subset of standard ISO/IEC10918-1
    • Color spaces supporting RGB/YUV/Grayscale
    • Supports YUV sub-sampling 4:4:4/4:2:2/4:1:1/4:2:0
    • Image size between 1×1 to 16384×16384 pixels

More details can be found in:

Hardware setup

This demonstration has been developed for:

Figure 1. KIT_T2G_C-2D-6M_LITE (Top View)


No changes are required from the board's default settings.

HDMI display (hardware prerequisite)

  • This code example displays the sample image of 800 x 480 resolution. Supported displays are following.

Implementation

In this code example uses FPD-Link in the graphics subsystem to convert LVDS to HDMI via the on-board IT6263.

  • First, enable graphics power and then initialize the graphics environment.
  • Next, initialize the graphics environment.
  • Configure graphics-related VideoSubSystem interrupts.
  • After LVDS has stabilized, detect the video mode and set the image output settings for HDMI (resolution/ PCLK setting and VideoMode etc).
  • Hot plug detection is also performed during the main loop.

Run and Test

After code compilation, perform the following steps to flashing the device:

  1. Connect the board to your PC using the provided USB cable through the KitProg3 USB connector.

  2. Connect the board to HDMI Display using the HDMI cable through the HDMI connector.

  3. Program the board using one of the following:

    • Select the demonstration project in the Project Explorer.
    • In the Quick Panel, scroll down, and click [Project Name] Program (KitProg3_MiniProg4).
  4. After programming, the demonstration starts automatically.

    • Note: It takes some time about 20seconds to display the image, because of initilize setting of IT6263 and the others.
  5. It will be displayed the basic image like the following.

Figure 2. Normal image


Figure 3. Extended image


References

Relevant Application notes are:

  • AN235305 - Getting started with TRAVEO™ T2G family MCUs in ModusToolbox™

ModusToolbox™ is available online:

ModusToolbox™ Graphics middleware is available online:

Associated TRAVEO™ T2G MCUs can be found on:

More code examples can be found on the GIT repository:

For additional trainings, visit our webpage:

For questions and support, use the TRAVEO™ T2G Forum:

Languages