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.

Outputting data via VPIF

Hello,

 

I have problems on outputting an image (currently it consists of dummy data) via VPIF. I've choosed progressive output mode and here's my code to configure VPIF:

  #define IMAGE_X_BLANKING_SIZE 94
  #define IMAGE_Y_BLANKING_SIZE 45
  #define IMAGE_X_VALID_SIZE    752
  #define IMAGE_Y_VALID_SIZE    480

  #define IMAGE_X_SIZE (IMAGE_X_BLANKING_SIZE + IMAGE_X_VALID_SIZE)
  #define IMAGE_Y_SIZE (IMAGE_Y_BLANKING_SIZE + IMAGE_Y_VALID_SIZE)

  UChar image_to_display[IMAGE_Y_SIZE][IMAGE_X_SIZE];

  Void MAIN_InitLVDS()
  {
    Int x, y;
    Int counter = 0;


    vpif0_regs->DISPLAY[0].TLUMA = CSL_FMK(VPIF_C2TLUMA_TLUMA, (UInt32) image_to_display);
    vpif0_regs->DISPLAY[0].HCFG = CSL_FMK(VPIF_C2HCFG_EAV2SAV, IMAGE_X_BLANKING_SIZE) |
                                  CSL_FMK(VPIF_C2HCFG_SAV2EAV, IMAGE_X_VALID_SIZE);
    vpif0_regs->DISPLAY[0].VCFG0 = CSL_FMK(VPIF_C2VCFG0_L1, 0) |
                                   CSL_FMK(VPIF_C2VCFG0_L3, 0 + IMAGE_Y_BLANKING_SIZE);
    vpif0_regs->DISPLAY[0].VCFG1 = CSL_FMK(VPIF_C2VCFG1_L5, IMAGE_Y_SIZE);
    vpif0_regs->REQSIZE = CSL_FMKT(VPIF_REQSIZE_BYTES, 32);

    vpif0_regs->C2CTRL = CSL_FMKT(VPIF_C2CTRL_CLKEN, ENABLE) |
                         CSL_FMKT(VPIF_C2CTRL_CLKEDGE, RISE) |
                         CSL_FMKT(VPIF_C2CTRL_FIELDFRAME, FRAME) |
                         CSL_FMKT(VPIF_C2CTRL_INTRPROG, PROGRESSIVE);
   
    for (y = 0; y < IMAGE_Y_SIZE; y++)
    {
        for (x = 0; x < IMAGE_X_SIZE; x++)
        {
            if ((x < IMAGE_X_VALID_SIZE) && (y < IMAGE_Y_VALID_SIZE))
            {
                counter++;
            }
            image_to_display[y][x] = counter;
        }
    }
   
    vpif0_regs->C2CTRL = CSL_FINST(vpif0_regs->C2CTRL, VPIF_C2CTRL_CHANEN, ENABLE);

}

 

The problem is that if I measure the data output pins with an oscilloscope, nothing happens. The only thing I can see is the signal of VCLKOUT2. Who knows how to use the VPIF and how to configure? I just want to output the raw image data, so nothing special. But maybe Iam missing something (DMA configuration, trigger of DMA transfer)?

 

Any help on this issue would be very appreciated.

 

Thanks,

Steve

 

P.S. Sorry for the cross-post, I first accidentally posted it at the embedded SW forum, but since no one moved this thread to this forum I've posted a new one.