Hi,
Define is only used at compile time to tell the compiler which formula to use to get the right timings ...
so, what you intend to do hasn't the least chance to work ... what you can do is add a freq variable :
[code]
SELECT CASE Freq
Case 16
TESTJE = 1
Pause 4*1000
TESTJE = 0
LED = 0
Case 20
TESTJE = 1
Pause 5*1000
TESTJE = 0
END SELECT
But will only EASILY work for simple commands ... ( Not with One Wire, Serial or HPWM ..)
Now ... surely Darrel has a library "hacking" for that ... at asm level !
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 " !!!
*****************************************
Bookmarks