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

📄 bf533_ez-kit_isr.asm

📁 ADI BLACKFIN BF533 的IIC驱动程序
💻 ASM
字号:
/******************************************************************************/
//
// Name: 	BF533 EZ-KIT video ITU-656 receive mode (8bit) for the Omnivision chip OV6630
//
/*****************************************************************************************

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

File Name:				BF533_EZ-KIT_ISR.asm

Date Modified:			01/08/07		TL		Rev 2.0

Software:       		VisualDSP++4.5, Assembler 1.1.0.2, Linker 3.8.0.2

Hardware:				BF533 EZ-KIT Board (rev 1.2), Blackfin EZ-Extender (rev 1.2)

Chip:					ADSP-BF533 REV 0.2

Purpose:				All interrupt service routines are located here 
				
				
Program Parameters:

********************************************************************************/
#include <defBF533.h>

/*****************************************************************************************/
// Global and extern subroutines
/*****************************************************************************************/

.global		PPI_DMA_ISR;
.extern		Recive_DMA_In_Progress;

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

/*****************************************************************************************/
// Program Variable Section
/*****************************************************************************************/


/*****************************************************************************************/
// Program
/*****************************************************************************************/
.section L1_code;

// DMA Interrupt		
PPI_DMA_ISR:

	// service the interrupt request
	p0.h = hi(DMA0_NEXT_DESC_PTR);
	p0.l = lo(DMA0_NEXT_DESC_PTR);
	r0 = 0x1(z);
	w[p0+DMA0_IRQ_STATUS-DMA0_NEXT_DESC_PTR] = r0;
	ssync;
	
	//Turn off the PPI after the Descriptor DMA has been finished
	//if not the interrupt will always be executed because of PPI activities
	p0.h = hi(PPI_CONTROL);
	p0.l = lo(PPI_CONTROL);
	r0 =  0;	 
	w[p0+PPI_CONTROL-PPI_CONTROL] = r0;
	SSYNC;
	
	p0.h = Recive_DMA_In_Progress;       
	p0.l = Recive_DMA_In_Progress;       
    r0 = 1;
    [p0] = r0;   
		
	
PPI_DMA_ISR.END:
RTI;
/*******************************************************************************/

⌨️ 快捷键说明

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