If you need to be able to change the tone "continously" then rearanging the code slighty might make it a little bit better, the glitch should be in the us* range:
*Depending on how much time SOUND needs to "set it self up".Code:Main: GO_DONE = 1 ' Start the conversion IF Trigger THEN Sound SPK,[Tone / 4 + 50, 1] ENDIF WHILE GO_DONE : WEND ' If trigger isn't 'on' we need to wait for the ADC. Tone = ADRES Goto Main
/Henrik.
Bookmarks