Test program for avr using bascom-avr compiler

Your source for all things Atmel.
Locked
IDOGE
Posts: 1
Joined: Mon Aug 23, 2004 10:24 am
Location: nigeria
Contact:

Test program for avr using bascom-avr compiler

Post by IDOGE » Tue Aug 24, 2004 2:21 am

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.
pic for all

Caffeine
Posts: 150
Joined: Thu Feb 17, 2005 2:36 pm

Re: Test program for avr using bascom-avr compiler

Post by Caffeine » Sat Feb 19, 2005 7:24 am

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

idtat
Posts: 3
Joined: Mon Apr 24, 2006 4:20 pm
Location: Portland Oregon

Here is a flash LED prog

Post by idtat » Sun May 14, 2006 10:05 am

$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

Locked

Return to “Code”