| Author |
Message |
|
|
Posted: Sep 06, 2009 - 01:46 AM |
|

Joined: Nov 17, 2004
Posts: 13853
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.
|
| |
|
|
|
|
|
Posted: Sep 09, 2009 - 06:25 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Oct 07, 2009 - 09:53 PM |
|


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. |
|
|
| |
|
|
|
|
|
Posted: Nov 16, 2009 - 10:36 AM |
|

Joined: Jun 04, 2009
Posts: 77
|
|
| I would add a vote to software USB using the V-USB library or similar. |
|
|
| |
|
|
|
|
|
Posted: May 26, 2010 - 04:03 PM |
|


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 |
|
|
| |
|
|
|
|
|
Posted: May 26, 2010 - 04:52 PM |
|


Joined: Jul 18, 2005
Posts: 62371
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
|
_________________
|
| |
|
|
|
|
|
Posted: May 26, 2010 - 09:34 PM |
|

Joined: Nov 17, 2004
Posts: 13853
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.
|
| |
|
|
|
|
|
Posted: May 27, 2010 - 12:13 AM |
|


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.)
|
| |
|
|
|
|
|
Posted: May 27, 2010 - 12:17 PM |
|


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 |
|
|
| |
|
|
|
|
|
Posted: May 27, 2010 - 12:31 PM |
|


Joined: Jul 18, 2005
Posts: 62371
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 |
_________________
|
| |
|
|
|
|
|
Posted: May 27, 2010 - 07:08 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: May 28, 2010 - 07:22 AM |
|


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.)
|
| |
|
|
|
|
|
Posted: Jun 01, 2010 - 05:48 PM |
|


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 |
|
|
| |
|
|
|
|
|
Posted: Jun 01, 2010 - 06:34 PM |
|


Joined: Jul 18, 2005
Posts: 62371
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" |
_________________
|
| |
|
|
|
|
|
Posted: Jun 02, 2010 - 12:13 PM |
|


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. |
|
|
| |
|
|
|
|
|
Posted: Jan 27, 2011 - 08:07 PM |
|

Joined: Aug 18, 2004
Posts: 64
Location: Mostar
|
|
| Morons guide using POINTERS! |
|
|
| |
|
|
|
|
|
Posted: Jan 28, 2011 - 12:10 PM |
|


Joined: Jul 18, 2005
Posts: 62371
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). |
_________________
|
| |
|
|
|
|
|
Posted: Feb 09, 2011 - 12:39 AM |
|

Joined: Aug 18, 2004
Posts: 64
Location: Mostar
|
|
Agree!
IMHO having some tutorial about pointers in AVR GCC would be helpfull here. |
|
|
| |
|
|
|
|
|
Posted: Feb 09, 2011 - 08:12 AM |
|


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.)
|
| |
|
|
|
|
|
Posted: Feb 09, 2011 - 11:39 AM |
|


Joined: Jul 18, 2005
Posts: 62371
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 |
_________________
|
| |
|
|
|
|
|