Liebes Forum ich will für meinen Pro-Bot eien Stopwatch wie beim Rp6
programmieren, leider komme ich nicht sehr voran nicht das einfachste programm um Sekunden zu messen Funktioniert.hier mal das Programm es soll erst mal nur mit einer Stopwacht arbeiten. beim Terminal kommt immer nur null raus. Kann mir da jemand helfen ?



Code:
$regfile = "m128def.dat"
$framesize = 42
$swstack = 32
$hwstack = 32
$crystal = 14745600
$baud = 19200

Dim Sw1ys As Long
Dim Sw1ms As Long
Dim Sw1s As Word
Dim Sw1m As Byte

Config Timer3 = Timer , Prescale = 8
Timer3 = 63693
On Ovf3 On_ovf3
Enable Ovf3
Enable Interrupts

Sw1ms = Sw1ys / 10
Sw1s = Sw1ms / 100
Sw1m = Sw1s / 60





Do


Print Sw1s


Loop

End

On_ovf3:
 Sw1ys = Sw1ys + 1
Return