avrnoob
Newbie level 3
Hi everyone,
I'm new to electronics and assembly programming. I've been struggling for the past 24 hours trying to get a simple LED to turn on (not even blink) on PB0 but seem to be doing something wrong.
First of all, my code:
The fuse configuration on my Atmega8 is as follows: L: 0xFF, H: 0xC9 and lock bits: 0xFF
Finally, I put together a very basic circuit after burning the code using my Genius G840 programmer and ended up writing the following:
Supplied this with a 5v voltage source through USB but it doesn't work.
Any help in getting me started would be appreciated much!!!
I'm new to electronics and assembly programming. I've been struggling for the past 24 hours trying to get a simple LED to turn on (not even blink) on PB0 but seem to be doing something wrong.
First of all, my code:
Code:
sbi DDRB,0
sbi PORTB,0
loop:
rjump loop
The fuse configuration on my Atmega8 is as follows: L: 0xFF, H: 0xC9 and lock bits: 0xFF
Finally, I put together a very basic circuit after burning the code using my Genius G840 programmer and ended up writing the following:
Supplied this with a 5v voltage source through USB but it doesn't work.
Any help in getting me started would be appreciated much!!!