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

📄 isr.asm

📁 基于跳频的音频连接系统设计(Mono Audio Link Using Frequency Hopping)及源代码
💻 ASM
字号:

;*******************************************************************************************************
;*                                                                                                     *
;*        **********                                                                                   *
;*       ************                                                                                  *
;*      ***        ***                                                                                 *
;*      ***   +++   ***                                                                                *
;*      ***   + +   ***                                                                                *
;*      ***   +            			            				     Interrupt Service Routines										 *			
;*      ***   + +   ***      														 Audio Codec I/O                               *
;*      ***   +++   ***                                                                                *
;*      ***        ***                                                                                 *
;*       ************                                                                                  *
;*        **********                                                                                   *
;*                                                                                                     *
;*******************************************************************************************************
;*                                                                                                     *
;*******************************************************************************************************
;* Assembler: Keil A51                                                                                 *
;* Target platform:  8051F005                                                                          *
;*******************************************************************************************************
;* Revision history:   																					 																	     *
;* Initial release, HKI, 01.08.2004    			                                                      		 *
;******************************************************************************************************/

NAME ISR

#include <ASMinclude.h>


PUBLIC	inCodecISR
PUBLIC	outCodecISR

; Set vector for INT0 (inCodecISR is default)
;	setISRvector() in utilities.asm configures the vector according to the M_MASTER jumper
; ISRs are placed at fixed locations in flash to simplify the vector update.
CSEG	AT 0x003
		LJMP	inCodecISR


;******************************************************************************************************
;* 																									ISR					   							                		  *
;******************************************************************************************************

CSEG AT 0x0480						
inCodecISR:
	
		PUSH	ACC

	  ; Read in from codec
		MOV		A, A_PDATA
		MOVX	@audioInWritePtr, A

		INC		audioInWritePtr
		ORL		audioInWritePage, #0x04

		POP		ACC

		RETI

;*******************************************************************************************************

CSEG AT 0x0400 
outCodecISR:
					
		PUSH	ACC
	
		; Write out to codec
		MOVX	A, @audioOutReadPtr
		MOV		A_PDATA, A

		INC		audioOutReadPtr
		ORL		audioOutReadPage, #0x04

		POP		ACC

		RETI

;*******************************************************************************************************

END







⌨️ 快捷键说明

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