isr.c

来自「一个非常好的微处理器烧录EEPROM的C++ 原代码项目文件,直接可用,而且还」· C语言 代码 · 共 47 行

C
47
字号
#include	"PublicDef.H"
#include	"publicfunction.h"

 //============================================================
void inter_int0(void) interrupt 0 using 1
{
	return;
}
void inter_timer0(void) interrupt 1 using 1
{	
	return;
 }

//============================================================
void inter_int1(void) interrupt 2 using 1
{
	return;
}
//============================================================
void inter_timer1(void) interrupt 3 using 2
{
	TL1+=bCOPYTL1;TH1+=bCOPYTH1;//overflow is 1ms
	if	(bDelayTime)										bDelayTime--;
	if	(wDelayTime)										wDelayTime--;
	if	(wDemoDelay)										wDemoDelay--;
	if	(Eeprom_Wait)										Eeprom_Wait--;
	if	(Keys.Delay)											Keys.Delay--;
	if	(Keys.WaitTime)										Keys.WaitTime--;
	else  
	{	
		if	(Keys.ChekFlag==0)
		{
			ScanKey();
			if	(Keys.ScanFlag!=SCAN_DELAY)
			GetKey();
		}
		Keys.WaitTime=SCAN_DEF_FREQ;
	}
 }

void inter_ES(void) interrupt 4 using 2
{
	GoToIsp(0);
}


⌨️ 快捷键说明

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