Yup, it writes to the EEPROM on every loop.
With the PAUSE 100 in there, it will take only 2 hours and 45 minutes to completely use up the available 100,000 write endurance limit of a 16F877 or equiv.
Hope you haven't left it powered up
DT
Yup, it writes to the EEPROM on every loop.
With the PAUSE 100 in there, it will take only 2 hours and 45 minutes to completely use up the available 100,000 write endurance limit of a 16F877 or equiv.
Hope you haven't left it powered up
DT
I change the code and i believe now it's OK.
MAIN:
bla ... bla ...
bla ... bla ...
bla ... bla ...
LOOP:
Button UP,1,10,2,b1,1,MONTE
Button DOWN,1,10,2,b2,1,DESCEND
Button CH_PAS,1,255,0,b3,1, CHOIX
PAUSE 100
I2CREAD SDA,SCL,ADDR2,[LOCK]
GoSub AFFICHAGE
GoTo LOOP
MONTE: '** INCREASE THE FREQUENCY OF 1 PAS (STEP)
TMP = TMP + PAS
If TMP > 410 Then TMP = 0
GOSUB MEM
GoTo MAIN
DESCEND: '** DECREASE THE FREQUENCY OF 1 PAS (STEP)
If TMP<PAS Then RAZ_TMP
If TMP = 0 Then TOP
TMP = TMP - PAS
GOSUB MEM
GoTo MAIN
TOP:
TMP=410
GOSUB MEM
GoTo MAIN
RAZ_TMP:
TMP = 0
GOSUB MEM
GoTo MAIN
MEM:
WRITE 0, TMP_LO
WRITE 1, TMP_HI
Return
Last edited by savnik; - 13th August 2006 at 23:31.
Where is the 'question mark' ?Originally Posted by savnik
What do you expect?
What is the real question?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi, Steve ...
may be the problem is here :
If TMP If TMP = 0 Then TOP
That works only vith very aged PIC's ...
Alain
************************************************** ***********************
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 " !!!
*****************************************
Alain, yeah i saw that one too... copy/paste mistake i guess.
Vith?Originally Posted by Acetronics
Originally Posted by Savnik
i still searching the question mark but YES it looks OK.
any problem with your keyboard
?????????????????????????????????
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks