sportisr.asm

来自「ADI 公司的DSP ADSP21262 EZ-KIT LITE开发板的全部源代」· 汇编 代码 · 共 39 行

ASM
39
字号
/////////////////////////////////////////////////////////////
//                                                         //
//     SPORT1 and SPORT3 Interrupt Service Routines        //
//                                                         //
/////////////////////////////////////////////////////////////

#include <def21262.h>
#include "CS8416.h"

.section /pm seg_pmco;
.global _talkThroughISR;

_talkThroughISR:


	r15=dm(RXSP0A);		// read new left sample from ADC

    // Read value on DAI_PB16
    r6=dm(DAI_PIN_STAT);
	r7=0x08000;
    r6=r6 and r7;

    // if stream is non-audio, set the output to zero
    if eq jump dontMute;
      r15=0;
      dontMute:
	
	dm(TXSP1A)=r15;			// write to DAC1
	dm(TXSP1B)=r15;			// write to DAC2
	dm(TXSP2A)=r15;			// write to DAC3
	dm(TXSP2B)=r15;			// write to DAC4
	
	rti;

_talkThroughISR.end:

//--------------------------------------------

⌨️ 快捷键说明

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