Page 1 of 1

Test program for avr using bascom-avr compiler

Posted: Tue Aug 24, 2004 2:21 am
by IDOGE
I am a newbie in avr programming. I got a couple of avr, bascom-avr compiler but I don't have a good test code.Can some one help me with a test code in basic , for example blinking a LED.

Re: Test program for avr using bascom-avr compiler

Posted: Sat Feb 19, 2005 7:24 am
by Caffeine
IDOGE wrote:I am a newbie in avr programming. I got a couple of avr, bascom-avr compiler but I don't have a good test code.Can some one help me with a test code in basic , for example blinking a LED.
Have a look at some of the samples, the DT006 one in particular is quite simple

Here is a flash LED prog

Posted: Sun May 14, 2006 10:05 am
by idtat
$regfile = "attiny2313.dat"
$crystal = 10000000
Config Portb.7 = Output

Main:
Portb.7 = 1
Waitms 20

Portb.7 = 0
Waitms 10
Goto Main
End

Remember to remove J2 when programming then replace it to flash

I used the PonyProg to program the chip

Aaron