网站公告列表

  没有公告

加入收藏
设为首页
联系本站
您现在的位置: Analog安诺电子网 >> 文章 >> 技术交流 >> 文章正文
  BF533 EZ-KIT ISR Config汇编源代码           ★★★ 【字体:
BF533 EZ-KIT ISR Config汇编源代码
作者:佚名    文章来源:Internet    点击数:    更新时间:2008-3-31    

/******************************************************************************/
//
// 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_Config.asm

Date Modified:   08/12/05  TL  Rev 1.0

Software:         VisualDSP++4.0, Assembler 2.6.7.5, Linker 3.5.2.2

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

Chip:     ADSP-BF533 REV 0.4

Special Connections:   None

Purpose:    Interrupt priority and masking
    
    
Program Parameters:

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

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

.global  BF533_EZ_KIT_ISR_Config;
.extern PPI_DMA_ISR;


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

BF533_EZ_KIT_ISR_Config:

 

 //Link the DMA interrupt subroutine to the DSP interrupt event 8
 p0.h = hi(EVT8);
 p0.l = lo(EVT8);
    r0.l = PPI_DMA_ISR;
 r0.h = PPI_DMA_ISR;  // IVG8 Handler
   [p0] = r0;


 p0.h = hi(SIC_RVECT);
 p0.l = lo(SIC_RVECT);
 
 //enables the DMA interrupt by setting the System Interrupt Controller
 r0 = 0x0100(z); [p0+SIC_ISR-SIC_RVECT] = r0;
 //enables the DMA interrupt by setting the System Interrupt IMASK Register
 r0 = 0x0100(z); [p0+SIC_IMASK-SIC_RVECT] = r0;
 

 //The DMA is linked to interrupt vector 8 IVG8
 r0.l =  lo(P8_IVG(8) | P9_IVG(14) | P10_IVG(14) | P11_IVG(14));
 [p0+SIC_IAR1-SIC_RVECT] = r0;


 //Finally the DMA interrupt has been enabled at the core level
 p0.h = hi(IMASK);
 p0.l = lo(IMASK);
 r0 = [p0]; 
 r1= 0x0100;
 r0 = r0 | r1;
 [p0] = r0;
 
BF533_EZ_KIT_ISR_Config.END:
RTS;
/*******************************************************************************/

//本代码Blackfin示例

文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
    FPGA+DSP实时三维图像信息处
    ADP-TS101 EzFlash示例程序
    ADSP TS101EzFlash (C)源代码
    ADI DSP双精度除法的例子
    ADI GPS导航解决方案
    用对数放大器实现射频功率控
    ADI DSP的单精度随机斜率滤波
    多路跟踪滤波同步数据采集系
    基于单片机的车载超级电容测
    设计面向高清电视的全数字音
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    版权所有:Analog安诺电子网 湘ICP备06016315号