📄 isr.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -