Skip to content

Instantly share code, notes, and snippets.

@detik19
Last active August 29, 2015 14:13
Show Gist options
  • Save detik19/6f627abcc806ec0f9c08 to your computer and use it in GitHub Desktop.
Save detik19/6f627abcc806ec0f9c08 to your computer and use it in GitHub Desktop.
/*****************************************************
This program was produced by the
CodeWizardAVR V2.04.4a Advanced
Automatic Program Generator
© Copyright 1998-2009 Pavel Haiduc, HP InfoTech s.r.l.
http://www.hpinfotech.com
Project : Hello World
Version :
Date    : 25/12/2010
Author  : Tedy Tri Saputro
Company : Belajar Elektronika Yuk
Comments:
http://elektronikayuk.wordpress.com
Chip type               : ATmega8535
Program type            : Application
AVR Core Clock frequency: 8,000000 MHz
Memory model            : Small
External RAM size       : 0
Data Stack size         : 128
*****************************************************/
#include < mega8535.h >
#include < delay.h >
// Declare your global variables here
void main()
{
PORTA=0x00;
DDRA=0xFF;
while (1)
{
// Place your code here
PORTA=0x00;
delay_ms(500);
PORTA=0xff;
delay_ms(500);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment