ORG 0000H SCLEQU0B0H;IC2401,byte-wr SDAEQU0B1H ;------------------------------------------------------- START:MOV SP,#53H JB P1.0,$ LCALL DL10MS JB P1.0,START LCALL DL10MS MOV R0,#00H MOV R1,#55H conw1:push 00h;R0 IS IC CAR WR ADDRESS push 01h;R1 IS IC CAR I/O DATA CPL P1.1;WR-LED LCALL WR2401_1W;Byte Wr CJNE R5,#00H,DISPERR pop 01h pop 00h inc r0 inc r1 cjne r0,#7fh,conw1 SETB P1.1 MOV R0,#00H;R0 IS RD ADDRESS mov dptr,#4000h;[4000H----407FH]=55,56,57,.................... conr1:push 00h CPL P1.2;RD-LED LCALL RD2401_1W CJNE R5,#00H,DISPERR pop 00h movx @dptr,a inc dpl inc r0 cjne r0,#7fh,conr1 SETB P1.2 condisp:lcall disp sjmp condisp DISPERR: LCALL DISP1 |
查看评论
已有0位网友发表了看法