$regfile = "2313def.dat" $crystal = 4000000 Config Pind.6 = Output Config Pind.2 = Input Config Int0 = Falling Config Debounce = 50 Dim Wtime As Byte Const Debouncetime = 75 On Int0 Stopbutton Cls Wtime = 255 Enable Interrupts Enable Int0 Do Set Portd.6 Waitms Wtime Reset Portd.6 Waitms Wtime Loop Stopbutton: Lcd "stop!" Waitms Debouncetime Gifr = 64 Return End