Go to Post Let's just say that I am old enough to... - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-01-2006, 20:22
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
AVR Help

I recently bought an Atmel AVR and I have been looking around for some help, especially at avrfreaks.net and their forums. But I need some help getting started with it because I am no programmer YET.

1) I do not even know how to load code in either C or ASM form.
2) I do not know how to write code.
3) I do not know how to use winavr and avrstudio.

Help with #1 would be especially appreciated

Thanks
  #2   Spotlight this post!  
Unread 06-01-2006, 13:19
YLDNWLY YLDNWLY is offline
Registered User
AKA: Bill Woolley
#1079 (C.R.E.A.T.E.)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2003
Location: Temecula, CA.
Posts: 11
YLDNWLY will become famous soon enough
Re: AVR Help

Quote:
Originally Posted by sparksandtabs
I recently bought an Atmel AVR and I have been looking around for some help, especially at avrfreaks.net and their forums. But I need some help getting started with it because I am no programmer YET.

1) I do not even know how to load code in either C or ASM form.
2) I do not know how to write code.
3) I do not know how to use winavr and avrstudio.

Help with #1 would be especially appreciated

Thanks
There are a couple of robotic kits that i have worked with recently that use Atmel products. What is handy is that they both come with test programs as well as the software you need to modify and load them into the processor. It makes them quite easy to use and offers a great learning opportunity. The kits are Asuro and Crash Bobby, both of which are advertised in SERVO magazine as well as being the subject of a couple of tweak articles in past issues.

Have fun!

Bill
  #3   Spotlight this post!  
Unread 06-01-2006, 14:58
Tom Saxton's Avatar
Tom Saxton Tom Saxton is offline
Registered User
no team (Issaquah Robotics Society)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2003
Location: Sammamish, WA
Posts: 98
Tom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud of
Re: AVR Help

Which AVR chip are you using? Do you have a bare chip, or is it on some sort of robot controller board? Which programmer do you have?

If you're using the ATMega16 or ATMega32, you may find the docs and sample code for the SRS Workshop Robot useful:

http://seattlerobotics.org/WorkshopRobot/index.php

You'll have to modify the source code to adjust which pins/registers are used for which function (unless you're using Larry Barello's ARC board) but the code starts out with very basic stuff which should be enough to get started and customize.

If you're using another AVR chip, the basic idea is the same, but the names of the registers used for input and output may change significantly.
__________________
Tom Saxton
http://www.idleloop.com/
  #4   Spotlight this post!  
Unread 07-01-2006, 01:25
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: AVR Help

I finally got the AVR working and to be programmabled. all it took was an hour on the phone with tech support!

Now I just need to find where to how to program it in C. Things like defining the outputs and just simple C so i can play around with it. Does anyone know where to find how to define the outputs in C code?

For example can I just say portB = 0b00001101?

In the board right now I have an atmega8515
  #5   Spotlight this post!  
Unread 07-01-2006, 08:47
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: AVR Help

Quote:
Originally Posted by sparksandtabs
For example can I just say portB = 0b00001101?

In the board right now I have an atmega8515
PORTB actually, C is case sensitive, also don't forget the semi-colons ( at the end, and you're good.

Also read up on your Data Direction Registers and to read pin states (when set to input) use PINB (or PINA...PIND..etc) as in
if(PINB == 0b10110000)
do stuff

Have fun, good luck.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi