; This program is edit by Chen Weiwu; Date 2012/11/08 10:42:36;--------------------------------------------Led0 Bit P1.0Led1 Bit P1.1org 000Hajmp main;--------------------------ORG 003HAJMP INTERRUPT0;--------------------------ORG 013HAJMP INTERRUPT1;-----Initiation-----InterType: SETB EASetb IT0Setb EX0CLR PX0Setb IT1Setb EX1Setb PX1 ret;-------------------- INTERRUPT0: clr led0jnb int0,$RETIINTERRUPT1: clr led1jnb int1,$setb led1 RETI;-------------------- main: acall InterType Mainloop: setb led0setb led1Ajmp Mainloop;-------------------- end
凹凸优先级中止使用举例
;ThisprogramiseditbyChenWeiwu;Date2012110810:42:36;———————————
声明:本文内容来自网络转载或用户投稿,文章版权归原作者和原出处所有。文中观点,不代表本站立场。若有侵权请联系本站删除(kf@86ic.com)https://www.86ic.net/changshang/peixun/317855.html