So hier nun mal die PWM Init für den ATmega 8, Timer 1, Fast PWM 10-Bit:
Bei mir funktionierts jetzt, vielleicht hilft es mal jemandemCode://***pwm init********************************************************************************** TCCR1B |= (1<<CS12); //Prescaler 512 TCCR1A |= (1<<WGM10) | (1<<WGM11); //Fast PWM Mode 10 Bit TCCR1B |= (1<<WGM12); TCCR1A |= (1<<COM1A1) | (1<<COM1B1) ; OCR1A = 10; //PWM Start-Wert DDRB |= (1<< PB1); //PWM aktivieren![]()
Lesezeichen