#define F_CPU 16000000 #define MS_DELAY 1000 #include #include volatile int i,j,k; int main (void) { //DDRB &= 0x7F; //PORTB &= 0x7F; DDRC = 0xff; PORTC = 0xff; //while(1); PORTC = 0x00; while(1) { //toggling pin 37 PORTC = 0x01; // PORTC ^= 0xff; for (i = 0; i < 500; i++) { for (j = 0; j < 10; j++) { for (k = 0; k < 10; k++); } } PORTC = 0x00; //PORTB &= 0x00; for (i = 0; i < 500; i++) { for (j = 0; j < 10; j++) { for (k = 0; k < 10; k++); } } //PORTB &= 0x00; //PORTB |= 0x80; } //DDRB |= ~_BV(DDB7); /* while(1){ //PORTB |= 0x20; PORTB |= (0< #define F_CPU 1000000 #include int main(void) { DDRA = 0x01; while(1) { PORTA = 0x01; _delay_ms(1000); PORTA = 0x00; _delay_ms(1000); } return 0; } */