📄 csdint.lis
字号:
0000 ENDIF
0000 ENDIF ; RAM_USE_CLASS_3
0000
0000 IF ( @ACTUAL_CLASS & RAM_USE_CLASS_4 )
0000 ; Nothing to do
0000 ENDIF ; RAM_USE_CLASS_4
0000
0000 macro RAM_EPILOGUE( ACTUAL_CLASS )
0000
0000 IF ( @ACTUAL_CLASS & RAM_USE_CLASS_1 )
0000 ; Nothing to do
0000 ENDIF ; RAM_USE_CLASS_1
0000
0000 IF ( @ACTUAL_CLASS & RAM_USE_CLASS_2 )
0000 RAM_RESTORE_NATIVE_PAGING
0000 ENDIF ; RAM_USE_CLASS_2
0000
0000 IF ( @ACTUAL_CLASS & RAM_USE_CLASS_3 )
0000 RAM_RESTORE_NATIVE_PAGING
0000 ENDIF ; RAM_USE_CLASS_3
0000
0000 IF ( @ACTUAL_CLASS & RAM_USE_CLASS_4 )
0000 ; Nothing to do
0000 ENDIF ; RAM_USE_CLASS_4
0000
0000 macro REG_PRESERVE( IOReg )
0000 mov A, reg[ @IOReg ]
0000 push A
0000 macro REG_RESTORE( IOReg )
0000 pop A
0000 mov reg[ @IOReg ], A
0000 macro ISR_PRESERVE_PAGE_POINTERS
0000 IF ( SYSTEM_LARGE_MEMORY_MODEL )
0000 REG_PRESERVE CUR_PP
0000 REG_PRESERVE IDX_PP
0000 REG_PRESERVE MVR_PP
0000 REG_PRESERVE MVW_PP
0000 ENDIF
0000 macro ISR_RESTORE_PAGE_POINTERS
0000 IF ( SYSTEM_LARGE_MEMORY_MODEL )
0000 REG_RESTORE MVW_PP
0000 REG_RESTORE MVR_PP
0000 REG_RESTORE IDX_PP
0000 REG_RESTORE CUR_PP
0000 ENDIF
export _CSD_CNT_ISR
export _CSD_CMP_ISR
export _CSD_CMP0_ISR
AREA InterruptRAM (RAM,REL,CON)
;@PSoC_UserCode_INIT@ (Do not change this line.)
;---------------------------------------------------
; Insert your custom declarations below this banner
;---------------------------------------------------
;------------------------
; Includes
;------------------------
;------------------------
; Constant Definitions
;------------------------
;------------------------
; Variable Allocation
;------------------------
;---------------------------------------------------
; Insert your custom declarations above this banner
;---------------------------------------------------
;@PSoC_UserCode_END@ (Do not change this line.)
AREA UserModules (ROM, REL)
;-----------------------------------------------------------------------------
; FUNCTION NAME: _CSD_CNT_ISR
;
; DESCRIPTION:
;
;-----------------------------------------------------------------------------
;
0000 _CSD_CNT_ISR:
0000
0000 7600 inc [CSD_wADC_Result];
0002
0002 ;@PSoC_UserCode_BODY_3@ (Do not change this line.)
0002 ;---------------------------------------------------
0002 ; Insert your custom code below this banner
0002 ;---------------------------------------------------
0002 ; NOTE: interrupt service routines must preserve
0002 ; the values of the A and X CPU registers.
0002
0002
0002 ;---------------------------------------------------
0002 ; Insert your custom code above this banner
0002 ;---------------------------------------------------
0002 ;@PSoC_UserCode_END@ (Do not change this line.)
0002
0002 7E reti
0003
0003
0003 ;-----------------------------------------------------------------------------
0003 ; FUNCTION NAME: CSD_CMP_ISR
0003 ;
0003 ; DESCRIPTION:
0003 ; Interrupt Service Routine for the Analog Column. If the interrupt is
0003 ; enabled and the comparator trips the code execution will vector to this
0003 ; ISR.
0003 ;
0003 ;-----------------------------------------------------------------------------
0003 ;
0003 ;
0003
0003
0003 _CSD_CMP_ISR:
0003
0003
0003 ;@PSoC_UserCode_BODY_2@ (Do not change this line.)
0003 ;---------------------------------------------------
0003 ; Insert your custom code below this banner
0003 ;---------------------------------------------------
0003 ; NOTE: interrupt service routines must preserve
0003 ; the values of the A and X CPU registers.
0003
0003 ;---------------------------------------------------
0003 ; Insert your custom code above this banner
0003 ;---------------------------------------------------
0003 ;@PSoC_UserCode_END@ (Do not change this line.)
0003
0003 7E reti
0004
0004
0004 ;-----------------------------------------------------------------------------
0004 ; FUNCTION NAME: _CSD_PRSH_ISR
0004 ;
0004 ; DESCRIPTION: Unless modified, this implements only a null handler stub.
0004 ;
0004 ;-----------------------------------------------------------------------------
0004 ;
0004
0004 _CSD_PRSH_ISR:
0004
0004 ;@PSoC_UserCode_BODY_6@ (Do not change this line.)
0004 ;---------------------------------------------------
0004 ; Insert your custom code below this banner
0004 ;---------------------------------------------------
0004 ; NOTE: interrupt service routines must preserve
0004 ; the values of the A and X CPU registers.
0004
0004
0004 ;---------------------------------------------------
0004 ; Insert your custom code above this banner
0004 ;---------------------------------------------------
0004 ;@PSoC_UserCode_END@ (Do not change this line.)
0004
0004 7E reti
0005
0005 ;-----------------------------------------------------------------------------
0005 ; FUNCTION NAME: _CSD_CMP0_ISR
0005 ;
0005 ; DESCRIPTION: Dedicated PWM interruot handler
0005 ;
0005 ;-----------------------------------------------------------------------------
0005 ;
0005 _CSD_CMP0_ISR:
0005
0005 4162FE and reg[PWM_CR],~01h ; Stop dedicated PWM
0008
0008 41E1FE and reg[0xE1], ~0x01 ; disable specified interrupt enable bit
000B
000B 49DB01 tst reg[INT_CLR1],INT_MSK1_DBB00
000E A006 jz .NoPendingInterrupt ; Make sure counter has been serviced
0010 7600 inc [CSD_wADC_Result];
0012 62DBFE mov reg[INT_CLR1],~(INT_MSK1_DBB00); Clear pending interrupt
0015
0015 .NoPendingInterrupt:
0015 08 push A
0016 ; Read Counter
0016 5D20 mov A, reg[DBB00DR0]
0018 5D22 mov A, reg[DBB00DR2]
001A 73 cpl A
001B 5301 mov [CSD_wADC_Result+1], A
001D
001D .Done:
001D 550001 mov [CSD_bADCStatus], 01h
0020 18 pop A
0021
0021 ;@PSoC_UserCode_BODY_4@ (Do not change this line.)
0021 ;---------------------------------------------------
0021 ; Insert your custom code below this banner
0021 ;---------------------------------------------------
0021 ; NOTE: interrupt service routines must preserve
0021 ; the values of the A and X CPU registers.
0021
0021 ;---------------------------------------------------
0021 ; Insert your custom code above this banner
0021 ;---------------------------------------------------
0021 ;@PSoC_UserCode_END@ (Do not change this line.)
0021
0021 7E reti
0022
0022 ; end of file CSDINT.asm
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -