Hallo zusammen,
ich versuche grad ne abstanfsmessung mit dem ping sensor))) von parallax. ich bin soweit das ich ausgewertet habe wie lange der pin auf high ist. nun muss ich das in sekunden umrechnen...aber da liegt mein problem...
wie kann ich die variable count in sekunden umrechnen???

Code:
$regfile = "m128def.dat"
$crystal = 4000000
$baud = 9600

dim count as long

do
    config portd.1 = output
    set portd.1
    waitus 10
    reset portd.1
    config pind.1 = input
    bitwait pind.1,set
   do
     incr count
   loop until pind.1 = 0
   cls
   locate 1,1 : lcd  count
   wait 5
loop