Hallo,

ich hab das eben auch mal mit dem code versucht, bekomme aber leider auch nichts am Ausgang, obwohl ich alle PIN's aus Ausgang definiert habe .

Kann mir vielleicht jm. sagen, was bei meinem Code falsch ist?
Code:
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/delay.h> 
#include <stdint.h>
#include <avr/delay.h>
#include <avr/signal.h>

#define   PWM_LINKS         OCR1A
#define PWM_LINKS_ON      TCCR1A |=  (1<<COM1A1)
#define PWM_LINKS_OFF      TCCR1A &= ~(1<<COM1A1)

#define   PWM_RECHTS         OCR1B
#define PWM_RECHTS_ON      TCCR1A |=  (1<<COM1B1)
#define PWM_RECHTS_OFF      TCCR1A &= ~(1<<COM1B1)



static void io_init(void)
{

	PORTA =0x0;		//ausgängn
	DDRA = 0xff;
	// PortB
	PORTB = 0x0;	//ausgänge
	DDRB = 0xff;
	// PortC
	PORTC = 0x0;	//ausgänge
	DDRC = 0xff;	
	// PortD
	PORTD = 0x0;	//ausgänge
	DDRD = 0xff;
	ACSR = 0x80;

/* normale 10-bit PWM aktivieren ( nicht invertiert ) */
TCCR1A = (1<<WGM10)|(1<<WGM11);
/* Einstellen der PWM-Frequenz auf ca. 8 kHz ( Prescaler = 1 ) */
TCCR1B = (1<<CS10);
/* PWN einschalten -- > PIN mit PWM verbinden */
PWM_LINKS_ON;
PWM_RECHTS_ON;
/* und Werte schreiben */
PWM_RECHTS = 234;
PWM_LINKS = 1023; 
}


int main(void)
{
	io_init();

	while(1)
	{
		
	}
	return(0);
}
wäre super nett, wenn mir jm helfen könnte!