//--------------------------------------------------------------------------------------- // Programm Nr.: 01 // Content : Set LED at PORTD on start // Author : digital AG Halle // Date : 13.07.2008 // System : ATmega8-16PU - Dai Hoc Hue Development Board //--------------------------------------------------------------------------------------- //--included Files----------------------------------------------------------------------- #include //--declarations------------------------------------------------------------------------- //--MAIN PROGRAMM------------------------------------------------------------------------ int main() { //--INITIALISATION--------------------------------------------------------------- DDRD=0xff; //Port D: all Bits defined as output (for the status LEDs) //--PROGRAMM CODE BEFORE MAIN LOOP (USED JUST ONE TIME)-------------------------- PORTD=254; //SET LED at PORTD.BIT0 //--MAIN LOOP-------------------------------------------------------------------- while(1) { } } //--PROGRAMM END------------------------------------------------------------------------