0.1/AD1РP0.2/AD2РP0.3/AD3РP0.4/AD4РP0.5/AD5РP0.6/AD6РP0.7/AD7РP2.0/A8РP2.1/A9РP2.2/A10РP2.3/A11РP2.4/A12РP2.5/A13РP2.6/A14РP2.7/A15РP3.0/RXDРP3.1/TXDРP3.2/iNTOРP3.3/INT1РP3.4/TOРP3.5/T1РP3.6/WRP3.7/RDР39Р38Р3736"РD12РРAT89C51Р#include<reg5 l.h>РРsbit L1=POAO;Рsbit L2=P0Al;Рunsigned char output,L;Рdelay()Р(Рunsigned int i,j;Рfor(i=30;i>0;i-)Рfor(j=500;j>0;j-);Р}Рvoid main()Р(РP0=0xf9;РL=P0&3;Рwhile(l)Р(Рdelay ();РL&=3;Рoutput=P0&0xfc;Рoutput«=l;Рoutput|=4;РP0=output|L;РРdelay ();Рif(output==0x7c)РL=~L,P0=0xfb&L;Р2-4Р#include<reg5 l.h>Рsbit P32=P3A2;Рvoid tempO(void)Рvoid main(void)Р(РIT0=0;EA=0;EX0=l;Рwhile(l);Р}Рvoid tempO(void) interrupt 0Р(Рunsigned char out=0x7f;Рlong i;Рwhile(l)Р(Рif(P32==0)РPO=out;Рfor(i=200000;i>0;i-);РРout»l;Рout|=0x80;Рif(out==Oxff)Рout=0x7f;Р}РElse break;Р}РITO=1;