Jan 9, 2014 #1 A 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.
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.
Jan 9, 2014 #2 andre_luis Super Moderator Staff member Joined Nov 7, 2006 Messages 9,593 Helped 1,190 Reputation 2,399 Reaction score 1,207 Trophy points 1,403 Location Brazil Activity points 55,669 The image you posted is too small. +++
Jan 10, 2014 #3 A 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 andre_teprom said: The image you posted is too small. View attachment 100772 +++ Click to expand... ; New schematic image is here. **broken link removed** RES400 = 560 ohm LED Voltage = 2.5 V
andre_teprom said: The image you posted is too small. View attachment 100772 +++ Click to expand... ; New schematic image is here. **broken link removed** RES400 = 560 ohm LED Voltage = 2.5 V
Jan 10, 2014 #4 nagkiller Full Member level 4 Joined Jul 9, 2009 Messages 238 Helped 37 Reputation 74 Reaction score 37 Trophy points 1,308 Location Brazil Activity points 2,703 This is my minimal board working...