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

📄 ez_kit_ppi_config.asm

📁 adi bf533视频编码程序
💻 ASM
字号:
/******************************************************************************/
//
// Name: 	BF533 EZ-KIT video ITU-656 receive mode
//
/******************************************************************************

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

File Name:		BF533_EZ-KIT_PPI_Config.asm

Date Modified:	3/27/03		TL		Rev 1.2

Software:       VisualDSP++3.1

Hardware:		ADSP-BF533 EZ-KIT Board

Special Connections:  None

Purpose:		PPI setup
				
				
Program Parameters:

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


#include <defBF533.h>

.global	_BF533_EZ_KIT_PPI_Config;

.section L1_code;
/*******************************************************************************/
_BF533_EZ_KIT_PPI_Config:


	p0.h = hi(PPI_CONTROL);
	p0.l = lo(PPI_CONTROL);

	//set this value to 625 for PAL, and 525 for NTSC;
	r0 = 625(z);//525;
	w[p0+PPI_FRAME-PPI_CONTROL] = r0;
	ssync;

	//DMA32 is no use.
	//PPI enabled, input mode, active video only, receive field 1&2, 
	//packing enabled, DMA32 enabled, skipping disabled, 8bit data bus, nothing inverted
	r0 = PORT_EN |PACK_EN|DLEN_8|DMA32 ;	 
//	r0 =  PORT_EN | PACK_EN | DLEN_8 (z);//modified by qihuafei

	w[p0+PPI_CONTROL-PPI_CONTROL] = r0;
	SSYNC;//FLD_SEL |DMA32 |
   
_BF533_EZ_KIT_PPI_Config.END:	
RTS;



.global _PPI_STOP;
_PPI_STOP:
 	p0.h = hi(PPI_CONTROL);
	p0.l = lo(PPI_CONTROL);
    r0=0;
    w[p0]=r0;
    ssync;
    
_PPI_STOP.END:
RTS;

⌨️ 快捷键说明

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