Habe Fehler gefunden...
So gehts:
(Das entscheidene war das bei Timer nicht PWM=on steht)
Code:
Config Portb.3 = Output
Config Portd.4 = Output
Config Portd.5 = Output
Config Portd.7 = Output
Config Timer1 = Pwm , Pwm = 8 , Compare A Pwm = Clear Down , Compare B Pwm = Clear Down , Prescale = 1
Config Timer2 = Pwm , Pwm = On , Compare Pwm = Clear Up , Prescale = 1
Config Timer0 = Pwm , Compare Pwm = Clear Down , Prescale = 1
Enable Interrupts
Enable Timer0
Enable Timer1
Enable Timer2
PWM1 Alias Ocr2
PWM2 Alias Pwm1a
pwm3 Alias Pwm1b
pwm4 Alias Ocr0
Lesezeichen