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

📄 init_065l_ezlab_c.asm

📁 ADI公司的ADSP21065L的专业数字音频处理器的源代码
💻 ASM
字号:
/***   INIT_065L_EZLAB_C.ASM   **************************************************
*                                                                               *
*        AD1819/ADSP-21065L Initialization Driver & External Memory SDRAM Init.	*
*        Developed using the ADSP-21065L EZ-LAB Evaluation Platform             *
*                                                                               *
*                                                                               *
*                                                    John Tomarakos             *
*                                                    ADI DSP Applications Group	*
*                                                    Revision 1.1               *
*                                                    9/24/99                    *
*                                                                               *
*********************************************************************************/
	
/* ADSP-21060 System Register bit definitions */
#include 	"def21065l.h"
#include 	"new65Ldefs.h"
#include 	<asm_sprt.h>

.extern		_data_line1;
.extern		_data_dptr1;
.extern		_data_line2;
.extern		_data_dptr2;

.segment /pm seg_pmco;

.global _Init_DSP;
_Init_DSP:
    leaf_entry

	/* 21065L EZ-LAB IRQx and Flag Pushbutton Control */
	r0=0x3F;				/*flags 4 thru 9 are outputs for LEDs */
	dm(IOCTL)=r0;
	bit clr mode2 FLG2O | FLG1O | FLG0O; 	/* flag 3, 2 & 0 inputs  */
	bit set mode2 IRQ1E | IRQ2E;			/* irqx edge sensitive 	*/
	bit clr mode2 IRQ0E;					/* keep irq1 to level sensitive for UART */
	IRPTL = 0x00000000;						/* clear pending interrupts */
	bit set mode1 IRPTEN | NESTM;   		/* enable global interrupts & nesting */	
	bit set imask IRQ0I | IRQ1I | IRQ2I;    /* irq1 and irq2 enabled, keep irq0 enabled for UART */	
	bit set mode1 ALUSAT;  	      			/* enable ALU saturation mode */

	//my initial dsp//
	r0=_data_line1;
	dm(_data_dptr1)=r0;
	M1=1;
	r0=_data_line2;
	dm(_data_dptr2)=r0;
	B2=_data_line2;
    leaf_exit;

.endseg;


⌨️ 快捷键说明

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