本文引用地址:http://m.butianyuan.cn/article/201611/323592.htm; 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
評(píng)論