From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,af37533caf4966f6 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-04-19 06:15:08 PST Newsgroups: comp.sys.dec Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!sdd.hp.com!decwrl!pa.dec.com!e2big.mko.dec.com!dbased.nuo.dec.com!news.crl.dec.com!jg From: jg@crl.dec.com (Jim Gettys) Subject: Re: Technical description of DECaudio Message-ID: <1993Apr19.125134.6516@crl.dec.com> Sender: news@crl.dec.com (USENET News System) Organization: DEC Cambridge Research Lab References: <93108.102815DEP@SLACVM.SLAC.STANFORD.EDU> Date: Mon, 19 Apr 1993 12:51:34 GMT DECaudio started life as what we called "LoFi" at the Cambridge Research Laboratory. (A play on words, until recently, we hadn't done the software to do HiFi!). Here is a slightly edited version of the LoFi description. Note that currently Digital does not have ISDN software for this option. AudioFile will run both codec's, the telephone line interface, and the NeXT compatible serial port. Full programming information can be found in the AudioFile distribition available for anonymous ftp from crl.dec.com, as the files /pub/DEC/AF/{AF2R2.tar.Z,Af2R2-patches.tar.Z, AF2R2-other.tar.Z}. The documents are found in the distribution at "devices/lofi/docs/*". - Jim Introduction ------------ Lo-Fi is a TURBOchannel module that will provide base hardware capabilities for performing interesting audio experiments and research using DECStation 5000 workstations. Since Lo-Fi is a TURBOchannel device, other workstations supporting the TURBOchannel should have access to the same capabilities. Lo-Fi includes the following sections: Digital Signal Processor US Public Switched Telephone Network interface CODECS (analog I/O) Digital Audio Serial Port (with built-in 44.1 KHz Stereo DAC) ISDN Basic Rate Interface In the rest of this document we describe what applications we believe Lo-Fi will make possible and a bit more detail about the various hardware sections. Applications ------------ With suitable software, Lo-Fi hardware makes the following applications possible: Audio recording and playback Speech and audio companding Text-to-speech synthesis Speech recognition Answering machine/personalized message desk Speakerphone Music synthesis Connection to ISDN 'S' interface Connection to NeXT serial port devices Data modem FAX modem Digital Signal Processor ------------------------ Lo-Fi contains a digital signal processor (DSP) for off-loading real-time, compute-intensive activities from the host. This set of activities might include the vocal tract model within text-to-speech, the front-end analyzer within speech recognition, speakerphone echo cancellation, and the data pump and echo canceler within modems. The digital signal processor on Lo-Fi is the Motorola DSP56001. The DSP is clocked by a 27 MHz oscillator and will execute a 24x24 bit multiply/accumulate in 74 nanoseconds. The DSP56001 has 512 words of on-chip data memory and 512 words of on-chip program memory. Memory is expanded off-chip with a 32Kx24 bit Static RAM array. The DSP operates with zero wait states in the expanded memory. Digital Audio Serial Port ------------------------- The DSP56001 contains two serial ports that can be used to connect to an external source and sink of digital audio. The serial port signals are brought out to a 15 position connector. This interface is compatible to the NeXT DSP serial port, allowing connection to a variety of devices on the market today. US and Canada RJ11 Interface (Tip and Ring) ------------------------------------------- Lo-Fi includes a direct connect interface to the US and Canada Public Switched Telephone Network (PSTN). Lo-Fi has been successfully tested for compliance with FCC pt. 68 and Department of Communications Canada regulations for connection to the public switched telephone network when used with our device library software. A desktop phone can be connected to the same line and will continue to work when the workstation is powered off or reset. The interface to the PSTN is known as a Data Access Arrangement (DAA). A simple block diagram of the connections between the PSTN, desktop phone, and Lo-Fi is shown below. The phone off-hook condition will be detected with a loop current sensing circuit. <---- Lo-Fi | outside world--> | +----------+ | <-------| | +---------<<------ PSTN (Line) | DAA & | | | | | +-----+ | | 2-4 Wire | |Loop | | ------->| Converter| |Det. | | O-----O | | +-----+ | +-+ | | | | / \ | |-------+---------<<--------/ \ +----------+ | +-------+ (Set) The DAA has the following features: o 2 to 4 wire converter hybrid o typical transhybrid loss of 18 db o ring detect circuitry (sensitivity 38 Vrms) o hook switch control Dual Tone Multi-Frequency (DTMF) detection is necessary when connecting to the Public Switched Telephone Network (PSTN). Although DTMF detection is a trivial DSP application, it is a function that must run all the time. To reduce the computational overhead and software complexity on the DSP, an integrated DTMF detector is used. CODECS ------ Lo-Fi has two sets of audio sources and sinks: the telephone line interface and the speakerphone interface. The Main Audio Processor sections within two AMD 79C30A Digital Subscriber Controllers are used to support these two analog interfaces. The 79C30A provides gain control and analog filtering capabilities. The Lo-Fi analog ports use a fixed 8-KHz sample rate with 8-bit mu-law or A-law encoding (64 Kbps). The telephone line interface transmit and receive audio connects to the analog port on the primary 79C30A. The secondary 79C30A provides a line level and 50 ohm loudspeaker output and a line level and an electret microphone level input. (Please note that the mic input is a low voltage type electret mic interface. The supplied bias voltage is approximately 2.5 VDC.) Lo-Fi supports one input and one output on each CODEC simultaneously. Synthesized audio (from the workstation) can be independently sent to the speakerphone and the phone line. Received audio from the speakerphone can be sent to the phone line or to the workstation. Received audio from the phone line can be sent to the speakerphone or to the workstation. These connections are implemented in software, allowing the DSP to implement mixing and echo cancelling algorithms. ISDN Basic Rate Interface ------------------------- The AMD79C30A has an integrated ISDN 'S' line interface unit. The Lo-Fi hardware contains the necessary components to support an ISDN 'S' interface. This interface connects through an eight position modular jack. Distribution Box ---------------- Because of the limited connector space on TURBOchannel options, a cable connects Lo-Fi to an external distribution box. The distribution box breaks out to the following connectors: 15 Position DSub DSP port (NeXT Compatible) 5 Position Din DC Power for DSP port and Hi-Fi section Sub-miniature phone jack Mic input (mouth of handset) Miniature phone jack Line level output (Ear of handset) Minature phone jack 50 Ohm Loudspeaker/output with disconnect (there is a small internal loudspeaker) Miniature stereo phone Headphone, DAC Miniature stereo phone Line output, DAC 4 Position modular jack Handset interface 8 Position modular jack ISDN 'S' Mini-Din (2) 44.1KhZ DAC -- Digital Equipment Corporation Cambridge Research Laboratory