本帖最后由 navyly671624 于 2016-6-5 09:09 编辑
void Timer3_Init()
{
IEN0 = 0xff;//0x80; // EA
IEN1 = 0xff;//0x10; // ET3
INSCON = 0xf0; //bank1
//TR3 = 0 ; //定时器2 使能 关闭
T3CON = 0x84; // 1分频
TL3 = 0xfe;
TH3 = 0xfe;
// TR3 = 1 ;
INSCON = 0x00; //bank0
}
void IRQ_Timer3(void)interrupt 11
{
INSCON = 0xf0; //bank1
// TF3 = 0 ;
TL3 = 0xfe;
TH3 = 0xfe;
INSCON = 0x00;
}中断进不去,第一次用,不知道哪里错了 |