Also habe es jatzt mal so geschrieben (mit High und Low):

$regfile = "m8def.dat"
$crystal = 16000000

Config Pinb.1 = Output
Config Pinb.2 = Output
Config Pinc.0 = Output
Config Pinc.1 = Output
Config Pinc.2 = Output
Config Pinc.3 = Output

Config Timer1 = Pwm , Pwm = 8 , Compare A Pwm = Clear Up , Compare B Pwm = Clear Up , Prescale = 1

Do
Compare1a = 2
Compare1b = 6
Portc.0 = 1
Portc.1 = 0
Portc.2 = 1
Portc.3 = 0


Loop

End

Funktioniert diese Programm ?

Viele Grüße