📄 sportisr.asm
字号:
/////////////////////////////////////////////////////////////
// //
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -