Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #include <avr/io.h> #include <util/delay.h> int main(void) { PORTA = 0xFF; DDRA = 0xFF; while(1){ _delay_ms(1000); // delay 1 sec PORTA^=0xff; // invert PORTA outputs // PORTA^=0x01; // or invert PORTA.0 output only } }
so you where not able to connect at all but now you say that you can transfer and verify the program.but when i try to access the I/O port (using C --> AVR GCC), i was failed....And i don't know why this happen....
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?