Premier programme sur AVR
Par guillaume le mardi, mars 24 2009, 11:08 - Programmation - Lien permanent
Un bout de code pour faire clignoter une led sur le bit 0 du portC
#include <avr/io.h> #include <util/delay.h> # define F_CPU 8000000UL int main() { DDRC|=0x01; //PortC[0] en sortie while(1){ PORTC = 0; _delay_ms(500); PORTC = 0x01; _delay_ms(500); } }
Je crois qu'il n'est pas nécessaire de rentrer dans les détails: portC à 0, on attend 500ms portC à 1, on attend encore 500ms et on boucle.
Sous linux, il faut installer la librairie avr-libc pour pouvoir utiliser les fonctions _delay_ms( ) et _delay_us( )
Commentaires
Right on my man!
lab.stanleysuen.com
balance of nature
John
balance of nature
www.mzbdw.net
https://beauval.co.uk/
links.michaelhutter.de
flw.cool
balance of nature
www.nikaraworld.com
Hildegard
https://www.konieczko.uk
balance of nature
balance of nature
balance of nature
Aline
gmafiarecords.com.br
Joie
https://movietriggers.org/index.php...
balance of nature
davidopderbeck.com
balance of nature
balance of nature
www.pmotalk.com
http://20911.net/comment/html/?1056...
Susana
balance of nature
Virginia
戰憶.xn--1-eu0b88a.com
Virginia
Fannie
http://bbs.net.wang/profile.php?id=...
https://techglobalnetwork.com/marke...
Elvis
Elvis
www.mengzitong.net
balance of nature
balance of nature
balance of nature
http://beautysod.com/index.php?acti...
http://lmf168.com/home.php?mod=spac...
Daniella
dammwild.net
tinyhomes.website
Daniella
Ernesto
fakeplanes.tech
Adell
sns.d1v1.com
Adell
https://buysell.london/
balance of nature
Mabel
balance of nature
balance of nature
tealv.ru
Lori
sp-tagirkent.ru
https://www.mxgxs.top/home.php?mod=...
codescript.ru
Maybelle
godagang.com
balance of nature
balance of nature
trademarksexchange.com
www.0818wo.com
Kirk
Kirk
www.sergipereciclaveis.com
sustainabilipedia.org
http://wiki.yozturk.com/
https://iotdunia.com
balance of nature
www.aia.community
balance of nature
What i don't realize is in fact how you are now not really much more neatly-preferred than you might be now.
You're so intelligent. You recognize thus significantly on the subject of this matter, produced me for my
part believe it from a lot of numerous angles. Its like women and men don't seem to be fascinated unless it's one thing to do with Lady gaga!
Your own stuffs outstanding. All the time care
for it up!
https://theseederyinc.com/community...
balance of nature
balance of nature
balance of nature
recursos.isfodosu.edu.do
Hi there colleagues, fastidious piece of writing and nice arguments commented here, I am really enjoying by these.
You need to be a part of a contest for one of the highest quality sites on the web.
I will recommend this blog!
Hmm is anyone else having problems with the pictures on this blog loading?
I'm trying to determine if its a problem on my end or if it's the
blog. Any feed-back would be greatly appreciated.
Amazing! Its really awesome paragraph, I have got much clear idea on the topic of from this piece of writing.
Elton
https://corpusero.com/moringa-oleif...
Trena
balance of nature
suranareeborribal.com
I am regular visitor, how are you everybody? This piece of
writing posted at this web site is truly pleasant.
Simply wish to say your article is as astounding.
The clarity for your post is just excellent and i could
suppose you're knowledgeable in this subject. Fine together with your permission allow
me to seize your RSS feed to stay up to date with forthcoming
post. Thanks 1,000,000 and please carry on the gratifying work.
You can definitely see your enthusiasm within the work you write.
The world hopes for more passionate writers like
you who aren't afraid to say how they believe.
Always go after your heart.
Terrific article! That is the type of info that should be shared across the
web. Shame on the seek engines for no longer positioning this post higher!
Come on over and visit my website . Thank you =)
Cool blog! Is your theme custom made or did you download it from somewhere?
A theme like yours with a few simple adjustements would
really make my blog jump out. Please let me know where you got your theme.
Thanks
magnificent put up, very informative. I'm wondering why the other specialists of this sector don't realize this.
You should continue your writing. I am sure, you have a huge readers' base already!
balance of nature
https://lila-presence-nondualite.fr...
rum4.com
https://sustainabilipedia.org/index...
www.zgyssyw.com
Appreciating the commitment you put into your
website and detailed information you provide. It's nice to come across a blog every once in a while that isn't the same out of
date rehashed information. Wonderful read!
I've saved your site and I'm adding your RSS feeds to my Google account.
Hey there! Quick question that's completely
off topic. Do you know how to make your site mobile
friendly? My website looks weird when browsing from my iphone.
I'm trying to find a theme or plugin that might be able to resolve
this problem. If you have any recommendations, please share.
Thank you!
I'm truly enjoying the design and layout of your blog.
It's a very easy on the eyes which makes it much
more enjoyable for me to come here and visit more
often. Did you hire out a developer to create your theme?
Excellent work!
aiseclub.com
George
https://kartdatabase.com/
http://www.dexing.cf
balance of nature
I really love your website.. Great colors & theme. Did you make this website yourself?
Please reply back as I'm wanting to create my very
own website and would love to find out where you got this from or exactly what the theme is named.
Kudos!
bota2.com
https://lican.as.arizona.edu/~ehtsi...
http://www.lleureroquetes.paremanel...
balance of nature
balance of nature
Hello friends, fastidious post and fastidious urging commented at this
place, I am truly enjoying by these.
Its like you read my mind! You appear to know a lot about this,
like you wrote the book in it or something. I think that you can do with
a few pics to drive the message home a bit, but instead of that, this is fantastic blog.
An excellent read. I will certainly be back.
Jolie
balance of nature
http://cq.x7cq.vip/
Darren
Darren
Thanks for sharing your thoughts on health supplement.
Regards
We are a group of volunteers and starting a new scheme in our
community. Your site provided us with valuable information to work on. You have done a formidable
job and our whole community will be thankful to you.
We stumbled over here coming from a different
web address and thought I might as well check things out.
I like what I see so now i am following you.
Look forward to going over your web page repeatedly.
Undeniably believe that that you said. Your favorite
reason seemed to be at the internet the simplest factor to be aware of.
I say to you, I certainly get annoyed at the same time as folks think about worries that they plainly do
not recognise about. You controlled to hit the nail upon the top and also
outlined out the entire thing with no need side-effects , folks can take a signal.
Will likely be again to get more. Thank you
Unquestionably imagine that that you stated.
Your favourite justification appeared to be on the net the easiest factor to be aware of.
I say to you, I certainly get irked whilst other
people consider worries that they just do not understand about.
You managed to hit the nail upon the highest as well as defined out
the whole thing without having side effect , other people
could take a signal. Will probably be again to get more.
Thank you
What's Going down i'm new to this, I stumbled upon this I have found It absolutely
useful and it has aided me out loads. I am hoping to give a contribution & aid other customers like its helped
me. Great job.
Good post. I learn something new and challenging on blogs I stumbleupon on a daily basis.
It's always interesting to read through articles from other writers and use a
little something from other web sites.
Thanks very nice blog!
Thanks in favor of sharing such a good thinking, paragraph is good, thats why i have
read it fully
This blog was... how do I say it? Relevant!! Finally I've found something which helped me.
Thank you!
When someone writes an piece of writing he/she
retains the thought of a user in his/her brain that how a user can know it.
So that's why this post is outstdanding. Thanks!
Definitely believe that which you said. Your favorite justification seemed to be on the net the easiest thing to
be aware of. I say to you, I certainly get irked
while people consider worries that they plainly don't know about.
You managed to hit the nail upon the top as well as defined out the whole thing
without having side effect , people could take a signal.
Will probably be back to get more. Thanks
Excellent goods from you, man. I have understand your stuff previous to and you are just too magnificent.
I actually like what you've acquired here, really like what you are stating and the way in which
you say it. You make it entertaining and you still
take care of to keep it smart. I cant wait to read far more from you.
This is actually a great site.
What's up, just wanted to tell you, I liked this blog
post. It was practical. Keep on posting!
You need to take part in a contest for one of the greatest sites on the web.
I most certainly will recommend this website!
Hi, after reading this awesome piece of writing i am as well cheerful to share my experience here
with friends.
Pretty nice post. I simply stumbled upon your weblog and wanted to say that I've really enjoyed browsing your weblog posts.
In any case I'll be subscribing in your feed and I'm hoping you write again soon!
This is really interesting, You are a very skilled blogger.
I have joined your feed and look forward to seeking more of your fantastic post.
Also, I've shared your website in my social networks!
Very quickly this web page will be famous
among all blogging and site-building people, due to it's nice articles
I was able to find good advice from your content.
Hello there! Do you use Twitter? I'd like to follow
you if that would be okay. I'm definitely enjoying your blog and look
forward to new updates.
That's a great point