I've written code below for a flasher led! in CodeVision as my first program!! with ATmega16.
but I can't program it with extreme burner.CodeVision compiles it with 0 errors and 0 warnings. Extreme burner loads the .hex file successfully. But when I click on the Read all
button, I can't continue. I see this report: powering on => power on failed => can not communicate with target chip
. and at in the end I got this message: No data read!
I don't know what is correct the value of fuse bits and how to set them correctly.
#include <mega16.h>
#include <delay.h>
void main(void)
{
PORTA=0x00;
DDRA=0x01;
while (1)
{
PORTA.0 = 1;
delay_ms(200);
PORTA.0 = 0;
delay_ms(500);
}
}