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

📄 compare_int.asm

📁 HT45RM03A 在電動自行車控制器中的應用
💻 ASM
字号:


;;**************************************************************************
isr_Comparator:
	mov		isr_acc2,a
	mov		a,status
	mov		isr_status2,a

;	nop
;	nop
;	nop

;----------------------------------------------------------------				
;MISC.6 COUTR  Comparator output flag. This bit is read only...
;0: Comparator output is low state..
;1: Comparator output is high state..
;----------------------------------------------------------------				

	sz		Misc.4               ;if cpo is low   
	jmp		L_ExitIsrCompartor


        MOV             A,0FFH
        MOV             PCC,A 
        
      ; SET             PA.3 

	set		F_ShortProtect
	
	mov		a,6
	mov		intc0,a
	
	mov		a,00100010b
	andm		a,intc1
	
L_ExitIsrCompartor:
	mov		a,isr_status2
	mov		status,a
	mov		a,isr_acc2
	reti
;;**************************************************************************

⌨️ 快捷键说明

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