CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Telephone Function)

The row group and column group dividers can be operated individually. The software can select one of them to output a single tone signal as well as a dual tone signal output. Use the SINR (FF16H•D1) and SINC (FF16H•D0) registers for this control.

Table 4.14.4.3

Tone output selection

Control register

 

Tone output

SINR

SINC

 

 

 

0

0

 

DC level: 1/2 (VDD–VSS)

0

1

 

COL frequency

1

0

 

ROW frequency

1

1

 

Dual tone output

At initial reset, dual tone output is set.

The divided frequencies are converted into a tone signal through the sine-wave ROM and the D/A converter, then the tone signal is output from the TONE terminal.

The items to set before outputting a tone signal may be summarized as follows:

1.

Setting tone mode ... It is not necessary if the mode has not be changed after an initial reset.

2.

Selecting a tone output method (single tone/dual tone)

... SINR and SINC are used.

3.

Turning the OSC3 oscillation circuit ON (OSCC = "1")

... Note

Note: The OSC3 oscillation needs at least 5 msec until it is stabilized after the OSC3 oscillation circuit is turned ON. Therefore, dialing operations must be started after taking an interval of at least 5 msec from activation of the OSC3 oscillation circuit. Since the oscillation stabilization time varies depending on the external oscillator's characteristic and operating conditions, allow ample margin for the interval.

Further the OSC3 oscillation circuit increases current consumption, so it should be turned OFF when the DTMF generator is not used or the CPU does not need high-speed processing.

The following explains how to output the tone signal and the circuit operation.

First, write "1" to the HSON register (FF18H•D3) so the dialer is in off-hook status. As a result, the DP terminal goes High (VDD) level.

Next, write the ROW/COL data of the pushbutton to be transmitted to the TCD3–TCD0 register (FF17H). Table 4.14.4.4 shows the relationship of write data and tone frequencies.

Table 4.14.4.4 Tone frequency selection

 

TCD code

 

Tone frequency

Key

D3

D2

D1

D0

symbol

0

 

0

0

 

0

(ROW1, COL4)

"A"

0

 

0

0

 

1

(ROW1, COL1)

"1"

0

 

0

1

 

0

(ROW1, COL2)

"2"

0

 

0

1

 

1

(ROW1, COL3)

"3"

0

 

1

0

 

0

(ROW2, COL1)

"4"

0

 

1

0

 

1

(ROW2, COL2)

"5"

0

 

1

1

 

0

(ROW2, COL3)

"6"

0

 

1

1

 

1

(ROW3, COL1)

"7"

 

TCD code

 

Tone frequency

Key

D3

D2

D1

D0

symbol

1

 

0

0

 

0

(ROW3, COL2)

"8"

1

 

0

0

 

1

(ROW3, COL3)

"9"

1

 

0

1

 

0

(ROW4, COL2)

"0"

1

 

0

1

 

1

(ROW4, COL3)

"#"

1

 

1

0

 

0

(ROW4, COL1)

"*"

1

 

1

0

 

1

(ROW2, COL4)

"B"

1

 

1

1

 

0

(ROW4, COL4)

"D"

1

 

1

1

 

1

(ROW3, COL4)

"C"

Writing data to this register triggers the start of the tone output. When single tone output is selected, either the ROW frequency or COL frequency corresponding to the written data is output as a tone signal. When dual tone output is selected, the specified ROW and COL frequencies are output after they are composed.

Figure 4.14.4.2 shows a timing chart for tone output.

S1C63558 TECHNICAL MANUAL

EPSON

117