Hi, I am a beginner to microcontrollers.. I bought a programmer (AvrProg USB v3) and Atmega8A-PU. I successfully connected it together and in my atmel studio I managed to read my device using tools > device programming.
Until that, I was successful. But when I tried to connect diode and make it light, I can't get a result. Nothing happens.
The simplest possible I wrote is this:
#include <asf.h> #include <avr/io.h> int main (void) { board_init(); DDRD = 0xFF; PORTD = 0x00; while(1) { // this maybe useless } }
But no matter what I do, the diod is not blinking on (btw I connected longer end to PD0 and shorter end to ground, which is probably obvious from the code).
Am I doing something wrong? Can i somehow find out there is something wrong with my chip? Thank you.