ppi_config.c

来自「该程序实现了PAL视频图象在ADI BF533开发板上的动态采集。」· C语言 代码 · 共 51 行

C
51
字号
/******************************************************************************/
//
// Name: 	BF533 EZ-KIT PPI Setup
//
/******************************************************************************

(C) Copyright 2006 - Analog Devices, Inc.  All rights reserved.

File Name:	PPI_Config.c

Date Modified:	10/25/04			Rev 0.2

Software:       VisualDSP++4.5

Hardware:		ADSP-BF533 EZ-KIT Board

Special Connections:  None

Purpose:		The file sets up the PPI transfer
				
				

*********************************************************************************/


#include "system.h"




void Init_PPI(void)
{

	//PPI enabled, input mode, receive field 1&2, 
	//packing enabled, skipping disabled, 8bit data bus, nothing inverted
	#ifdef ACTIVE_FIELD_MODE
		//Active field mode (XFR_TYPE = 0x00)
		*pPPI_CONTROL = PORT_EN | FLD_SEL | PACK_EN | DLEN_8; 
		//The PPI is set to receive 507 lines for each frame
		*pPPI_FRAME = 507;	
	#else
		//entire field mode (XFR_TYPE = 0x01)
		*pPPI_CONTROL = PORT_EN | FLD_SEL | PACK_EN | DLEN_8 | 0x0004 ; 
		//The PPI is set to receive 525 lines for each frame
		*pPPI_FRAME = 525;	
	#endif

}//end Init_PPI


⌨️ 快捷键说明

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