[TUT] [HARD] STK500/GCC AVR Tutorial

Go To Last Post
16 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.xdesignlabs.com/guide...

I wrote this up as part of a presentation for a client; it was well recieved, so perhaps it will help some other people getting started.

Covers: Introduction to embedded systems, getting the STK set up, using WinAVR and avrgcc, setting up your AVR fuses, basic sample programs, introduction to serial communication.

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just realized I wasn't logged in.

If anyone has any questions, please ask.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Looks like a good tutorial.

Get yourself a K&R if you're down with the C, hah

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Had a look, and I must say i'm very impressed! Pictures tell a thousand words, and images in tutorials always help. Great work!

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks guys. :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thats very well done!!!
Way2Go !! :)

I'm working on some tutorials myself....
I will have to improve mine to come up to
your standard :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Best I can do. I can't change the author name to any existing username (prevents me from posting junk under other's names :)) but I can change it to that. NLI = Not Logged In, for those wondering.

Cheers!
- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

Last Edited: Mon. Mar 6, 2006 - 08:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks guys, apprecate it.

More AVR tutorials to come, just happy to give something back.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

how to read the specific pin input ...like
the second pin of port B.
is this "PINB.1" ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, it is the second pin, but you dont read it like that.

you can do:

if(PINB&_BV(1))...
or
char a = PINB & _BV(1);

_BV(n) is a macro, that gives you 2^n.

BTW: This question would be better suited for another forum - not in the tutorails section

There are pointy haired bald people.
Time flies when you have a bad prescaler selected.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thks for the macro..good luck for the exam!^_^

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

if i want to assign the value of pin E number 3 to pin B number 5 . what should write?

"PINB = PINE &_BV(3) "
?

so what the value if PINE &_BV(3) will give ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ahem! Offtopic! This is the tutorials section!

But: Each of the ports has three registers:
PORTx = to here you write the value.
DDRx = to here you write the direction (0=input, 1=output)
PINx = from here you read what's on them

I think there's a tutorial somewhere here. Or look into any of the projects.

There are pointy haired bald people.
Time flies when you have a bad prescaler selected.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thks for the info daqq

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

really, really good tutorial!
one of the bests i know.
keep up the good work! :wink:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Xtal, you have a great website!