Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
abcminiuser
PostPosted: Jan 20, 2007 - 04:29 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

Freaks,

I think it would be a good idea to have a thread here, listing ideas for possible future tutorials. I'm slowly running out of ideas, and perhaps the right ideas will also encourage others to give writing one a go as well.

Please try to stay on-topic so that it is easier to browse all the ideas later on.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
dinofizz
PostPosted: Jan 20, 2007 - 10:13 AM
Wannabe


Joined: Mar 10, 2006
Posts: 74
Location: Johannesburg, South Africa

maybe a tut on using the STK500's onboard DataFlash using GCC?

_________________
"You live and learn. At any rate, you live."

Douglas Adams
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
bloody-orc
PostPosted: Jan 20, 2007 - 10:53 AM
Posting Freak


Joined: Dec 17, 2005
Posts: 1500
Location: Europe- Estonia- Tallinn

A good list of variables in GCC is what I've been long searching for...
TWI, SPI, PWM also, if those haven't been covered before (haven't looked yet).
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
abcminiuser
PostPosted: Jan 20, 2007 - 11:53 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

Quote:

maybe a tut on using the STK500's onboard DataFlash using GCC?


Current STK500's don't have that chip mounted, so I think it would be of limited use. Depending on the specifications of the STK500X however, this might be worth writing eventually. Thanks.

Quote:

A good list of variables in GCC is what I've been long searching for...
TWI, SPI, PWM also, if those haven't been covered before (haven't looked yet).


SPI is dead-simple, so probably isn't worth a full blown tutorial by itself. I've never used TWI before, so perhaps I'll learn that and write a combined SPI/TWI tutorial. Cheers!


Keep the ideas comming people!

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Jan 20, 2007 - 12:27 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Dean,

The STK500's may have dropped the AT45 but it is true that there's a constant stream of questions about more general programming of AT45s and, even above that, just an understanding of SPI. Most beginners miss the fact that it is a send-and-receive protocol and not a send-then-receive protocol.

Cliff

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Jan 25, 2007 - 10:31 PM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

More ideas from fellow members (as a note-to-self):

1) Progressively harder project, building from previous lessons -- may cover ground already covered by Smokey's book
2) Tutorial on managing multiple C source files (idea from Cliff in this thread)

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
smileymicros
PostPosted: Jan 26, 2007 - 12:08 AM
Raving lunatic


Joined: Nov 17, 2004
Posts: 6144
Location: Great Smokey Mountains.

abcminiuser wrote:
1) Progressively harder project, building from previous lessons -- may cover ground already covered by Smokey's book


Great idea! Very Happy
I can steal them for the revision Twisted Evil

Smokey

_________________
FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: Jan 26, 2007 - 12:11 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

Quote:

Great idea! Very Happy
I can steal them for the revision Twisted Evil


That was a con against the idea, not part of the idea itself. That said, perhaps I can ask those fellows over at the Greek robotics forum to write it for me/us Laughing

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
smileymicros
PostPosted: Jan 26, 2007 - 12:18 AM
Raving lunatic


Joined: Nov 17, 2004
Posts: 6144
Location: Great Smokey Mountains.

I'm tip-toeing around saying something about the Buttload, like about the ummmm errr, final bug, but since you are such a nice guy, I won't mention it.

And, BTW, I got esnips to take down the file. Amazingly they got back to me and fixed it in like and hour or so.

Smokey

_________________
FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: Jan 26, 2007 - 12:21 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

I know, I know. I should really fix that last bug so I can release it. I've been a bit demoralized about not being able to fix it in several months, but I'll see what I can do. I can't wait until it's all done!

That's great news you got the file pulled.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
smileymicros
PostPosted: Jan 26, 2007 - 12:26 AM
Raving lunatic


Joined: Nov 17, 2004
Posts: 6144
Location: Great Smokey Mountains.

Woohoo, real time harassing!

Being demoralized and not being able to fix a GD bug is all part of being an EE so get used to it! You might, if you haven't already, consider backing up and writing some code that does nothing but write to the DataFlash - using a different approach(es) than the one you are now using. Hey! that would make a great tutorial - Everything you always wanted to know about writing to DataFlash but was afraid to ask.

Oh, and happy Australia Day (whatever that is).

Smokey

_________________
FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
mikehg1
PostPosted: Jan 26, 2007 - 12:54 AM
Hangaround


Joined: Feb 12, 2006
Posts: 279
Location: Ohio, USA

I think an in depth tutorial on timer functions with all of the various modes possible would make a good tutorial.

Quote:

I know, I know. I should really fix that last bug so I can release it. I've been a bit demoralized about not being able to fix it in several months, but I'll see what I can do. I can't wait until it's all done!


What is the DataFlash bug if you don't mind me asking?
I have a project that I may be using dataflash in, if you want another set of eyes to have a look it would also give me the opportunity to get up to speed on using them.

Mike H.
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Jan 26, 2007 - 12:59 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

Quote:

I think an in depth tutorial on timer functions with all of the various modes possible would make a good tutorial.


I think that will be my next one. Timers seem to cause a lot of confusion, especially to newbies due to the myriad of settings.

Quote:

What is the DataFlash bug if you don't mind me asking?
I have a project that I may be using dataflash in, if you want another set of eyes to have a look it would also give me the opportunity to get up to speed on using them.


