#include<8051.h> sfr at (0x80) LEDPORT; /* *Function :putchar *Description:put a character to uart use XOFF/XON protocol *parameter :char *return :none */ void Delay(void) { int i,j; for (i=200;i>0;i--) for (j=248;j>0;j--) ; } void main(void) { LEDPORT=0x00; Delay(); while (1) { LEDPORT=~LEDPORT; Delay(); } }