Monday, April 5, 2010

LED Blink ATmega32

here is the bascom code :

$regfile = "m32def.dat"
$crystal = 8000000
Config Portd = Output
Do
Portd.6 = 0
Waitms 500
Portd.6 = 1
Waitms 500
Loop
End

pin10 ---> vcc
pin11 ---> gnd
pin20 ---> led+resistor(470 ohm)