[AVR] Atmega8 Led Blink Fuse problem or Programmer Problem ?

Status
Not open for further replies.

ashes35

Junior Member level 1
Joined
May 15, 2012
Messages
18
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Visit site
Activity points
1,400
Hi everyone, i try to blink a led to learn avr series as hoby so i wrote this code below:
Code:
#define OUTPUT 1
#define INPUT  0

#include "main.h"
#include <avr/io.h>
#include "util/delay.h"


int main(void)
{
    DDRC  = 0xFF;  // PC0..PC3 as output
    
    PORTC = 0x00;  // all PORTC output pins Off

    while(1)
    {
            PORTC ^= 0xFF;
            _delay_ms(500);
            
   }
    return 0;

}
After that i set fuse bits like that on my Leaper 48 programmer device;
Lock features enabled : No Lock Bits
BLB0 mode section : mode 1
BLB1 mode section : mode 1
RSTDISBL = 1
WDTON = 1
SPIEN = 0
CKOPT = 1
EESAVE = 1
BOOTSZ1 = 0
BOOTSZ0 = 0
BOOTRST = 1
BODLEVEL = 1
BODEN = 1
SUT1 = 1
SUT0 = 0
CKSEL3= 0
CKSEL2 = 1
CKSEL1 = 0
CKSEL0 = 0

After all i design this circuit to try it.
**broken link removed**
yet I have no response from the circuit.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…