isr.c

来自「这里有很多我自己做的凌阳单片机源程序」· C语言 代码 · 共 18 行

C
18
字号
#include<spce061a_chf.h>
unsigned int g_uiOutput=0xffff;
void IRQ6(void) __attribute__ ((ISR));
void IRQ6(void)
{
	//unsigned int i;
	g_uiOutput=~g_uiOutput;
	if(*P_INT_Ctrl&0x0001)
	{
		*P_INT_Clear=0x0001;
	}
	else
	{
			
		*P_IOB_Data=g_uiOutput;		
		*P_INT_Clear=0x0002;
	}
}

⌨️ 快捷键说明

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