AnsweredAssumed Answered

the den pin is always low volatage

Question asked by chenghaibo on Jun 16, 2013
Latest reply on Jul 1, 2013 by Prashant

   when i configure the eppi0 like this,but the den pin also names FS3, looks like function incorrectly, that is always low voltage,that why?

   adi_eppi_SetITUMode(hDevice,ADI_EPPI_GENERAL_PURPOSE);

    adi_eppi_SetFSMode(hDevice,ADI_EPPI_FS_MODE2);

    adi_eppi_SetDmaTransferSize(hDevice,ADI_EPPI_DMA_TRANSFER_32BIT);

    adi_eppi_SetDataLength(hDevice,ADI_EPPI_16BIT);

    adi_eppi_SetBlankingGeneration(hDevice,true);

    adi_eppi_SetFSPolarity(hDevice,ENUM_EPPI_CTL_FS1LO_FS2HI);

    adi_eppi_SetInternalClk(hDevice,true);

    adi_eppi_SetInternalFS(hDevice,true);

    adi_eppi_SetPack(hDevice,true);

 

    //The clock frequency is required. the parameter values inside SAA7113 is according to PPI_CLK.

    adi_eppi_SetClockDivide(hDevice,0x04);   //25000000   SCLK/(2(DIVI+1))  250000000/(2(4+1)) = 25 000 000

    adi_eppi_SetFrameSync1(hDevice,800,640,0);

    adi_eppi_SetHorizontalDelay(hDevice,0);

    adi_eppi_SetSamplesPerLine(hDevice,800);

    adi_eppi_SetHorizontalCount(hDevice,640);//set active pixel per line

 

 

    //800*625 = 500000

    adi_eppi_SetFrameSync2(hDevice,500000,1600,0);

    adi_eppi_SetVerticalDelay(hDevice,0);

    adi_eppi_SetLinesPerFrame(hDevice,625);

    adi_eppi_SetVerticalCount(hDevice,480);//set active line per frame

          result = adi_eppi_RegisterCallback(hDevice, PpiCallback, NULL);

          result = adi_eppi_SubmitBuffer(hDevice, TxBuffer[0], TXBUFFER_SIZE);

 

 

    result = adi_eppi_Enable(hDevice,true);

    while(bComplete_cnt != 1000000);

    result = adi_eppi_Enable((ADI_EPPI_HANDLE)hDevice, false);

          result = adi_eppi_Close(hDevice);

 

 

    return 0;

Outcomes