User defined functions file for ATMega8/16 programs


Download100
Stock
File Size1.66 KB
Create DateJanuary 21, 2017
Vidyasagar Academy, Akola is a trusted name in the field of education. If you liked our free downloads, please write Google Review about us or follow us on Google+.

These are the user defined functions created by Vidyasagar Academy. With these functions student can write any robotic program in simple steps. However, we suggest to study the in-built functions of AVR Studio4 and understand their importance.

Refer our course book - LEARN ROBOTICS IN SIMPLE STEPS - written by Prof. D.S.Vidyasagar

/*
Example program of using user defined functions
*/
#define F_CPU 12000000UL
#include <avr/io.h>
#include <util/delay.h>
#include "functions.c" // note this line

	int main()
	{
		DDRB=0b00001111;

		while(1)
		{
			GoForward();
			Delay5s();
			Stop();
			Delay1s();
		}
	}
About the author: Admin of Vidyasagar Academy to post all types of educational material required for our students. This material is equally helpful to our online students.
0 comments… add one