Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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
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.
 

The image you posted is too small.

ads_z.jpg

+++
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top