bf54x_cmos1yuv_tft 代码/****************************************************************************
* 名称 : InitPPI2DMA
* 功能 : 初始化EPPI1的DMA寄存器,DMA13
* 入口参数 :无
* 返回值 :无
****************************************************************************/
void InitPPI1DMA(void)
{
*pDMA13_START_ADDR = cmosbuffer1;
// Line_Length 2 bit transfers will be executed
*pDMA13_X_COUNT = 480/4;
// *pDMA13_X_COUNT = 480*2/4;
// The modifier is set to 2 because of the 16 bit transfers
*pDMA13_X_MODIFY = 0x4;
// Frame_Length 16 bit transfers will be executed
*pDMA13_Y_COUNT = 272;
// The modifier is set to 2 because of the 16 bit transfers
*pDMA13_Y_MODIFY = 0x4;
// DMA Config: Enable DMA | Generate interrupt on completion | Memory read DMA |
// 16-bit xfers | 2-D DMA | Discard DMA FIFO before start
*pDMA13_CONFIG = WNR |DI_EN |WDSIZE_32 | DMA2D | SYNC ;
ssync();
}
\bf54x_doublecmos_tft中的
void InitPPI1DMA(void)
{
*pDMA13_START_ADDR = cmos1buffer1;
// Line_Length 2 bit transfers will be executed
*pDMA13_X_COUNT = 240*2/4;
// The modifier is set to 2 because of the 16 bit transfers
*pDMA13_X_MODIFY = 0x4;
// Frame_Length 16 bit transfers will be executed
*pDMA13_Y_COUNT = 272;
// The modifier is set to 2 because of the 16 bit transfers
*pDMA13_Y_MODIFY = 0x4;
// DMA Config: Enable DMA | Generate interrupt on completion | Memory read DMA |
// 16-bit xfers | 2-D DMA | Discard DMA FIFO before start
*pDMA13_CONFIG = WNR |DI_EN |WDSIZE_32 | DMA2D | SYNC ;
ssync();
}
另外我还想知道按照文档上说明下载flash后,开发板并无反应,原来的工程都不能设置为调试下载模式!?这个怎么处理啊?