Actually a logic bug. The new ButtLoad code can store non-consecutive HEX files, care of a new abstraction layer which manages random access of the Dataflash. For some reason however the data being stored is being stored at the wrong locations, despite consecutive HEX still files storing just fine. It's been a real pain in the proverbial to try to determine what is causing the failure, and three months later I've still got no idea.

Another set of eyes is always appreciated, but it would be debugging rather than just looking for problems in the dataflash driver, which is known-good.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
mikehg1
PostPosted: Jan 26, 2007 - 02:01 AM
Hangaround


Joined: Feb 12, 2006
Posts: 279
Location: Ohio, USA

Quote:

Another set of eyes is always appreciated, but it would be debugging rather than just looking for problems in the dataflash driver, which is known-good.


No problem, if you want to email me what you have I'll take a look at it.

Mike H.
 
 View user's profile Send private message  
Reply with quote Back to top
bloody-orc
PostPosted: Mar 12, 2007 - 07:47 PM
Posting Freak


Joined: Dec 17, 2005
Posts: 1500
Location: Europe- Estonia- Tallinn

Tutorial on setting different fuse bits of common AVR's maybe?
A thing i don't know how to, but would like to do without messing up my AVR.
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
daqq
PostPosted: Mar 13, 2007 - 10:44 PM
Raving lunatic


Joined: Dec 15, 2003
Posts: 4412
Location: Slovakia, Bratislava

Yes! I'm also a weebit confused by the fuses.

Although "On graphical displays and displaying graphics on them" would be nice, particulary for nokia SPI connectables.

Or "External RAM, GCC and using the damn thing".
Or "Everything you wanted to know about debouncing but were afraid to ask".


BTW: I'm not commenting the current tutorials, they are really extensive and well written and cover a lot of ground.

_________________
There are pointy haired bald people.
Time flies when you have a bad prescaler selected.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
ph0rkeh
PostPosted: Mar 15, 2007 - 05:19 AM
Resident


Joined: Nov 25, 2006
Posts: 785
Location: Independence, OH

Quote:

I think that will be my next one. Timers seem to cause a lot of confusion, especially to newbies due to the myriad of settings.


That I personally would love too see as well! I think I have got timers down ok, but only for the basics... I would love to see a nice tut on the more in-depth usage of times and stuff.

_________________
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: Mar 15, 2007 - 05:35 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

I am currently unable to write any more tutorials, due to time constraints. Uni occupies quite a lot of my time!

I'll write another tutorial once everything settles down to a sane level. In the meantime, others please feel free to write some tutorials yourselves!

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: Apr 05, 2007 - 10:25 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

I'm about to start a tutorial on interfacing with an Atmel dataflash. It'll cover SPI in the into, so that will take care of two birds with one stone (or keyboard!). Any objections?

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
js
PostPosted: Apr 05, 2007 - 10:28 AM
10k+ Postman


Joined: Mar 28, 2001
Posts: 20637
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)

I think a tutorial on multifile projects and advanced assembler techniques would be great...I wish I was clever enough to write it..Sad

_________________
John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: Apr 05, 2007 - 10:31 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

I could do a quick one on managing multi-file C projects, if people want that instead of/before the dataflash one.

Can I get a quick feel for the relative desire for each tutorial topic?

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Apr 05, 2007 - 11:46 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

I'd have said there were just a shade more posts about Dataflash on a regular basis here than misunderstanding about the use of 'extern' - but the latter is a more fundamental concept that it's important for beginners to learn (how many times have you read about people defining variables in .h files!). It's a tricky call.

BTW another topic suggested the other day in (a GCC I think) thread was to have a tutorial about bootloaders. Again I read so often about people building boot+app as one project - maybe it's OK but it just doesn't seem right to me! Part of it is the perennial question of ways in which a bootloader can expose some of its routines for the use of the app - IOW "dynamic linking"

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
bloody-orc
PostPosted: Apr 05, 2007 - 04:27 PM
Posting Freak


Joined: Dec 17, 2005
Posts: 1500
Location: Europe- Estonia- Tallinn

Multifile is a good idea. also the SPI communication...

As i know absolutely nothing about dataflash I think it would come in handy to read something about it Wink
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
js
PostPosted: Apr 06, 2007 - 01:14 AM
10k+ Postman


Joined: Mar 28, 2001
Posts: 20637
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)

Quote:
I could do a quick one on managing multi-file C projects,
The principle would be the same for assembler I guess, breakdown the task into smaller, logical chunks, make reusable files like int vectors and int service, timers, usart, ram etc.

_________________
John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
smileymicros
PostPosted: Apr 06, 2007 - 03:57 AM
Raving lunatic


Joined: Nov 17, 2004
Posts: 6144
Location: Great Smokey Mountains.

Careful John, if you keep that up you'll invent C.

Smiley

_________________
FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
js
PostPosted: Apr 06, 2007 - 04:25 AM
10k+ Postman


Joined: Mar 28, 2001
Posts: 20637
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)

Quote:
you'll invent C.
Do you mean I write my programs in C already whithout knowing it? Laughing

_________________
John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
smileymicros
PostPosted: Apr 06, 2007 - 02:47 PM
Raving lunatic


Joined: Nov 17, 2004
Posts: 6144
Location: Great Smokey Mountains.

