$regfile = "2313def.dat" $crystal = 4000000 'Config Pind.6 = Output Config Timer1 = Timer , Prescale = 64 , Capture Edge = Rising Dim Wtime As Byte Dim Timercounter As Word On Capture1 Captmr Wtime = 100 Timercounter = 0 Enable Interrupts Enable Capture1 Do 'Set Portd.6 Waitms Wtime 'Reset Portd.6 Waitms Wtime Cls Lcd "pwidth: " ; " " ; Capture1 Loop Captmr: Timercounter = Capture1 Timer1 = 0 Return End