C51中的中断服务程序

来源:互联网 发布:现货 知乎 编辑:程序博客网 时间:2024/04/30 12:36

    
   void        函数名(void)      interrupt      n        using      m   
   {   
    
   函数体语句   
    
   }   
    
   interrupt        using        是C51中断服务程序引入关键字   
   只能用于C51中断服务程序逻辑             
   n是中断号           
   0        是外部中断0   
   1        是定时中断T0   
   2        是外部中断1   
   3        是定时中断T1   
   4        是串行中断   
   5        是定时器T2   
     m是寄存器组       
   0——3      4组   

原创粉丝点击