Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3998 Datasheet(PDF) 7 Page - STMicroelectronics

Part # AN3998
Description  PDM audio software decoding on STM32 microcontrollers
PDF  10 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3998 Datasheet(HTML) 7 Page - STMicroelectronics

Back Button AN3998 Datasheet HTML 2Page - STMicroelectronics AN3998 Datasheet HTML 3Page - STMicroelectronics AN3998 Datasheet HTML 4Page - STMicroelectronics AN3998 Datasheet HTML 5Page - STMicroelectronics AN3998 Datasheet HTML 6Page - STMicroelectronics AN3998 Datasheet HTML 7Page - STMicroelectronics AN3998 Datasheet HTML 8Page - STMicroelectronics AN3998 Datasheet HTML 9Page - STMicroelectronics AN3998 Datasheet HTML 10Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 7 / 10 page
background image
AN3998
PDM audio software decoding library description
Doc ID 022391 Rev 1
7/10
5
PDM audio software decoding library description
The PDM library is composed of a structure and the implementation of four PDM filter
functions. The library uses two buffers, the PDM Input buffer and the PCM Output buffer; the
application must define these buffers in the main program.
●
Input buffer (data) is a uint8 variable with a length equal to (Output frequency / 1000 *
decimation factor * Input Microphone Channels / 8) at least.
●
Output buffer (dataOut) is a uint16 variable with a length equal to (Output frequency /
1000 * Output Microphone Channels) at least.
The structure is defined in the pdm_filter.h file and is used to configure the filter; it is
composed as follows:
typedef struct {
uint16_t Fs;
float LP_HZ;
float HP_HZ;
uint16_t Out_MicChannels;
char InternalFilter[34];
} PDMFilter_InitStruct;
●
Fs: Defines the frequency output of the filter in Hz.
●
LP_HZ: Defines the low pass filter cut-off frequency. If 0, the low pass filter is disabled.
●
HP_HZ: Defines the high pass filter cut frequency. If 0, the high pass filter is disabled.
●
In_MicChannels: Define the number of microphones in the input stream. This
parameter is used to specify the interlacing of microphones in the input buffer. The
PDM samples are grouped eight by eight in u8 format (8-bit).
●
Out_MicChannels: Defines the number of microphones in the output stream; this
parameter is used to interlace different microphones in the output buffer. Each sample
is a 16-bit value.
●
InternalFilter: Defines a 34 Byte memory used internally by the library during the PDM
decimation step.
The PDM audio software decoding library includes one header file pdm_filter.h and
binary/object codes for the following platforms:
●
libPDMFilter_IAR.a
: for IAR compiler
●
libPDMFilter_Keil.lib
: for ARM compiler
●
libPDMFilter_GCC.a : for GNU compiler
This Library is provided in the "STM32F4-DISCOVERY board firmware package" (V1.10
and later) under the following path 'Utilities\STM32F4-Discovery'
5.1
PDM_Filter_Init
This function is used to initialize the filter of a single output channel. It is defined as follows:
Void PDM_Filter_Init (PDMFilter_InitStruct * Filter)



Html Pages

1 2 3 4 5 6 7 8 9 10


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com