AT93C46/56/55串行EEPROM及单片机程序
ADDR=X; CLRCLK;
《AT93C46/56/55串行EEPROM及单片机程序(第4页)》
本文链接地址:http://www.oyaya.net/fanwen/view/160387.html
IF ((X AND 01H)=01H)THEN SETDI;
ELSE CLRDI;
SETCLK;
END;
DO I =1 TO 7;
CLRCLK; SETCLK;
END;
DO I =1 TO 8?
CALL BITSET(.IOPORT1,7);
COUNT=COUNT-1;
CLRCLK; SETCLK;
BITOUT(COUNT)=IOPORT1;
END;
CLRCLK; SETCLK;
J=0;
AA: DO I= 1 TO 8;
J=J+1;
X=ROL(ADDR,1;
ADDR=X; CLRCLK;
IF((X AND 01H)=01H) THEN SETDI
ELSE CLRDI;
SETCLK;
END;
IF J<>16 THEN DO;
ADDR =DATA;
GOTO AA;
END;
CLRCS;SETCS;
CALL TIME(100);?
END;
《AT93C46/56/55串行EEPROM及单片机程序(第4页)》