No, but when you wrap you functional modules in a macros that hide the pushing of parameters and popping of results, you'll be darn close. Remember, lots of folks call C a 'portable assembly language'. If you write a few simple C functions (NOT the printf('Hello world') monster) something like a function to set the bits in a port, and then look at the generated assembly code you might be surprised at how much it looks like C is using a good general method to 'modularize' subroutines in assembler. C really was invented by an assembly language programmer just trying to make his life easier.

Smiley

_________________
FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Apr 06, 2007 - 02:52 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Totally agree with Joe, C is nothing really more than an advanced assembler macro system.

Cliff

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
smileymicros
PostPosted: Apr 06, 2007 - 04:26 PM
Raving lunatic


Joined: Nov 17, 2004
Posts: 6144
Location: Great Smokey Mountains.

With the great advantage that these 'macros' port easily to any assembler. Learn one set of 'macros' do all assemblers Smile

Uh, sorry - looks like we hijacked another tread in the ongoing C vs Assembler tea party.

Smiley

_________________
FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
bigpilot
PostPosted: May 02, 2007 - 02:21 PM
Wannabe


Joined: Oct 08, 2005
Posts: 96


I would like to see a tutorial on how to select and setup timers to get a arbitrary timer interval, preferably using interrupt. And some discussion on the tradeoffs to get the highest precision.
 
 View user's profile Send private message  
Reply with quote Back to top
AllN
PostPosted: May 02, 2007 - 08:41 PM
Posting Freak


Joined: Feb 14, 2007
Posts: 1858
Location: San Diego California

I can program anything in any language. Badly, I might add, but at least they’re all done.
The depressing part for me is. I don’t know enough about embedded systems to know what I even need to ask for a Tut on. So here is what I found time consuming to learn so far:
Have you done anything on fuses? Know I'm still confused as to when and why?
Timers, with interrupts, their precision, and when you need an exterior crystal.
When I first got here the acronyms and associated coding for SPI, TWI, JTAGICE mkII , AVRSAP, #&$#@!or whatever were a mystery. I still have to lookup new ones in a glossary and then the data sheet and then my head hurts. Is there an easier way to learn the embedded pin acronyms and systems?
Even hooking up the JTAGICE mkII with all the connectors for so many different chips for a first timer is a bit time consuming and scary. STK500 Tut would be nice.
The rest, thanks to you guys seem easy so far. Often you answer a question I don’t know I even have in someone else’s thread. Now that’s scary.
Thanks,
John

_________________
Resistance is futile…… You will be compiled!
 
 View user's profile Send private message  
Reply with quote Back to top
AllN
PostPosted: May 02, 2007 - 11:20 PM
Posting Freak


Joined: Feb 14, 2007
Posts: 1858
Location: San Diego California

abcminiuser wrote:
I'm about to start a tutorial on interfacing with an Atmel dataflash. It'll cover SPI in the into, so that will take care of two birds with one stone (or keyboard!). Any objections?

- Dean Twisted Evil

No. Good Idea!
Please do,
John


Last edited by AllN on May 03, 2007 - 07:07 PM; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: May 03, 2007 - 02:39 PM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

Actually I think I'll go for the timers for now. FAR too many timer-related questions in the main forums. I'll try to start tomorrow and continue next week, but I don't know how much free time I'll get.

Plan:

1) Introduction - What are they, what they can do, differences to software delays
2) Basic timers - running at Fcpu
3) Prescaler, clock sources
4) Setting up a simple timer, polled delay
5) Overflow interrupt
6) CTC interrupt mode
7) CTC hardware mode (tone generation example)

That seems like a pretty hefty gameplan for now. If I manage to write all that up into a tutorial, perhaps I'll write a second part for advanced uses (PWM, input capture, etc). Suggestions welcome.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
AllN
PostPosted: May 03, 2007 - 07:01 PM
Posting Freak


Joined: Feb 14, 2007
Posts: 1858
Location: San Diego California

abcminiuser wrote:
Actually I think I'll go for the timers for now. FAR too many timer-related questions in the main forums. I'll try to start tomorrow and continue next week, but I don't know how much free time I'll get.

Plan:

1) Introduction - What are they, what they can do, differences to software delays
2) Basic timers - running at Fcpu
3) Prescaler, clock sources
4) Setting up a simple timer, polled delay
5) Overflow interrupt
6) CTC interrupt mode
7) CTC hardware mode (tone generation example)

That seems like a pretty hefty gameplan for now. If I manage to write all that up into a tutorial, perhaps I'll write a second part for advanced uses (PWM, input capture, etc). Suggestions welcome.

- Dean Twisted Evil
Including a comparison of watchdog timers?
Yeaaaaa Dean!!!
Thanks,
John
 
 View user's profile Send private message  
Reply with quote Back to top
bloody-orc
PostPosted: May 03, 2007 - 08:02 PM
Posting Freak


Joined: Dec 17, 2005
Posts: 1500
Location: Europe- Estonia- Tallinn

maybe in some years or so you can collect them all and publish a book "AVR programming in C for dummies"... can earn some more cash Wink I know I would buy one even if I knew the stuff in it... It would be a reminder of a fellow freak in action and the early days of AVR'ing in my life...
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
AllN
PostPosted: May 03, 2007 - 08:36 PM
Posting Freak


