• Two test inputs, one of which also serves as the external
interrupt input
• DTMF, modem, musical tone generator
• Reference for supply and temperature-independent
tone output
• Filtering for low output distortion (CEPT compatible)
• Melody output for ringer application
• Power-on-reset
• Stop and Idle modes
• Supply voltage: 1.8 to 6 V (DTMF tone output and
EEPROM erase/write from 2.5 V)
PCD3359A
• Clock frequency: 1 to 16 MHz (3.58 MHz for DTMF
suggested)
• Operating temperature: −25 to +70 °C
• Manufactured in silicon gate CMOS process.
2GENERAL DESCRIPTION
This data sheet details the specific properties of the
PCD3359A. The shared properties of the PCD33xxA
family of microcontrollers are described in the
family”
with this publication.
The PCD3359A is a low voltage microcontroller oriented
towards telephony applications. It includes an on-chip
generator for dual tone multifrequency (DTMF) generator,
modem and musical tones. In addition to dialling,
generated frequencies can be made available as square
waves (P1.7/MDY) for melody generation, providing ringer
operation (in which case the TONE output is disabled).
A wake-up function via Port 0 interrupt facilitates keyboard
interfacing. The PCD3359A can be emulated with the OTP
microcontroller PCD3756A.
The device also incorporates 128 bytes of Electrically
Erasable Programmable Read-Only Memory (EEPROM).
The EEPROM can be used for storing telephone numbers,
particularly for implementing redial functions.
The instruction set is similar to that of the MAB8048 and is
a sub-set of that listed in the
sheet.
1. Please refer to the Order Entry Form (OEF) for this device for the full type number to use when ordering. This type
number will also specify the required program and the ROM mask options.
1998 May 113
(1)
NAMEDESCRIPTIONVERSION
PACKAGE
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
8-bit microcontroller with DTMF
generator and 128 bytes EEPROM
5PINNING INFORMATION
5.1Pinning
handbook, halfpage
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
T1
XTAL1
XTAL2
RESET
CE/T0
P1.0
P1.1
1
2
3
4
5
6
7
PCD3359A
8
9
10
11
12
13
MBK809
28
27
26
25
24
23
22
21
20
19
18
17
16
1514
P0.0
P2.3
P2.2
P2.1
V
DD
TONE
V
SS
P2.0
P1.7/MDY
P1.6
P1.5
P1.4
P1.3
P1.2
PCD3359A
handbook, full pagewidth
Fig.2 Pin configuration (SOT117-1 and SOT136-1).
P2.2
P2.3
P0.0
n.c.
P0.1
P0.2
P0.3
P0.4
31
n.c.
P0.5
P0.6
P0.7
T1
XTAL1
XTAL2
RESET
32
1
2
3
4
5
6
7
8
9
CE/T0
10
P1.0
30
29
PCD3359A
11
12
P1.1
P1.2
28
13
n.c.
27
14
P1.3
26
15
P1.4
25
16
P1.5
24
23
22
21
20
19
18
17
MBK810
P2.1
V
DD
TONE
V
SS
P2.0
P1.7/MDY
P1.6
n.c.
Fig.3 Pin configuration (SOT358-1).
1998 May 115
Philips SemiconductorsProduct specification
8-bit microcontroller with DTMF
PCD3359A
generator and 128 bytes EEPROM
5.2Pin descriptions
Table 1 SOT117-1 and SOT136-1 packages (for information on parallel I/O ports, see Chapter 14)
SYMBOLPINTYPEDESCRIPTION
P0.1 to P0.71 to 7I/O7 bits of Port 0: 8-bit quasi-bidirectional I/O port; or wake-up interrupts
T18ITest 1 or count input of 8-bit Timer/event counter 1
XTAL19Icrystal oscillator or external clock input
XTAL210Ocrystal oscillator output
RESET11Ireset input
CE/
T012IChip Enable or Test 0
P1.0 to P1.613 to 19I/O7 bits of Port 1: 8-bit quasi-bidirectional I/O port
P1.7/MDY20I/O1 bit of Port 1: 8-bit quasi-bidirectional I/O port; or melody output
P2.021I/O1 bit of Port 2: 4-bit quasi-bidirectional I/O port
V
SS
TONE23ODTMF, modem, musical tone output
V
DD
P2.1 to P2.325 to 27I/O3 bits of Port 2: 4-bit quasi-bidirectional I/O port
P0.028I/O1 bit of Port 0: 8-bit quasi-bidirectional I/O port; or wake-up interrupts
22Pground
24Ppositive supply voltage
Table 2 SOT358-1 package(for information on parallel I/O ports, see Chapter14)
SYMBOLPINTYPEDESCRIPTION
n.c.1, 13,
17, 28
P0.5 to P0.72 to 4I/O3 bits of Port 0: 8-bit quasi-bidirectional I/O port; or wake-up interrupts
T15ITest 1 or count input of 8-bit Timer/event counter 1
XTAL16Icrystal oscillator or external clock input
XTAL27Ocrystal oscillator output
RESET8Ireset input
CE/
T09IChip Enable or Test 0
P1.0 to P1.610 to 12
14 to 16
18
P1.7/MDY19I/O1 bit of Port 1: 8-bit quasi-bidirectional I/O port; or melody output
P2.0 to P2.320,
24 to 26
V
SS
TONE22ODTMF output
V
DD
P0.0 to P0.427,
21Pground
23Ppositive supply voltage
29 to 32
−not connected
I/O7 bits of Port 1: 8-bit quasi-bidirectional I/O port
I/O4 bits of Port 2: 4-bit quasi-bidirectional I/O port
I/O5 bits of Port 0: 8-bit quasi-bidirectional I/O port; or wake-up interrupts
1998 May 116
Philips SemiconductorsProduct specification
8-bit microcontroller with DTMF
PCD3359A
generator and 128 bytes EEPROM
6FREQUENCY GENERATOR
A versatile frequency generator section is provided (see
Fig.4). For normal operation, use a 3.58 MHz quartz
crystal or PXE resonator. The frequency generator
includes precision circuitry for dual tone multifrequency
(DTMF) signals, which is typically used for tone dialling
telephone sets.Their frequencies are provided in purely
sinusoidal form on the TONE output or as square waves
on the P1.7/MDY output.
6.1Frequency generator derivative registers
6.1.1H
Table 3 gives the addresses, symbols and access types of the High Group Frequency (HGF) and Low Group Frequency
(LGF) Registers.
Table 3Hexadecimal addresses,symbols, access types and bit symbols of the frequency registers
REGISTER
ADDRESS
IGH AND LOW GROUP FREQUENCY REGISTERS
REGISTER
SYMBOL
11HHGFWH7H6H5H4H3H2H1H0
12HLGFWL7L6L5L4L3L2L1L0
ACCESS
TYPE
7 6 5 4 3 2 1 0
The TONE output can alternatively issue twelve modem
frequencies for data rates between 300 and 1200 bits/s.
In addition to DTMF and modem frequencies, two octaves
of musical scale in steps of semitones are available.
In case no tones are generated, or the melody function is
used, the TONE output is in 3-state mode.
BIT SYMBOLS
6.1.2MELODY AND PORT INTERRUPT CONTROL REGISTER (MDYCON)
The Melody and Port Interrupt Control Register has two functions: bit 0 defines the behaviour of the melody output; bits
4 to 7 individually enable/disable specific pairs of Port 0 interrupts. MDYCON is a R/W register.
Table 4Melody and Port Interrupt Control Register (address 13H)
7 6 5 4 3 2 1 0
EPI3EPI2EPI1EPI0000EMO
Table 5Description of MDYCON bits
BITSYMBOLDESCRIPTION
7 to 4EPI3 to EPI0 Enable Port 0 interrupts. Bits 7 to 4 individually enable/disable specific pairs of Port 0
interrupts; see Table 6 and Section 8.2 for details.
3to1−These bits are set to a logic 0.
0EMOEnable Melody Output. If bit EMO = 0, then P1.7/MDY is a standard port line and the
TONE output is enabled. If bit EMO = 1, then P1.7/MDY is the melody output and the
TONE output is disabled (3-state). EMO = 1 does not inhibit the port instructions for
P1.7/MDY. Therefore, the state of both port line and flip-flop may be read in and the port
flip-flop may be written by port instructions. However, the port flip-flop of P1.7/MDY
must remain set to avoid conflicts between melody and port outputs. When the HGF
contents are zero while EMO = 1, P1.7/MDY is in the logic HIGH state.
1998 May 117
Philips SemiconductorsProduct specification
8-bit microcontroller with DTMF
PCD3359A
generator and 128 bytes EEPROM
Table 6Port0 Interrupts control bits
BITSTATE
P0.0 AND P0.1P0.2 AND P0.3P0.4 AND P0.5P0.6 AND P0.7
EPI01enabled−−−
0disabled−−−
EPI01−enabled−−
0−disabled−−
EPI01−−enabled−
0−−disabled−
EPI01−−−enabled
0−−−disabled
handbook, full pagewidth
8
MELODY AND PORT
INTERRUPT
CONTROL REGISTER
INTERRUPTS
square wave
PORT/MELODY
OUTPUT LOGIC
P1.7/
MDY
8
8
INTERNAL BUS
8
Fig.4 Block diagram of the frequency generator and melody output (P1.7/MDY) section.
HGF REGISTER
LGF REGISTER
DIGITAL
SINE WAVE
SYNTHESIZER
SWITCHED
CAPACITOR
BANDGAP
VOLTAGE
REFERENCE
DIGITAL
SINE WAVE
SYNTHESIZER
DAC
DAC
SWITCHED
CAPACITOR
LOW-PASS
FILTER
RC LOW-PASS
FILTER/OUTPUT
LOGIC
MGB823
TONE
1998 May 118
Philips SemiconductorsProduct specification
-
8-bit microcontroller with DTMF
generator and 128 bytes EEPROM
6.2Melody output (P1.7/MDY)
The melody output (P1.7/MDY) is very useful for
generating musical notes when a purely sinusoidal signal
is not required, such as for ringer applications.
If bit EMO = 1 in the Melody and Port Interrupt Control
Register the TONE output is disabled (3-state) and a
square wave with the frequency defined by the HGF
contents is output on line P1.7/MDY. The square wave
(duty cycle =12⁄23or 52%) will include the attenuated
harmonics of the base frequency, which is defined by the
contents of the HGF register (Table 3). However, even
higher frequency notes may be produced since the
low-pass filtering on the TONE output is not applied to the
P1.7/MDY output. This results in the minimum decimal
value x in the HGF register (see equation in Section 6.3)
being 2 for the P1.7/MDY output, rather than 60 for the
TONE output. A sinusoidal TONE output is produced at the
same time as the melody square wave, but due to the
filtering, the higher frequency sine waves with x < 60 will
not appear at the TONE output.
Since the melody output is shared with P1.7, the port
flip-flop of P1.7 has to be set HIGH before using the
melody output. This is to avoid conflicts between melody
and port outputs. The melody output drive depends on the
configuration of port P1.7/MDY; see Chapter 14, Table 25.
6.3Frequency registers
The two frequency registers HGF and LGF define two
frequencies. From these, the digital sine synthesizers
PCD3359A
together with the Digital-to-Analog Converters (DACs)
construct two sine waves. Their amplitudes are precisely
scaled according to the bandgap voltage reference. This
ensures tone output levels independent of supply voltage
and temperature.
The amplitude of the Low Group Frequency sine wave is
attenuated by 2 dB compared to the amplitude of the High
Group Frequency sine wave. The two sine waves are
summed and then filtered by an on-chip switched
capacitor and RC low-pass filters. These guarantee that all
DTMF tones generated fulfil the CEPT recommendations
with respect to amplitude, frequency deviation, total
harmonic distortion and suppression of unwanted
frequency components.
The value 00H in a frequency register stops the
corresponding digital sine synthesizer. If both frequency
registers contain 00H, the whole frequency generator is
shut off, resulting in lower power consumption.
The frequency of the sine wave generated ‘f’ is dependent
on the crystal frequency ‘f
in the frequency registers (HGF and LGF). The variables
are related by the equation:
f
=
f
The frequency limitation given by x ≥ 60 is due to the
low-pass filters which would attenuate higher frequency
sine waves.
xtal
-------------------------------23 x2+()[]
; where 60 ≤ x ≤ 255.
’ and the decimal value ‘x’ held
xtal
1998 May 119
Philips SemiconductorsProduct specification
8-bit microcontroller with DTMF
generator and 128 bytes EEPROM
6.4DTMF frequencies
Assuming an oscillator frequency f
DTMF standard frequencies can be implemented as
shown in Table 7.
The relationships between telephone keyboard symbols,
DTMF frequency pairs and the frequency register contents
are given in Table 8.
Again assuming an oscillator frequency f
the standard modem frequencies can be implemented as
in Table 9. It is suggested to define the frequency by the
HGF register while the LGF register contains 00H,
disabling Low Group Frequency generation.
Table 9Standard modem frequencies and their
implementation
HGF
FREQUENCY (Hz) DEVIATION
VALUE
(HEX)
9D980
821180
8F1070
791270
801200
452200
761300
482100
5C1650
521850
4B2025
442225
MODEMGENERATED(%)(Hz)
(1)
(1)
(2)
(2)
(3)
(3)
(4)
(4)
(1)
(1)
(2)
(2)
978.82−0.12−1.18
1179.03−0.08−0.97
1073.330.313.33
1265.30−0.37−4.70
1197.17−0.24−2.83
2192.01−0.36−7.99
1296.94−0.24−3.06
2103.140.153.14
1655.660.345.66
1852.770.152.77
2021.20−0.19−3.80
2223.32−0.08−1.68
Notes
1. Standard is V.21.
2. Standard is Bell 103.
3. Standard is Bell 202.
4. Standard is V.23.
= 3.58 MHz,
xtal
1998 May 1110
Loading...
+ 22 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.