#include <iom16.h>
#include <intrinsics.h> //nop
void Delay(void)
{
unsigned char i,j;
for(i=200;i>0;i--)
{
for(j=200;j>0;j--);
}
}
void main()
{
DDRD=0x00;
PORTD=0xff;
__no_operation();
__no_operation();
while(1)
{
PORTD = 0xff; //
Delay(); //延时
Delay(); //延时
}
}
|