Joined: Feb 14, 2007
Posts: 1858
Location: San Diego California

bloody-orc wrote:
maybe in some years or so you can collect them all and publish a book "AVR programming in C for dummies"... can earn some more cash Wink I know I would buy one even if I knew the stuff in it... It would be a reminder of a fellow freak in action and the early days of AVR'ing in my life...

As a new arrival here after reading all of Dean's Tut's I had always just assumed he was doing just that! And I though he was older. Then I read all the help he offers others and calculated the approximate time required and realized he probably isn’t.
But; dear Dean I hope you take Bloody-Orc's advice and compile your own book as a new constant source of income for years to come. Keep doing this at you're age on each subject you love and you will have several sources of income. Do what you love but (make plans to at least) support yourself, well.
Thanks for all you do,
John

_________________
Resistance is futile…… You will be compiled!
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: May 04, 2007 - 03:19 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

Quote:

maybe in some years or so you can collect them all and publish a book "AVR programming in C for dummies"... can earn some more cash Wink


I've no talent for writing books. I'm able to make semi-coherent tutorials about specific subjects, but I'd be lost if I tried to link them all together. However, as far as cash goes, if I received $1 for each person who read one of my tutorials.... Wink

Quote:
As a new arrival here after reading all of Dean's Tut's I had always just assumed he was doing just that! And I though he was older. Then I read all the help he offers others and calculated the approximate time required and realized he probably isn’t.


I'm 18 since Feb 14th - I'm one of the young ones here (along with Daqq and a few others). Uni takes up a huge chunk of my days, and most of my home time is taken up by social commitments, Uni assignments, Uni homework and not a whole lot else. What time I do get to myself I usually spend posting and reading here. No time for anything else!

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
js
PostPosted: May 04, 2007 - 04:06 AM
10k+ Postman


Joined: Mar 28, 2001
Posts: 20637
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)

Quote:
No time for anything else!
and the "one" you were going out to dinner with a while ago??? IIRC you did NOT go to makkers either Smile

_________________
John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: May 04, 2007 - 06:36 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

Hey! I class that under "social commitments" Wink. Quite seriously, with my girlfriend and Uni (and associated tasks for both!) I'm averaging only a couple of hours to myself per day. The only reason I remain pretty active at AVRFreaks is that I use some of my spare Uni time browsing and replying.

And no, not McDonalds Wink. Nothing amazingly flash, but we'd rather do a nice restaurant/movies/etc a few times a month than waste our money on half the food at the really expensive places!

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: May 07, 2007 - 08:44 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

I've started work on the timers tutorial. If anyone would like to proof-read the tutorial as I complete it before I post (to reduce later corrections), please give me a yell here, or via PM.

I'm following the plan I wrote above - feel free to make your suggestions now!

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: May 23, 2007 - 10:05 AM
Moderator


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway

Note to self: After timers tutorial, make clock source tutorial.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
anilsoni85
PostPosted: May 23, 2007 - 02:12 PM
Rookie


Joined: Mar 29, 2007
Posts: 32


i think someone should provide a good tutorial on how to interface AVR with USB and ethernet in detail. I am despirately waiting for one such tutorial
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
gopchandani
PostPosted: Jun 28, 2007 - 01:07 PM
Rookie


Joined: Dec 04, 2006
Posts: 24


These Zigbee devices are cool things. There must be some professional tutorial on this community on the integration of these devices with AVR's USART.
 
 View user's profile Send private message  
Reply with quote Back to top
Kartman
PostPosted: Jul 04, 2007 - 05:45 AM
Raving lunatic


Joined: Dec 30, 2004
Posts: 9012
Location: Melbourne,Australia

A tutorial on the evils of interrupts and pre-emptive task switching - such topics like:

how interrupts work
sharing variables
atomic access
task switching - co-operative vs pre-emptive

time and time again, both on this forum and many others I see people using interrupts without knowing the pitfalls of using them. Non atomic variable accessing etc.

Dean, your writing style has improved a lot. Very readable and a lot more factual. It might help to include some references for your information so that people don't think you're pulling the info out of your bum! All goes towards separating fact from opinion.
 
 View user's profile Send private message  
Reply with quote Back to top
jasond106
PostPosted: Oct 13, 2008 - 11:54 PM
Newbie


Joined: Jun 19, 2008
Posts: 1


A tutorial on ZigBee or some other wireless communications would be very helpful for us beginners that have been soaking up the existing tutorials.javascript:emoticon('Very Happy')

-Jason
 
 View user's profile Send private message  
Reply with quote Back to top
Ali_dehbidi
PostPosted: Nov 06, 2008 - 08:27 PM
Posting Freak


Joined: Dec 22, 2005
Posts: 1283
Location: shiraz , iran

a tutorial about I2c and interrupt driven one programming 24xx series.

_________________
I love Digital
and you who involved in it!
 
 View user's profile Send private message  
Reply with quote Back to top
cinderblock
PostPosted: Jan 21, 2009 - 07:12 AM
Rookie


Joined: Dec 23, 2008
Posts: 25


I'd love a tutorial on writing a Makefile, specifically for AVRs and tying in avr-dude commands.

I'd love to have an open alternative to AVR Studio for portability between all my machines.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jan 21, 2009 - 09:37 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

I'd love a tutorial on writing a Makefile

