Init_OSD
 
Component Init_OSD for HC08
On-Screen Display (OSD)
Device Initialization
(Description of the component parameters.)
  • Device - Selection of the OSD device module.
  • Settings - Common OSD module settings.
    • Clock settings - Clock/timing settings of the module.
      • Pixel clock inversion - Invert the PCLK input of OSD. This item modifies CLKINV bit in the OSDCR register.
      • Half frequency of pixel clock - If enabled, the incoming pixel clock is divided by two. This item modifies HALFCLK bit in the OSDCR register.
      • Pixel clock phase adjustment - The phase of pixel clock. This item modifies CLKPH[1:0] bits in the OSDCR register.

        There are 4 options:
        • 0: Pixel Clock Phase Adjustment = 0
        • 1: Pixel Clock Phase Adjustment = 1
        • 2: Pixel Clock Phase Adjustment = 2
        • 3: Pixel Clock Phase Adjustment = 3

    • Horizontal delay - The horizontal starting position. This item modifies HORD bit in the row 15, column 12 of the display registers.
    • Vertical delay - The vertical starting position. This item modifies VERTD bit in the row 15, column 12 of the display registers.
    • Horizontal sync polarity - The polarity of the incoming horizontal sync signal on PHSYNC pin. This item modifies HPOL bit in the row 15, column 15 of the display registers.

      There are 2 options:
      • Positive: Positive horizontal sync signal
      • Negative: Negative horizontal sync signal

    • Vertical sync polarity - The polarity of the incoming vertical sync signal on PVSYNC pin. This item modifies VPOL bit in the row 15, column 15 of the display registers.

      There are 2 options:
      • Positive: Positive horizontal sync signal
      • Negative: Negative horizontal sync signal

    • Row spacing - The spacing between the display rows. This item modifies RSPACE bits in the row 15, column 20 of the display registers.
    • Expand characters by BRM - This property expands the 16-line characters using the binary rate multiplier (BRM) algorithm. This item modifies CH0..3 bits in the row 15, column 14 of the display registers.
    • Display character height select - This property define the final height for the display characters. This item modifies CH4..5 bits in the row 15, column 14 of the display registers.

      There are 3 options:
      • Normal: Display size is same size as expanded font by "Expand Characters by BRM" property.
      • Double: Display size is double size of expanded font by "Expand Characters by BRM" property.
      • Triple: Display size is triple size of expanded font by "Expand Characters by BRM" property.

    • Screen video pattern - Enable/Disable the free-running full-screen video pattern. This item modifies PGE bit in the row 15, column 20 of the display registers.
      The following items are available only if the group is enabled (the value is "Enabled"):
      • Screen video pattern color - The color of the free-running full-screen video pattern. This item modifies PGR, PGG, PGB bits in the row 15, column 21 of the display registers.
    • Background windows - The OSD background windows.
      One Item of the list looks like:
      Window0 - OSD background window.
      • Window Enable - Enable/Disable background window. This item modifies WEN bit in the row 15, column 1 or 4, 7, 10 of the display registers.
      • Window Color - This property defines the color of the background window. This item modifies R, G, B bits in the row 15, column 2 or 5, 8, 11 of the display registers.
      • Shadow Window Enable - Enable/Disable the window shadowing. This item modifies W_SHD bit in the row 15, column 1 or 4, 7, 10 of the display registers.
      • Shadow Window Color - This property defines the color of the shadow. This item modifies Rx, Gx, Bx bits in the row 15, column 18 and 19 of the display registers.
      • Window Geometry - This group sets the window geometry of the OSD.
        • Row Start - The start row to window displaying. This item modifies ROW START ADRESS bits in the row 15, column 0 or 3, 6, 9 of the display registers.
        • Row End - The end row to window displaying. This item modifies ROW END ADRESS bits in the row 15, column 0 or 3, 6, 9 of the display registers.
        • Column Start - The start column to window displaying. This item modifies COLIMN START ADRESS bits in the row 15, column 1 or 4, 7, 10 of the display registers.
        • Column End - The end column to window displaying. This item modifies COLIMN END ADRESS bits in the row 15, column 1 or 4, 7, 10 of the display registers.
        • Shadow Width - The shadow width of the window in pixels. This item modifies WWxx bits in the row 15, column 16 of the display registers.

          There are 4 options:
          • 2: Shadow Height = 2 px
          • 4: Shadow Height = 4 px
          • 6: Shadow Height = 6 px
          • 8: Shadow Height = 8 px

        • Shadow Height - The shadow height of the window in pixels. This item modifies WWxx bits in the row 15, column 17 of the display registers.

          There are 4 options:
          • 2: Shadow Height = 2 px
          • 4: Shadow Height = 4 px
          • 6: Shadow Height = 6 px
          • 8: Shadow Height = 8 px

    • Rows - The OSD window rows.
      One Item of the list looks like:
      Row0 - Enable/Disable row. This property modifies the REN bit in the column 30 of the display registers.
      The following items are available only if the group is enabled (the value is "Enabled"):
      • Character Height - The height of the characters. This property modifies the CHS bit in the column 30 of the display registers.

        There are 2 options:
        • Double: Display characters as double height for this row
        • Normal: Display characters as normal height for this row

      • Character Width - The width of the characters. This property modifies the CWS bit in the column 30 of the display registers.

        There are 2 options:
        • Double: Display characters as double height for this row
        • Normal: Display characters as normal height for this row

  • Pins - Module pins/signals settings.
  • Interrupts - Interrupts settings of the module
    • Interrupt - Interrupt vector (for information only).
    • OSD interrupt - Enable/Disable OSD interrupt. When DENDIF flag in the OSD status register is set the interrupt is requested.
      This item modifies OSDIEN bit in the OSDCR register.
    • ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
      The user code of the routine should handle all respective interrupt flags correctly.
  • Initialization - Initialization options of the module.
    • OSD module enable - This item enables OSD module.
      This item modifies OSD_EN bit in OSD screen memory map register row 15, column 15.
    • OSD memory enable - OSD memory enable selection:
      yes - OSD RAM and font FLASH is under OSD circuitry access
      no - OSD RAM and font FLASH is directly under CPU access
      This item modifies OSDMEN bit in the OSDCR register.
    • OSD module reset - OSD module reset selection:
      yes - resets the entire OSD logic and row15 registers, and holds the OSD in the reset state.
      no - no effect.
      This item modifies OSDRST bit in the OSDCR register