
5: BASIC Stamp Command Reference - DTMFOUT
BASIC Stamp Programming Manual 2.0c
•
www.parallaxinc.com
•
Page 107
DTMFOUT
BS1
BS2 BS2e BS2sx BS2p
DTMFOUT
Pin, {OnTime, OffTime,} [ Tone {, Tone…} ]
Function
Generate dual-tone, multifrequency tones (DTMF, i.e., telephone “touch”
tones).
•
Pin
is a variable/constant/expression (0 – 15) that specifies the I/O
pin to use. This pin will be set to output mode during generation of
tones and set to input mode aftwerwards.
•
OnTime
is
an optional variable/constant/expression (0 – 65535)
specifying a duration of the tone. The unit of time and the default
time for OnTime is described in Table 5.7.
•
OffTime
is
an optional variable/constant/expression (0 – 65535)
specifying the length of silent pause after a tone (or between tones, if
multiple tones are specified). The unit of time and the default time
for OffTime is described in Table 5.7.
•
Tone
is a variable/constant/expression (0 – 15) specifying the DTMF
tone to generate. Tones 0 through 11 correspond to the standard
layout of the telephone keypad, while 12 through 15 are the fourth-
column tones used by phone test equipment and in ham-radio
applications.
Quick Facts
BS2, BS2e
BS2sx
BS2p
Default OnTime
200 ms
80 ms
55 ms
Default OffTime
50 ms
50 ms
50 ms
Units in OnTime
and OffTime
1 ms
0.4 ms
0.265 ms
Explanation
DTMF tones are used to dial the phone or remotely control certain radio
equipment. The BASIC Stamp can generate these tones digitally using the
DTMFOUT instruction. Figure 5.2 shows how to connect a speaker or
audio amplifier to hear these tones and Figure 5.3 shows how to connect
the BASIC Stamp to the phone line.
2
e
2
sx
2
p
2
Table 5.7: DTMFOUT Quick Facts.
Summary of Contents for BASIC Stamp 1
Page 1: ...BASIC Stamp Programming Manual Version 2 0c...
Page 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...