Use Case 4: Send Video Stream - 3.2 English

HDMI 1.4/2.0 Transmitter Subsystem Product Guide (PG235)

Document ID
PG235
Release Date
2023-10-18
Version
3.2 English
  1. Disable the Video PHY Controller /HDMI GT Subsystem TMDS clock for the HDMI 1.4/2.0 TX Subsystem through the API:
    XVphy_Clkout1OBufTdsEnable(XVphy *InstancePtr, 
                               XVphy_DirectionType Dir,
                               u8 Enable);

    Example:

    XVphy_Clkout1OBufTdsEnable(VphyPtr, 
                               XVPHY_DIR_TX, 
                              (FALSE)); 
  2. Set the HDMI 1.4/2.0 TX Subsystem stream parameters through the API:
    u32 XV_HdmiTxSs_SetStream(XV_HdmiTxSs *InstancePtr,
                              XVidC_VideoMode VideoMode,
                              XVidC_ColorFormat ColorFormat,
                              XVidC_ColorDepth Bpc, 
                              XVidC_3DInfo *Info3D);

    Example:

    TmdsClock = XV_HdmiTxSs_SetStream(HdmiTxSsPtr, 
                                      VideoMode,
                                      ColorFormat, 
                                      Bpc, 
                                      NULL); 
  3. Set the Video PHY Controller /HDMI GT Subsystem TX reference clock:
    VphyPtr->HdmiTxRefClkHz = TmdsClock; 
  4. Set the HDMI TX parameter for the Video PHY Controller /HDMI GT Subsystem:
    u32 XVphy_SetHdmiTxParam(XVphy *InstancePtr, 
                             u8 QuadId, 
                             XVphy_ChannelId ChId,
                             XVidC_PixelsPerClock Ppc, 
                             XVidC_ColorDepth Bpc,
                             XVidC_ColorFormat ColorFormat);

    Example:

    Result = XVphy_SetHdmiTxParam(VphyPtr, 
                                  0, 
                                  XVPHY_CHANNEL_ID_CHA,
                                  HdmiTxSsVidStreamPtr->PixPerClk,
                                  HdmiTxSsVidStreamPtr->ColorDepth,
                                  HdmiTxSsVidStreamPtr->ColorFormatId); 
  5. Program the external clock generator to provide the Reference TMDS clocks for the Video PHY Controller /HDMI GT Subsystem.
  6. Video PHY Controller /HDMI GT Subsystem HDMI TX Init interrupt is received.
    • Callback function registered to XVPHY_HDMI_HANDLER_TXINIT Interrupt type is called.
  7. Video PHY Controller /HDMI GT Subsystem HDMI TX Ready interrupt is received.
    • Callback function registered to XVPHY_HDMI_HANDLER_TXREADY Interrupt type is called.
  8. HDMI TX Stream UP interrupt is received.
    • Callback function registered to XV_HDMITXSS_HANDLER_STREAM_UP Interrupt type is called.