MXIC MX93032-M1 Datasheet

1
P/N:PM0689 REV. 1.0.3,DEC. 13, 1999
MX93032
1.0 GENERAL DESCRIPTIONS
• MX93032-M1 is an engine chip on which digital an­swering machine (DAM) with full duple x speaker phone is implemented. Besides, CAS tone detection capa­bility and FSK decoder for Caller-ID service has also been implemented as well.
• It provides speech processing / management mod­ules, including speech compression/decompression, silence management, telephone line signal process­ing, Macronix MX29F16A FLASH management, line
echo cancellation and acoustical echo cancellation, etc.
• The MX93032-M1 has built-in DSP mode and MCU mode. In DSP mode, users do not need external mi­croprocessors and can effectively reduce the overall system cost in DAM with full-duplex speakerphone system. In MCU mode, the MX93032-M1 is controlled by an MCU (micro controller) via a 8 bit parallel or serial interface.
2.0 FEATURES
• Switchable 4.8kbps/12.8kbps speech compression/ decompression algorithm for message recording/play­back.
• Minimum 15 or 40 minutes of recording time for one 16M bits MX29F16A FLASH based on 12.8K or 4.8K compression rate, respectively.
• Low (4.8kbps) or High (12.8kbps) compression rate with silence management technique for voice prompt making. V oice prompt can be stored in Flash memory .
• Support total 127 messages, maximum 7 OGMs and maximum 8 personal mailboxes.
• DTMF generation and detection with near-end echo cancellation.
• Provide single low crystal solution (FLL).
• Built-in DSP mode and MCU mode. In DSP mode,
user can mask the system code into the MX93032­M1. In MCU mode, user can control the MX93032-M1 via MCU (micro controller).
• Provide standard sample program written by 8051 assemble for customer development.
• Full duplex speakerphone with both acoustical echo canceller (AEC) and line echo canceller (LEC)
• Built-in CAS signal detector for monitoring the pres­ence CPE alerting signal in Calling Identity Delivery on Call W aiting.
• FSK decoder for Calling Identity Delivery on CID T ype I and CID Type II
• Caller ID Type II can be turned on under speaker phone mode
• Auto detecting MCU mode and DSP mode
APPLICATION NOTE [M1 VERSION]
2
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
3.0 BLOCK DIAGRAM
DSP MODE
MCU MODE
Dis play
MX93032 -M1
Commands
FLASH
Keyp ad
MX93002
DAA
Spea ker
Microphone
Telephone Line
Display
MX93032-M1
Commands
FLASH
MCU
Commands
Keypad
MX93002
DA A
Speaker
Microphone
Telephone L ine
3
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
4.0 PIN CONFIGURATIONS
4.1 MCU MODE
EAD9 EAD10 EAD11 EAD12 EAD13 EAD14 GND VDD EAD15 NMI\ INT1\/SCKL PHILO CDR0 PHRD\ CMCK CFS CDX0 PHWR\ PHDB0 PHDB1
ED11 ED12 ED13
VDD
GND ED14 ED15
X1\VDD
X2\GND
A19 A18 A17
IPT8 FCE2\ FCE1\
RST\ EROM SDEN\ SDATA
A16
A15
OPT9
OPT8
OPT7
OPT6
OPT5
OPT4
OPT3
OPT2
OPT1
OPT0
X32I
X32O
PACK\
CDR1
PDN
IPT5
IPT4
IPT3
P/S
IPT1
IPT0
VDD
GND
SI/PHDB7
SO/PHDB6
PHDB5
PHDB4
PHDB3
PHDB2
ED10
ED9
ED8
ED7
ED6
ED5
ED4
ED3
ED2
ED1
GND
VDD
ED0
HOLD\
CDX1
EDCE\
EPCE\
ERD\
EWR\
EAD0
EAD1
EAD2
EAD3
EAD4
EAD5
EAD6
FLLEN\
GND
EAD7
EAD8
1234567891011121314151617181920212223242526272829
30
50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31
8079787776757473727170696867666564636261605958575655545352
51
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
MX93032-M1
4
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
4.2 DSP MODE
EAD9 EAD10 EAD11 EAD12 EAD13 EAD14 GND VDD FAD15 NMI\ INT1\ A16 CDR0 A15 CMCK CFS CDX0 OPT16PHDB0 PHDB1
ED11 ED12 ED13
VDD
GND ED14 ED15
X1\VDD X2\GND
A19 A18 A17
IPT8 FCE2\ FCE1\
RST\ EROM SDEN\ SDATA
OPT11
OPT10
OPT9
OPT8
OPT7
OPT6
OPT5
OPT4
OPT3
OPT2
OPT1
OPT0
X32I
X32O
XF\
CDR1
IPT6
IPT5
IPT4
IPT3
IPT2
IPT1
IPT0
VDD
GND
BIO7
BIO6
BIO5
BIO4
BIO3
BIO2
ED10
ED9
ED8
ED7
ED6
ED5
ED4
ED3
ED2
ED1
GND
VDD
ED0
HOLD\
CDX1
EDCE\
EPCE\
ERD\
EWR\
EAD0
EAD1
EAD2
EAD3
EAD4
EAD5
EAD6
FLLEN\
GND
EAD7
EAD8
1234567891011121314151617181920212223242526272829
30
50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31
8079787776757473727170696867666564636261605958575655545352
51
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
MX93032-M1
5
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
5.0 PIN DESCRIPTIONS
POWER/CLOCK/CONTR OL PINS :
SYMBOL PIN TYPE PIN NUMBER DESCRIPTION
VD D 23, 43, 69, 84 5V power source GND 24, 44, 53, 70, 85 Ground X1/VDD 88 32.256MHz crystal input/Connect to VDD in single low X'tal mode X2/GND 8 9 32.256MHz crystal output/Connect to GND in single low X'tal mode RST\ IS 96 Po wer-on reset XF\ OA 14 External flag if UPMODX=1. This pin can be directly written by one
DSP instruction. Default inactive (5V output) HOLD\ IS 67 Hold DSP clock down and release bus EROM IS 97 Disable internal ROM, use external ROM only NMI\ IS 41 Non-maskable interrupt pin INT1\ IS 40 Interrupt pin X32O 13 32.768KHz crystal output X32I 12 32.768KHz crystal input FLLEN\ IS 54 1 : Dual X'tal mode
0 : Single low X'tal mode P/S IS 20 1:Parallel interf ace in MCU mode
0:Seriall interface in MCU mode PDN IS 1 6 0:POWER DOWN
CODEC INTERF ACE PINS :
SYMBOL PIN TYPE PIN NUMBER DESCRIPTION
CFS OA 3 5 Codec frame sync, 8KHz (9.6KHz). Output low in power down mode. CMCK OA 36 Codec master clock, 1.536MHz. Output low in power down mode. CDX0 OA 3 4 Codec data transmit CDR0 IS 38 Codec data receive CDX1 OA 66 Codec data transmit CDR1 IS 15 Codec data receive SDEN\ OB 9 8 Serial data enable(for MXIC codec family) SD ATA OB 99 Serial data transmit(for MXIC codec family)
IPT : Input port
SYMBOL PIN TYPE PIN NUMBER DESCRIPTION
IPT4-IPT5, IS 18-17,93 Input port IPT8 IPT0-IPT3 ISH 22-19 Input port with internal pull high resistor (R=30KW)
6
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
OPT : Output port
SYMBOL PIN TYPE PIN NUMBER DESCRIPTION
OPT0-OPT9 OB 2-11 Output to pin, all output values are registered and may be read back
when read by "IN" instruction.
OPT10-11 OB 1, 100 Output to pin, all output values are registered and may be read back
when read by "IN" instruction. Only available for DSP mode
MEMORY INTERF A CE PINS :
SYMBOL PIN TYPE PIN NUMBER DESCRIPTION
EAD0-EAD15 OA/Z 61-55, 52-45, 42 External memory address bus. ED0-ED15 IT/OA/ZR 68, 71-83, 86-87 External memory data bus. With soft latch feed back current is 250
u
A EDCE\ OA/Z 6 5 External data chip enable EPCE\ OA/Z 6 4 External program chip enable ERD\ OA/Z 63 SRAM/ROM/IO external read EWR\ OA/Z 62 SRAM/ROM/IO external write A15 0A 37 (DSP MODE) address bus for FLASH
1 (MCU MODE)
A16 OA 39 (DSP MODE) address bus for FLASH
100 (MCU MODE) A17 OA 9 2 address bus for FLASH A18 OA 9 1 Address bus for FLASH A19 OA 9 0 Address bus for FLASH FCE1\, FCE2\ OB 95, 94 FLASH chip enable
u
P Parallel Interface (MCU MODE) SYMBOL PIN TYPE PIN NUMBER DESCRIPTION
PHDB0-PHDB7 IS/OA/Z 25-32 Parallel data bus PHILO IS/OA/Z 39 Select High or low byte. 1: high byte , 0: low byte PHRD\ IS/OA/Z 37 HOST read enable PHWR\ IS/OA/Z 33 HOST write enable P A CK\ OA 14 Response is ready
uP Serial Interface (MCU MODE)
SYMBOL PIN TYPE PIN NUMBER DESCRIPTION
SCLK IS 40 Synchronous clock SI OA/Z 25 HOST serial data in SO IS/Z 2 6 HOST Serial data out
7
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
BIO: Bi-directional I/O (DSP MODE)
SYMBOL PIN TYPE PIN NUMBER DESCRIPTION
BIO7-BIO0 IT/OA 25-32 Input/output port when UPMODX = 1. Direction is controlled by
BIO15-BIO8 (see BIOR).
NOTE :
IT :TTL level input IS :CMOS level Schmidt trigger input (hysteresis : 2V~3V) ISH :CMOS level Schmidt trigger input with internal pull high resistor (~30KW) OA :8mA drive level output OB :16mA drive level output Z :high impedance state ZR :high impedance state with soft latch
MUL TIPLEX PINS:
PIN NUMBER PIN NAME DSP MODE PIN NAME MCU MODE
25~32 BIO(7:0) Input/output port PHDB(7:0) Host data bus 39 A16 Flash address PHILO High low data select 37 A15 Flash address PHRB\ Host read 33 OPT16 Output port PHWR\ Host write 14 XF\ External flag PACK\ Acknowledge to host 100 OPT11 Output port A16 Flash address 1 OPT10 Output port A15 Flash address
PIN NUMBER PIN NAME FLLEN\=1 (Dual X'tal) PIN NAME FLLEN\=0 (Single X'tal)
88 X1 32.256MHz crystal input VDD P o wer V DD 89 X2 32.256MHz crystal output G N D Po wer ground
NOTE FLLEN\: pin 54
8
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
6.0 FUNCTIONAL DESCRIPTIONS
HOST INTERF ACE (MCU MODE)
The command and response of the MX93032-M1 are made up by a 16-bit code. The protocol that one command sent and one response received must strictly be obeyed by HOST ; otherwise, dead lock will occur. Meanwhile, both parallel interface and serial interface are provided by the MX93032-M1.
8-bit parallel :
A 16-bit code can be accessed by HOST two times via setting PHILO pin. For writing operation, the HOST write the low byte of the command into the register of DSP, when PHILO is pulled to low , DSP does nothing but latches data. Following, PHILO is set to high and high byte of command is written into register , then DSP will perform the command issued by HOST and send out the response. DSP will pull PACK\ to be low to indicate that response is ready . HOST must read the low byte and then high byte sequentially. PACK\ will reset to high when the high byte is read b y HOST. All of the description given above will be illustrated by the following timing chart.
PHILO
PHDB 0 - 7
PHWR\
PACKB\
PHRD\
9
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
Synchronous Serial :
The protocol of synchronous serial interface will be interpreted by the timing chart given below .
16 PULSES
SCLK
SI
Tget
16 PULSES
SCLK
SO
Tput
0 R15 R14 R1 R0
C15
C14
C1 C0START
0
Note: SCLK : synchronous clock sent by HOST,
SI : HOST serial in, SO : HOST serial out, Tget and Tput should be larger than 200 uS
10
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
Decision Rules between MCU mode and DSP Mode:
1 . The contents located on 0xE000 and 0xE001 are 0x1234 and 0x5678, It will be considered as external DSP mode.
This configuration is used for developing customer’s control codes on MXIC’s MX93032-M1 IC with standard code.
2 . The contents located on 0x680E and 0x680F are 0x5678 and 0xA988, it will be considered as MCU mode. This is
the only one configuration for MCU mode under developing and mass production.
3 . Either the content located on 0x680E and not 0x5678 or that located on 0x680F are not 0xA988, it will be consid-
ered as DSP mode. The configuration is used for mass production f or DSP mode adopted.
4 . The decision priority depends on the items order. That is , the item labeled with smaller number has higher priority .
CONTROL CODE CONFIGURA TION (DSP MODE)
There are two configurations for customer development or production.
Configuration 1 :
In this configuration, the BIOS+ALGORITHM and control codes are all running in the external high-speed EPROMs or SRAMs. The MX93032-M1 pin 97 (EROM) m ust be set to high.
26K words
6K words
0000H
6800H
7FFFH
External high-speed EPROMs or SRAMs
BIOS+ALGORITHM
c
(address 0000H - 67
F
cont rol co de (address 6800H - 7F
This configuration is mainly used in the development stage and the access time of high-speed EPROMs or SRAMs must be less than 30ns.
11
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
Configuration 2 :
In this configuration, the BIOS+ALGORITHM code is running in the MX93032-M1 internal ROM and the control code running in the external low-speed EPROMs. The MX93032-M1 pin 97 (EROM) must be set to low .
26K words
0000H
6800H
7FFFH
DSP in t e rnal RO M
BIOS+ALGORITHM
c
(address 0000H - 67
F
Ext er n al l ow -sp e ed EPRO M s
0000H
E000H
FFFFH
ex t e rnal voi ce prom p data address 1000H
ex t e rnal voi ce prom p program address 80
0
1000H
max. 8K words
8000H
co ntrol code (address E000H - F
F
This configuration can be used at the development stage or f or production. The control code must start with two words 1234H and 5678H.
12
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
Configuration 3 :
In this configuration, the BIOS+ALGORITHM and control codes are all running in the MX93032-M1 internal ROM. The MX93032-M1 pin 97 (EROM) must be set to low .
26K words
6 K words
00 00H
6800H
7FFFH
DSP internal ROM
BIOS+ALGORITHM
c
(addres s 0000H - 67
F
cont rol co de (addres s 6800H - 7F
0000H
8000H
FFF FH
External low-speed EPROMs
exter nal voice promp data address 1000H
exter nal voice promp program address 80
0
1000H
This configuration is used for production. T o set the v oice prompt configuration, see the MX93032-M1 Mode 7.
13
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
MX93032-M1
The MX93032-M1 provides DSP embedded functional modules, including speech compression/decompression, telephone line signal processing, ROM voice prompt, Macronix MX29F16A Flash management, time keeping and full duplex speaker phone.
In MCU mode, the MX93032-M1 service is requested via a command call with 16 bits parameter sent by Micro controller, and answered 16 bits sent by DSP. In DSP mode, user's system control program can be masked-in the MX93032.
The MX93032-M1 supports 16 modes of service and responses useful to operational information about tim­ing, FLASH utilization, detected DTMF, etc.
Hereafter , HOST means "external micro-controller" f or MCU mode, and it means "system control program" for DSP mode.
FLASH MANAGEMENT
The MX93032-M1 uses MXIC's MX29F16A FLASH as storage device for message and/or voice prompt data. Up to two MX29F16A can be supported by the MX93032­M1 service command.
The MX29F16A is a 16M-bit FLASH memory organized as 1M word x 16. It includes 16 sectors (each sector is 64K words) and some of these sixteen sectors are bad. T o manage the MX29F16A, the MX93032-M1 will detect and then give up bad sectors and only utilize the good sectors. For the purpose of storage efficiency , each good sector is further divided into 32 blocks (each block con­tains 2K words). Each block can store speech data of about 6.8 seconds for 4.8kbps compression algorithm and 2.55 seconds for 12.8kbps compression algorithm.
MESSAGE RECORDING AND ST ORAGE
The MX93032-M1 provides high quality speech compres­sion techniques for recording and playback functions. It can permit over 15 minutes or 40 minutes of speech storage in each 16M bit of MXIC's MX29F16A FLASH device based on 12.8K or 4.8K compression rate, re­spectively.
The MX93032-M1 supports up to 127 variable length in-
coming and outgoing messages that are labeled as Msg ID 1 to 127. Although ICM could range from Msg 1 to 127, Msg IDs 127 to 121 are the only places for outgoing messages (OGM) storage so that the deletion and re­covery of old OGM are easier to maintain. The Msg IDs of incoming messages are labeled chronologically and rearranged automatically after recording or deleting. ICM with Msg ID 1 is the oldest recorded incoming message. Each message can be recorded by either 4.8K or 12.8K compression rate depending on system programmer’s assignment.
During recording, the MX93032-M1 also monitors the telephone line signal to detect the presence of DTMF, Call Progress Tone and Continuous T one and responses to the control program. The HOST can stop recording, and delete the last n*400ms/200ms from the memory using a Record command with assigned Tail Cut factor. The MX93032-M1 can generate a desired tone during recording voice message, which allows the application such as two-way recording. During recording, Record Pause function is provided.
The recording voice signal, received through the CODEC input, is transmitted back to the CODEC output by the MX93032-M1 service commands.
OUTGOING MESSAGE (OGM) RECORD
The MX93032-M1 provides flexible recording ways for outgoing message. The HOST can select to delete the old OGM before a new one is recorded or to abort the new OGM record without losing the old OGM.
NEW/OLD MESSAGE
For the control program to manipulate incoming mes­sages more handily , the MX93032-M1 keeps an internal record of the ICM to identify the new/old status of mes­sages.
Before playback, the status of ICM is considered as "new". All incoming messages that have been played could change their status to "old" by issuing Real Del bit on Delete command. After Real Del is issued, all new/ old ICM Msg IDs will be rearranged. The functions , Play New or Delete All Old messages , are provided by the MX93032-M1 in the command set.
14
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
MESSAGE PLAYBACK
Random access for playback of any new message or message with specified Msg ID is supported by the MX93032-M1. During playback, the MX93032-M1 also monitors the telephone line signals, and Play P ause func­tion is provided. The MX93032-M1 is ab le to fast-forw ard the playback of a recorded message, and the playing speed will be up to 33 %.
MESSAGE DELETION
The MX93032-M1 provides two ways to delete recorded ICMs. One is the two-step method - the combination of Del Mark and Real Del on Play and Delete command, and the other is the immediate method - Delete com­mand. The two-step method enab les the control program to handle the deletion more flexibly, while the immediate method deletes a specified message directly .
VOICE PR OMPT
For high-quality voice prompt playback, the MX93032­M1 utilizes the built-in speech decoder and external EPROM/ROM or FLASH to store the vocabulary. The MX93032-M1 also supports up to a 32K-word external EPROM/ROM that allows minimum 1.8 minutes of voice prompt storage. If voice prompt data is stored in FLASH, space of maximum 60K words (minimum 3.4 minutes) is permitted. The external (upper part) voice prompt is also allowed. But if FLASH voice prompt is enabled, the ex­ternal voice prompt will be disabled. The v ocabulary sup­ports up to 255 phrases. Giv en a phrase number in the V oice Prompt command from the HOST, the MX93032­M1 outputs the corresponding utterances to the Codec interface. The starting address of external voice prompt data could be located at data address 1000H, or pro­gram address 8000H.
During playback of the voice prompt, the MX93032-M1 monitors the telephone line signals.
PERSONAL MAIL
The MX93032-M1 supports up to 8 mailboxes that may be used for personal mail application. Each mailbox has its own ICM/MEMO Msg ID . The total Msg.ID is 127 for all of mailbox. Before recording, playing or deleting mes-
sages, the HOST should set the corresponding mailbox number first with Personal Mail command.
TIME KEEPING
There is a timer clock in the MX93032-M1. The HOST can issue Set Time and Get Time commands to get time services. The cloc k also supports system to stamp time to the recorded incoming message.
DTMF DETECTION
For remote control operation of the answering machine, the MX93032-M1 monitors the incoming telephone line signal to detect the presence of DTMF signal.
TONE GENERA TION
Up to double tones can be generated by the MX93032­M1. The levels and frequencies are programmable by the HOST .
CALL PROGRESS T ONE DETECTION
The MX93032-M1 supports the detection of call progress tone within the band of 300 - 640 Hz for the incoming telephone line signal. The tone detector is implemented with a bandpass filter. Indication of the presence of call progress tone is responded to the control program, and could be used to terminate recording.
NEAR END ECHO CANCELLA TION
The MX93032-M1 implements a near end echo cancel­ler in software to enhance the detection of DTMF and Call Progress Tone during Playback and Voice Prompt mode.
FSK Decoder
All of the services, Calling Number Delivery (CND), Call­ing Name Delivery (CNAM) and Calling Identity Delivery on Call Waiting (CIDCW), exploit the Frequency Shift Keying (FSK) method to tr ansmit the desired data from the SPCS to CPE. Depending on the specific service,
15
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
data transmission may occur with the CPE in an on­hook state or in an off-hook state. The specifications f or data transmission are given on SR-TSV-002474 which are classified into three layers, ph ysical lay er, data link er layer and message assemble layer. The MX93032-M1 only takes the responsibility to decode physical layer. For Data link layer (Check Sum) and Message Assemble layer (the meaningful data), system should take care. The performance test associated with physical layer based on SR-3004 will be given on Appendix A.
Note: CPE: Custom Premises Equipment
SPCS: Stored Program Controlled Switching System
CAS Detection
For Calling Identity Deliv ery on Call Waiting, the MX93032­M1 will monitor the presence of CPE alerting signal ac­cording to the specification given on Bellcore Special Report SR-TSV-002476.
VOX DETECTION (DIGITAL VOICE ACTIVATED RE­CORDING)
The speech detection is implemented on the MX93032­M1 to indicate whether the recording signal level is above the VOX threshold. If the control prog r am sets the VO X Record bit on Initial command, the recording of the speech would start when the voice activity is detected. The HOST has to set V O X threshold by issuing command Mode 13. Hexadecimal numbers f or V OX threshold are listed in T able
6.
SPEAKERPHONE
The speaker system provided by the MX93032-M1 con­tains two adaptive filters which are called as acoustical echo canceller (AEC) and line echo canceller (LEC). The purpose of AEC is used to cancel the acoustical echo between microphone and speaker which is caused by the sound reflection within space. A LEC cancels the echo resulted by the 4 to 2 wire telephone line connec­tion and impedance mismatches between customer pre­mises and the central office.
When speakerphone is activated, the algorithms associ­ated with AEC and LEC not only reduce the echo heard
on the both ends, but also prevent feedback instability (singing) from occurring. Moreove r, the MX93032-M1 pro­vides automatic gain control (AGC) for microphone chan­nel which helps the outgoing voice to keep at a desired level especially f or a moving talk er, and speak er volume control which allows the user to adjust the speaker vol­ume for his need. In addition, DTMF/Tone generations and call-progress tone detection are also provided.
16
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
DAA CONSIDERA TION FOR SPEAKER PHONE
It should be emphasized that DAA circuit pla ys an important role on improving the performance of speakerphone. This sub section gives some guides on how the D AA circuit may be "tuned". A diagram of D AA circuit must be given for simplifying the flowing interpretation.
Referring to figure given above, we have 4 analog amplifiers which are
1.Microphone Pre-Gain (MIC GAIN)
2.Line Out Gain (LINE DRV)
3.Line in Pre-Gain (LINE GAIN)
4.Speaker amplifier (SPK DRV)
Obviously, the 4 amplifiers together with the Line Out volume, Speaker Volume, receive attenuator , transmit attenu­ator, two volume compensators, acoustical coupling function Hac(f) and line coupling function Hlin(f) compose a closed loop system. The AEC and LEC will pro vide additional attenuation to the loop gain one they con verge .
To have a better performance on speaker phone, w e strongly recommend that analog gain of D AA must satisfy the following two criteria:
1.As the near end (Microphone side) speaks only , the lev el at Codec 2 should fulfill that, "codec 2 input must be less than Codec 2 output due to electrical echo". This meaning can be e xpressed as
LINE_DRV * Hlin(f) * LINE_GAIN < 1
2.As the far end (Line Side) speaks only, the level at Codec 1 should fulfill that, "Codec 1 output must be greater than Codec 1 input resulting from acoustical echo". This meaning can be expressed as
SPK_DRV * Hac(f) * MIC_GAIN < 1
By considering the criterion 1, it should pay more attention that minimum echo should be reached by improving the telephone line interface ( that is, reducing Hlin(f)) and not by reducing LINE_GAIN due to that the MX93032-M1 must obtain the high enough signal to process. For the same reason for criterion 2, the low echo should be achieved by good acoustical and mechanical decoupling rather than by decreasing MIC_GAIN.
The ultimate target for hardware design is to create one system which not only satisfies two criteria given above, but also provides a desirable volume to both speaker and telephone.
CODE C1
MX93032-M1
SPK DR V
MIC
GAIN
AC OU STIC COUP L ING
CODE C2
LINE
GAIN
LINE
DR V
4 - 2 WIRE COUPLING
LINE
COUPLING
17
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
QUER Y AND REPORT
The MX93032-M1 is capable of reporting to the control program about the query of the current status , such as the number of recorded messages, the number of new messages, the number of old messages, the available recording time of FLASH, the time of recorded message, and the FLASH good/bad check.
POWER DO WN
With the power of backup batteries, the MX93032-M1 is capable of keeping messages and data stored in the FLASH during power failure. In power down mode, the MX93032-M1 will run at a lower clock rate to reduce power consump­tion.
CRYST AL CONNECTION
The MX93032-M1 allows two ways of crystal connections :
1. Normal approach: use both high crystal (32.256 MHz) and low crystal (32768 Hz). T o enab le this mode, the FLLEN\ (54) pin must be connected to VDD. In this mode, the DSP high clock is gener ated from the high crystal directly, and the low crystal is mainly used in power down mode.
2. FLL (F requency-Lock ed-Loop) approach: use only low crystal (32768 Hz). To enable this mode, the FLLEN\ (54) pin and X2 (89) pin must be connected to ground and the X1 (88) pin to VDD . In this mode , the low crystal is to generate all the DSP system clocks and the high crystal can be saved to reduce the overall system cost.
18
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
7.0 OPERATIONAL DESCRIPTIONS
When the system is powered up, the RST\ pulse will make the MX93032-M1 to run programs from address 0. After check sum of internal ROM codes checked and some essential initialization of DSP are finished. In MCU mode, the MX93032-M1 is ready to poll the command issued by the HOST and indicate the HOST by setting PACK\ or SI\ to be low . The HOST should poll the indication sent b y the MX93032-M1 and read out the pseudo response first. F ollowing some necessary initialization given below must be set by HOST .
1. Set telephone data configuration
2. FLASH initialization depending on the FLASH good/bad check
3. Codec initialization if necessary
4. Setting V oice prompt configuration
5. Setting Silence threshold
6. Setting VO X level
8.0 MODES OF OPERATION
The MX93032-M1 supports 16 modes of operations, which are listed as follows :
Command Mode Mode Name
0 Idle Mode 1 Record 2 Play 3 Message Status 4 DTMF Generator 5 Line Monitor 6 Delete Message 7 Set Current Time/Voice Prompt/Silence Threshold 8 Get Current Time 9 Initial and Test Memory 10 Get Record Message Information 11 V oice Prompt 12 Speaker Phone 13 Personal Mail 14 T elephone Data 15 CAS Detection
19
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
IDLE :
This command is allowable to be issued within any other operation which is processing. As soon as the MX93032-M1 receives Idle command, the original operation will be stopped automatically .
RECORD
When Record command is received from the HOST, the MX93032-M1 performs speech compression, stores the message into FLASH, and monitors telephone line. If the V O X Record bit had been set to 1 on Initial and Test Memory command, recording of the speech will start upon the voice activity detected, else the MX93032-M1 starts recording immediately after Record command is received.
Clearing Marked Record (bit 8-10) to 0, if it is recording ICM. When recording OGM, the HOST should set Marked Record (bit 8-10) to desired number other than 0 as OGM ID .
Setting bit 5 (Annc Del) to 1 on Initial and Test Memor y command, the HOST can choose to delete the old OGM before a new one is recorded. If that bit is cleared to 0, the ne w OGM recording can be aborted without losing the old OGM by issuing Mark Fail (bit 11) on Record command.
During recording, the HOST can pause the recording by setting Pause (bit 7) to 1 and resume recording b y clearing that bit. Line monitoring will continue during pause.
The HOST can stop recording by setting Stop (bit 6) to 1, and delete the last n*400ms/200ms from the memory by using a Record command with assigned Tail Cut factor (bit 0-5).
While system memory is full, MX93032-M1 will stop message recording, show the status in response word (bit 7, Mfull).
During Record mode, the HOST can instruct the MX93032-M1 to generate a tone by issuing the DTMF Generator command. Setting Stop bit on DTMF Generator command will stop tone generating.
The MX93032-M1 will terminate Record mode when Stop bit on Record command is set to 1. Note: The MX93032-M1 supports up to 127 incoming and outgoing messages recording which are labeled as Msg ID
1-127. The Msg IDs of incoming message are labeled chronologically and rearranged automatically after record­ing. Although ICM could range from Msg ID 1 to 127, Msg IDs 127 to 121 are the only places for outgoing message storage. So, it is strongly suggested that the HOST should keep an upper bound of the number of ICM. (For example, upper bound of ICM = 127 - maximum OGM number that will be applied in user's specifica­tion.)
PLA Y
When Play command is received from the HOST, the MX93032-M1 performs message playback and line monitoring. The Msg ID (bit 0-6) is set by the HOST to specify which message to play. To playback new message (non-played one), set Play New (bit 10) to 1, then the MX93032-M1 will search to play the non-played message with specified Msg ID. During playing, the HOST can pause playback by setting Pause (bit 8) to 1 and resume playing from the same point by clearing that bit. Line monitoring will continue during pause. To fast playback a recorded message, set Fast Play (bit 11) to 1 and the playing speed will be up to 33%.
20
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
To delete and stop the playing message, the HOST can set Del Mark (bit 7) on Play command. After being tagged a "Del Mark" the marked message is not really deleted until a Real Del (Delete Message mode bit 8) is set. The Real Del command not only deletes the messages that have been tagged a "Del Mark" but also changes the status of those ICMs that have been pla yed to old. The ICMs that ha ve not been play ed before are regarded as "new". After Real Del is issued, all new/old ICM Msg IDs will be rearranged.
For the HOST, it is used to issue the Real Del after the user terminates the manner of playback. The response word contains the information of tones detected from the line, playing time spent (bit 8-15) and End of
play flag (bit 6), which indicates the end of the current message. When the Pla y End bit is 1, the MX93032-M1 stops playback.
The MX93032-M1 will terminate Play mode when Stop bit or Del Mark bit is set to 1 on Play command.
MESSAGE ST ATUS
In this mode, there are 6 request codes for the HOST to get message information;
1. Get the number of personal recorded messages (request code = 0)
2. Get the number of personal new messages (request code = 1)
3. Get the number of personal old messages (request code = 2)
4. Get the available recording time with unit of second (request code = 3)
5. Get the number of total recorded messages (request code = 8) The result will be reported in the response word.
DTMF GENERA TOR
In this mode, up to double tones can be generated by the MX93032-M1. The tone levels and frequencies are program­mable and controlled by the HOST. The DTMF Gener ator command defines the output gains in bit 0-3 for the 1st tone, and bit 4-7 for the 2nd tone. Each tone can be programmed from 3 dB (gain code 0000) to -25 dB (gain code 1110) with 2 dB resolution. For DSP mode, the frequencies are defined in the variables BUF1 and BUF2. For MCU mode, three steps of commands should be issued, first, DTMF sent and signal Gain should be set, following the corresponding two frequencies should be specified. The frequency code and its frequency represented is according to the f ollowing relationship :
frequency code = desired frequency (Hz) * 8.19 f(n) = 32767 * cos (2*pi*f_code*n/(8000*8.19)) where f_code is the input frequency code, n is sequence index and 8000 is the sampling rate
For single tone, Codec outputs the signal s(n) :
s(n) = gain * f(n)
For dual tone, Codec outputs the signal s(n) :
s(n) = 0.5 * (gain1*f1(n) + gain2*f2(n))
To generate a single tone, the gain code of the other tone should be set to 1111. The MX93032-M1 star ts tone generation only after receiving the start command.
The MX93032-M1 will terminate DTMF Generator when Stop bit is set to 1 on DTMF Generator command.
21
P/N:PM0689
REV. 1.0.3, DEC. 13, 1999
MX93032
LINE MONITOR
In this mode the MX93032-M1 monitors the telephone line signal for the detection of DTMF, Call Progress Tone, V O X, and/or Continuous Tone. The MX93032-M1 keeps monitoring the line until Stop bit is set to 1.
The MX93032-M1 returns to the HOST a response word that reflects the flag of Call Progress Tone, VO X, Continuous Tone and the index of DTMF signal that has been detected :
INDEX DTMF CODE INDEX DTMF CODE CAS DTMF CAS DTMF 0 0000 No T one 0 1001 9 0 0001 1 0 1010 * 0 0010 2 0 1011 0 0 0011 3 0 1100 # 0 0100 4 0 1101 A 0 0101 5 0 1110 B 0 0110 6 0 1111 C 0 0111 7 1 1111 D 0 1000 8 1 0000 CAS TONE
The MX93032-M1 will terminate Line Monitor mode when Stop bit is set to 1 on Line Monitor command.
DELETE MESSAGE
This mode provides an immediate way to delete messages as follows;
1. To delete a specified message, set its Msg ID in bit 0-6 and clear bit 11, 10 and 7 to zero.
2. T o delete a specified ne w ICM, set Del New Msg (bit 10) to 1, give the New Msg ID in bit 0-6, clear bit 11, 7 to z ero.
3. To delete all old ICM, set Del All Old (bit 7) to 1 and clear bit 11, 10 to zero. (Bit 0-6 is ignored)
4. T o erase the "Del Mark" from a specified ICM ("Del Mark" is a tag set on Play command f or deletion), set Del Mark Clr (bit 11) to 1, give the Msg ID in bit 0-6 and clear bit 7 to zero .
SET CURRENT TIME/V OICE PROMPT/SILENCE THRESHOLD
In this mode the HOST can set the current time to the timer clock of the MX93032-M1. The time inf ormation includes second, minute, hour and week. The timer in the MX93032-M1 will be used to stamp time and data to the recorded message.
1. To set second, put the data in bit 0-7 and use request code (bit 8-11) 0000.
2. To set minute, put the data in bit 0-7 and use request code (bit 8-11) 0001.
3. To set hour, put the data in bit 0-7 and use request code (bit 8-11) 0010.
4. To set week, put the data in bit 0-7 and use request code (bit 8-11) 0011.
5. To set voice prompt configuration, put the selection data in bit 0-1 and use request code (bit 8-11) 0110.
6. To set silence threshold level, put the data in bit 0-3 and use request code (bit 8-11) 0111.
7. T o set output port OPT0-7, put data in bit0-7(Request Code=0100)
8. T o set codec MX93002 registers in bit10-8 and put data in bit0-7(Request Code=1xxx)
9. To write link index and data in bit0-7(Request Code=0101), refer to mode10 to specify Msg. ID .
Loading...
+ 48 hidden pages