Docsity

Delay-Interfacing Microprocessor-Codes, Study Guides, Projects, Research of Microprocessor and Interfacing

Toggle sidebar
bg1
// ***********************************************************
// Project:
// Author:
// Module description:
// ***********************************************************
#include <avr\io.h> // Most basic include files
#include <avr\interrupt.h> // Add the necessary ones
#include <avr\signal.h> // here
#include <util\delay.h>
// Define here the global static variables
//
// ***********************************************************
// Main program
//
int main(void)
{
while(1)
{
DDRA = 1;
PORTA = 0;
_delay_ms(250);
PORTA =1;
_delay_ms(250);
}
}
docsity.com

Partial preview of the text

Download Delay-Interfacing Microprocessor-Codes and more Study Guides, Projects, Research Microprocessor and Interfacing in PDF only on Docsity!

// Project: // Author: // Module description: // *********************************************************** #include <avr\io.h> // Most basic include files #include <avr\interrupt.h> // Add the necessary ones #include <avr\signal.h> // here #include <util\delay.h> // Define here the global static variables // // *********************************************************** // Main program // int main(void) { while(1) { DDRA = 1; PORTA = 0; _delay_ms(250); PORTA =1; _delay_ms(250); } }

docsity.com