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

📄 test_ppi.asm

📁 bf533平台图像采集程序
💻 ASM
字号:
/*****************************************************************************************/
//
// Name: 	BF533 EZ-KIT video ITU-656 receive mode
//
/*****************************************************************************************

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

File Name:				Main.asm

Date Modified:			3/21/03		TL		Rev 1.3

Software:       		VisualDSP++3.1

Hardware:				BF533 EZ-KIT Board

Special Connections:  	Connect a CVBS video source to the right bottom video jack "AVIN1"
                        change switch #6 of SW3 to on of the ADSP-BF533 EZ-KIT Lite.
						

Purpose:				After reset the ADV7183 is configured to output digital
						video data in ITU656 mode 8bits wide. Additionally, The DSP is 
						configured to receive video data in ITU-656 format via the PPI Interface.
						The DMA channel 0 is dedicated to transfer the data to the 
						external SDRAM immediately (Address 0x0). 

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

#include <defBF533.h>
//#include <startup.h>
					
.section L1_data_a;

/*****************************************************************************************/
// Program Define Section
/*****************************************************************************************/



/*****************************************************************************************/
// 
/*****************************************************************************************/
.global _Reset_7183;
.extern     BF533_EZ_KIT_flash_setup;
.extern		BF533_EZ_KIT_ADV_reset;
.extern		BF533_EZ_KIT_SDRAM_Config;
.extern		_BF533_EZ_KIT_ISR_Config;
.extern		_BF533_EZ_KIT_PPI_Config;
.extern		_BF533_EZ_KIT_DMA_Config;
/*****************************************************************************************/
// Main Program
/*****************************************************************************************/

.section L1_code;
_Reset_7183:

	[--sp] = rets;
	
	//Due to the fact that the reset pin of the ADV7183 is connected to the portA pin 
//of the FLASH Memory the flash must be setup and the pin be toggled to reset the ADV7183
    CALL BF533_EZ_KIT_flash_setup;		//async interface setup + flash setup
    CALL BF533_EZ_KIT_ADV_reset;		//toggle ADV7183 RESET pin

/************ADV Analog Signal Lock Delay*************************************************/

//After ADV7183 reset the video device has to lock to the analog signal at first
//The PPI  should not be enabled before the signal is locked. 

    P0.h = 0x7FF;
    P0.l = 0xFFFF;
	lsetup(ADV7183_video_lock_delay_start, ADV7183_video_lock_delay_end) lc0=P0;
ADV7183_video_lock_delay_start:
	NOP;
	NOP;
ADV7183_video_lock_delay_end: 
	NOP;
	
/******************************************************************************************
	
	
    CALL BF533_EZ_KIT_ISR_Config;	//Configure the Interrupt service routine
    CALL BF533_EZ_KIT_SDRAM_Config;	//Configure the SDRAM
    CALL BF533_EZ_KIT_DMA_Config;	//Configure the DMA in Stop Mode
    //Configure the PPI 8bit, ITU-656 mode, Input Mode, Active Field Only......
    CALL BF533_EZ_KIT_PPI_Config;	
    
 */
 rets = [sp++];
 
_Reset_7183.END:    	
rts;

⌨️ 快捷键说明

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