PDA

View Full Version : Continuous DTMFOut tone?



atlantis
- 9th December 2007, 18:44
Hi

I want to use DTMFOut to generate the DTMF tone as long as the button ist pushed. What's the best way to do this? It seems this is not meant to be done at all, setting OffTime 0 doesn't seem to work. Should it?

Kind regards
Martin

Darrel Taylor
- 9th December 2007, 21:10
It's possible.
But it's not as easy as just changing a parameter in the DTMFOUT statement.

If the keypad is using ASM interrupts (not ON INTERRUPT), (RBC, portb change).

Then when a key is pressed, the handler should set a flag that tells the main loop to start the DTMF with the Maximum ON time (65 seconds).

When the key is released, the handler will simply set the system variable R1 = $FFFF.
The DTMF command will then terminate.
<br>