here .maybe work#include<reg51.h>
#define uchar unsigned char
sbit P1_7=P1^7;
void delay()
{
uchar x,y;
for(x=0;x<100;x++)
for(y=0;y<100;y++)
{;};
}
void sent()
{SBUF=0x97;
while(1)
if(TI==1) break;
TI=0;
P1_7=(!P1_7);
delay();}
main()
{
uchar c;
SCON=0x50;
TMOD=0x20;
TH1=0xf4;
TL1=0xf4;
TR1=0;
for(c=0;c<255;c++)
sent();
}
//c51写的MCU段的程序
连续发255次97h.其实难的是硬件的制做。pc端我只写过windows版。dos版的我没写成
功:)
见笑