dsPIC ? DSC Acoustic Echo Cancellation Library User’s Guide
The UART initialization and data processing is performed by the UART1_open()
function. The UART module is configured to generate an interrupt for every byte
transmitted or received. The UART module is run at a baud rate of ~250000 bps, with
an 8-bit, no parity, 1 Stop bit data format (8-N-1). In the UART Transmit and Receive
Interrupt Service Routines (ISR), the corresponding interrupt flag is cleared, data is
either written to U1TXREG, or read from U1RXREG and saved in a circular buffer.
The codec driver is read for a full frame of data. The contents of the coded data buffers
are copied into the nearEndIn array and the EC_apply() function from the AEC
library is called with nearEndIn as the input data frame. The nearEndIn data buffer,
which is also the output of the EC_apply function after it has been executed, is
transferred to the UART for transmission to board 2. The UART data is converted
from μ-Law to 16-bit linear and stored in farEndIn , which is the reference (echo) input
data frame to EC_apply() .
The display on the LCD is made possible by initialization of the SPI module in the
InitSPI function, and LCD driver functions and LCD string definitions present in the
lcd.s and lcd_strings.c files, respectively.
To toggle the acoustic echo cancellation ON or OFF, external interrupts for SW1 are
enabled. In the main loop, the value of applyAEC is read and passed to EC_apply()
as the enable flag. If applyAEC is ‘ 0 ’, the acoustic echo cancellation is still called, but
the input/output buffer is not changed. This enables the acoustic echo cancellation to
maintain adaptation to changes in echo path, while it is not enabled.
DS70134F-page 26
? 2004-2011 Microchip Technology Inc.
相关PDF资料
ACM-16 CABLE MODULE FR3 16BIT 40-DIP
ACM-2X8 ACTIVE CABLE MODULE DUAL 8 BIT
ACM-8 CABLE MODULE FR3 8BIT 28/32-DIP
ACS9510EVB EVALUATION BOARD FOR ACS9510
ACS9550EVB EVALUATION BOARD FOR ACS9550
ACS9593EVB EVALUATION BOARD FOR ACS9593
AD-CCES-CORP-UNL CORP LICENSE FOR CCES UNLIMITED
AD-UCFS-SPRD PRD LIC UCFS CORE CCES 1 PROD
相关代理商/技术参数
AC300031 制造商:Microchip Technology Inc 功能描述:ACOUSTIC ACCESSORY KIT SPEECH RECOGNITION - Boxed Product (Development Kits) 制造商:Microchip Technology Inc 功能描述:SPEECH RECOGNIZE KIT ACOUSTIC
AC3000-52 制造商:GE Energy (formerly Lineage Power) 功能描述:Front-End Power Supply 制造商:Lineage Power 功能描述:Front-End Power Supply
AC3000A 制造商:Black Box Corporation 功能描述:HD VIEW TRANSMITTER
AC3000A-R2 制造商:Black Box Corporation 功能描述:HD VIEW TRANSMITTER
AC3000A-R2-W1 制造商:Black Box Corporation 功能描述:1 YEAR WARRANTY FOR AC3000A-R2
AC3000A-R2-W3 制造商:Black Box Corporation 功能描述:3 YEAR WARRANTY FOR AC3000A-R2
AC3000A-W1 制造商:Black Box Corporation 功能描述:1 year warranty for AC3000A
AC3000A-W3 制造商:Black Box Corporation 功能描述:3 year warranty for AC3000A