Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: I cant get started

2005-12-26 by massimo banzi

Sorry to jump in so late in the thread


One option is to use this opensource platform I've worked on
with a bunch of other people

it's called arduino (http://arduino.cc). it works with an atmega8
our manufacturer sells a single usb board for 20EUR plus shippping
but all the eagle cad files are provided if you want to make your own

it can also be used in a breadboard following the instructions
written by tom igoe from nyu
http://arduino.berlios.de/index.php/Main/StandaloneAssembly

The ide is written in Java and works on all major platforms and
the language is basically c with all the complications taken away

when you compile, your code is turned into c and compiled
with avr-gcc. when you get familiar with c you can start
going straight into the language.

jsut to give you a reference I'll cut and paste the classic led
blink example


int ledPin = 13;                 // LED connected to digital pin 13

void setup()                    // this is where you setup the pins etc
{
   pinMode(ledPin, OUTPUT);      // sets the digital pin as output
}

void loop()                     // by convention loop is executed  
forever
{
   digitalWrite(ledPin, HIGH);   // sets the LED on
   delay(1000);                  // waits for a second
   digitalWrite(ledPin, LOW);    // sets the LED off
   delay(1000);                  // waits for a second
}


I use it to teach designers about microcontrollers so it must be
super simple because they don't have any background in programming
or technology

massimo


On Dec 23, 2005, at 7:16 AM, scmikes03 wrote:

> Ted,
>
> I am also new.  I was in the same boat as you.
>
> I would recommend going to the Smiley site:
>
> http://smileymicros.com/
>
> If you drop ~$80 US dollars you get
>
> - Butterfly Board from atmel
> - Project Kit
> - Book that guides you step by step though
>    - development environment setup
>    - a number of fun projects that have all required
>      parts in the kit.
>
>
> Just starting out in something, it is nice to have
> step-by-step recipies to follow (and the hardware
> to execute them:-).  You get it all in this package.
>
> Have fun, and welcome.
>
> Mike
>
>
> --- In AVR-Chat@yahoogroups.com, "Ted Smith" <tedsmithau@y...> wrote:
>
>>
>> Hi, I'm probably the oldest living active programmer in Australia and
>> have decided to have a go at AVRmega16's before I die - hopefully
>> using Bascom basic.
>> I have done a lot with VB6 and assembly with the old 6502's 25 years
>> ago but can't find anywhere any concise info on how to structure the
>> AVR programs and integrating the various sub-routines, interrupts  
>> etc.
>> It all seems so disjointed and every article I have found so is
>> written by someone who assumes I know what they know. (Like Microsoft
>> help screens of the past)
>> Can anyone point me to a good step by step starting guide on how to
>> compose a simple program to say accept a few switch inputs and output
>> to a few leds while displaying information from the EEprom on an LCD
>> depending on what switch is pressed?
>> With the old 6502 I would have used interrupt routines for the
>> switches and had a loop polling the inputs and simply written to
>> output port addresses with an indexed address looking up data
>> depending on the switch number.
>> I can't seem to rationalise this to the AVR or is it done another  
>> way?
>> Thanks Ted Smith
>>
>>
>
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor -------------------- 
> ~-->
> Get Bzzzy! (real tools to help you find a job). Welcome to the  
> Sweet Life.
> http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/dN_tlB/TM
> -------------------------------------------------------------------- 
> ~->
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.