Part Number Hot Search : 
K4H5616 CD4584 CMDZ18L PEX8648 EVQPC1 MM1Z4694 060CT DG403
Product Description
Full Text Search
 

To Download PSB2163NV31 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ics for communications audio ringing codec filter featuring speakerphone function arcofi ? -sp psb 2163 users manual
ics for communications audio ringing codec filter featuring speakerphone function arcofi ? -sp psb 2163 users manual 06.95
data classification maximum ratings maximum ratings are absolute ratings; exceeding only one of these values may cause irreversible damage to the integrated circuit. characteristics the listed characteristics are ensured over the operating range of the integrated circuit. typical characteristics specify mean values expected over the production spread. if not otherwise specified, typical characteristics apply at t a = 25 c and the given supply voltage. operating range in the operating range the functions given in the circuit description are fulfilled. for detailed technical information about processing guidelines and quality assurance for ics, see our product overview . psb 2163 revision history: current version 06.95 previous version: 02.94 page subjects (changes since last revision) 108 absolute maximum ratings 108 dc characteristics 110 analog front end characteristics 111 transmission characteristics test conditions corrected addition of overall programming range 112 iom ? -2 bus timing specification of jitter timing
semiconductor group 5 general information contents page introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 comparison between psb 2163 and psb 2165 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 table of symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.1 pin definitions and functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 1.2 logic symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 1.3 functional block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 1.4 system integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 1.4.1 isdn-voice terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 1.4.2 terminal adapter a, b for analog telephones . . . . . . . . . . . . . . . . . . . . . . . . 22 1.4.3 voice/data terminal (pc-card) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 1.4.4 multifunctional isdn-terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 1.4.5 digital voice terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 1.4.6 iom ? -2 line card application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 1.4.7 primary rate application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 1.4.8 group 3 fax / modem adapter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 2 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 2.1 analog front end (afe) description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 2.1.1 description of the analog i/o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 2.1.2 afe-attenuation plan. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 2.1.3 interface to acoustic transducers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 2.2 arcofi ? signal processor (asp) description . . . . . . . . . . . . . . . . . . . . . . . 35 2.2.1 transmit signal processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 2.2.2 receive signal processing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 2.2.3 programmable coefficients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 2.2.4 tone generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 2.2.4.1 tone generation architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 2.2.4.2 control generator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 2.2.4.3 tone generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 2.2.4.4 tone filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 2.2.4.5 tone level adjustment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 2.2.4.6 dtmf-generator (transmit) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 2.2.5 arcofi ? speakerphone support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 2.2.5.1 speech detector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 2.2.5.2 speech comparators (sc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 2.2.5.3 attenuation control unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 2.2.5.4 speakerphone test function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 2.2.5.5 automatic gain control of the transmit direction (agcx) . . . . . . . . . . . . . . 59 2.2.5.6 automatic gain control of the receive direction (agcr) . . . . . . . . . . . . . . . 61 2.2.5.7 loudhearing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 2.2.6 speakerphone coefficient set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
semiconductor group 6 general information contents page 2.3 arcofi digital interface (adi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 2.3.1 pci-interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 2.3.2 iom ? -2 frame structure and timing modes . . . . . . . . . . . . . . . . . . . . . . . . . 65 2.3.3 serial control interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 2.3.4 serial data interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 2.4 test functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 3 operational description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 3.1 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 3.2 initialization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 3.3 arcofi ? operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 3.4 iom ? -2 interface protocol. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 3.4.1 b- and ic-channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 3.4.2 monitor channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 3.4.2.1 mon-channel data structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 3.4.2.2 mon transfer protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 3.4.2.3 implementation of the mon-channel protocol. . . . . . . . . . . . . . . . . . . . . . . . 85 3.4.3 command/indication channel 1 (te-mode). . . . . . . . . . . . . . . . . . . . . . . . . . 87 3.5 arcofi ? voice/data manipulation (vdm). . . . . . . . . . . . . . . . . . . . . . . . . . . 89 4 detailed register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 4.1 command register (cmdr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 4.2 general configuration register (gcr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 4.3 data format and interface configuration register (dficr) . . . . . . . . . . . . . 97 4.4 programmable filter configuration register (pfcr). . . . . . . . . . . . . . . . . . . 98 4.5 tone generator configuration register (tgcr) . . . . . . . . . . . . . . . . . . . . . . 99 4.6 tone generator switch register (tgsr). . . . . . . . . . . . . . . . . . . . . . . . . . . 100 4.7 afe transmit configuration register (atcr) . . . . . . . . . . . . . . . . . . . . . . . 101 4.8 afe receive configuration register (arcr) . . . . . . . . . . . . . . . . . . . . . . . 102 4.9 test function configuration register (tfcr) . . . . . . . . . . . . . . . . . . . . . . . 103 4.10 sdi configuration register (sdicr); sdi-mode only . . . . . . . . . . . . . . . . . 104 4.11 time-slot configuration register (tscr); sdi-mode only . . . . . . . . . . . . . 105 4.12 extended configuration register (xcr) . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 4.13 test mode register (tmr). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 5 electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 6 package outlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 7 application notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 8 information on literature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 semiconductor group - addresses 9 microelectronic training center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 iom ? , iom ? -2, arcofi ? , isac ? -p, isac ? -s, itac ? , sicofi ? are registered trademarks of siemens ag. contents (contd) page
semiconductor group 7 introduction the psb 2163 arcofi ? -sp provides the subscriber with an optimized audio, ringing, codec, filter processor solution for a digital telephone. it fulfills all the necessary requirements for the completion of a low-cost digital telephone. please note: throughout this whole document arcofi ? refers to arcofi ? -sp psb 2163. the arcofi performs all coding, decoding and filtering functions according to the ccitt and etsi (net33) norms. full featured applications are possible without any external elements. all the necessary hardware and software is implemented. in addition the arcofi offers a speakerphone and monitoring function. this feature is completely digitally implemented in the chip. two transducer correction filters (one for each direction) can be programmed to correct the analog transducer frequency characteristics. the arcofi provides a universal dtmf, tone and ringing generator for the receive direction. the signal forms available are dtmf, square, trapezoid and sine wave. complex signal sequences are made possible by a control generator (e.g. pulsed three tone call in conjunction with the beat generator). a dtmf-generator for the transmit direction is also available. if the transmit dtmf-generator is active, only a part of the receive tone generator function is possible. this flexible tone generator concept fulfills a wide range of applications. the interfacing to a handset mouth and earpiece is facilitated by a flexible analog front end. a loudspeaker output has also been integrated on the chip as well as a secondary input for a handsfree microphone. all analog inputs and outputs are gain programmable through software. at the digital side an isdn-oriented modular (iom ? -2) interface for terminal (te) and non-terminal (non-te) applications or a serial control/data interface (sci & sdi) is realized to connect layer-1/2 devices to the arcofi. the arcofi is a blcmos-device, available in a p-dip-28, p-lcc-28-r or p-dso-28 package. it operates from a single + 5 v supply and features a power-down state with very low power consumption. general information
semiconductor group 8 general information comparison between psb 2163 and psb 2165 table of main differences: psb 2163 psb 2165 comment 1- m bicmos technology p-dso-28 non-te iom-2 interface serial control/data interface one receive channel digital high-pass in receive direction agc in receive direction sidetone gain stage gz with higher resolution (two byte coefficient) optimized speakerphone function microphone amplifier with additional 36-db and 42-db gain stages controlled monitoring with fixed attenuation ringing directly via loudspeaker with square-wave in 3-db steps tone generation unit can be switched to transmit path and added to transmit speech signals additional test loops etsi (net33) & ccitt g.714 2- m cmos technology sld-interface two receive channels lga (programmable gain stage) in receive direction gz with one byte coefficient controlled monitoring with programmable attenuation ringing via loudspeaker over the second receive path ccitt g.714 extended coefficient space is necessary
semiconductor group 9 general information table of symbols ad address of the arcofi (iom-2 mode) a/d analog to digital converter adi arcofi digital interface afe analog front end agcx automatic gain control transmit agcr automatic gain control receive aho handset output amplifier aimx analog input multiplexer control bits (atcr) alc analog loop via converter (tfcr) alf analog loop via front end (tfcr) ali analog loop via interface (tfcr) aln analog loop via noise shaper (tfcr) als loudspeaker amplifier altf analog loop & test function bits (tfcr) alz analog loop via z-side tone gain stage ami microphone amplifier arcofi audio ringing codec filter asp arcofi signal processor bm beat mode bit (tgcr) bt beat tone bit (tgcr) cam chip address mode bit (iom-2 two chip mode; gcr) ccitt international telegraph and telephone consultative committee cg control generator bit (tgcr) cmdr command register cop coefficient operation (cmdr) cr configuration register cram coefficient ram cs chip select active low (serial control interface) d/a digital to analog converter dce double clock enable at dclk pin (sdicr) dcl iom-2 interface clock dclk data clock pin (serial data interface) dd iom-2 data downstream pin dec decimation filter dhon disable pin hon (xcr) dhop disable pin hop (xcr) dhpr disable high pass receive bit (pfcr) dhpx disable high pass transmit bit (pfcr) dln digital loop via noise shaper (tfcr) dlp digital loop via pcm-register (tfcr)
semiconductor group 10 general information table of symbols (contd) dls digital loop via signal processor (tfcr) dlsn disable pin lsn (xcr) dlsp disable pin lsp (xcr) dltf digital loop & test function bits (tfcr) dr data receive pin (serial data interface) dram data ram dsp digital signal processor dt dual tone bit (tgcr) dtmf dual tone multi frequency bit (tgsr) du iom-2 data upstream pin dx data transmit pin (serial data interface) ep0 earpiece epp0 enable push-pull at pin du/dx (sdicr) epp1 enable push-pull at pin sa/sdx (sdicr) epzst enable pz1/pz2 to output internal status conditions (tfcr) etf enable tone filter bit (tgcr) etsi european telecommunications standards institute evx enable voice transmit bit (gcr) evref enable vref buffer bit (atcr) ewdf electrical wave digital filter fr frequency correction receive bit (pfcr) fsc iom-2 and sdi-frame synchronization pin (8 khz) fx frequency correction transmit bit (pfcr) gr receive gain bit (pfcr); receive gain stage gx transmit gain bit (pfcr); transmit gain stage gz z-side tone gain bit (pfcr); z-side tone gain stage ho handset output hoc handset output control bits (arcr) hon handset earpiece output C pin hop handset earpiece output + pin ident identification code idr initialize data ram (tfcr) int interpolation filter iom isdn-oriented modular isdn integrated services digital network
semiconductor group 11 general information table of symbols (contd) law a-law/ m -law bit (gcr) lin linear data mode (vdm; dficr) ls loudspeaker lsc loudspeaker control bits (arcr) lsn loudspeaker output C pin lsp loudspeaker output + pin mclk master clock pin (synchronized system clock) mclkr master clock rate (sdicr) mi3 microphone input mic microphone control bits (atcr) min1/2 microphone inputs C pins mip1/2 microphone inputs + pins nop no operation (cmdr) not no test mode (tfcr) pabx private automatic branch exchange pci peripheral control interface pcm pulse code modulation pm piezo mode; output to digital pins pz1/pz2 (tgsr) por power-on reset pu power-up bit (gcr) raar read automatic attenuation receive rcm reverse channel mode (cmdr) rs reset pin r/w read/write operation bit (cmdr) rx receive path sa-sd pci i/o pins; i/o-control bits (sdicr) scae speech comparator at the acoustic side sci serial control interface scle speech comparator at the line side sclk serial clock pin (serial control interface) sdi serial data interface sdr serial data receive pin (serial control interface) sdx serial data transmit pin (serial control interface) slot iom-2 slot select for te mode (gcr) sm stop mode bit (tgcr) sop status operation (cmdr) sp speakerphone enable bit (gcr)
semiconductor group 12 general information table of symbols (contd) sqtr square/trapezoid mode bit (tgcr) s/t square/trapezoid generator te terminal equipment tg tone generator bit (tgcr) tr three party conferencing (vdm; dficr) trl tone ringing via loudspeaker (tgsr) trr tone ringing receive bit (tgsr) trx tone ringing transmit bit (tgsr) ts time-slot selection in sdi-mode (tscr) tx transmit path v dd voltage supply (+ 5 v) v ddp analog voltage supply for power amplifiers (+ 5 v) vdm voice data manipulation bits (dficr) v ref reference voltage output pin v ssa analog ground (0 v) v ssd digital ground (0 v) v ssp analog ground for power amplifiers (0 v) wdf wave digital filter xop extended operation (cmdr)
audio ringing codec filter featuring speakerphone function (arcofi ? -sp) preliminary data bicmos-ic p-dso-28 p-lcc-28-r p-dip-28 1 features l applications in digital terminal equipment featuring voice functions l digital signal processing performs all codec functions l fully compatible to the g. 714 ccitt and etsi (net33) specification l pcm a-law/ m -law (g. 711 ccitt) and 16-bit linear data l flexible configuration of all internal functions l iom-2 interface (te- and non-te-mode), serial control interface (sci) and serial data interface (sdi) l three analog inputs for the microphone in the handset, the speakerphone and the headset l two differential outputs for a handset earpiece (200 w ) and a loudspeaker (50 w ) l 100-mw sine wave and 200-mw square wave loudspeaker driver capability l separate digital output for a piezo ringer l flexible peripheral control interface (pci) in iom-2 te-mode l flexible test and maintenance loopbacks in the analog front end and the digital signal processor l independent gain programmable amplifiers for all analog inputs and outputs l full digital speakerphone and monitoring support without any external components (speakerphone test and optimization function is available) l two transducer correction filters l side tone gain adjustment l flexible dtmf, tone and ringing generator l single 5-v power supply l low power consumption: standby 1 mw, operating con- sumption is dependent on the selected operating mode l advanced 1- m bicmos technology semiconductor group 11 06.95 psb 2163 type ordering code package psb 2163-t q67100-h6458 p-dso-28 (smd) psb 2163-n q67100-h6348 p-lcc-28-r (smd) psb 2163-p q67100-h6460 p-dip-28
semiconductor group 14 features pin configurations (top view) p-dso-28 p-dip-28 p-lcc-28-r
semiconductor group 15 features 1.1 pin definitions and functions pin no. p-dso p-lcc p-dip symbol input (i) output (o) open drain (od) function 21 v dd power supply (5 v 5%) 13 v ddp power supply (5 v 5%) 1 v ssd digital ground (0 v) 20 v ssa analog ground (0 v) 15 v ssp analog ground (0 v) 23 mode i mode selection: iom-2 or serial control/data interface 25 ad mclk i i iom address: chip address in iom-2 two chip mode master clock: synchronous system clock when serial control/data interface is selected 24 rs i reset: a high signal on this pin forces the arcofi into reset state 26 fsc i frame sync: 8-khz frame synchronization signal (iom-2 and sdi-mode) 22 dcl dclk i i dcl-system clock: 1.536 mhz supplied by the application system clock when iom-2 mode is selected dclk data clock: data clock of the serial data interface (sdi) 6dd dr i/(od) 1) i data downstream: receive data from layer-1 iom-2 controlling device data receive: receive data of the serial data interface (sdi) 28 27 pz1 pz2 o o digital piezo ringer output: when selected the tone ringer is routed to this output (pz1 & pz2 are in opposite phases) 1) see dd/du-voice channel swapping (xop_d)
semiconductor group 16 features 7du dx od/i 1) od/o 2) data upstream: transmit data to the layer-1 iom-2 controlling device data transmit: transmit data of the serial data interface (sdi) 2sd cs io i programmable i/o pci pin sd: this port pin is only available in iom-2 te-mode chip select: a low level indicates a microprocessor access to the arcofi-serial control interface (sci) 3sc sclk io i programmable i/o pci pin sc: this port pin is only available in iom-2 te-mode serial clock: clock signal of the serial control interface (sci) 4sb sdr io i programmable i/o pci pin sb: this port pin is only available in iom-2 te-mode serial data receive: receive data line of the serial control interface (sci) 5sa sdx io od/o 3) programmable i/o pci pin sa: this port pin is only available in iom-2 te-mode serial data transmit: transmit data line of the serial control interface (sci) 19 v ref o 2.4 v output: output for biasing analog single ended inputs 8 9 mip1 min1 i i microphone input 1: this highly symmetrical differential input has been designed for commonly used telephone microphones 1) see dd/du-voice channel swapping (xop_d) 2) programmable via bit sdicr.epp0 3) programmable via bit sdicr.epp1 1.1 pin definitions and functions (contd) pin no. p-dso p-lcc p-dip symbol input (i) output (o) open drain (od) function
semiconductor group 17 features 11 10 mip2 min2 i i microphone input 2: this highly symmetrical differential input has been designed for commonly used telephone microphones 12 mi3 i microphone input 3: this single-ended input has been designed for commonly used telephone microphones 14 16 lsp lsn o o loudspeaker output: lsp & lsn are differential output pins which can drive a 50- w loudspeaker directly; a piezo transducer can also be used for ringing signal instead of the loudspeaker 17 18 hop hon o o handset earpiece output: hop & hon are differential output pins which can drive handset earpiece transducers directly 1.1 pin definitions and functions (contd) pin no. p-dso p-lcc p-dip symbol input (i) output (o) open drain (od) function
semiconductor group 18 features 1.2 logic symbol figure 1 logic symbol of the arcofi ?
semiconductor group 19 features 1.3 functional block diagram figure 2 block diagram of the arcofi ?
semiconductor group 20 features 1.4 system integration the complete family of ics for digital terminals offered by siemens simplifies the development of these devices and gives a cost-effective solution to the design engineer. the architecture of these terminals is based on a modular interface especially conceived for isdn and named iom-2. figure 3 shows an example of an integrated multifunctional isdn-s terminal using the isac ? -s te. the isac-s te (isac-s: isdn s-access controller psb 2186) provides the s interface and separates the b and d channels. in this example one icc (icc: isdn communication controller peb 2070) is used to handle data packets on the d-channel. a voice processor is connected to a programmable digital signal processing codec filter (arcofi) via ic1 and a data encryption module to a data device via ic2. b1 is used for voice communication and b2 for data communication. typical terminal applications are described in the next sections. figure 3 example of isdn-s voice/data terminal
semiconductor group 21 features 1.4.1 isdn-voice terminal figure 4 shows a typical solution for a voice terminal for s interface. the arcofi offers the functions of codec, filtering and speakerphone. it also carries out the functions of tone ringing, dtmf, and a/d- and d/a-conversions. the arcofi permits the direct connection of a handset and a speakerphone/loudspeaker. the arcofi can be programmed and read out by the m c via the lom-2-interface and the isac-s te. the same m c supervises the keyboard functions and the function hook-on/off. the s-interface functions such as activation/deactivation, clock recovery, clock resynchronization as well as the layer-2 functions like lapd-protocol handling are executed by the isdn-subscriber access controller, also called isac-s te psb 2186. a u k0 -interface telephone can easily be derived from the voice terminal shown on figure 4 by replacing the isac-s with the isdn-communication controller icc peb 2070 and the isdn-echo cancellation unit iec peb 2091. a u p0 -interface telephone is obtained by interchanging the iec with the isdn-burst controller ibc peb 2095. in this configuration the icc peb 2070 and the ibc peb 2095 can be replaced by the isac-p te psb 2196. figure 5 shows a typical solution for a voice terminal for u k0 - or u p0 -interface. in any case the whole terminal is power supplied either by the isdn-remote power controller irpc psb 2120 or by the general purpose power controller gppc psb 2121.
semiconductor group 22 features figure 4 basic isdn s-voice terminal
semiconductor group 23 features figure 5 basic isdn u-voice terminal * icc and ibc can be replaced by the isac ? -p te psb 2196
semiconductor group 24 features 1.4.2 terminal adapter a, b for analog telephones figure 6 shows how to implement a terminal adapter (a, b) connecting analog telephones to the isdn-world. a slic can be connected to the arcofi. the tip and ring information is transmitted transparently through the arcofi via the c/i-channel of the lom-channel 1, through the isac-s te to the m c. figure 6 terminal adapter a, b for analog telephones 1.4.3 voice/data terminal (pc-card) figure 7 shows a voice/data terminal developed on a pc-card. the itac psb 2110 (itac: isdn-terminal adapter circuit) ensures the bit rate adaptation necessary to connect a non isdn-terminal (v.24) to the isdn-world. the com-ic is an uart (type: 8250 or 16450) which is necessary for modem applications.
semiconductor group 25 features the dual port ram is used for data transfer between the terminal processor and the pc. the card is powered by the pc, and thus no power controller is necessary. figure 7 pc-card as an isdn-voice/data terminal 1.4.4 multifunctional isdn-terminal figure 8 gives an example of a multifunctional terminal. the hscx sab 82525 (hscx: high-level serial communications controller extended) simplifies the realization of an intelligent x.25 terminal adapter module whereas the itac psb 2110 offers x.21, v.24, v.110 or v.120 interfaces for non isdn-terminals. the m c connected to the isac-s te psb 2186 is the system master. the two other m cs are the slaves. when a slave m c wants to intervene, it informs the master via the c/l-channel of iom-2 channel 1.
semiconductor group 26 features figure 8 multifunctional isdn-terminal
semiconductor group 27 features 1.4.5 digital voice terminal the serial control interface allows the arcofi to be programmed directly from a serial port of a microcontroller. the voice data may be transmitted via the iom-2 interface or on a pcm-interface provided from other transceiver devices. if the serial data interface (sdi) is selected the pcm-data rate can vary from 64 kbit/s up to 4096 kbit/s. figure 9 shows a pabx-voice terminal using the isac-p te psb 2196 together with a motorola type microcontroller. figure 10 shows a pabx-voice terminal using a transceiver device without iom-2 interface. figure 9 u p0 pabx-voice terminal
semiconductor group 28 features figure 10 pabx-voice terminal in non-iom ? -2 architecture
semiconductor group 29 features 1.4.6 iom ? -2 line card application some applications require the arcofi to connect directly to the iom-2 interface of a line card. the lom-channel is selected via pin-strapping. the arcofi is programmed via the monitor channel of the selected lom-channel. up to two arcofls can be distinguished via ad input on the same iom-channel. this configuration allows control of up to 16 arcofls on one iom-2 interface of a line card controller. figure 11 arcofi ? line-card application
semiconductor group 30 1.4.7 primary rate application the arcofi is designed to be connected to a 24 or 32 time-slot pcm-interface used e.g. on primary rate equipment. the pcm-data is transmitted via the serial data interface while programming of the arcofi is done on the serial control interface. figure 12 primary rate application features
semiconductor group 31 1.4.8 group 3 fax / modem adapter the arcofi can be connected to a standard fax or modem chip set designed for analog networks. the arcofi converts the analog signal to pcm-data which are transmitted over the digital network. figure 13 group 3 fax/modem adapter features
semiconductor group 30 functional description 2 functional description the arcofi bridges the gap between the audio world of microphones, earphones, loudspeakers and the pcm-digital world by providing a full pcm-codec with all the necessary transmit and receive filters. a block diagram of the arcofi is shown in figure 14 . the arcofi can be subdivided in three main blocks: l the arcofi analog front end (afe) l the arcofi signal processor (asp) l the arcofi digital interface (adi) a detailed description can be found in the following chapters. figure 14 architecture of the arcofi ?
semiconductor group 31 functional description 2.1 analog front end (afe) description the analog front end section of the arcofi is the interface between the analog transducers and the digital signal processor. in the transmit direction, the afe-function is to amplify the transducer input signals (microphones) and to convert them into digital signals. in the afe-receive section, the incoming digital signal is converted to an analog signal which is output to an earpiece and/or a loudspeaker. a block diagram of the afe is shown in figure 15 . figure 15 signal flow graph of the afe
semiconductor group 32 functional description 2.1.1 description of the analog i/o two differential inputs (mip1/min1 and mip2/min2) and one single-ended input (ml3) are connected to the amplifier ami via an analog input multiplexer. the programmable amplifier ami provides a coarse gain adjustment range. fine gain adjustment is performed in the digital domain via the programmable gain adjustment stage gx (see signal processor section). this allows a perfect level adaptation to various types of microphone transducers without loss in the signal to noise performance. fully differential output hop/hon connects the amplifier aho to a handset earpiece. differential output lsp/lsn is provided for use with a 50- w loudspeaker. up to 100 mw (sine wave) of power can be delivered to the loudspeaker via the amplifier als. the programmable amplifiers aho and als provide a coarse gain adjustment range. fine gain adjustment is performed in the digital domain via the programmable adjustment stage gr. two implemented afe-configuration registers (atcr & arcr) provide a high flexibility to accommodate an extensive set of user procedures and terminal attributes. 2.1.2 afe-attenuation plan transmit direction parameter transmit limit values unit reference 0dbm0 max. mip1/min1 mip2/min2 microphone input level at max gain ami=42db 1.33e-02 9.38e-03 C42 C 38.33 1.91e-02 1.35e-02 C 38.86 C 35.19 vp vrms dbm0 dbm v v 1.2 v 0.775 v mip1/min1 mip2/min2 microphone input level at min gain ami=0db 1.67e-00 1.18e-00 0 3.67 2.40e-00 1.70e-00 3.14 6.81 vp vrms dbm0 dbm v v 1.2 v 0.775 v mi3 input level at max gain ami=24db 1.06e-01 7.46e-02 C24 C 20.37 1.51e-01 1.07e-01 C 20.86 C 17.19 vp vrms dbm0 dbm v v 1.2 v 0.775 v mi3 input level at min gain ami=0db 8.36e-01 5.91e-01 C6 C 2.33 1.20e-00 8.49e-01 C 2.86 0.81 vp vrms dbm0 dbm v v 1.2 v 0.775 v
semiconductor group 33 functional description receive direction parameter receive limit values unit reference 0dbm0 max. lsp/lsn output level symmetrical in a 50- w load als = 2.5 db 2.23e-00 1.58e-00 2.5 6.17 3.20e-00 2.26e-00 5.64 9.31 vp vrms dbm0 dbm v v 1.2 v 0.775 v lsp/lsn output level symmetrical in a 50- w load als = C 21.5 db 1.41e-01 9.95e-02 C 21.5 C 17.83 2.02e-01 1.43e-01 C 18.36 C 14.69 vp vrms dbm0 dbm v v 1.2 v 0.775 v hop/hon output level symmetrical in a 200- w load aho = 2.5 db 2.23e-00 1.58e-00 2.5 6.17 3.20e-00 2.26e-00 5.64 9.31 vp vrms dbm0 dbm v v 1.2 v 0.775 v hop/hon output level symmetrical in a 200- w load aho = C 15.5 db 2.81e-01 1.99e-01 C 15.5 C 11.83 4.03e-01 2.85e-01 C 12.36 C 8.69 vp vrms dbm0 dbm v v 1.2 v 0.775 v
semiconductor group 34 functional description 2.1.3 interface to acoustic transducers note: esd and emv requirements are not included. figure 16 example to connect the afe to acoustic transducers
semiconductor group 35 functional description 2.2 arcofi ? signal processor (asp) description the arcofi signal processor (asp) has been conceived to perform all ccitt and etsi (net33) recommended filtering in transmit and receive paths and is therefore fully compatible to the g.714 ccitt and etsi (net33) specifications. the data processed by the asp is provided in the transmit direction by an oversampling a/d-converter situated in the analog front end (afe). once processed, the speech signal is converted into an 8 bit a-law or m -law pcm-format or remains as a 16-bit linear word (2s complement) if the compander is by-passed. the by-passing of the companding depends on the bit setting in the configuration register dficr (vdm-bits). in the receive direction, the incoming pcm-stream is expanded into a linear format (if the linear mode is selected, the expansion logic is by-passed) and subsequently processed until it is passed to the oversampling d/a-converter. additionally to these standard codec functions, the arcofi provides a universal tone generation unit and a high quality speakerphone function.
semiconductor group 36 functional description figure 17 processor signal flow graph
semiconductor group 37 functional description 2.2.1 transmit signal processing in the transmit direction a series of decimation filters reduces the sampling rate down to the 8-khz pcm-rate. these filters attenuate the out-of-band noise by limiting the transmit signal to the voice band. the decimation stages end with a ewdf low-pass filter which band-limits the voice signal to the ccitt g.714 and etsi (net33) recommendations. the arcofi meets or exceeds all the ccitt and etsi (net33) recommendations on attenuation distortion and group delay distortion. if the tone generation unit is connected to the transmit direction (tgsr.dtmf = 1), a special 2-khz dtmf-low-pass filter is placed in the transmit path. this filter guarantees an attenuation of all unwanted frequency components, if dtmf-signals are transmitted. additionally, it is possible to add a programmable tone signal to the transmit voice signal (tgsr.trx = 1). the gx-gain adjustment stage is digitally programmable allowing the gain to be programmed from + 6 to 0 db in steps of 0.25 db (C db and others are also possible). two bytes are necessary to set gx to the desired value. on reset, the gx-gain stage is by-passed. the transmit path contains a programmable high performance frequency response correction filter fx allowing an optimum adaptation to different types of microphones (dynamic, piezoelectric or electret). twelve bytes are necessary to set fx to the desired frequency correction function. on reset, the fx-frequency correction filter is by-passed. figure 18 shows the architecture of the fx/fr-filter. a high-pass filter (hpx) is also provided to remove power line frequencies. the voice signal, after being linearly processed, can be output as an 8-bit pcm-word according to the ccitt g.711 a-law or the north-american m -law format. if desired the companding stage can be by-passed, a 16-bit linear word (2s complement) is then output to the iom-2 or sdi-interface. 2.2.2 receive signal processing in the receive path the incoming pcm-signal is expanded into a linear code according to the selected a-law or m -law. if the linear mode is chosen, the pcm-expander circuit is by-passed and a 16-bit linear word (2s complement) has to be provided to the processor. the block vdm offers several possibilities of voice/data manipulation for special applications. a programmable sidetone gain stage gz adds a sidetone signal to the incoming voice signal. the sidetone gain can be programmed from C 54 to 0 db within a 1 db tolerance
semiconductor group 38 functional description range (C db and others are also possible). respectively two bytes are coded in the cram to set gz to the desired value. on reset, the gz-gain stage is disabled (C db). a high-pass filter (hpr) is also provided to remove disturbances from 0 to 50/60 hz due to the telecommunication network. the fr-frequency correction response filter is similar to the fx-filter allowing an optimum adaptation to different types of loudspeakers or earpieces. twelve bytes are necessary to set fr to the desired frequency correction function. on reset, the fr-frequency correction filter is by-passed. the gr-gain adjustment stage is digitally programmable from C 6 to 0 db in steps 0.25 db (C db and others are also possible). respectively two bytes are coded in the cram to set gr to the desired value. on reset, the gr-gain stage is by-passed. a low-pass ewdf-filter limits the signal bandwidth in the receive direction according to ccitt and etsi (net33) recommendations. a series of low-pass interpolation filters increases the sampling frequency up to the desired value.the last interpolator feeds the d/a-converter. figure 18 architecture of the fx- and fr-correction filter
semiconductor group 39 functional description 2.2.3 programmable coefficients this section gives a short overview of important programmable coefficients. for more detailed information and about special applications, a special coefficient software package is available (arcos-sp plus sipo 2163). description of the programmable level adjustment parameters: coefficients for gx, gr and gz: parameter # of cram bytes range comment gx 2 12 to C db 6 to 0 db transmit gain adjustment transmission characteristics guaranteed gr 2 12 to C db 0 to C 6 db receive gain adjustment transmission characteristics guaranteed gz 2 12 to C db sidetone gain adjustment gain [db] msb lsb gain [db] msb lsb gain [db] msb lsb 12.0 11.0 10.0 9.0 8.0 7.0 6.0 5.5 5.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0 0.5 10 h 10 h 10 h 01 h 20 h 30 h 13 h b0 h a0 h 23 h 22 h 23 h 32 h b1 h b1 h 33 h b2 h b3 h 01 h 31 h 13 h 4b h 94 h 94 h 51 h 39 h 49 h 01 h b4 h 12 h a4 h bc h 03 h 39 h 5a h 49 h 0 C 0.5 C 1.0 C 1.5 C 2.0 C 2.5 C 3.0 C 3.5 C 4.0 C 4.5 C 5.0 C 5.5 C 6.0 C 7.0 C 8.0 C 9.0 C 10.0 C 11.0 a0 h b3 h a3 h a2 h bb h bb h ba h ba h a2 h aa h 9b h aa h aa h b9 h 9a h 9b h 9b h 93 h 01 h 42 h 2b h 32 h 4a h 13 h 29 h 5b h 01 h 1b h 3a h 33 h 22 h 2c h bc h 13 h 32 h 02 h C 12.0 C 13.0 C 14.0 C 15.0 C 16.0 C 17.0 C 18.0 C 19.0 C 20.0 C 21.0 C 22.0 C 23.0 C 24.0 C 25.0 C 26.0 C a9 h 9c h 99 h 8c h 82 h 84 h 89 h 8b h 84 h 8c h 82 h 84 h 89 h 8b h 84 h 88 h 01 h 51 h 13 h 1b h 7b h 4b h 6a h 0c h 1c h 1c h 7c h 4c h 6b h 0d h 1d h 01 h
semiconductor group 40 functional description 2.2.4 tone generation 2.2.4.1 tone generation architecture the asp contains a universal tone generator which can be used for tone alerting, call progress tones, dtmf-signals or other audible feedback tones. for the receive channel, a universal switching to each signal path (earpiece, loudspeaker and piezo ringer) is implemented. in the earpiece and loudspeaker direction, an addition of the programmed tone sequence (sine-wave, trapezoid, square-wave and dtmf) with the incoming voice signal is possible. for the transmit direction, a supplementary dtmf-generator is implemented. if the dtmf-generator is active (tgsr.dtmf = 1), only a part of the tone generator (tg) is available for the receive direction (one or two tone sequences). in addition, a universal switching to the transmit path is also possible (tgsr.trx). all the tone generation configurations are programmable in the registers tgcr and tgsr (see description in chapter 4). a signal flow graph of the arcofi-tone generation unit is shown in figure 19 . the tone generation can be subdivided into five main blocks: l control generator (cg) l tone generator (tg) l tone filter (tf) l tone level adjustment (tla) l dtmf-generator (dtg) a detailed description of the five main tone generation blocks follows in the next sub-sections.
semiconductor group 41 functional description note: adjustments in brackets are only available if the dtmf-generator is switched off (tgcr.dtmf = 0). figure 19 signal flow graph of the tone generation unit
semiconductor group 42 functional description 2.2.4.2 control generator in conjunction with the control generator it is possible to generate very complex signal sequences without reprogramming the necessary parameters (e.g. pulsed three tone calls). four typical applications for the control generator programming are shown in figure 20 . figure 20 typical control generator application
semiconductor group 43 functional description function table of cg/tg-bit setting in tgcr: description of the programmable parameters: 2.2.4.3 tone generator the tone generator contains a beat generator, a square/trapezoid generator, a second trapezoid generator and an automatic stop for two and three tone ringing signals. with the automatic stop function (sm-bit setting in tgcr) the multitone generation can be stopped after a defined frequency. this avoids unpleasant sounds when stopping the tone generator. if the control generator is activated (tgcr.cg = 1) the bit setting of tg is insignificant. otherwise (tgcr.cg = 0) the tg-bit setting controls the activities of the tone generator. a functional diagram of the tone generator is shown in figure 21 . ton/toff cg tg generator output x x toff ton 0 0 1 1 0 1 x x no tone ringing sequence f1, f2, f3 without break break between two ringing sequences of f1, f2, f3 ringing sequence until next break parameter # of cram bytes range comment ton toff 2 2 20 ms to 16 min 20 ms to 16 min period while the tone generator is turned on period while the tone generator is turned off
semiconductor group 44 functional description figure 21 functional diagram of the tone generator distinctive alerting signals, allowing for example the use of different multitone ringing patterns, are all programmable using the beat tone generator in conjunction with the square/trapezoid generator. in the case of two or three tone ringing signals, the square/ trapezoid generator controls the output frequency pitch whilst the beat generator controls the repetition rate. either square or trapezoid shaped tones can be generated depending on the tgcr.sqtr bit setting. if the piezo mode (pm or trl in tgsr) is chosen, only a square-wave is available (fixed amplitude of v dd ). in this case the sqtr bit in tgcr has no effect. a secondary trapezoid generator is also built into the arcofi. depending on the dt-bit setting in the tgcr, the output signal of this generator is added to the output signal of the square/trapezoid (s/t) generator. in conjunction with the s/t generator, a wide variety of different dual tone signals can be programmed. if the beat generator (tgcr.bt = 1) is enabled, the automatic stop function (sm-bit setting in tgcr) can be activated. this prevents an uncontrolled turn-off of the tone generator. only when the generation of the frequency f2 or f3 (depending on the bm-bit setting in tgcr) has been completed, the tone generator will switch off.
semiconductor group 45 functional description beat generator programming: description of the programmable parameters: n is either 1, 2 or 3 note: 0-db gain setting of g1, g2 or g3 and gd1, gd2 or gd3 corresponds to the maximum pcm-level (a-law: + 3.14 db) bt bm dt generator output 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 continuous signal f1, g1 continuous signal f1, g1 + fd, gd1 continuous signal f2, g2 continuous signal f2, g2 + fd, gd2 alternating signal f1, g1, t1; f2, g2, t2 alternating signal f1, g1, t1; f2, g2, t2 + fd, gd1, t1; fd, gd2, t2 alternating signal f1, g1, t1; f2, g2, t2; f3, g3, t3 alternating signal f1, g1, t1; f2, g2, t2; f3, g3, t3 + fd, gd1, t1; fd, gd2, t2; fd, gd3, t3 parameter # of cram bytes range comment fn 2/2/2 50 hz to 4 khz trapezoid shaped tone 16 khz/m; (m 3 3) square-wave signal gn 1/1/1 0 db to C 48 db gain adjustment for square/trapezoid generator tn 2/2/2 10 ms to 8 s period of time for two or three tone sequences fd 2 50 hz to 4 khz trapezoid shaped tone gdn 1/1/1 0 db to C 48 db gain adjustment for trapezoid generator
semiconductor group 46 functional description 2.2.4.4 tone filter the tone filter contains a programmable equalizer and a saturation amplifier ( see figure 19 ). if no filter function is necessary, a by-pass mode can be used (tgcr.etf = 0). a brief description of the tone filter follows below. the equalizer is realized as a band-pass filter. the filter parameters (center frequency, bandwidth, and attenuation of the stop-band) are programmable. a generated square-wave or trapezoid signal can be converted by the equalizer into a sine-wave signal. a maximum attenuation of the first harmonic frequency of 50 db is possible. by programming the equalizer as a broadband filter, the quality of the dtmf-signal (receive direction) is improved. a level balancing of the two frequency components can be made with g1, g2, g3 and gd1, gd2, gd3. the two main purposes of the programmable saturation amplification are: l level balancing of the filtered signal (avoidance of overload effects). l amplification up to + 12 db followed by a saturation of the incoming signal. this saturation amplification converts a sine-wave signal into a square-wave or a trapezoid signal where their edges are eliminated. this method produces pleasant ringing tones. description of the programmable parameters: parameter # of cram bytes range comment a1 a2 k ge 1 1 1 1 200 hz to 4 khz 0 to C 1 0 to 54 db + 12 to C 12 db center frequency bandwidth (strongly dependent on a1 and k) attenuation of the stop-band saturation amplification
semiconductor group 47 functional description 2.2.4.5 tone level adjustment the two level adjustment stages gtr and gtx determines the output levels of the tone generation ( see figure 19 ). description of the programmable parameters: 2.2.4.6 dtmf-generator (transmit) the dtmf-generator contains two independent trapezoid generators which can be programmed in a wide frequency and gain range. if the dtmf-generator is active (tgsr.dtmf = 1), the output signal is automatically switched to the transmit direction. in this case the attenuation of the unwanted frequency components is executed by a special dtmf-low-pass filter to the following limits: the pre-emphasis of 2 db between the high and the low dtmf-frequency groups has to be set with the independent gain stages for the two trapezoid generators (g3 and gd3). all generated dtmf-frequencies are guaranteed within a 1 % deviation. parameter # of cram bytes range comment gtx gtr 1 1 0 db to C 50 db (also C db) 0 db to C 50 db (also C db) level adjustment for the output which is connected to the transmit channel level adjustment for the output which is connected to the receive channel frequency band min. attenuation 0 C 300 hz 300 C 3400 hz 3400 C 4000 hz 33 db 20 db 33 db
semiconductor group 48 functional description dtmf-frequency (f3, fd) programming: note: the deviations due to the inaccuracy of the incoming clock dcl/mclk, when added to the nominal deviations tabulated above give the total absolute deviation from the ccitt-recommended frequencies. description of the programmable parameters: 2.2.5 arcofi ? speakerphone support the speakerphone option of the arcofi-sp psb 2163 performs all voice switching functions without any external components, just by software. all these operational functions realized by the signal processor are completely parameterized. this technique offers a high level of flexibility and reproducibility. there are three modes of operation: speech mode, listen mode, and idle mode. in the speech mode the receive path is attenuated while in listen mode the attenuation is switched to the transmit path. in the idle mode the attenuation is halved between transmit and receive paths. the switching is mainly controlled by the speech comparators while speech activity is recognized by the speech detectors. ccitt q.23 arcofi ? nominal relative deviation coefficients from ccitt high low low group 697 770 852 941 high group 1209 1336 1477 1633 697.1 770.3 852.2 941.4 1209.5 1336.9 1477.7 1632.8 + 143 ppm + 390 ppm + 235 ppm + 425 ppm + 414 ppm + 674 ppm + 474 ppm C 122 ppm 4f a6 45 20 b4 c8 49 40 16 18 1b 1e 26 2a 2f 34 parameter # of cram bytes range comment f3 g3 fd gd3 2 1 2 1 50 hz to 4 khz 0 db to C 48 db 50 hz to 4 khz 0 db to C 48 db trapezoid shaped tone 1 gain adjustment for trapezoid generator 1 trapezoid shaped tone 2 gain adjustment for trapezoid generator 2
semiconductor group 49 functional description as the signal flow graph of the speakerphone option shows ( figure 22 ), the complete operational algorithm is situated between the analog front end/signal processing and the compression/expansion logic. this has the advantage that the speakerphone function is independent of any country specific transmission characteristics. thus telephone sets can be optimized and adjusted to the particular geometrical and acoustic environment. the main features of the speakerphone signal processing are: l two separate attenuation stages activated by voice, one for the transmit and one for the receive path. they are controlled by the current and past speech activities. l immediate mode switching mainly controlled by two comparators, one at the acoustic side and one at the line side. l speech detection by special speech detectors in the respective transmit and receive directions. different time constants are separately programmable for signal and noise. l background noise monitoring to eliminate continuous background noise from speech control. all time constants are user programmable. figure 22 speakerphone signal flow graph of the arcofi ?
semiconductor group 50 functional description 2.2.5.1 speech detector the speech detectors ( figure 23 ) contained in both transmit and receive directions consist of two main blocks: l background noise monitor (bnm) and l signal processing figure 23 speech detector signal flow graph
semiconductor group 51 functional description background noise monitor the tasks of the noise monitor are to differentiate voice signals from background noise, even if it exceeds the voice level, and to recognize voice signals without any delay. therefore the background noise monitor consists of the low-pass filter 2 (lp2) and the offset in two separate branches. basically it works on the burst-characteristic of the speech: voice signals consist of short peaks with high power (bursts). in contrast, background noise can be regarded approximately stationary from its average power. low-pass filter 2 provides different time constants for noise (non-detected speech) and speech. it determines the average of the noise reference level. in case of background noise the level at the output of lp2 is approximately the level of the input. due to the offset off the comparator remains in the initial state. in case of speech at the comparator input the difference between the signal levels of the offset branch and of the lp2-branch increases and the comparator changes state. at speech bursts the digital signals arriving at the comparator via the offset branch change faster than those via the lp2-branch so that the comparator changes its polarity. hence two logical levels are generated: one for speech and one for noise. a small fade constant (lp2n) enables fast settling down the lp2 to the average noise level after the end of speech recognition. however, a too small time constant for lp2n can cause rapid charging to such a high level that after recognizing speech the danger of an unwanted switching back to noise exists. it is recommended to choose a large rising constant (lp2s) so that speech itself charges the lp2 very slowly. generally, it is not recommended to choose an infinite lp2s because then approaching the noise level is disabled. during continuous speech or tones the lp2 will be charged until the limitation lp2l is reached. then the value of lp2 is frozen until a break discharges the lp2. this limitation lp2l of this charging especially on the rx-path permits transmission of continuous tones and music on hold. the offset stage represents the exact level threshold in [db] between the speech signal and averaged noise. signal processing as described in the preceding chapter, the background noise monitor is able to discriminate between speech and noise. in very short speech pauses e.g. between two words, however, it changes immediately to non-speech, which is equal to noise. therefore a peak detection is required in front of the noise monitor. the main task of the peak detector is to bridge the very short speech pauses during a monolog so that this time constant has to be long. furthermore, the speech bursts are stored so that a sure speech detection is guaranteed. but if no speech is recognized the noise low-pass lp2 must be charged rapidly to the average noise level. additionally the noise edges are to be smoothed. therefore two time constants are necessary and are
semiconductor group 52 functional description separately programmable: pds for speech and pdn for space (background noise) signals. the peak detector is very sensitive to spikes. the lp1 filters the incoming signal containing noise in a way that main spikes are eliminated. due to the programmable time constant it is possible to refuse high-energy sibilants and noise edges. to compress the speech signals in their amplitudes and to ease the detection of speech, the signals have to be companded logarithmically. hereby, the speech detector should not be influenced by the system noise which is always present but should discriminate between speech and background noise. the limitation of the logarithmic amplifier can be programmed via the parameter lim, where the upper half-byte features limx and the lower half-byte limr. lim is related to the maximum pcm level. a signal exceeding the limitation defined by lim is getting amplified logarithmically, while very smooth system noise below is neglected. it should be the level of the minimum system noise which is always existing; in the transmit path the noise generated by the telephone circuitry itself and in receive direction the level of the first bit which is stable without any speech signal at the receive path. description of the programmable speech detector parameters: 2.2.5.2 speech comparators (sc) switching from one active mode to another one is mainly controlled by the speech comparators. there are two speech comparators, one at the acoustic (ae) and one at the line side (le). this offers a different programming of the sensitivity of the speech detectors and avoids clipping due to echoes. these comparators continuously compare the signal levels of both signal paths and control the effect of the echos at the acoustic side and the line side. once speech activity has been detected, the comparator switches at once in that direction in which the speech signal is stronger. for this purpose each signal is compared to the sum of the other and the returned echo. parameter # of cram bytes range comment lp1 off pds pdn lp2s lp2n lp2l limx, limr 1 1 1 1 1 1 1 1 1 to 512 ms 0 to 50 db 1 to 512 ms 1 to 512 ms 4 to 2000 s 1 to 512 ms 0 to 95 db C 36 to C 78 db time constant lp1 level offset up to detected noise time constant pd (signal) time constant pd (noise) time constant lp2 (signal) time constant lp2 (noise) limitation of lp2, related to lim limitation of logarithmic amplifier
semiconductor group 53 functional description speech comparator at the acoustic side (scae) in principle, the scae works according to the following equation: being in rx-mode, the speech comparator at the acoustic side controls the switching to tx-mode. only if the sx-signal is higher than the sr-signal plus the expected/measured acoustic level enhancement (vae), the comparator switches immediately to tx-mode. physically the level enhancement (vae) is divided into two parts: gae and gdae. figure 24 speech comparator at the acoustic side if sx > sr + vae then tx else rx
semiconductor group 54 functional description at the scae-input, logarithmic amplifiers compress the signal range. hence after the required signal processing for controlling the acoustic echo, pure logarithmic levels on both paths are compared. principally, the main task of the comparator is to control the echo. the internal coupling due to the direct sound and mechanical resonances are covered by gae. the external coupling, mainly caused by the acoustic feedback, is controlled by gdae/pdae. the gain of the acoustic echo (gae) corresponds to the terminal couplings of the complete telephone: gae is the measured or calculated level enhancement between both receive and transmit inputs of the scae ( refer to figure 22 ). it equals the sum of the amplification of als plus the gain due to the loudspeaker/microphone coupling plus the tx-amplification of ami and gx. to succeed in a sure differentiation between original speech and echo, it must be guaranteed that the tx-signal does not run into saturation due to the loudspeaker/microphone coupling. therefore, it is recommended to reduce the tx-gain by 10 db in front of the scae at least in the loudest loudspeaker volume step. to fulfill the sending loudness rating, this gain is realized by the lgax/ agcx which follows the scae. of course, the gae has to be reduced by the same amount. to control the acoustic feedback two parameters are necessary: gdae-features the actual reserve on the measured gae. together with the peak decrement (pdae) it simulates the echo behaviour at the acoustic side: after rx-speech has ended there is a short time during which hard couplings through the mechanics and resonances and the direct echo are present. till the end of that time ( d t ) the level enhancement vae must be at least equal to gae to prevent clipping caused by these internal couplings. then, only the acoustic feedback is present. this coupling, however, is reduced by air attenuation. for this in general the longer the delay, the smaller the echo being valid. this echo behaviour is featured by the decrement pdae.
semiconductor group 55 functional description figure 25 interdependence of gdae and pdae according to figure 25 , a compromise between the reserve gdae and the decrement pdae has to be made: a smaller reserve (gdae) above the level enhancement gae requires a longer time to decrease (pdae). it is easy to overshout the other side but the intercommunication is harder because after the end of the speech, the level of the estimated echo has to be exceeded. in contrary, with a higher reserve (gdae*) it is harder to overshout continuous speech or tones, but it enables a faster intercommunication because of a stronger decrement (pdae*). two pairs of coefficients, gdsae/pdsae when speech is detected, and gdnae/ pdnae in case of noise, offer a different echo handling for speech and non-speech. with speech, even if very strong resonances are present, the performance will not be worsened by the high gdsae needed. only when speech is detected, a high reserve prevents clipping. a time period etae [ms] after speech end, the parameters of the comparator are switched to the noise values. if both sets of the parameters are equal, etae has no function.
semiconductor group 56 functional description description of the programmable parameters: speech comparator at the line side (scle) principally, the scle works similarly to the scae. the formula of scle is the following: being in tx-mode, the speech comparator at the line side controls the switching to rx-mode. when the sr-signal is higher than the sx-signal plus the expected/measured echo return loss (vle) and if sdr has detected speech, the comparator switches immediately to rx-mode. parameter # of cram bytes range comment gae gdsae pdsae gdnae pdnae etae 1 1 1 1 1 1 C 48 to + 48 db 0 to 48 db 0.16 to 42 ms/db 0 to 48 db 0.16 to 42 ms/db 0 to 1020 ms gain of acoustic echo reserve when speech is detected peak decrement when speech is detected reserve when noise is detected peak decrement when noise is detected echo time if sr > sx + vle then rx else tx
semiconductor group 57 functional description figure 26 speech comparator at the line side the gain of the line echo (gle) directly corresponds to the echo return loss of the link. generally, it is specified to 27 db. however, the worst case loss can be estimated to 10 db. this means, the echo returns at least attenuated by 10 db. the coefficient gle should be programmed with an extra reserve of 2 db so that very smooth noise is processed correctly. similarly to the acoustic side, gdle at the line side features the reserve above gle which is necessary to control the echo via the decrement pdle. gdle and pdle are interdependent. exactly d t [ms] after the end of rx-speech the level enhancement vle must be at least gle to prevent clipping.
semiconductor group 58 functional description two pairs of coefficients are available: gdsle/pdsle while speech is detected and gdnle/pdnle in case of noise. this offers the possibility to control separately the far-end echo during speech and the near-end echo while noise is detected. however, this requires an attenuation between the speech detectors sdx and sdr: if the sdx does not recognize any speech, the sdr must not detect speech due to the far-end echo. note, that limx and limr are also influencing the sensitivity of the speech detection. etle [ms] after the final speech detection the parameter sets are switched. if both sets are equal, etle has no meaning. description of the programmable parameters: 2.2.5.3 attenuation control unit the attenuation control unit controls the attenuation stages ghx of the transmit and ghr of the receive directions respectively. the programmable loss is switched either completely to a single path or, in the idle mode, is halved to each direction. in addition, attenuation is also influenced by the automatic gain control stages (agcx and agcr): for the total loop gain never to exceed 1, the sweep range (of att) is automatically enlarged with high-gain amplification of the agcs while it will be accordingly reduced with low-gain. changing from one speakerphone mode into another one depends on the determinations of one comparator plus the corresponding speech detector. hence attenuation is influenced by the current and past speech activities. also rate of change varies: changing from speech mode or listen mode to idle mode is programmable by the rate factor ds. direct changes from speech mode to listen mode or vice-versa and changes from idle mode to speech mode or listen mode can be programmed via the factor sw in a large range. parameter # of cram bytes range comment gle gdsle pdsle gdnle pdnle etle 1 1 1 1 1 1 C 48 to + 48 db 0 to 48 db 0.16 to 42 ms/db 0 to 48 db 0.16 to 42 ms/db 0 to 1020 ms gain of line echo reserve when speech is detected peak decrement when speech is detected reserve when noise is detected peak decrement when noise is detected echo time
semiconductor group 59 functional description description of the programmable parameters: 2.2.5.4 speakerphone test function the arcofi offers a test mode to ease the optimization of the switching behaviour (tfcr.epzst = 1). this function can also be used for signalling e.g. the speech mode during a normal telephone conversation. this mode uses the piezo pins pz1 and pz2. the pz1 pin forced to a high level indicates that neither of the speech detectors recognizes speech (refer to tw, ds, and idle state); when any speech activity is detected, this pin is at a low level. at the pz2 pin a logical 1 indicates the speech mode (tx-mode) while a 0 signals listen mode (rx mode). 2.2.5.5 automatic gain control of the transmit direction (agcx) an agcx is inserted into the transmit path ( figure 27 ) to reach nearly constant loudness ratings independent of the varying distance between the speaker and the microphone. regulation range is between 0 db and + 12 db which must be enabled by setting tgsr.pm1 = 1 (piezo-mode). operation of the agcx depends on a threshold level. its value (via parameter comx) corresponds to a signal level relative to the maximum pcm-value at which the microphone signal is to become amplified. regulation follows two time constants: tmhx, which limits the signal amplitude, is shorter because the signal has to be reduced before it goes into saturation. tmlx, which amplifies the signal if it falls below the reference level, is greater because this threshold effect should hardly be perceptible. for reasons of physiological acceptance the agcx is automatically reduced in case of continuous background noise e.g. by ventilators. the reduction is programmed via the nolsx-parameter. when the noise level increases the threshold determined by noisx, the amplification agx will be reduced by the same amount the noise level is above the threshold. parameter # of cram bytes range comment tw att ds sw 1 1 1 1 16 ms to 4 s 0 db to 95 db 0.6 to 680 ms/db 0.0052 to 10 ms/db wait time attenuation programmed in ghr or ghx if speech activity for the other side was detected decay speed (decay time td = ds att/2) switching time (dependent on att)
semiconductor group 60 functional description a programmable loudness gain adjustment stage (lgax) offers the possibility to amplify the tx-signal after the speech comparator scae and the speech detector sdx. if a lower signal range in front of the sdx is necessary to determine between speech and echo a part of the tx-amplification can be transferred to the lgax. it is enabled together with the bit gcr.sp. even if the agcx is disabled in speakerphone mode the lgax remains enabled. figure 27 function of the transmit agc description of the programmable parameters: parameter # of cram bytes range comment lgax comx agx tmlx tmhx noisx 1 1 1 1 1 1 C 12 to 12 db 0 to C 73 db 0 to 18 db 1 to 2700 ms/db 1 to 340 ms/db 0 to C 95 db loudness gain adjustment compare level rel. to max. pcm-value gain range of automatic control settling time constant for lower levels settling time constant for higher levels threshold for agc-reduction by background noise
semiconductor group 61 functional description 2.2.5.6 automatic gain control of the receive direction (agcr) the automatic gain control of the receive direction agcr ( figure 28 ) is similar to the transmit agc. one additional parameter (aar) offers an automatic amplification. the maximum attenuation is selectable with aar. depending on the parameters aar and agr three different behaviours of the agcr are possible: ? agr = 0: the only task of the agcr is to prevent clipping. if the rx-signal exceeds the compare level, the agcr starts to attenuate it. ? agr = aar: the agcr works as an automatic amplifier. the rx-signal will be amplified if it is smaller than the compare level. ? ? aar ? > agr: the combination of the previous tasks: if the signal is smaller than the compare level it will be amplified while if it exceeds the level it will be attenuated. the agcr functions like a dynamic compressor. while the digital rx-signal level varies, the volume coming out of the loudspeaker remains constant. if the agcr is disabled in speakerphone mode, the loudness gain adjustment stage (lgar) offers a programmable amplification in front of the sdr. it is enabled together with the bit gcr.sp. it is highly recommended to program reasonable amplifications in the digital gain stages. otherwise the asp will run into saturation above the 3.14 db pcm-value. note that the speech detector for the receive direction is supplied with the signal that comes out of the agr-block. figure 28 function of the receive agc
semiconductor group 62 functional description description of the programmable parameters: 2.2.5.7 loudhearing the arcofi-sp offers the possibility to do a so called controlled monitoring when the bit arcr.cme is set. this mode can only be used together with the speakerphone mode (gcr.sp) with cme = 1 the attenuation stage ghr is fixed to a value of 0 db but the attenuation takes place in the analog loudspeaker amplifier als in a way that the amplification of the als is set to C 9.5 db as soon as the attenuation control unit switches to transmit mode. therefore in transmit direction the same behaviour as in speakerphone mode occurs but in the receive direction the handset output offers a signal as in normal handset mode while the volume at the loudspeaker output will be reduced to a low level during transmit mode. if the programming for the loudspeaker output (arcr.lsc) is already chosen for values of less or equal C 9.5 db, no further attenuation takes place. parameter # of cram bytes range comment lgar com aar agr tmlr tmhr noisr 1 1 1 1 1 1 1 C 12 to 12 db 0 to C 73 db 0 to C 47 db 0 to 18 db 1 to 2700 ms/db 1 to 340 ms/db 0 to C 95 db loudspeaker gain adjustment compare level rel. to max. pcm-value attenuation range of automatic control gain range of automatic control settling time constant for lower levels settling time constant for higher levels threshold for agc-reduction by background noise
semiconductor group 63 functional description 2.2.6 speakerphone coefficient set this example shows a possible configuration for a speakerphone application. all described coefficients can be used as a basic programming set. cmd sequence coefficient code value cop_a cop_a cop_a cop_a cop_a cop_a cop_a cop_a gae gle att etae etle tw ds sw 0c h e5 h 40 h 0c h 32 h 09 h 25 h 64 h 4.50 db C 10.02 db 24.00 db 48.00 ms 200.00 ms 144.00 ms C 99 ms/db 0.6 ms/db cop_b cop_b cop_b cop_b cop_b cop_b cop_b cop_b gdsae pdsae gdnae pdnae gdsle pdsle gdnle pdnle 20 h 06 h 20 h 06 h 40 h 02 h 40 h 02 h 6.02 db 7.1 ms/db 6.02 db 7.1 ms/db 12.00 db 21.3 ms/db 12.00 db 21.3 ms/db cop_c cop_c cop_c cop_c cop_c cop_c cop_c cop_c limx, limr offx offr lp2lx lp2lr lp1x lp1r reserved 00 h 22 h 0c h 0c h 20 h 20 h e1 h e1 h C 48.16 db, C 48.16 db 4.50 db 4.50 db 12 db 12 db 4.00 ms 4.00 ms cop_d cop_d cop_d cop_d cop_d cop_d cop_d cop_d pdsx pdnx lp2sx lp2nx pdsr pdnr lp2sr lp2nr 26 h f4 h 20 h 44 h 26 h f4 h 20 h 44 h 102.34 ms 32.00 ms 6.55 s 30.06 ms 102.34 ms 32.00 ms 6.55 s 30.00 ms
semiconductor group 64 functional description speakerphone coefficient set (contd) cmd sequence coefficient code value cop_e cop_e cop_e cop_e cop_e cop_e cop_e cop_e lgax comx agx tmhx tmlx noisx reserved 00 h reserved 00 h 01 h c3 h 01 h 0a h 24 h 4f h 9.60 db C 20.43 db 12.04 db 14.00 ms/db 383.00 ms/db C 66.23 db cop_f cop_f cop_f cop_f cop_f cop_f cop_f cop_f lgar comr aar agr tmhr tmlr noisr reserved 00 h f0 h b2 h 55 h 00 h 0a h 2f h 4f h 6.04 db C 15.05 db C 33.16 db 18.06 db 13.95 ms/db 500.84 ms/db C 66.23 db
semiconductor group 65 functional description 2.3 arcofi ? digital interface (adi) the adi-function consists of two interface blocks: l the peripheral control interface (pci) or the serial control interface (sci) l the iom-2 interface (te- or non-te-timing mode) or the serial data interface (sdi) supplementary functions are accessed by strapping the pins mode and ad according to the following table: a detailed description is in the following chapter. 2.3.1 pci-interface the peripheral control interface (pci) provides 4 programmable l/o-pins to control the peripheral devices (for more detailed information see section 4, dficr). these four interface pins are only available in the iom-2 terminal mode (te-mode). otherwise these pins are used as slot select pins in the iom-2 non-te-timing mode or used as a serial control interface (sci). 2.3.2 iom ? -2 frame structure and timing modes this interface consists of one data line per direction (dd: data downstream; du: data upstream). two additional signals define the data clock (dcl) and the frame synchronization (fsc). in terminal applications, the iom-2 constitutes a powerful backplane bus offering intercommunication and sophisticated control capabilities for peripheral modules (e.g. arcofi). pin mode pin ad mode description 0 0 0 1 1 1 0 1 mclk 0 1 mclk iom-2 te iom-2 te test iom-2 non-te iom-2 non-te sdi iom-2 te-timing mode (ad = 0) iom-2 te-timing mode (ad = 1) iom-2 non-te-timing mode (ad = 0) iom-2 non-te-timing mode (ad = 1) serial data interface sa-sd mode pci slot select sci iom-2 te iom-2 non te serial mode
semiconductor group 66 functional description the channel structure of the iom-2 is described in figure 29 . figure 29 channel structure of iom ? -2 l the 64-kbit/s channels, b1 and b2, are conveyed in the first two bytes. l the third byte (monitor channel) is used for programming and controlling devices attached to the iom-2 interface. l the fourth byte (control channel) contains two bits for the 16-kbit/s d-channel, four command/indication bits for controlling activation/deactivation and for additional control functions, two bits mr and mx for supporting the handling of the monitor channel. in case of an iom-2 interface the frame structure depends on whether te- or non-te-mode is selected. non-te-timing mode the frame of this mode is a multiplex of eight iom-2 channels ( figure 30 ), each channel has the structure as shown in figure 29 . the arcofi is assigned to one of eight channels (0 to 7) by strapping sb to sd according to the following table: pin sa is not used in this mode and should be connected to v dd or v ssd . thus the data rate per channel is 256 kbit/s, whereas the bit rate is 2.048 kbit/s. the iom-2 interface signals are: dd, du : 2048 kbit/s dcl : 4096 khz (double clock rate) fsc : 8 khz pin sd pin sc pin sb selected iom ? -2 channel 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 2 3 4 5 6 7 m r m x b1 b2 monitor d c/i
semiconductor group 67 functional description figure 30 multiplexed frame structure of the iom ? -2 interface in non-terminal timing mode
semiconductor group 68 functional description te-timing mode the iom-2 frame provides three complete iom channels ( figure 31 ): l channel 0 contains 144 kbit/s (2b + d) plus monitor and command/indication channels for the layer-1 device. l channel 1 contains two 64-kbit/s intercommunication channels plus monitor and command/indication channels for other iom-2 devices (e.g. arcofi). l channel 2 is used for d-channel arbitration. the iom-2 signals are: dd, du : 768 kbit/s dcl : 1536 khz (double clock rate) fsc : 8 khz figure 31 iom ? -2 interface structure in terminal mode b1, b2 bearer voice data channel 1/2 to/from layer-1 device mon1 monitor channel 1 c/i1 command/indicate channel 1 ic1, ic2 intercommunication channel 1/2
semiconductor group 69 functional description 2.3.3 serial control interface when the mode pin is tied high and the ad/mclk pin is used as system clock input (mclk), the internal configuration registers and the coefficient ram of the arcofi are programmable via the serial control interface. it consists of 4 lines: sclk, sdr, sdx (open drain or push-pull) and cs. cs is used to start a serial access to the arcofi-registers and the coefficient ram. following a falling edge on cs, the first eight bits transmitted on sdr specify the command. the subsequent one, two, four or eight bytes (depending on command) read(s) or write(s) the contents of the selected registers or ram-locations until the cs line becomes inactive. if a read command is chosen, the first byte after the command is the identification code of the arcofi-sp psb 2163 ( see also chapter 3.4.2.1 ). after one command sequence is completed at least one nop-command is required ( see figure 32 ). a transfer sequence can be broken by setting cs high. all bytes already sent when cs changes to high are valid. the data transfer is synchronized by the sclk input. sdx changes with the falling edge of sclk while the contents of sdr is latched on the rising edge of sclk. figure 32 shows the timing of a serial control interface transfer (one byte transfer).
semiconductor group 70 functional description figure 32 serial control interface timing
semiconductor group 71 functional description 2.3.4 serial data interface if the serial control interface is selected, the arcofi supports an additional serial data interface for b-channel transfer. this control interface consists of five lines: fsc, dclk, dx, dr and mclk. fsc is a 8-khz frame synchronization signal. the dclk is the clock signal to synchronize the data transfer on both data lines dx and dr. the rising edge indicates the start of the bit while the falling edge is used to latch the contents of the received data line dr. if the double clock rate is chosen (twice of the transmission rate) the first rising edge indicates the start of a bit while the second falling edge is used to latch the content of the data line. the data rate of the interface can vary from 64 kbit/s to 4.096 mbit/s. a frame may consist of up to 64 time-slots of 8 bits each. the last 6 bits of tscr (time slot configuration register) indicate the selected time-slot from 0 to 63. if a 16-bit mode (linear mode) is chosen, the lowest data rate is 128 kbit/s and the time-slot must be set to an even number. the pin ad/mclk is a system clock synchronized with fsc (necessary to synchronize internal pll). figure 33 shows the timing of a serial data interface (256 kbit/s with single clock rate). figure 33 serial data interface timing
semiconductor group 72 2.4 test functions the arcofi provides several test and diagnostic functions which can be grouped as follows: l all programmable configuration registers and coefficient ram-locations are readable l digital loop via pcm-register (dlp) l digital loop via signal processor (dls) l digital loop via noise shaper (dln) l analog loop via analog front end (alf) l analog loop via converter (alc) l analog loop via noise shaper (aln) l analog loop via z-sidetone (alz); sidetone gain stage gz must be enabled (pfcr.gz = 1) and sidetone gain must be programmed with 0 db; depending on the vdm-bit setting (dficr) an addition to the incoming voice signal is possible l analog loop via digital interface (ali). functional description
semiconductor group 73 operational description 3 operational description 3.1 reset after a reset (internal power-on reset, hardware reset at pin rs or software reset via xop_e) the pins sa to sd are programmed as inputs. all other output pins are in high-impedance state (hop/hon, lsp/lsn, v ref , pz1, pz2, du/dx). note: after a reset (only te and non-te mode) the coefficient ram-locations have defined reset values. the defined reset values of the arcofi-registers are listed below: register value after reset [hex] meaning cmdr gcr dficr pfcr tgcr tgsr atcr arcr tfcr bf 00 f0 00 00 00 00 00 00 C no operation (nop) C speakerphone disabled (incl. agcx and agcr) C disable voice transmit C iom-2 channel 0 selected (iom-2 te-mode) C power-down mode C iom-2 two chip mode (iom-2 te-mode) C a-law C sa to sd programmed as inputs C pcm-mode; receive voice blocked C programmable digital gain disabled C programmable sidetone gain disabled C correction filters disabled C 50-hz receive hp active C 50-hz transmit hp active C tone generator inactive C control generator inactive C no tone generator connection to any signal path C microphone amplifier is in power-down mode C reference voltage buffer is in power-down mode C pins mip1/min1 are directed to the microphone amplifier ami C earpiece amplifier aho is in power-down mode C loudspeaker amplifier als is in power-down mode C iom-2 handshake procedure enabled C no internal speakerphone status signals are directed to pz1/pz2 C analog test mode disabled C digital test mode disabled
semiconductor group 74 operational description defined reset values of the arcofi-registers (contd) 3.2 initialization during initialization a subset of configuration registers and coefficient ram-locations has to be programmed to set the configuration parameters according to the application and desired features. configuration registers: register value after reset [hex] meaning sdicr tscr xcr cram 00 00 00 00 C single clock rate (dclk) is enabled C dx and sdx are configured as open drain outputs C master clock rate is 512 khz C time-slot 0 (sdi) is selected C aho and als are in the differential mode C all locations (te and non-te) register bit effect restricted to gcr dficr pfcr tgcr sp agcx agcr evx slot pu cam law sa-sd vdm gx gr gz fx fr dhpr dhpx tg dt etf cg bt bm sm speakerphone on/off tx-automatic gain control (only if gcr.sp = 1) rx-automatic gain control (only if gcr.sp = 1) enable voice transmit iom-2 slot select power-up/down mode iom-2 address mode a-law/ m -law pci-port configuration voice data manipulation tx digital gain rx digital gain sidetone gain tx-frequency correction filter rx-frequency correction filter disable high-pass (50 hz) receive disable high-pass (50 hz) transmit tone generator dual tone mode enable tone filter control generator beat tone generator beat mode stop mode iom-2 te iom-2 iom-2 te
semiconductor group 75 operational description configuration registers (contd) note: before accessing the arcofi pci (iom-2 te-mode) interface, a gcr-write command (sop_0 or sop_f) has to be sent. coefficient ram-locations: register bit effect restricted to tgsr atcr arcr tfcr sdicr tscr xcr sqtr pm trl trr dtmf trx mic evref aimx hoc cme lsc dhs epzst altf dltf epp0 epp1 dce mclkr ts dhop dhon dlsp dlsn square/trapezoid shaped signal piezo mode tone ringing via loudspeaker tone ringing in receive direction dtmf-signal in transmit direction tone ringing in transmit direction microphone amplifier control enable 2.4 v reference voltage at pin v ref analog input multiplexer handset amplifier control controlled monitoring loudspeaker amplifier control disable iom-2 handshake procedure pz1/pz2 as speakerphone status output analog loops and test functions digital loops and test functions enable push/pull (dx) enable push/pull (sdx) double clock enable master clock rate time slot select disable hop (tristate) disable hon (tristate) disable lsp (tristate) disable lsn (tristate) iom-2 sdi sdi sdi sdi sdi mnemonic # of bytes effect cop_0: tone generator parameter set 1 f1 g1 gd1 t1 2 1 1 2 2 tone generator frequency tone generator amplitude trapezoid generator amplitude beat tone time not used
semiconductor group 76 operational description coefficient ram-locations (contd) mnemonic # of bytes effect cop_1: tone generator parameter set 2; tone generator level adjustment f2 g2 gd2 t2 gtr gtx 2 1 1 2 1 1 tone generator frequency tone generator amplitude trapezoid generator amplitude beat tone time span level adjustment for receive path level adjustment for transmit path cop_2: tone generator parameter set 3; parameter set for the dtmf-generator (tgsr.dtmf = 1) f3 g3 gd3 t3 fd 2 1 1 2 2 tone generator frequency tone generator amplitude trapezoid generator amplitude beat tone time span dual tone frequency cop_3: tone filter k a1 a2 ge 1 1 1 1 attenuation of the stop-band center frequency bandwidth saturation amplification cop_4: control generator ton toff 2 2 turn-on period of the tone generator turn-off period of the tone generator cop_5: receive and transmit gain gx gr 2 2 4 transmit gain receive gain not used cop_6: sidetone gain gz 2 2 sidetone gain not used cop_7/cop_8: transmit correction filter fx 12 transmit correction filter coefficients
semiconductor group 77 operational description coefficient ram-locations (contd) mnemonic # of bytes effect cop_8/cop_9: receive correction filter fr 12 receive correction filter coefficients cop_a: parameter set for transmit and receive speech comparator parameter set for speakerphone control unit gae gle att etae etle tw ds sw 1 1 1 1 1 1 1 1 gain of acoustic echo gain of line echo attenuation programmed in ghr or ghx echo time (acoustic side) echo time (line side) wait time decay speed switching time cop_b: parameter set for transmit and receive speech comparator gdsae pdsae gdnae pdnae gdsle pdsle gdnle pdnle 1 1 1 1 1 1 1 1 reserve when speech is detected (acoustic side) peak decrement when speech is detected (acoustic side) reserve when noise is detected (acoustic side) peak decrement when noise is detected (acoustic side) reserve when speech is detected (line side) peak decrement when speech is detected (line side) reserve when noise is detected (line side) peak decrement when noise is detected (line side) cop_c: parameter set for transmit and receive speech detector lim offx offr lp2lx lp2lr lp1x lp1r 1 1 1 1 1 1 1 1 starting level of the logarithmic amplifiers level offset up to detected noise (transmit) level offset up to detected noise (receive) limitation for lp2 (transmit) limitation for lp2 (receive) time constant lp1 (transmit) time constant lp1 (receive) not used
semiconductor group 78 operational description coefficient ram-locations (contd) mnemonic # of bytes effect cop_d: parameter set for receive and transmit speech detector pdsx pdnx lp2sx lp2nx pdsr pdnr lp2sr lp2nr 1 1 1 1 1 1 1 1 time constant pd for signal (transmit) time constant pd for noise (transmit) time constant lp2 for signal (transmit) time constant lp2 for noise (transmit) time constant pd for signal (receive) time constant pd for noise (receive) time constant lp2 for signal (receive) time constant lp2 for noise (receive) cop_e: parameter set for transmit agc lgax comx agx tmhx tmlx noisx 1 1 1 1 1 1 1 1 loudness gain adjustment compare level rel. to max. pcm-value gain range of automatic control settling time constant for lower levels settling time constant for higher levels threshold for agc-reduction by background noise not used not used cop_f: parameter set for receive agc lgar comr aar agr timhr timlr noisr 1 1 1 1 1 1 1 1 loudness gain adjustment compare level rel. to max. pcm-value attenuation range of automatic control gain range of automatic control settling time constant for lower levels settling time constant for higher levels threshold for agc-reduction by background noise not used
semiconductor group 79 operational description 3.3 arcofi ? operating modes the most currently used arcofi-operating modes are documented in the following table. the 12 arcofi-configuration registers have enough build-in flexibility to accommodate an extensive set of user calling procedures. the following operating mode description table is not exhaustive but should be used as an example of possible functions performed by the arcofi. state description por power-on reset: when power is supplied to the arcofi an internal power-on reset is generated. in addition a hardware reset via an rc-network connected to input pin rs will force all arcofi internal registers to default values. the arcofi-registers reset state is described in section 3.1 and 4. stand by the system microprocessor can initialize the arcofi via the iom-2 or the sci-bus with a different set of filter and configuration values. whilst remaining in power-down (gcr.pu = 0) a new set of filter coefficients and configuration bits can be loaded in the arcofi. handset the system mpu detects activity from the hookswitch or from the keyboard. the arcofi can be placed in handset state where all handset l/o are enabled (ami & aho activated). ringing the system mpu detects an incoming call, the arcofi can be placed in a ringing state by activating the tone ringer via tgcr/tgsr and configuring the arcofi such that either the lsp/lsn-output or the piezo output (pins pz1/pz2) are enabled. an emergency ringing is also implemented. in this mode, only the tone ringer and the loudspeaker amplifier are active (ami- and aho-amplifier are disabled by the user). the tone ringer signal is directly switched to the loudspeaker amplifier als. dtmf all audio inputs can be disabled by forcing the ami-amplifier (atcr) to power-down. dtmf tones are generated with the tone generator and are output to the transmit path. pulse dial handset audio path can be enabled by forcing a handset mode. a single tone can be superimposed into the audio receive path so as to provide audible feedback when dialling. loud hearing (monitoring) the handset l/o and the loudspeaker outputs lsp/lsn are active (atcr & arcr).
semiconductor group 80 operational description operating mode description table (contd) state description speakerphone the handset audio i/o's are disabled. the hands-free microphone input and loudspeaker outputs lsp/lsn are activated by configuring atcr & arcr. the arcofi must be set to the speakerphone mode (gcr.sp = 1). mute the arcofi can be placed in a mute state by powering down the ami. in handset mode the outputs hop/hon remain enabled while in speakerphone mode the outputs lsp/lsn are enabled. all other analog l/o's being disabled. feature tone a single tone can be superimposed to the incoming pcm-voice signal. applications requiring system function audible feedback are therefore made possible.
semiconductor group 81 operational description 3.4 iom ? -2 interface protocol the following description of the iom-2 interface comprises all arcofi relevant functions in the terminal and non-terminal mode (see iom-2 interface specification for general information). note: channels ic1 & ic2 are only available in the iom-2 te-mode. mon-channel means mon1-channel in the iom-2 te-mode. 3.4.1 b- and ic-channels the arcofi can receive and transmit voice data in the iom-2 b1- & b2-channels as well as in the ic1- & ic2-intercommunication channels located in iom-2 channels 0 and 1 respectively. the voice/data channel allocation is programmable via the arcofi-channel select bit slot in the gcr-register. b1 or b2 or respectively ic1 or ic2 can be programmed by use of the rcm-bit in the cmdr-register. the ic1- and ic2-intercommunication channels can be used in the terminal for local data communication (e.g. answering machine). this makes post-processing of voice/data information possible (e.g. data encryption). 3.4.2 monitor channel all programming data required by the arcofi including coefficients are transmitted exclusively in the mon-time-slot of the iom-2 channel. the mon-channel allows a point to multi-point access where the layer-2 component acts as the master to program devices like the arcofi. each programmable device is accessed by sending a specific address byte at the start of each sop- or cop-command stream. before executing a command, the programmable device compares the received address byte with its own address. the latter consists of 8 bits whose 4th msb-bit must correspond to the ad-wire (ad/mclk pin) strapped iom-2 address. 3.4.2.1 mon-channel data structure the data to control and program the arcofi are transferred in the mon1-channel via the iom-2 interface by a procedure utilizing read/write registers in the arcofi. the messages transmitted in the monitor channel may have different kinds of data structures. therefore, the first byte of the message is used to indicate the data structure (first four bits).
semiconductor group 82 operational description identification command in order to be able to identify unambiguously different devices by software, the following identification command is used: the arcofi responds to this dd-identification sequence by sending a du identification sequence: x: logical 0 (active low): ad = 0 (a-chip) logical 1 (passive high): ad = 1 (b-chip) design: six bit code, specific for each device in order to identify differences in operation e.g. 000000 arcofi psb 2160 000010 arcofi-sp psb 2165 000100 arcofi-sp psb 2163 this identification sequence is usually done once, when the terminal is connected for the first time.this function is used so that the software can distinguish between different possible hardware configurations. however this sequence is not compulsory. programming sequence an arcofi-programming sequence is characterized by a 1 being sent in the lsb-nibble of the first incoming identification code. all programmed configurations and coefficients can be read back when issuing an appropriate cmdr read (cmdr.r/w = 1). the arcofi responds by sending an iom-2 specific address byte identifying the chip followed by the requested data. dd 1st byte value 1 0 1 x 0 0 0 0 dd 2nd byte value 0 0 000000 du 1st byte value 1 0 1 x 0 0 0 0 du 2nd byte value 1 0 design dd 1st byte value 1 0 1 x 0 0 0 1 dd 2nd byte value cop_x, sop_x, xop_x
semiconductor group 83 operational description 3.4.2.2 mon-transfer protocol the transfer of a stream of commands in the mon-channel is regulated by a handshake protocol mechanism implemented by two bits mx and mr in the fourth slot of the iom-2 channel. the procedure is as follows ( figure 34 ): figure 34 monitor channel handshake procedure
semiconductor group 84 operational description monitor transfer protocol rules: l a pair of mx and mr in the inactive state for two or more consecutive frames indicates an idle state or an end of transmission (eom). l a command stream initiated by a transmitter in the mon-slot is accompanied by an activated downstream mx-bit. l the receiver acknowledges a received byte by toggling the upstream mr-bit from inactive to active in the subsequent iom-2 frame for at least one frame. l the transmitter indicates a new byte in the mon-slot by the transition of the mx-bit from the active to the inactive state. the mx-bit returns to the active state after one frame. two frames with the mx-bit in the inactive state indicate the end of transmission. l the receiver acknowledges each new byte by a similar one frame transition of the mr-bit to the inactive state. two frames with the mr-bit set to inactive indicate a receiver request for abort. l the transmitter can delay a transmission sequence by sending the same byte continuously. in that case the mx-bit remains active in the iom-2 frame following the first byte occurrence. l delaying a transmission sequence is only possible while the receiver mr-bit and the transmitter mx-bit are active. l since the receiver is able to receive the mon-slot data at least twice (in two consecutive frames), the receiver waits for the reception of two successive identical bytes. l to control this handshake procedure a collision detection mechanism is implemented in the transmitter. this is done by making a collision check per bit on the transmitted mon-data.
semiconductor group 85 operational description 3.4.2.3 implementation of the mon-channel protocol the mon-receiver has the following features: l transparent interface between iom-2 interface and any device internal block (sink) with respect to handshake procedure, i.e. any acknowledge, eom, abort or request for abort is conveyed transparently through the receiver. figure 35 shows the state diagram of the mon-receiver. the following signals are used: mr: mr-bit sent by the receiver mx: mx-bit received ll: last two bytes were identical figure 35 state diagram of the monitor receiver
semiconductor group 86 operational description the mon-transmitter has the following features: l transparent interface between iom-2 interface and any device internal block (source) with respect to handshake procedure, i.e. any acknowledge, abort, request for abort is conveyed transparently through the transmitter. figure 36 shows the state diagram of the mon-transmitter. the following signals are used: mr: mr-bit received mx: mx-bit transmitted ll: last two bytes were identical rqt: request transmission eom: end of transmission figure 36 state diagram of the monitor transmitter
semiconductor group 87 operational description 3.4.3 command/indication channel 1 (te-mode) the c/l-channel bits are represented so that the first bit transmitted/received appears on the left. the data presented to the four peripheral control interface (pci) pins sa to sd are transparently routed to the c/l iom-2 channel 1. pins sa to sd can be configured individually as input or output and the information sent to the pins sa to sd or coming from them will appear respectively in the dd or du c/l iom-2 channel 1. in case a reset has been asserted, the sa- to sd-pins are programmed as input, however the sa- to sd-values are not switched to the du c/i1-channel unless a write command (except nop) is issued. the mapping of the peripheral control interface (pci) pins sa to sd into the six c/i1-channel bits depends on the hardwired ad-address (see section 3.7) as follows. ad = 1 7 2 1 0 dd and du C C sb sa sd sc mr mx ad = 0 (gcr.cam = 0; two chip mode) dd and du sd sc CCCC mrmx ad = 0 (gcr.cam = 1; one chip mode) dd and du sd sc sb sa C C mr mx
semiconductor group 88 operational description c/i1-channel (signaling) bit allocation table: x: dont care h: passive high cam ad dd-c/i1 du-c/i1 pci-configuration xx 765432 xxxxxx 765432 h h h h h h after reset 0 0 0 0 0 0 0 0 xxxxxx ss dcxxxx s dxxxxx s xcxxxx ss dchhhh hhhhhh s hchhhh s dhhhhh pci-pins as inputs pci-pins as outputs pci-pin sc as input pci-pin sd as output pci-pin sd as input pci-pin sc as output x x x x 1 1 1 1 xxxxxx ssss xxbadc ss xxxaxc ss xxbxdx ssss hhbadc hhhhhh ss hhbhdh ss hhhahc pci-pins as inputs pci-pins as outputs sb and sd as inputs sa and sc as outputs sa and sc as inputs sb and sd as outputs 1 1 1 1 0 0 0 0 xxxxxx ssss dcbaxx ss dxbxxx ss xcxaxx ssss dcbahh hhhhhh ss hchahh ss dhbhhh pci-pins as inputs pci-pins as outputs sa and sc as inputs sb and sd as outputs sb and sd as inputs sa and sc as outputs
semiconductor group 89 operational description 3.5 arcofi ? voice/data manipulation (vdm) the arcofi offers several possibilities of voice/data manipulation for special applications. according to the manipulation mode chosen, the byte b1 or b2 (or ic1 or ic2 in the iom-2 te-mode) can be output via the handset channel and/or the loudspeaker channel. the following tables gives an overview of the different voice/data manipulation modes. l pcm-mode or normal mode (dficr.vdm = 000x): l linear mode (dficr.vdm = 010x): this mode exists only in the sdi mode (in the programmed and the following channel) or in the iom-2 one chip mode (gcr.cam = 1). the two voice/data channels b1 and b2 (or ic1 and ic2 in the iom-2 te-mode) are connected to one 16-bit linear channel (2s complement). 1) this table is given for the iom-2 two chip mode (gcr.cam = 0). dficr.vdm ad pin (iom-2) 1) cmdr.rcm (iom-2) gcr.slot (iom-2) receive channel transmit channel 0000 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 C C C C C C C C b1 ic1 b2 ic2 b2 ic2 b1 ic1 0001 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 b1 ic1 b2 ic2 b2 ic2 b1 ic1 b1 ic1 b2 ic2 b2 ic2 b1 ic1 dficr.vdm ad pin (iom-2) cmdr.rcm (iom-2) gcr.slot (iom-2) receive channel transmit channel 0100 C C C C 0 1 C C b1 & b2 ic1 & ic2 0101 C C C C 0 1 b1 & b2 ic1 & ic2 b1 & b2 ic1 & ic2
semiconductor group 90 operational description b1&b2 (ic1&ic2) means b1 (ic1) byte followed by b2 (ic2) byte (totally 16 bits). l three party conferencing (dficr.vdm = 100x): this mode is available only in the sdi-mode (in the programmed and the following channel) or in the iom-2 one chip mode (gcr.cam = 1). b1 + b2 (ic1 + ic2) means the b1 (ic1) and the b2 (ic2) byte are added together (on 8 bits). b1, b2 (ic1, ic2) means b1 (ic1) and b2 (ic2) byte have the same information. l voice monitoring mode (dficr.vdm = 1100): this mode is available only in the sdi-mode or in the iom-2 one chip mode (gcr.cam = 1). the monitoring chip and the transmission chip must be strapped to a different hardware address (iom-2: ad/mclk pin). the active du-voice channel of the monitoring chip must be set in the hi z-mode (gcr.evx = 0). the pci-port of both chips must be set in the compatible configurations to avoid collision problems in the du-c/i1 channel. explanations: C no signal b1/b2 voice channels ic1/ic2 iom-2 intercommunication channels b1d/b2d iom-2 voice channels (downstream) b1u/b2u iom-2 voice channels (upstream) ic1d/ic2d iom-2 intercommunication channels (downstream) ic1u/ic2u iom-2 intercommunication channels (upstream) dficr.vdm ad pin (iom-2) cmdr.rcm (iom-2) gcr.slot (iom-2) receive channel transmit channel 1000 C C C C 0 1 b1 + b2 ic1 + ic2 b1, b2 ic1, ic2 dficr.vdm ad pin (iom-2) cmdr.rcm (iom-2) gcr.slot (iom-2) receive channel transmit channel 1100 1/0 1/0 1/0 1/0 0 0 1 1 0 1 0 1 b1d + b1u ic1d + ic1u b2d + b2u ic2d + ic2u b1 ic1 b2 ic2
semiconductor group 91 figure 37 configuration of the iom ? -2 te-monitoring mode operational description
register description semiconductor group 92 4 detailed register description the following section describes the various arcofi-registers and coefficient ram-locations accessible from the terminal equipment microcontroller via the iom-2 bus or via the serial controller interface (sci). a summary of the 12 registers located in the adi-block is presented below followed by a detailed description of the register content. command register (cmdr) general configuration register (gcr) data format and interface configuration register (dficr) programmable filter configuration register (pfcr) tone generator configuration register (tgcr) tone generator switch register (tgsr) r/w rcm cmd5 cmd4 cmd3 cmd2 cmd1 cmd0 70 cmdr sp agcx agcr evx slot pu cam law 70 gcr sd sc sb sa vdm 70 dficr gx gr gz fx 0 fr dhpr dhpx 70 pfcr tg dt etf cg bt bm sm sqtr 70 tgcr pm trl 0 trr dtmf trx 0 0 70 tgsr
register description semiconductor group 93 afe transmit configuration register (atcr) afe receive configuration register (arcr) test function configuration register (tfcr) sdi-configuration register (sdicr); only available in sdi-mode time-slot configuration register (tscr); only available in sdi-mode extended configuration register (xcr) test mode register (tmr) mic evref 0 aimx 70 atcr hoc cme lsc 70 arcr 0 epzst altf dltf 70 tfcr 0 0 epp1 epp0 dce mclkr 70 sdicr 0 0 ts 70 tscr pgcr pgcx raar obs dhop dhon dlsp dlsn 70 xcr tm 0 0 0 0 0 70 tmr
register description semiconductor group 94 4.1 command register (cmdr) value after reset: bf h r/w 0: writing to configuration registers or to coefficient ram 1: reading from configuration registers or from coefficient ram rcm reverse channel mode (if r/w = 0) 0: receive and transmit in b1 (or ic1 in te-mode) 1: receive and transmit in b2 (or ic2 in te-mode) for the iom-2 two chip mode (gcr.cam = 0), when pin ad is strapped to v ss the above applies. when pin ad is strapped to v dd , rcm operates in the reverse order. cmdx address to internal programmable locations cmd543210 0 0 x x x x code reserved 0 1 x x x x status operation (sop) 1 0 x x x x coefficient operation (cop) 1 1 x x x x extended operation (xop) coding of status operations (sop): 1) see also 4.12. bit 3 2 1 0 cmd name status cmd seq. len. cmd sequence description 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 sop_0 sop_1 sop_2 sop_3 sop_4 sop_5 sop_6 sop_7 sop_8 sop_9 sop_a sop_d sop_e sop_f r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r r/w r/w 2 2 2 2 2 2 2 2 2 2 2 2 2 9 1) .. r/w rcm cmd5 cmd4 cmd3 cmd2 cmd1 cmd0 70 cmdr
register description semiconductor group 95 coding of coefficient operations (cop): coding of extended operations (xop): bit 3 2 1 0 cmd name status cmd seq. len. cmd sequence description comments 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 cop_0 cop_1 cop_2 cop_3 cop_4 cop_5 cop_6 cop_7 cop_8 cop_9 cop_a cop_b cop_c cop_d cop_e cop_f r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w 9 9 9 5 5 9 5 9 9 9 9 9 9 9 9 9 <..> <..> <..> <..> <..> <..> <..> <..> .. .. .. .. .. .. .. .. .. .. tone generator 1 tone generator 2 additional tg-gain tone generator 3 dual tone frequency tone filter control generator transmit gain receive gain sidetone gain correction filter fx correction filter fr coefficients for speakerphone agc-transmit agc-receive bit 3 2 1 0 cmd name status cmd seq. len. comments 0 0 1 1 1 0 0 1 1 1 0 0 0 1 1 0 1 1 0 1 xop_0 xop_1 xop_d xop_e xop_f w w w w r/w 1 1 1 1 1 power-down mode power-up mode dd/du-voice channel swap (toggle function) software reset normal operation (nop)
register description semiconductor group 96 4.2 general configuration register (gcr) value after reset: 00 h sp speakerphone 0: speakerphone support disabled 1: speakerphone support enabled agcx automatic gain control transmit 0: automatic gain control disabled 1: automatic gain control enabled; only if speakerphone support is enabled (sp = 1) agcr automatic gain control receive 0: automatic gain control disabled 1: automatic gain control enabled; only if speakerphone support is enabled (sp = 1) evx enable voice transmit 0: disable transmit voice data 1: enable transmit voice data (if gcr.pu = 0, idle code is transmitted) slot iom-2 slot select (iom-2 te-mode only) 0: bearer channels in iom-channel 0 1: bearer channels in iom-channel 1 pu power-up 0: the arcofi is placed in standby mode (power-down); all registers and coefficient ram contents are saved and all interface functions are available 1: the arcofi is in a normal operating mode (power-up) this bit can be directly accessed by the xop_0/xop_1 operations. cam chip address mode (iom-2 mode only) 0: two arcofis are connected to the iom-2 bus 1: only one arcofi is connected to the iom-2 bus law coding law 0: a-law enabled 1: m -law enabled sp agcx agcr evx slot pu cam law 70 gcr
register description semiconductor group 97 4.3 data format and interface configuration register (dficr) value after reset: f0 h sd-sa signaling i/o (pci-interface; only available in iom-2 te-mode) 0: sx pin programmed as output (x: d, c, b or a) 1: sx pin programmed as input (x: d, c, b or a) vdm voice data manipulation C no signal note: in this table above the voice channels indicated are only examples. other combinations of b1 and b2 (ic1 and ic2 in iom-2 te-mode) are possible and a complete description is given in section 3.5. bit 3 2 1 0 receive voice channel transmit voice channel description 0 0 0 0 C b1 transmit only 0 0 0 1 b1 b1 transfer mode 0 1 0 0 C b1 & b2 16-bit transmit only 0 1 0 1 b1 & b2 b1 & b2 16-bit transfer mode 1 0 0 0 b1 + b2 b1, b2 conferencing mode 1 1 0 0 b1d + b1u b1 monitoring mode sd sc sb sa vdm 70 dficr
register description semiconductor group 98 4.4 programmable filter configuration register (pfcr) value after reset: 00 h gx transmit gain 0: gain set to 0 db 1: gain coefficients loaded from coefficient ram (cram) gr receive gain 0: gain set to 0 db 1: gain coefficients loaded from cram gz sidetone gain 0: gain set to C db 1: gain coefficients loaded from cram fx transmit frequency correction filter 0: filter is by-passed 1: filter coefficients loaded from cram fr receive frequency correction filter 0: filter is by-passed 1: filter coefficients loaded from cram dhpr disable high-pass receive (50/60 hz filter) 0: filter enabled 1: filter disabled dhpx disable high-pass transmit (50/60 hz filter) 0: filter enabled 1: filter disabled gx gr gz fx 0 fr dhpr dhpx 70 pfcr
register description semiconductor group 99 4.5 tone generator configuration register (tgcr) value after reset: 00 h tg tone generator 0: tone generator is disabled (if cg = 0) 1: tone generator is enabled; frequency and gain coefficients loaded from cram; cg has priority over tg dt dual tone mode (dtmf) 0: second trapezoid generator is disabled 1: second trapezoid generator is enabled; the output signal is added to the s/t signal generator (only if tgsr.dtmf = 0) etf enable tone filter 0: tone filter is by-passed 1: tone filter is enabled; filter coefficients loaded from cram cg control generator 0: control generator is disabled 1: control generator is enabled; time coefficients loaded from cram (tone generator is activated independently of tg-bit setting) bt beat tone generator 0: beat tone generator is disabled 1: beat tone generator is enabled; time coefficients loaded from cram bm beat mode 0: beat mode is disabled; two tone ring activated when bt-generator is enabled 1: beat mode is enabled; three tone ring activated when bt-generator is enabled (only if tgsr.dtmf = 0) sm stop mode 0: automatic stop mode is disabled 1: automatic stop mode is enabled; two and three tone ring gets turned off after the sequence is completed sqtr square/trapezoid waveform 0: trapezoid shaped signal is enabled ( only if tone ringing via loudspeaker and piezo mode is disabled: tgsr.trl = 0 & tgsr.pm = 0) 1: square-wave signal is enabled tg dt etf cg bt bm sm sqtr 70 tgcr
register description semiconductor group 100 4.6 tone generator switch register (tgsr) value after reset: 00 h pm piezo mode 0: ringing signal is not output to the piezo ring pins 1: ringing signal (square) is output to the piezo ring pins pz1/pz2 trl tone ringing via loudspeaker 0: ringing signal is not output directly to the loudspeaker pins 1: ringing signal (square) is output directly to the loudspeaker pins lsp/lsn trr tone ringing receive 0: tone generator for receive direction is disabled 1: tone generator for receive direction is enabled dtmf dtmf-generator (transmit) 0: dtmf-generator for transmit direction is disabled 1: dtmf-generator for transmit direction is enabled trx tone ringing transmit 0: tone generator for transmit direction is disabled 1: tone generator for transmit direction is enabled pm trl 0 trr dtmf trx 0 0 70 tgsr
register description semiconductor group 101 4.7 afe-transmit configuration register (atcr) value after reset: 00 h mic microphone control evref enable v ref (2.4-v reference voltage) 0: v ref -buffer is enabled in function of bit gcr.pu (global power-up) and atcr/arcr-programming 1: v ref -buffer and internal reference voltage generation are enabled independently of the arcofi-configuration aimx analog input multiplexer bit 7 6 5 4 selected mode 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 1 1 0 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 ami is in power-down mode 0 db amplification 6 db amplification 12 db amplification 18 db amplification 24 db amplification 30 db amplification 36 db amplification 42 db amplification ami is in by-pass mode bit 1 0 selected input 0 0 1 1 0 1 0 1 ami is connected to the pins mip1/min1 (differential input) ami is connected to the pins mip2/min2 (differential input) ami is connected to the pin mi3 (single-ended input) not used mic evref 0 aimx 70 atcr
register description semiconductor group 102 4.8 afe-receive configuration register (arcr) value after reset: 00 h hoc handset output control cme control monitoring enable (gcr.sp = 1) 0: controlled monitoring disabled 1: controlled monitoring enabled (if transmit speech is detected, als-programming is fixed to C 9.5 db if lsc > C 9.5 db) lsc loudspeaker output control bit 7 6 5 selected mode 0 0 0 0 1 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 1 aho is in power-down mode 2.5 db amplification C 3.5 db amplification C 9.5 db amplification C 15.5 db amplification C 21.5 db amplification aho is in by-pass mode bit 3 2 1 0 selected mode 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 als is in power-down mode 11.5 db amplification 8.5 db amplification 5.5 db amplification 2.5 db amplification C 0.5 db amplification C 3.5 db amplification C 6.5 db amplification C 9.5 db amplification C 12.5 db amplification C 15.5 db amplification C 18.5 db amplification C 21.5 db amplification als is in by-pass mode hoc cme lsc 70 arcr
register description semiconductor group 103 4.9 test function configuration register (tfcr) value after reset: 00 h epzst enable pz1/pz2 (piezo pins) to output internal status information 0: pz1/pz2 are used as piezo port pins 1: pz1/pz2 are used to indicate internal speakerphone conditions (pz1: speakerphone idle condition; pz2: speakerphone transmit active) note: pm-bit must be set (tgsr.pm = 1) altf analog loop and test functions dltf digital loop and test functions bit 5 4 3 test function 0 0 0 0 1 0 0 1 1 0 0 1 0 1 0 not: no test mode alf: analog loop via front end alc: analog loop via converter aln: analog loop via noise shaper ali: analog loop via interface bit 2 1 0 test function 0 0 0 0 1 0 0 1 1 0 0 1 0 1 0 not: no test mode idr: initialize dram dlp: digital loop via pcm-register dls: digital loop via signal processor dln: digital loop via noise shaper 0 epzst altf dltf 70 tfcr
register description semiconductor group 104 4.10 sdi-configuration register (sdicr); sdi-mode only value after reset: 00 h epp0 enable push-pull at pin du/dx (sdi-mode only) 0: open drain enabled 1: push-pull enabled epp1 enable push-pull at pin sdr/sdx (sdi-mode only) 0: open drain enabled 1: push-pull enabled dce double clock enable for dclk (sdi-mode only) 0: single clock rate 1: double clock rate mclkr master clock rate (synchronized system clock) bit 2 1 0 mclk-clock rate 0 0 0 512 khz 0 0 1 1.536 mhz 0 1 0 2.048 mhz 0 1 1 4.096 mhz 1 x x 16.384 mhz (test mode) 0 0 epp1 epp0 dce mclkr 70 sdicr
register description semiconductor group 105 4.11 time-slot configuration register (tscr); sdi-mode only value after reset: 00 h ts time-slot selection bit 5 4 3 2 1 0 time-slot 0 000000 0 000011 .. .. 1 1111163 0 0 ts 70 tscr
register description semiconductor group 106 4.12 extended configuration register (xcr) value after reset: 00 h pgcr position of gain control receive 0: in front of the speech detector 1: behind the speech detector pgcx position of gain control transmit 0: behind the speech detector 1: in front of the speech detector raar read automatic attenuation receive 0: disabled 1: enabled obs observation of internal modes (only for internal tests) 0: disabled 1: enabled dhop disable hop -amplifier 0: hop-amplifier normal mode 1: disable hop-amplifier (power-down, output high impedance) dhon disable hon -amplifier 0: hon-amplifier normal mode 1: disable hon-amplifier (power-down, output high impedance) dlsp disable lsp -amplifier 0: lsp-amplifier normal mode 1: disable lsp-amplifier (power-down, output high impedance) dlsn disable lsn -amplifier 0: lsn-amplifier normal mode 1: disable lsn-amplifier (power-down, output high impedance) note: xcr.raar = 1, sop_d (read) monitors the magnitude of the gain-cell agcr instead of ident. pgcr pgcx raar obs dhop dhon dlsp dlsn 70 xcr
register description semiconductor group 107 4.13 test mode register (tmr) value after reset: 00 h tm test mode (only for internal tests) 000: normal mode tm 0 0 0 0 0 70 tmr
semiconductor group 108 electrical characteristics 5 electrical characteristics esd-integrity (according mil-std 883d, method 3015.7): 1000 v exception: the pins #14, #16, #17 and #18 are not protected against voltage stress > 630 v (versus vssx, x = a, d, p). the output performance prohibits the use of adequate protective structures. note: stresses above those listed here may cause permanent damage to the device. exposure to absolute maximum ratings conditions for extended periods may affect device reliability. 1) reduced performance absolute maximum ratings parameter symbol limit values unit ambient temperature under bias t a 1) C 25 to 80 ?c storage temperature t stg C 65 to125 ?c voltage on any pin with respect to ground v s C 0.3 to v dd + 0.3 v maximum voltage on any pin v max 7v dc-characteristics v dd / v ddp = 5 v 5 %; v ssd / v ssa / v ssp = 0 v; t a = 0 to 70 ?c parameter symbol limit values unit test condition min. max. input leakage current i il C 1.0 1.0 m a0v v in v dd h-input level (except pins sclk, mclk, dclk) v ih1 2.0 v dd + 0.3 v l-input level (except pins sclk, mclk, dclk) v il1 C 0.3 0.8 v h-input level (except pins sclk, mclk, dclk) v ih2 0.7 v dd v dd v l-input level (except pins sclk, mclk, dclk) v il2 0 0.3 v dd v h-output level (except pins pz1/pz2) v oh1 2.4 v i o = 400 m a h-output level (pins pz1/pz2) v oh2 v dd C 0.45 v i o = 2 ma
semiconductor group 109 electrical characteristics note: power dissipation values are target values. ac-characteristics inputs are driven to 2.4 v for a logical 1 and to 0.45 v for a logical 0. timing measurements are made at 2.0 v for a logical 1 and 0.8 v for a logical 0. the ac-testing input/output waveforms are shown below. figure 38 input/output waveforms for ac-tests 1) if voice channel swap (xop_d) is enabled. 2) operating power dissipation is measured with all analog outputs open. all analog inputs are set to v ref . the digital input signal (pin dd) is set to an idle code. for the emergency ringing mode, the tone generator is set to 400-hz single tone (square). in this mode the loudspeaker amplifier is set to C 3.5 db (3.2 vpp) l-output level (except pin du) v ol1 0.45 v i o = C 2 ma l-output level (pins du, dd 1) ) v ol2 0.45 v i o = C 7 ma v dd supply current standby (iom-2 te) i dds1 i dds2 0.9 0.2 ma ma v dd = 5 v; dcl = on dcl = off v dd supply current operating (iom-2 te) 2) i ddo1 i ddo2 25 25 ma ma v dd = 5 v emergency ringing via als (tgsr.trl = 1) handset mode (arcr.hoc = 010 b ) input capacitance c i 10 pf output capacitance c o 15 pf dc-characteristics (contd) v dd / v ddp = 5 v 5 %; v ssd / v ssa / v ssp = 0 v; t a = 0 to 70 ?c parameter symbol limit values unit test condition min. max.
semiconductor group 110 electrical characteristics analog front end input characteristics 1) the maximum output voltage swing corresponds to the maximum incoming pcm-code ( 127). parameter symbol limit values unit test condition min. typ. max. ami-input impedance z ami 15 k w 300 C 3400 hz ami-input voltage swing v ami 19.3 mvpk 42 db ami-gain g ami 42 db 9.55 mv at 1 khz analog front end output characteristics aho-output impedance z aho 2 w 300 C 3400 hz aho-output voltage swing 1) v aho 3.2 vpk load measured from hop to hon aho-output high voltage 1) v ahoh 3.2 vpk input load C 1 ma @ hop/hon aho-output low voltage 1) v ahol 3.2 vpk input load + 1 ma @ hop/hon als-output impedance z als 2 w 300 C 3400 hz als-output voltage swing 1) v als 3.2 vpk load measured from lsp to lsn als-output high voltage 1) v alsh 3.08 vpk input load C 60 ma @ lsp/lsn als-output low voltage 1) v alsl 3.08 vpk input load + 60 ma @ lsp/lsn v ref output impedance z vref 2 w load measured from v ref to v ssa v ref output voltage v vref 2.35 2.45 v input load C 2 ma @ v ref
semiconductor group 111 electrical characteristics transmission characteristics v dd / v ddp = 5 v 5 %; v ssd / v ssa / v ssp = 0 v; t a = 0 to 70 ?c 1) delay measurements include delays through the a/d and d/a with all features filters fx, gx, fr and gr disabled. parameter limit values unit test condition min. max. attenuation distortion @ 0 dbmo 0 C 0.25 C 0.25 C 0.25 C 0.25 0 0.25 0.45 0.9 db db db db db db < 200 hz 200 C 300 hz 300 C 2400 hz 2400 C 3000 hz 3000 C 3400 hz > 3400 hz out-of-band signals C 35 C 45 C 35 C 40 db db db db receive: 4.6 khz 8.0 khz transmit: 4.6 khz 8.0 khz group delay distortion @ 0 dbmo 1) 750 380 130 750 m s m s m s m s 500 C 600 hz 600 C 1000 hz 1000 C 2600 hz 2600 C 2800 hz signal-to-total distortion (method 2) 35 29 24 db db db 0 to C 30 db C 40 db C 45 db gain tracking (method 2) @ C 10 dbmo C 0.3 C 0.6 C 1.6 0.3 0.6 1.6 db db db 3 to C 40 db C 40 to C 50 db C 50 to C 55 db idle-channel noise C 75 C 66 dbmo dbmo receive (a-law; psoph.) transmit (a-law; psoph.) cross-talk C 66 db reference: 0 dbmo programmable afe gain C 0.5 C 1.0 0.5 1.0 db db step accuracy overall accuracy overall programming range (with specified transmission characteristics) C 21.5 C 21.5 0 0 11.5 2.5 42 24 db db db db receive: loudspeaker earpiece transmit: differential inputs single ended input
semiconductor group 112 electrical characteristics iom ? -2 bus switching characteristics figure 39 iom ? -2 bus timing diagram 1) 768 kbit/s (iom-2 te-mode); max. jitter of 160 ns once in fsc-period. 2) 2048 kbit/s (iom-2 non-te-mode) parameter symbol limit values unit min. typ. max. dcl-clock period 1) t dcl 651 ns dcl-clock period 2) t dcl 244 ns dcl-duty cycle 30 50 70 % fsc-period t fsc 125 m s fsc-setup time t fscs 70 ns fsc-hold time t fsch 40 ns dd-data-in setup time t ids 50 ns dd-data-in hold time t idh 50 ns du-data-out delay t odd 150 ns
semiconductor group 113 electrical characteristics pci-switching characteristics (iom ? -2 te-mode) figure 40 iom ? -2 bus timing diagram (te-mode) parameter symbol limit values unit min. max. pci-data-out delay t pcld 350 ns pci-data-in setup time t pcls 50 ns pci-data-in hold time t pclh 100 ns
semiconductor group 114 electrical characteristics sci-switching characteristics figure 41 sci-switching timing diagram parameter symbol limit values unit min. max. sclk-frequency f sclk 2048 khz chip select setup time t css 0ns chip select hold time t csh 0ns sdr-setup time t sdrs 50 ns sdr-hold time t sdrh 50 ns sdx-data-out delay t sdxd 150 ns sdx cs high to tristate t sdxt 30 ns
semiconductor group 115 electrical characteristics sdi-switching characteristics figure 42 sdi-switching timing diagram parameter symbol limit values unit min. max. mclk-frequency f mclk 512 4096 khz dclk-frequency f dclk 64 4096 khz fsc-pulse width t fscw 40 ns fsc-hold time from dclk low t fsch 30 ns fsc-delay time t fscd 30 ns dr-setup time t drs 50 ns dr-hold time t drh 50 ns dx-data-out delay ( t fscd < 0 ns) t dxd1 80 ns dx-data-out delay ( t fscd 3 0 ns) t dxd1 80 + t fscd ns dx-data-out delay t dxd 80 ns
semiconductor group 116 package outlines 6 package outlines plastic package, p-dip-28 (dual-in-line) gpd05037 sorts of packing package outlines for tubes, trays etc. are contained in our data book package information dimensions in mm
semiconductor group 117 package outlines plastic package, p-dso-28 (smd) (dual small outline) gps05123 sorts of packing package outlines for tubes, trays etc. are contained in our data book package information dimensions in mm smd = surface mounted device
semiconductor group 118 package outlines plastic package, p-lcc-28-1 (r) (smd) (plastic leaded chip carrier) gpl05018 sorts of packing package outlines for tubes, trays etc. are contained in our data book package information dimensions in mm smd = surface mounted device
application notes
((120)) vakat
table of contents page semiconductor group 121 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 the speakerphone implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 layout and wiring recommendation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 arcofi ? -sp telephone board v1.0 sipb 5132-sp . . . . . . . . . . . . . . . . . . . . . . . 181 using the sipb 5132-sp telephone with the psb 2163 . . . . . . . . . . . . . . . . . . . 209 arcofi ? -sp evaluation board sipb 5133-sp . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 arcofi ? -sp coefficients software arcos-sp and arcos-sp plus sipo 2163 v1.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 arcofi ? , epic ? , iom ? , ipat ? , isac ? , sicofi ? are registered trademarks of siemens ag general information
((122)) vakat
speakerphone implementation semiconductor group 123 introduction the siemens arcofi ? -sp psb 2163 is an audio, ringing, codec, filter like the arcofi ? psb 2160, but with additional integrated, enhanced speakerphone features, which has been designed to save space, development costs, and time in any application of digital terminal equipment (te) featuring voice transmission, i.e. from the low-feature telephone to the high-comfort telephone and the multifunctional terminal. the present document has been conceived to help the digital te-designer to take best advantage of all the arcofi-sp-features. this chapter consists of the application notes available on the arcofi-sp psb 2163 as well as a short description of the hardware and software tools developed, to give the arcofi-sp user a good understanding of the component more quickly. the present document does not replace the arcofi-sp technical manual; it is to be used together with it.
((124)) vakat
the speakerphone implementation
((126)) vakat
table of contents page semiconductor group 127 speakerphone implementation 1 general aspects of speakerphone realizations . . . . . . . . . . . . . . . . . . 129 1.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 1.2 speakerphone fundamentals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 1.3 todays speakerphone realizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 1.4 discussion of practical realizations of half-duplex systems . . . . . . . . . . 132 1.5 steady-state problems and transient effects . . . . . . . . . . . . . . . . . . . . . . 134 1.6 optimization of half-duplex speakerphone systems . . . . . . . . . . . . . . . . 135 2 speakerphone with the psb 2163 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 2.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 2.2 notation and coefficients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 2.3 signal flow graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 2.4 basics about the speakerphone algorithm . . . . . . . . . . . . . . . . . . . . . . . . 140 2.5 the speech detector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 2.6 the speech comparator for the acoustic echo . . . . . . . . . . . . . . . . . . . . . 147 2.7 the speech comparator for the line echo . . . . . . . . . . . . . . . . . . . . . . . . 152 3 programming and optimizing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 3.1 speakerphone test function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 3.2 programming hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 3.3 programming amplifications in speakerphone mode . . . . . . . . . . . . . . . . 156 3.4 how to determine gae . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 3.5 basic rules for optimizing the speakerphone . . . . . . . . . . . . . . . . . . . . . . 159 3.6 controlled monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 3.7 implementing a volume control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 3.8 example set of coefficients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
speakerphone implementation semiconductor group 128 about this application note the intention of this application note is to give a thorough understanding of the speakerphone implementation of the arcofi-sp. after introducing the general aspects of speakerphones and the related problems (chapter 1) the arcofi-sp and all its parameters are described ( chapter 2 ). in chapter 3 practical aspects are discussed and an example set of coefficients is given. in the application note, the term "telephone" is used to describe the particular hardware, the arcofi-sp is used for. nevertheless, the arcofi-sp fits to a variety of applications, like intercoms, videoconferencing systems etc. throughout this application note, registers or cram coefficients are written in bold and capital letters ( see notation and coefficients on page 138 ). some arcofi-sp parameters are related to the maximum pcm value. in the application note a-law coding is assumed, therefore this value is written as 3.14 dbm0. for m -law coding 3.17 dbm0 would be correct.
speakerphone implementation semiconductor group 129 1 general aspects of speakerphone realizations 1.1 introduction plain telephony suffers from the fact of being tied to a telephone set, and even mobile telephony requires at least a handset to be held. to move freely for e.g. fetching some documents needed during a discussion or when phoning while driving a car, the speakerphone support is an important feature of telephone terminals. high-feature telephones are mainly to be found as terminal devices in private exchanges (pabx) and central offices (co) to offer enhanced comfort compared to plain analog terminals. in an integrated services digital network (isdn), which opens access to a lot of completely new services in the large list of terminal features, the speakerphone support ranges on top and may be considered as a standard feature of comfort terminals. but even high quality analog terminals take more and more advantage of digital signal processing techniques and offer speakerphone support. in contrast to using a handset which by its construction precludes feedback from loudspeaker to microphone, the speakerphone feature opens such bypasses. it involves much technical expense to cope with these various and time-varying couplings at a reasonable performance level. in general, todays speakerphone realizations are based on a half-duplex transmission mode which breaks the existing acoustic coupling between the receiver loudspeaker and the speakerphone microphone by amplifying just one path (receive or transmit) while the other one is attenuated. former realizations required a lot of discrete components to achieve a satisfying quality, where "satisfying" is still subject to a rather personal sensation. contemporary solutions consist of an integrated circuit with still about 40 passive external components instead. they reach an acceptable quality, but optimization is mainly empirical and tuning the circuitry to the particular preferences of the user is impossible. controlled loudhearing, also called monitoring, is a valuable and very comfortable feature, since it allows other people to follow a discussion running with a remote phone partner. with the arcofi-sp, loudhearing can be regarded as a particular speakerphone mode with reduced attenuation while using the handset microphone. the digital realization of the speakerphone feature greatly simplifies the optimization and tuning procedure by using the efficiency of a digital signal processor. the arcofi-sp psb 2163 incorporates the necessary computing capacity to realize a speakerphone of superior performance without any external components. in the following sections the typical coupling problems and technical solutions will be discussed, before in the second part of this application note the concrete realization with the psb 2163 is described in detail.
speakerphone implementation semiconductor group 130 1.2 speakerphone fundamentals in a traditional telephone connection that uses handsets on both sides there is almost a full duplex conversation (both subscribers can talk and listen at one and the same time), and the gains required for the microphone and the earpiece are moderate. as soon as people start to enjoy the handsfree telephony -moving free in the room, more people listening and talking at the same time- the problems come up. the gain required for amplifying microphone and loudspeaker signals is much higher and there are more ways for the received signal to reach the microphone again than there are in a handset. unfortunately, any system at which an output signal can reach the input again starts to oscillate if the loop gain increases 1 (and if a certain phase angle relation is fulfilled). especially the far-end echoes may be very annoying as they cause a delayed perception of ones own speech. figure 1 coupling problems introduced by speakerphones the system shown in figure 1 should help to understand the different sources of echo and delay. the speakerphone system on the left side is connected over a network to either a handset or a speakerphone terminal at the far end. amplifications are given in db with a positive sign, attenuation is marked with a negative sign. in a pure digital world there is no 2/4-wire conversation, therefore the whole system is stable if the following equation holds during conversation (not considering the delays): g tn + g rn + a an + g tf + g rf + a af < 0 db. with reflections inside the network or with analog lines the situation becomes more difficult and a hn , a hf must be considered as follows: g tn + g rn + a an +[a hn ||a hf ||(g tf + g rf + a af )]<0db.
speakerphone implementation semiconductor group 131 since there are a lot of possibilities for the signal to loop back in a speakerphone system, efforts must be taken to keep the loop gain well below 0db and to avoid regeneration. much technical expense is required to handle the different effects that occur in such a system. 1.3 todays speakerphone realizations basically, it has to be distinguished between two different speakerphone realizations, between the full-duplex and the half-duplex approach. a full-duplex system employs a two-way transmission, whereas with a half-duplex system only a one-way transmission is available at a time. full-duplex a full-duplex system is as comfortable as a round-table discussion, because the interlocutors can talk and listen at the same time. the today's realizations like the compander process or the echo cancellation cause enormous system costs and are very critical, because in case of echo variations they react in a rather unpredictable manner. additionally, perceptible delays introduced by long calculation times due to the numeric algorithm involved are annoying. for this application note these remarks should be sufficient; more information can be found in literature. half-duplex with a half-duplex system signal transmission is permitted only in one direction at any time thus breaking the loop. the half-duplex process is stable under all circumstances, and costs of such systems are remarkably lower than of full-duplex ones. a certain discussion discipline, however, is required. analog and digital realizations of the half- duplex system are available in form of integrated circuits. the arcofi-sp contains a powerful digital implementation of an enhanced half-duplex speakerphone system with an adjustable amount of switchable attenuation, therefore the performance is somewhere between a full- and a half-duplex realization. the value of the additional attenuation is programmable, and it is always switched into the non- active path.
speakerphone implementation semiconductor group 132 figure 2 half-duplex speakerphone with switchable attenuation a r and a t 1.4 discussion of practical realizations of half-duplex systems to realize a high-quality half-duplex speakerphone, a sophisticated control mechanism is necessary to decide where and when to use additional attenuation. this paragraph explains the requirements to be fulfilled by such a control logic. the switching between the transmit and receive direction must happen as discretely as possible. this leads to the following requirements of the switching algorithm: ? voice signals have to be recognized doubtless even if the background noise exceeds the speech signals ? ambient noise must not block the speakerphone switching process ? speech direction switching must occur without any delay ? during a one-direction talk, the system must not switch prematurely ? each speaker should be able to interrupt the other one these specifications are partly contradictory, so that compromises have to be found. thus judging the speakerphone switching performance is rather subjective.
speakerphone implementation semiconductor group 133 transients to get a satisfying switching performance, experience shows, that losses of the loop should be kept as low as possible 1) . ideally, a loss of about 10 - 20db should be sufficient and in reality this loss is not perceptible very well, so that a pseudo full-duplex character can be achieved. in contrast, a switched attenuation larger than 40 db gives the feeling of speaking into a hole, like a dead line. in general, it is a fact that the lower the volume of the speech comes out of the loudspeaker, the lower the inserted attenuation may be. of course, to the singing threshold there should always be a certain reserve to avoid instability and annoying echoes. for the switching control two speech detectors are necessary, one in the transmit path and one in the receive branch. both have to distinguish completely separately between speech activity and (background) noise. the direction exhibiting a better s/n ratio should normally be blocked and the path with a poorer s/n ratio should normally be activated. thus the path with a higher noise is normally transparent, and hence it will not be necessary to have a large level difference between noise and speech. on the other hand, in the path with a better s/n it is not difficult to discriminate between speech bursts and noise edges. a volume control must be arranged in such a way that, when turned down, it will reduce the loss switched in both paths by the same amount. this guarantees that only the minimum of loss is switched, which yields a comfortable switching feeling. the sum of build-up and attack times should be very short (around 10 ms), the shorter the better. the build-up time is the delay associated with the detection of a rising voice signal, and the attack time (analogous release time) is the switching time required after having detected speech. the sum of decay time (delay while detecting a decreasing voice signal) and release time must be relatively long (150 ms) 2) . this prevents clipping and does not delay mode switching in a way that it becomes noticeable. 1 a. busla: "fundamental considerations in the design of a voice-switched speakerphone", the bell system technical journal; vol. xxxix, march 1969, number 2 2 a. busla: "fundamental considerations in the design of a voice-switched speakerphone", the bell system technical journal; vol. xxxix, march 1969, number 2
speakerphone implementation semiconductor group 134 1.5 steady-state problems and transient effects steady-state problems arise from the speakerphone system being stable either in transmit mode or in receive mode. these problems are: ? singing : occurs if the loss switched within the loop is too small (refer to figure 2 ) ? transmit blocking : the system remains in receive mode when it should have switched to transmit mode; this can be due to large noise in the receive path or due to a small a hn or a hf ? receive blocking : due to room noise or due to a strong coupling between loudspeaker and microphone (refer to page 135) the circuit is prevented to switch from transmit to receive mode transient effects occur during switching from one mode to another; these are: ? initial clipping : loss of the first syllables is caused by the operational time of the speech detector and subsequent mode switching; it is influenced also by the sensitivity of the speech detectors ? final clipping : the loss of the terminating parts of words is caused by the hangover time ? the starting echo can be described as follows: speech signals are coming via the line to the speakerphone system. the receive path is not attenuated, and there is a large level enhancement due to the loudspeaker-microphone coupling. as a result, the level at the transmit speech detector input is greater than that at the receive detector. thus when the non-speakerphone side starts speaking, the transmit speech detector can recognize speech earlier than the receive detector. this may result in switching to the transmit side (mode switching) and lead to some instability at speech onset. ? similarly, the end echo can cause immediate mode switching. during a speech interruption or pause in receive direction, the speakerphone system switches to transmit mode. the reason is, that due to acoustic delays speech may still be effective at the transmit speech detector when the receive speech detector has already recognized "end of speech". additional problems arise from background noise and from speech collision during short breaks in the flow of words or due to low-energy syllables. also the varying coupling of the speaker to the microphone may cause trouble at the transmit side.
speakerphone implementation semiconductor group 135 1.6 optimization of half-duplex speakerphone systems a real speakerphone telephone set is a rather complex unit. its performance is affected both by electrical and acoustical couplings, the latter ones are set up via the surrounding air and the telephone case itself. arriving at a true optimum performance is only possible if all trimming resources are exhausted. the minimization of both, the acoustical feedbacks and the electrical couplings is indispensable. the minimization of both the acoustical feedbacks and the electrical couplings must be done by acoustical as well as by electrical means. the gains made acoustically must not be realized by programming the speakerphone hardware. it is not possible to optimize a speakerphone system just by using only one method, acoustical or electrical. starting developing a speakerphone system is most effective in searching first for an economical partitioning between both methods: only a sufficient acoustical optimization provides a sound basis for completing the optimization electrically. theoretically it is possible to eliminate the near-end acoustical couplings almost completely by acoustical means, so that only the hybrid couplings have to be controlled by loss switching. acoustical optimizations ? mechanical loop-back based on resonances of the telephone case (seismic coupling): shock-proof mounting of the microphone and implementing some extra mounting "towers" for obtaining a resonant-proof telephone case. using soft materials for fixing the microphone and loudspeaker to the telephone case. ? acoustic loop-back via air inside the case: acoustic separation of critical case parts. insertion of additional walls inside the telephone case to block coupling via air. ? acoustic loop-back due to the air external to the case: orienting the loudspeaker and the microphone in different directions decouples effectively. an optimum is given, if the lobe patterns of loudspeaker and microphone take an angle of 90?. ? "hollow barrel" effect: placing the loudspeaker on the top towards the room and the microphone near the bottom of the case. placing the microphone into tubes, however, generates unfavorable effects like reverberation. ? maximum effectivity of the transmit amplification: the larger the opening on the telephone case, the larger is the sound pressure at the microphone. placing the microphone in an angle of 45? to the horizontal towards the desk makes the microphone receive the direct acoustical pressure and the indirect sound pressure reflected at the desk. this results in an additional amplification of 4 - 6 db. ? acoustical feedback at the far-end talker side: this feedback is very small if a handset is used. the attenuation via air due to the small amplifications in the earpiece and handset microphone paths is about 50 db, so that it can be neglected. if the far-end
speakerphone implementation semiconductor group 136 side uses also a speakerphone system, an additional loss of 3db is required. this loss has always to be provided because it must be admitted that a speakerphone device is connected at the far-end side. electrical feedbacks there are various electrical couplings which cause attenuated echoes with and without delays. referring to figure 1 , couplings exist in the hybrid where the 4/2-wire conversion is realized, and at the interfaces between analog and digital transmission lines. external to the telephone case in pure digital connections electrical feedbacks do not exist, but large delays can result from digital processing in the exchanges. additional delays may be introduced e.g. by an intercontinental link or by links via satellites. though these delays are very annoying, it is not possible to eliminate them. moreover, in every speakerphone they can generate enormous problems. at the near-end hybrid (a hn ) the attenuation of the echo varies from one link to another in a range between 6 - 20db. in the worst case it can decrease to just 6 db. due to the relative small distance between the speakerphone system and the near-end hybrid, the delay is negligible. at the far-end hybrid the attenuation (a hf ) of the generated echo can also reach 6 db, but via the analog line inserted, additional loss may be introduced. the still more annoying effect is that the echo returns to the loudspeaker with some non-negligible delay.
speakerphone implementation semiconductor group 137 2 speakerphone with the psb 2163 2.1 introduction from the general description of speakerphone problems it can be seen that designing and tuning a speakerphone system is a tricky task. a digital approach to solve the problems not only makes the design independent of productional variations and of environmental conditions, but also offers easy tuning to the desired response. finally, a single chip contains the complete circuitry, therefore no additional external components are required. for the application of the speakerphone and controlled loudhearing features all these necessary hard- and software can be found inside the arcofi-sp psb 2163. a substantial feature of the arcofi-sp is to provide means for minimizing feedback in electrical loops and to compensate for acoustical couplings. therefore, the arcofi-sp offers a lot of parameters which are set by software programming. no further external components or trimming are required. note: although the arcofi-sp allows the control of all kinds of feedback, it is strongly recommended to have the majority of the acoustic couplings minimized by an optimal design of the telephone case. the better the acoustic design, the better the speakerphone will be. the operational functions are realized with a signal processor where all necessary parameters are parameterized. this technique offers a high level of flexibility and reproducibility. an enormous advantage is the reduction of the optimization time. it is possible to optimize the speakerphone system using just one link. the iterated procedure of "building-up a line ? testing ? deactivating the link ? opening the telephone case ? resoldering some rc-elements ? closing the case" is reduced to a comfortable computer session, focusing on the real work: the optimization of the switching behavior. as the signal flow graph of the arcofi-sp shows (see figure 3 ), the complete operational algorithm is situated between the analog front end and the compression/ expansion logic. this offers the advantage that the speakerphone function is independent of any country specific transmission characteristics. thus telephone sets can be optimized and adjusted to the particular geometrical and acoustic environment. furthermore, it is possible to connect different microphones to the speakerphone block, so that controlled loudhearing may also be easily established.
speakerphone implementation semiconductor group 138 the main features of the speakerphone signal processing are: ? two separate attenuation stages, one for the transmit and one for the receive path, controlled by an intelligent control logic, which processes information about the current and the past speech activities; ? two point speech detection; one speech detector for each path, with separate time constants and separately programmable for signal and noise; ? control of the acoustic echo performed by a fully programmable speech comparator; ? control of the far-end echo performed by a fully programmable comparator for the line echo; ? background noise monitoring to eliminate continuous background noise from decision. the following chapters describe how the speakerphone implementation works and give detailed hints about the values to be used for the different parameters. after discussion of the block-diagram of the speakerphone, the speech detectors and the speech comparators are described. 2.2 notation and coefficients the arcofi-sp can be programmed with so called cop sequences ("coefficient operation") and sop sequences ("status operation"). throughout this application note, bold and uppercase abbreviations refer to cram coefficients to be programmed with cop sequences (example: parameter att ). single bits or bit combinations to be set in one of the registers are referred to as . (example: gcr.sp ). these bits are always programmed with sop sequences. for a description of all arcofi-sp registers, please refer to the users manual. the arcofi-sp offers a lot of cram coefficients which can be programmed. the hex- value that corresponds to a certain physical value (e.g. b1 h 49 h representing 0db amplification in the gx stage) can be evaluated very comfortably with the arcos-sp software or with the arcos-sp plus software (sipo 2163) by pressing the right mouse button. the arcos-sp plus software offers additionally hardware access to program the arcofi-sp in different environments. the cram coefficients are not completely documented in the users manual.
speakerphone implementation semiconductor group 139 2.3 signal flow graphs figure 3 shows the whole signal processor part of the arcofi-sp which interfaces to the analog front end (afe) on the left side. figure 3 signal flow graph of the arcofi-sp signal processor (asp) figure 4 gives an general idea of all signal processing blocks important for understanding the speakerphone function. some of the blocks like agcx, agcr (automatic gain stages) and the attenuation stages ghx, ghr can be found directly in the signal flow graph in figure 3 . others, like the two speech detectors sd and the speech comparators scae, scle are located inside the block labeled "speakerphone support" in figure 3 .
speakerphone implementation semiconductor group 140 figure 4 signal flow graph of the whole speakerphone support block 2.4 basics about the speakerphone algorithm this chapter explains the interaction of all the blocks seen in figure 4 , and the three different steady-state modes of the speakerphone. the inside of the speech detectors (sd) and the speech comparators (scae, scle) including all programmable parameters is explained in the following chapters. basically, we have to distinguish three steady-state modes with dynamic transitions between them: the task of the attenuation control unit (see figure 4 ) is to decide which mode should be effective. the information needed for decision is delivered by the two speech detectors sd and the two speech comparators scae, scle. assume the automatic gain control stages agcx and agcr as switched off. table 1 steady-state modes when the speakerphone is active mode attenuation in ghx-stage attenuation in ghr-stage transmit yes, determined by att no, 0db receive no, 0db yes, determined by att idle yes, att / 2 yes, att / 2
speakerphone implementation semiconductor group 141 the speech detectors are able to distinguish between speech signals and any kind of noise and inform the attenuation control unit about the presence or absence of speech in the receive and the transmit path. assume the speakerphone is in receive mode, therefore outgoing digital signals are attenuated in the ghx stage, incoming signals from the pcm interface are reproduced by the loudspeaker with no attenuation inserted in the ghr stage. of course the speech detector in receive direction has recognized speech - otherwise the receive mode would not be active. at the output of the microphone amplifier there is a signal mixture consisting of coupled sound coming from the loudspeaker and from reflections in the room. but also speech activity taking place at the near end in front of the speakerphone will appear in the transmit path (which is still attenuated, if the arcofi-sp is in receive mode). the task of the attenuation control unit is now to distinguish between unwanted signals resulting from coupling, echoes etc. and true speech activity. true speech activity has to make the arcofi-sp switch into transmit mode. for this purpose, first of all the speech detector in transmit direction must have recognized any speech activity. when both speech detectors have recognized speech activity, a decision must be made, which mode is to use (receive or transmit). this is done by the speech comparators, in this example by the speech comparator for the acoustic echo, scae. the speech comparator for the acoustic echo "knows" exactly what signal level sx must be regarded as an echo and which signal level is higher than an echo ever can be. if such a high signal level appears, and this level is a certain (programmable) amount higher than the signal level sr that is actually being received, the speech comparator will change state, therefore indicating this fact to the attenuation control unit. as a result, mode switching from receive mode to transmit mode will happen. the same explanation applies to the mode switching from transmit mode to receive mode, but in this case not the acoustic echo must be taken into account, but the line echo resulting from delays and reflections in the telephone network is important. this echo is handled by the speech comparator for the line echo, scle. a mode switching can be forced simply by speaking louder than the remote partner. how many "dbs" louder a person has to speak is programmable, but always the speech comparators have to cover the worst case echo. that means for the application, that a speakerphone system with a high acoustical coupling and with strong resonances will show a reduced speakerphone performance, since for winning the channel one always has to be louder than the signal caused by echoes and couplings. but for an appropriate designed telephone plastics (refer to chapter 1.6), a very comfortable behavior regarding mode switching is achieved. if no speech activity is recognized by the arcofi-sp, the speakerphone goes into idle mode. after both speech detectors have indicated "no speech", the arcofi-sp remains in the previous mode for the period of time programmed by tw. after tw has passed, the quantity of switchable attenuation (in db) is changed to the amount of half the value determined by att in both branches (see table below) with the speed given by ds
speakerphone implementation semiconductor group 142 (decay speed in ms/db). therefore the transition into idle mode is very smooth and hardly noticeable. starting from idle mode, depending on the first speech detector recognizing speech, the device switches immediately into transmit or receive mode. the speed for this immediate mode switching is determined by the parameter sw (switching time). note, that the parameters explained above are not responsible for the decision, when to change a mode. any changes made for tw , ds , sw only affect the speed of the transitions between the modes and are not responsible for example for the capability of recognizing speech and switching the mode. this is handled by the speech detectors and the speech comparators. 2.5 the speech detector both speech detectors have the same structure. for almost every application the standard parameter set can be used, and there is usually no need for a change except for the parameters described in the paragraph "processing of continuous tones". figure 5 shows the block diagram of the speech detector with all programmable parameters. basically, the speech detector makes use of the burst characteristic of speech, that means, every fast change in signal amplitude compared to the average signal level is recognized as speech. this is done by averaging the input signal with a low pass filter (lp2) and comparing the output signal of this low pass with the input signal itself. background noise monitor background noise monitoring is realized by the low pass lp2. background noise can be regarded as approximately stationary from its averaged power. since only a difference table 2 parameters for switchable attenuation / speed of transitions parameter typical value meaning att 10...40 db amount of switchable attenuation that will always be present in receive and/or transmit path (depending on mode: transmit, receive, idle). tw 144 ms wait time that passes before the transition from receive or transmit mode into idle mode starts. ds 99 ms/db decay speed that determines how fast the switchable attenuation changes when going into idle mode. sw 0.6 ms/db switching time for the transition out of idle mode into transmit or receive mode or for the direct transition from receive mode into transmit mode and vice versa.
speakerphone implementation semiconductor group 143 between the average signal level and the instant signal level leads to speech recognition, the influence of noise on the decision is cancelled, even if the noise level exceeds the voice level. figure 5 block diagram of the speech detector advanced signal processing before the signal is applied to the low pass lp2, it is preprocessed by a logarithmic amplifier, a second low pass lp1, and a peak detector. the logarithmic amplifier compands the signal logarithmically, therefore the speech detector got a high dynamic range. with the parameter lim a threshold is defined. input signal levels that are below the threshold determined by lim are not processed by the speech detector. usually lim is programmed for a threshold a few db above the systems noise floor. note, that lim is related to the maximum pcm value, causing for example a threshold of -60dbm0 if programmed to lim = - 63.1 dbm0. the main task of low pass filter lp1 is to filter the incoming signal in a way that main spikes are eliminated. due to the programmable time constant lp1 it is possible to defuse as well high-energy syllables as noise edges. the peak detector bridges the very short speech pauses during a monologue, so this time constant has to be long. furthermore, the speech bursts are stored, so that a sure speech detection is guaranteed. but if no speech is recognized, the low pass lp2 must be discharged very quickly to the averaged noise level. in addition, the noise edges are
speakerphone implementation semiconductor group 144 to be smoothed. therefore two time constants are necessary and have to be separately programmable: pds for speech and pdn for background noise signals. thus "speech mode" may be detected faster and kept longer than "no speech mode" so that smaller breaks may not cause switching. the low pass filter lp2 provides different time constants for noise (non-detected speech) and speech. it determines the average of the noise reference level. in case of background noise the level at the output of lp2 is approximately the level of the input. due to the offset off , the comparator remains in the initial state. in case of speech, the difference of signal level between the offset branch and the lp2 branch at the comparator increases and the comparator changes state. at speech bursts, the digital signals arriving at the comparator via the offset branch change faster than those via the lp2 branch so that the comparator changes its polarity. hence two logical levels are generated, one for speech and one for noise. a small fade constant ( lp2n ) enables fast settling down the lp2 to the average noise level after the end of speech recognition. it is recommended to choose a large rising constant ( lp2s ) so that speech itself charges the lp2 very slowly. generally, it is not recommended to choose an infinite lp2s because then approaching the noise level is disabled. figure 6 example showing the principle of speech detection the diagrams in figure 6 graphically describe the inputs and outputs of the speech detector blocks. the result is not completely identical to the implementation in the
speakerphone implementation semiconductor group 145 arcofi-sp, but helps to understand the function of the speech detectors. the first diagram shows the input signal in the analog form because this form is better understood. in the arcofi-sp this signal is delivered to the speech detector digitally. the peak detector output is the envelope of the input signal, where short pauses are bridged. the next diagram explains the task of the two branches with the offset off and lp2, respectively of the background noise monitor. in the last diagram the result of the determination of the complete speech detector can be seen. processing of continuous tones care has to be taken when continuous tones C e.g. signalling tones with a long duration C or "music on hold" are to be processed by the speech detector. any long lasting signal that does not show the typical burst characteristic like speech will lead to a "no speech" decision of the speech detector after the time constant lp2s has passed. this is a necessary function for avoiding background noise to be recognized as speech. with the help of the parameter lp2l the charging of the low pass lp2 can be limited to a certain level, therefore a continuous signal that is greater than this limitation plus the offset off will always be recognized as speech. this feature allows to detect any well leveled signalling tone. figure 7 shows the relationship between the input level and the parameters. figure 7 level considerations for processing continuous tones
speakerphone implementation semiconductor group 146 the parameter lim determines an input threshold for the speech detector and is related to the maximum pcm value. the charging of lp2 is limited to a level of lp2l dbs above the threshold lim . a continuous input signal that must be recognized as speech has not only to overcome line "a" in figure 7 but additionally the offset in the second branch of the speech detector. therefore any signal whose level is above the line "b" is high enough always to be recognized as speech. with the explanation given above, the required value for lp2l can be calculated if the level of the continuous signal is known. note that because of the averaging in lp2 a calculation with peak values will always lead to a slight mismatch in the range of a few db. note that the arcofi-sp contains two speech detectors, one for the transmit direction, one for the receive direction. parameters for the speech detector in transmit direction are usually marked with an additional letter "x", parameters for the speech detector in receive direction are marked with an "r". table 3 can be applied for both detectors. table 3 parameters for the speech detectors parameter typical value comment lim - 54db threshold, related to max. pcm value of + 3.14 db; signal values below this threshold are not processed. lp1 4 ms time constant for low pass filter 1; suppression of noise bursts and spikes; lp1 < pdn . pds 102 ms time constant for peak detector if speech has been recognized; pds > pdn for storing speech bursts and bridging breaks during speech. pdn 32 ms time constant for peak detector in case of noise. lp2s 6.6 s time constant for low pass 2 if speech has been recognized; a high value is necessary to avoid a quick charging during speech. lp2n 30 ms time constant for low pass 2 in case of noise; low time constant allows quick adaption to changes of the background noise level. lp2l 25 db limitation parameter; limits the charging of low pass 2. off 4.5 db offset in one branch of the speech detector; speech bursts must be off db above the average signal level to be recognized.
speakerphone implementation semiconductor group 147 2.6 the speech comparator for the acoustic echo the speech comparator for the acoustic echo has the important task to decide, whether a signal actually being received by the microphone is an echo or really a speech activity. this is done by comparing the amplitude of the incoming signal with the amplitude of the outgoing signal (see basics about the speakerphone algorithm on page 140). if the transmit signal is stronger than the signal being received at that moment, this will be indicated to the speakerphone control logic which does a mode switching if also the corresponding speech detector has recognized speech. to understand how the comparator works it is assumed at first order, that mechanical resonances can be neglected compared to the different kinds of acoustic echo. the acoustic echo can be divided into two main parts. the first part of the signal reaches the microphone directly from the loudspeaker, travelling inside or outside the telephone housing (part 1). the second part results from reflections at the walls or boundaries like the desk where the telephone is placed on (part 2). it takes about one millisecond for signal part 1 to travel from loudspeaker to microphone (depending on the geometrical arrangement). reflected signals are not only weaker than the direct sound, they also arrive with a certain delay. this situation is illustrated in figure 8 . figure 8 acoustic echoes resulting from direct coupling (1) or reflections (2)
speakerphone implementation semiconductor group 148 a signal burst fed into the loudspeaker amplifier appears after a short delay at the output of the microphone amplifier (marked with a "1" in figure 8 ). room echoes (marked with "2") are significantly weaker and arrive later at the microphone. the resulting signal envelope at the output of the microphone amplifier looks somehow like the bold line in figure 8 . therefore in first approximation the characteristic of the acoustical environment can be described by a certain slope for the decrease of intensity of the echoes. but the amplitude of the direct sound (signal part 1) arriving almost instantaneously at the microphone depends on the amplification programmed for the arcofi-sp, the kind of microphone and the loudspeaker used. as a consequence, the speech comparator for the acoustic echo inside the arcofi-sp offers one parameter to compensate for these amplifications ( gae , gain of the acoustic echo) and basically two additional parameters to copy the acoustic properties of the room ( gdae , delta gain of the acoustic echo [db] and pdae , peak decrement of the acoustic echo [db/ms]). with these three parameters the switching characteristic of the speech comparator is adjusted as shown in figure 9 . the characteristic is a picture of the acoustical phenomenons allowing a precise differentiation between echo and true speech activity. every signal whose level is above the bold line in figure 9 will make the comparator to change state. if the signal level is below the line, it must be regarded as an echo and no switching occurs. figure 9 implementation of the speech comparator for the acoustic echo
speakerphone implementation semiconductor group 149 appropriate values for the comparator parameters from the explanations given above a set of values for gae , gdae , and pdae can be derived: ? after programming the desired amplifications for receive and transmit path, a measurement of the terminal coupling loss in an anechoic room allows the calculation of the required gae (a detailed explanation follows in chapter 3.4); gae then compensates all amplifications in a way, that in case of direct coupling, the transmitted and received signal shows the same amplitude at the dashed line in figure 10 . ? the reverberation time of the acoustical environment determines roughly the slope of the comparator characteristic; the reverberation time t n is defined as the period of time in which the sound pressure level decays for 60db after the sound source is switched off. when assuming a reverberation time of about 0.5 seconds, a decrement of pdae = 8.5ms/db is necessary (t n /60db = 8.5ms/db). ? now gdae is used to cover the sound that is directly coupled into the microphone, this is the point marked with a black bullet in figure 9 . figure 10 signal flow graph of the speech comparator for the acoustic echo
speakerphone implementation semiconductor group 150 it was assumed all the time, that mechanical resonances of the telephone housing can be neglected. if this assumption does not hold, the adjustment of pdae and gdae must be made in a way, that additionally the signal parts resulting from resonances are covered by the comparator characteristic. in this case, other measurements or an empirical approach must be used to find appropriate values. in general, a standard parameter set is sufficient for most of the applications, but it is always advisable to adapt gae to the single telephone housing. from the signal flow graph in figure 10 it becomes obvious that in fact there are two programmable parameters each: gdnae and gdsae for the delta gain gdae, pdnae and pdsae for the peak decrement pdae. usually it is not necessary to take care of the presence of two different parameters, and all explanations given in this chapter apply if the same values are used for gdnae and gdsae as well as for pdnae and pdsae the same values are programmed. note: to get a comparator characteristic as shown in figure 9 , set gdsae = gdnae and pdsae = pdnae . dont care for etae . but of course there are applications where different values make sense, this is always the case if an additional edge should be introduced in the comparator characteristic shown in figure 9 , for example, if very high mechanical resonances occur with a duration that is short compared to the acoustic echoes. the letter "s" in gdsae and pdsae stands for "speech" and means that these parameters are only effective, as long as speech is recognized. therefore it is possible to cover e.g. high mechanical resonances with a high gdsae and a relatively slow pdsae but then switch to the other pair of parameters, gdnae and pdnae , to get a fast decay ("n" stands for "noise"). only in this case with different values the echo time for the acoustic echo etae becomes important. after the arcofi-sp has recognized "no speech" the period of time defined by etae passes before the parameters for noise ( gdnae , pdnae ) are used. note: to get a comparator characteristic with an additional edge, use gdsae / pdsae for the time during speech is recognized including the time etae afterwards. use gdnae / pdnae for the rest of the time where there is noise detected. for almost every application it is not necessary to work with two sets of parameters, and standard values can be used instead. but the arcofi-sp offers the flexibility to handle even difficult coupling problems due to its two switchable coefficient sets for the speech comparators.
speakerphone implementation semiconductor group 151 table 4 parameters for the speech comparator for the acoustic echo parameter typical value comment gae C 5 + 10 db gain of the acoustic echo; used to achieve equal signal levels at the comparator in case of direct coupling sound, therefore representing the acoustic properties of the telephone housing, microphone, and speaker; can be calculated from a tcl measurement. gdsae 6 db additional delta gain as reserve for gae and as level shift for the comparator characteristic (in case of speech). gdnae 6 db delta gain in case of noise. pdsae 8.5 ms/db peak decrement of the acoustic echo in case of speech; slope of the comparator characteristic used to cover all echoes. pdnae 8.5 ms/db peak decrement of the acoustic echo in case of noise. etae dont care (see comment) echo time for the acoustic echo; only effective in case of different parameters for gdsae / pdsae ("s") gdnae / pdnae ("n") ; determines the period of time the "s" parameters remain active after speech recognition has stopped before the "n" parameters are used.
speakerphone implementation semiconductor group 152 2.7 the speech comparator for the line echo having understood the task and principle of the comparator for the acoustic echo (scae) the understanding of the speech comparator for the line echo (scle) is easy. as shown in figure 2 , the speakerphone has not only to deal with acoustic couplings but also with echoes coming from the network. basically, the intensity of echoes resulting from reflections somewhere inside the telecommunication network or from the acoustic connected to the far end, decreases exponentially. therefore a comparator that has to cover the line echo must show a characteristic similar to the one shown in figure 9 for the acoustic echo. the implementation of the scle is identical to the one of the scae and therefore all explanations given in chapter 2.6 apply also to the comparator for the line echo. the parameters to be used are different and result from the following considerations (compare with the block diagram of the scle in figure 11 ). experience shows that in worst case the level of the echo coming from the line can be about 10db below the sending level. this level difference must be compensated with the gain of the line echo ( gle ) to get the same input conditions at the dashed line in figure 11 . besides, the line echoes can show a significant long delay in the range of some 100ms depending on the kind of connection used (consider satellite links). by choosing a slow slope for the peak decrement pdle and a high value for the delta gain gdle these echoes can be covered (see typical values in table 3 ). figure 11 block diagram of the speech comparator for the line echo
speakerphone implementation semiconductor group 153 table 5 parameters for the speech comparator for the line echo parameter typical value comment gle - 10 db gain of the line echo; used to achieve equal signal levels at the comparator for covering the first echo; can be measured as the level difference between outgoing and received (echo-)signal at the network interface. gdsle 12 db additional delta gain as reserve for gle and as level shift for the comparator characteristic (in case of speech). gdnle 12 db additional delta gain in case of noise. pdsle 21.3 ms/db peak decrement of the line echo in case of speech; slope of the comparator characteristic used to cover all echoes. pdnle 21.3 ms/db peak decrement of the line echo in case of noise etle dont care (see comment) echo time for the line echo; only effective in case of different parameters for gdsle / pdsle ("s") gdnle / pdnle ("n"); determines the period of time the "s" parameters remain active after speech recognition has stopped before the "n" parameters are used.
speakerphone implementation semiconductor group 154 3 programming and optimizing 3.1 speakerphone test function at least during the optimization process it is highly recommended to make use of the integrated speakerphone test mode of the arcofi-sp. it allows to observe the internal state of the speakerphone control unit by the help of two leds connected to the piezo- pins of the arcofi-sp (see figure 12 ). figure 12 test leds at the pz-pins clipping and transient effects that are almost not audible can easily be detected with the help of these leds. to activate the speakerphone test function, the bit tfcr.epzst and the bit tgsr.pm must be set. the test function has no influence on the functionality of the arcofi-sp. table 6 speakerphone states and test leds "transmit" led "idle" led meaning off off arcofi-sp is in receive mode off on idle mode is active; it was reached via the receive mode on off arcofi-sp is in transmit mode on on idle mode is active; it was reached via the transmit mode
speakerphone implementation semiconductor group 155 3.2 programming hints cop sequences except the arcofi-sp registers and cop_5 for the gx, gr amplification stages, all bold faced parameters in table must be programmed to get the speakerphone work. the corresponding hex values must be taken from the arcos-sp software. are dont care bytes and should be set to 00 h for future software compatibility. aborting cop sequences any cop sequence can be interrupted without losing -with the particular sequence- the already programmed parameters. if for example a cop_a sequence is aborted after the first byte is successfully transmitted, the arcofi-sp will use the new value for gae transmitted within the first byte. this feature allows shortest programming times simply by interrupting the sequence after the desired information has already been transmitted. high pass filter especially for speakerphone mode it is necessary that the digital high-pass filters hpx and hpr (compare with figure 3 ) are switched on ( pfcr.dhpr =0, pfcr.dhpx =0), for these digital high-pass filters are to remove the dc portion of the 16-bit word, which e.g. could wrongly be regarded as background noise. generally these filters should be always switched on except for the very rare situations when signalling at frequencies below 50hz is used. table 7 cop sequences and relation to speakerphone parameters (bold) cop 1. byte 2. byte 3. byte 4. byte 5. byte 6. byte 7. byte 8. byte cop_a gae gle att etae etle tw ds sw cop_b gdsae pdsae gdnae pdnae gdsle pdsle gdnle pdnle cop_c lim offx offr lp2lx lp2lr lp1x lp1r cop_d pdsx pdnx lp2sx lp2nx pdsr pdnr lp2sr lp2nr cop_e lgax comx agx tmhx tmlx noisx cop_f lgar comr aar agr tmhr tmlr noisr
speakerphone implementation semiconductor group 156 3.3 programming amplifications in speakerphone mode it is important to notice, that as soon as the gcr.sp bit is switched on, the gain stages lgax and lgar (located inside the automatic gain control stages) are activated automatically. figure 13 shows the gain stages responsible for amplification in transmit or receive direction. the ghx and ghr stages for the switchable attenuation are not shown. figure 13 gain stages in speakerphone mode for measuring the over-all amplification in speakerphone mode it is necessary to program the switchable attenuation att to 0db (this is done by sending cop_a xx xx 00 xx xx xx xx xx, where "xx" are dont care bytes). note: throughout the arcofi-sp users manual absolute levels are given either in dbm0 or in dbm . levels given in dbm always refer to a 600 w load, therefore 0dbm is equivalent to 774.6 mvrms. the signal level in the digital domain is usually expressed in dbm0. the maximum pcm signal level defined for a-law coding is 3.14 dbm0 respectively 3.17 dbm0 for m -law. the signal level in dbm that is delivered from the d/a converter inside the arcofi-sp, if a 0 dbm0 pcm signal is applied, is determined by the reference voltage of the converter (1.18 v) causing a level difference of 20 log (1.18/0.775) [dbr] = 3.67dbr. level (analog) level (digital) 0.0 dbm - 3.67 dbm0 3.67dbm 0.0 dbm0
speakerphone implementation semiconductor group 157 3.4 how to determine gae in the general description of the speech comparator for the acoustic echo the meaning of the gain of the acoustic echo, gae was introduced (see page 149 ). gae should always be adapted to the particular hardware (plastics, microphone, speaker) whereas in first approximation for all the other parameters standard values can be used. this chapter shows a simple measurement procedure to find an appropriate value for gae . figure 14 position of the speech comparators scae and scle figure 14 is important as it shows the position of the comparators related to the different amplification stages. it can be seen that the comparator for the acoustic echo, scae, senses the receive signal directly in front of the analog loudspeaker amplifier als and the transmit signal between the gx and the lgax stage. as explained in chapter 2.6 the task of gae is to adjust the signal level in a way, that in case of direct coupling the amplitudes at the input of the scae are equal.
speakerphone implementation semiconductor group 158 measuring tcl and calculating gae a measurement of the terminal coupling loss tcl 1) is sufficient to calculate the required value for gae . a typical measurement procedure can be realized as follows: ? programming of all amplifications ( atcr.mic , gx , lgax , arcr.lsc , gr , lgar ). note, that for making lgar and lgax effective, the speakerphone must be enabled ( gcr.sp =1); to suppress any influence of the switchable attenuation att , set att =0db (cop_a xx xx 00 xx xx xx xx xx). ? measuring the frequency dependent terminal coupling loss. this measurement has to be done in an anechoic environment. ? calculating gae . use the following equation with the programmed amplifications and the measured tcl; in general it is sufficient to calculate with the weighted terminal coupling loss tclw, but if there are strong couplings at discrete frequencies, it can be necessary to use a value between tclw and the worse tcl values instead. equation for calculating gae: lgax + tcl + lgar + gr + gae = 0 db. example: lgax = 4.5 db; lgar = 3.0 db; gr = 0db; tcl = - 5 db ? gae = - 2.5 db. empirical determination of gae if no anechoic room is available or for evaluation purposes also a simple test procedure can lead to an appropriate value for gae . after building up a speakerphone to handset connection with negligeable line delays, gae is varied and the acoustic effects on the handset are evaluated. as a signal source either a human voice or synthetic speech signals can be used (composite source signal, interrupted sinewave sweep, or switched pink noise). if the telephone plastics does not exhibit an "extreme behavior", it should always be possible to find a threshold value for gae . if gae is too low, the speech comparator can not cover the acoustic echo and clipping effects occur. if gae is increased, the comparator will not change state due to echoes (compare with figure 9 ), but the higher gae , the more difficult it is to interrupt the signal from the speakerphone side. during tests, gae should be changed only in small steps of e.g. 0.5db because for having the best speakerphone performance it is important to keep the value as low as possible. this optimum value is usually in the range of - 5 db + 9 db. the worse the telephone housing (from the acoustical point of view), the higher the value for gae must be to cover the echo. 1 see: etsi prl-ets 300 245-3, "technical characteristics of telephony terminals; part3: pcm a-law, loudspeaking and handsfree function", 4/93
speakerphone implementation semiconductor group 159 the task is to find the minimum value for gae for which the speakerphone works properly. 3.5 basic rules for optimizing the speakerphone general ? always make use of the test function described in chapter 3.1. ? start experiments with the standard coefficient set given in chapter 3.8. ? make sure to have an appropriate value for gae . ? use a handset to speakerphone connection. ? be sure to have programmed correct amplifications in the transmit and receive path (see also the paragraph about volume control). ? the transmit and the receive direction can be checked separately, if the microphone inputs or the loudspeaker outputs are disabled ( atcr.mic =00 h or arcr.lsc =00 h ) att ? the switchable attenuation att should be in the range of 20 db 30 db; as mentioned on page 133 , the smaller att is, the better is the performance of the half- duplex system. speech detectors ? the standard parameter set is not critical and shows best results under almost every condition. ? with the arcofi-sp in receive or transmit mode, the test led indicating "idle" during a monologue must flash; this behavior is independent of the presence of background noise. ? in case of high background noise which undergoes quick volume changes (e.g. machines that are starting periodically) it could be interesting to allow the low pass lp2 a quicker adaption to the average noise level (decrease lp2nx , but always keep lp2sx < lp2nx ); the disadvantage is, that speech detection becomes a bit more insecure. ? if the system noise level C especially in receive direction C is quite high, thinking about increasing the input threshold of the speech detector ( limx ) is necessary, but limx must always be low enough to ensure a secure speech detection for the weakest speech signal to be recognized.
speakerphone implementation semiconductor group 160 comparator for the acoustic echo, scae ? its most important to have a correct value for gae ; read chapter 3.4 for details ? scae is responsible for avoiding clipping effects: a monologue at the handset side should always be transparent at the loudspeaker on the speakerphone side; the "transmit"-led must remain dark while the "idle"-led is flashing; after the end of speech at the handset side, the "transmit"-led has to remain dark, otherwise resonances or room echoes have caused the arcofi-sp to switch wrongly into transmit mode ? consider using a synthetic voice or tone signal (e.g. css or spn from a test cd) since these signals have a constant level ? once having adjusted the comparator, it should be possible to interrupt a person speaking at the far end simply by speaking loud(er) on the speakerphone side; the lower the value for gae is (respectively the better the telephone acoustics is), the easier it is to interrupt the other side ? in case of clipping problems, it can be helpful to draw the comparator characteristic as shown in figure 9 in a true scale on a piece of paper and think about possible changes; if the reverberation time of the room is very long, increase pdae ; if the telephone plastics shows strong resonances, increase gdae; in worst case, a second edge can be introduced in the comparator characteristic (see page 149 ) comparator for the line echo, scle ? the standard parameters are chosen under the assumption, that the worst case line echo is at least 10 db below the outgoing signal ( gle = C 10 db) and that the line delay for this high echo is shorter than 0.26 seconds ( gdle =12db, pdle = 21.3 ms/db, delay = gdle pdle ) ? clipping effects due to a line echo are not to be expected with the parameters given above, but if e.g. tests with a satellite link show unsatisfactory results, an increase of gle from e.g. - 10 db to - 8 db gives additional 2 dbs room for higher echoes; longer delays have to be covered with higher gdle and pdle ; again, this makes it more difficult to interrupt a person talking at the speakerphone side
speakerphone implementation semiconductor group 161 typical effects and the corresponding solutions ( see steady-state problems and transient effects on page 134 ; ? means "decreasing the parameter, - stands for "increasing") 3.6 controlled monitoring "controlled monitoring" or "loudhearing" can be regarded as a special speakerphone mode with the difference, that the telephone user talks into the handset microphone and the receive signal is reproduced by the handset earpiece and the loudspeaker. the handsfree microphone is not active. volume changes in the earpiece due to switchable attenuation are not allowed. the arcofi-sp supports controlled monitoring by using a slightly different attenuation mechanism as in the speakerphone mode. to enable this feature, not only the gcr.sp bit has to be set, but also the arcr.cme bit (controlled monitoring enable). the controlled monitoring mode can be described as follows (compare the explanation with figure 15 ): ? the speakerphone support is active and works as usual. ? the attenuation stage for receive direction ghr is fixed to a gain of 0 db (this is in contrast to the normal speakerphone mode and is necessary to have always a constant volume at the handset output). ? the amplification in the analog loudspeaker amplifier als is determined by arcr.lsc as usual, but it can be switched to the fixed value of C 9.5 db regardless of the setting of arcr.lsc . ? als is switched to C 9.5 db automatically as soon as the speakerphone support of the arcofi-sp has decided to use attenuation in the receive path; therefore the volume of the signal coming out of the loudspeaker is reduced to a low volume when speech activity takes place in the transmit path ("controlled" loudhearing). table 8 typical effects in speakerphone mode effect solution singing att - transmit blocking gae ? ; gdsae ? ; gdnae ? receive blocking gle ? ; gdsle ? ; gdnle ? initial clipping gdsle ? starting echo gae - ; gdsae - ; gdnae ? end echo gle - ; gdsle - ; gdnle - ; pdsle - ; pdnle - chopping effect gae -
speakerphone implementation semiconductor group 162 figure 15 explanation of the controlled monitoring mode hints for optimizing generally, the controlled monitoring feature should be optimized after having found a appropriate set of coefficients for the speakerphone. then, after enabling the arcr.cme bit, only fine tuning is necessary. the system should be stable even if the handset microphone is placed close to the loudspeaker. due to the instantaneously switching of the als, a reduction of ds and sw (decay speed, switching time) avoids short-time instabilities. note, that gae must be adapted, if amplification in the loudspeaker amplifier, the microphone amplifier or the gx stage is reprogrammed (remember figure 14 ).
speakerphone implementation semiconductor group 163 3.7 implementing a volume control the telephone user normally has the possibility to choose different volume settings when using the speakerphone. the volume can be adjusted either manually by reprogramming amplifications in the receive path or by means of the automatic gain control stage. since the automatic gain control stages are described in a separate application note, this chapter deals with the first solution. its important to keep some items in mind: ? in speakerphone mode, receive amplification can be changed with lgar , gr , and arcr.lsc . ? for achieving best signal to noise performance, the maximum signal level should be close to the max. pcm value; clipping must be avoided. ? its advisable, not to reduce the loop gain (which includes the switchable attenuation att) when reducing the volume 1) ; this can be achieved by reprogramming the parameter att; as a consequence, the conversation gets the more transparent, the lower the volume is. ? every time, either arcr.lsc , atcr.mic , or gx is changed, gae must be adapted too (applies only for speakerphone mode); see also figure 14 . table 9 shows an example for eight volume steps with an over-all amplification in the loudest volume step (step 8) of 23db. for each volume step, the amplification is reduced by 3db. the value for gae is shown as "y" and must be reduced every time, the gain in the als is reduced. the loop gain remains constant: lgar + gr + arcr.lsc + atcr.mic + gx + lgax + att = const. 1 a. busla: "fundamental considerations in the design of a voice-switched speakerphone", the bell system technical journal; vol. xxxix, march 1969, number 2, page 280 table 9 example for eight volume steps vol. step 8 7 6 5 4 3 2 1 total gain g [db] g= 23 g-3= 20 g-6= 17 g-9= 14 g-12= 11 g-15= 8 g-18= 5 g-21= 2 als [db] 11.5 8.5 5.5 2.5 2.5 2.5 2.5 2.5 gr [db] 3.5 3.5 3.5 3.5 0.5 0 0 -0.5 lgar [db] 8 8 8 8 8 5.5 2.5 0 gae [db] y y-3 y-6 y-9 y-9 y-9 y-9 y-9 att [db] x x-3 x-6 x-9 x-12 x-15 x-18 x-21
speakerphone implementation semiconductor group 164 3.8 example set of coefficients the coefficients shown in table to should serve as a basis for every speakerphone application. after starting with these values efforts must be taken to find an appropriate value for gae (see page 157 ). with the hints given in chapter 3.5 further adaption to the particular requirements can easily be achieved. table 10 standard parameter set for the speech detectors parameter value meaning coefficient lp1x 4.0 ms low-pass 1 cop_c __ __ __ __ __ e1 __ __ pdnx 32.2 ms peak detector (noise) cop_d __ f4 __ __ __ __ __ __ pdsx 102.3 ms dto. (speech) cop_d 26 __ __ __ __ __ __ __ lp2lx 24.8 db limitation for lp2 cop_c __ __ __ 42__ __ __ __ lp2nx 30.1 ms low pass 2 (noise) cop_d __ __ __ 44 __ __ __ __ lp2sx 6.6 s low pass 2 (speech) cop_d __ __ 20 __ __ __ __ __ offx 4.5 db offset cop_c __ 0c __ __ __ __ __ __ limx C 54 db limit (threshold) cop_c 4_ __ __ __ __ __ __ __ lp1r 4.0 ms low-pass 1 cop_c __ __ __ __ __ __ e1 __ pdnr 32.2 ms peak detector (noise) cop_d __ __ __ __ __ f4 __ __ pdsr 102.3 ms dto. (speech) cop_d __ __ __ __ 26 __ __ __ lp2lr 24.8 db limitation for lp2 cop_c __ __ __ __ 42__ __ __ lp2nr 30.1 ms low pass 2 (noise) cop_d __ __ __ __ __ __ __ 44 lp2sr 6.6 s low pass 2 (speech) cop_d __ __ __ __ __ __ 20 __ offr 4.5 db offset cop_c __ __ 0c __ __ __ __ __ limr C 54 db limit (threshold) cop_c _4 __ __ __ __ __ __ __
speakerphone implementation semiconductor group 165 table 11 standard parameter set for the comparators parameter value meaning coefficient gae 5.3 db gain of acoustic echo cop_a 0e __ __ __ __ __ __ __ etae 0.0 ms echo time cop_a __ __ __ 00 __ __ __ __ gdsae 6.0 db delta gain (speech) cop_b 20 __ __ __ __ __ __ __ pdsae 8.5 ms/db peak decrement cop_b __ 05 __ __ __ __ __ __ gdnae 6.0 db delta gain (noise) cop_b __ __ 20 __ __ __ __ __ pdnae 8.5 ms/db peak dec. (noise) cop_b __ __ __ 05 __ __ __ __ gle - 10.2 db gain of line echo cop_a __ e5 __ __ __ __ __ __ etle 0.0 ms echo time cop_a __ __ __ __ 00 __ __ __ gdsle 12.0 db delta gain (speech) cop_b __ __ __ __ 40 __ __ __ pdsle 21.3 ms/db peak decrement cop_b __ __ __ __ __ 02 __ __ gdnle 12.0 db delta gain (noise) cop_b __ __ __ __ __ __ 40 __ pdnle 21.3 ms/db peak dec. (noise) cop_b __ __ __ __ __ __ __ 02 table 12 standard parameter set - other pparameters parameter value meaning coefficient att 28.2 db attenuation cop_a __ __ 48 __ __ __ __ __ tw 144.0 ms wait time cop_a __ __ __ __ __ 09 __ __ ds 99.0 ms/db decay speed cop_a __ __ __ __ __ __ 25 __ sw 0.6 ms/db switching time cop_a __ __ __ __ __ __ __ 64 lgax 4.5 db gain adjustment cop_e 13 __ __ __ __ __ __ __ lgar 5.5 db gain adjustment cop_f 12 __ __ __ __ __ __ __
speakerphone implementation semiconductor group 166 if the sdi/sci interface mode is used, in addition to the registers shown in table the registers sdicr and tscr have to be set first. instead of sending eight particular sop sequences, a sop_f can be used: sop_f 40 04 70 00 00 00 f1 96. all the bytes given in table 10 to 13 can be read from the arcos-sp plus software 1) or from a previously saved file with the extension *.arc. table 14 shows the contents of the arc-file (not included cop_0 ... cop_9 because they are only necessary for the tone generator and the agc). table 14 speakerphone related sequences to be found in a arc-file w 0 cop_a 0e e5 48 00 00 09 25 64 w 0 cop_b 20 05 20 05 40 02 40 02 w 0 cop_c 44 0c 0c 30 30 e1 e1 00 w 0 cop_d 26 f4 20 44 26 f4 20 44 w 0 cop_e 13 84 10 07 13 5f 00 00 w 0 cop_f 12 84 7f 10 07 13 5f 00 w 0 sop_f 40 04 70 80 00 00 f1 96 1 arcos-sp software or arcos-sp plus software for the psb 2163 (sipo 2163) table 13 example register setting for speakerphone mode register meaning coefficient tfcr test function configuration sop_7 40 arcr afe receive configuration sop_6 04 atcr afe transmit configuration sop_5 70 tgsr tone generator switch sop_4 00 tgcr tone generator configuration sop_3 00 pfcr programmable filter configuration sop_2 00 dficr data format and interface configuration sop_1 f1 gcr general configuration sop_0 96 xcr extended configuration sop_a 00
layout and wiring recommendations
((168)) vakat
layout and wiring recommendations table of contents page semiconductor group 169 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 2 layout considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 3 connecting the analog front end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 3.1 outputs for earpiece and loudspeaker . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 3.2 differential microphone inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 3.3 the single ended input mi3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
layout and wiring recommendations semiconductor group 170 1 introduction the arcofi-sp psb 2163 is a high performance codec filter device with a state of the art tone generator and an excellent speakerphone implementation. to obtain the full performance of the device, some care in designing the analog circuitry and the printed circuit board has to be taken. this application note gives some hints and wants to provide understanding of the parameters that influence the performance. with "performance", especially the following effects are meant: ? signal to noise ratio, especially in transmit direction (analog to digital) ? idle channel noise (the noise that is present when there is no signal applied) ? spurious oscillations ? sensitivity to any kind of interfering signals (noise on power supply, rf interference, induced voltages etc.) the arcofi-sp contains high performance a/d and d/a converters with more than 16bit resolution in order to allow the different signal processing steps without degradation of the signals themselves. on one silicon the psb 2163 integrates a high gain, analog preamplifier, the converters as well as an digital signal processor. besides the arcofi-sp is used in an digital environment that typically causes noise on the power supply and produces many kinds of interfering signals. for all these reasons, careful grounding, decoupling, and shielding is the key to get best system performance. note: the circuits given in this application note are for general guidance and do not claim to satisfy all user specific requirements. especially for emc reasons additional components may be required.
layout and wiring recommendations semiconductor group 171 2 layout considerations since the arcofi-sp will be used with different kinds of printed circuit boards in different applications and environments, it is not possible to show the "optimum layout". instead, this chapter explains the correlations that lead to the optimum layout for a given application. power supply pins the psb 2163 has three ground pins and two pins for connecting the positive supply voltage. internally all the ground pins and all the power supply pins are connected. from table 1 it can be seen, what parts of the arcofi-sp are supplied from what pins. it is important, that each pair of pins given in one row of table 1 is decoupled with a pair of capacitors in parallel. one capacitor has to be a 47 nf 100 nf ceramic one, for the second one a tantalum type with 1 m f10 m f is recommended. note, that pin 21 ( v dd ) is used for both, the supply of the dsp and the supply of the analog part of the arcofi-sp except the power amplifiers aho and als. ground plane a second aspect in designing a perfect pcb layout is a low impedance connection between all points of the circuitry that have to be connected to ground. first of all, this concerns the three ground pins of the arcofi-sp (pin 1, 15, 20). these three pins have to be connected to each other directly underneath the ic package. this ensures not only a low impedance ground for the psb 2163 but also serves as a shield, if the connection between the three ground pins is realized as a ground plane. shielding is important since it protects the high gain analog amplifiers and the converters against any capacitive coupling. hence, if multilayer pcbs are used, the ground plane has to be the top layer and not somewhere in between. figure 1 shows one possibility to place the decoupling capacitors on a two layer board if no components are allowed on the bottom of the pcb. if mounting on both sides is permitted, one would place the capacitors between pin 1 and 21 on the bottom layer. table 1 power supply pins of the psb 2163 pin for v ss pin for v dd (+ 5 v) supply for 1 ( v ssd ) 21 ( v dd ) digital signal processor and digital interface 15 ( v ssp ) 13 ( v ddp ) analog output amplifier aho, als 20 ( v ssa ) 21 ( v dd ) analog preamplifiers and switches
layout and wiring recommendations semiconductor group 172 figure 1 example layout with decoupling capacitors and ground plane note the large ground area underneath the chip. it is a good approach to extend this ground area also to the locations of all the passive components required for connecting the acoustical transducers (microphones etc.). but any kind of ground loop must be avoided since this would be an antenna for rf noise. note also the position of the decoupling capacitor for the reference voltage between pin 19 and 20 in figure 1 . it should be placed close to pin 19 and 20.
layout and wiring recommendations semiconductor group 173 grounding of microphones some transducers as electret microphones for example, always need a reference to ground and therefore the question arises, which point of the circuit should serve as a microphone ground. as long as truly differential signal sources are used, this is not a problem. the high common mode rejection ratio of the differential microphone inputs eliminates interfering signals. but if an electret microphone is used, this microphone requires some biasing and will be tied to ground with one pin (see chapter 3.2 for more examples about connecting microphones). figure 2 shows the typical arrangement for connecting electret microphones. the microphone inputs min1/mip1 and min2/mip2 are differential inputs with an input impedance of 15 k w or more. no external biasing is required for these inputs. in the unbalanced configuration in figure 2 , one of the inputs is tied to the reference voltage ( v ref pin). the reference voltage is a stable (2.4 v) and very clean dc voltage; a current of up to 1.0 ma can be drawn from v ref . if the v ref pin is used externally, it has to be blocked to the analog ground ( v ssa ) with a 100nf capacitor (ceramic). if the v ref pin remains open, no blocking capacitor is required. from figure 2 it becomes obvious, that any voltage difference introduced in the circle marked with a dashed line, will be regarded as a wanted signal and therefore will be amplified and converted by the arcofi-sp. in a real application, only the voltage originating from the microphone itself has to be amplified. this leads to the requirement, that the microphone ground must be connected directly to the pin v ssa (or to a ground plane which incorporates v ssa ). if on a pcb the microphone is not placed directly next to the arcofi-sp, it is a good solution to use a separate ground trace between the microphone and the analog ground of the arcofi-sp. if the microphone is connected via a longer cable, the cable should be shielded and again the screen is tied to the analog ground. summary ? good decoupling between the pins given in one row of table 1 ? large ground plane underneath the chip connecting all ground pins ? careful grounding of unsymmetrical signal sources if these considerations receive attention, the full performance of the psb 2163 is available even in a very "noisy" environment.
layout and wiring recommendations semiconductor group 174 figure 2 ground loop with single ended signal sources
layout and wiring recommendations semiconductor group 175 3 connecting the analog front end 3.1 outputs for earpiece and loudspeaker the analog handset output amplifier aho delivers a symmetrical signal at the pins hop and hon. any load with an impedance higher than 200 w can be connected directly (see figure 3a ). however, if the load shows a strong capacitive behavior like a piezo-ceramic earpiece, it is better to use series resistors as shown in figure 3b to avoid spurious oscillations. this is also an typical example for a circuitry as it is used in a real application. the resistors have to be placed close to the output pins. figure 3 the analog handset output it is possible to use the outputs hop and hon as single ended outputs with reference to ground; the load must be greater than 100 w and only half of the amplitude swing is available. figure 4 the analog loudspeaker output
layout and wiring recommendations semiconductor group 176 the difference between the earpiece output and the loudspeaker output is the driver capability. the load between the pins lsp and lsn may be as low as 50 w in order to drive a speaker. a dynamic speaker can be connected directly to these pins (see figure 4a ). an arrangement for an unsymmetrical connection with two speakers shows figure 4b . the load can be 25 w but should be decoupled to avoid dc currents through the speakers. with the register bits xcr.dlsp and xcr.dlsn each output pin can be switched into a high impedance state therefore the speakers can be switched on and off independently. the same applies for the earpiece output with hop and hon. this feature offers a variety of applications. for example, if one speaker in figure 4b is left out, the output pin becomes a switchable line level output. for example, this output could control an external speaker box. 3.2 differential microphone inputs the arcofi-sp offers five pins as microphone inputs. the two differential inputs min1/mip1 and min2/mip2 are equivalent in terms of performance and circuitry. the single ended input mi3 offers a slightly reduced performance due to its unsymmetrical structure. all inputs can be used to interface directly with all kinds of microphones or serve as a high level input. figure 5 interfacing symmetrical microphones a symmetric signal source that has no reference to ground can simply be connected to one of the differential inputs. basically, no additional components are required ( figure 5a ). the microphone can be a dynamic, magnetic, or piezoelectric one. usually an arrangement similar to the one shown in figure 5b will be used in order to get well defined impedances and a certain emc protection. the component values depend on the type of microphone used. the microphone inputs are biased internally with v ref and require no external biasing. they can be completely ac coupled. the input impedance is higher than 15 k w .
layout and wiring recommendations semiconductor group 177 electret microphones today, electret microphones are widely used in telecommunications devices. these microphones usually contain an active amplifier or a fet to achieve a low output impedance and therefore require some dc biasing. the dc current to bias the electret microphone can be taken from the positive supply voltage of the arcofi-sp (+ 5 v) or the reference voltage v ref can be used for this purpose (2.4 v). the schematic in figure 6 depicts the first possibility. figure 6 interfacing electret microphones with bias from v dd one input pin (min1) of the differential input is tied to v ref . this creates a single ended configuration which must be ac coupled with c1 to the signal source, consisting of the electret microphone. r1 and r2 are used to bias the microphone. the rc combination r2/c2 filters out power supply ripple. r1 has the value recommended by the microphone manufacturer and is usually in the range of 1 k w 4k w. the dashed line in figure 6 illustrates how to connect a second microphone to the other differential input of the arcofi-sp without spending the complete bias network again. the reference voltage v ref has to be blocked with 100 nf to ground because any noise at the pins min1 and min2 in the above configuration will be interpreted as a wanted signal. the second possibility to bias electret microphones is shown in figure 7 . the dc current is taken directly from the v ref pin of the arcofi-sp. no rc network to filter out power noise is necessary because the reference voltage is clean and stable. only in case of high gains in the analog microphone amplifier (ami more than 30 db) the over-all performance can be improved, if the reference voltage is filtered. for this purpose, a r/c combination (1 k w /10 m f) between the v ref pin and the resistors r1 in figure 7 has to be inserted. an application incorporating this rc element shows figure 8 .
layout and wiring recommendations semiconductor group 178 figure 7 interfacing electret microphones with bias from v ref the solutions for connecting microphones shown in figure 6 and 7 contain a minimum of components to explain the principle. a solution that comes closer to a real application can be seen in figure 8 . the microphone is biased from the v ref pin. figure 8 example for a real application with the help of r3/c3 a well defined input impedance is achieved. if r2 is inserted, a high frequency cut-off can be realized. the 1 k/10 m f combination is used to filter the reference voltage (improved idle channel noise with ami > 30 db).
layout and wiring recommendations semiconductor group 179 3.3 the single ended input mi3 the single ended input mi3 behaves like one of the differential input pins, in case of one input of the differential inputs is tied to v ref . therefore the application examples in figure 9 introduces no new ideas. an electret microphone can be biased from v dd ( figure 9a ) or from the v ref pin ( figure 9b ). any symmetric signal source with no reference to ground should be connected between the mi3 pin and the v ref pin ( figure 9c ). often mi3 is used as a additional input e.g. for separate microphones with their own preamplifiers. such high-level signal sources could be connected to mi3 as shown in figure 9d . in general, if only two inputs are required, it is advisable to use min1/mip1 and min2/mip2 for this purpose. they exhibit a slightly better performance because of their differential nature. unused inputs can be left open or tied to v ref . figure 9 using the single ended input mi3
((180)) vakat
arcofi ? -sp telephone board v1.0 sipb 5132-sp
- vakatseite -
semiconductor group 183 contents page arcofi ? -sp telephone board v1.0 sipb 5132-sp 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 3 use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5 4 circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 4.0.1 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 87 4.0.2 hook switch logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 4.0.3 dtmf-generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 4.0.4 arcofi ? -sp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 4.0.5 leds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 4.0.6 connector pin-outs of the service access connector . . . . . . . . . . . . . . . . . . . . . . . . 189 4.0.7 wiring diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 90 4.0.8 list of replaceable parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 4.0.9 floor plan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 5 operational information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 5.0.1 settings of switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 5.0.2 settings of jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 5.0.3 programming the peripheral control interface (pci) . . . . . . . . . . . . . . . . . . . . . . . . . 195 5.0.4 te-mode configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 5.0.5 nt-s configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 5.0.6 ac/dc-characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 6 glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 7 menu software track files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 7.0.1 track file hs_s02_i.te . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 7.0.2 track file hs_s02_s.te . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 7.0.3 track file sp_s02_s.te . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 7.0.4 track file hs_s0_s.nts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
sipb 5132-sp semiconductor group 184 1 introduction the arcofi-sp telephone board sipb 5132-sp v1.0 is part of a demonstration example of the siemens pc-user board system sipb to offer a complete solution for a digital telephone in the isdn-world of tomorrow. it represents the interface between the audio world C consisting of analog transducers and amplifiers C and the digital world of pcm-coded transmission. the kernel component of this board, the arcofi-sp psb 2165, realizes all basic features like dialing, ringing and voice transfer. furthermore, thanks to a strictly applied digital technique, on the same single chip full speakerphone feature without any additional external components are already exhibited; all the required hardware and software has been implemented. thus besides of working on a single 5-v power supply, using the arcofi-sp psb 2165 considerably eases the realization of modern comfort telephones.
sipb 5132-sp semiconductor group 185 2 features l arcofi-sp psb 2165, delivering the following features on-chip: C a/d-conversion and filtering C programmable analog front end C digital speakerphone support C dtmf-generator C ringing generators C comfortable peripheral control interface l dtmf-generation by the dual-tone multi-frequency generator psb 8593 for scanning the 12 + 1 keys keyboard l detection of hook switch changes by monoflops 74 ls 221 in order to transmit a dtmf-signal that normally starts procedures like activating the line l iom-2/sld-interface to audio interface module v2.0 and up sipb 5130 3 use the arcofi-sp telephone board was originally conceived to be used at the terminal side of the user board system (te-configuration). nevertheless it can also serve as the analogue front end in the nt-s configuration due to the flexible concept of the sipb-system. thus the practical use of this arcofi-sp telephone board sipb 5132-sp is identical to that of the analogue telephone. the arcofi-sp telephone board is always connected to the audio interface module via the iom-2- or sld-interface. figure 1 shows how and in what combination it is connected via flat cable to the mainboard.
sipb 5132-sp semiconductor group 186 figure 1 examples of te- and nt-s-configurations in the user board concept
sipb 5132-sp semiconductor group 187 4 circuitry 4.1 block diagram the block diagram of figure 2 below shows the main components of the arcofi-sp telephone board. the whole circuitry can be divided into three blocks: 1. hook switch logic 2. key-pad and dtmf-generation 3. arcofi sp psb 2165 figure 2 block diagram of arcofi ? -sp telephone board
sipb 5132-sp semiconductor group 188 4.1.1 hook switch logic the hook switch logic provides two features: l signaling the state of the hook switch via pin 2 (sd) of the arcofi-sp and l signaling a change of the hook switch position. for a standard terminal application the first information is sufficient because the state is transparent in the registers cir1 in iom-2-mode or in sscr in sld-mode respectively. in the siemens isdn pc-userboard concept, however, the firmware needs an additional information about a change of the hook switch position. this information is gained from a monoflop and an or-gate. every change of the hook switch short-circuits a pair of pins of the dtmf-generator, so that a pair of frequencies is transmitted to the dtmf-receiver of the audio interface module sipb 5130 ("relative detection" of the hook switch) in order to activate/deactivate the line and power-up/power-down the arcofi-sp. 4.1.2 dtmf-generator according to the key pressed, for each of the 12+1 push buttons on the single-contact keyboard the dual-tone multi-frequency generator ic1 (psb 8593) generates pairs of frequencies. these are specified by ccitt and are derived from a standard tv-crystal (3.58 mhz). the frequencies are sent to the dtmf-receiver of the audio interface module. 4.1.3 arcofi ? -sp the audio ringing codec filter arcofi-sp (psb 2165), the heart of the telephone board, provides all necessary functions to convert analog signals into pcm-coded signals and vice versa. in addition the highly sophisticated speakerphone feature is implemented into the same chip. setting gains and filter coefficients in receive and transmit direction, generating dtmf- and ringing signals, amplifying the analog paths are all done by programming the device. a basic program is shown in section 7. for more details on the arcofi-sp circuit and its programming structure refer to the corresponding data sheet and description. transmission of pcm-coded signals is done either via lom-2 bus or sld-bus: using the iom-2 bus two data lines are necessary: du (data upstream) to send data from arcofi-sp to layer 1, and dd (data downstream) to carry back data from layer 1 to the arcofi-sp. while du is physically equal to the sld-line (pin 7 of arcofi-sp), dd is realized with the line between pin 4 of the sac-plug and pin 6 of arcofi-sp. using the sld-bus the digital words are received/transmitted on the bidirectional sld-line (serial line data) at pin 7 (sip) of the arcofi-sp and led to pin 8 at the sac-plug of the telephone board. 4.1.4 leds above the 12+1 keys keyboard of the arcofi-sp telephone board there are four leds to indicate operational states. they are connected to the peripheral control interface (pci) of the arcofi-sp. the left-most of these is to signal the state of the hook switch (sd). it lights up in off-hook position. the remaining ones are for free use (see also section 5.3 ).
sipb 5132-sp semiconductor group 189 4.2 connector pin-outs of the service access connector figure 3 pin-outs of the service access connector sac pin function 1 power supply + 5 v 2 ground gnd 3 n. c. 4 dd (data downstream) 5 ringing 6 clk (512 khz) /dcl (1.536 mhz) 7 fsc (8 khz) 8 sip/du (data upstream) 9 reset
sipb 5132-sp semiconductor group 190 4.3 wiring diagram figure 4a wiring diagram of the arcofi ? -sp telephone board
sipb 5132-sp semiconductor group 191 figure 4b wiring diagram of the arcofi ? -sp telephone board
sipb 5132-sp semiconductor group 192 4.4 list of replaceable parts component outline type / value ic1 p-dip-20 psb 8593 ic2 p-dip-16 74ls221 ic3 p-dip-28 psb2165 ic4 p-dip-14 74ls32 (ic5 p-dip-8 ne5532) t1 t5 to92 bss89 d1 d4 v300 hlmp1340 q1 hc18 3.579545 mhz r 1 470 w r 2 , r 3 , r 5 15 k w r 4 56 k w r 6 , r 7 100 k w r 8 , r 9 75 w r 10 , r 12 4.7 k w r 11 , r 13 1.5 k w rp 1 7 2.7 k w rp 2 4 470 w p1 r 727 22 k w c 1 , c 2 10 m f c 3 100 m f c 4 , c 5 1 m f c 6 1 nf c 7 10 m f c 8 , c 10 1 m f c 9 , c 11 100 nf c 12 , c 13 10 nf c 14 , c 19 2.2 nf c 15 , c 18 220 nf c 16 , c 17 3.3 nf c 20 100 nf
sipb 5132-sp semiconductor group 193 4.5 floor plan figure 5 floor plan of the arcofi ? -sp telephone board
sipb 5132-sp semiconductor group 194 5 operational information all information about installing the telephone board, programming the arcofi-sp and the other modules of the set-up in the various configurations is described in this section. the arcofi-sp telephone board can be used in two different modes: l terminal equipment te-mode l network termination simulator nt-s-mode configuring the board for a particular mode of operation is done partly by setting switches, and partly by software programming. for the peculiar menu software track files see section 7. by setting jumpers accordingly, amplifiers can be inserted in the analog tx-transmission paths. 5.1 settings of switches two switches are used to configure the arcofi-sp telephone board for a desired mode of operation. settings are made before power is applied to the board. in figure 6 the positions of switches and their particular functions are depicted. figure 6 switches of the arcofi ? -sp telephone board switches functions sw1 selects the sld- or iom-2(te)-mode in the arcofi-sp sw2 selects the arcofi-sp iom-2-address, either ad1 or ad2 sw3 hook switch
sipb 5132-sp semiconductor group 195 5.2 settings of jumpers two fields of four jumpers each are provided for inserting an op-amplifier stage into each of the analog transmit paths if the twin-amplifier ic 5 (ne 5532) is inserted. j1 connects the first amplifier of ic 5 to the handset microphone path while j2 inserts the second one into the speakerphone path. figure 7 settings of jumpers j1 and j2 left: the op-amp is bypassed. right: the op-amp is inserted into the particular tx-path. attention: before starting the initialization procedure with the menu software, please recheck the configuration and switches on the modules to succeed in programming. verify that the arcofi-sp telephone board is always connected to that service access connector that leads to the audio interface module. 5.3 programming the peripheral control interface (pci) according to the hardware configuration of the pci the configuration register dficr has to be programmed by dficr = 8 h so that the hook switch detection (sd) is an input while the other three ones (sa, sb, sc) are outputs. the pci is controlled via cir1/cix1 in iom-2-mode or via sscr/sscx in sld-mode.
sipb 5132-sp semiconductor group 196 5.4 te-mode configuration in the te-configuration two serial interface modes C iom-2 (te) or sld C can be used (refer to section 4.1.3). the configuration described supports both serial interfaces. just the settings of the dlp-switches select between iom-2 (te) C or sld-mode. required hardware: l a pc-mainboard sipb 5000 l an audio interface module v2.0 and up sipb 5130 iom-2: dlp-switches 1 and 2 on, others off sld: dlp-switch 1 on, others off l any layer-1 and link layer-2 modules for example: s-access module v2.1 sipb 5100 iom-2: dlp-switch 4 on, others off sld: all dlp-switches off for initializing this configuration the track files hs_s02_i.te (lom-2-mode) or hs_s02_s.te (sld- mode) can be used. these two track files are listed in section 7. instead of using the s-access module sipb 5100 any other layer-1 and link layer-2 modules can be used too; if true please verify whether these modules support the serial interface mode. 5.5 nt-s configuration in the nt-s configuration only the sld-mode is defined. the hardware consists of: l a pc-mainboard slpb 5000 l an audio interface module v2.0 and up sipb 5130 l a timing module sipb 5310 l any layer-1 and link layer-2 modules for example: s-access module v2.1 sipb 5100 sld: dlp-switch 1 on, others off the track file hs_s0_s.nts sets up this configuration (see section 7). also in this mode, the s-access module sipb 5100 can be replaced by any layer-1 and link layer- 2 modules. please note, that in nt-s-configuration no iom-2 (te)-interface mode is defined.
sipb 5132-sp semiconductor group 197 5.6 ac/dc-characteristics the complete arcofi-sp telephone board works on a single + 5 v supply. a few layout hints may be given which are important for a noiseless voice transmission (additional hints may be found in a separate application note): l provide a large ground (gnd) area underneath the arcofi-sp psb 2165 where digital ground v ssd and analog grounds v ssa and v ssp are connected. l insert ceramic blocking capacitors at the entry of the telephone board and right next to the power pins of the arcofi-sp. l use sufficient large wire diameters and efficient isolation with the flat cable, which connects the arcofi-sp telephone board with the audio interface module. l separate digital blocks from analog circuitry. warning: cmos-lcs are very sensitive to electrostatic discharge. never pull out the sac-plug at the telephone board before having switched off the power supply.
sipb 5132-sp semiconductor group 198 6 glossary arcofi-sp audio ringing codec filter with speakerphone ccitt comit consultatif international tlgraphe et tlphone dc direct current dd data downstream dtmf dual-tone multi-frequency du data upstream ic integrated circuit iom isdn-oriented modular isdn integrated services digital network nt-s network termination simulator pc personal computer pci peripheral control interface pcm pulse code modulation pic pc-interface connector sac service access connector sip serial interface port sipb siemens isdn pc-user board system sld subscriber line digital te terminal equipment
sipb 5132-sp semiconductor group 199 7 menu software track files 7.1 track file hs_s02_i.te c ********************************************************************** c ********************************************************************** c* c * track file hs_s02_i.te c* c * programming the arcofi-sp via iom2 in handset mode and additionally c * activating the s0-interface c* c ********************************************************************** c ---------------------------------------------------------------------- c isac-s in iom2 mode c ---------------------------------------------------------------------- w /s02te/isac_s/serial/adf2 80 w /s02te/isac_s/serial/spcr 80 r /s02te/isac_s/hdlc/star 4a r /s02te/isac_s/hdlc/star 4a r /s02te/isac_s/hdlc/star 4a c ---------------------------------------------------------------------- c activation of the s0-interface c ---------------------------------------------------------------------- w /s02te/isac_s/serial/cix0 60 r /s02te/isac_s/serial/cir0 30 r /s02te/isac_s/serial/cir0 30 w /s02te/isac_s/serial/spcr 05 r /s02te/isac_s/serial/spcr 05 c ---------------------------------------------------------------------- c iom2-identification of arcofi-sp c ---------------------------------------------------------------------- w /s02te/isac_s/serial/mocr a0 r /s02te/isac_s/serial/mosr 00 w /s02te/isac_s/serial/mox1 a0 w /s02te/isac_s/serial/mocr b0 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 00 r /s02te/isac_s/serial/mosr a0 r /s02te/isac_s/serial/mor1 a0 w /s02te/isac_s/serial/mocr f0 r /s02te/isac_s/serial/mosr 80 r /s02te/isac_s/serial/mor1 82 r /s02te/isac_s/serial/mosr 40 w /s02te/isac_s/serial/mocr a0 r /s02te/isac_s/serial/mosr 00
sipb 5132-sp semiconductor group 200 c ---------------------------------------------------------------------- c programming the arcofi-sp in handset mode c ---------------------------------------------------------------------- r /s02te/isac_s/serial/mosr 00 w /s02te/isac_s/serial/mox1 a1 w /s02te/isac_s/serial/mocr b0 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 1f r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 00 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 30 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 50 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 00 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 80 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 20 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 82 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 1b r /s02te/isac_s/serial/mosr 20 c ---------------------------------------------------------------------- c cop_7: gzl=-00, gzh=-16db c ---------------------------------------------------------------------- w /s02te/isac_s/serial/mox1 27 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 97 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 12 r /s02te/isac_s/serial/mosr 20 c ---------------------------------------------------------------------- c powering up the arcofi-sp c ---------------------------------------------------------------------- w /s02te/isac_s/serial/mox1 10 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 1e r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mocr a0 r /s02te/isac_s/serial/mosr 00 w /s02te/isac_s/serial/cix1 20
sipb 5132-sp semiconductor group 201 c ---------------------------------------------------------------------- c read out cr: 00, 30, 50, 00 c 80, 20, 82, 1e c ---------------------------------------------------------------------- w /s02te/isac_s/serial/mox1 a1 w /s02te/isac_s/serial/mocr b0 r /s02te/isac_s/serial/mosr 20 w /s02te/isac_s/serial/mox1 9f r /s02te/isac_s/serial/mosr a0 r /s02te/isac_s/serial/mor1 a1 w /s02te/isac_s/serial/mocr f0 r /s02te/isac_s/serial/mosr 80 r /s02te/isac_s/serial/mor1 00 r /s02te/isac_s/serial/mosr 80 r /s02te/isac_s/serial/mor1 30 r /s02te/isac_s/serial/mosr 80 r /s02te/isac_s/serial/mor1 50 r /s02te/isac_s/serial/mosr 80 r /s02te/isac_s/serial/mor1 00 r /s02te/isac_s/serial/mosr 80 r /s02te/isac_s/serial/mor1 80 r /s02te/isac_s/serial/mosr 80 r /s02te/isac_s/serial/mor1 20 r /s02te/isac_s/serial/mosr 80 r /s02te/isac_s/serial/mor1 82 r /s02te/isac_s/serial/mosr 80 r /s02te/isac_s/serial/mor1 1e r /s02te/isac_s/serial/mosr 40 w /s02te/isac_s/serial/mocr a0 r /s02te/isac_s/serial/mosr 00 c ********************************************************************** c* c * end of track file c* c ********************************************************************** c **********************************************************************
sipb 5132-sp semiconductor group 202 7.2 track file hs_s02_s.te c ********************************************************************** c ********************************************************************** c* c * track file hs_s02_s.te c* c * programming the arcofi-sp via sld in handset mode and c * additionally activating the s0 - interface c* c ********************************************************************** c ********************************************************************** c c ---------------------------------------------------------------------- c activation of the s0-interface c ---------------------------------------------------------------------- w /s02te/isac_s/serial/cix0 60 r /s02te/isac_s/serial/cir0 30 r /s02te/isac_s/serial/cir0 30 w /s02te/isac_s/serial/spcr 45 r /s02te/isac_s/serial/spcr 45 c ---------------------------------------------------------------------- c programming the arcofi-sp in handset mode c ---------------------------------------------------------------------- b 1f b 00 b 30 b 50 b 00 b 80 b e0 b 82 b 1a x /s02te/isac_s/bus/contr c ---------------------------------------------------------------------- c cop_5: gx= 00db c ---------------------------------------------------------------------- d b 25 b a0 b 01 x /s02te/isac_s/bus/contr
sipb 5132-sp semiconductor group 203 c ---------------------------------------------------------------------- c cop_6: grl= 00db, grh= 00db c ---------------------------------------------------------------------- d b 26 b a0 b 01 b a0 b 01 x /s02te/isac_s/bus/contr c ---------------------------------------------------------------------- c cop_7: gzl=C54db, gzh=C16db c ---------------------------------------------------------------------- d b 27 b 97 b 12 x /s02te/isac_s/bus/contr c ---------------------------------------------------------------------- c powering up the arcofi-sp c ---------------------------------------------------------------------- d b 10 b 1e x /s02te/isac_s/bus/contr w /s02te/isac_s/serial/sscx 20 c ---------------------------------------------------------------------- c read out cr: 00, 30, 50, 00 c 80, e0, 82, 1e c ---------------------------------------------------------------------- r /s02te/isac_s/bus/contr 9f 08 a 0030 5000 80e0 821e c c ********************************************************************** c ********************************************************************** c* c * end of track file c* c ********************************************************************** c **********************************************************************
sipb 5132-sp semiconductor group 204 7.3 track file sp_s02_s.te c ********************************************************************** c ********************************************************************** c* c * track file sp_s02_s.te c* c * programming the arcofi-sp via sld in speakerphone mode and c * additionally activating the s0 - interface c* c ********************************************************************** c ********************************************************************** c c ---------------------------------------------------------------------- c activation of the s0-interface c ---------------------------------------------------------------------- w /s02te/isac_s/serial/cix0 60 r /s02te/isac_s/serial/cir0 30 r /s02te/isac_s/serial/cir0 30 w /s02te/isac_s/serial/spcr 45 r /s02te/isac_s/serial/spcr 45 c ---------------------------------------------------------------------- c programming the arcofi-sp in speakerphone mode c ---------------------------------------------------------------------- d b 1f b 00 b 02 b 62 b 00 b 80 b 00 b 83 b ba x /s02te/isac_s/bus/contr
sipb 5132-sp semiconductor group 205 c ---------------------------------------------------------------------- c cop_b: sdx c ---------------------------------------------------------------------- d b 2b b e1 b 34 b d3 b 75 b 26 b f2 b 20 b 44 x /s02te/isac_s/bus/contr c ---------------------------------------------------------------------- c cop_c: sdr c ---------------------------------------------------------------------- d b 2c b e1 b 34b d3 b 00 b 26 b f2 b 20 b 44 c ---------------------------------------------------------------------- c cop_d: attenuation control c ---------------------------------------------------------------------- d b 2d b 35 b 2b b 04 b ff x /s02te/isac_s/bus/contr w /s02te/isac_s/serial/sscx 10 c ---------------------------------------------------------------------- c cop_e: agcx c ---------------------------------------------------------------------- d b 2e b 14 b 13 b 15 b 80
sipb 5132-sp semiconductor group 206 c ---------------------------------------------------------------------- c cop_f: lga c ---------------------------------------------------------------------- d b 2f b 90 b 00 b 00 b 00 x /s02te/isac_s/bus/contr c ---------------------------------------------------------------------- c powering up the arcofi-sp c ---------------------------------------------------------------------- d b 10 b be x /s02te/isac_s/bus/contr c ---------------------------------------------------------------------- c read out cr: 00, 02, 62, 00 c 80, 00, 83, be c ---------------------------------------------------------------------- r /s02te/isac_s/bus/contr 9f 08 a 0002 6200 8000 83be c c ********************************************************************** c ********************************************************************** c* c * end of track file c* c ********************************************************************** c **********************************************************************
sipb 5132-sp semiconductor group 207 7.4 track file hs_s0_s.nts c ********************************************************************** c ********************************************************************** c* c * track file hs_s0_s.nts c* c * programming the arcofi-sp via sld in handset mode and c * additionally activating the s0 - interface c* c ********************************************************************** c ********************************************************************** c c ---------------------------------------------------------------------- c activation of the s0-interface c ---------------------------------------------------------------------- w /s02nts/isac_s/serial/cix0 60 r /s02nts/isac_s/serial/cir0 30 r /s02nts/isac_s/serial/cir0 30 w /s02nts/isac_s/serial/spcr 45 r /s02nts/isac_s/serial/spcr 45 c ---------------------------------------------------------------------- c programming the arcofi-sp in handset mode c ---------------------------------------------------------------------- d b 1f b 00 b 30 b 50 b 00 b 80 b e0 b 82 b 1a x /s02nts/isac_s/bus/contr c ---------------------------------------------------------------------- c cop_5: gx= 00db c ---------------------------------------------------------------------- b a0 b 01 x /s02nts/isac_s/bus/contr
sipb 5132-sp semiconductor group 208 c ---------------------------------------------------------------------- c cop_6: grl= 00db, grh= 00db c ---------------------------------------------------------------------- d b 26 b a0 b 01 b a0 b 01 x /s02nts/isac_s/bus/contr c ---------------------------------------------------------------------- c cop_7: gzl=-54db, gzh=-16db c ---------------------------------------------------------------------- d b 27 b 97 b 12 x /s02nts/isac_s/bus/contr c ---------------------------------------------------------------------- c powering up the arcofi-sp c ---------------------------------------------------------------------- d b 10 b 1e b /s02nts/isac_s/bus/contr b /s02te/isac_s/serial/sscx 20 c ---------------------------------------------------------------------- c read out cr: 00, 30, 50, 00 c 80, e0, 82, 1e c ---------------------------------------------------------------------- r /s02nts/isac_s/bus/contr 9f 08 a 0030 5000 80e0 821e c c ********************************************************************** c ********************************************************************** c* c * end of track file c* c ********************************************************************** c **********************************************************************
using the sipb 5132-sp telephone with the psb 2163
((210)) vakat
psb 2163 table of contents page semiconductor group 211 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 2 using the sipb 5132-sp telephone with the psb 2163 in iom-2 te mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 3 using the sipb 5132-sp telephone with the psb 2163 in iom-2 non-te mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
psb 2163 semiconductor group 212 1 introduction about this application note the sipb 5132-sp telephone 1) is a telephone for evaluation purposes, showing all features of the arcofi-sp psb 2165 and psb 2163. this telephone is equipped with the arcofi-sp psb 2165 and the explanations given in the documentation of the sipb 5132-sp telephone are related to the psb 2165. with the psb 2163 a pin compatible device is available, which offers a completely new speakerphone support. the speakerphone implementation of the psb 2163 has superior performance and enables the telephone user to have very comfortable speakerphone to speakerphone discussions. the sipb 5132-sp telephone can be used with both ics, with the psb 2165 (with which it comes along) and with the psb 2163 (which can be build into the telephone). this document describes how to replace the psb 2165 with the psb 2163. this is not an instruction that stipulates each step that must be taken, this is rather an explanation of the things to be taken into account when replacing the psb 2165 with the psb 2163. differences between psb 2165 and psb 2163 concerning the sipb 5132-sp telephone for a detailed description of the two ics, please refer to the users manual of the psb 2165 and the users manual of the psb 2163. this paragraph only gives information about differences that can affect the external hardware circuitry. basically, both arcofi-sps are fully pin compatible and replacing is possible without any difficulties. the interface modes that can be used with the psb 2165 are the iom-2 te interface (1.536 mhz), and the sld interface. together with the psb 2163 and the sipb 5132-sp telephone, the iom-2 te interface can be used as well as the iom-2 non-te interface (4.096 mhz). there is a difference concerning the function of the pci-interface pins (pin sa, sb, sc, sd) between the two arcof-sps; see table 1 for details. 1 ordering code q67100-h6299
psb 2163 semiconductor group 213 a slight change concerns the names of the microphone inputs. although the functionality is the same, the names are different as table 2 shows. table 1 use of the pins sa, sb, sc, sd device interface meaning of pins sa, sb, sc, sd 2165 iom-2 te pci-interface; sa, sb can also be used to connect test leds 2165 sld pci-interface; sa, sb can also be used to connect test leds 2163 iom-2 te pci-interface; (test leds can be connected to the pz1, pz2 pin) 2163 iom-2 non-te sb, sc, sd used for slot select; sa unused ( v ss ); (test leds can be connected to the pz1, pz2 pin) table 2 microphone inputs pin psb 2165 psb 2163 used for (sipb 5132-sp) 8 xinp mip1 not connected 9 xinn min1 not connected 10 min min2 handset microphone 11 mip mip2 12 fhm (single-ended) mi3 (single-ended) hands-free microphone
psb 2163 semiconductor group 214 2 using the sipb 5132-sp telephone with the psb 2163 in iom-2 te mode the basic steps to be performed are quite simple: ? open the telephone case ? replace the psb 2165 with the psb 2163 ? switch the dip-switch according to table 3 ? close the telephone case normally, the psb 2163 is not only used in handset mode but also as a speakerphone, therefore the speakerphone test mode is of interest, which indicates the internal status of the speakerphone with the help of two leds. as table 1 shows, with the psb 2163 this internal status information is outputted at the pz-pins (pin 27, 28). inside the sipb 5132-sp telephone, the piezo-ringer is connected to these pins. with regard to the schematic of the telephone, the following steps have to be performed for a proper connection of the test leds: ? adjust the volume potentiometer for the piezo ringer to the lowest volume or disconnect the piezo ringer (otherwise you hear a "click" each time the leds are turned on or off) ? connect pin 27 (pz2) with the gate of (e.g.) t4 ? connect pin 28 (pz1) with the gate of (e.g.) t5 (see schematic) now the pins sa, sb (pin 5 and 4), which are normally connected to the gates of t4 and t5, must always be programmed as inputs (default) to avoid a short circuit at the pz pins. of course, pin 4 and 5 can also be disconnected. note, that pin sd is used for hook switch detection and therefore t2/d1 should not be used for the test leds. table 3 dip-switch inside the sipb 5132-sp telephone, equipped with the psb 2163 sw1 sw2 mode on on iom-2 te, a-chip on off iom-2 te, b-chip off on iom-2 non-te, a-chip off off iom-2 non-te, b-chip
psb 2163 semiconductor group 215 3 using the sipb 5132-sp telephone with the psb 2163 in iom-2 non-te mode the 4.096 mhz-iom-2 mode offers the possibility to connect the psb 2163 directly to a linecard-module or for measuring purposes. since this iom-2 mode offers eight channels, the pins sb, sc, sd serve as slot-select inputs, as mentioned in table 1 . a useful solution is to connect all slot-select pins to v cc (+ 5 v), thus making the arcofi-sp use channel 7. this is also appropriate for the arcos-sp plus software. in addition to the steps explained in chapter 2 , the best way is to solder pull-up resistors (4k7) at the pins 2, 3, 4 (sb, sc, sd). note, that when using the iom-2 non-te mode the state of the hook switch can not be transmitted in the c/i-channel. the wire between pin 2 (sd) and the hook switch (sw3) must be disconnected. because of the high clock frequency (4 mhz) the flat-band cable between the sipb 5132-sp telephone and the rest of the test equipment should be as short as possible. tests have shown that the sipb 5132-sp with its 1m cable can interface with the sipb 5130 audio-module or the stut 2000 percofi-board without any problems. however, in case of troubleshooting, the length is critical and must be taken into account.
psb 2163 semiconductor group 216 changes for the psb 2163
evaluation board arcofi ? -sp v1.0 sipb 5133-sp
- vakatseite -
semiconductor group 219 evaluation board arcofi ? -sp v1.0 sipb 5133-sp table of contents page 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 3 use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 0 4 circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 4.1 connector pin-outs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 4.1.1 service access connector sac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 4.1.2 audio interface connector aic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 4.1.3 external power supply connector exc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 4.1.4 handset connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 4.2 wiring diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 4.3 list of replaceable parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226 4.4 floor plan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226 5 operational information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 5.1 setting switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 5.2 setting jumper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 5.3 configuring the evaluation board arcofi ? -sp . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 5.3.1 iom-2 te-mode configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228 5.3.2 iom-2 non-te-mode configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228 5.4 ac/dc-characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228 5.5 connectable adapter boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 6 glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 7 menu software track files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 7.1 track file hs_s02_i.te . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 7.2 track file lc_1.iom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 7.3 track file hs_lc.trk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 7.4 track file lc_pcm4.trk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 sipb 5133-sp
sipb 5133-sp semiconductor group 220 1 introduction the development of analog front-ends for voice transmission in isdn-terminals poses enormous efforts to the system houses. the engineers in fulfilling the very strict requirements of the ccitt are to solve these problems partly by experience and partly by following a trial and error procedure. the evaluation board arcofi-sp sipb 5133-sp helps in developing analog front-ends. it offers the possibility to experiment on pure analog transmission parts and to investigate the transmission functions very comfortably in using a pcm4-measuring device by wandel & goltermann. the integration of the evaluation board arcofi-sp into the sipb-system with its peculiar software renders developing and adapting a voice transmission part to simplify connecting a module: no protocols need be taken notice of and no specific adapter circuitries for testing the arcofi-sp are to be developed any longer. 2 features ? comfortable measuring aid for evaluating various transmission functions: ? transfer functions ? gain tracking ? signal / noise ratio ? group delay ? enables testing the proper adaptation via programmed fx- and fr-filters of the arcofi-sp of electro-acoustic transducers ? programmable via iom-2 without need for noticing any protocols ? suitable for iom-2 te mode and iom-2 non te mode ? all analog inputs and outputs and the digital signals sa, sb, sc, sd of the arcofi-sp connected to the audio interface connector (aic) ? power supply (+ 5 v) selectable from the pc or from an external network, programmable via one jumper j1. 3 use the use of the evaluation board arcofi-sp is identical to that of a standard isdn-telephone board. due to the flexible concept of the user board system it can be employed either as an analog front-end or as a measurement front-end in a terminal equipment (te) configuration or in a line-card architecture using the iom-2 non te interface. the evaluation board arcofi-sp is always connected to the audio interface module via the iom- interface. figure 1 shows, how and in what combination it is connected via a flat cable to the mainboard.
sipb 5133-sp semiconductor group 221 figure 1 examples of two terminal configurations in the user board concept
sipb 5133-sp semiconductor group 222 4 circuitry the circuitry of the evaluation board arcofi-sp can be divided into a digital and an analog part. the digital part consists of: ? arcofi-sp ic1 (psb 2163 or psb 2165) the analog part is realized in form of an audio interface connector (aic) where all listed signals are accessible: ? analog inputs: min1, mip1 min2, mip2 mi3 ? analog outputs: hop, hon lsp, lsn ? reference voltage: v ref ? digital signals: sa, sb, sc, sd ? power supply: + 5 v, gnd in addition means for dc blocking is included. by means of the jumper the power supply for the analog front-end can be chosen: + 5 v from the pc or from a separate, external power supply. the push button switch sw3 resets the whole circuitry by resetting the arcofi-sp. the different interface modes and the hardware address can be selected by switches s1 and s2 of sw1 for the arcofi-sp. 4.1 connector pin-outs 4.1.1 service access connector sac figure 2 pin-outs of the service access connector sac
sipb 5133-sp semiconductor group 223 4.1.2 audio interface connector aic figure 3 pin-outs of the audio interface connector aic x = not connected pin function 1 power supply + 5 v 2 gnd 3 n.c. 4dd 5 n.c. 6 dcl (1.536 mhz / 4.096 mhz) 7 fsc (8 khz) 8du 9 reset pin/row a b c 13 14 15 16 17 18 19 20 v ref sd sa + 5 va x + 5 vd gnda x v ref x sb + 5 va x + 5 vd gnda gndd v ref x sc lsp lsn x x gndd
sipb 5133-sp semiconductor group 224 4.1.3 external power supply connector exc figure 4 pin-outs of the external power supply connector st1 4.1.4 handset connector figure 5 handset connector pin function 1 + 5 v 2 gnd 3 gnd 4 x (reserved) pin function 1 mip 2 hop 3 hon 4 min
sipb 5133-sp semiconductor group 225 4.2 wiring diagram figure 6 wiring diagram of the evaluation board arcofi ? -sp
sipb 5133-sp semiconductor group 226 4.3 list of replaceable parts component outline type / value ic1 p-dip-28 f psb 2165 (replacable with psb 2163) r 1 , r 2 rr1 100 k w r 3 rr1 2.7 k w r 4 rr1 4.7 k w r p1 dnet 6 2.7 k w c 1 , c 3 , c 5 , c 7 , c 9 xtant 1 m f/16 v c 2 , c 4 , c 6 , c 8 , c 10 crm 2 + 5 100 nf c 11 x7r 3.3 nf/16 v c 12 mkt 1 m f c 13 xtant 10 m f c 14 crm 2 + 5 100 nf sw1 p-dip-4 switch sw3 switch sac can9 st1 power connector 4.4 floor plan figure 7 floor plan of the evaluation board arcofi ? -sp
sipb 5133-sp semiconductor group 227 5 operational information all information about installing the evaluation board arcofi-sp, programming the arcofi-sp and the other modules of the set-up in various configurations, are described in this chapter. for programming the set-up using the menu software track files see chapter 7 . these configurations can also be programmed by the arcos-sp plus software. for more details on arcos-sp plus refer to arcos-sp plus user manual v 1.0. 5.1 setting switches there are three switches at the evaluation board arcofi-sp. the push button switch sw3 is to reset the whole circuitry by resetting the arcofi-sp. switches s1 and s2 of sw1 select the interface mode (iom-2 te or iom-2 non te) and the hardware address (ad0 or ad1) of the arcofi-sp respectively. the particular settings are depicted in the table below. 5.2 setting jumper one jumper j1 is used to select the power supply: if the power is taken from the pc, jumper j1 is set to position 1-2 (towards sw3). if an external power source is connected via the external power supply connector st1, jumper j1 is set to position 2-3 (towards st1). 5.3 configuring the evaluation board arcofi ? -sp the evaluation board arcofi-sp can be used in two different interface modes: ? iom-2 te; terminal timing (1.536 mhz dcl)) ? iom-2 non te; non terminal timing (4.096 mhz dcl) attention: when using the non terminal timing mode (iom-2 non te) the timeslot must be determined by hardwiring the pins sd, sc, sb (pins 2,3,4). by default, these pins are not connected on the sipb 5133-sp evaluation board. refer to the users manual, chapter 2.3.2 iom-2 frame structure and timing modes for more detailed information. before starting the initialization procedure using the menu software, please recheck the configuration and the jumpers on the modules to succeed in programming. for iom-2 non te mode, one of the eight timeslot has to be set. note that the evaluation board arcofi-sp has always to be connected to that service access connector of the mainboard that leads to the audio interface module ( see also figure 1 ). s1 s2 function on on iom-2 te mode (a-chip) on off iom-2 te mode (b-chip) off on iom-2 non te mode (a-chip) off off iom-2 non te mode (b-chip)
sipb 5133-sp semiconductor group 228 5.3.1 iom-2 te-mode configuration this configuration consists of: ?a pc-mainboard sipb 5000 ?an audio interface module sipb 5130 dip-switches s01, s02 set to on; s03, s04 set to off ?a s-access module sipb 5100 dip-switches s01, s02, s03 set to off; s04 set to on the whole initialization procedure of this configuration is listed in the track file named "hs_s02_i.te" in the appendix. 5.3.2 iom-2 non-te-mode configuration this mode needs: ?a pc-mainboard sipb 5000 ?an audio interface module sipb 5130 ?a linecard module sipb 5121 ?a s-access module sipb 5100 dlp-switch s02 is set to on, others off (open); to set this configuration two track files have to be used. the file lc_1.iom provides a general setup for the epic on the linecard-module and must be run first. afterwards either hs_lc.trk can be used to program the handset mode or lc_pcm4.trk to prepare measurements with the pcm4 measurement device from wandel&goltermann. note, that due to the high transmission frequency on the iom-2 non te bus, the length of the flat band cable between the audio interface module and the evaluation board is critical and should not exceed 0.5 meters. 5.4 ac/dc-characteristics important for a noiseless voice transmission and ideal test results are: ? a big ground area underneath the arcofi-sp, where digital ground gndd and analog ground gnda are connected. ? blocking capacitors at every ic and at the entry of the evaluation board. ? the flat cable, which connects the arcofi-sp evaluation board with the audio interface module, has to be of a big cross section and of a good isolation. ? the analog signal lines on the adapter boards should be well screened. attention: cmos-lcs are very sensible on electrostatic discharge. never pull out the sac-plug at the arcofi-sp evaluation board before switching off the power supply.
sipb 5133-sp semiconductor group 229 5.5 connectable adapter boards to the evaluation board arcofi-sp various adapter boards can be connected via the audio interface connector aic. ? in connection with the loudhearing adapter board sipb 5133 lh the evaluation board meets all basic functions for voice transmission. on this board there are four pins for connecting a german type handset, and a special connector for joining a us american type handset. in addition the signals lsn and lsp are accessible for connecting a loudspeaker. 6 glossary aic audio interface connector arcofi audio ringing codec filter dtmf dual tone multi frequency epic extended pcm interface controller peb 2055 exc external power supply connector fhm free hand microphone fr filter in receive direction fx filter in transmit direction gnda ground analog gndd ground digital gnd C 5 va ground for the C 5 v analog voltage gnd + 5 va ground for the + 5 v analog voltage hac hands-free add-on circuit hop, hon handset output positive / negative hs handset iom isdn-oriented modular isdn integrated services digital network lsp, lsn loudspeaker output positive / negative mip, min microphone input positive / negative pcm4 measurement device for pcm channels from wandel&goltermann pic pc-interface connector sac service access connector sipb siemens isdn pc-user board system te terminal equipment xinp, xinn auxiliary input positive / negative va voltage analog vd voltage digital
sipb 5133-sp semiconductor group 230 7 menu software track files 7.1 track file hs_s02_i.te c ********************************************************************** c ********************************************************************** c * c * trackfile hs_s02_i.te c * c * programming the arcofi-sp psb 2163 in handset mode c * and additionally activating the s0 interface c * c * !! cosi /2 must be run before !! c * c ********************************************************************** c ********************************************************************** c c ---------------------------------------------------------------------- c isac-s in iom2 mode c ---------------------------------------------------------------------- c w /s02te/isac_s/serial/adf2 80 w /s02te/isac_s/serial/spcr 80 r /s02te/isac_s/hdlc/star 4a r /s02te/isac_s/hdlc/star 4a r /s02te/isac_s/hdlc/star 4a c c ---------------------------------------------------------------------- c activation of the s0 - interface c ---------------------------------------------------------------------- c w /s02te/isac_s/serial/cix0 60 r /s02te/isac_s/serial/cir0 30 r /s02te/isac_s/serial/cir0 30 w /s02te/isac_s/serial/spcr 05 r /s02te/isac_s/serial/spcr 05 c c ---------------------------------------------------------------------- c iom2 - identification of arcofi-sp c ---------------------------------------------------------------------- c r /s02te/isac_s/bus/mon1 a000 01 a a084 c c ---------------------------------------------------------------------- c programming the arcofi-sp in handset mode c ----------------------------------------------------------------------
sipb 5133-sp semiconductor group 231 d b a11f b 0060 b 4100 b 0020 b f112 x /s02te/isac_s/bus/mon1 c c ---------------------------------------------------------------------- c cop_6: gz=-15db c ---------------------------------------------------------------------- d b a126 b 9932 x /s02te/isac_s/bus/mon1 c c ---------------------------------------------------------------------- c powering up the arcofi-sp c ---------------------------------------------------------------------- d b a131 x /s02te/isac_s/bus/mon1 w /s02te/isac_s/serial/cix1 20 c c ---------------------------------------------------------------------- c read out cr: 00, 60, 41, 00 c 00, 20, f1, 16 c ---------------------------------------------------------------------- c r /s02te/isac_s/bus/mon1 a19f 05 a a100 6041 0000 20f1 16ff c c ********************************************************************** c ********************************************************************** c * c * end of track file c * c ********************************************************************** c **********************************************************************
sipb 5133-sp semiconductor group 232 7.2 track file lc_1.iom c ********************************************************************** c lc_1.iom c ********************************************************************** c c application: initialization of the line card module c for a sicofi2/arcofi-sp measurement c setup: line card module sipb 5121 c c iom2 channel assignement: c * ch0: analog subscriber (sicofi2) c * ch1: analog subscriber (sicofi2) c * ch2: analog subscriber (sicofi2) c * ch3: analog subscriber (sicofi2) c * ch4: analog subscriber (sicofi2) c * ch5: analog subscriber (sicofi2) c * ch6: analog subscriber (sicofi2) c * ch7: analog subscriber (sicofi2) c c interface characteristics: c pcm interface: 2 hws with 32 ts each c cfi interface: 4 hws with 32 ts each c (4 iom2 interfaces) c c configuration of the lc module: c config register bits: c id,cks/tc2/tc1/tc0/dch/dma/cts/res c * clock mode 6 (xtal 4096khz) c * reset of on board devices w /lineca/config/config/config 61 w /lineca/config/config/config 60 c c configuration of the pcm interface: c * pcm mode 0 w /lineca/epic/pcmcfi/pmod 20 w /lineca/epic/pcmcfi/pcsr 11 w /lineca/epic/pcmcfi/pofd f1 w /lineca/epic/pcmcfi/pofu 19 c c configuration of the cfi interface: c * cfi mode 0, clock source: pcl/pfs c * pfs evaluated with falling edge c * prescaler = 1 w /lineca/epic/pcmcfi/cmd1 20 c * fsc output: fc mode 6 c * dcl output: double rate
sipb 5133-sp semiconductor group 233 c * xmit rising, rec falling edge w /lineca/epic/pcmcfi/cmd2 d0 c * cfi bit number is 256 w /lineca/epic/pcmcfi/cbnr ff c * pfs marks cfi ts31,bit1 w /lineca/epic/pcmcfi/ctar 02 c * no shift between xmit and rec w /lineca/epic/pcmcfi/cbsr 00 c * subchannel position:64kbps=bits7.0 c 32kbps=bits7.4 c 16kbps=bits7.6 w /lineca/epic/pcmcfi/cscr 00 c c initialization of cm ctrl field: c * cm reset mode w /lineca/epic/marscr/omdr 00 c * ff is copied to all positions of c * the cm ctrl field w /lineca/epic/marscr/madr ff w /lineca/epic/marscr/macr 70 c c cfi configuration for iom2: c * cm init mode w /lineca/epic/marscr/omdr 80 c c cfi timeslots 2 and 3 of port 0 c are programmed as monitor and c signaling channels (analog iom) c * ts 2 downstream: w /lineca/epic/marscr/madr ff w /lineca/epic/marscr/maar 08 w /lineca/epic/marscr/macr 7a c * ts 3 downstream: w /lineca/epic/marscr/maar 09 w /lineca/epic/marscr/macr 7b c * ts 2 upstream: w /lineca/epic/marscr/maar 88 w /lineca/epic/marscr/macr 7a c * ts 3 upstream: w /lineca/epic/marscr/maar 89 w /lineca/epic/marscr/macr 7a c c cfi timeslots 6 and 7 of port 0 c are programmed as monitor and c signaling channels (analog iom) c * ts 6 downstream: w /lineca/epic/marscr/madr ff
sipb 5133-sp semiconductor group 234 w /lineca/epic/marscr/maar 18 w /lineca/epic/marscr/macr 7a c * ts 7 downstream: w /lineca/epic/marscr/maar 19 w /lineca/epic/marscr/macr 7b c * ts 6 upstream: w /lineca/epic/marscr/maar 98 w /lineca/epic/marscr/macr 7a c * ts 7 upstream: w /lineca/epic/marscr/maar 99 w /lineca/epic/marscr/macr 7a c c cfi timeslots 10 and 11 of port 0 c are programmed as monitor and c signaling channels (analog iom) c * ts 10 downstream: w /lineca/epic/marscr/madr ff w /lineca/epic/marscr/maar 28 w /lineca/epic/marscr/macr 7a c * ts 11 downstream: w /lineca/epic/marscr/maar 29 w /lineca/epic/marscr/macr 7b c * ts 10 upstream: w /lineca/epic/marscr/maar a8 w /lineca/epic/marscr/macr 7a c * ts 11 upstream: w /lineca/epic/marscr/maar a9 w /lineca/epic/marscr/macr 7a c cfi timeslots 14 and 15 of port 0 c are programmed as monitor and c signaling channels (analog iom) c * ts 14 downstream: w /lineca/epic/marscr/madr ff w /lineca/epic/marscr/maar 38 w /lineca/epic/marscr/macr 7a c * ts 15 downstream: w /lineca/epic/marscr/maar 39 w /lineca/epic/marscr/macr 7b c * ts 14 upstream: w /lineca/epic/marscr/maar b8 w /lineca/epic/marscr/macr 7a c * ts 15 upstream: w /lineca/epic/marscr/maar b9 w /lineca/epic/marscr/macr 7a c cfi timeslots 18 and 19 of port 0 c are programmed as monitor and c signaling channels (analog iom)
sipb 5133-sp semiconductor group 235 c * ts 18 downstream: w /lineca/epic/marscr/madr ff w /lineca/epic/marscr/maar 48 w /lineca/epic/marscr/macr 7a c * ts 19 downstream: w /lineca/epic/marscr/maar 49 w /lineca/epic/marscr/macr 7b c * ts 18 upstream: w /lineca/epic/marscr/maar c8 w /lineca/epic/marscr/macr 7a c * ts 19 upstream: w /lineca/epic/marscr/maar c9 w /lineca/epic/marscr/macr 7a c cfi timeslots 22 and 23 of port 0 c are programmed as monitor and c signaling channels (analog iom) c * ts 22 downstream: w /lineca/epic/marscr/madr ff w /lineca/epic/marscr/maar 58 w /lineca/epic/marscr/macr 7a c * ts 23 downstream: w /lineca/epic/marscr/maar 59 w /lineca/epic/marscr/macr 7b c * ts 22 upstream: w /lineca/epic/marscr/maar d8 w /lineca/epic/marscr/macr 7a c * ts 23 upstream: w /lineca/epic/marscr/maar d9 w /lineca/epic/marscr/macr 7a c cfi timeslots 26 and 27 of port 0 c are programmed as monitor and c signaling channels (analog iom) c * ts 26 downstream: w /lineca/epic/marscr/madr ff w /lineca/epic/marscr/maar 68 w /lineca/epic/marscr/macr 7a c * ts 27 downstream: w /lineca/epic/marscr/maar 69 w /lineca/epic/marscr/macr 7b c * ts 26 upstream: w /lineca/epic/marscr/maar e8 w /lineca/epic/marscr/macr 7a c * ts 27 upstream: w /lineca/epic/marscr/maar e9 w /lineca/epic/marscr/macr 7a c cfi timeslots 30 and 31 of port 0 c are programmed as monitor and
sipb 5133-sp semiconductor group 236 c signaling channels (analog iom) c * ts 30 downstream: w /lineca/epic/marscr/madr ff w /lineca/epic/marscr/maar 78 w /lineca/epic/marscr/macr 7a c * ts 31 downstream: w /lineca/epic/marscr/maar 79 w /lineca/epic/marscr/macr 7b c * ts 30 upstream: w /lineca/epic/marscr/maar f8 w /lineca/epic/marscr/macr 7a c * ts 31 upstream: w /lineca/epic/marscr/maar f9 w /lineca/epic/marscr/macr 7a c * pcm status is r /lineca/epic/marscr/star 05 c * not synchronized (pss=0) c c setting epic to normal mode w /lineca/epic/marscr/omdr c0 r /lineca/epic/marscr/ista 08 r /lineca/epic/marscr/star 25 c pcm status: synchronized (pss=1) c c initialization of the pcm tristate c field, all ch. to high impedance w /lineca/epic/marscr/madr 00 w /lineca/epic/marscr/macr 68 c c activation epic: c * normal mode, pcm and cfi active c * cfi output drivers push-pull c * mf ch. handshake protocol enabled w /lineca/epic/marscr/omdr e6 c c reset cififo: w /lineca/epic/marscr/cmdr 10 c ********************************************************************* c c the line card is now ready for use with the sicofi2 or the arcofi-sp c c now you can run your trackfile with the filter coefficients or c program the arcofi-sp c c ********************************************************************* c end of trackfile c *********************************************************************
sipb 5133-sp semiconductor group 237 7.3 track file hs_lc.trk c ********************************************************************** c ********************************************************************** c c track file hs_lc.trk c c programming the arcofi-sp psb 2163 c via iom-2 non-te in handset mode c c !! trackfile lc_1.iom has to be run before !! c c configuration: c ------------- c linecard sipb 5121 c audio module sipb 5130 c dip-switch 1 on c 2 on c 3 off c 4 on c c ********************************************************************** c ********************************************************************** c c------------------------------------------------------------------- c connecting the linecard to the audio interface module c------------------------------------------------------------------- c w /lineca/config/config/config e0 c c------------------------------------------------------------------- c selecting the timeslot c (depends on the pins sb,sc,sd) c here: slot 7 (all pins to vcc) c c mfsar = 04 => slot 0 c mfsar = 0c => slot 1 c mfsar = 14 => slot 2 c mfsar = 1c => slot 3 c mfsar = 24 => slot 4 c mfsar = 2c => slot 5 c mfsar = 34 => slot 6 c mfsar = 3c => slot 7 c------------------------------------------------------------------- c w /lineca/epic/mchstr/mfsar 3c c
sipb 5133-sp semiconductor group 238 c------------------------------------------------------------------- c arcofi-sp identification c------------------------------------------------------------------- w /lineca/epic/mchstr/cmdr 01 w /lineca/epic/mchstr/mffifo a0 w /lineca/epic/mchstr/mffifo 00 w /lineca/epic/mchstr/cmdr 08 r /lineca/epic/mchstr/ista 20 r /lineca/epic/mchstr/star 26 r /lineca/epic/mchstr/mffifo a0 r /lineca/epic/mchstr/star 26 r /lineca/epic/mchstr/mffifo 84 w /lineca/epic/mchstr/cmdr 01 c c---------------------------------------------------------------------- c cop_6: gz=-15db c------------------------------------------------------------------- w /lineca/epic/mchstr/mffifo a1 w /lineca/epic/mchstr/mffifo 26 w /lineca/epic/mchstr/mffifo 99 w /lineca/epic/mchstr/mffifo 32 w /lineca/epic/mchstr/mffifo 00 w /lineca/epic/mchstr/mffifo 00 w /lineca/epic/mchstr/cmdr 04 w /lineca/epic/mchstr/cmdr 01 c c------------------------------------------------------------------- c sop_f: handset mode c------------------------------------------------------------------- w /lineca/epic/mchstr/mffifo a1 w /lineca/epic/mchstr/mffifo 1f w /lineca/epic/mchstr/mffifo 00 w /lineca/epic/mchstr/mffifo 60 w /lineca/epic/mchstr/mffifo 41 w /lineca/epic/mchstr/mffifo 00 w /lineca/epic/mchstr/mffifo 00 w /lineca/epic/mchstr/mffifo 20 w /lineca/epic/mchstr/mffifo f1 w /lineca/epic/mchstr/mffifo 16 w /lineca/epic/mchstr/cmdr 04 w /lineca/epic/mchstr/cmdr 01 c c********************************************************************** c* c* end of track file c* c **********************************************************************
sipb 5133-sp semiconductor group 239 7.4 track file lc_pcm4.trk c ********************************************************************** c c track file lc_pcm4.trk c c preparing the arcofi-sp psb 2163 for pcm4 measurements c c trackfile lc_1.iom has to c be run before ! c c configuration: c ------------- c linecard sipb 5121 c audio module sipb 5130 c dip-switch 1 on c 2 on c 3 off c 4 on c pcm4 adapter sipb 5311 c jumper open c c ********************************************************************** c c---------------------------------------------------------------------- c connecting the linecard to the audio interface module c---------------------------------------------------------------------- c w /lineca/config/config/config e0 c c---------------------------------------------------------------------- c selecting the timeslot (depends on the pins sb,sc,sd) c here: slot 7 (all pins to vcc) c---------------------------------------------------------------------- c w /lineca/epic/mchstr/mfsar 3c c c---------------------------------------------------------------------- c b-channel switching for the pcm4 adaptor c b1 -> ts1 c b2 -> ts2 c---------------------------------------------------------------------- c w /lineca/epic/marscr/madr 0f w /lineca/epic/marscr/maar 81 w /lineca/epic/marscr/macr 60 c
sipb 5133-sp semiconductor group 240 w /lineca/epic/marscr/madr 0f w /lineca/epic/marscr/maar 88 w /lineca/epic/marscr/macr 60 c w /lineca/epic/marscr/madr 81 w /lineca/epic/marscr/maar f0 w /lineca/epic/marscr/macr 71 c w /lineca/epic/marscr/madr 01 w /lineca/epic/marscr/maar 70 w /lineca/epic/marscr/macr 71 c w /lineca/epic/marscr/madr 88 w /lineca/epic/marscr/maar f1 w /lineca/epic/marscr/macr 71 c w /lineca/epic/marscr/madr 08 w /lineca/epic/marscr/maar 71 w /lineca/epic/marscr/macr 71 c c---------------------------------------------------------------------- c arcofi-sp identification c---------------------------------------------------------------------- c w /lineca/epic/mchstr/cmdr 01 w /lineca/epic/mchstr/mffifo a0 w /lineca/epic/mchstr/mffifo 00 w /lineca/epic/mchstr/cmdr 08 r /lineca/epic/mchstr/ista 20 r /lineca/epic/mchstr/star 26 r /lineca/epic/mchstr/mffifo a0 r /lineca/epic/mchstr/star 26 r /lineca/epic/mchstr/mffifo 84 w /lineca/epic/mchstr/cmdr 01 c c---------------------------------------------------------------------- c insert now the desired programming sequence for the psb 2163 c---------------------------------------------------------------------- c c********************************************************************** c********************************************************************** c* c* end of track file c* c********************************************************************** c**********************************************************************
arcofi ? -sp coefficients software arcos-sp and arcos-sp plus sipo 2163 v1.0
sipo 2163 table of contents page semiconductor group 243 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 1.1 the arcofi ? -sp psb 2163 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 1.2 the arcos-sp plus software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 1.3 system requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 1.4 installation and activation of arcos-sp plus . . . . . . . . . . . . . . . . . . . . 246 2 using arcos-sp plus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 2.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 2.2 the menu line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 2.2.1 using the menu line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 2.2.2 pull-down menu "file" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 2.2.3 pull-down menu "arcofi" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 2.2.4 pull-down menu "show" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 2.2.5 pull-down menu "board" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 2.2.6 pull-down menu "options" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 2.3 the user area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 2.4 the command line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 3 generating the correction filter coefficients . . . . . . . . . . . . . . . . . . . . 259 3.1 filter implementation and theory of calculation . . . . . . . . . . . . . . . . . . . . 259 3.2 calculation of coefficients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260 3.3 reading the fx- and fr-filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 3.4 examples for the usage of the fx/fr filters . . . . . . . . . . . . . . . . . . . . . . . 265 3.4.1 adapting the fx filters to a target frequency response . . . . . . . . . . . . . 265 3.4.2 using the "execute" feature to calculate coefficients . . . . . . . . . . . . . . . 267 4 hardware setup for use with arcos-sp plus . . . . . . . . . . . . . . . . . . 269 4.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 4.2 using the sipb 5000 system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 4.3 other hardware tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 5 error messages and troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . 277 5.1 hardware related problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 5.2 other problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
sipo 2163 semiconductor group 244 1 introduction 1.1 the arcofi ? -sp psb 2163 the psb 2163 provides the subscriber with an optimized audio, ringing, codec, filter processor solution for a digital telephone. the arcofi-sp fulfils all the necessary requirements for a full-featured digital telephone including handsfree operation. the arcofi-sp performs all coding, decoding and filtering according to ccitt and etsi standards. the outstanding advantage of the psb 2163 is the high performance speakerphone implementation with the "stronger-wins algorithm" that allows almost a full duplex conversation. due to the completely digital concept of the circuit no external components are required. the various filters and processing steps of the voice channel including the speakerphone, the signalling, and the tone generation can be adapted to meet the different operating conditions by means of software. also adapting different acoustical transducers to the arcofi-sp is accomplished simply by programming registers and coefficients. therefore evaluating the features and the high performance of the psb 2163 is an easy thing if some software is available to program the chip. an important task of the arcos-sp plus software is to offer an quick and easy way for evaluation. 1.2 the arcos-sp plus software the arcos-sp plus program has been designed to generate all the required coefficients and to program the arcofi-sp in a real environment. besides the software offers an easy way to get familiar with the internal structure of the arcofi-sp because all functional blocks are displayed in a graphic form with many possibilities of interaction (switches, parameters, registers that can be clicked upon). note: the arcos-sp plus software is also available as a demonstration software. the demo-version is called arcos-sp (instead of arcos-sp plus). this users manual describes arcos-sp plus but is also used as a manual for arcos-sp. however, certain commands are not possible with the demo-version and cause an error message ("arcos-sp does not support this command..."). the demonstration software arcos-sp does not support any kind of hardware access. that means, it is neither possible to load or save files nor to access the arcofi-sp with the help of the sipb userboards or any other hardware. because this restriction is easily understood, there will be no further hints throughout this manual that describe, what things can not be done with the demo-version. the calculation of all the coefficients is possible with arcos-sp since this requires no hardware access.
sipo 2163 semiconductor group 245 features of the arcos-sp plus software arcos-sp plus supports the calculation and programming of ? coefficients for the arcofi-sp digital speakerphone ? coefficients for the three arcofi-sp tone generation registers ? coefficients for the arcofi-sp dtmf tone generator registers ? coefficients for both arcofi-sp programmable gain registers gx and gr ? coefficients for the gz side tone gain register ? coefficients for the fx and fr correction filter registers; adaptive software calculates coefficients to fit a target frequency response arcos-sp plus supports also the configuration registers and offers an user-friendly dialogue mode allowing full programming of the arcofi-sp configuration registers and the coefficient ram (cram). other features simplify working with the arcofi-sp: ? access to different kinds of hardware (see chapter 4 for details) ? note and execute (a kind of keyboard macro) ? read arcofi and write arcofi ? support of transmission measurements using the wandel&goltermann pcm4 measuring instrument it is highly recommended to have an psb 2163 users manual at hand when working with the arcos-sp plus software. it is recommended to use the manual as a reference when working with arcos-sp or arcos-sp plus software. on the other hand, not all coefficients are documented in detail in the users manual of the psb 2163 and the arcos-sp plus or the arcos-sp software allow easy determination of all coefficients. 1.3 system requirements an ibm or compatible personal computer (at or better) is required. the computer should have at least 400 kbyte of free conventional dos memory. dos version 3.2 or newer is required. the usage of a mouse as an input device is recommended and offers access to all features of the user area. a mouse driver must be installed before calling the arcos-sp plus software. for hardware access the siemens isdn pc board (sipb) system is required. the sipb family consists of a mainboard (sipb 5000) and a wide variety of modules to realize different applications. the following equipment is needed: ? a mainboard sipb 5000 ? any layer-1 module sipb 511x ? any layer-2 module sipb 512x ? an audio interface module sipb 5130, eprom version 2.0 or newer ? as well as one of the following modules containing the arcofi-sp: ? an arcofi-sp telephone sipb 5132-sp 1) ? an arcofi-sp evaluation board sipb 5133-sp
sipo 2163 semiconductor group 246 the sipb 5133-sp is an arcofi-sp evaluation board used for measurement purposes. the sipb 5132-sp is an arcofi-sp telephone used for demonstration and teaching purposes. the arcos-sp plus software not only supports the sipb 5000 system, but also some evaluation boards that have serial interfaces. these are: ? sipb 8051 isdn telephone and terminal adapter development board, ? sisi 2197 smartlink board, ? stut 2000 percofi-board. the setups for the different kinds of hardware are described in chapter 4 . 1.4 installation and activation of arcos-sp plus installation the following simple procedure is recommended for the installation of arcos-sp plus on a hard-disc: create arcos-sp directory: md c:\arcos-sp change to arcos-sp directory: cd arcos-sp copy arcos-sp files: copy a:*.* c:\arcos-sp\*.* at least the following files should have been copied: ? arc63.exe, the main program (arc63d.exe for the arcos-sp software) ? arc63.tab, data file (arc63d.tab for the arcos-sp software) ? rs232.ini, initialization file for the serial interface ? msherc.com (hercules driver; only necessary if the system is equipped with a hercules monochrome graphics card) the program msherc.com loads a hercules driver resident in the ram. when using a hercules graphics card, this program must be called before starting arcos-sp plus. the file arc63.ini (arc63d.ini) is generated by arcos-sp itself, it is not delivered with the program. 1 these telephones are equipped with an psb 2165 which can be replaced with an psb 2163 (refer to the app. note "using the sipb 5132-sp telephone with the psb 2163")
sipo 2163 semiconductor group 247 starting arcos-sp plus enter the following dos command to start arcos-sp: arc63 [file[.xxx]] [file[.xxx]] is an optional initialization file. the initialization file contains information about the last hardware settings and the options chosen (see chapter 4 ). as default, the file arc63.ini is used as initialization file. please note, that the arcos-sp plus software must be started with a special option when using external hardware which is controlled via the serial interface (command line switch /v; this is described in chapter 4.3 ). after having started arcos-sp plus the following is carried out: ? loading the initialization file, ? loading the coefficient file, ? showing the arcos-sp plus main menu and the siemens label (once a day), ? after a mouse click or carriage return the siemens label will disappear. the next step to be done is either to disable any hardware access or to initialize the hardware.
sipo 2163 semiconductor group 248 2 using arcos-sp plus 2.1 introduction when working with arcos-sp plus the screen is divided into four main areas (please compare with figure 1 ): ? row 1 is reserved for the menu line ? rows 2 to 23 are for the user area ? row 24 contains the command line ? row 25 is the status line. all items that can be activated via the menu line are described in chapter 2.2 . the user area is controlled with a mouse and allows to program the whole arcofi-sp ( chapter 2.3 ). everything that can be done with the mouse in the user area can also be done via the command line using the keyboard. the syntax for the command line can be found in chapter 2.4 . figure 1 arcos-sp plus screen
sipo 2163 semiconductor group 249 2.2 the menu line 2.2.1 using the menu line the menu items can always be activated by pressing either the f10-key or the alt-key in combination with the highlightened letter of the menu item (e.g. "alt+o" for the options menu). of course, clicking with the left mouse button is also possible. the subsequent paragraphs describe each menu item. 2.2.2 pull-down menu "file" "load" the name of the file to be loaded has to be entered in the input field or can be selected in the file list. the command to load a file will be aborted if an incorrect, non-existent file name is entered. both kinds of files: *.arc and *.arb are loadable (refer to the next paragraph). this menu item is used to restore a previously saved set of coefficients. the load command can also be activated by pressing "ctrl+l". "save" the complete programming of the arcofi-sp as well as the state of the arcos-sp plus software can be saved in a file. when saving, a file name and format is asked for. there are two different formats supported by arcos-sp plus. they are an arcos-sp plus specific binary file format and a text format. if no extension is given, the entered name will automatically receive the following one: ? sequence of commands: *.arc (text format) ? state of arcos-sp plus: *.arb (binary format) afterwards the filename is checked for validity. if the file name is not correct, an error message appears and the save command is aborted. the binary format is used to store the device status. since the format is device specific it is not readable by the user. being in binary format, the information exchange between the hard-disc and the arcos-sp plus software is speeded up. the text format takes more time to program a sequence since this format has to be translated to the binary format via the arcos command interpreter before it is sent to the arcofi-sp. the user, however, can read this format, which facilitates programming the arcofi-sp. for documentation purposes the contents of an *.arc file can be used in standard word-processing software. it can even be altered with an ascii-editor and then again be loaded with the load command. the save command can also be activated by pressing "ctrl+s".
sipo 2163 semiconductor group 250 "execute" a file name is asked for and then checked for validity. any file which was previously recorded with the "note" function, may be read and executed. if the file name is invalid or non-existent, an error message is shown and the execute command is aborted. "note" it is possible to record all activities between the arcofi-sp and arcos-sp plus. the feature "note" can be turned on or off to record all actions in a pre-named file. to implement "note" the user has to activate the pull-down menu. when "note" is active, the menu command will have a check mark to the left of it. once active, one has to name the file and give an appropriate extension to it. the file extension depends on what one wants to record, either a sequence of commands or just a line input. ? extension *.arc : arcofi-sp sequence of commands: only arcofi-sp programming ? extension *.ars : arcos-sp plus commands; a record of every key stroke or mouse activity the *.ars file consists of a list of all commands that the user has entered via the arcos-sp plus dialogue mode to program the arcofi-sp. it is possible to read the *.arc file and review what was programmed. the *.ars commands, however, are written in an arcos-sp plus specific program language to program the arcofi-sp. this feature allows to run a test pattern several times without looking at the file, thereby saving time. "dos shell" "dos shell" is provided for calling the operating system. it is possible to toggle back and forth between arcos-sp plus and the dos command level. the following actions are carried out: ? the screen in arcos-sp plus is completely stored as it is, ? the dos operating system is called, ? when returning to arcos-sp plus, the screen reappears just the way it was left before. "exit" to leave the arcos-sp plus program, use the "exit" command or just type a "q" in the command line.
sipo 2163 semiconductor group 251 2.2.3 pull-down menu "arcofi" "read arcofi" the command read arcofi reads the complete device. if the coefficients of the arcos-sp plus software are not identical to the coefficients in the arcofi-sp, the current window as well as the status line are corrected. this command can also be activated by pressing "ctrl+r". "write arcofi" with the write arcofi function the arcos-sp plus software coefficients which are displayed on the screen are written to the arcofi-sp. in general, this is always done automatically by the software, but the write arcofi command allows to write all coefficients at once a second time. this command can also be activated by pressing "ctrl+w". 2.2.4 pull-down menu "show" this feature enables the user to switch between various windows in the user area to show the device parameters that are read from the chip and to manipulate them. the following windows can be displayed (refer to chapter 2.3 ): ? cram (coefficient ram) ? register ? arcofi C afe (analog front end) C adi (arcofi digital interface) C asp (arcofi signal processor) C tone-generator C dtmf-generator C speakerphone C sd-transmit (speech detector) C sd-receive (speech detector) C sc-acoustic (speech comparator for the acoustic echo) C sc-line (speech comparator for the line echo) 2.2.5 pull-down menu "board" this menu serves for changing the configuration of the mainboard, setting the signalling channel and choosing the arcofi-sp device (interface mode and chip address).
sipo 2163 semiconductor group 252 "a-chip/b-chip" these two menu items can only be selected when the iom-2 mode is activated. in this case switching between two devices via software is possible. if the serial interface mode was selected (spi serial programming interface; sci/sdi) this feature is not available. "signalling" this menu listing allows to set the bits in the c/i channel 1. please note, that this menu item is only available in the iom-2 te mode of the arcofi-sp. the setting of the bit cam in the gcr-register influences the bit positions in the signalling window (refer to the arcofi-sp users manual, chapter 3.4.3 ). 2.2.6 pull-down menu "options" a variety of options exists with the arcos-sp plus software. it is possible to set the colors, the sensitivity of the mouse, the beeper (on/off), the tone frequency of the error beep, the double borders for the menu (on/off) and the shadow effect (for the windows). 2.3 the user area working with the user area the user area is the portion of the screen between row 2 and 23 (see figure 2.2 ). in this area different background items can be displayed and manipulated with the mouse. the screen contents of the user area can be chosen either with the menu item "show" from the main menu or simply by clicking at different boxes inside the user area with the left mouse button. being in the user area of arcos-sp plus, only a click with the left button of the mouse will activate the different fields. a field can have three different states: ? on: the border and contents of the field are highlighted ? off: the border and contents of the field are dimly displayed ? error: the border and contents of the field are displayed in red the left and right mouse buttons have different meanings. the left mouse button is used to program a field or used to zoom into another window. a double click with the left button turns a field on/off and at the same time programs the corresponding bit in the configuration register. the right mouse button is used to read a field and to show the coefficients in hexadecimal code, i.e. as they have to be written into the arcofi-sp.
sipo 2163 semiconductor group 253 initializing the hardware before it is possible to work with the user area either the external hardware must be initialized (click at the field "initialize hardware", compare with figure 2.2 ) or it must be disabled (field "disabled"). with a disabled hardware the arcos-sp plus software can be used to evaluate arcofi-sp coefficients without influencing any external hardware containing the arcofi-sp. if the hardware is successfully initialized, any programming action will also concern the arcofi-sp. the hardware is initialized as soon as the initialization field in the arcofi-sp window is clicked upon or when the arcofi-sp is accessed. access takes place either with a "read" command or with a "load" command. in this case the hardware will be programmed completely with the arcos-sp plus conditions displayed on the screen. in chapter 4 a description of the different setups depending on the external hardware can be found. changing registers and coefficients in the user area functions or switches can be activated simply by clicking upon the desired, double framed fields. this is equivalent to the bit combinations in the registers as they can be found in the register window. for example the sidetone gain stage gz can be activated by setting the gz bit in the register window or simply with a double click at the gz box in the user area. another example is the dtmf bit. this bit can be activated with a single click on the dtmf switch in the user area. a coefficient like the sidetone gain coefficient required for gz can be programmed with a single click at the gz box in the user area. as a result, a pop-up window appears which offers all possible values. should the desired value not be shown, one can scroll through the list by clicking upon the small up and down arrows located at the top of the frame surrounding the coefficient values. it is also possible to type in the desired value. the program automatically chooses the closest value available. if the value of the coefficient is unknown, then two question marks will be shown. the entered coefficient must carry the same unit as the main header of the window. these explanations apply to all bits and coefficients. in general, the user area is self- explanatory and can also be used to become familiar with the architecture of the arcofi-sp. however, the generation of coefficients for the fx- and fr-filters is a bit more difficult to understand and will be explained separately in chapter 3 .
sipo 2163 semiconductor group 254 the register window and the cram window for experienced users, the two windows "register" and "cram" offer the possibility to change almost every bit or coefficient of the arcofi-sp with the help of only two different screen masks. everything that can be done in the other windows of the user area can be done with the register and cram window instead. using the right mouse button in the register and cram window shows the complete programming sequence that is required for the actual setting of the arcofi-sp. clicking upon register bits makes them toggle or a pop-up window appears. cram coefficients can also be altered by clicking upon them. a double click at one of the coefficients causes arcos-sp plus to switch to the corresponding window in the user area. for example a double click at the parameter att in the cram window activates the speakerphone window.
sipo 2163 semiconductor group 255 2.4 the command line introduction it is highly recommended to use a mouse to work with the arcos-sp plus software, but it is also possible to enter all inputs via the keyboard. all commands have to be entered in the command line (see figure 12.2 ). this chapter gives a complete description of all inputs that can be done in the command line. the command line is not case sensitive. the f3 key can be used to recall the last command. arcos-sp plus commands show asp | reg [ister] | arcofi | afe | adi | cram | tone [generator]| dtmf [generator] | spe [akerphone] | sdt [ransmit] | sdr [eceive] w [rite] arcofi r [ead] arcofi board { a [-][chip] | b [-][chip]} | { b1 | b2 } | sig [nalling] [] | en [abled] | dis [abled] | init [ialise]} load save note exec [ute] delay


▲Up To Search▲   

 
Price & Availability of PSB2163NV31

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]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X