






   // *** test.c ***
   

   //     MCU:   ATmega16  oder  ATmega32


   #define F_CPU 1000000
   
   #include <avr/io.h>
   #include <util/delay.h>



   int main (void)
   {
      MCUCSR |= (1<<JTD);       // JTAG disable
      MCUCSR |= (1<<JTD);
   
      DDRC = 0b11111111;
   
      while(1) 
      {
         PORTC = 0b00000000;      // -> LED  1011 1101
         _delay_ms(500);

         PORTC = 0b11111111;      // -> LED  1111 1111
         _delay_ms(500);
      }
   
      return 0;
   }





/*
   int main (void)
   {
      MCUCSR |= (1<<JTD);       // JTAG disable
      MCUCSR |= (1<<JTD);
   
      DDRC |= (1 << PC0 | 1 << PC1 | 1 << PC2 | 1 << PC3);
   
      while(1) 
      {
         PORTC ^= (1 << PC0 | 1 << PC1 | 1 << PC2 | 1 << PC3);
         _delay_ms(100);
      }
   
      return 0;
   }
*/