/*工程创建MCU选取,Atmel 89C55单片机:STC12C4052AD,STC12C5A60S2 都可以晶振:12M功能:500M秒闪一次LED连接说明:LED正极串接1K 电阻接VCC,负极接到 MCU的P1.7*/#includesbit LED = P1 ^ 7;void DELAY_MS (unsigned int a){ unsigned int i; while ( --a != 0 ) { for (i=0;i<=600;i++); }}void main (void) { while (1) { LED = ~LED; DELAY_MS(500); }}