Professional Documents
Culture Documents
• Syntax:
if( condition)
{
statement…….
}
else
{
statement……..
}
Do- while statement
• Syntax:
Initial counter
Do
{
statement…….
update statement
}
While(condition);
For- statement
• Syntax:
For( initial counter; test condition; update stmt)
{
statement……..
statement……...
}
• Program:
for(int i=0;i<5;i++)
sprintf(str, “Hello ”);
• To continue further,
• Install:
– WINAVR
– AVRSTUDIO 4
• The setup files are given in the C.D.
Creation of AVR Projects with AVR studio
• To continue this lab:
– Make sure you install:
• WINAVR
• AVR STUDIO
Using the setup file given in the C
Home screen of AVR STUDIO
New project window
Naming the projects
Then Click On Next. And Make sure that Create folder check box is
always checked.
Selecting Platform and Device
If there is no error in the code the Build succeeded without any error.
Installing the Driver