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