I am basically going to focus on the program assuming you know how to burn the program onto your micro controller. If you dont i would be more then happy to help. So lets get started!!!
AVR for newbies
This blog is dedicated to all students who want to start learning avr. This blog will provide you with a few tutorials to get you started.
Thursday, 2 January 2014
Tuesday, 31 December 2013
Tutorial - II Basics of AVR programming
You are now set to begin programming. Before we proceed further, i would advice you to brush up your C basics, as the programming of a uC (microcontoller) involves C - embedded which closely resembles C.
Whenever we start programming we first include the header files:-
After the header files comes the main( ) function. The program begins by executing the main function.
So basically anything written in the main function is executed first.
Whenever we start programming we first include the header files:-
- #include<avr/io.h> - used for input/output through ports also known as port manipulation
- #include<util/delay.h> - used to create delays in the program.
After the header files comes the main( ) function. The program begins by executing the main function.
So basically anything written in the main function is executed first.
Subscribe to:
Posts (Atom)