![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
D6571E Data Sheet A D6571E EASYTADTM Chip for an All-Digital Telephone Answering Machine with Flash Memory Interface DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 1 D6571E Data Sheet TABLE OF CONTENTS: GENERAL DESCRIPTION....................................................................................................................................................................5 FEATURES ........................................................................................................................................................................................... 5 CHIP CONFIGURATION.................................................................................................................................................................... 6 ADDITIONAL SYSTEM COMPONENTS (supplied by the customer according to DSP Group's specifications).............. 6 PIN DESCRIPTIONS............................................................................................................................................................................ 7 FUNCTIONAL DESCRIPTION............................................................................................................................................................9 HOST Interface..................................................................................................................................................................................... 9 Voice Message Recording Incoming and Outgoing Messages ................................................................................................... 9 Digital Voice-Activated Recording (VOX)....................................................................................................................................... 9 Automatic Gain Control...................................................................................................................................................................... 9 Message Playback............................................................................................................................................................................... 9 Offset and FLEXISPEECHTM .............................................................................................................................................................. 9 Message Deletion.............................................................................................................................................................................. 10 Message Time Stamp ........................................................................................................................................................................ 10 Volume Control................................................................................................................................................................................... 10 Tone Generation................................................................................................................................................................................. 10 DTMF Detection................................................................................................................................................................................ 10 Call Progress Tone (CPT) Detection............................................................................................................................................... 10 Caller Identification (CID and CWCID) .......................................................................................................................................... 10 Caller Alert Signal (CAS) Detection................................................................................................................................................ 10 Sensitivity Control............................................................................................................................................................................. 10 Speed Dial Telephone Number Storage.......................................................................................................................................... 10 Non-Erasable Storage........................................................................................................................................................................ 10 General Purpose Storage................................................................................................................................................................... 10 Self Test and Initialization ................................................................................................................................................................ 11 Reports ................................................................................................................................................................................................ 11 Voice Prompt Generation.................................................................................................................................................................. 11 Near End Echo Cancellation............................................................................................................................................................. 11 Full Duplex Digital SpeakerPhone ................................................................................................................................................... 11 Power Down Mode ............................................................................................................................................................................ 11 OPERATIONAL DESCRIPTION .......................................................................................................................................................12 INITIAL PROCEDURE...................................................................................................................................................................... 12 MODES OF OPERATION................................................................................................................................................................. 12 DESCRIPTION OF MODES OF OPERATION............................................................................................................................... 13 Idle................................................................................................................................................................................................... 13 Record ............................................................................................................................................................................................. 13 Playback.......................................................................................................................................................................................... 14 Read Memory Status.................................................................................................................................................................... 15 Telephone Number Storage......................................................................................................................................................... 16 Non-Erasable Storage................................................................................................................................................................... 16 General Purpose Storage (GPS)................................................................................................................................................... 16 Tone Generation Mode ................................................................................................................................................................ 16 New Tone Definition..................................................................................................................................................................... 17 FSK Modem................................................................................................................................................................................... 17 Line Monitoring Mode ................................................................................................................................................................. 17 CID Submode................................................................................................................................................................................. 18 Delete Message ............................................................................................................................................................................. 18 Set/Modify Time Stamp ................................................................................................................................................................ 19 Get Time Stamp .............................................................................................................................................................................. 19 Get Available Record Time .......................................................................................................................................................... 19 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 2 D6571E Data Sheet Self Test and Initialization............................................................................................................................................................ 19 Voice Prompt Generation.............................................................................................................................................................. 22 Program Voice Prompt .................................................................................................................................................................. 23 Full Duplex SpeakerPhone Operation......................................................................................................................................... 24 Re-Compression Mode................................................................................................................................................................. 27 HOST INTERFACE PERFORMANCE..............................................................................................................................................28 Power Down Operation.........................................................................................................................................................................30 COMMAND SET ...................................................................................................................................................................................29 IDLE ................................................................................................................................................................................................ 29 RECORD......................................................................................................................................................................................... 29 PLAYBACK................................................................................................................................................................................... 33 READ MEMORY STATUS......................................................................................................................................................... 35 WRITE TELEPHONE NUMBER................................................................................................................................................. 37 READ TELEPHONE NUMBER................................................................................................................................................... 40 TONE GENERATION................................................................................................................................................................... 42 NEW TONE INITIALIZATION.................................................................................................................................................. 44 FSK Modem.................................................................................................................................................................................... 45 7. LINE MONITOR............................................................................................................................................................................ 51 8. DELETE MESSAGE...................................................................................................................................................................... 52 9. SET/MODIFY TIME STAMP ..................................................................................................................................................... 53 10. GET TIME STAMP..................................................................................................................................................................... 53 11. GET AVAILABLE RECORD TIME ........................................................................................................................................... 55 12. SELF TEST AND INITIALIZATION....................................................................................................................................... 55 13. VOICE PROMPT PLAYBACK.................................................................................................................................................. 71 PROGRAM VOICE PROMPT.................................................................................................................................................... 72 14. SPEAKER PHONE...................................................................................................................................................................... 74 16. Re-Compress Message .............................................................................................................................................................. 82 FUNCTIONAL BLOCKS .....................................................................................................................................................................84 DSP CORE........................................................................................................................................................................................... 84 ADDRESS MUX ................................................................................................................................................................................ 84 FLASH MEMORY INTERFACE...................................................................................................................................................... 84 CLOCK GENERATOR....................................................................................................................................................................... 84 -law/A-law ENCODER..................................................................................................................................................................... 84 CODEC INTERFACE......................................................................................................................................................................... 84 I/O ADDRESS DECODER................................................................................................................................................................. 84 HOST D6571E COMMUNICATION INTERFACE ...................................................................................................................... 83 DATA TRANSFER MODES ................................................................................................................................................................86 FUNCTIONAL DESCRIPTION........................................................................................................................................................ 86 OPERATIONAL DESCRIPTION ..................................................................................................................................................... 86 COMMAND SET FOR DATA TRANSFER MODES ......................................................................................................................92 1. DATA PUMP FROM CODEC TO HOST (Record from Codec to Host)............................................................................... 92 2. DATA PUMP FROM HOST TO CODEC (Playback from Host to Codec)............................................................................ 95 3. DATA STORAGE (From Host to Flash).................................................................................................................................... 98 4. DATA RETRIEVAL (From Flash to Host)............................................................................................................................... 100 5. DATA COMPRESSION (From Host to Host)......................................................................................................................... 102 6. DATA DECOMPRESSION (From Host to Host).................................................................................................................... 104 APPLICATION HINTS ..................................................................................................................................................................... 106 ELECTRICAL CHARACTERISTICS ............................................................................................................................................. 106 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 3 0. 1. 2. 3. 4. 5. 6. D6571E Data Sheet 5 V OPERATION.............................................................................................................................................................................. 106 3.3 V OPERATION........................................................................................................................................................................... 107 DETECTORS CHARACTERISTICS .............................................................................................................................................. 109 DTMF & VOX CHARACTERISTICS........................................................................................................................................... 109 Call Progress Tone Detector Performance................................................................................................................................... 109 Caller ID FSK Demodulator Performance ..................................................................................................................................... 109 Caller Alert Signal / Idle State Tone Alert Signal........................................................................................................................ 110 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 4 D6571E Data Sheet A GENERAL DESCRIPTION D6571E EASYTADTM Chip for an All-Digital Telephone Answering Machine with Flash Memory Interface The D6571E chip is a digital speech/signal processing subsystem that implements all functions of TRUESPEECH(R) speech compression and voice prompts, telephone line signal processing, flash memory management and True FULL Duplex SpeakerPhoneTM for an all digital answering machine. The D6571E is fully controlled by the system HOST through a simple interface protocol. The HOST processor provides activation and control of all system functions such as speech recording and playback, DTMF and call progress tone detection, DTMF and tone generation, and voice prompting. The fully digital solution has no moving parts, yielding high reliability. The chip's programmability enables a full range of answering, recording and playback features for the end user. The D6571E is a single-chip, digital signal processor that includes all of the necessary circuitry to interface with an external HOST, flash memory, and codec. FEATURES * * * * * * * Superior quality TRUESPEECH(R) Triple Rate Codertm allowing selectable 11, 15 or 25 minutes of recording time per each 4 Mbit Flash Memory PCM Recording Flexible storage of incoming messages (ICM), outgoing messages (OGM). Supports multiple OGMs and multiple mailboxes. TRUESPEECH(R), natural-sound voice prompting, for Day/Time stamp and voice instructions FLEXISPEECHTM variable speed, natural sound playback (50% - 200%) DTMF generation and detection with near-end echo cancellation for superior performance Extended DTMF detection (A, B, C, D) * * * * * * * * * * Automatic Gain Control True FULL Duplex SpeakerPhoneTM with both acoustical and near-end echo cancellation Caller ID and Call Waiting CID demodulation (both Bell 202 and V.23) FSK modem for CID and -5 support Supports 4 Mb or 16 Mb Flash Memory Devices Supports Time Stamp (message tag) modification Programmable DTMF, CPT, VOX, CAS, and FSK Detectors Sensitivity Digital Volume Control -law and A-law codec support, selectable Master and Slave mode, selectable sampling rate. General Purpose (CID) and Non-Erasable Storages Voice Prompt ROM ** MIC SPEAKER SpeakerPhone Codec TEL LINE Codec I/O Codec D6571E DSP Speech Processor 16 Mbit Flash OR Voice Prompt * HOST Controlle r 4 Mbit Flash 4 . . 16 Figure 1. D6571E Block Diagram * Dashed lines indicate optional implementation ** Only supported with single 4Mbit Flash or no All specifications are subject to change without prior notice DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 5 D6571E Data Sheet CHIP CONFIGURATION * D6571E-11 Digital Telephone Answering Device (TAD) processor (80-pin PQFP) - 1 each ADDITIONAL SYSTEM COMPONENTS (supplied by the customer according to DSP Group's specifications) * D0000-29 - -law or A-law 8 bit serial codec - 1 , 2 - for SpeakerPhone One of the following: * * * Samsung KM29N040 (44-pin TSOP II) - 4 Mb , up to two devices per system (may have up to 3 bad blocks) Samsung KM29N1600 (44-pin TSOP II) - 16 Mb, single device (may have up to 10 bad blocks) Toshiba TC58A040F - 4 Mb, up to two devices per system (may have up to 10 bad blocks) * Optionally, the system will support up to 64K EPROM/ROM (access time 300 ms or less) for Voice Prompt storage. This option is only available in systems with a single 4Mbit flash memory device or no flash in the system. CE2 /VPCS ADDR13 ADDR11 ADDR12 ADDR10 CE1/S/P DSPCS ADDR7 66 ADDR9 80 79 78 77 76 75 74 73 72 71 70 69 68 67 ADDR8 CLE ALE 65 ADDR6 GND CE0 VCC ADDR15/ CE3 ADDR14 ACK HI/LO HSTRD HSTWR HSTDB7 HSTDB6 HSTDB5 HSTDB4 HSTDB3 HSTDB2 HSTDB1 HSTDB0 GND CLKOUT XOUT XIN VCC SCLK RESET PDN FSYNC DX1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 64 63 62 61 60 59 58 57 56 ADDR5 ADDR4 ADDR3 ADDR2 ADDR1 ADDR0 MDB15 MDB14 NC NC GND VCC MDB13 MDB12 MDB11 MDB10 MDB9 MDB8 MDB7 MDB6 MDB5 MDB4 MDB3 MDB2 Top View D6571E-11 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 MDB0 GPIO5 GPIO1 FLWR GPIO4 GPIO3 GPIO2 GPIO0 FLRD Figure 2. D6571E-11Pin Diagram DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 MDB1 GND VCC DX0 DR1 DR0 NC 40 6 D6571E Data Sheet PIN DESCRIPTIONS D6571E-11 (DSP) PIN Name HSTDB0 (LSB) HSTDB1 HSTDB2 HSTDB3 HSTDB4 HSTDB5 HSTDB6 HSTDB7 (MSB) HI/ LO No. 14 13 12 11 10 9 8 7 4 5 6 3 77 59 60 61 62 63 64 65 66 67 68 69 70 71 72 2 1 80 75 76 78 79 39 40 41 42 43 44 45 46 47 48 49 50 51 I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I I I O I O O O O O O O O O O O O O O O O I/O O O O O I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z I/O/Z Description HOST DATA BUS. The HOST writes commands and reads status to/from the D6571E via this bus. The HI/ LO pin selects between the low byte and the high byte of the command/status. This bus is used for input when HSTWR is low, and for output when HSTRD is low. It has high impedance when HSTWR and HSTRD are high or RESET is high. HSTRD HSTWR Active only during Host Read. HIGH/LOW BYTE SELECT. When this signal is low, the HOST can read/write the low byte of the status/command. When high , the high byte is selected. HOST READ. When low, the HOST reads the low/high byte of the status word. HOST WRITE. When low the HOST writes commands to the D6571E via HSTDB 0-7. HOST ACKNOWLEDGE. This pin goes low when the D6571E send a status word to the HOST. It goes high when the HOST reads the high byte of the status word. DSP Chip Select (Optional connection to ground recommended, if not used. ) EXTERNAL MEMORY ADDRESS BUS ACK DSPCS ADDRO (LSB) ADDR1 ADDR2 ADDR3 ADDR4 ADDR5 ADDR6 ADDR7 ADDR8 ADDR9 ADDR10 ADDR11 ADDR12 ADDR13 ADDR14 ADDR15 / CE3 CE1 CE 0 Chip Enable 3 for flash device or Address 15 for external 64K/ EPROM Chip Enable 1 for flash device Chip Enable 0 for flash device Chip Enable 2 for flash device or Voice P rompt ROM/EPROM Chip Enable Address Latch Enable for Samsung flash devices; Data Input for Toshiba device Command Latch Enable for Samsung flash devices; Data Output for Toshiba device EXTERNAL MEMORY DATA BUS. CE2/VPCS ALE/DI CLE/DO MDB0 (LSB) MDB1 MDB2 MDB3 MDB4 MDB5 MDB6 MDB7 MDB8 MDB9 MDB10 MDB11 MDB12 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 7 D6571E Data Sheet D6571E-11 (DSP) MDB13 52 MDB14 57 MDB15 58 (MSB) 37 FLRD 36 FLWR DR0 27 DX0 25 DR1 26 DX1 24 FSYNC 23 SCLK 20 XIN 18 XOUT 17 GND 15 GND 31 GND 54 GND 74 VCC 19 VCC 32 VCC 73 VCC 53 22 PDN RESET EGPIO5 EGPIO4 EGPIO3 EGPIO2 EGPIO1 EGPIO0 CLKOUT NC NC NC 21 28 29 30 33 34 35 16 38 55 56 I/O/Z I/O/Z I/O/Z O O I O I O I/O I/O I O PWR PWR PWR PWR PWR PWR PWR PWR I I I/O I/O I/O I/O I/O I/O O I I I Flash Read Enable Flash Write Enable; Shift Clock for Toshiba flash Serial input for CODEC0 PCM data Serial output for CODEC0 PCM data Serial input for CODEC1 PCM data Serial output for CODEC1 PCM data Frame synchronization signal for CODECs (input in slave mode) Shift Clock for CODECs (input in slave mode) Crystal input pin for internal oscillator. Crystal output pin for internal oscillator. GROUND PIN GROUND PIN GROUND PIN GROUND PIN Power fail sensor input. When a low level is detected on this pin, the D6571E enters power-down mode. Reset input General Purpose I/Os These pins should be left unconnected Optional, connection to ground recommended DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 8 D6571E Data Sheet FUNCTIONAL DESCRIPTION HOST Interface The HOST interface is an 8-bit parallel data port, used for control and status information transfer. The HOST controls the operation of the D6571E using a simple command protocol. D6571E status information is updated after each command. The command and status protocol enables the HOST to have full control over the functions of the D6571E. This protocol is described in details in the following sections. Voice Message Recording Incoming and Outgoing Messages The D6571E message storage utilizes a proprietary, high quality speech compression algorithm to reduce the data rate of the speech signal. The compression algorithm is programmable and can support different bit rates: high, middle, and low bit rate. Each of the rates can be activated with "gap coding." When activated with no "gap coding" the D6571E provides 9.6, 7.2, and 4.4 Kbps respectively at 8 Khz sampling rate. At 7.2 Khz sampling rate bit rate will be 10% lower. When the compression algorithm utilizes both low bit rate and "gap coding", the D6571E achieves a recording time of 22-25 minutes in a 4 Mbit device using a 8000 Hz sampling rate. At 7200 Hz sampling rate the D6571E provides 24 - 27 min of recording time. The chip can support up to four 4 Mbit devices or one 16 Mbit device. The chipset supports up to 128 variable length incoming and outgoing messages. Multiple outgoing messages and multiple mailboxes for incoming messages are supported. During recording, the D6571E performs telephone line signal monitoring. The HOST can stop recording and delete unwanted information (silence or telephone signaling) by performing a "Tail Cut". The Host can delete the last n*TCF seconds from the memory using a Record command with a Tail Cut Factor (TCF). Tail Cut Factor is 0.160 seconds for 8 KHz sampling rate and 0.176 seconds for 7.2 KHz. For PCM messages Tail Cut increment is 240 ms or 266 ms respectively. A message with less than 1 second duration won't be stored in the message directory. During record mode the HOST can instruct the D6571E to generate an audible tone to the telephone line. The recorded audio signal that is digitized through the CODEC input is transmitted back through the CODEC output for call screening and other features. This LoopBack function can be disabled by the HOST in the Record command. Digital Voice-Activated Recording (VOX) Digital voice activity detection is implemented in the D6571E and can be activated only in Record mode. According to the HOST command recording of the speech signal may either start upon a positive result of voice activity detection or immediately after issuing a Record command. The voice activity detector output is reported to the HOST via a status bit every frame when in Record mode. The HOST reads this information and decides when to stop recording of the message. Automatic Gain Control The D6571E supports AGC in Record mode. AGC can be enabled/disabled by the Host. Parameters of the AGC are Host programmable. Message Playback The D6571E supports random access for playback of any recorded message. During playback, the D6571E monitors the telephone line. Offset and FLEXISPEECHTM Each message can be played from the beginning of the message or from any given offset point along the message (in 0.64 second increments). The HOST can also read during playback, the current offset position in order to implement jumps within the message. For PCM messages offset increment is 0.93 sec for 8 KHz sampling rate (1.03 sec for 7.2 KHz sampling rate). The D6571E also supports FLEXISPEECHTM , variable speed playback, with a range of 0.5 to 2.0 relative to the original speed. The FLEXISPEECHTM feature allows listening to messages at different speeds without changing the voice characteristics and without degradation of the voice quality. Message playback can be stopped by using the Pause command, which is initiated by the HOST. After Pause, 9 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet playback may be resumed from the same point. Normally, during playback, the status word will contain information about the line signals and the playback status and will notify the HOST when the end of message is reached. code of detected DTMF signals is transmitted to the HOST for further processing. Host selects whether the D6571E reports detection of the 12 DTMF tones or 16 DTMF tones. Call Progress Tone (CPT) Detection Message Deletion The D6571E allows selective deletion of any prerecorded message from memory. After each deletion the message directory is updated accordingly. Message deletion does not free the memory space. Memory is freed by using the "Garbage Collection" command. Message Time Stamp Caller Identification (CID and CWCID) The HOST may attach two 16-bit data words to each of the 128 messages of the D6571E. This data can be used for time/date stamping the recorded message and any other information defined by the Host. Time Stamp can be modified after message has been recorded. Volume Control The D6571E allows control of the signal that is playing to the CODEC. This function affects the level of the played back signal in the Message Playback and Voice Prompt modes, as well as the level of the looped back signal in the Record and Line Monitor modes. Tone Generation Single and double tone signals can be generated by D6571E. There are 32 locations provided in the tone table. No Tone and 12 standard DTMF tones are predefined and other telephony tones may be added to the table one time. The HOST can program tones into any of the 19 remaining entries in this table. The levels and frequencies are programmable and controlled by HOST. During tone generation the D6571E monitors the line. In case of "cold start" the D6571E can generate No Tone and 16 preprogrammed standard DTMF tones. See mode description for details. DTMF Detection DTMF detection is implemented by the D6571E in software. This function may be used for remote operation of the answering device. The identification DS6571E.2 The D6571E monitors the line for incoming telephone line signals and detects the presence of call progress tones in a predefined frequency region. The D6571E supports call progress tone detection by utilizing a filter/detector with a bandwidth of 300-640 Hz. Indication of the presence of call progress tones is transferred to the HOST, and may be used for terminating recording. The D6571E can monitor and demodulate the FSK signals that provide CID information from the Central Office (CO). Both Bell 202 and V.23 demodulation is supported and the D6571E will automatically adapt to the FSK modulation provided from the CO. Caller Alert Signal (CAS) Detection The D6571E supports detection of the Caller Alert Signal (CAS) in all functional modes for Call Waiting CID support. The same signal known as Idle State Tone Alert Signal is a part of the V.23 protocol. Sensitivity Control The D6571E allows independent control of the sensitivity of the VOX, DTMF, and Call Progress Tone (CPT), and CAS detectors. Speed Dial Telephone Number Storage The D6571E may store up to 128 telephone numbers, each with up to 16 digits for dialing. The 1024 bytes of memory can also be used for any other purpose by the HOST. Non-Erasable Storage The D6571E supports 1600 bytes of a non-erasable storage. General Purpose Storage The D6571E supports up to 16 sectors of a General Purpose Storage. Each sector allows 3200 bytes of storage. 10 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet near-end echo cancellation to the telephone line connection. While in SpeakerPhone mode, the D6571E can generate tones from the tone table and monitor line for presence of DTMF, CPT, and CAS signals. Self Test and Initialization The D6571E supports various functions responsible for testing and initialization of the Flash memory, codec interfaces, detectors, and other system configurations. Reports The D6571E is capable of reporting to the HOST the status of the currently available Flash memory storage space, as well as the overall status of the Flash memory and the number of recorded messages. Voice Prompt Generation The D6571E implements high-quality Voice Prompt playback, utilizing the built-in speech decoder. Some portion of the Flash memory or an external ROM can store the vocabulary. The D6571E supports up to four 64K byte sectors of voice prompts in flash memory or one 64K byte external ROM or EPROM. Each 64K voice prompt sector supports up to 128 phrases or utterances. The D6571E receives the voice prompt sector number (if more than one is used) and the phrase number from the HOST, as part of the Voice Prompt command, and outputs the appropriate speech segment via the CODEC interface. The gap between two consecutive phrases is controlled by the HOST and can be as low as 0. During playback of the Voice Prompts, the D6571E monitors the telephone line. The configuration with external Voice Prompt ROM is available if only one 4M flash or no flash is installed. The Voice Prompts for the Flash memory may be built with a Voice Prompt Workstation, which is available through the DSP Group, Inc. Near End Echo Cancellation A near-end echo canceller is activated during Playback, Tone Generation, and Voice Prompt Generation modes. This echo canceller enhances the performance of the DTMF and Call Progress Tone detectors in the presence of near end echo from the hybrid. Unlike most SpeakerPhone implementations, the D6571E implements a Full Duplex SpeakerPhone. In most speakerphones, only one party can speak at the same time, the other party is always muted, sometimes by as much as 50 dB. This is Half Duplex SpeakerPhone operation. The D6571E allows true Full Duplex SpeakerPhone operation. This implementation allows both parties to speak at once and be heard by the party at the opposite end of the call. The D6571E allows Full Duplex SpeakerPhone operation due to the highly efficient adaptive echo cancellation on both the acoustical and electrical sides. The D6571E supports DTMF, CAS, and CPT detection during SpeakerPhone mode thus enabling such functions as CID on Call Waiting, auto redial, and less cost routing. Power Down Mode The D6571E will go into stop mode during power failure. No battery backup is required to retain data in the case of power failure. Full Duplex Digital SpeakerPhone The D6571E implements a True Full Duplex Digital SpeakerPhone mode. In this mode the D6571E provides adaptive acoustical echo cancellation between the speaker and microphone connection as well as adaptive DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 11 D6571E Data Sheet contents of the memory except for the voice prompt sectors, tone table, and bad block table. Normally the Flash Hardware Selection and then the Flash Initialization command may be sent to perform the Initialization. All memory will be initialized except for the voice prompt sectors and bad block table. MODES OF OPERATION The D6571E is normally in Idle mode. Each time a command other than Idle is issued, the system will enter the new mode. From some of the modes, the system will automatically return to Idle mode after completion of the operation. Other modes (Record, Playback, Tone Generation, Line Monitoring, Voice Prompt Generation and SpeakerPhone) require an Idle command to return to Idle mode. There are 16 modes of operation. Each of these modes is entered from the monitor program through Idle mode. The 16 modes are as follows: 0. Idle - The D6571E performs command polling. It checks the command register in the HOST-D6571E interface and transfers to the requested operating mode. 1. Record - The D6571E performs speech compression and records a message into the Flash memory.* 2. Playback - The D6571E performs message playback using compressed speech data stored in the Flash memory.* 3. Read Memory Status - The D6571E returns information on the Memory status to the HOST, e.g., the number of messages stored in the Flash memory, memory full condition, program ROM checksum status, voice prompt checksum status and if Garbage collection is recommended. 4. Write Data to Storage - In this mode the D6571E receives data from the HOST and stores it either in the Telephone Number Storage, or Non-Erasable Storage, or General Purpose Storage in the flash under index number given by the HOST. 5. Read Data from Storage - The D6571E returns to the HOST data stored in Telephone Number Storage, or Non-Erasable Storage, or General Purpose Storage under the index number given by the HOST. OPERATIONAL DESCRIPTION INITIAL PROCEDURE No operation should be performed with the new flash before it is initialized once. Any flash access before initialization may destroy information about bad blocks and make flash unusable. After power up, the PDN signal (pin 22) should be set high followed by the RESET pulse (Refer to Figure 4 for the timing). Upon detecting falling edge of the RESET pulse, the D6571E checks some predefined locations in the Flash Memory to determine if Flash was initialized and responds to one of the following situations: 1. Flash memory was previously initialized "warm start". The D6571E restores the previous conditions and system parameters. The message directory and all messages remain saved. The D6571E returns garbage collection status with the "cold start" bit reset (0). 2. Flash memory was not previously initialized "cold start". The D6571E returns garbage collection status with the "cold start" bit set (1). After sending Garbage Collection status the D6571E will enter Idle mode. After sending RESET the Host should wait for ACK pin to become low and then read status. No command should be sent to the D6571E until host reads the Garbage Collection Status. If this is a "cold start" only commands that do not require flash access are available: Idle, Line Monitor, Read Memory Status, SpeakerPhone, Tone Generation (16 standard DTMF tones only), Data Pump, and Self Test and Initialization. If any other command is issued, the D6571E will stay in Idle mode and return Idle status. The D6571E behaves in the same manner if the flash is not initialized ( "cold start" condition) or there is no flash in the system ("no flash" condition). To initialize flash memory Flash Hardware Selection (Test Mode = 0101) be issued first because no other Self Test and Initialization command will be accepted until this command is issued! After Flash Hardware Selection only Test Mode = 0011 (Fast Self Test) and Test Mode = 0001 (Flash Initialization) are available. The Flash Hardware Selection and the Fast Self Test command can be issued to confirm the configuration of the flash if necessary. Fast Test will destroy the DS6571E.2 6. Tone Generation - The D6571E generates a single or double tone with programmable parameters. * DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 12 D6571E Data Sheet FSK modem is supported as a submode of the Tone Generation mode 7. Line Monitoring - The D6571E monitors the telephone line for the presence of DTMF signals, Call Progress Tones, CAS, and CID signals.* 8. Delete Message - The D6571E can erase any selected Flash memory message entry whose number is specified by the HOST from the message directory. The D6571E is able to perform Garbage Collection to free memory space by erasing sectors. 9. Set Current Time - The HOST sends the D6571E the current time & date stamp and/or status information to be attached to the next recorded message. 10. Get Time Stamp - The D6571E returns to the HOST the time & date stamp and/or any other information associated with a specific Flash memory message. 11. Get Available Record Time - The D6571E reports the currently available Flash memory record time. 12. Self Test & Initialize Memory - The D6571E performs Flash memory testing and mapping as well as other initialization functions. 13. Voice Prompt Generation - The D6571E implements a TRUESPEECHTM Voice Prompt playback from Flash memory or the external ROM/EPROM. The D6571E implements voice prompt programming into Flash memory. * 14. SpeakerPhone - The D6571E implements a True Full-Duplex SpeakerPhone algorithm. * 15. Re-Compression -- re-compresses recorded messages to another compression rate. 16. Data Transfer Modes - The D6571E implements various modes, which involve transmit/receive voice data via HOST Data bus. These modes are described in separate section "Data Transfer Modes". *These modes require an Idle command to return to Idle mode. This is polling mode in which the D6571E monitors the D6571E-HOST interface for HOST commands. Transition to any other mode must always be done through t he Idle mode. Record When the HOST sends a Record command, the D6571E performs speech compression and stores the message in the Flash memory. If bit 6 (VOX) in the first Record command is "0", the D6571E starts recording immediately after receiving the Record command. If VOX bit is set to "1', the D6571E starts recording after detecting voice activity. The TRUESPEECH compression algorithm, implemented in the D6571E is HOST programmable and is able to utilize three compression rates as well as "gap coding". Record mode (bits 7-9 of the first Record command) are defined as follows: 000 - low bit rate 001 - middle bit rate 010 - high bit rate 011 - reserved 100 - PCM (-law or A-law) When bit GAP (bit 4) is set to "1" gap coding will be activated with any of the compression rate (gap coding is not available in case of PCM recording). The compression algorithm is defined by the first Record command. It can be changed while in Record mode. While in this mode, the D6571E monitors the communication port every frame for HOST commands. If no new command is detected, the D6571E continues recording. While in Record Mode, the D6571E monitors the line. If an additional Record command is detected, the D6571E returns the status word with VOX status (bit 6), memory status (bit 7), index of the DTMF and CAS signal detected (bits 0 5), and Call Progress Tone -3, presence (bit 4) to the HOST. See Line Monitor mode for the respective indexes for DTMF tones. While in Record mode, the Host may issue a Command to change independently the DTMF, VOX, CPT, and CAS Sensitivity or the Volume of the looped back signal without interrupting this mode. The status word will reflect the status for the Record mode. Therefore, line monitoring will not be affected. If an Idle command is detected, the D6571E stops recording, updates the message directory, and returns to Idle mode. The D6571E reports to the HOST by 13 DESCRIPTION OF MODES OF OPERATION Idle DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet sending the Idle mode status word. The D6571E assigns the next available message number to a newly recorded message. The first message will be assigned the number "0", the second message will be assigned the number "1", and so on, up to "127". Record mode can be terminated by sending a Record command with non-zero "Tail Cut" factor (TCF). The D6571E stops recording and automatically deletes the last n*TCF seconds from memory. The value of the TCF is 0.160 seconds for 8000 Hz sampling rate and 0.178 seconds for 7200 Hz sampling rate. The D6571E then returns to Idle mode. For PCM recording the value of the TCF is 0.240 seconds and 0.266 seconds for 8 KHz and 7.2 KHz sampling rate respectively. Host can pause recording by sending Record command with REC MODE = 10. The D6571E will stay in Record mode, monitor line but won't store data into flash. The Host can send Record command with REC MODE = 00 to continue recording or terminate recording by Idle or Tail Cut command. Host can suspend recording (Record command with REC MODE = 01). The D6571E will terminate recording and go to Idle mode. The Host can instruct the D6571E to perform another operation (other than Record), for example, CID, Tone Generation, etc. Note that message playback, voice prompt playback, and new message recording is not available during record suspend. Then Host may instruct the D6571E to resume recording of the message that has been suspended. Alternatively the Host can close the suspended message and then start new message recording. The Host may instruct the D6571E to change compression rate, enable/disable Gap Coding and Loopback (REC MODE = 11 and TONE GEN = 1). New mode will be set in the bits NEW BIT RATE (bits 8 - 6), LB DIS (bit 5), and GAP (bit 4). Host can also instruct the D6571E to report current offset in the message being recorded (REC MODE = 11 and TON GEN = 0). A message will not be stored in the Flash memory if the actual message length is less than 1 second. After performing the tail cut function, or if the message length is less than 1 second, the Garbage Collection Recommended bit will be set (1) in the status of the Read Memory Status command. If the Flash memory has become full, the Memory Full bit (bit 7) in the status word is set. The D6571E stops recording, remains in Record mode, and continues to perform line monitoring. During Record mode, the HOST can instruct the D6571E to generate a tone from the predefined tone table. The HOST should issue a Record command with the "T" bit (bit 9) set to "1", Tone Gain (bits 8-5) and "Tone Index" (bits 4-0). Tone generation will end if "Tone Index" is "00000" along with the "T" bit set to "1". For more details about tone generation, see Tone Generation command. In Record mode, the input signal is "Looped Back" and transmitted through the output of the CODEC. This can be used for call screening or other purposes. If the "Loop Back" is not necessary, the HOST can disable this function by setting the "LB DIS" bit (bit 5) in the first record command to "1". The "LB DIS" bit should usually be set to "1" if the tone generation function during Record is used. In case of "cold start" the Record will not be activated, the D6571E remains in Idle mode and returns Idle status. Playback In playback mode, the D6571E performs message playback and line monitoring. In the first playback command, the HOST instructs the D6571E which message to play, and at what F LEXISPEECH speed. The message number is defined in bits 0-6 and can be from 0 to 127. The FLEXISPEECH speed is defined in bits 7-9. To play a message at normal speed, the FLEXI speed should be "000". Other playback speeds, from 0.5 to 2.0 (50% - 200%) of the normal speed can be selected according to the following table: FLEXI SPEED Bit 9 0 0 0 0 1 1 1 1 Bit 8 0 0 1 1 0 0 1 1 Bit 7 0 1 0 1 0 1 0 1 SPEED OF PLAYBACK 1.0 0.5 0.7 1.0 1.3 1.5 1.75 2.0 The second playback command instructs the D6571E to play back the message from the predefined offset location. This offset information is defined in units of 14 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet about 0.64 seconds (0.93 seconds for PCM messages) for 8 KHz sampling rate. For 7.2 KHz sampling rate the unit is 0.704 seconds (1.03 seconds for PCM recording). If the offset is "0", the message will be played from the beginning. Message playback starts immediately after receiving the second playback command. After starting playback, the D6571E monitors communication port for a HOST command every frame. The HOST issues additional playback commands during playback in order to perform line monitoring, change the speed of the playback, and/or pause playback. Usually, the HOST will issue an additional playback command and get back the line status every frame. Playback speed can be changed at any time while in playback mode by changing the FLEXI speed in any of the playback commands. If the PAUSE bit (bit 11) is set to "1", playback will stop. The playback will resume from the same point if the HOST issues the command with "0" in PAUSE bit. Line monitoring will continue during pause. If the READ OFFSET bit (bit 10) is high, the D6571E will return the current offset, i.e., the time elapsed from the beginning of the message, instead of the line status. The line status word contains information about the tones detected from the line and End of Play flag (bit 7), which indicates whether the end of the current message has been reached. When this bit is low, the message is still being played; when it is high, the end of the message has been reached. The D6571E will continue to stay in playback mode and monitor the line. If the requested message number does not exist, the D6571E will return a status word with the End of Play "1" in response to the third playback command. If the D6571E detects a DTMF or CAS tone, the index of this tone will be reported (bits 0 5) of the status word. See Line -3, Monitor mode for respective indexes for DTMF tones. The presence of a Call Progress Tone will be contained in bit 4. The HOST will monitor these tones every frame and will act accordingly. Playback will be terminated by the Idle command and the D6571E will return to Idle mode. While in Playback mode, the Host may issue Commands to change independently the DTMF, VOX, CPT Sensitivity or the Volume Control without interrupting this mode. The status word will reflect the status for the Playback mode. Therefore, line monitoring will not be interrupted. If the Host sends the command to play binary file, the D6571E will play silence and return status S3 with BIN bit and END of Play bit set to "1." See Data Storage mode in the Data Transfer Modes section for binary file storage information. In case of "cold start" the Playback mode will not be activated, the D6571E will remain in Idle mode, and return Idle status. Read Memory Status There are two submodes: 1) Get memory status (mode = 00) In this submode the D6571E returns to the HOST a status word containing the following information: Number of recorded messages Memory full indication Garbage Collection Recommended Program ROM status Voice Prompt status When 128 messages have been recorded or when there is no available memory space for recording further messages, the Memory Full Flag (bit 7) is set. Up to 127 messages are reported in the 7 LSBs of the status word. When 128 messages are recorded, the Memory Full Flag is set and the number of messages is "0". Note that the message directory may also become full if a large number of messages are deleted or not saved without running Garbage Collection. The Garbage Collection Recommended bit is set to "1" when the telephone number table has been reprogrammed, when message(s) have been deleted, the tail cut function has been performed, or when messages are too short to be saved. This bit will be reset after garbage collection is performed. In order to reduce response time of this command the calculation of the Voice Prompt checksum can be disabled if bit VP CHK DIS (bit 7) of the command is set. After sending the memory status, the D6571E returns automatically to Idle mode. In case of "cold start" the D6571E will return the status with the most significant nibble equal 0. This will be an indication of the "cold start". Voice Prompt status and Program ROM status bits have the same meaning as for "warm start". Number of messages, Memory Full, and Garbage Collection bits are expected to be 0. 2) Get Product Number (mode = 01) In this submode, the D6571E returns four digits of product number, i.e., 6571 (0110 0101 0111 0001). The 15 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet status is the same in "cold" and in "warm start" condition. Telephone Number Storage In this mode the D6571E receives a word of data from the HOST and writes it into the telephone dire ctory under the entry number specified by HOST in a previous command. This stored information can be actually used as telephone number storage or for any other purpose. The D6571E automatically returns to the Idle mode after this command. After a certain number of programming cycles, without Garbage Collection, the Telephone Number directory will become full. Up to 1024 bytes can be stored in the Telephone Number directory (128 telephone numbers, 16 digits each). This mode is not available in case of "cold start." Idle status will be returned. Non-Erasable Storage In this mode the D6571E receives a word of data from the HOST and writes it into the Non-Erasable Storage under the entry number specified by HOST in a previous command. The D6571E can store up to 800 words (1600 bytes) of data. This data can be programmed only once and can not be erased or modified. This storage is not available in case of "cold start." General Purpose Storage (GPS) The D6571E supports up to 16 sectors of the General Purpose Storage. Each sector has a capacity of 3200 bytes. The number of sectors has to be defined by Host (Storage Configuration command of the SelfTest and Initialization mode). After a certain number of programming cycles, without Garbage Collection, the sector of the GPS will become full. After Garbage Collection the sector will become available for further programming. The D6571E allows erasing a sector by one command (GPS command with ERASE bit set). Note: Garbage Collection must be executed each time before and after writing data into GPS. Read Memory Status command should be sent and Garbage Collection should be executed if recommended. This storage is not available in case of "cold start." To generate a tone, the HOST will send a Tone Generation command with bit 11 = "0", bits 0 will -4 indicate the TONE INDEX in the tone table and bits 5-8 will indicate the tone output gain. The D6571E will start to generate the tone through the CODEC output and monitor the line from the CODEC input. The D6571E will return a status word containing information on DTMF, CAS, and/or Call Progress Tones detected from the line. See Line Monitor mode for a descriptions of the call progress and DTMF tones detected. The HOST can issue an additional, same Tone Generation command to monitor the line, and will get a status word every frame. The HOST can change the tone and/or the tone gain level, on the fly, without leaving the Tone Generation mode. In addition the Host may issue a Sensitivity Control command to change sensitivity of any of the detectors without interrupting the Tone Generation mode. The status word will reflect the status of the Tone Generation mode. Therefore line monitoring will not be interrupted. The Tone Generation mode will end with the IDLE command. 16 Tone Generation Mode In case of "warm start" the D6571E can generate tones from the following tone table: TONE INDEX 0 1 2 3 4 5 6 7 8 9 A B C D - 1F DTMF CODE No Tone 1 2 3 4 5 6 7 8 9 * 0 # FREQ. 0 FREQ. 1 697 697 697 770 770 770 852 852 852 941 941 941 User Defined Tones 1209 1336 1477 1209 1336 1477 1209 1336 1477 1209 1336 1477 13 entries (0 - C) are preprogrammed and parameters of these entries can not be changed. The default gain for each tone in the table is 6 dB (code 0000) for Frequency 1 and 4 dB (code 0001) for Frequency 0. The HOST can program 19 "user defined tones" one time. Any desired single or double tone within the telephony frequency bandwidth may be programmed as described in the section "New Tone Definition". The HOST can instruct the D6571E to generate any of the 31 tones from the tone table. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet tones from the Idle mode and the D6571E will return to Idle mode after the four commands/status sequence. The HOST can use the newly defined tone from the tone table immediately after the definition. FSK Modem No Tone 1 2 3 4 5 6 7 8 9 * 0 # A B C D 697 697 697 770 770 770 852 852 852 941 941 941 697 770 852 941 1209 1336 1477 1209 1336 1477 1209 1336 1477 1209 1336 1477 1633 1633 1633 1633 In case of "cold start" the D6571E can generate silence and 16 standard DTMF tones from the table below. TONE INDEX 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 DTMF CODE FREQ. 0 FREQ. 1 FSK modem is implemented as a submode of the Tone Generation mode. This mode allows to transmit and receive FSK data with 1200 baud rate. This mode is compatible with the CID receiver as well as w -5 ith function. In this mode the D6571E receives byte stream from Host, converts it to FSK bit stream, and generates it in frames. The number of byte in the frame is specified by Host. The D6571E generates "leading mark bits" prior to the FSK frame. The D6571E generates start and stop bits for each byte of data (RS-232 protocol). The number of start and stop bits can be programmed by Host. After the frame has been transmitted the D6571E generates "trailing mark bits." The number of "leading" and "trailing" mark bits is host programmable. After completion of frame generation the D6571E can go to the FSK Receive mode without delay. In the FSK Receive mode the D6571E can report to Host the number of detected Channel Seizure bits and the number of detected Mark bits. Sensitivity (rejection threshold) of the FSK detector is host programmable (SelfTest and Initialization command, Test mode = 0111, submode = 100). Line Monitoring Mode In this mode the D6571E monitors the telephone line for the detection of a DTMF signal, CAS signal, and/or existence of Call Progress Tones. Caller Alert Signal (CAS) is a part of the Call Waiting CID protocol. The same signal with the name Idle State Tone Alert Signal is part of the V.23 protocol. While in this mode, the D6571E is monitoring the communication port every frame for a HOST command. If no new command is detected, the D6571E continues monitoring the line. If an additional Line Monitoring command is detected, the D6571E returns a status word to the HOST containing the Call Progress Tone flag (bit 4), and the index of the DTMF or CAS signal detected. The index is defined as follows: Note that tones A, B, C, D (entries D - 10) are available in "cold start" but are not available by default in case of "warm start." Entries D - 10 should be programmed by the user (User Defined tones) in case of "warm start." No User Defined Tones is available in case of "cold start." New Tone Definition The HOST can add tones to the table by sending the first Tone Generation command with bit 11 = "1" and the TONE INDEX in bits 4-0. The next three commands will define the new tone (single or dual). The second command defines "Tone 0" output gain in bits 0-3 and "Tone 1" output gain in bits 4-7. Each tone can be programmed from -24 dB (gain code 1111) to 6 dB (gain code 0000) with resolution of 2 dB. The user defined tones may be programmed once only. Those tones can be programmed in case of "warm start" only. The third and fourth commands define the Tone 0 frequency and Tone 1 frequency respectively by the following expression: 32767 * cos (2* *fm/fs) where: fm is the desired frequency and fs is the sampling frequency (8000 Hz) To define a single tone, either the third or fourth command has to be 7FFFH. The HOST will define new DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 17 D6571E Data Sheet EXT TONE 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 INDEX 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1-E F DTMF CODE No Tone 1 2 3 4 5 6 7 8 9 * 0 # A B C D Reserved CAS To monitor for CID information, Line Monitor command should be sent with CID bit (bit 10) set. The D6571E will return an ASCII code of the detected character in the low byte of the status word. MS bit of the ASCII byte will be sent in bit 7 of the status word. LS bit of the ASCII byte will be sent in the bit 0 of the status word. If no Seizure Signal is expected to be detected (off-hook detection) the NS bit (bit 8) should be set in the CID command. CID command should be sent repeatedly until the entire CID message is received. In average 3 command/status will be transmitted per frame. If no character is detected the D6571E will return status with bit ND (bit 8) set and zero in low byte. In case of no detection the status will be returned once each frame. CID mode performance is the same in case of "cold" and "warm start." Delete Message In this mode the D6571E performs one of the following functions: 1. If the Garbage Collection bit (bit 11) is 0, the D6571E removes the message entry specified in bits 0 -6 from the message directory, shifts all higher message entries one place down in the directory and decreases the total number of messages by one. Deletion of a message will not free up memory space until a Garbage Collection command is performed. The Garbage Collection Recommended bit, in the status word of the READ MEMORY STATUS command, will be set after message deletion. 2. If the Garbage Collection bit is 1, the D6571E performs Garbage Collection to free memory space by erasing sectors. The Garbage Collection erases one sector per command. After erasing the last sector, the D6571E returns the status 8880H. The Garbage Collection Recommended bit, in the status word of the READ MEMORY STATUS command, will be reset after erasing the last sector. Note: 1) The D6571E returns Garbage Collection status automatically after each release of RESET signal from the chip. In the case of "cold start" ,bit 0 will be set (1). In the case of "warm start", bit 0 will be reset (0). In Line Monitoring mode, the input signal is "Looped Back" and transmitted through the output of the CODEC. This can be used for call screening or other purposes. If the "Loop Back" is not necessary, the HOST can disable this function by setting the "LB DIS" bit (bit 5) in the first Line Monitor command to "1". While in Line Monitoring mode the D6571E allows control of the Volume level of the looped backed signal without interrupting the Line Monitor Mode. The volume can be controlled in 2 dB steps from +16 dB down to -42 dB and also includes Mute. While in the Line Monitoring mode the Host may change independently the DTMF, VOX, CPT, and CAS Sensitivity without interrupting the Line Monitoring mode. The status returned for the Volume control or Sensitivity control command will be the status of the Line Monitoring mode. Therefore, the line monitoring function will not be interrupted. The D6571E will stop monitoring the line and return to Idle mode wh en an Idle command is sent. The Detector Configuration command (submode of the Initialization mode) defines if the D6571E will report detection of the A, B, C, D digits. By default the D6571E reports 12 digits only ( indexes 1 - C). The Line Monitor mode has the same performance in case of "cold" and "warm start." CID Submode DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 18 D6571E Data Sheet Get Available Record Time 2) In case of "cold start" neither Delete nor Garbage Collection command is being performed. Both commands return Idle status. Erase Flash The D6571E allows to erase the entire flash (with the exception of the bad block table). To perform erase operation the ERASE commands should be sent twice. After sending the second command the contents of the flash including Voice Prompt will be erased. This command can be used on the development stage to clean used flash. This command is not recommended to be used in actual applications. The ERASE command must not be used with the flash that has not been initialized yet. The Erase command performs in the same way in case of "cold" and "warm start." Set/Modi fy Time Stamp In this mode, the Host sends the D6571E the data that will be attached to the next recorded message. Up to 2 words (4 bytes) may be attached to each message. Usually the Host sends the D6571E the current time and date mark that will be used for time and date stamping of the messages. Time stamp or any other data stored in these two words can be retrieved by Get Time Stamp command. The D6571E automatically returns to the Idle mode after this command. Any bit of the Time Stamp can be modified from "1" to "0" by the Modify Time Stamp command after message has been recorded. No modification from "0" to "1" is available. Therefore it is recommended that all non used bits will be set to "1" by Set Time Stamp command. This command is not available in case of "cold start". The D6571E will return Idle status. Get Time Stamp In this mode the D6571E sends the Host the data that was attached to the recorded message. Usually this will be the current time and date. The D6571E automatically returns to the Idle mode after the Set Current Time command. This command is not available in case of "cold start". The D6571E will return Idle status. This command initializes the flash memory. This command may be used immediately after the Flash Hardware Selection command. Flash memory can not be addressed in functional modes before it is initialized. This command destroys the contents of the memory except the Voice Prompt blocks and bad block table. Initialization is necessary to activate external VP ROM even if no flash is installed in the system. 2) Flash Fast Test (Test Mode = 0011) This command is not needed for normal operation. It can be used to confirm the flash configuration. It gives a fast indication that the memory devices are installed and functional. This command can only be used after a Flash Hardware Selection command. It destroys the contents of the memory except the Voice Prompt blocks and bad block table. Flash must be initialized after using Flash Fast Test command. 3) Flash Hardware Selection (Test Mode = 0101) The Host must send this command to the D6571E in order to initialize and map the system memory. This command be issued first, because Flash Fast Test and Flash Initialization command should follow Flash Hardware Selection command. Neither Flash Fast Test 19 In this mode, the D6571E sends the HOST the minimum available Flash memory record time in units of memory. Time representation of the units depends on the compression rate to be used. The D6571E automatically returns to the Idle mode after this command. The D6571E will return Idle status in case of "cold start." Self Test and Initialization In this mode the D6571E performs memory configuration, mapping, and testing, initialization of the system parameters as well as various selections related to the CODEC interfaces, data storages, signal detectors, etc. This mode allows also Volume Control and Sensitivity Control of DTMF, VOX, CAS, and CPT detectors. 1) Flash Initialization (Test Mode = 0001) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet (Test Mode = 0011) nor Initialization (Test Mode = 0001) are available if they don't follow Flash Hardware Selection command. 4) Codec Hardware Selection (Test Mode = 0100) This command configures the system for the various codec interface operating modes available. M/S - Configures the D6571E to operate in either Master or Slave mode of the Codec Interface. LAW - Configures the D6571E to operate with either an -law Codec (default) or an A-law Codec. CODEC Type Selection - allows selection of short (default) or long frame sync for the CODEC interface. When two CODECs are connected to the D6571E, the HOST can select the input or the output CODEC for each function. If CODEC0 is connected to the telephone line and CODEC1 is connected to the microphone and speaker, the HOST can select to record or play through each one of the CODECs. CODEC Selection enables the following options with a 2-CODEC configuration. INPUT CODEC - allows selecting the input data streams from CODEC0 and CODEC1. 1 1 Data is directed in all modes to both CODECs. A RESET signal will set all codec configurations to the default values. Codec Selection command has the same performance in case of "cold" and "warm" start. 5) Codec Loopback (Test Mode = 0110) Activates Codec loopback. This mode is available in case of "cold start." 6) Algorithm Configuration (Test Mode = 0111) Submode 000 = DTMF Configuration This command configures DTMF detector (sub mode 0) to report detection of 12 digits (0-9, *, #) or 16 digits (0-9, *, #, A, B, C, D). By default the D6571E is in 12 digit mode. Submode 001 = CAS Configuration Allows to change threshold levels of the CAS detector Submode 010 = AGC Configuration This command activates AGC. AGC, when activated, is functional in the Record mode. Main parameters of the AGC are programmable and can be defined by the AGC Configuration command. By default AGC is disabled. Programmable AGC Parameters The following Parameters can be programmed by Host using AGC Configuration command. Optimum Level Eopt - desired output level after AGC operation. For input signals of Eopt level the AGC will set gain = 1. Input signals greater that Eopt will be attenuated. Input signals smaller than Eopt will be amplified. CODEC INPUT Bit 2 0 1 Input through CODEC0 (default) Input through CODEC1 OUTPUT CODEC - allows selecting the CODEC output between CODEC0 or CODEC1 (or both). CODEC OUTPUT CODEC (Default mode.) Output data stream in the Record, Playback, Tone Generation, Line Monitor, Voice Prompt modes is directed to CODEC0 (via pin TX0). In the SpeakerPhone mode signal to the telephone line is directed to CODEC0, signal to the speaker to CODEC1 (via pin TX1). This mode should be used for SpeakerPhone operation. Output data is directed in all modes only to CODEC1 (via pin TX1). Output data is directed in all modes only to CODEC0 (via pin TX0). Bit 4 0 Bit 3 0 0 1 1 0 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 20 D6571E Data Sheet Minimum Level Emin - minimum input signal energy level that is amplified to optimum value Eopt. For signals greater than Emin the AGC gain is calculated as G = Eopt/Einput Maximum gain Gmax = Eopt/Emin Submode 3 enables low pass filter (enabled by default). The performance of this mode is the same in case of "cold" and "warm start." Submode 100 = FSK configuration This submode allows to control sensitivity of the FSK detector. 7) Volume Control (Test Mode = 1000) This mode allows setting of the signal level playing to the Codec. The default value is 0 dB and the volume may be set in 2 dB steps from -42 to +16 dB or may be muted. This command allows the HOST to read the current volume setting without changing it (bit 7 = 0), or set new volume (bit 7 = 1) specified in bits 0 through 4. The status will reflect the current volume setting. The Volume Control command can be issued in Record, Playback, Voice Prompt and Line Monitor Mode without interrupting these modes. When issued in one of these modes, the status will be the status of the current operating mode. Therefore, current volume setting can not be read during operating modes. The performance of this mode is the same in case of "cold" and "warm start." 8) Storage Configuration (Test Mode = 1001) This mode allows to define necessary space of the General Purpose Storage. GPS can occupy up to 16 sectors 3200 bytes each sector. By default GPS is not available (0 sectors). 9) Program DTMF, VOX, CPT, CAS Sensitivity (Test Mode = 1010) The mode allows independent setting of the sensitivity of the DTMF detection, CAS detection, VOX detection, and Call Progress Tone detection. The default sensitivity level is 0 dB and each sub-system may be adjusted in 2 dB steps from -16 dB (most sensitive) to +42 dB (least sensitive)or can be disabled. Gain Threshold Level Eatt - signals smaller than Emin and larger than Eatt are amplified by maximum gain Gmax Silence Threshold Level Es il - signals lower than Esil are considered silence. The gain for such signals = 1. Signals greater than Esil but smaller than Eatt will be amplified by the gain linearly growing from 1 to Gmax. Hold Time Thold - this parameter the hold time of the AGC gain during the pause in the speech. The intent of the decay time is to "bridge" the gaps between syllables and words resulting in stable gain. Decay Time Tdec - this parameter defines the rate by which the gain increases after hold time elapsed. Default values of the parameters are presented in the following table. Parameter Default Value (decimal) 4 dB 22 dB 36 dB 46 dB 100 10 Default Value (hex) 0004 0016 0024 002E 0064 000A Default Value (Physical meaning) - 1 dBm* - 19 dBm* - 33 dBm* - 43 dBm* 2.0 sec 1.0 sec Eopt Emin Eatt Esil Thold Tdecay * - Calculated as (3 - Value) dBm G Gain function 1 0 E sil Eatt Emin Eopt Submode 011 = HPF configuration DS6571E.2 This command also allows the HOST to read the current sensitivity setting of the selected signaling subsystem (specified in bits 6 - 7) without changing this setting (bit 5 = 0). When bit 5 = 1, the command sets the new 21 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet sensitivity value specified in bits 0 through 4. The Status will reflect the sensitivity settings. The Sensitivity Control command can be issued in Record, Playback, Voice Prompt, Line Monitor, and Tone Generation Mode without interrupting these modes. When issued in one of these modes, the status will be the status of the current operating mode. The current sensitivity setting can not be read during operating modes. The performance of this mode is the same in case of "cold" and "warm start." 10). Test Mode = 1011 (GPIO access). In this mode the D6571E allows Host access to GPIOs. Host can write and read data to/from GPIOs using this command. 11). Test Mode = 1101 (IOM -2 compatible codec interface configuration) In this mode the D6571E sets configuration of the GCI/IDL compatible codec interface. By issuing this command Host activates GCI/IDL compatible codec interface. By sending Codec Hardware Selection command (Test Mode = 0100) host disables GCI/IDL interface and activates "old" codec interface. By default "old" codec interface is active. See command set for details. Voice Prompt Generation In this mode the D6571E plays back a speech segment using the speech decompression algorithm. Speech should be previously stored in Flash memory or external ROM. The D6571E will support up to four 64K byte sectors. Each sector will store up to 128 prompts. The default sector is sector 0. If the Host is playing from sector 0 only, no Set Sector command is required. If however, the Host selects sector 1 this continues to be in effect until the Host changes it again. In addition, the Host may change the sector while in Idle mode without leaving Idle mode and this change will remain in effect until another command is issued to change the voice prompt sector. As a general procedure, the Host first sets the sector by setting bit 10 and including the sector number in bits 2-0. Next, the Host loads the new phrase by setting bit 11 and including the phrase number to play (0-127) in bits 0 in the command word. The -6 D6571E will start playing the phrase and send the status word to the HOST containing line status and playback status. The line status will contain information about DS6571E.2 DTMF, CAS, and CPT in the same manner as the Line Monitor command. The status word also contains two flags: END OF PLAY and READY. The HOST can continuously monitor the status by issuing a Voice Prompt command with both bit 10 and 11 equal 0 and act according to the returned flags. READY - this bit (bit 10) is set to "1" by the D6571E two frames before the end of the phrase playback. It indicates that the D6571E is ready to load a new phrase. If the Host is playing from the same sector, no additional set sector command is required. The Host may send a change sector command, if required, during the playback from the previous sector without interrupting the playback. The next phrase will be loaded from the new sector. Sending a Load command while the READY bit is "0" will not load the new phrase. If the HOST sends Load command immediately after status with READY bit high, there will be no silence gap between the two phrases. The HOST can delay the Load command for a few frames and create a gap between two phrases. In that case, the D6571E will transmit silence to the CODEC but will stay in Voice Prompt mode. The Voice Prompt mode supports FlexiSpeech in a manner similar to Playback mode. END OF PLAY - this bit (bit 7) is set one frame after the Ready bit and indicates that the D6571E is playing the last frame of the phrase. While in Voice Prompt Generation mode, the HOST may issue a command to change the DTMF, CAS, VOX, and CPT Sensitivity or the Volume without interrupting this mode. The status word will reflect the status for Voice Prompt mode. Therefore, line monitoring will not be interrupted. The Voice Prompt mode is terminated by sending an Idle command. The external ROM can be used as the Voice Prompt storage if only one 4M flash is activated in the system or no flash is installed. Notes: 1) If the phrase number is higher than the last phrase recorded in the memory, the status word will return END OF PLAY with READY bits high and no playback will be performed. 2) If the D6571E does not find the Voice Prompt area it will return Idle status. DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 22 D6571E Data Sheet 3) The external Voice Prompt should be initialized using Flash Hardware Selection and Flash Initialization command. The external Voice Prompt should be initialized even in case of "cold start". 4) The amount of recording time for voice prompts depends on the number of sectors allotted in the Flash memory and it is 71 seconds for each 32 Kbytes of memory space. Program Voice Prompt In this mode the D6571E allows programming of the Voice Prompt file into flash memory using the data pump technique. See Voice Prompt command set for details. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 23 D6571E Data Sheet Full Duplex SpeakerPhone Operation In this mode the D6571E implements a HOST controlled Digital SpeakerPhone algorithm. When activated, this algorithm enables enhanced SpeakerPhone operation with both Acoustical and Electrical Echo Cancellation and programmable parameters. CODEC0 is used for the telephone line input and output. CODEC1 is used for the microphone input and the speaker output. (This is the default setting of the Codec). The SpeakerPhone command is comprised of two commands. The first command defines the "static" parameters, which usually are optimized to the specific hardware setup (microphone and speaker locations, amplifier gains, etc.). This command can be issued once only while in SpeakerPhone mode. The second command will define the "soft" parameters that can be changed by the HOST during SpeakerPhone operation (loop attenuation, speaker volume, etc.). The second command can also define echo cancellation and loop adjustment modes as well as instruct the D6571E to generate a tone from the predefined table. SpeakerPhone function has the same performance in case of "cold" and "warm" start. Explanation of the SpeakerPhone Parameters Direction (bits 7-4) The line and microphone sensitivity determine the Signal-to-Noise (SNR) ratio at which the voice detectors for the transmit and receive directions will be activated. The voice detectors are used to determine which direction is talking. Line VOX Sensitivity (bits 7 -5) This parameter will control the sensitivity of the VOX from the line side. Mic VOX Sensitivity (bits 4-2) Same as above for the microphone input. "Soft" Parameters (Second Command and On) Mode = 0000 (SpeakerPhone Status) In this mode, the D6571E reports to the HOST the current SpeakerPhone status. Loop Attenuation (bits 2 -0) This indicates the actual amount of loop attenuation currently in use. See the Command Set description for possible values of this parameter. Static Parameters (First Command) R/T ratio (bits 11-10) and T/R ratio (bits 9 -8) This is ratio of transmit and receive signals. This ratio is used to determine which side is speaking. If the T/R ratio is greater than the set level, this is an indication that the microphone side is speaking. Conversely, if the R/T ratio is greater than the set level, this is an indication that the lin e side is speaking. Priority (bit 1) The system has two ways of behaving when neither side is speaking. If this parameter is set to "0" - (no Priority), the attenuation will be equally split between two sides. If, for example, the total loop attenuation is 16 dB, when one side is active, the other side is attenuated by 16 dB. If no one is speaking, both sides will be attenuated by 8 dB. If the parameter is "1" (Near Side Priority), the telephone line side will be attenuated (by 16 dB) and the microphone side will be open (0 dB) when neither side is speaking. VOX Sensitivity This indicates which direction (microphone/speaker) is considered active by the D6571E SpeakerPhone control logic. This is a 4-bit field used to represent the number range from +7 to -8. The most positive values indicate that the signal coming from the microphone is dominate (microphone is speaking). The most negative values (2's complement) indicate that the signal coming from the line side is dominant (telephone line is speaking). Values in the center range can either indicate a transition form one side to the other, or if the value stays at approximately the zero position, that neither side is talking. See the Command Set description for possible values of this parameter. Mode = 0001 (Line Status) The D6571E monitors in this mode the telephone line and reports the result of the CAS detection. The status is updated by the D6571E every 16.5 msec. The D6571E allows to send any other SpeakerPhone command and receive status accordingly without interrupting CAS detection (other SpeakerPhone commands have much shorter response time). When set NEW STATUS bit 24 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet (bit 7) indicates that information in the Line Status has not been read by Host yet. This bit will be set by the D6571E each time when the status is updated by the D6571E. The bit will be reset to 0 each time when the status is read by the Host DTMF, Tone, Ext. Tone (bits 0 - 5) See SpeakerPhone command description and Line Monitor mode description for the bit assignment. New Status (bit # 7) When set indicates that the status has been updated by the D6571E and has not been read yet by the Host. Will be set to 1 by the D6571E each time when the D6571E updates the status. Will be reset to 0 after Host reads the status. Mode = 001 (SpeakerPhone Parameters) In this mode, the D6571E sets the "soft" SpeakerPhone parameters. Speaker Volume (bits 6 -3) This parameter will control the Speaker output signal level. See the Command Set description for possible values of this parameter. Line Volume (bits 8-7) This parameter will control the volume transmitted to the telephone line. See the Command Set description for possible values of this parameter. Loop Attenuation (Bits 2 -0) This parameter defines the target loop attenuation in the system. See the Command Set description for possible values of this parameter. Also see the description at the end of this section for a description of the Loop Adjustment mode. Defines the twist of the DTMF tone generated in the SpeakerPhone mode. Twist defines the attenuation of the lower frequency of the dual frequency signal. DT (bits 5 -4) Defines the threshold for the Dial Tone detector. Level below the threshold is considered noise and would not be detected. Mode = 011 (SpeakerPhone Configuration 2) Defines additional options for the SpeakerPhone. Speaker Noise (bit 7) When the Speaker Noise bit is set, a white noise pulse of duration 250 msec is injected into the speaker. After the pulse the DSP automatically returns to the adaptation mode of the AEC. Line Noise (bit 6) When the Line Noise bit is set, a white noise pulse of duration 250 msec is injected into the line. (This is equivalent to Line Training Type 1 in the SpeakerPhone Configuration Command). After the pulse the DSP automatically returns to the adaptation mode of the LEC. Line Processing (bit 5) Automatic Loop Adjustment (Bits 1-0) This parameter controls the loop attenuation allowing for automatic control or a specific setting for abnormal DS6571E.2 conditions. See the Command Set description for possible values of this parameter. Also see the description at the end of this section for a description of how the SpeakerPhone is controlled in the various modes available. Line Training (Bits 3-2) This parameter sets the type of training of the EEC. The default and recommended mode is Voice Adaptation mode. Alternatively white noise can be injected to the telephone line. Then the D6571E will automatically returns back to the voice adaptation mode. See the Command Set description for possible values of this parameter. Also see the description at the end of this section for a description of how the SpeakerPhone is controlled in the various modes available. Twist (bit 6-7) Mode = 010 (SpeakerPhone Configuration) In this mode, the D6571E sets the echo cancellation and loop adjustment modes. This option allows additional linear processing to reduce the far end residual echo by 6 dB. DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 25 D6571E Data Sheet Mic VOX Position (bit 4) Value (bits 5 -0) Defines position of the Mic VOX detector before the volume compensater (default) or after the volume compensater. Line VOX Response (bits 1-0), Mic VOX Response (bits 3-2) Defines frequency response of the Line and Mic VOX detectors (flat or high pass filter). Mode = 100 (Tone Generation) In this mode, the D6571E will generate tones. Defines the value of the parameter to be set. Speaker Volume and Line Volume is equivalent to the parameters defined by Set SpeakerPhone Parameters command with the exception that this command extends the range of these parameters from - 20 dB to + 20 dB. The Loop Attenuation is the same as in the Set SpeakerPhone Parameters command. R/T and T/R ratios are the same as for the First SpeakerPhone command with the exception that the range of control is extended to 4. Acoustical and Electrical Decoupling should be set by Host according to the actual hardware design Those parameters define the actual volume compensation that will set by the D6571E. If the Speaker Volume is more than 0 dB the D6571E will activate Speaker Volume Compensation. This compensation will be active until AEC will be trained. Then it will be deactivated. The amount of compensation introduced by the D6571E is: Speaker Volume Compensation = Speaker Volume Acoustical Decoupling. The default value of the Acoustical Decoupling is 0 dB. If this parameter is not set by Host the Speaker Volume compensation = Speaker Volume. Similarly if the Line Volume is more than 0 dB the D6571E will activate Line Volume Compensation. This compensation will be active until EEC will be trained. Then it will be deactivated. The amount of compensation introduced by the D6571E is: Line Volume Compensation = Line Volume - Electrical Decoupling. The default value of the Acoustical Decoupling is 0 dB. If this parameter is not set by Host the Speaker Volume compensation = Speaker Volume. Use of this parameters allows to reduce Volume Compensation in the D6571E SpeakerPhone. Please, note that Volume Compensation is valid only at the beginning of the conversation when the echo cancellers are not trained. Control of Available Modes The D6571E SpeakerPhone system actually contains two digital echo cancellers: an adaptive acoustical canceller (AEC) which cancels the acoustical echo 26 = 111: Reserved Tone Index (bits 4-0) and Tone Gain (bits 8-5) Allows to generate 16 DTMF tones from the redefined tone table. No user defined tones are available in the SpeakerPhone mode. Even in case of "warm start" DTMF will be generated according to the "cold start" protocol in this mode. See the Tone Generation command for usage and definitions. To start generation the Host should send Tone Generation command (Mode = 100). To stop generation and return to SpeakerPhone, the HOST should send a Second SpeakerPhone Command other than Tone Generation (for example, Get Speaker Phone Status). Mode = 101 (SpeakerPhone Parameters 2) The Set SpeakerPhone Parameters 2 Command (Mode 101) allows additional control over the range for the Loop Attenuation, Speaker Volume, Line Volume, and T/R and R/T ratios. If extended range is not a requirement, the Set SpeakerPhone Parameters Command (Mode 001) can be used rather than this command. This command also introduces the Acoustical Decoupling and Electrical Decoupling parameters. Parameter (bits 8-6): set. = 000: = 001: = 010: = 011: = 100: = 101: = 110: DS6571E.2 Defines the parameter to be Loop Attenuation Speaker Volume Acoustic Decoupling Line Volume Electrical Decoupling T/R and R/T ratios Reserved DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet between microphone and speaker, and an adaptive electrical echo canceller (EEC) which cancels the echo caused by the 4-to-2 wire telephone line connection. Automatic Loop Adjustment Mode When starting the SpeakerPhone mode, both of the echo cancellers are at their initial point. They are not trained and provide no cancellation. By default the D6571E starts the SpeakerPhone with increased level in order to guarantee that the system will be stable. When the echo cancellers have converged, the additional loop attenuation is removed. The D6571E starts operation with the "target" Loop Attenuation + 12 dB. This attenuation will be reduced to "target" value once echo cancellers get trained. The default setting of the D6571E is: target Loop Attenuation 8 dB, starting point is 20 dB, which will be reduced to 8 dB. The Host can set any desired "target" value of the Loop Attenuation. If the D6571E is unable to provide efficient echo cancellation it will (temporarily) introduce an additional attenuation in order to prevent howling or feedback. This happens if the D6571E determines that it is unable to cancel either acoustical echo or electrical echo by adjusting the echo canceller coefficients. Additional Loop attenuation will be introduced if the Speaker Volume or Line Volume is increased or if the target Loop Attenuation is decreased by Host to ensure the smooth transaction. The D6571E will restore the target loop attenuation selected by Host by reducing the additional attenuation in steps of 4 dB once efficient cancellation is achieved. The Automatic Loop Adjustment mode is the default mode. It can be also selected by the SpeakerPhone configuration command (Mode = 10, Loop Adjustment = 10). If the actual Loop Attenuation is more than 0 dB the SpeakerPhone operates by dynamically distributing the loop attenuation selected between the receive and transmit attenuaters providing natural non-interrupted conversation even with the loop attenuation higher than 0 dB. The D6571E makes a decision as to which direction is talking and then rapidly shifts the attenuation to the opposite direction. Voice Adaptation of the Echo Cancellers The D6571E has two echo adaptive cancellers. Both of them are adapting to speech. When microphone side is speaking the EEC updates its coefficients. The AEC DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 27 updates its coefficients when telephone line side is speaking, The Voice Adaptation mode is default mode of the D6571E. Alternatively the D6571E can send the noise pulse to train echo cancellers. After sending training pulse the D6571E would return to the Voice Adaptation mode. The Voice Adaptation mode without any training pulse is the recommended one. Also if the user desires to change the volume of the speaker, this should be done via the D6571E and not by changing the external speaker amp lification. Re-Compression Mode This mode allows to change compression rate of the recorded message. First command C1 specifies message to be re-compressed. Second command C2 specifies new compression rate. Re-compression starts after C2 command. Host can send C3 command continuously to monitor progress of the re-compression operation. READY bit will be set when re-compression is complete. ERROR bit will be set if message to be recompressed does not exist, or if this a PCM or binary message. If memo ry full is reached the D6571E will set bit MEM FULL and terminate re-compression. Old message will be saved (before recompression), re-compressed message will be deleted. Note: Garbage Collection must be executed before recompression and after each re-compression. D6571E Data Sheet HOST INTERFACE PERFORMANCE The D6571E maximum response times to HOST commands (for Samsung flash) are as follows: MAX STATUS RESPONSE TIME* 1 ms 11- 12 ms 1 frame 50 ms 2 ms 1 sec 1 frame 1 frame 5 ms 5.1 sec 2 ms 4 ms 1 0 ms 30 ms 30 ms + 1.95 sec for each VP sector 2 ms 1 ms 2 ms 1 frame 1 frame 2 ms 2.2 sec 3 sec 40 ms COMMAND Idle Idle after functional modes Record Tail Cut First P layback Second Playback (offset) Next Playback (Continue) Line Monitor Delete Message Garbage Collection Set Current Time Get Time Stamp Get Available Record Time Read Memory Status (VP chksum disabled) Read Memory Status Write Telephone Number Read Telephone Number Tone Generation (three program commands) Tone Generation ( Continue) Voice Prompt Generation SpeakerPhone Initialization GC status after RESET ("Cold Start") GC status after RESET ("Warm Start") * The D6571E maximum response times to HOST commands (for Toshiba flash) are as follows: MAX STATUS RESPONSE TIME* 1 ms 11- 12 ms 1 frame 850 ms 2 ms 1 sec 1 frame 1 frame 10 ms 5.1 sec 2 ms 4 ms 60 ms 60 ms 60 ms + 4.5 sec for each VP sector 40 ms 5 ms 6 ms 1 frame 1 frame 2 ms 2.2 sec 3 sec 250 ms COMMAND Idle Idle after functional modes Record Tail Cut First Playback Second Playback (offset) Next Playba ck (Continue) Line Monitor Delete Message Garbage Collection Set Current Time Get Time Stamp Get Available Record Time Read Memory Status (VP chksum disabled) Read Memory Status Write Telephone Number Read Telephone Number Tone Generation (three program commands) Tone Generation ( Continue) Voice Prompt Generation SpeakerPhone Initialization GC status after RESET ("Cold Start") GC status after RESET ("Warm Start") * with 4M Samsung Flash 1 frame is 30 ms for 8 KHz and 33 ms for 7.2 KHz sampling rate with 4M Toshiba Flash 1 frame is 30 ms for 8 KHz and 33 ms for 7.2 KHz sampling rate DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 28 D6571E Data Sheet SPEAKERPHONE Speaker Volume Receive Attenuator Line Vol. Comp. - Line VOX Spk. Codec1 Out Mic. In Codec0 Line In Line Out Acoustic Echo Canceler CONTROL Dial Tone Detec. Line Echo Canceler Mic. VOX Train pulse Gen. - Volume Compens. Transmit Attenuator Line Out Vol. Figure 3a. Digital Part Acoustic Coupling A4 Spk. Out Codec1 A1 Mic. In Digital Speaker Phone Codec0 Line Out A2 Line In A3 Line Interface 4to2 wire coupling 2 wire Tel. Line Figure 3.b - Acoustic and analog parts Figure 3. Speakerphone Block Diagram DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 29 D6571E Data Sheet Power Down Operation The D6571E needs only one source of power: * VCC - 5VDC that supplies power only during power on, connected to the CODEC, Memory and other components. signal may go high together with Vcc or with delay. Please, note that the D6571E will be in an undefined state before high level of the RESET signal is applied. The RESET signal should go low after Vcc and crystal oscillation have become stable and with minimum delay of 1 msec after WP\ is high. RESET pulse should be at least 10 sec long. When power is being disconnected, the PDN signal should go low and the D6571E will enter power down mode. Then WP\ pin of the Flash should go low with minimum delay of 2 msec after PDN\ is low. The WP\ should go low before the Vcc drops below 4.5V. Please, note that the WP\ pin of the Flash IC should be low when Vcc is below 4.5V. Power fail indication signal is supplied to the D6571E through the PDN pin (pin 22). A RESET input signal is also connected to the D6571E (pin 21). During the power on sequence, the PDN\ signal of the D6571E and the WP\ signal of Flash should go high after Vcc and crystal oscillation have become stable (usually 20-50 msec after Vcc is high). The RESET 4.5V Vcc 4.75V PDN\ t2 t3 WP\ t1 t4 RESET t5 Figure 4. Power Up and Power Down Timing Diagram t1 t2 t3 t4 t5 > 3 msec >0 20-50 msec > 1 msec > 10 sec DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 30 D6571E Data Sheet COMMAND SET 0. IDLE Command: 0000 (15 - 12) Status: 0000 (15 - 12) 000000000000 (11 - 0) 000000000000 (11 - 0) 1. RECORD Command (C1): 0001 (15-12) COMP MODE: 00 (11-10) = 000: = 001: = 010: = 100: = Else: = 1: = 0: = 1: = 0: = 0: = 1: = 1: = 1: COMP MODE (9-7) VOX EN (6) LB DIS (5) GAP (4) 00 (3-2) CLOSE (1) RESUME (0) Low bit rate Middle bit rate High bit rate -law or A-law PCM (no compression) Reserved Start recording on positive VOX detection Start recording without VOX detection Disable loopback of input samples Enable loopback of input samples Gap Coding is disabled Activate Gap Coding Close last message VOX EN: LB DIS GAP CLOSE RESUME Resume recording of the last message (if recording of the last message was suspended by the C2 command with REC MODE = 01) Status (S1): 0001 (15-12) 00 (11-10) COMP MODE (9-7) VOX EN (6) LB DIS (5) GAP (4) 00 (3-2) CLOSE (1) RESUME (0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 29 D6571E Data Sheet Command (C2): 0001 (15-12) REC MODE (11-10) TONE GEN (9) C O M M A N D B I TS (8 - 0) REC MODE 00 00 01 TONE GEN 0 1 0 10 0 10 11 11 1 0 1 Continue recording or stop record with Tail Cut Continue recording or stop record with Tail Cut and generate new tone Suspend Recording - the D6571E terminates recording (message recording can be resumed later or message can be closed, see RESUME and CLOSE bits of the C1 command); Pause Recording (the D6571E stays in Record mode and monitors line but doesn't store data into the flash memory), the D6571E will continue recording after receiving Record command with Rec Mode = 00 Same as above plus new tone will be generated Read Offset, the D6571E will report current offset within the message Change compression rate (allows switching between different compression rates as well as enable and disable gap coding and codec loopback). Switching from/to uncompressed recording is not allowed. When REC MODE = 00 or 10 (Continue Recording or Pause) Command (C2): 0001 (15-12) REC MODE (11-10) TONE GEN (9) TAIL CUT FACTOR(if TONE = 0) or TONE INDEX + GAIN (if TONE = 1) (8 - 0) When TONE GEN = 0: (C2): 0 (9) 00 (8 - 7) TAIL CUT FACTOR (6 - 0) TAIL CUT FACTOR = 0: TAIL CUT FACTOR = non zero: Continue record and monitor status End record and cut message tail in memory by TAIL CUT FACTOR * TCF For 8 KHz sampling rate TCF = 160 ms for TrueSpeech compression and 240 ms for PCM recording For 7.2 KHz sampling rate TCF = 178 ms for TrueSpeech compression and 266 ms for PCM recording When TONE GEN = 1: (C2): 1 (9) TONE GAIN (8 - 5) TONE INDEX (4 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 30 D6571E Data Sheet When REC MODE = 11 and TONE GEN = 1 (Change Compression Rate) Command (C2): 0001 (15-12) NEW BIT RATE 11 (11-10) 1 (9) = 000: = 001: = 010: = 1: = 0: = 0: = 1: NEW BIT RATE (8 - 6) Low bit rate Middle bit rate High bit rate Disable loopback of input samples Enable loopback of input samples Gap Coding is disabled Activate Gap Coding LB DIS (5) GAP (4) 0000 (3-0) LB DIS GAP Change compression rate command allows switching between different compression rates. It allows also to enable/disable gap coding codec loopback. This command does not support switching from/to uncompressed speech recording. Status (S2): 0001 (15-12) REC MODE (11-10) TONE GEN (9) 0 (8) STATUS or TAIL CUT FACTOR (7 - 0) When TONE GEN = 0 and TAIL CUT FACTOR = non zero: (S2) MEM FULL (7) In all other cases: (S2): MEM FULL (7) TAIL CUT FACTOR (6-0) VOX (6) EXT TONE (5) TONE (4) DTMF (3-0) MEM FULL = 1: Memory full condition has been reached. VOX = 1: Speech frame was detected. TONE DTMF EXT TONE = 1: }: } Call Progress Tone was detected. Code for Valid DTMF signal detected. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 31 D6571E Data Sheet When REC MODE = 01 (Suspend Recording) Command (C2): 0001 (15-12) Status (C2): 0001 (15-12) 01 (11-10) 0 (9) 00 (8 - 7) 0000000 (6 - 0) 01 (11-10) 0 (9) 00 (8 - 7) 0000000 (6 - 0) When REC MODE = 11 and TONE GEN = 0 (Read Offset) Command (C2): 0001 (15-12) Status (C2): 0001 (15-12) Notes: The record procedure starts with command C1 and returned status S1. Then Host continuously sends C2 commands. Each command is responded with an S2 status, which includes status information in the STATUS BYTE field. When in Pause the D6571E stays in the Record mode and continues line monitoring, however data is not being stored into the flash memory. Sending C2 command with REC MODE bits 00 (Continue Recording) restores recording process. Recording mode can be suspended by C2 command with REC MODE = 01. The D6571E terminates recording and goes to Idle mode. After performing another operations (other than recording) recording of the same message can be resumed by sending C1 command with RESUME bit set to "1." Suspended message can be closed by C1 command with CLOSE bit set. The Record mode continues and monitoring is performed even when memory is full. The Record mode can be terminated with an IDLE command (for 0 tail cut) or with C2 command with a non zero value of the TAIL CUT FACTOR. Status is given once every frame, after receiving the command. When a TAIL CUT command is received, the status is given after the message tail is cut. 11 (11 - 10) OFFSET (9 - 0) 11 (11-10) 0 (9) 00 (8 - 7) 0000000 (6 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 32 D6571E Data Sheet 2. PLAYBACK Command (C1): 0010 (15 - 12) FLEXI SPEED: 00 (11-10) = 000 = 001 = 010 = 011 = 100 = 101 = 110 = 111 FLEXI SPEED (9 - 7) 1.0 0.5 0.7 1.0 1.3 1.5 1.75 2.0 MESSAGE NUMBER (6 - 0) Status (S1): 0010 (15 - 12) 00 (11 - 10) FLEXI SPEED (9-7) MESSAGE NUMBER (6 - 0) Command (C2): 0010 (15 - 12) 00 (11 - 10) (9 - 0) OFFSET OFFSET is defined in units. For 8 KHz sampling frequency unit is 0.64 sec for TrueSpeech messages and 0.93 sec for PCM messages. For 7.2 KHz sampling frequency unit is 0.704 sec for TrueSpeech messages and 1.03 sec for PCM messages. Status (S2): 0010 (15 - 12) 00 (11 - 10) (9 - 0) OFFSET Command (C3): 0010 (15 - 12) PAUSE PAUSE (11) = 0: = 1: READ OFFSET (10) FLEXI SPEED (9 - 7) 00000 (6 - 0) Continue Playback Pause. READ OFFSET = 1: Read current OFFSET from the beginning of the message DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 33 D6571E Data Sheet Status (S3): (READ OFFSET = 1) 0010 (15 - 12) PAUSE (11) (10) 1 (9 - 0) OFFSET Status (S3): (READ OFFSET = 0) 0010 (15 - 12) PAUSE (11) 0 (10) BIN (9) (8) 0 END OF PLAY (7) (6) 0 (5) EXT TONE (4) TONE (3 - 0) DTMF BIN = 0: =1: Voice Message Binary Message End of message reached. Call Progress Tone detected. Code of valid DTMF signal detected. END OF PLAY = 1: TONE DTMF: EXT TONE = 1: }: } Notes: Play mode starts with C1 and the returned status S1. The second command, C2, sets OFFSET from the beginning of the message. Actual playback starts after returning the S2 status. From then on, continuous monitoring may be done, using command C3. Status is returned each frame, after the command is recognized. Setting PAUSE to '1' stops the playback. Playback is resumed when PAUSE is reset to '0'. Play mode is continued, and status is reported even when the system is in PAUSE, or when end of message has been reached (END OF PLAY = 1). Play mode is terminated with an IDLE command. If the host sends the command to playback binary message, the D6571E will play silence and return BIN bit and END of PLAY bit set to "1." DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 34 D6571E Data Sheet 3. READ MEMORY STATUS Command: 0011 (15 - 12) MODE MODE (11-10) = 00: = 01: = 10: = 11: Get memory status Get product number Reserved Reserved 0000000000 (9 - 0) MODE 00 Command: 0011 (15 - 12) VP CHK DIS 0000 (11-8) = 0: = 1: VP CHK DIS (7) Checksum of the Voice Prompt is calculated Voice Prompt checksum calculation is disabled 0000000 (6 - 0) "Warm start": Status: 0011 VOICE PROMPT STATUS (11) 0 PROGRAM ROM STATUS (9) GARBAGE COLLECTION RECOMMENDED (8) (7) MEMORY FULL (6 - 0) # OF MESSAGES (15-12) (10) = 0: VOICE PROMPT STATUS All activated Voice Prompts are OK or Voice Prompt checksum calculation is disabled. = 1: At least one of the activated Voice Prompt ROMs is not good or not installed or no Voice Prompt ROM is activated in the system = 0: = 1: ROM Test OK. ROM Test failed. PROGRAM ROM STATUS GARBAGE COLLECTION = 1: When tel. number directory was reprogrammed, message(s) RECOMMENDED were deleted or not saved, or when Tail Cut was performed. Will be reset after Garbage Collection. = 1: Flash memory is full, or message directory is full MEMORY FULL "Cold start": Status: 0000 VOICE PROMPT STATUS (11) 0 PROGRAM ROM STATUS (9) (8) 0 0 0000000 (15-12) DS6571E.2 (10) (7) (6 - 0) 35 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet PROGRAM ROM STATUS = 0: ROM Test OK. = 1: ROM Test failed VOICE PROMPT STATUS = 0: External Voice Prompt is OK or Voice Prompt checksum calculation is disabled. = 1: External Voice Prompt ROMs is not good or not installed or no Voice Prompt ROM is activated in the system MODE 01: Status: DIGIT 1 (15 - 12) DIGIT 2 (11 - 8) DIGIT 3 (7 - 4) DIGIT 4 (3 - 0) DIGIT 1..4 in MODE 01: 4 digit Product No = 6571 (0110 0101 0111 0001) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 36 D6571E Data Sheet 4. WRITE TELEPHONE NUMBER Command (C1): 0100 (15 - 12) STORAGE TYPE (11 - 10) ADDRESS (9 - 0) STORAGE TYPE 00 01 10 11 Mode Telephone Number Storage Non-Erasable Storage Host Configurable General Purpose Storage Reserved If STORAGE TYPE = 00 (Telephone Number Storage) Command (C1): 0100 (15 - 12) 000 (11 - 9) DIRECTORY INDEX (8 - 2) WORD INDEX (1 - 0) DIRECTORY INDEX: Telephone number index (0-127) WORD INDEX: 4 digit group index (0-3) Status (S1): 0100 (15 - 12) DIRECTORY FULL (11) 00 (10 - 9) DIRECTORY INDEX (8 - 2) WORD INDEX (1 - 0) DIRECTORY IS FULL: If this bit is set to 1, the D6571E will go to Idle mode after sending this status, without waiting for the next programming command (C2). This bit will be set when words have been programmed too many times without applying Garbage Collection. This bit should be cleared after running Garbage Collection. Command (C2): DIGIT 1 (15 - 12) (11 - 8) DIGIT 2 (7 - 4) DIGIT 3 (3 - 0) DIGIT 4 Status (S2): DIGIT 1 (15 - 12) DIGIT 2 (11 - 8) (7 - 4) DIGIT 3 (3 - 0) DIGIT 4 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 37 D6571E Data Sheet If STORAGE TYPE = 01 (Non-Erasable Storage) Command (C1): 0100 (15 - 12) 0 (11) 1 (10) DIRECTORY INDEX (9 -2) WORD INDEX (1 - 0) DIRECTORY INDEX: Directory index (0-200) WORD INDEX: Word index (0-3) Data can be written to this storage once only and can not be erased or modified. Status (S1): 0100 (15 - 12) DIRECTORY FULL DIRECTORY FULL (11) = 1: 1 (10) DIRECTORY INDEX (9 - 2) WORD INDEX (1 - 0) Specified word has been programmed already. The D6571E will go to Idle mode without waiting for C2 command. Command (C2): DATA (15 - 0) Status (S2): E C H O of D A T A (15 - 0) If STORAGE TYPE = 10 (General Purpose Storage) Command (C1): 0100 (15 - 12) ERASE SECTOR 1 (11) 0 (10) ERASE SECTOR (9) 0000 (8 - 5) SECTOR NUMBER (4 - 0) = 1: The whole sector will be erased. The D6571E will go to Idle mode after ex ecuting this command. = 0: Command defines the sector number that will be accessed by further commands = from 0 to 16. Defines the sector number to be erased or to be accessed by further commands SECTOR NUMBER If ERASE SECTOR = 1 Status (S1): 0100 1 0 1 0 BAD SECTOR 000 SECTOR NUMBER 38 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet (15 - 12) BAD SECTOR = 0: = 1: (11) (10) (9) (8) (7) (6 - 5) (4 - 0) Sector OK Sector doesn't exist If ERASE SECTOR = 0 Status (S1): 0100 (15 - 12) BAD SECTOR = 0: = 1: 1 (11) 0 (10) 0 (9) 0 (8) BAD SECTOR (7) 00 (6 - 5) SECTOR NUMBER (4 - 0) Sector OK Sector doesn't exist/not initialized. The D6571E will go to Idle if sector does not exist. See Self-Test & Initialization command for details of General Purpose Storage Initialization. Command (C2): 0100 (15 - 12) 1 (11) DIRECTORY INDEX (10 - 2) WORD INDEX (1 - 0) DIRECTORY INDEX: Directory index (0-400) WORD INDEX: Word index (0-3) Status (S2): 0100 (15 - 12) DIR FULL (11) DIRECTORY INDEX (10 - 2) WORD INDEX (1 - 0) DIRECTORY FULL = 1: This bit will be set if words in the Sector has been reprogrammed too many times without applying GC or if Directory Index is greater than 400. Command (C3): DATA (15 - 0) Status (S3): ECHO of DATA (15 - 0) Note: Garbage Collection must be run prior and after executing Write to GPS. Read Memory Status command should be sent by Host. Then Garbage Collection should be performed if recommended. The same should be done after writing data to General Purpose Storage. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 39 D6571E Data Sheet 5. READ TELEPHONE NUMBER 0101 (15 - 12) STORAGE TYPE (11 - 10) ADDRESS (9 - 0) STORAGE TYPE 00 01 10 11 Mode Telephone Number Storage Unerasable Storage Host Configurable General Purpose Storage Reserved If STORAGE TYPE = 00 (Telephone Number Storage) Command (C1): 0101 (15 - 12) 000 (11 - 9) DIRECTORY INDEX (8 - 2) WORD INDEX (1 - 0) DIRECTORY INDEX: Telephone number index (0-127) WORD INDEX: 4 digit group index (0-3) Status (S1): DIGIT 1 (15 - 12) DIGIT 2 (11 - 8) (7 - 4) DIGIT 3 (3 - 0) DIGIT 4 If STORAGE TYPE = 01 (Non-Erasable Storage) Command (C1): 0101 (15 - 12) 0 (11) 1 (10) DIRECTORY INDEX (9 -2) WORD INDEX (1 - 0) DIRECTORY INDEX: Directory index (0-200) WORD INDEX: Word index (0-3) Status (S1): E C H O of D A T A (15 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 40 D6571E Data Sheet If STORAGE TYPE = 10 (General Purpose Storage) Command (C1): 0101 (15 - 12) SECTOR NUMBER 1 (11) 0 (10) 0 (9) 0000 (8 - 5) SECTOR NUMBER (4 - 0) commands = from 0 to 16. Defines the sector number to be erased or to be accessed by further Status (S1): 0101 (15 - 12) 1 (11) 0 (10) 0 (9) 0 (8) BAD SECTOR (7) 00 (6 - 5) SECTOR NUMBER (4 - 0) BAD SECTOR = 0: = 1: Sector OK Sector doesn't exist/not initialized. The D6571E will go to Idle if sector does not exist. See Self-Test & Initialization command for details of General Purpose Storage Initialization. Command (C2): 0101 (15 - 12) 1 (11) DIRECTORY INDEX (10 - 2) WORD INDEX (1 - 0) DIRECTORY INDEX: Directory index (0-400) WORD INDEX: Word index (0-3) Status (S2): DATA (15 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 41 D6571E Data Sheet 6. TONE GENERATION Command: 0110 (15-12) TONE INDEX MASTER GAIN 00 (11 - 10) 0 (9) MASTER GAIN (8-5) TONE INDEX (4-0) - defines the Tone Index to be generated according to the table mentioned above. - defines the master gain of this tone. The actual gain will be from -24 dB (gain code 1111) to +6 dB (gain code 0000). The gain code equals: 0 =< (GainX + MASTER GAIN)< =15 Where GainX (X=0,1) has either the default value (for indexes 0 to C) or a value defined by a New Tone Definition command (indexes from D to 1F). The default value of Gain0 is 1 and the default value of Gain1 is 0. To continue to generate the same tone and monitor the line, the same command should be issued every frame. To change either tone or gain on the fly, a new TONE INDEX or a MASTER GAIN should be sent in the command. An IDLE command terminates Tone Generation mode. Status: 0110 (15-12) TONE DTMF } EXT TONE } = 1: : 0000000 (11-6) Call Progress Tone detected. Code of Valid DTMF signal detected. EXT TONE (5) TONE (4) DTMF (3-0) In case of "warm start" 13 pre-defined tones (including 12 DTMF tones) can be generated from the table provided in the D6571E. The remaining 19 entries are user defined and may be programmed one time. See "New Tone Initialization" below. "Warm Start" table Tone Index 0 1 2 3 4 5 6 7 8 9 A B C D - 1F DTMF code No Tone 1 2 3 4 5 6 7 8 9 * 0 # Freq 0 697 697 697 770 770 770 852 852 852 941 941 941 User Defined Tones Freq 1 1209 1336 1477 1209 1336 1477 1209 1336 1477 1209 1336 1477 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 42 D6571E Data Sheet In case of "cold start" the D6571E allows generation of the following 16 DTMF tones. No user defined tones is available in case of "cold start." "Cold Start" table Tone Index 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 DTMF code No Tone 1 2 3 4 5 6 7 8 9 * 0 # A B C D Freq 0 697 697 697 770 770 770 852 852 852 941 941 941 697 770 852 941 Freq 1 1209 1336 1477 1209 1336 1477 1209 1336 1477 1209 1336 1477 1633 1633 1633 1633 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 43 D6571E Data Sheet NEW TONE INITIALIZATION The D6571E allows definition of tones 13-31 in the table. Tones can be programmed one time from the IDLE mode. The Host can do this by using a sequence of four Tone Initialization commands. These commands can define gain and/or frequency for positions 13 - 31 in the tone generation table (Indexes D - 1F). This command is available in case of "warm start" only. Command (C1): 0110 (15-12) (11-10) 10 0 0 0 00 (9-5) (4-0) TONE INDEX TONE INDEX - defines the table entry that will be redefined. Status (S1): 0110 10 00 ENTRY NOT FREE (7) (6-5) 00 TONE INDEX (15-12) (11-10) (9-8) (4-0) ENTRY NOT FREE - Will be set to "1" if the actual entry was previously programmed. If this is the case, the D6571E will return to IDLE mode after sending this status without waiting for the next programming command (C2). Command (C2): 0110 (15-12) GAIN Status (S2): 0110 (15-12) 00 (11-10) 00 (9-8) GAIN 1 (7-4) GAIN 0 (3-0) 00 (11-10) defines gain of the tone. 00 (9-8) GAIN 1 (7-4) GAIN 0 (3-0) Command (C3): FREQUENCY FACTOR FOR TONE #0 ( 15 - 0 ) Status (S3): FREQUENCY FACTOR FOR TONE #0 ( 15 - 0 ) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 44 D6571E Data Sheet Command (C4): FREQUENCY FACTOR FOR TONE #1 ( 15 - 0 ) Status (S4): FREQUENCY FACTOR FOR TONE #1 ( 15 - 0 ) After new tone definition has been made in the table, any of the new defined tones can be generated in the usual way. FSK Modem This mode allows support of the CID function, -5, as well as general purpose FSK receive and transmit mode with optional HDLC framing and optional RS -232 encapsulation. Command (C1): 0110 (15 - 12) FSK Config = 0000: = 0001: = 0010: = 0011: 00 (11 - 10) 1 (9) NO CS (8) Master Gain (7 - 4) FSK Configuration (3 - 0 ) FSK Transmit first, FSK Receive second FSK Transmit only FSK Receive only FSK Receive first, FSK Transmit second Master Gain - Defines the master gain of Transmission. The actual gain will be from -24 dB (gain code 1111) to +6 dB (gain code 0000). The gain code equals: 0 =< (GainX + MASTER GAIN)< =15 NO CS = 1: = 0: FSK (CID) detector does not expect Channel Seizure signal FSK (CID) detector expects Channel Seizure signal prior message Notes: * Command C2 - C5 are setup commands. For Receive Only mode value of the C2 - C5 commands are not important. Host can send, for example, Idle commands. * The order of Receive Command (C7) and Transmit Command (C6) depends on the FSK Configuration. For "Transmit before Receive" mode C7 command will precede C6. Status (S1): 0110 (15 - 12) DS6571E.2 0 (11) HDLC (10) 1 (9) NO CS 0000 (8 - 4) FSK Configuration (3 - 0 ) 45 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet Set Number of Leading Mark Bits Command (C2): Number of Leading Mark Bits (15 - 0) Status (S2): Echo: Number of Leading Mark Bits (15 - 0) Set Number of Trailing Mark Bits Command (C3): Number of Trailing Mark Bits (15 - 0) Status (S3): Echo: Number of Trailing Mark Bits (15 - 0) RS232 and HDLC Configuration Command (C4): Number of Stop bits (15 - 14) Number of Start bits (13 - 12) 0000000 (11 - 5) CRC Swap (4) CRC Order (3) CRC Invert (2) CRC Dir (1) CRC Init Value (0) CRC Init Value (Initial value of the CRC Register) CRC Dir (Feeding order of input bytes to CRC) CRC Invert (Invert CRC checksum before Tx) CRC Order (CRC Tx bit order) CRC Swap (Swap CRC bytes order) For CID detection the default values: DS6571E.2 = 0: 0000 = 1: FFFF = 0: LSB first = 1: MSB first = 0: not inverted = 1: inverted = 0: LSBit first = 1: MSBit first = 0: Not swapped = 1: Swapped Number of Stop bits = 1 46 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet Number of Start bits = 1 Status (S4): Number of Stop bits (15 - 14) Number of Start bits (13 - 12) 0000000 (11 - 5) CRC Swap (4) CRC Order (3) CRC Invert (2) CRC Dir (1) CRC Init Value (0) Number of bytes in Frame Command (C5): 0110 (15 - 12) Status (S5): 0110 (15 - 12) Number of Bytes in Frame (11 - 0) Number of Bytes in Frame (11 - 0) At this point Transmit or Receive command should be sent to start actual data receive/transmit Transmit Command Command (C6): 0110 (15 - 12) CODE = 000: = 001: = 010: = 011: = 100: 0 (11) CODE (10 - 8) BYTE (for Load Byte Command) or 0 0 0 0 0 0 0 0 for other modes (7 - 0 ) Monitoring Command Load Byte to FIFO Reset FIFO (Clean Tx FIFO) Start Generation (start leading mark bits generation) Stop Generation (stop data generation, start mark bit generation and Receiving data) Note: C6 command can be sent during data stream or mark bit generation without interrupting the mode. If an Idle command received instead C6 command the FSK mode will terminated. Upon receiving Stop Generation command the DSP should stop generating data from the FIFO (upon completion of the current byte) and start mark bits generation. Status (S6): 0110 (15 - 12) READY RECEIVE DS6571E.2 RECEIVE (11) = 1: = 1: READY (10) Number of bytes in the FIFO (9 - 0) Frame generation is complete. The D6571E started generating trailing "mark" bits. Trailing "mark" bits generation is complete. The D6571E is in Receive mode. DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 47 D6571E Data Sheet If transmit FIFO is empty, mark bits will be generated. During mark bits generation the host may send load data command or monitoring command. Idle command will terminate mode. Transmit Upon getting Start Generation command the DSP will start generating Mark bits according to the value set by the Set Number of Leading bits command above. Some default value should be set (for example, 300 as required for CID). During mark bits generation the host may send load data command or monitoring command. Idle command will terminate mode. Data to Tx FIFO can be loaded before Start Generation command is received or after Start Generation command. If Tx FIFO is empty "mark" bits will be generated. After generating "Number of Bytes in Frame" bytes the DSP will start generating trailing mark bits sequence. At this moment the DSP will set bit READT to "1." The number of trailing mark bits is defined by the Set Number of Trailing bits command. At the same time the DSP goes to receive mode and prepares input buffers for data reception. After mark bits generation is complete, the DSP sets RECEIVE bit in the status word to `1." Receive after Transmit The DSP will start accumulating input data immediately after it completes mark bits generation (data accumulated in the input buffers during mark bits generation will not be processed). The DSP will stay in the FSK Receive mode at least until next host command is received. Normally the Host can not send Idle command during trailing mark bits generation because Idle command will terminate mode immediately. Idle command can be sent only after RECEIVE bit is high . This means that transition from FSK Transmit to FSK Receive mode will be performed without going via Idle mode. Receive Command Command (C7): 0110 (15 - 12) CODE = 000: = 001: = 010: = 011: = 100: = 101: = 110: = 111: 1 (11) CODE (10 - 8) 00000000 (7 - 0 ) Monitoring Command Move Received Byte to Host Monitor Received Mark Bits (before first data byte) Reset FIFO (Clean Rx FIFO) HDLC Monitoring Monitor Received Channel Seizure signals (before first data byte) Reserved Stop Receiving Data. The DSP will go to Idle Mode or FSK Transmit according to C1. * C7 Command will be sent during FSK data Receive. Note: C7 command can be sent during data stream or mark bit detection without interrupting the mode. If an Idle command received instead C7 command the FSK Receive mode will terminated and the DSP will go to Idle Mode. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 48 D6571E Data Sheet Monitoring Command Command (C7): 0110 (15 - 12) Status (S7): 0110 (15 - 12) 1 (11) 0 (10) Number of bytes in the FIFO (9 - 0) 1 (11) 000 (10 - 8) 00000000 (7 - 0 ) Move Received Byte to Host Command (C7): 0110 (15 - 12) 1 (11) 001 (10 - 8) 00000000 (7 - 0 ) Status (S7): 0110 (15 - 12) = 0: = 1: 0 00 ND DATA BYTE (7 - 0) ND (11 (10 - 9) (8) Data Byte Detected No Data Byte Detected (DATA BYTE = 00H) Monitor Received Mark Bits Command (C7): 0110 (15 - 12) 1 (11) 010 (10 - 8) 00000000 (7 - 0 ) Status (S7): 0110 (15 - 12) 1 (11) Current Number of Received Mark Bits (10 - 0) Reset FIFO Command (C7): 0110 (15 - 12) DS6571E.2 1 (11) 011 (10 - 8) 00000000 (7 - 0 ) 49 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet Status (S7): 0110 (15 - 12) 1 (11) 000000000 (10 - 0) HDLC Monitoring Command (C7): 0110 (15 - 12) 1 (11) 100 (10 - 8) 00000000 (7 - 0 ) Status (S7): 0110 (15 - 12) Frame Ready 0 (11) = 1: = 0: = 1: = 0: 000000000 (10 - 2) Frame is received, CRC result is ready Frame is not received yet CRC Checksum is incorrect CRC Checksum is correct CRC Error (1) Frame Ready (0) CRC Error Monitor Channel Seizure Signal Command (C7): 0110 (15 - 12) 1 (11) 101 (10 - 8) 00000000 (7 - 0 ) Status (S7): 0110 (15 - 12) 1 (11) Current Number of Received Channel Seizure Bits (10 - 0) Stop Receiving Data Command (C7): 0110 (15 - 12) 1 (11) 111 (10 - 8) 00000000 (7 - 0 ) Status (S7): 50 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet 0110 (15 - 12) 1 (11) 000000000 (10 - 0) 7. LINE MONITOR Command: 0111 (15 - 12) CID (11) 0 CID (10) (9) 0 (8) NO CS 00 LB DIS (4 - 0) 00000 (7 - 6) (5) = 0: Line Monitor Mode = 1: CID demodulation = 1: Disable loopback of input samples = 0: Enable loopback of input samples = 1: CID detector does not expect Channel Seizure signal (off-hook BellCore protocol) = 0: CID detector expects Channel Seizure signal prior message (on-hook BellCore, V.23) LB DIS NO CS If CID = 0 Status: 0111 (15 - 12) 000000 (11 - 6) EXT TONE (5) TONE (4) DTMF (3 - 0) TONE DTMF } EXT TONE } = 1: Call progress tone detected. : Code of Valid DTMF signal detected. Note: Status is returned after recognizing the command, in each frame. Line monitoring is ended by an IDLE command. If CID = 1 Status: 0111 (15 - 12) CID BYTE : ND = 0: = 1: 000 (11 - 9) (8) ND CID BYTE (7 - 0) ASCII byte of a CID information. CID Byte Detected no CID Byte is detected (CID Byte = 00H in this case) The Command / Status sequence should be repeated until the entire CID message is received. An average rate is 3-4 command/status sequences per frame when the CID data is being detected. If the D6571E does not detect CID information during last full frame the D6571E will return status with ND bit set. In case of no detection the command/status rate is 1 per frame. CID byte = 00H in case of no detection. When NO CS bit is set the D6571E performs CID detection according to the BellCore off-hook protocol (detection of the Seizure Signal is not required), while if NO CS bit is 0 the D6571E expects DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 51 D6571E Data Sheet detection of the Seizure Signal (V.23 and on-hook Bell 202 protocol). 8. DELETE MESSAGE Command: 1000 (15 - 12) GC ERASE GC (11) ERASE (10) 000 (9-7) MESSAGE NUMBER (6 - 0) = 0: Delete message defined by MESSAGE NUMBER = 1: Perform Garbage Collection (MESSAGE NUMBER is not relevant) = 1: Erase entire flash including Voice Prompt If GC = 0, ERASE = 0 Status: 1000 (15-12) E 0 (11) = 0: = 1: 000 (10-8) (7) E MESSAGE NUMBER (6 - 0) Indicates valid message. Indicates non-valid message. If GC = 1, ERASE = 0 Status: 1000 (15-12) E 1 (11) 000 (10-8) (7) E (6 - 1) 000000 (0) COLD START = 0: Sectors have been erased (not the last one). = 1: The last sector was erased (procedure has been completed). COLD START = 0: "Warm Start" = 1: "Cold Start" - Flash should be initialized before being accessed. In case of Garbage Collection, the status is sent when the procedure has completed erasing sector. Idle is automatically resumed after the sector erase. The Garbage Collection erases one sector per command. As a general procedure the Host should send Garbage Collection commands until all sector are erased. If this is the last sector (or no sectors has to be erased) the E status bit is 1. Garbage Collection is stopped automatically upon detection of a Power Down condition. If ERASE = 1 Status: 1000 (15 - 12) 0 (11) 1 (10) (9 - 0) 0000000000 To perform erase of the entire flash the command 8400H should be sent twice. In response to each command the D6571E DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 52 D6571E Data Sheet will return status 8400H. The erase operation will be performed upon receiving the second Erase command. The second status will be returned upon completion of the erase operation. The erase operation can be performed in case of "cold" and in case of "warm start." The Erase operation must NOT be performed on the flash that has been never initialized. 9. SET/MODIFY TIME STAMP Allows storage of two words associated with the next recorded message. Command (C1): 1001 (15 - 12) WORD NUMBER (11) MODIFY (10) 000 (9 - 7) MESSAGE NUMBER (6 - 0) WORD NUMBER = 0: Set first word = 1: Set second word care, MODIFY = 0: Initial setting of the Time Stamp prior recording (MESSAGE NUMBER - don't Time Stamp will be attached to the next recorded message) = 1: Modify Time Stamp after message has been recorded (MESSAGE NUMBER specifies the number of the message the Time Stamp attached to) Status (S1): 1001 (15 - 12) WORD NUMBER (11) (10) MODIFY (9 - 7) 000 (6 - 0) MESSAGE NUMBER Command (C2): TIME STAMP (15 - 0) Status (S2): TIME STAMP (15 - 0) Note: The Modify Time Stamp command allows modification of any bit of the Time Stamp from 1 to 0. No modification from 0 to 1 is allowed. Therefore it is recommended to set all unused bits to 1 by the Set Time Stamp command. 10. GET TIME STAMP Command: 1010 (15 - 12) WORD NUMBER (11) 0000 (10 - 7) MESSAGE NUMBER (6 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 53 D6571E Data Sheet WORD NUMBER Status: TIME STAMP (15 - 0) = 0: Get first word = 1: Get second word DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 54 D6571E Data Sheet 11. GET AVAILABLE RECORD TIME Command: 1011 (15 - 12) Status: 1011 (15 - 12) AVAILABLE TIME (11 - 0) (11 - 0) 000000000000 AVAILABLE TIME: Available time in units of 0.833 seconds for high bit rate without gap coding and 8 KHz sampling rate (1.111 seconds for mid bit rate without gap coding; 1.82 seconds for low bit rate without gap coding). For 7.2 KHz sampling rate the value of the unit is 10% higher for each compression rate. 12. SELF TEST AND INITIALIZATION Command (General): 1100 (15-12) TEST MODE TEST MODE (11 - 8) = 0001: = 0011: = 0100: = 0101: = 0110: = 0111: = 1000: = 1001: = 1010: = 1011: = 1100: = 1101: TEST/INITIALIZATION PARAMETERS (7 - 0) Flash Initialization Flash Fast Self-Test CODEC Hardware Selection Flash Hardware Selection CODEC Loopback Algorithm Co nfiguration Volume Control Storage Configuration Program Sensitivity GPIO access Reserved Reserved DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 55 D6571E Data Sheet TEST MODE = 0001 (Flash Initialization) Command: 1100 (15 - 12) 0001 (11-8) Flash Size (7-5) 4 Mbit Reserved Reserved 16 Mbit (4) (3) 0 DEVICE 3 (2) (1) DEVICE 2 (0) DEVICE 1 DEVICE 0 Flash Size = 0: (Size of one flash device) = 1: = 2: = 3: DEVICE 0 .. 3 (For Flash Size 0) DEVICE 0 (For Flash Size 3) DEVICE 1,2,3 Status: 1100 (15 - 12) 0001 (11-8) = 1: Device is installed = 0: Device is not installed = 1: Device is installed = 0: Device is not installed = Don't care Flash Size (7-5) 4 Mbit Reserved Reserved 16 Mbit (4) 0 DEVICE 3 (3) DEVICE 2 (2) DEVICE 1 (1) (0) DEVICE 0 Flash Size = 0: (Size of one flash device) = 1: = 2: = 3: DEVICE 0 .. 3 (For Flash Size 0) DEVICE 0 (For Flash Size 3) DEVICE 1,2,3 = 0: Device is good = 1: Device is not installed or bad = 0: Device is good = 1: Device is not installed or bad =1 TEST MODE = 0011 (Flash Fast Self Test): Command: 1100 (15 - 12) 0011 (11-8) Flash Size (7-5) 4 Mbit Reserved Reserved 16 Mbit 0 (4) DEVICE 3 (3) DEVICE 2 (2) DEVICE 1 (1) (0) DEVICE 0 Flash Size = 0: (Size of one flash device) = 1: = 2: = 3: DEVICE 0 .. 3 (For Flash Size 0) DEVICE 0 (For Flash Size 3) DS6571E.2 = 1: Device is installed = 0: Device is not installed = 1: Device is installed = 0: Device is not installed DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 56 D6571E Data Sheet DEVICE 1,2,3 Status: 1100 (15 - 12) 0011 (11-8) Flash Size (7-5) (4) 0 DEVICE 3 (3) DEVICE 2 (2) DEVICE 1 (1) (0) DEVICE 0 = Don't care Flash Size = 0: (Size of one flash device) = 1: = 2: = 3: DEVICE 0 .. 3 (For Flash Size 0) DEVICE 0 (For Flash Size 3) DEVICE 1,2,3 4 Mbit Reserved Reserved 16 Mbit = 0: Device is installed = 1: Device is not installed or bad = 0: Device is installed = 1: Device is not installed or bad =1 TEST MODE = 0101 (Flash Hardware Selection) Command: 1100 (15 - 12) 0101 (11-8) E/I VP (7) # of VP ROM (6-4) 00 (3-2) Flash Type (1-0) Flash Type = 01: Toshiba = 10: Samsung = 1: External VP ROM is used (available only in the case of one 4 Mbit flash device or no flash) = 0: Internal (on flash) VP area is used = 000: = 001: = 010: = 011: = 100: No VP One VP sector Two VP sectors Tree VP sectors Four VP sectors E/I VP # of VP ROM installed Status: 1100 (15 - 12) 0101 (11-8) E/I VP (7) # of VP ROM (6-4) 00 (3-2) Flash Type (1-0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 57 D6571E Data Sheet TEST MODE = 0100 (Codec Hardware Selection) Command: 1100 (15-12) SAMP 0100 (11-8) SAMP (7) M/S (6) (5) CODEC TYPE (4-3) OUTPUT CODEC (2) (1) INPUT CODEC (0) LAW 0 = 1: 8 KHz sampling rate (Default) = 0: 7.2 KHz sampling rate = 0: Master mode = 1: Slave mode (Default) = 0: Fixed mode (TI codec) (Default) = 1: Variable mode (OKI codec) = 0: Input data will be read from codec 0. In the SpeakerPhone mode both codec are used (Default). This setting should be used in the SpeakerPhone mode and while taking signal from the telephone line. = 1: Input data will be read from codec 1. = 00: Output data will be written to CODEC0 in all the modes except SpeakerPhone. In the SpeakerPhone mode both codecs are used. CODEC0 is connected to the telephone line and CODEC1 to the speaker. (Default). This mode should be used in the SpeakerPhone mode. = 01: Output data will be written all the time to CODEC1. = 10: Output data will be written all the time to CODEC0. = 11: Output data will be written all the time to both CODECs. = 0: -law codec interface (default) = 1: A-law codec interface M/S CODEC TYPE INPUT CODEC OUTPUT CODEC LAW Status: 1100 (15-12) 0100 (11-8) SAMP (7) M/S (6) (5) CODEC TYPE OUTPUT CODEC (4-3) (2) INPUT CODEC (1) LAW (0) 0 TEST MODE = 0110 (CODEC Loopback) Command: 1100 (15 - 12) Status: 1100 0110 00000000 0110 (11-8) 00000000 (7 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 58 D6571E Data Sheet (15 - 12) (11-8) (7 - 0) Note: The system will continue in CODEC Loopback mode until an Idle command is received. TEST MODE = 0111 (ALGORITHM CONFIGURATION) Command: 1100 (15 - 12) Sub Mode: = 000: = 001: = 010: = 011: = 100: 0111 (11 - 8) DTMF CAS configuration AGC configuration Filter configuration FSK Configuration Sub Mode (7 - 5) XXXXX (4 - 0) Submode = 000 (DTMF) Command: 1100 (15 - 12) 0111 (11 - 8) 000 (7 - 5) 0000 (4 - 1) 16 DTMF (0) 16 DTMF = 0: the D6571E reports detection of the 12 DTMF digits = 1: the D6571E reports detection of the 16 DTMF digits Status: 1100 (15 - 12) 0111 (11 - 8) 000 (7 - 5) 0000 (4 - 1) 16 DTMF (0) Submode = 001 (CAS configuration) Command (C1): 1100 (15 - 12) Status (S1): 1100 (15 - 12) 0111 (11 - 8) 001 (7 - 5) 0000 (4 - 1) 0 (0) 0111 (11 - 8) 001 (7 - 5) 0000 (4 - 1) 0 (0) Command (C2): CAS LEVEL (15 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 59 D6571E Data Sheet Status (S2): CAS LEVEL (15 - 0) Command (C3): THRESHOLD LEVEL (15 - 0) Status (S3): THRESHOLD LEVEL (15 - 0) Submode = 010 (AGC Configuration) Command: 1100 (15 - 12) Enable AGC 0111 (11 - 8) = 0: Disable AGC = 1: Enable AGC Read/Write X 0 1 = 00: = Else: 010 (7 - 5) Enable AGC (4 ) Parameters (3) Read/Write (2) AGC # (1 - 0) Parameters 0 1 1 AGC # Enable/Disables AGC, the DSP enters Idle mode after this command. Read Current Value of the parameter. Set new values for the all parameters. AGC Reserved If Parameters = 0: Command C1: 1100 (15 - 12) Enable AGC 0111 (11 - 8) = 0: Disable AGC = 1: Enable AGC = 00: = Else: AGC Reserved 010 (7 - 5) Enable AGC (4 ) 0 (3) 0 (2) AGC # (1 - 0) AGC # Status S1: 1100 0111 010 Enable AGC 0 0 AGC # DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 60 D6571E Data Sheet (15 - 12) (11 - 8) (7 - 5) (4 ) (3) (2) (1 - 0) If Parameters = 1: Command C1: 1100 (15 - 12) 0111 (11 - 8) 010 (7 - 5) 0 (4 ) 1 (3) Read/Write (2) AGC # (1 - 0) Read/Write =0: =1: = 00: = Else Read Current Value of the parameter. Set new values for the all parameters. AGC Reserved AGC # Status S1: 1100 (15 - 12) 0111 (11 - 8) 010 (7 - 5) 0 (4 ) 1 (3) Read/Write (2) AGC # (1- 0) If Read/Write = 0: Command C2: 1100 (15 - 12) Parameter # 0111 (11 - 8) = 0000: = 0001: = 0010: = 0011: = 0100: = 0101: = Else: 0 (7) 0 (6) Parameter # (5 - 2) 00 (1 - 0) Optimum Level Eopt. Minimum Level Emin. Gain Level Eatt Silence Level Esil. Hold Time Decay Time Reserved Note: If Idle command will be detected instead of C2 command the DSP will go to Idle mode. After C2 command the D6571E will expect next command which either C1 command (to read another parameter) or Idle command. Status S2: Parameter Value DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 61 D6571E Data Sheet PARAMETER: Optimum Level Eopt, Minimum Level Emin, Gain Threshold Level Eatt, Silence Level Esil are in [dB]. Range of values [0, 2, 4, ..., 56] decimal in steps of 2 dB. Hold Time Thold in 20 ms units. Range of values [0 .. 32000] Decimal, corresponds to 0 .. 640 sec Decay Time Tdecay in 100 ms units. Range of values [0 .. 360], corresponds to 0 .. 36 sec DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 62 D6571E Data Sheet The actual level of the parameter should be calculated as (3 dBm - Parameter Value) Parameter Default Parameter Value Default Parameter Value Default Value (decimal representation) (hex representation) (physical meaning) Eopt 4 dB 0004 - 1 dBm* Emin 22 dB 0016 - 19 dBm* Eatt 36 dB 0024 - 33 dBm* Esil 46 dB 002E - 43 dBm* Thold 100 0064 2.0 sec Tdecay 10 000A 1.0 sec * - Calculated as (3 - Parameter Value) dBm If Read/Write = 1: If Read/Write = 1 the next 6 commands should contain the values of the main AGC parameters. First four parameters are in dBs. Decimal representation of the Parameter Value should be calculated as (Physical Value - 3). Command should contain hex representation of the Parameter Value. Command C2: Optimum Level Eopt[dB] (0 -15) Status S2: Optimum Level Eopt[dB] (0 -15) Command C3: Minimum Level Emin [dB] (0 -15) Status S3: Minimum Level Emin[dB] (0 -15) Command C4: Gain Threshold Level Eatt [dB] (0 -15) Status S4: Gain Threshold Level Eatt[dB] (0 -15) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 63 D6571E Data Sheet Command C5: Silence Threshold Level Esil[dB] (0 -15) Status S5: Silence Threshold Level Esil [dB] (0 -15) Command C6: Hold Time [20ms] (0 -15) Status S6: Hold Time [20ms] (0 -15) Command C7: Decay Time Tdecay [100 ms] (0 -15) Status S7: Decay Time Tdecay [100 ms] (0 -15) Sub Mode = 011 (Filter Enable/Disable) Command C1: 1100 (15 - 12) HPF Enable = 0: = 1: = 00: = Else: 0111 (11 - 8) 011 (7 - 5) ENABLE (4) 0 (3) 0 (2) FILTER # (1 - 0) Disable Filter Enable Filter Encoder (default) High Pass Filter Reserved FILTER # Status S1: 1100 (15 - 12) DS6571E.2 0111 (11 - 8) 011 (7 - 5) ENABLE (4) 0 (3) 0 (2) FILTER # (1 - 0) 64 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet Submode = 100 (FSK) Command: 1100 (15 - 12) Status: 1100 (15 - 12) 0111 (11 - 8) 100 (7 - 5) SL (4) SENSITIVITY LEVEL (3 - 0) 0111 (11 - 8) 100 (7 - 5) SL (4) SENSITIVITY LEVEL (3 - 0) SENSITIVITY LEVEL Sensitivity Adjustment (dB) 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 TEST MODE = 1000 (Volume Control): Command: 1100 (15 - 12) 1000 (11-8) SV (7) 00 (6-5) Volume Level (4 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 65 D6571E Data Sheet SV - set volume: = 1: set the volume according to the Volume level field = 0: read the current Volume level Volume Level - set level of the signal playing to the codec. When SV = 1 then volume level is set by DSP according to the table below: VOLUME LEVEL 00000 00001 00010 00011 00100 00101 00110 00111 01000 01001 01010 01011 01100 01101 01110 01111 10000 10001 10010 10011 10100 10101 10110 10111 11000 11001 11010 11011 11100 11101 11110 11111 Signal level (dB) +16 +14 +12 +10 +8 +6 +4 +2 0 -2 -4 -6 -8 -10 -12 -14 -16 -18 -20 -22 -24 -26 -28 -30 -32 -34 -36 -38 -40 -42 Mute Mute Status: 1100 (15 - 12) 1000 (11-8) SV (7) 00 (6-5) Volume level (4 - 0) Note: After RESET, the system sets all parameters into default values. Once volume is changed, the system operates with this value until the new "Volume level" command is issued. This command can be issued during "RECORD", "LINE MONITOR", "PLAYBACK", and "VOICE PROMPT" modes without interrupting these modes. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 66 D6571E Data Sheet TEST MODE = 1001 (Storage Configuration): Command (C1): 1100 (15 -12) # of GPS sectors = 0: = 1 .. 16 1001 (11 - 8) 000 (7 - 5) # of GPS Sectors (4 - 0) no GPS available (default) defines number of sectors available for GPS Status (S1): 1100 (15 -12) 1001 (11 - 8) 000 (7 - 5) # of GPS Sectors (4 - 0) TEST MODE = 1010 (Programmable sensitivity): Command: 1100 (15 - 12) 1010 (11 - 8) SIGNALING SYSTEM SELECTION (7-6) (5) SL (4 - 0) SENSITIVITY LEVEL SL - set sensitivity level: = 1: set sensitivity level for chosen signaling system according to the sensitivity level field = 0: read the current sensitivity level for chosen signaling system = 00: DTMF detector = 01: VOX detector = 10: Call Progress Tone detector = 11: CAS detector SIGNALING SYSTEM SELECTION SENSITIVITY LEVEL 00000 00001 00010 00011 00100 00101 00110 00111 01000 01001 01010 DS6571E.2 Sensitivity Adjustment (dB) -16 -14 -12 -10 -8 -6 -4 -2 0 +2 +4 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 67 D6571E Data Sheet 01011 01100 01101 01110 01111 10000 10001 10010 10011 10100 10101 10110 10111 11000 11001 11010 11011 11100 11101 11110 11111 +6 +8 +10 +12 +14 +16 +18 +20 +22 +24 +26 +28 +30 +32 +34 +36 +38 +40 +42 Disabled Disabled Status: 1100 (15 - 12) 1010 (11 - 8) SIGNALING SYSTEM SELECTION (7-6) (5) SL (4 - 0) SENSITIVITY LEVEL Note: After RESET, the system sets all parameters into default values. Once sensitivity is changed, the system operates with this value until the new "Programmable sensitivity" command is issued. This command can be issued during "RECORD", "LINE MONITOR", "PLAYBACK", "TONE GENERATION" and "VOICE PROMPT" modes without interrupting these modes. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 68 D6571E Data Sheet TEST MODE = 1011 (GPIO Access) Command (C1): 1100 (15 - 12) WR 1011 (11 - 8) WR/RD\ (7) DIR/VALUE\ (6) 000000 (5 - 0) = 0: read current setting = 1: write new setting = 0: read/write value of the pin = 1: read/write configuration of the pin DIR/VALUE Each bit of the C2 command (for WR = 1) and S1 status represents GPIO of the D6571E. The following is a bit assignment of the C2/S1. Bit Assignment: 0000000000 5 (15 -6) (5) 4 (4) 3 (3) GPIO 2 (2) 1 (1) 0 (0) WR = 0 Command (C1): 1100 (15 - 12) Status (S1): DATA (15 - 0) 1011 (11 - 8) 0 (7) DIR/VALUE\ (6) 000000 (5 - 0) The meaning of the bits in the status S1 depending on the bit DIR/VALUE of the C1 command. DIR/VALUE\ 0 Meaning of the status bit For pins configured as inputs: = 0: input pin reads low level = 1: input pin reads high level For pins configured as outputs: = 0: currently pin outputs low level = 1: currently pin outputs high level = 0: currently pin is configured as input = 1: currently pin is configured as output 1 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 69 D6571E Data Sheet WR = 1 Command (C1): 1100 (15 - 12) DIR/VALUE 1011 (11 - 8) = 0: read/write value of the pin = 1: read/write configuration of the pin 1 (7) DIR/VALUE\ (6) 000000 (5 - 0) Status (S1): 1100 (15 - 12) 1011 (11 - 8) WR/RD\ (7) DIR/VALUE\ (6) 000000 (5 - 0) Command (C2): DATA (15 - 0) The meaning of the bits in the command C2 depending on the DIR/VALUE of the C1 command. DIR/VALUE\ 0 Meaning bits in the C2 For pins configured as inputs: Don't care ---------------------------------------------------------For pins configured as outputs: = 0: pin will output low level = 1: pin will output high level = 0: pin is being configured as input = 1: pin is being configured as output Suggested Value 0 ---------------- 1 Status (S2): DATA (15 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 70 D6571E Data Sheet 13. VOICE PROMPT PLAYBACK Command: 1101 (15 - 12) LOAD 0 1 0 1 LOAD (11) SET SECTOR (10) FLEXI SPEED (9 - 7) NUMBER xxxx Phrase # to load Sector # NUMBER (6 - 0) MODE Voice Prompt Playback / Line Monitor Load new phrase to play from pre -defined sector Define sector the next phase will be loaded from Program Voice Prompt into the Flash SET SECTOR 0 0 1 1 The default sector is #0. Therefore, to playback from sector 0 no SET SECTOR command is required. To playback from any other sector, the SET SECTOR command is required prior to phrase load. Once the sector has been changed this will remain active until a new SET SECTOR command is issued. In this case, Voice Prompt command with SET SECTOR = 1 and LOAD = 0 should be sent. This command will define new sector number (bits 2..0). Next LOAD command (with LOAD bit = 1) will load the phrase from the new sector. If both LOAD bit and SET SECTOR bit a re set to 1, the D6571E enters Program Voice Prompt mode. LOAD and PLAY Voice Prompt mode (SET SECTOR bit = 0) Command: 1101 (15 - 12) LOAD LOAD (11) (10) 0 (9 - 7) FLEXI SPEED (6 - 0) PHRASE NUMBER = 1: Load new phrase number for playback = 0: Monitor Status PHRASE NUMBER: The serial number of the speech phrase located in the EPROM/ROM vocabulary, which is to be played back. FLEXI SPEED: Same as in the PLAYBACK command. Status: 1101 (15 - 12) LOAD (11) = 1: = 1: = 1: =: READY (10) 00 (9 - 8) END OF PLAY (7) 0 (6) EXT TONE (5) TONE (4) DTMF (3 - 0) READY END OF PLAY TONE DTMF } EXT TONE } Ready for loading a new phrase for playback End of phrase reached. Call Progress Tone detected. Code of valid DTMF signal detected. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 71 D6571E Data Sheet Note: A playback sequence starts with a command with LOAD set at 1, and a definition of a PHRASE NUMBER. Status monitoring can be done by issuing command with LOAD set at 0. When READY = 1 is detected, a new phrase can be loaded. To play a sequence of phrases, a new command with LOAD bit set at 1 should be issued after n frames (n=0..X) from the moment READY bit is detected as 1. This will introduce n frame delays between the phrases. The monitoring commands (bit LOAD = 0) may have any number in the PHRASE NUMBER field (for example 0 or the next phrase number to be played). The new phrase number will not be accepted until READ bit has become 1. END OF PLAY bit indicates that the last frame is going to be played. An IDLE command ends the mode. SET SECTOR (SET SECTOR bit =1, LOAD bit = 0) Command: 1101 (15 - 12) (11) 0 (10) =00: =01: =10: =11: 1 (9 - 7) FLEXI SPEED (6 - 3) 0000 (2 - 0) SECTOR NUMBER SECTOR NUMBER: Selects Voice Prompt Sector # 0 (default) Selects Voice Prompt Sector # 1 Selects Voice Prompt Sector # 2 Selects Voice Prompt Sector # 3 Status: 1101 (15 - 12) LOAD (11) READY (10) 00 (9 - 8) (7) END OF PLAY (6) 0 (5) 0 (4) TONE (3 - 0) DTMF SET SECTOR command can be sent any time during phrase playback instead of monitoring command. The playback will not be interrupted. The D6571E will return status of the monitoring command. The next phrase will be loaded (by the command with LOAD bit = 1) from the newly defined sector. Sector remains active until another SET SECTOR command is issued. By default SECTOR 0 is active. SET SECTOR command can be sent from Idle mode. In this case the D6571E activates a new sector, returns echo of the command in the status word, and remains in Idle mode. PROGRAM VOICE PROMPT (SET SECTOR bit = 1, LOAD bit = 1) Command (C1): 1101 (15 - 12) Status (S1): 1101 (15 - 12) ERROR DS6571E.2 11 (11-10) (9) 0 (8) 0 (7 - 0) 000000000 11 (11-10) (9) 0 ERROR (8) (7 - 0) 000000000 =1: Four Voice Prompt sectors exist already. DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 72 D6571E Data Sheet Command (C2): 1101 (15 - 12) Status (S2): 1101 (15 - 12) ERROR 11 (11-10) (9) 0 ERROR (8) (7 - 5) 000 TRANSFER NUMBER OF WORDS (4 - 0) 11 (11-10) (9) 0 (8) 0 (7 - 5) 000 (4 - 0) NUMBER OF WORDS =1: More than 64K were programmed. Data Transfer Command: (DC1...DC16) Voice Prompt Data (15 - 0) Data Transfer Status: (DS1...DS16) Echo of Voice Prompt Data (15 - 0) When Host sends the Voice Prompt command with bits 11 and 10 set to "1" the D6571E enters the Program Voice Prompt mode. The command C1 should be sent only once. Error bit will be sent if two Voice Prompt sectors exist already in the flash. To program a portion of the Voice Prompt, the HOST sends the C2 command with number of words that Host is going to transmit to the D6571E (usually 16). The D6571E will respond with the status S2 with the number of words that the D6571E will accept (usually 16). Then actual data transfer begins. After loading 16 words of data the Host will send another C2 command to start loading next portion of data. If more than 64K bytes is loaded the D6571E will set ERROR bit in the S2 status. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 73 D6571E Data Sheet 14. SPEAKER PHONE Command (C1): 1110 (15 - 12) R/T RATIO (11 - 10) T/R RATIO (9 - 8) 2 dB 4 dB 6 dB 8 dB 10 dB 12 dB 14 dB 16 dB 2 dB 4 dB 6 dB 8 dB 10 dB 12 dB 14 dB 16 dB (7 - 5) LINE SENSITIVITY (4 - 2) MIC SENSITIVITY (1) PRIORITY (0) 0 LINE SENSITIVITY: = 000: = 001: = 010: = 011: = 100: = 101: = 110: = 111: MIC. SENSITIVITY: = 000: = 001: = 010: = 011: = 100: = 101: = 110: = 111: The line and microphone sensitivity determine the Signal-to-Noise Ratio (SNR) at which the voice detectors for the transmit and receive directions will be activated. PRIORITY = 0: = 1: No priority Near end priority The priority control is used to determine the behavior of the system when both directions are silent. In the no priority mode, the loop attenuation is distributed equally between the receive and transmit directions when both sides are silent. If the priority bit is set, the line side is given all the attenuation and the microphone (near end) has priority. T/R RATIO - transmit/receive ratio = 00: = 01: = 10: = 11: = 00: = 01: = 10: = 11: 1.2 1.5 2.0 2.5 1.2 1.5 2.0 2.5 R/T RATIO - receive/transmit ratio If the T/R ratio is greater than the set value, then the microphone side is speaking. Conversely, if the R/T ratio is greater than the set value, then the line side is speaking. Status (S1): 1110 (15 - 12) DS6571E.2 R/T RATIO (11 - 10) T/R RATIO (9 - 8) LINE SENSITIVITY (7 - 5) (4 - 2) MIC SENSITIVITY (1) PRIORITY (0) 0 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 74 D6571E Data Sheet Command (C2): 1110 (15 - 12) MODE (11 - 9) PARAMETERS (8 - 0) MODE: = 0000: Get SpeakerPhone Status = 0001: Get Line Monitor Status = 001: Set SpeakerPhone Parameters = 010: Set SpeakerPhone Configuration = 011: Set SpeakerPhone Configuration 2 = 100: Tone Generation = 101: Set SpeakerPhone Parameters 2 = 110: Reserved = 111: Reserved MODE: = 0000: (Get SpeakerPhone Status) Command: 1110 (15-12) Status: 1110 (15-12) (11-8) (7-4) Direction (3) 0 (2-0) Loop Attenuation 0000 (11-8) (7 - 0) 00000000 Loop Attenuation: This indicates the amount of loop attenuation currently in use. = 000 0 dB = 001 -4 dB = 010 -8 dB = 011 -12 dB = 100 -16 dB = 101 -20 dB = 110 -24 dB = 111 -28 dB Direction: This indicates which direction (microphone/speaker) is considered active by the DSP SpeakerPhone control logic. This is a 4 bit field used to represent the number range from +7 to -8. The most positive values indicate that the signal from the microphone side is dominant (microphone speaking). The most negative values indicate that the signal from the line side is dominant (telephone line speaking). Values in the center of the range can either indicate a transition from one side to the other, or if the value stays at approximately zero, indicates that neither side is talking. = 0111 = 0110 = 0101 = 0100 = 0011 +7 +6 +5 +4 +3 Microphone side is speaking. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 75 D6571E Data Sheet = 0010 = 0001 = 0000 = 1111 = 1110 = 1101 = 1100 = 1011 = 1010 = 1001 = 1000 +2 +1 0 -1 -2 -3 -4 -5 -6 -7 -8 Both sides silent (constant energy) or transition Line side is speaking MODE = 0001: (Get Line Monitor Status) Command: 1110 (15-12) Status: 0111 (15 - 12) NEW: 1: 0: 0000 (11 - 8) (7) NEW (6) 0 (5) EXT TONE (4) TONE (3 - 0) DTMF 0001 (11-8) (7 - 0) 00000000 status has been updated by the D6571E, has not been read by Host status does not contain information that has not been read by Host The status will be updated by the D6571E each 1/2 of a frame (16.5 ms for 7.2 kHz sampling rate and 15 ms for 8 kHz sampling rate). The NEW bit will be set each time when the D6571E updates status. The New bit will be reset each time when Host reads Line Status. MODE = 001: (Set SpeakerPhone Parameters) Command: 1110 (15-12) 001 (11-9) LINE VOLUME (8-7) SPEAKER VOLUME (6-3) (2-0) LOOP ATTENUATION LINE VOLUME: Volume to the Line Out = 00 = 01 = 10 = 11 +8 dB +4 dB 0 dB MUTE DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 76 D6571E Data Sheet SPEAKER VOLUME: Volume to the Speaker Out = 0000 = 0001 = 0010 = 0011 = 0100 = 0101 = 0110 = 0111 = 1000 = 1001 = 1010 = 1011 = 1100 = 1101 = 1110 = 1111 +14 dB +12 dB +10 dB +8 dB +6 dB +4 dB +2 dB 0 dB -2 dB -4 dB -6 dB -8 dB -10 dB -12 dB -14 dB MUTE LOOP ATTENUATION: Combined gain of receiver and transmitter attenuaters = 000 = 001 = 010 = 011 = 100 = 101 = 110 = 111 Status: 1110 (15-12) 001 (11-9) LINE VOLUME (8-7) (6-3) SPEAKER VOLUME (2-0) LOOP ATTENUATION 0 dB -4 dB -8 dB -12 dB -16 dB -20 dB -24 dB -28 dB Full-Duplex Operation Natural Half-Duplex Operation MODE = 010: (Set SpeakerPhone Configuration) Command: 1110 (15-12) Twist: 010 (11-9) 0 (8) = 00: = 01: = 10: = 11: Twist (7-6) DT (5-4) Line Training Type (3-2) (1-0) Automatic Loop Adjustment -2 dB (default value) -4 dB -6 dB 0 dB Defines the twist of the DTMF tone generated in the SpeakerPhone mode. Twist defines the attenuation of the lower frequency of the dual frequency signal. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 77 D6571E Data Sheet DT: = 00: = 01: = 10: = 11: 800 (6 dB less sensitive than default) 400 (default) 300 (3 dB more sensitive than default) 200 (6 dB more sensitive than default) DT defines the threshold for the Dial Tone detector. Level below the threshold is considered noise and would not be detected. LINE TRAINING TYPE: = 00: = 01: = 10: = 11: Reserved White noise injected into the line (250 msec duration) Reserved Voice adaptation (default) By default the DSP is in voice adaptation mode. White noise can be injected to the line, after the noise pulse the DSP automatically returns to voice adaptation mode. Automatic LOOP Adjustment: = 00: = 01: = 10: = 11: Reserved Reserved Automatic loop adjustment (default) Reserved The automatic loop adjustment mode is the default and is the only mode available. Status: 1110 (15-12) 010 (11-9) 0 (8) Twist (7-6) (5-4) DT Line Training Type (3-2) Automatic Loop Adjustment (1-0) MODE = 011: (Set SpeakerPhone Configuration 2) Command: 1110 (15-12) Speaker Nois e: 011 (11-9) 0 (8) Speaker Noise (7) Line Noise (6) Line Process (5) Mic VOX position (4) Mic VOX Response (3-2) Line VOX Response (1-0) = 0: Off (default) = 1: On When the Speaker Noise bit is set, a white noise pulse of duration 250 msec is injected into the speaker. After the pulse the DSP automatically returns to the adaptation mode of the AEC. Line Noise: = 0: Off (default) = 1: On When the Line Noise bit is set, a white noise pulse of duration 250 msec is injected into the line. (This is equivalent to Line Training Type 1 in the SpeakerPhone Configuration Command). After the pulse the DSP automatically returns to the adaptation mode of the LEC. Line Processing: = 0: Off (default) = 1: On DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 DS6571E.2 78 D6571E Data Sheet This option allows additional linear processing to reduce the far end residual echo by 6 dB. Mic VOX Position: = 0: Mic VOX detector is before the volume compensater (compatible with the D6385A, D6386A, D6455A) = 1: Mic VOX detector is after the volume compensater Line VOX Response: = 00: = 01: = 10: = 11: = 00: = 01: = Else: High Pass Filter (default) Flat Reserved Reserved High Pass Filter (default) Flat Reserved Mic VOX Response: Status: 1110 (15-12) 011 (11-9) 0 (8) Speaker Noise (7) Line Noise (6) (5) Line Process Mic VOX position (4) (3-2) Mic VOX Response (1-0) Line VOX Response MODE = 100: (Tone Generation) Command: 1110 ( 15-12) 100 (11-9) (8-5) TONE GAIN (4-0) TONE INDEX See the TONE GENERATION command for usage and TONE GAIN and TONE INDEX definitions. Each command/status interaction generates a tone 1 frame long (33 ms for 7.2 kHz sampling rate and 30 ms for 8 kHz sampling rate). Tone Index: 0 - 16 (only 16 standard DTMF tones are available in the SpeakerPhone mode) Only the tones from the "standard" tone table are available in SpeakerPhone mode. No tones, defined by New Tone Definition command, are available in SpeakerPhone mode. Gain of these tones is defined by the TONE GAIN parameter. Twist is defined by Twist Parameter (SpeakerPhone Configuration command). Status: 1110 (15-12) 100 (11-9) (8-5) TONE GAIN (4-0) TONE INDEX MODE = 101: (Set SpeakerPhone Parameters 2) The Set SpeakerPhone Parameters 2 Command (Mode 101) allows additional control over the range for the Loop Attenuation, Speaker Volume, Line Volume, and T/R and R/T ratios. If extended range is not a requirement, the Set SpeakerPhone Parameters Command (Mode 001) can be used rather than this command. This command also introduces the Acoustical Decoupling and Electrical Decoupling parameters. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 79 D6571E Data Sheet Command: 1110 (15-12) Parameter: = 000: = 001: = 010: = 011: = 100: = 101: = 110: = 111: Value: (11-9) 101 (8-6) Parameter (5-0) Value Loop Attenuation Speaker Volume Acoustic Decoupling Line Volume Electrical Decoupling T/R and R/T ratios Reserved Reserved = Value of the parameter to be set For Speaker Volume and Line Volume (Parameter = 001 or 011): Value = 000000 = 000001 = 000010 = 000011 = 000100 = 000101 = 000110 = 000111 = 001000 = 001001 = 001010 = 001011 = 001100 = 001101 = 001110 = 001111 = 010000 = 010001 = 010010 = 010011 = 010100 = 010101 Volume +20 dB +18 dB +16 dB +14 dB +12 dB +10 dB +8 dB +6 dB +4 dB +2 dB 0 dB -2 dB -4 dB -6 dB -8 dB -10 dB -12 dB -14 dB -16 dB -18 dB -20 dB MUTE For Loop Attenuation (Parameter = 000): Value = 000000 = 000001 = 000010 = 000011 = 000100 = 000101 = 000110 DS6571E.2 Attenuation 0 dB 4 dB 8 dB 12 dB 16 dB 20 dB 24 dB DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 80 D6571E Data Sheet = 000111 28 dB For Acoustical and Electrical Decoupling (Parameter = 010 and 100): Value = 000000 = 000001 = 000010 = 000011 = 000100 = 000101 = 000110 = 000111 = 001000 = 001001 = 001010 Volume 0 dB -2 dB -4 dB -6 dB -8 dB -10 dB -12 dB -14 dB -16 dB -18 dB -20 dB For R/T and T/R ratios (Parameter = 101): Bits 0,1,2 are for T/R ratio Bits 3,4,5 are for R/T ratio Value = 000 = 001 = 010 = 011 = 100 = 101 = 110 = 111 Status: 1110 (15 - 12) 101 (11 - 9) Parameter (8 - 6) Value (5 - 0) Ratio 1.2 1.5 2.0 2.5 3.0 3.5 4.0 Reserved DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 81 D6571E Data Sheet 16. Re-Compress Message Command (C1): 1111 (15 - 12) Status (S1): 1111 (15 - 12) 111 (11 - 9) 00 (8 - 7) Message Number (6 - 0) 111 (11 - 9) 00 (8 - 7) Message Number (6 - 0) Command (C2): 1111 (15 - 12) New Compression Rate: 00 (11 - 10) = 000: = 001: = 010: = Else: New Compression (9 - 7) 00 (6 - 5) GAP (4) 0000 (3 - 0) Re-compress message to the low bit rate Re-compress message to the middle bit rate Re-compress message with high bit rate Reserved GAP = 0: Re-compress message without "gap coding" activated = 1: Re-compress message with "gap coding" Status (S2): 1111 (15 - 12) MEM FULL ERROR 00 (11 - 10) New Compression (9 - 7) 00 (6 - 5) GAP (4) 0000 (3 - 0) = 1: There is no memory available to re-compress message = 1: Error is detected. Errors: - message does not exist - PCM message - Binary message Command (C3): 1111 (15 - 12) Status (S3): 1111 (15 - 12) READY (11) ERROR (10) 00 (9 - 8) MEM FULL (7) 00 (6 - 5) 0 (4) 0000 (3 - 0) 00 (11 - 10) 0 (9 - 7) 00 (6 - 5) 0 (4) 0000 (3 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 82 D6571E Data Sheet Recompression starts with the C1 command (starts the mode and define message number) followed by the C2 command which defines new bit rate that the message will be recompressed to. Actual decompression starts after C2 command. Host keeps sending monitoring command during decompression. When re -compression is complete the D6571E returns status with bit READY set to "1." If Memory Full condition is reached the D6571E will send status with bit MEM FULL set and will terminate re-compression. If Idle command is detected instead of monitoring command the re-compression will be terminated. Garbage Collection should be run prior to and after Re-Compression mode. Read Memory Status command should be sent by Host. Then Garbage Collection should be run if recommended. The same should be performed after recompression of each message. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 83 D6571E Data Sheet FUNCTIONAL BLOCKS The block diagram in Figure 5 shows the D6571E functional blocks and interface functional blocks and interface. CODEC DATA/CONTROL DSP CLOCK XTAL CLOCK GENERATOR CODEC INTERFACE uLAW ENCODER I/O ADDRESS DECODER DSP I/O SELECT CONTROL BUS DSP CORE DSP DATA BUS FLASH INTERFACE ADDRESS MUX HOST COMMUNICATION INTERFACE MEMORY ADDRESS BUS FLASH READ/WRITE FLRD/FLWR FLASH DATA HOST CONTROL HOST DATA BUS Figure 5. D6571E-11 Block Diagram DSP CORE At the heart of the chipset is the DSP core. All of the software algorithms such as compression, decompression, tone detection, tone generation, and echo cancellation run on that processor. The DSP core controls the system, memory and message management. The DSP program ROM is masked internally. The DSP is connected via an internal bus to most of the other modules within the D6571E-11 chip. ADDRESS MUX CODEC INTERFACE Address MUX controls external memory select signals and memory address bus. FLASH MEMORY INTERFACE The Flash memory interface provides access to the Flash memory message storage. The interface supports up to 4 Flash devices with 4 Mbit configuration and 1 device with 16 Mbit configuration. CLOCK GENERATOR D00 91A This block provides clock signals to the DSP core and all the internal devices. It also includes clock rate reduction in Power Down mode. -law/A-law ENCODER This interface provides converting linear code (14-bit) to 8-bit -law or A-law PCM code. The CODEC Interface implements the data transfer and synchronization functions required interfacing the DSP with the CODEC chip. The data transfer to/from the CODECs is serial. The CODEC interface supports fixed and variable rate CODECs. I/O ADDRESS DECODER The I/O Address Decoder generates the required I/O read and write pulses for the internal DSP peripheral devices. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 84 D6571E Data Sheet HOST D6571E COMMUNICATION INTERFACE The HOST communication port is a 16-bit bi-directional register. The D6571E will access this register internally by one 16-bit wide access. The HOST assesses this register via the 8-bit bus in two accesses: first low byte then high byte. After the HOST writes a command to the High byte of this register the D6571E accepts this command. When the D6571E writes a status word to the communication register it sets the ACK pin low which is connected to the HOST for indication. The HOST can use this pin as an interrupt or poll this signal periodically. When the HOST reads the high byte of this register the DSP sets the ACK bit high. The choice of high/low byte for the HOST will be made by the HI/ LO pin. The HOST should read the low byte of the status word first, then the hig h byte. Table 1. Host Interface Signals Pin Name HSTDB[0..7] Type (*) Input/Output Input Input Output Input Input Description HOST 8 -bit data bus HOST READ line from register HOST WRITE line into register Flag to HOST status byte ready High or Low byte select When High, interface ** disables Host HSTRD HSTWR ACK HI/ LO CS * Input and Output are referenced to the D6571E-11. ** Connection to ground recommended when not used. 8051 P0 D6571E-11 HSTDB[0-7] RD WR HI/LO INT HSTR HSTW HI/LO ACK CS The D6571E will send a status word only in response to a Host command except for the initial Garbage Collection Status word. Figure 6. Host Interface D6571E - 8051 HOST READ CYCLE HSTRD HI/LO tdr thr HSTDB(0-7) ACK HOST WRITE CYCLE HSTWR HI/LO tsw tww thw HSTDB(0-7) DATA VALID DATA VALID Figure 7. D6571E - Host Interface Timing Data thr = 2 ns minimum tdr = 25 ns maximum thw = 5 ns minimum tsw = 30 ns minimum tww = 55 ns minimum DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 83 D6571E Data Sheet Figure 8. Chipset Interconnection with One Samsung 4 Mbit Flash Memory Device and 36.864 MHz crystal DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 84 D6571E Data Sheet Figure 9. Chipset Interconnection with One Samsung 4 Mbit Flash Memory Device, One 64Kx 8 Voice Prompt EPROM, and 40.960 MHz crystal DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 85 D6571E Data Sheet Voice Data Compression. The D6571E receives linear PCM data via the Host Data Bus, compresses it with the TRUESPEECH compression algorithm, and transmits it back to the Host via the Host Data Bus. All three compression rates and "gap coding" compression techniques are available. This mode is fully functional in case of "cold start" Voice Data Decompression. The D6571E receives speech data previously compressed with the TRUESPEECH compression algorithm via the Host Data Bus. The D6571E decompresses the data, and transmits it back to the Host via the Host Data Bus in linear PCM format. This mode is fully functional in case of "cold start." Important Note About Data Transfer. Two formats will be used by the D6571E to transfer data (Byte Transfer and Word Transfer). For uncompressed speech data, Word Transfer will be used and the Host or D6571E will use bits 15-0 of the Host Data Bus to send a word of data. For compressed TRUESPEECH data, Byte Transfer will be used and the Host or D6571E will use the high byte (bits 15-8) of the Host Data Bus to send a byte of data. When Byte Transfer is utilized, the HI/LO pin (pin 4) of the D6571E should be set to high during the command/status sequence. In this manner, the high byte of the Host Data Bus (bits 15-8) will be used to transfer a byte of data. With the HI/LO pin set to high the Host can still send a word to the D6571E, but the low byte will be ignored by the D6571E during Byte Transfer. OPERATIONAL DESCRIPTION TRUESPEECH Data Pump from CODEC to Host In this mode, the D6571E receives speech data from the CODEC, performs the compression with the TRUESPEECH algorithm, and transmits the compressed data via the Host Data Bus in bursts of words for each frame. The size of bursts depends on the compression rate can be between 0 to 48 bytes per cycle. DATA TRANSFER MODES FUNCTIONAL DESCRIPTION For most TAD applications, the D6571E receives speech data from the CODEC, compresses it with the TRUESPEECH compression algorithm and stores ("records") it into the Flash. To playback previously compressed speech, the D6571E retrieves data from the Flash, decompresses it, and plays it back via CODEC. However, for some applications it is necessary to transmit/receive voice data to/from the Host. This allows, for example, the ability to store compressed speech data in another storage media or transfer it to another location. To enable these functions, the following speech files transferring modes via Host Data Bus are implemented in the D6571E. Voice Data Pump from CODEC to Host. The D6571E receives data from the CODEC and transmits via the Host Data Bus in real time. Two submodes are available. In one of them, the D6571E performs TRUESPEECH speech compression and then transmits it to the Host. All three compression rates and "gap coding" compression techniques are available. In the other submode, the D6571E transmits data without compression in -law or A-law PCM format. This mode is fully functional in case of "cold start." Voice Data Pump from Host to CODEC. The D6571E receives speech data via Host Data Bus and plays it back via the CODEC in real time. Two submodes are available. In one of them the D6571E receives data previously compressed with TRUESPEECH coder, performs decompression, and then plays it back via the CODEC. In the other submode the D6571E receives the data from the Host in -law or A-law PCM format and plays it via the CODEC without decompression. This mode is fully functional in case of "cold start." Data Storage (from Host to Flash). The D6571E retrieves data via the Host Data Bus and stores it into the Flash. The D6571E is capable of storing binary (non speech) messages. Data Retrieval (from Flash to Host). The D6571E retrieves data from the Flash and transmits it via the Host Data Bus. DS6571E.2 The TRUESPEECH compression algorithm implemented in the D6571E is Host programmable and is able to utilize three rates as well as "gap coding". The first Data Pump command C1 defines compression rate (see command set for details). DSP GROUP, INC., 3120 SCOTT BOULEVARD 86 SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet Data Pump mode can be terminated by command C2 with a non-zero Stop parameter. This mode can be terminated by issuing an Idle command instead of command C2. In addition, at each command (C1, C2, C3) the D6571E checks bits 15-12 for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. Instead of sending the Data Pump C2 command, the Host can send a Set Volume Level command to set the volume level. The D6571E will respond with Data Pump Status S2 as if `continue record' command was sent. For the appropriate volume level settings, refer to the description of the Set Volume Level command in the Self-Test and Initialization mode (Test Mode = 1000). It is the Host's responsibility to perform communication quickly enough to avoid a real time problem. The length of time it takes to process one frame, including data transfer to the Host, should be no longer than 1 frame (30 ms for 8 KHz sampling rate and 33 ms for 7.2 KHz sampling rate). The performance of the mode is the same in case of "cold start." PCM Data Pump from CODEC to Host In this mode, the D6571E receives -law or A-law PCM data from the CODEC and transmits this data via Host Data Bus in bursts of 120 words per frame in real time. The first Data Pump command C1 defines the mode and activates or disables audio loop back. To process each frame the Host issues command C2 and then reads status S2 of this command. No rmally, status S2 will contain line status (VOX, Tone, and DTMF detection). Upon receiving status S2, the Host sends command C3 with the number of words the Host expects to receive from the D6571E. The D6571E returns status S3 with the actual number of words to be transferred from D6571E to Host. In this mode, the number of words is 120. The actual data transfer begins upon receiving status S3. The Host issues 120 data transfer commands and receives 120 words of speech data. In the first Data Pump command C1, the Host can activate or disable audio loop back in the Data Pump mode. To start processing each frame the Host issues command C2. The D6571E returns status S2 of this command to Host. Normally status S2 will contain telephone line status (VOX, Tone, and DTMF detection). Upon receiving status S2 the Host issues command C3. Command C3 contains the number of bytes that the Host expects to receive from the D6571E in this particular frame. In status S3, the D6571E returns the actual number of bytes that the D6571E is going to transmit to the Host in this frame. The actual number of bytes to be transmitted depends on the compression rate and may vary from frame to frame. After the Host reads the status S3, the actual data transfer begins. The Host sends to the D6571E Data Transfer commands (the number of commands depends on the number `Transfer Number of Bytes') and gets a byte of data for each Data Transfer command that is sent. The Host sends the high byte (bits 15-8) of a Data Transfer Command. In response to a command the D6571E uses the high byte (bits 15-8) of the status word to send a byte of data to the Host (Data Transfer status). With Byte Transfer, the HI/LO pin (pin 4) of the D6571E should be set to high during the command/status sequence. In this manner, the high byte of the Host Data Bus will be used to transfer a byte of data. The Host can still send a word to the D6571E, but the low byte will be ignored by the D6571E during Byte Transfer. After sending the last byte of data to the Host, the D6571E is ready to process another frame. The Host then sends the next C2 command to start processing the next frame. In this manner, the D6571E compresses and transmits data frame by frame in real time. While in Data Pump mode, the D6571E monitors the telephone line and reports this data to the Host in S2. Command C2 can instruct the D6571E to generate a tone while in Data Pump mode. Status S2 will contain telephone line status in this case as well. DS6571E.2 The Host uses the high byte (bits 15-8) to send a Data Transfer command to the D6571E. The Host can still send a word to the D6571E, but the low byte will be ignored by the D6571E. In response to each command, the D6571E will return the Data Transfer status, which contains a word of data. After transmitting a burst of DSP GROUP, INC., 3120 SCOTT BOULEVARD 87 SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet words the Host issues command C2 to start processing the next frame. While in Data Pump mode, the D6571E monitors the telephone line and reports this data to the Host in S2. Data Pump mode can be terminated by command C2 with a non-zero Stop parameter. This mode can be terminated by issuing an Idle command instead of command C2. In addition, at each command (C1, C2, C3) the D6571E checks bits 15-12 for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. Instead of sending the Data Pump C2 command, the Host can send a Set Volume Level command to set the volume level. The D6571E will respond with Data Pump Status S2 as if `continue record' command was sent. For the appropriate volume level settings, refer to the description of the Set Volume Level command in the Self-Test and Initialization mode (Test Mode = 1000). It is the Host's responsibility to perform communication quickly enough to avoid a real time problem. The length of time it takes to process one frame, including data transfer to the Host, should be no longer than 1 frame. The performance of the mode is the same in case of "cold start." Upon receiving S3, the actual data transfer begins. The number of Data Transfer commands is determined by the information in bits 0-7 of status S3. Upon receiving each of these commands, the D6571E returns to the Host an echo of this command in the Data Transfer status. The Host uses the high byte (bits 15-8) send a byte of data to the D6571E (Data Transfer Command). In response to a command the D6571E uses the high byte (bits 15-8) to echo the byte of data that was received (Data Transfer status). After the last Data Transfer status is sent the Host can send another C2 command to start the processing cycle again. With Byte Transfer, the HI/LO pin (pin 4) of the D6571E should be set to high during the command/status sequence. In doing so, the high byte of the command/status will be used to transfer a byte of data. The Host can still send a word to the D6571E, but the low byte will be ignored by the D6571E during Byte Transfer. In this manner, the D6571E decompresses and transmits data frame by frame in real time. If the Host is going to transmit less data than is necessary for the D6571E to decompress the next frame, the D6571E will report this in bit IND (insufficient data) of S3. While in Data Pump mode, the D6571E monitors the telephone line and reports this data to the Host in S2. Command C2 can instruct the D6571E to generate a tone while in Data Pump mode. Status S2 will contain telephone line status in this case as well. This mode can be terminated by issuing an Idle command instead of command C2. In addition, at each command (C1, C2, C3) the D6571E checks bits 15-12 for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. Instead of sending the Data Pump C2 command, the Host can send a Set Volume Level command to set the volume level. The D6571E will respond with Data Pump Status S2 as if `continue record' command was sent. For the appropriate volume level settings, refer to the description of the Set Volume Level command in the Self-Test and Initialization mode (Test Mode = 1000). TRUESPEECH Data Pump from Host to CODEC In this mode the D6571E receives compressed speech in bursts of data via the Host Data Bus, decompresses it, and plays it back via the CODEC. Upon receiving the first Data Pump command C1 the D6571E enters the mode and returns status S1 to the Host. This command should only be issued once for this mode. Upon receiving status S1 the Host issues command C2 to start processing a frame. The D6571E responds by returning to the Host, status S2 with telephone line status information (DTMF and Tone Detection). Then, the Host issues command C3 with the number of bytes that the Host is planning to transmit in the current frame. The D6571E returns status S3 with the actual number of bytes the D6571E will accept from the Host in this frame. The number of bytes to be transferred in each frame depends upon the compression rate and may vary from frame to frame. DS6571E.2 It is the Host's responsibility to perform communication quickly enough to avoid a real time problem. The length of time it takes to process one frame, inclu ding data transfer to the Host, should be no longer than 1 frame. DSP GROUP, INC., 3120 SCOTT BOULEVARD 88 SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet number of Data Transfer commands. Each of these commands contains data. The Host issues the next C1 command to start processing the next frame. PCM Data Pump from Host to CODEC In this mode, the D6571E receives -law or A-law PCM data via the Host in bursts of 120 words and plays it back via the CODEC. This mode is similar to the previous one. The major difference is that the data bursts have a fixed size of 120 words per frame. While in this mode the D6571E monitors the status of the telephone line and reports this information to the Host in status S2. This mode can be terminated by issuing an Idle command instead of command C2. In addition, at each command (C1, C2, C3) the D6571E checks bits 15-12 for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. As with the previous mode, the Host can send a Set Volume Level command instead of a Data Pump C2 command to set the volume level. The D6571E will respond with Data Pump Status S2 as if `continue record' command was sent. It is the Host's responsibility to perform communication quickly enough to avoid a real time problem. The length of time it takes to process one frame, including data transfer to the Host, should be no longer than 1 frame. The performance of the mode is the same in case of "cold start." Data Storage In this mode, the D6571E receives data via Host Data Bus and stores it in the Flash as a binary message. The D6571E assigns the next available message number to this message. Upon receiving the first Data Storage command C1 the D6571E enters the mode and sends status with Memory Full bit to Host. The C1 command contains BIN bit. = 1. Then the Host sends C2 command with the number of words that the Host is going to transmit to the D6571E. The D6571E responds with status S2 with the number of words that the D6571E will accept from the Host in this particular frame. Upon receiving S2, the actual data transfer begins. The Host sends the appropriate DS6571E.2 The performance of the mode is the same in case of "cold start." In this manner, the data can be transferred via Host Data Bus and stored in the Flash. After receiving each C1 command, the D6571E checks the Memory Full Status Bit and reports it to the Host in S1. This mode can be terminated by issuing an Idle command instead of command C1. In addition, at each command (C1, C2) the D6571E checks bits 15-12 for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. Data Retrieval In this mode, the D6571E retrieves a message from the Flash and transmits it via the Host Data Bus in bursts of bytes. Upon receiving the first Data Retrieval command C1, which specifies the message number to be retrieved, the D6571E enters the mode and sends status S1 with End of Message Bit and BIN bit =1. Upon receiving status S1 the Host sends command C2 with the number of bytes the Host expects from the D6571E. The D6571E returns status S2 with the actual number of words the D6571E will send to the Host in this particular frame. Upon receiving S2 the actual transfer begins. The Host sends the appropriate number of Data Transfer commands. Upon transmitting bursts of words the D6571E can process the next frame. The Host issues the next C1 command to start transmission of the next frame. In this manner, the data can be retrieved from the Flash and transmitted via Host data Bus. After receiving each C1 command the D6571E checks the status of the message that is retrieved and reports end of message to the Host in S1. This mode can be terminated by issuing an Idle command instead of command C1. In addition, at each command (C1, C2) the D6571E checks bits 15-12 for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. Data Compression Mode DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 89 D6571E Data Sheet The performance of the mode is the same in case of "cold start." Data Decompression Mode In this mode, the D6571E receives speech data previously compressed with TRUESPEECH via the Host Data Bus, compresses it, and transmits it back in linear format in bursts of words. The D6571E receives the first Data Decompression command C1 and returns status S1. Then the Host sends command C2 with the number of bytes that the Host is going to transmit to the D6571E (48 bytes). The D6571E returns status S2 with the actual number of bytes that the D6571E will accept from the Ho st in the current frame. After the Host receives S2, the actual Byte Transfer begins. The Host sends the appropriate number of Data Transfer commands, which contain compressed speech and receives an echo of each command in the Data Transfer status. The Host sends the byte of data in high byte of the Data Transfer Command. In response to each command the D6571E sends back the echo of the byte in the high byte of the Data Transfer status. With Byte Transfer, the HI/LO pin (pin 4) of the D6571E should be set to high during the command/status sequence. After the D6571E accepts the bursts of bytes, it starts decompression. To receive the decompressed data, the Host sends a C3 command. The C3 command will be accepted by the D6571E after decompression of the current frame is completed. Command C3 contains the number of words the Host expects to receive from the D6571E (240 words). In status S3, the D6571E sends the actual number of words the D6571E is going to transmit to the Host. After the Host receives S3, the Word Transfer begins. Then the Host sends the appropriate number of Data Transfer commands and receives a word of linear PCM data in response to each command (Data Transfer status). The Host sends the next C1 command to start processing the next frame. In this manner, the D6571E decompresses and transmits data frame by frame. This mode can be terminated by issuing an Idle command instead of command C2. In addition, at each command (C1, C2 and C3) the D6571E checks bits 15-12 for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. 90 In this mode, the D6571E receives linear PCM data via Host Data Bus in burst of 240 words, compresses it with TRUESPEECH compression algorithm, and transmits it back via Host Data Bus in bursts of bytes. The size of bursts depends on the compression rate. The TRUESPEECH compression algorithm implemented in the D6571E is Host programmable and is able to utilize three compression rates as well as "gap coding". The first Voice Data Compression command C1 defines the compression rate. Then the Host issues command C2. This command contains the number of words the Host is going to transmit to the D6571E. The D6571E returns status S2, which contains the number of words the D6571E will accept from the Host. Upon receiving S2 the actual Word Transfer begins. The Host sends 240 words of uncompressed speech data. The D6571E responds with an echo of each word. Upon receiving uncompressed speech the D6571E starts compression of the current frame. The Host issues the C3 command, which will be accepted by the D6571E after compression of the current frame is accepted. The C3 command contains the number of bytes which the Host expects to receive from the D6571E (48 bytes). In the status S3, the D6571E informs the Host the actual number of bytes the D6571E will transmit. After Host reads the status S3, the actual Byte Transfer begins. The Host uses the high byte (bits 15-8) of the Data Transfer Command. In response to a command the D6571E sends the byte of compressed data in the high byte (bits 15-8) of the Data Transfer status. With Byte Transfer, the HI/LO pin (pin 4) of the D6571E should be set to high during the command/status sequence. The Host can still send a word to the D6571E, but the low byte will be ignored by the D6571E during Byte Transfer. The Host sends the Next C1 command to start processing the next frame. In this manner, the D6571E compresses and transmits data frame by frame. This mode can be terminated by issuing an Idle command instead of command C2. In addition, at each command (C1, C2 and C3) the D6571E checks bits 15-12 for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet The performance of the mode is the same in case of "cold start." DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 91 D6571E Data Sheet COMMAND SET FOR DATA TRANSFER MODES 1. DATA PUMP FROM CODEC TO HOST (Record from Codec to Host) Command (C1): 0001 (15-12) COMP MODE: 11 (11-10) = 0000: = 0010: = 0100: = 0011: = Else: COMP MODE (9-6) LB DIS (5) GAP (4) 0000 (3 - 0) Low bit rate Middle bit rate High bit rate -law or A-law PCM (no compression) Reserved LB DIS = 1: Disable loopback of input samples = 0: Enable loopback of input samples = 0: Gap Coding is disabled = 1: Activate Gap Coding GAP Status (S1): 0001 (15-12) 11 (11-10) COMP MODE (9-6) LB DIS (5) GAP (4) 0000 (3 - 0) Command (C2): 0001 (15 -12) T 00 (11 - 10) (9) T STOP/TONE PARAMETERS (8 - 0) = 1: To initiate tone generation (not valid for Mode = 100). = 0: For no tone generation. (C2): STOP (8 - 0) When T=0: STOP = 000000000: STOP = 000000001: When T=1: Continue record and monitor status End record. (C2): TONE GAIN (8 - 5) DS6571E.2 TONE INDEX (4 - 0) 92 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 D6571E Data Sheet Status (S2): 0001 (15 -12) 00 (11 - 10) (9) T (8 - 7) (S2): VOX (6) (5) EXT TONE (4) TONE (3 - 0) DTMF 00 (6 - 0) STA TUS When T = 1 or T = 0 and STOP = 000000000: VOX =1: Speech frame was detected. TONE =1: Call progress tone was detected in last frame. DTMF }= Code of valid DTMF or CAS signal detected. EXT TONE } When T = 0 and STOP = 000000001: (S2): 0000001 (6 - 0) Command (C3): 0001 (15 -12) 0000 (11 - 8) NUMBER OF BYTES (for compressed data) NUMBER OF WORDS (for /A-law PCM data) (7 - 0) NUMBER OF BYTES - Indicates the number of bytes the Host expects to receive from the D6571E in the current frame. This number should generally be set to the maximum number of bytes per frame (48). NUMBER OF WORDS - Indicates the number of words the Host expects to receive from the D6571E in the current frame. This number should generally be set to the maximum number of words per frame (120). Status (S3): 0001 (15 -12) 0000 (11 - 8) TRANSFER NUMBER OF BYTES (for compressed data) TRANSFER NUMBER OF WORDS (for /A-law PCM data) (7 - 0) TRANSFER NUMBER OF BYTES - Indicates the actual number of bytes which the D6571E will transfer to the Host. This number can be between 2 and 48. TRANSFER NUMBER OF WORDS - Indicates the actual number of words that the D6571E will transfer to the Host. This number is 120. After the Host receives status S3, the actual data transfer begins. Shown below are the descriptions for TrueSpeech Data Pump and -law/A-law PCM Data Pump. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 93 D6571E Data Sheet TrueSpeech Data Pump: For compressed data, the Host sends the high byte of the command word (Data Transfer command) to the D6571E. The D6571E responds with compressed data in the high byte of the status (Data Transfer status). During the data transfer phase, the HI\LO pin (pin 4) should be set to high. Data Transfer Command: (DC1 . . . DC_Transfer_Number_of_Bytes for TrueSpeech Data Pump) 0001 (15 - 12) Data Transfer Status: (DS1 . . . DS_Transfer_Number_of_Bytes for TrueSpeech Data Pump) DATA BYTE (15 - 8) (11 - 8) 0000 -law/A-law PCM Data Pump: For -law/A-law PCM data, the Host sends the high byte of the command word (Data Transfer command) to the D6571E. The D6571E responds with a word of the -law/A-law data in the status word (Data Transfer status). Data Transfer Command: (DC1 . . . DC_120 for -law/A-law PCM Data Pump) 0001 (15 - 12) Data Transfer Status: (DS1 . . . DS_120 for -law/A-law PCM Data Pump) DATA WORD (15 - 0) For both TrueSpeech and -law/A-law Data Pumps, in each frame the Host issues command C2, reads status S2, then issues command C3. Status S3 will be sent to the Host after the D6571E completes compression of the current frame. The actual data transfer starts after S3 is received by the Host. After data transfer is completed the Host should issue the next C2 command. The D6571E checks bits 15 -12 in the C1, C2, and C3 commands for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. (11 - 8) 0000 NOTE: Instead of sending the Data Pump C2 command as shown above, the Host can send a Set Volume Level command to set the volume level. The D6571E will respond with Data Pump Status S2 as if `continue record' command was executed. The `Set Volume C2 Co mmand' and status S2 are shown below. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 94 D6571E Data Sheet Command (C2): Set Volume 1100 (15 -12) 1000 (11 - 8) (7 - 5) 100 (4 - 0) VOLUME For the appropriate VOLUME level settings, please refer to the Set Volume Level command in the Self-Test and Initialization mode (Test Mode = 1000). Status (S2): Set Volume 1100 (15 -12) VOX 00000 (11 - 7) (6) VOX (5) EXT TONE (4) TONE (3-0) DTMF =1: Speech frame was detected. =1: Call progress tone was detected in last frame. DTMF } : Code of valid DTMF or CAS signal detected. EXT TONE } 2. DATA PUMP FROM HOST TO CODEC (Playback from Host to Codec) Command (C1): 0010 (15 - 12) Mode: 11 (11 - 10) (9 - 7) 000 (6 - 5) MODE (4 - 0) 00000 00 - Playback compressed data. 01 - Playback -law/A-law PCM data. Status (S1): 0010 (15 - 12) 11 (11 - 10) (9 - 7) 000 (6 - 5) MODE (4 - 0) 00000 Command (C2): 0010 (15 - 12) Status (S2): 0010 (15 - 12) TONE DTMF: EXT TONE: DS6571E.2 00000000000 (11 - 0) 000000 (11 - 6) (5) EXT TONE (4) TONE (3 - 0) DTMF = 1: Call Progress Tone detected. } Code of valid DTMF or CAS signal detected. } DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 95 D6571E Data Sheet Command (C3): 0010 (15 - 12) 0000 (11 - 8) NUMBER OF BYTES (for compressed data) NUMBER OF WORDS (for /A-law PCM data) (7 - 0) NUMBER OF BYTES - Indicates the number of bytes that the Host plans to write to the D6571E. This number should generally be set to the maximum number of bytes per frame for compressed data (48). NUMBER OF WORDS - Indicates the number of bytes that the Host plans to write to the D6571E. This number should generally be set to the maximum number of words per frame for -law/A-law PCM data (120). Status (S3): 0010 (15 - 12) (11) 0 IND (10) 00 TRANSFER NUMBER OF BYTES (compressed data) TRANSFER NUMBER OF WORDS (/A-law PCM data) (7 - 0) (9 - 8) TRANSFER NUMBER OF BYTES - Indicates the number of bytes of compressed that the D6571E will accept from the Host. This number is generally a value between 2 and 48. TRANSFER NUMBER OF WORDS- Indicates the number of words of -law/A-law data that the D6571E will accept from the Host. This number is 120. IND (Insufficient Data) - Indicates that the Host is going to transmit to the D6571E less data bytes than necessary for decompression. If the Host is going to transmit less data than necessary for decompression, the D6571E will not accept this data. In this case, the D6571E will respond with TRANSFER NUMBER OF BYTES set to 00000000 and will skip the byte transfer phase. The D6571E will play silence if there is an inadequate amount of data for decompression. The PAUSE function can be implemented by using this feature. If the IND bit is not set to `1', then the Host can transfer data to the D6571E. After the Host receives status S3, the actual data transfer begins. The descriptions of the TrueSpeech and -law/A-law PCM data pumps are given below. TrueSpeech Data Pump: The Host sends the high byte of the command word (which contains data) to the D6571E. The D6571E echoes the received data in the high byte of the status word (Data Transfer status). During the data transfer phase, the HI\LO pin (pin 4) should be set to high. Data Transfer Command: (DC1 . . . DC_Transfer_Number_of_Bytes for TrueSpeech Data Pump) DATA BYTE (15 - 8) Data Transfer Status: (DS1 . . . DS_Transfer_Number_of_Bytes for TrueSpeech Data Pump) ECHO OF DATA BYTE (15 - 8) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 96 D6571E Data Sheet -law/A-law PCM Data Pump: The Host sends the command word (which contains data) to the D6571E. The D6571E echoes the received data in the status word (Data Transfer status). Data Transfer Command: (DC1 . . . DC_120) DATA WORD (15 - 0) Data Transfer Status: (DS1 . . . DS_120) ECHO OF DATA WORD (15 - 0) For both TrueSpeech and -law/A-law PCM data pumps, in each frame the Host issues command C2, reads status S2, then issues command C3. The actual data transfer starts after S3 is received by the Host. After data transfer is completed the Host should issue the next C2 command. The D6571E checks bits 15 -12 in each C2 and C3 command for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. NOTE: Instead of sending the Data Pump C2 command shown above, the Host can send a Set Volume Level command to set the volume level. The D6571E will respond with status S2 of Data Pump mode. The `Set Volume C2 Command' and status S2 are shown below. Command (C2): Set Volume 1100 (15 -12) 1000 (11 - 8) (7 - 5) 100 (4 - 0) VOLUME For the appropriate VOLUME level settings, please refer to the Set Volume Level command of the Self Test and Initialization mode (Test Mode = 1000). Status (S2): Set Volume 1100 (15 -12) TONE DTMF EXT TONE 000000 (11 - 6) (5) EXT TONE (4) TONE (3 - 0) DTMF = 1: Call Progress Tone detected. } : Code of valid DTMF or CAS signal detected. } DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 97 D6571E Data Sheet 3. DATA STORAGE (From Host to Flash) Command (C1): 1111 (15 - 12) 00 (11-10) BIN (9) 00000 0000 (8-0) Status (S1): 1111 (15 - 12) BIN 00 (11 - 10) (9) BIN (8) 0 MEMORY FULL (7) 0000000 (6 - 0) = 0: Voice message storage = 1: Binary file MEMORY FULL = 1: Memory full condition has been reached. Note: Data Storage is not available for PCM messages. BINARY = 0 Command (C2): 0010 (15 - 12) 0000 (11 - 8) NUMBER OF BYTES (7 - 0) NUMBER OF BYTES - Indicates the number of bytes that the Host is going to transmit to the D6571E. In general, the Host should plan to send the maximum number of bytes in one frame (48), and the D6571E will respond by informing the Host the actual number of bytes that will be accepted. Status (S2): 0010 (15 - 12) (11) 0 (10) IND (9 - 8) 00 TRANSFER NUMBER OF BYTES (7 - 0) TRANSFER NUMBER OF BYTES - Indicates the number of bytes that the D6571E will accept from the Host. IND (Insufficient Data) - Indicates that the Host is going to transmit to the D6571E less data bytes than are necessary. If the Host is going to transmit less data than is necessary, the D6571E will not accept this data and respond with TRANSFER NUMBER OF BYTES = 0. If the IND bit is not set to `1', then the Host can transfer data to the D6571E. After the Host receives status S2, the actual data transfer begins. The Host sends the high byte of the command word (which contains a byte of data) to the D6571E. The D6571E echoes the received data in the high byte of the status word (Data Transfer status). During the data transfer phase, the HI\LO pin (pin 4) should be set to high. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 98 D6571E Data Sheet Data Transfer Command: (DC1 . . . DC_Transfer _Number_of_Bytes) DATA BYTE (15 - 8) Data Transfer Status: (DS1 . . . DS_Transfer_Number_of_Bytes) ECHO OF DATA BYTE (15 - 8) Each frame the Host issues C1 and C2 commands. The actual data transfer starts after S2 is received by the Host. The D6571E checks bits 15 -12 in each C1 and C2 command for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. To exit this mode, the D6571E should issue an IDLE command. When an IDLE command is received, the D6571E will update the message directory and return to Idle mode. BINARY = 1 Command (C2): 0010 (15 - 12) 0000 (11 - 8) NUMBER OF WORDS (7 - 0) NUMBER OF WORDS - Indicates the number of words that the Host is going to transmit to the D6571E. In all frames but the last one, the Host should send the maximum number of words (16). The D6571E will send a confirmation to accept 16 words. The last frame of the binary file may have any number of words. Status (S2): 0010 (15 - 12) (11) 0 (10) 0 (9 - 8) 00 TRANSFER NUMBER OF WORDS (7 - 0) TRANSFER NUMBER OF WORDS - Indicates the number of words that the D6571E will accept from the Host. After the Host receives status S2, the actual data transfer begins. The Host sends the command word (which contains a word of data) to the D6571E. The D6571E echoes the received data in the status word (Data Transfer status). Data Transfer Command: (DC1 . . . DC_Transfer _Number_of_Words) DATA WORD (15 - 0) Data Transfer Status: (DS1 . . . DS_Transfer_Number_of_Words) ECHO OF DATA WORD (15 - 8) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 99 D6571E Data Sheet Each frame the Host issues C1 and C2 commands. The actual data transfer starts after S2 is received by the Host. The D6571E checks bits 15 -12 in each C1 and C2 command for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. To exit this mode, the D6571E should issue an IDLE command. When an IDLE command is received, the D6571E will update the message directory and return to Idle mode. 4. DATA RETRIEVAL (From Flash to Host) Command (C1): 1111 (15 - 12) 10 (11 - 10) (9 - 7) 000 MESSAGE NUMBER (6 - 0) Status (S1): 1111 (15 - 12) BIN 10 (11 - 10) (9) BIN (8) 0 (7) END OF MESSAGE MESSAGE NUMBER (6 - 0) = 0: voice message = 1: binary message END OF MESSAGE = 1 - End of message has been reached. Note: Data Retrieval is not available for PCM messages BIN = 0 Command (C2): 0001 (15 - 12) 0000 (11 - 8) NUMBER OF BYTES (7 - 0) NUMBER OF BYTES - Indicates the number of bytes that the Host expects to receive from the D6571E. Status (S2): 0001 (15 - 12) 0000 (11 - 8) TRANSFER NUMBER OF BYTES (7 - 0) TRANSFER NUMBER OF BYTES - Indicates the actual number of bytes that the D6571E will write to the Host. After the Host receives status S2, the actual data transfer begins. The Host sends the high byte of the Data Transfer command to the D6571E. The D6571E responds with compressed data in the high byte of the status word (Data Transfer status). During the data transfer phase, the HI\LO pin (pin 4) should be set to high. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 100 D6571E Data Sheet Data Transfer Command: (DC1 . . . DC_Transfer _Number_of_Bytes) 0001 (15 - 12) Data Transfer Status: (DS1 . . . DS_Transfer_Number_of_Bytes) DATA BYTE (15 - 8) Each frame the Host issues C1 and C2 commands. The actual data transfer starts after status S2 is received by the Host. The D6571E checks bits 15-12 in each C1 and C2 command for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. The Host should send an IDLE command to exit this mode. (11 - 8) 0000 BIN = 1 Command (C2): 0001 (15 - 12) 0000 (11 - 8) NUMBER OF WORDS (7 - 0) NUMBER OF WORDS - Indicates the number of words that the Host expects to receive from the D6571E. Supposed to be 16 in this mode. Status (S2): 0001 (15 - 12) 0000 (11 - 8) TRANSFER NUMBER OF WORDS (7 - 0) TRANSFER NUMBER OF WORDS - Indicates the actual number of words that the D6571E will write to the Host. Expected to be 16 for each frame but the last one. The last frame may have any number of words from 1 to 16. After the Host receives status S2, the actual data transfer begins. The Host sends the Data Transfer command to the D6571E. The D6571E responds with binary data in the status word (Data Transfer status). Data Transfer Command: (DC1 . . . DC_Transfer _Number_of_Words) 0001 (15 - 12) Data Transfer Status: (DS1 . . . DS_Transfer_Number_of_Words) DATA WORD (15 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 000000000000 (11 - 8) 101 D6571E Data Sheet Each frame the Host issues C1 and C2 commands. The actual data transfer starts after status S2 is received by the Host. The D6571E checks bits 15-12 in each C1 and C2 command for the correct code. If an incorrect code is detected, the D6571E will return to Idle mode. The Host should send an IDLE command to exit this mode. 5. DATA COMPRESSION (From Host to Host) Command (C1): 1111 (15 - 12) MODE: = 000: = 001: = 010: = Else: 01 (11 - 10) MODE (9 - 7) (6 - 5) 00 (4) GAP (3 - 0) 0000 low bit rate middle bit rate high bit rate Reserved GAP: = 0: gap coding is disabled = 1: gap coding is activated Status (S1): 1111 (15 - 12) 01 (11 - 10) MODE (9 - 7) (6 - 5) 00 (4) GAP (3 - 0) 0000 Command (C2): 0010 (15 - 12) 00 0 0 (11 - 8) NUMBER OF WORDS (7 - 0) NUMBER OF WORDS - Indicates the number of words that the Host plans to transmit to the D6571E. In general, the Host should plan to send the maximum number of words (160). The D6571E will respond by informing the Host the actual number of words that will be accepted. Status (S2): 0010 (15 - 12) (11) 0 IND (10) (9 - 8) 00 TRANSFER NUMBER OF WORDS (7 - 0) TRANSFER NUMBER OF WORDS - Indicates the number of words that the D6571E will accept from the Host. Should be 160 in this mode. IND (Insufficient Data) - Indicates that the number of words that the Host is going to transmit to the D6571E is less than necessary for compression. If this is the case, IND will be set to `1, TRANSMIT NUMBER OF WORDS will be set to 00000000, and the D6571E will skip the word transfer phase. If IND is not set to ` then the Host can transmit data to the D6571E after receiving status S2. The Host will transmit the 1', data by sending a Data Transfer Command. The D6571E will respond with echo of this word (Data Transfer Status). DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 102 D6571E Data Sheet Data Transfer Command: (DC1 . . . DC_Transfer_Number_of_Words) SPEECH DATA (15 - 0) Data Transfer Status: (DS1 . . . DS_Transfer_Number_of_Words) ECHO OF SPEECH DATA (15 - 0) Command (C3): 0001 (15 - 12) 0000 (11 - 8) NUMBER OF BYTES (7 - 0) NUMBER OF BYTES - Indicates the number of bytes that the Host expects to read from the D6571E. In general, the Host should set this number to the maximum number of bytes per frame (48). Status (S3): 0001 (15 - 12) 0000 (11 - 8) TRANSFER NUMBER OF BYTES (7 - 0) TRANSFER NUMBER OF BYTES - Indicates the actual number of bytes the D6571E will send to the Host. After the Host receives status S3, the actual data transfer begins. The Host sends the high byte of the Data Transfer command. The D6571E responds with compressed data in the high byte of the status word (Data Transfer status). During the data transfer phase, the HI\LO pin (pin 4) should be set to high. Data Transfer Command: (DC1 . . . DC_Transfer_Number_of_Bytes) 0001 (15 - 12) Data Transfer Status: (DS1 . . . DS_Transfer_Number_of_Bytes) DATA BYTE (15 - 8) Each frame the Host issues command C2 and receives status S2. U pon receiving S2, the Host starts transmitting uncompressed data to the D6571E. After data has been transferred to the D6571E the Host issues command C3. The D6571E will accept this command and return status S3 upon completion of the compression of the current frame. Upon receiving status S3 the Host starts data transfer from the D6571E. Then the Host issues the next command C1 to start processing the next frame. The D6571E checks bits 15-12 in each C1, C2, and C3 command for the correct code. If an incorrect code is detected, the D6571E will exit Data Pump mode and return to Idle mode. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 0000 (11 - 8) 103 D6571E Data Sheet 6. DATA DECOMPRESSION (From Host to Host) Command (C1): 1111 (15 - 12) 11 (11 - 10) 0000000000 (9 - 0) Status (S1): 1111 (15 - 12) 11 (11 - 10) 0000000000 (9 - 0) Command (C2): 0010 (15 - 12) 0000 (11 - 8) NUMBER OF BYTES (7 - 0) NUMBER OF BYTES - Indicates the number of bytes that the Host will transmit to the D6571E (should be 48). Status (S2): 0010 (15 - 12) 0 IND 00 TRANSFER NUMBER OF BYTES (7 - 0) (11) (10) (9 - 8) TRANSFER NUMBER OF BYTES - Indicates the number of bytes that the D6571E will accept from the Host IND (Insufficient Data) - Indicates that the number of bytes that the Host will transmit is less bytes than necessary for decompression. When there is an inadequate number of bytes, the D6571E will respond with TRANSFER NUMBER OF BYTES equal to 00000000 and set IND equal to `1'. As a result, the byte transfer phase will be skipped. If IND was not set to `1' in S2, then the Host begins data transfer to the D6571E. The Host sends the byte of data in the high byte of the Data Transfer command. The D6571E echoes the received data in the high byte of the status word (Data Transfer status). During the data transfer phase, the HI\LO pin (pin 4) should be set to high. Data Transfer Command: (DC1 . . . DC_Transfer _Number_of_Bytes) DATA BYTE (15 - 8) Data Transfer Status: (DS1 . . . DS_Transfer_Number_of_Bytes) ECHO OF DATA BYTE (15 - 8) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 104 D6571E Data Sheet Command (C3): 0001 (15 - 12) 0000 (11 - 8) NUMBER OF WORDS (7 - 0) NUMBER OF WORDS - Indicates the number of words that the Host expects to read from the D6571E. This number should be set to the maximum number of words (160). Status (S3): 0001 (15 - 12) 0000 (11 - 8) TRANSFER NUMBER OF WORDS (7 - 0) TRANSFER NUMBER OF WORDS - Indicates the actual number of words that the D6571E will send to the Host. This number should have a value 160. After the Host receives status S3 the actual Data Transfer phase begins. The Host sends a Data Transfer command to the Host Data Bus. After receiving this command, the D6571E responds by sending to the Host one word of decompressed data (Data Transfer Status). Data Transfer Command: (DC1 . . . DC_Transfer_Number_of_Words) 0001 (15 - 12) Data Transfer Status: (DS1 . . . DS_Transfer_Number_of_Words) SPEECH DATA (15 - 0) Each frame the Host issues command C2 and receives status S2. Upon receiving S2, the Host starts transmitting compressed data to the D6571E. After data has been transferred to the D6571E the Host issues command C3. The D6571E will accept this command and return status S3 upon completion of the decompression of the current frame. Upon receiving status S3 the Host starts data transfer from the D6571E. Then the Host issues the next command C1 to start processing the next frame. The D6571E checks for the correct code in bits 15-12 in each C1, C2, and C3 command. If an incorrect code is detected, the D6571E will exit Data Pump mode and return to Idle mode. 000000000000 (11 - 0) DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 105 D6571E Data Sheet only one point. Furthermore, that connecting point should be close to the supplies. This will minimize the effect of noise from the digital power supply to the analog power supply. APPLICATION HINTS A good printed circuit board (PCB) layout is as important as the overall circuit design itself in achieving high audio quality. To achieve this, the designer has to be conscious of noise both in the D6571E chip and the front-end analog circuitry. Switching mode power supplies are not recommended as the switching spikes will feed through. Other causes of concern are ground loops and digital feed through. Layout Hints Ensure that the layout for the printed circuit board has digital and analog signal lines separated as much as possible. Take care not to run any digital track along side an analog signal. Guard the analog input with AGND. Establish a single point analog ground separate from the digital ground. Low impedance analog and digital power supply common returns are essential to low noise operation. Power Supply Considerations Since the D6571E is a chipset with analog input and output, its performance (especially the analog front-end) may be adversely affected by the noise of the power supply. In order to prevent mixing of noise, observe the following cautions: * Separate the power supply to the digital parts and analog parts. The power supply should have the least ripple possible, and a series regulator power supply is recommended for best operation. Good engineering practice calls for proper supply decoupling between the various components. This may be achieved by running separate VCC and ground lines to the D6571E and Flash memory and placing 0.1 F ceramic decoupling capacitors near each VCC supply pin. Microphone and Speaker Considerations An often overlooked fact is that the sound quality produced by D6571E chipset is directly related to the quality of the microphone and speaker connected to them. Use a good quality microphone and speaker with good frequency response. Carefully design the microphone preamplifier circuit. The physical location of the microphone, along with the characteristics of the microphone, play a large role in the playback sound quality. * GNDs of two power supplies should be connected at 0.1 F 0.1 F 10 F 10 F VCCA (+ 5V, analog) GNDA (analog) VBBA (-5V, analog) POWER SUPPLY 0.1 F 0.1 F 33 F 33 F D6571E PCB VCC (digital) GNDD (digital) VCC1 (digital) Figure 10. Power Supply DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 106 D6571E Data Sheet ELECTRICAL CHARACTERISTICS D6571E -11 Absolute maximum ratings over specified temperature range Supply voltage range, VCC Input voltage range Output voltage range Operating free-air temperature range Storage temperature range -0.3 V to 7 V -0.3 V to 7 V -0.3 V to 7 V 0C to 70C -55C to 150 C 5 V OPERATION Recommended operating conditions MIN 4.5 2.2 2.6 0.8 Vcc - 0.5 V 1.1 +4 -4 40.960 or 36.864 0 70 TYP 5 0 MAX 5.5 UNIT V V V V V V V mA mA MHz C VCC Supply voltage VSS Supply voltage VIH High-level input voltage (al l pins except HSTWR) VIH High-level input voltage (HSTWR) VIL Low-level input voltage VT+ Positive-going RESET and PDN threshold VT-Negative-going RESET and PDN threshold I OH High-level output current I OL Low-level output current Crystal oscillator (100 ppm) T A Operating free-air temperature Electrical characteristics over recommended operating free-air ranges (unless otherwise noted) PARAMETERS VOH High-level output voltage VOL Low-level output voltage I OZ Off-state output current I CC Supply current CI Input capacitance Operating Mode Suspend Mode ** f = 40.960 MHz; VCC = 5V 90 5 20 TEST CONDITIONS VCC = 5V MIN 2.6 TYP MAX 0.4 10 UNIT V V A mA mA pF ** No battery backup is required to retain data in the case of power failure. Suspend mode may be used to conserve power. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 106 D6571E Data Sheet 3.3 V OPERATION Recommended operating conditions MIN 3.0 2.0 0.6 Vcc - 0.25 V 0.7 +2 -2 40.960 or 36.864 0 70 TYP 3.3 0 MAX 3.6 UNIT V V V V V V mA mA MHz C VCC Supply voltage VSS Supply voltage VIH High-level input voltage VIL Low-level input voltage VT+ Positive-going RESET and PDN threshold VT-Negative-going RESET and PDN threshold I OH High-level output current I OL Low-level output current Crystal oscillator (100 ppm) T A Operating free-air temperature Electrical characteristics over recommended operating free-air ranges (unless otherwise noted) PARAMETERS VOH High-level output voltage VOL Low-level output voltage I OZ Off-state output current I CC Supply current CI Input capacitance Operating Mode Suspend Mode ** f = 40.960 MHz; VCC = 3.3V 50 3.5 20 TEST CONDITIONS VCC = 3.3V MIN 2.4 TYP MAX 0.4 10 UNIT V V A mA mA pF ** No battery backup is required to retain data in the case of power failure. Suspend mode may be used to conserve power. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 107 D6571E Data Sheet D0000-29 (CODEC) Absolute maximum ratings over specified temperature range Supply voltage range, VCC Output voltage, VO Input voltage, VI Digital ground voltage Operating free-air temperature range -0.3 V to 7 V -0.3 V to 7 V -0.3 V to 7 V -0.3 V to 7 V 0C to 70C Recommended operating conditions MIN 4.75 -4.75 2.2 0.6 10 600 50 0 500 70 TYP 5 -5 MAX 5.25 -5.25 UNIT V V V V k pF C VCC Supply voltage VBB Supply voltage VIH High-level input voltage, all inputs except CLKSEL VIL Low-level input voltage, all inputs except CLKSEL No change transmit RL Load resistance CL Load capacitance TA Operating temperature free-air At VFRO Receive At GSX At VFRO Electrical characteristics over recommended ranges of supply voltage and operating free-air temperature supply current, fDCLK 2.048 MHz, outputs not loaded PARAMETER I CC Supply current from VCC I BB Supply Current from VBB Power dissipation Operating Power-down Operating Power-down Operating Power-down TEST CONDITIONS TYPE 6 0.5 -6 -0.5 60 5 MAX 9 1.5 -9 -1.5 90 15 UNIT mA mA mW Transmit amplifier input PARAMETERS Input current at ANLG IN+, ANLG IN Input offset voltage at ANLG IN+, ANLG INCommon-mode rejection at ANLG IN+, ANLG INOpen-loop voltage amplification at GSX Open-loop unity-gain bandwidth at GSX Input resistance at ANLG IN+, ANLG INTEST CONDITIONS VI = -2.17 V to 2.17 V VI = -2.17 V to 2.17 V VI = -2.17 V to 2.17 V 60 5000 2 10 MIN TYP MAX 200 20 UNIT nA mV dB V/V MHz M Receive filter output PARAMETERS Output offset voltage PWRO+, PWRO- (singleended) Output resistance at PWRO+, PWROTEST CONDITIONS Relative to ANLG GND MIN -200 TYP MAX 200 UNIT mV 1 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 108 D6571E Data Sheet DETECTORS CHARACTERISTICS DTMF & VOX CHARACTERISTICS PARAMETER DTMF Signal level for detection* DTMF Twist (High/Low Tone) DTMF Frequency Detect Band width DTMF Noise tolerance** DTMF tone duration accept DTMF tone duration reject DTMF interdigit pause accept DTMF interdigit pause reject VOX detection* Tone generator frequency accuracy Tone generator level*** Tone generator level accuracy MIN -35 (1.5% + 2Hz) 40 23 40 -37 -0.1 -24 -0.5 23 +6 +0.1 +6 +0.5 TYP MAX 0 +4/-8 3.5% +12 UNIT dB0 dB %fc dB ms ms ms ms dB0 %fc dB0 dB Call Progress Tone Detector Performance PARAMETER Detection Level* Rejection Level* Rejection Frequency Range Frequency Range Signal Duration Accept Pause Duration Accept Response Time Noise Tolerance MIN -29 800 300 80 80 -12 TYP MAX -34 2500 640 UNIT dB0 dB0 Hz Hz ms ms ms dB 150 *0.707 V RMS is defined as the 0 dB0 **BW limited (0-3.0 KHz) Gaussian noise ***0dB0 is 0.707V RMS programmable with resolution 2 dB. Caller ID FSK Demodulator Performance PARAMETER Rate of Reception Signal Level Differential Mark (Logic 1) Bell 202 V.23 Space (logic 0) Bell 202 V.23 Received Signal Level (Mark) Received Signal Level (Space) Signal to Distortion Ratio DS6571E.2 MIN TYP 1200 bps12 bps 10 dB MAX COMMENTS 1188 Hz 1287 Hz 2187 Hz 2079 Hz -32 dBm -36 dBm 1200 12 Hz 1300 13 Hz 2200 22 Hz 2100 21 Hz 1212 Hz 1313 Hz 2222 Hz 2121 Hz -12 dBm -12 dBm 25 dB DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 109 D6571E Data Sheet Caller Alert Signal / Idle State Tone Alert Signal PARAMETER Detection Level Rejection Level Low Frequency High Frequency Twist Duration SNR* * MIN - 32 2130 - 1.1% 2750 - 1.1% 75 - 20 TYP MAX - 45 2130 + 1.1% 2750 + 1.1% +/-7 85 2130 2750 80 UNIT dBm dBm Hz Hz dB ms dB The CAS detector was tested according to the "Test Plan for CPE Alerting Signal Detectors" SR-TSV-002476. See this document for d etails. DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 110 D6571E Data Sheet Figure 11. D6571E-11 Mechanical Data DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 111 D6571E Data Sheet DSPG CHIP SET PART NUMBER SYSTEM D 6 5 7 1 E 11 A Q DSP Group, Inc. Family Prefix Temperature C - Commercial 0 to +70 Chip Set Device Type 11 - DSP Package Type Q - PQFP D - PDIP S - SOJ Revision Letter A..Z DSP GROUP, INC. 3120 Scott Boulevard Santa Clara, CA 95054 Telephone: (408) 986-4300 Facsimile: (408) 986-4490 JAPAN OFFICE Nihon DSP Group, K.K. Yasuda Kasai Building - 2nd Floor 2-3-1, Higashi Gotanda Shinagawa-ku, Tokyo 141, Japan Telephone: (81) 3-3449-7851 Facsimile: (81) 3-3449-8006 ASIA PACIFIC TECHNICAL SUPPORT CENTER Unit 1923, 19/F Metro Centre 1 32 Lam Hing Street Kowloon Bay, Kowloon , Hong Kong Telephone: (852) 2750-7325 Facsimile: (852) 2305-0640 DSP GROUP EUROPE 18 rue de l'effort mutuel 91300 MASSY FRANCE Telephone: (33) 6-07-68-67-54 Facsimile: (33) 1-60-10-51-87 DS6571E.2 DSP GROUP, INC., 3120 SCOTT BOULEVARD SANTA CLARA, CA 95054 PH: 408 986-4300 FAX: 408 986-4490 112 |
Price & Availability of D6571E
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |