⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ppi_config.c

📁 基于BF533的视频采集及显示
💻 C
字号:
/******************************************************************************/
//
// Name: 	BF533  PPI Setup
//
/******************************************************************************

File Name:	PPI_Config.c

Special Connections:  None

Purpose:		The file sets up the PPI transfer
				
*********************************************************************************/


#include <cdefBF533.h>
#include "PPI_Config.h"

void Init_PPI(void)
{

	//The PPI is set to receive 625 lines for each frame
	*pPPI_FRAME = 625;	

	//PPI enabled, input mode, active video only, receive field 1&2, 
	//packing enabled, DMA32 enabled, skipping enabled, 8bit data bus, nothing inverted
    //*pPPI_CONTROL =   PORT_EN | FLD_SEL | PACK_EN | DMA32 | SKIP_EN | DLEN_8 ;
      *pPPI_CONTROL =    FLD_SEL | PACK_EN | DMA32 |  DLEN_8 ;
   
    // *pPPI_CONTROL |=  0x2;

}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -