/* DMX Motorsteuerung
   Version: 0.1
   Datum: 	15.08.08
   Autor:	H.Hölscher (www.hoelscher-hi.de)
   Target:	DMX Transceiver @8MHz
   Lizenz: 	GPLv2
*/

#include <avr/io.h>
#include <stdint.h>
#include <avr/wdt.h>

uint16_t count;


int main(void)
{

DDRA=  0xFF;													//low outputs
PORTA= 0;

DDRD=  0b10000110;												//DMX, spare, LED1
PORTD= 0b01111010;

for(;;)
	{
	wdt_reset();					//reset watchdog (evtl durch Fuse Bits aktiv)
	if (--count == 0)
		{
		PORTD ^= (1<<PD7);			//toggle LED
		}
	}
}

