SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
3826 Group
39
DTMF Function (Dual Tone Multi Frequency)
DTMF function is used to output the result which generated auto-
matically the waveform of sine wave of two kinds of different
frequency, and added two kinds of this sine wave as an analog
value.
DTMF output can be performed using DA1 function. DTMF wave-
form is output by setting “1” to the DTMF/DA1 output enable bit (bit
0 of address 003616), and setting “1” to the DTMF/DA1 selection
bit (bit 2 of address 003616). At this time, set “0” (input state) to the
direction register of ports P56/DA1 and pull-up resistor to be OFF
state.
In order to set two kinds of frequency which generates DTMF
waveform, value is written in the DTMF high group timer and the
DTMF low group timer, respectively. By the value n written in the
above-mentioned timer, respectively, the sine wave of the follow-
ing frequency can be generated.
f (XIN)/2
(n+1) 32
Set “0616” or more to the DTMF high group timer and the DTMF
low group timer. After reset release, “0616” is automatically set to
them.
Fig. 40 Waveform data of high group and low group
D-A data of low group waveform (1 period) for DTMF
D
-A
1
v
a
lu
e
(8
b
it
s
)*
0
5
101520
25
30
1416
2816
3C16
5016
6416
7816
016
0
5
101520
25
30
* This is the value set to D-A1 conversion register when the low-order 2 bits are “0”.
1416
2816
3C16
5016
6416
7816
016
Conversion time of low group ROMConversion time of high group ROM
D-A data of high group waveform (1 period) for DTMF
D
-A
1
v
a
lu
e
(8
b
it
s
)*
f =
(Hz)
The digital value for one period of high group and low group out-
put is shown in Figure 40.
DTMF output is automatically input to high-order 6 bits of the D-A1
conversion register as 6-bit D-A data. The low-order 2 bits of the
D-A1 conversion register are fixed to the value written in the D-A1
conversion register.
Moreover, only the sine wave of high group can be output by set-
ting “1” to the bit 4 of the D-A control register. By setting “1” to the
bit 5 of the D-A control register similarly, only the sine wave of low
group can be output. Writing to the DTMF high group timer and
the DTMF low group timer can also be changed to “writing to latch
and timer simultaneously” by setting “1” to the bit 6 of the D-A con-
trol register. “Writing to only latch” is set after reset release. If the
D-A1 conversion register is read when the DTMF function is se-
lected, the digital value of DTMF output can be read.