camolas,
Do you have a schematic you could post?
camolas,
Do you have a schematic you could post?
Dave
Always wear safety glasses while programming.
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
Hi, Camolas
Those two lines ( GOSUB FIM and FIM: ) can be simply wiped off : the only use is to loose two clock cycles ... say nothing for us.Code:... GOSUB FIM FIM: WHILE Bot1=1 :WEND GOTO ini ...
" Im Portugese next Europen winers cup"
too much ... vinho verde ???
Alain
Last edited by Acetronics2; - 18th April 2008 at 09:17.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Thanks for the hellp Alain, when you came to Prtugal i will buy you a botle of vinho verde.
Im from the city that mackes the bert Portugese vinho verde Casal Garcia, Aveleda...
By by
Bookmarks