To be fair there's nothing particular AVR specific about writing GNU Make Makefile's if you just type "GNU Make tutorial" into Google you'll get loads of hits (23,200 in fact). These ones come near the top of the list:

http://www.metalshell.com/view/tutorial/120/
http://www.cs.utah.edu/dept/old/texinfo ... e_toc.html

As for avrdude - the user manual covers pretty much everything you need.

By the way some people have adapted Eclipse for use with AVR as a cross-platform IDE.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
flydave
PostPosted: Jan 21, 2009 - 10:32 AM
Newbie


Joined: Jan 17, 2009
Posts: 11


Does a tutorial on Interrupt's exist ? otherwise it'll be interesting, for some noobs like me Smile
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jan 21, 2009 - 10:54 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

Does a tutorial on Interrupt's exist ? otherwise it'll be interesting, for some noobs like me

What kind of interrupts? I know that there are tutorials on both UART and ADC interrupts already - maybe others too?

EDIT: A search for "interrupt" in Tutorial Forum currently hits 47 threads including this one in fact - seems my list missed timers and EEPROM among others. Perhaps the most useful one generically about interrupts is actually this one:

Pitfalls of using interrupts

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
KitCarlson
PostPosted: Feb 18, 2009 - 02:50 PM
Resident


Joined: Feb 06, 2009
Posts: 859
Location: TN

I often use VT100 terminal commands for uC interfaces. I will write a Tutorial if there is interest. The MMI is very simple, and processes a character at a time to navigate menues and change values or present information. VT100 commands for printing text at a specific location, clearing screen and changing test parameters will be demonstated. The MMI is written using Codvision, it should work with other C compilers.

I have also developed a VB6 application for a custom VT100-lite terminal. This could be a second tutorial.

Both of these will compliment the nice tutorial on USART rs232 by Dean.
 
 View user's profile Send private message  
Reply with quote Back to top
mu5tard
PostPosted: Aug 23, 2009 - 07:13 PM
Newbie


Joined: Oct 25, 2008
Posts: 10


not strictly a topic i know, but id like to make a suggestion if i may

this forum is very biased towards C programming, would it not be possible to put assembly code snippets alongside the C code in these tutorial threads ?

i know its probably a big ask, but there does seem to be very little in the tutorial section for people (noobs like myself) starting to learn the assembly language
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Aug 24, 2009 - 09:14 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Try www.avrbeginners.net - a lot of the Asm "beginners" stuff already exists there so there's not much point in it being duplicated here.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
timepass
PostPosted: Aug 24, 2009 - 01:12 PM
Rookie


Joined: Jul 20, 2009
Posts: 22
Location: Delhi, India

I think Tutorial on receiving $GPRMC and $GPGGA using ATMEGA controller would be helpful for all working on GPS based application.

_____________
Dheeraj
 
 View user's profile Send private message  
Reply with quote Back to top
Koshchi
PostPosted: Aug 24, 2009 - 05:45 PM
10k+ Postman


Joined: Nov 17, 2004
Posts: 13961
Location: Vancouver, BC

But that is just parsing a string which involves nothing specific to the AVR.

_________________
Regards,
Steve A.

The Board helps those that help themselves.
 
 View user's profile Send private message  
Reply with quote Back to top
smileymicros
PostPosted: Aug 25, 2009 - 01:03 AM
Raving lunatic


Joined: Nov 17, 2004
Posts: 6144
Location: Great Smokey Mountains.

mu5tard wrote:
not strictly a topic i know, but id like to make a suggestion if i may

this forum is very biased towards C programming, would it not be possible to put assembly code snippets alongside the C code in these tutorial threads ?

i know its probably a big ask, but there does seem to be very little in the tutorial section for people (noobs like myself) starting to learn the assembly language
Check out Chuck Baird's book: http://www.lulu.com/content/420385

Smiley

_________________
FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Ali_dehbidi
PostPosted: Aug 29, 2009 - 02:28 PM
Posting Freak


Joined: Dec 22, 2005
Posts: 1283
Location: shiraz , iran

I think we need a tutorial on SDRAM's.

_________________
I love Digital
and you who involved in it!
 
 View user's profile Send private message  
Reply with quote Back to top
Spike69
PostPosted: Sep 05, 2009 - 11:54 PM
Newbie


Joined: Jul 16, 2009
Posts: 2
Location: Tucson, AZ

It would be great if you can make a tutorial about TWI/I2C, that is so mysterious, there's no single tutorial that explains it good enough to understand how it work just reading one tutorial, it's like a nightmare looking for some peaces of info all around the web.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
SteveN
PostPosted: Sep 06, 2009 - 12:46 AM
Raving lunatic


Joined: Nov 14, 2001
Posts: 3438
Location: Charlottesville, VA USA

I did a search for AVR32 related tutorials and couldn't find any. Of course I am no genius at searching so I may be wrong. Would there be anything wrong with someone posting AVR32 tutorials in this forum?
 
 View user's profile Send private message  
Reply with quote Back to top
damien_d
PostPosted: Sep 06, 2009 - 12:47 AM
Resident


Joined: Dec 15, 2008
Posts: 923
Location: Brisbane, Australia

Spike69 wrote:
It would be great if you can make a tutorial about TWI/I2C


