i program my atmega with USBasp ,and i set the fuse bits hfuse:0xC9 and lfuse :0xff. when i upload my simple code
int main(void)
{
DDRB |= 1<< PINB1 ;
PORTB|= 1<<PINB1;
while (1)
{
}
}
the MCU keeps resetting(led keeps blinking), i tried using usbasp as power supply and also i tried using 9v volt battery with regulator but still the same problem ( and i have 0.1uf capacitor between vcc and ground and pullup resistor in the reset pin). i also bought a new atemga328p ( i thaught the other is dead) but always the same problem.