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