Hallo Leute,
was muss ich anstellen, um den Motor bestimmt Schritte nur laufen zu lassen.
So wie das Programm ist läuft der Motor kontinuierlich durch, funktioniert so weit.
hat jemand so etwas schon gemacht, oder hat jemand ein Programm wo man dieses ersehen kann.
Gruß Micha
$regfile = "m8def.dat"
$crystal = 8000000
$hwstack = 32
$swstack = 10
$framesize = 40
Config Portb.0 = Output
Config Portb.1 = Output
Config Portb.2 = Output
Config Portb.3 = Output
Do
Portb.0 = 1
Portb.1 = 0
Portb.2 = 0
Portb.3 = 1
Waitms 3
Portb.0 = 1
Portb.1 = 0
Portb.2 = 1
Portb.3 = 0
Waitms3
Portb.0 = 0
Portb.1 = 1
Portb.2 = 1
Portb.3 = 0
Waitms 3
Portb.0 = 0
Portb.1 = 1
Portb.2 = 0
Portb.3 = 1
Waitms 3
Loop
End
was muss ich anstellen, um den Motor bestimmt Schritte nur laufen zu lassen.
So wie das Programm ist läuft der Motor kontinuierlich durch, funktioniert so weit.
hat jemand so etwas schon gemacht, oder hat jemand ein Programm wo man dieses ersehen kann.
Gruß Micha
$regfile = "m8def.dat"
$crystal = 8000000
$hwstack = 32
$swstack = 10
$framesize = 40
Config Portb.0 = Output
Config Portb.1 = Output
Config Portb.2 = Output
Config Portb.3 = Output
Do
Portb.0 = 1
Portb.1 = 0
Portb.2 = 0
Portb.3 = 1
Waitms 3
Portb.0 = 1
Portb.1 = 0
Portb.2 = 1
Portb.3 = 0
Waitms3
Portb.0 = 0
Portb.1 = 1
Portb.2 = 1
Portb.3 = 0
Waitms 3
Portb.0 = 0
Portb.1 = 1
Portb.2 = 0
Portb.3 = 1
Waitms 3
Loop
End