This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to change vsync and Hsync frequency

Hello~

  I'm using dm368  and  porting PRGB LCD.

 now dclk: 6.7Mhz  Vsync: 330hz, Hsync: 81Khz

 how can I change Vsync, and Hsync frequency?

please help me. thanks

 

  • I am not familiar w/ DM368 VPBE, but I think those chips should be similar.

    There should be kind of 'counter' which represents how much pixels per line and how many lines per frame.

    Suggest you search registers by those key words in VPBE document and go back to SDK code through those registers.

    Or you can search key words by video standards in SDK code.

    I remember there should be VPBE test code in a CCS project, you can take it as reference,

    http://support.spectrumdigital.com/boards/evmdm368/revg/files/EVMDM368_BSL.zip

    Regards,

    Eason

  • HI, 

    Have a look at VPFE data sheet for DM368.  You can set the required signals using HDW/VDW  registers.  

    This document should clear all your doubts on this topic.

  • thanks your suggestion.  now I can change freq about Hsync, Vsync.

    set margin data , can change Hsync or Vsync frequency

    static struct vpbe_enc_mode_info lcd_panel_timings[] = {
     {
      .name  = "320x240",
      .timings_type = VPBE_ENC_CUSTOM_TIMINGS,
      .timings = {CUSTOM_TIMING_320_240},
      .interlaced = 0,
      .xres  = 320,
      .yres  = 240,
      .aspect  = {1, 1},
      .fps  = {30, 1},
      .left_margin = 0,
      .right_margin = 360,
      .upper_margin = 0,
      .lower_margin = 450,
      .hsync_len = 40,
      .vsync_len = 10,
      .flags  = 0
     },
    };