Not a bad idea, especially given the xmega can do a multi-master configuration.

Bonus points for how to integrate with the SMBus of a standard PC for testing.
 
 View user's profile Send private message  
Reply with quote Back to top
Koshchi
PostPosted: Sep 06, 2009 - 01:46 AM
10k+ Postman


Joined: Nov 17, 2004
Posts: 13961
Location: Vancouver, BC

Quote:
Would there be anything wrong with someone posting AVR32 tutorials in this forum?

This forum is for 8 bit AVRs. The 32 bit AVRs have their own set of forums. It would be more appropriate if the admins would add a tutorial forum to that group.

_________________
Regards,
Steve A.

The Board helps those that help themselves.
 
 View user's profile Send private message  
Reply with quote Back to top
Ductapemaster
PostPosted: Sep 09, 2009 - 06:25 PM
Newbie


Joined: Oct 17, 2006
Posts: 7
Location: Orange County/Santa Barbara

I think a tutorial on external interrupts would be useful. All the tutorials I have found all suggest different things and none of them explain how things work and just give you code to copy.
 
 View user's profile Send private message  
Reply with quote Back to top
DavidDee
PostPosted: Oct 07, 2009 - 09:53 PM
Wannabe


Joined: Jun 29, 2009
Posts: 63
Location: USA, Upstate NY

Quote:


I'm 18 since Feb 14th - I'm one of the young ones here (along with Daqq and a few others). Uni takes up a huge chunk of my days, and most of my home time is taken up by social commitments, Uni assignments, Uni homework and not a whole lot else. What time I do get to myself I usually spend posting and reading here. No time for anything else!


Ha sorry to comment on a post that was 2 years old. But I wonder who is the youngest on here that is active. I just turned 15. Never know there could be some 6 year old genius trolling around here.
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
frakk2136
PostPosted: Nov 16, 2009 - 10:36 AM
Wannabe


Joined: Jun 04, 2009
Posts: 77


I would add a vote to software USB using the V-USB library or similar.
 
 View user's profile Send private message  
Reply with quote Back to top
John3
PostPosted: May 26, 2010 - 04:03 PM
Hangaround


Joined: Feb 23, 2007
Posts: 175
Location: East Central Iowa

I don't seem to be able to find something that explains the conventions used by Atmel for altering register contents in all their assembly programming examples. I can make the code work by using the example, but it would be nice to have explanations all in one place.

What I mean by the above is stuff like shifting in a one or zero bit so many places as in:
Code:
ldi r16,(1<<CS02)|(1<<CS01)|(1<<CS00)


I would benefit by having a reference in the use of operators in parenthesis above. Not the bit names or the include file, just the operators.

Regards,

John
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: May 26, 2010 - 04:52 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

It's in the assembler user manual:
Studio help file wrote:
Shift left
Code:
Symbol:        <<
Description:   Binary operator which returns the left expression shifted left the number given by the right expression
Precedence:    11
Associativity: Left 
Example:       ldi r17,1<<bitmask  ;Load r17 with 1 shifted left bitmask times

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Koshchi
PostPosted: May 26, 2010 - 09:34 PM
10k+ Postman


Joined: Nov 17, 2004
Posts: 13961
Location: Vancouver, BC

