jaa ich hab es jetz so gemacht aber jetzt passiert garnix mehr nur auf einem port läuft er dauerhaft :
Config Pind.5 = Output wird für PWM Motor 1 benutzt
Config Pinc.6 = Output wird vom Motortreiber für Motor 1 Kanal 1...
Config Pinc.7 = Output wird vom Motortreiber für Motor 1 Kanal 2...
Portc.6 = 1 richtung von Motor 1 Kanal 1
Portc.7 = 0 richtung von Motor 1 Kanal 2

DIM Speed as Word


Do
For Speed = 0 To 10000
PWM1A = Speed
Waitms 1
Next

Wait 10

For Speed = 0 To 10000
PWM1A = 10000 - Speed
Waitms 1
Next

Wait 5

Loop