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.

屏老配不好,帮配一下,



屏老配不好,帮配一下,我自己琢磨一下

void Raster0Init(void)
{
RasterClocksEnable(SOC_LCDC_0_REGS);

/* Disable raster */
RasterDisable(SOC_LCDC_0_REGS);

/* Configure the pclk */

RasterClkConfig(SOC_LCDC_0_REGS, 33300000, 219000000);

/* Configuring DMA of LCD controller */
RasterDMAConfig(SOC_LCDC_0_REGS, RASTER_DOUBLE_FRAME_BUFFER,
RASTER_BURST_SIZE_16, RASTER_FIFO_THRESHOLD_8,
RASTER_BIG_ENDIAN_DISABLE);

/* Configuring modes(ex:tft or stn,color or monochrome etc) for raster controller */
RasterModeConfig(SOC_LCDC_0_REGS, RASTER_DISPLAY_MODE_TFT_UNPACKED,
RASTER_PALETTE_DATA, RASTER_COLOR, RASTER_EXTRAPOLATE);

/* Configuring the polarity of timing parameters of raster controller */
RasterTiming2Configure(SOC_LCDC_0_REGS, RASTER_FRAME_CLOCK_LOW |
RASTER_LINE_CLOCK_LOW |
RASTER_PIXEL_CLOCK_HIGH|
RASTER_SYNC_EDGE_RISING|
RASTER_SYNC_CTRL_ACTIVE|
RASTER_AC_BIAS_HIGH , 0, 255);

/* Configuring horizontal timing parameter */
RasterHparamConfig(SOC_LCDC_0_REGS, 800, 20, 210, 46);

/* Configuring vertical timing parameters */
RasterVparamConfig(SOC_LCDC_0_REGS, 480, 10, 22, 23);

RasterFIFODMADelayConfig(SOC_LCDC_0_REGS, 128);
}

附屏参数