I'm new in microcontrollers and I wrote simple program that set HIGH state at PB0 and PB1.
#include <avr/io.h>
#include <util/delay.h>
#define F_CPU 8000000L
int main(void){
DDRB |= (1<<PB0) | (1<<PB1);
PORTB |= (1<<PB1);
PORTB |= (1<<PB0);
while(1){}
}
The problem is that my avr can't hold on HIGH state and connected leds are blinking. Where is the problem ?