Alles klar. Ist aber nur ein Test Programm und sollte das sein welches aktuell drauf ist.

Code:
$regfile = "attiny2313.dat"
$crystal = 4000000

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

Config Portd.0 = Output
Config Portd.1 = Output
Config Portd.4 = Output
Config Portd.5 = Output
Config Portb.3 = Output
Config Portb.4 = Output

Motor_links_1 Alias Portd.1
Motor_links_2 Alias Portd.0

Motor_rechts_1 Alias Portd.5
Motor_rechts_2 Alias Portd.4

Do

   Pwm1a = 0
   Motor_links_1 = 1
   Motor_links_2 = 0
   Pwm1b = 0
   Motor_rechts_1 = 1
   Motor_rechts_2 = 0
   Wait 5

   Pwm1a = 125
   Motor_links_1 = 0
   Motor_links_2 = 1
   Pwm1b = 125
   Motor_rechts_1 = 0
   Motor_rechts_2 = 1
   Wait 5

   Pwm1a = 255
   Motor_links_1 = 1
   Motor_links_2 = 0
   Pwm1b = 0
   Motor_rechts_1 = 1
   Motor_rechts_2 = 0
   Wait 5

   Pwm1a = 0
   Motor_links_1 = 1
   Motor_links_2 = 0
   Pwm1b = 255
   Motor_rechts_1 = 1
   Motor_rechts_2 = 0
   Wait 5


Loop

End