Hi,

Just solve it now and with only one pushbutton

Code:


@ DEVICE pic16F877A, WDT_ON ' Watchdog Timer
@ DEVICE pic16F877A, PWRT_ON ' Power-On Timer
@ DEVICE pic16F877A, BOD_ON ' Brown-Out Detect
@ DEVICE pic16F877A, LVP_OFF ' Low-Voltage Programming
@ DEVICE pic16F877A, CPD_OFF ' Data Memory Code Protect
@ DEVICE pic16F877A, PROTECT_OFF ' Program Code Protection
@ DEVICE pic16F877A, WRT_OFF ' Flash Memory Word Enable

TRISB.0=1
TRISC.7=0

LED var PORTC.7
Bot1 var PORTB.0

CMCON=%00000111 ' Disable Comparators
CVRCON=%00000000 ' Disable Reference Module
OPTION_REG.7=0 ' Enable Weak Pull-Up's


ini:
Low LED
WHILE Bot1=0 :WEND
PAUSE 10000
high LED
PAUSE 300
Low LED
GOSUB FIM

FIM:
WHILE Bot1=1 :WEND
GOTO ini
End



Thanks you all