And "|" and "&" are bitwise OR and bitwise AND. These are the same techniques used in C (and their use can be seen it the "Progamming 101" tutorial.

_________________
Regards,
Steve A.

The Board helps those that help themselves.
 
 View user's profile Send private message  
Reply with quote Back to top
LDEVRIES
PostPosted: May 27, 2010 - 12:13 AM
Raving lunatic


Joined: May 04, 2007
Posts: 3529
Location: Geelong Australia, Home of the "Cats"

A Tutorial on Fault finding technique & Basic test equipment would not go astray. Unfortunately with a lot of newbies if they can't fix it with a keyboard it can't be fixed.

_________________
Charles Darwin, Lord Kelvin & Murphy are always lurking about!
Lee -.-
(If you haven't already done so, edit your PostNuke profile and let let us know where you are, what you do & what your interests are.)
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
John3
PostPosted: May 27, 2010 - 12:17 PM
Hangaround


Joined: Feb 23, 2007
Posts: 175
Location: East Central Iowa

Thanks Clawson and Koshchi. That is what I was looking for. I wish Atmel would add that to the HTML help in AVR Studio (so it would be there under HELP). And also, reference it in the application notes.

John
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: May 27, 2010 - 12:31 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

I wish Atmel would add that to the HTML help in AVR Studio (so it would be there under HELP).

That is EXACTLY where I copied that text from. In fact I just put a copy of the AVRASM help file online on my website. Suggest you look at:

http://www.wrightflyer.co.uk/asm/AVRASM ... sions.html

Either click the "<<" link in the table or simply scroll down the page to where it's documented. As I say I just took the .chm, that is accessible from the "Help" menu, from my copy of AVR Studio and converted it into a website. You can read how I did that here:

http://www.avrfreaks.net/index.php?name ... mp;t=77893

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
ArnoldB
PostPosted: May 27, 2010 - 07:08 PM
Raving lunatic


Joined: Nov 29, 2007
Posts: 3219


LDEVRIES wrote:
A Tutorial on Fault finding technique & Basic test equipment would not go astray. Unfortunately with a lot of newbies if they can't fix it with a keyboard it can't be fixed.
I have occasionally written a tutorial. Over time I have deleted all of them. Those in need of the information either don't read it "reading is for old people", or don't understand it. In the end the tutorials just earned me PMs from crackpots.
 
 View user's profile Send private message  
Reply with quote Back to top
LDEVRIES
PostPosted: May 28, 2010 - 07:22 AM
Raving lunatic


Joined: May 04, 2007
Posts: 3529
Location: Geelong Australia, Home of the "Cats"

Thanks for the advice Arnold. Plenty of crackpots around all right!

_________________
Charles Darwin, Lord Kelvin & Murphy are always lurking about!
Lee -.-
(If you haven't already done so, edit your PostNuke profile and let let us know where you are, what you do & what your interests are.)
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
John3
PostPosted: Jun 01, 2010 - 05:48 PM
Hangaround


Joined: Feb 23, 2007
Posts: 175
Location: East Central Iowa

clawson wrote:
Quote:

I wish Atmel would add that to the HTML help in AVR Studio (so it would be there under HELP).

That is EXACTLY where I copied that text from. In fact I just put a copy of the AVRASM help file online on my website. Suggest you look at:

http://www.wrightflyer.co.uk/asm/AVRASM ... sions.html

name=PNphpBB2&file=viewtopic&t=77893


After reading the recommended thread I now see it is in the help HTML *after* an assembly project has been opened. If you don't open an assembly file, there is still plenty of help HTML in AVR Studio, but none that I found that way cover the operators that were confusing me. But once an assembly project is loaded, its all there!

Regards,

John
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jun 01, 2010 - 06:34 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

No ALL the .chm's are available without a project. Just start Studio, no project and the top entry on the Help menu is "AVR Tools User Guide". That leads to a composite list of all the installed .chm files including "AVR Assembler" and "AVR Assembler 2". The help about << is under "AVR Assembler - User's Guide - Expressions"

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
John3
PostPosted: Jun 02, 2010 - 12:13 PM
Hangaround


Joined: Feb 23, 2007
Posts: 175
Location: East Central Iowa

It is indeed! I thought I had checked everything there.
When a project is open there is a topic "asembler help" that appears and that one also has the expressions.
 
 View user's profile Send private message  
Reply with quote Back to top
mbruck
PostPosted: Jan 27, 2011 - 08:07 PM
Wannabe


Joined: Aug 18, 2004
Posts: 64
Location: Mostar

Morons guide using POINTERS!
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Jan 28, 2011 - 12:10 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

Morons guide using POINTERS!

But surely there's nothing AVR specific about that and there's got to more than a thousand C/C++ tutorial sites on the internet where you can learn about that? If you are learning about using pointers in C it's far better to do it in a PC environment than on embedded hardware anyway as there are far more advanced and easy to use development tools and debuggers to "play" with experiments (the free editions of Microsoft Visual Studio Express spring to mind).

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
mbruck
PostPosted: Feb 09, 2011 - 12:39 AM
Wannabe


Joined: Aug 18, 2004
Posts: 64
Location: Mostar

Agree!

IMHO having some tutorial about pointers in AVR GCC would be helpfull here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
LDEVRIES
PostPosted: Feb 09, 2011 - 08:12 AM
Raving lunatic


Joined: May 04, 2007
Posts: 3529
Location: Geelong Australia, Home of the "Cats"

There is no doubt that when I used to teach C everything used to go pretty well until the day when pointers were introduced. The odd student who had done assembly language programing fared a little better as I could tell them that we pointers adressing was indexing and an index register was a pointer variable. But students tried to avoid pointers like the plague. Pointers of course allow extremely complex things to be done relatively simple...linked lists etc.
I believe that there are plenty of tutorials on pointers , but sometimes the connection is name made between pointers on PC and pointers in micros.
However, I am prepared to put together a short tutorial on pointers, with some specific AVR examples, without getting into complex algorithms(that can always be done later if required).

_________________
Charles Darwin, Lord Kelvin & Murphy are always lurking about!
Lee -.-
(If you haven't already done so, edit your PostNuke profile and let let us know where you are, what you do & what your interests are.)
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Feb 09, 2011 - 11:39 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Lee,

Nice offer but you really have to question some of these folks ability to use Google. I just typed "introduction to pointers in C" into Google and it hit 4,660,000 sites. Everything on the first page of results looks really useful.

While you could write a tutorial from scratch to reinvent the wheel for the 4,660,001th time I'd suggest just cherry picking the best bits from some of those other articles (though I guess there may be an issue of copyright?)

Cliff

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
LDEVRIES
PostPosted: Feb 09, 2011 - 11:54 AM
Raving lunatic


Joined: May 04, 2007
Posts: 3529
Location: Geelong Australia, Home of the "Cats"

Hi Cliff,
I know what you mean. I don't believe there is a shortage of references, but there may be a shortage of AVR relevant examples.
If I do something, I would do something off the top of the head(avoiding copyright issues). In particular I had in mind dissecting avr-libc Demo projects "Using the standard IO facilities". I will mull it over a bit more before I commit. Smile

_________________
Charles Darwin, Lord Kelvin & Murphy are always lurking about!
Lee -.-
(If you haven't already done so, edit your PostNuke profile and let let us know where you are, what you do & what your interests are.)
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Feb 09, 2011 - 11:59 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

may be a shortage of AVR relevant examples

But surely that's the very point? Beginners confuse themselves if they try to learn both pointers and AVR concepts at the same time. Surely the learning process is 1) learn C 2) learn to use it on AVRs in particular.

The use of pointers occurs at (1) as they are surely what sets C apart from other procedural languages.

Not really understanding how an AVR works while at the same time not really understanding how to use the chosen programming language is surely a recipe for disaster?

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
LDEVRIES
PostPosted: Feb 09, 2011 - 12:20 PM
Raving lunatic


Joined: May 04, 2007
Posts: 3529
Location: Geelong Australia, Home of the "Cats"

Your impeccable logic has turned me around to your way of thinking.

_________________
Charles Darwin, Lord Kelvin & Murphy are always lurking about!
Lee -.-
(If you haven't already done so, edit your PostNuke profile and let let us know where you are, what you do & what your interests are.)
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
valleyman
PostPosted: Aug 03, 2011 - 06:22 AM
Rookie


Joined: Jul 25, 2011
Posts: 49


May I beg for something about tools, especially software tools? Studio 5 offers a multitude of "views" that magically appear and disappear according to context, some may be familiar to avid Visual Studio users but not to noobs, some may be AVR Studio specific. Within I/O view, there are again a milliard of layers and bits and bytes. How do all these registers relate to names in other documents/tutorials? I feel overwhelmed by the amount of information, just like I was learning to drive. Where do I look, what to look for at that particular moment? A few pointed code segments accompanied with specific pointers (not programming pointers:-) to view focus (especially those cryptic names - not all of them, just the ones that I ought to be paying attention during the current step) will be great.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Aug 03, 2011 - 09:15 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

I feel overwhelmed by the amount of information, just like I was learning to drive

Suggest you start by using AS4 which is so simple even I can understand it. When you are familiar with this "cut down" version of what's going on the AS5 stuff should seem more obvious (and by then they may have got it working!).

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
RocketMan_Len
PostPosted: Sep 21, 2011 - 04:56 AM
Rookie


Joined: Jun 26, 2011
Posts: 41


Please add my vote for a tutorial on adding USB to a project... perhaps combining LUFA with V-USB...? Smile
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Sep 21, 2011 - 09:07 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

perhaps combining LUFA with V-USB..

Do you mean combine or simply "covering both of"? I cannot envisage a reason why a project would actually use both at the same time. If you are talking about all the solutions for "how do I add a USB connection to an AVR" I'd also add the use of the FTDI (PL2303?) to the list as that's the way everyone did it in the first place.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
RocketMan_Len
PostPosted: Sep 21, 2011 - 03:23 PM
Rookie


Joined: Jun 26, 2011
Posts: 41


Maybe my understanding is incorrect - I thought that LUFA was intended for chips that included USB support in hardware... so if you wanted to use USB *directly* on chips without, you would need to have something like V-USB operating underneath it.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Sep 21, 2011 - 03:39 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

Maybe my understanding is incorrect

It is incorrect. There are two possibilities:

1) AVRs with USB built in - they have registers in the IO map of the chip for USB. LUFA is a software stack you run on such an AVR that hides a lot of those register details from you and lets you do things at a much higher, easier to understand level. Dean's LUFA code makes it much easier for anyone to use AT90USB and ATmega*Un chips.

2) good old fashioned tiny and mega with no sign of USB at all. They can be connected to a USB on a PC but it's done by using 2 IO lines that are "bit banged" by the very clever V-USB software that allows you to open simple USB channels to the PC. It's downside is that with no h/w support the V-USB software uses a huge percentage of the available CPU time and only leaves time for simple jobs like LED scanning and button reading etc.

There is no overlap. LUFA won't work on top of V-USB. The outward facing layer of V-USB gives a very limited "poor man's" USB interface like a massively reduced subset of LUFA on a chip with real USB h/w.

So there could be one tutorial about using V-USB (though I'd suggest that the objdev.at site has loads to get you started already)

And there could be another one about getting started with LUFA (though again most people get by with the documentation on Dean's website). One of the best tutorials for LUFA are actually the sample projects that ship with it.

I wouldn't suggest mixing them - though there could be a higher level tutorial to help folks make the decision between V-USB on tiny/mega, LUFA on USB-AVR or FTDI attached to any AVR you choose.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
RocketMan_Len
PostPosted: Sep 21, 2011 - 06:19 PM
Rookie


Joined: Jun 26, 2011
Posts: 41


Thanks for the correction. Smile I've been looking at the objdev.at site as well as the code... but so far the concepts seem to escape me. (Likely because I'm not very familiar with advanced C programming...)
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Sep 21, 2011 - 07:24 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62952
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

I'm not very familiar with advanced C programming...

Whether you use LUFA or V-USB I'd say you need a pretty strong grasp of C programming - you can't really expect an LED flashing absolute beginner to pick up the concepts in either and no end of tutorials will help that.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
RocketMan_Len
PostPosted: Sep 22, 2011 - 12:03 AM
Rookie


Joined: Jun 26, 2011
Posts: 41


Well... I'm not an LED flashing absolute beginner - I just haven't maintained my programming skills since learning BASIC, COBOL and FORTRAN in highschool. (I'm really more of a hardware guy...)
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits