This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-CC2652RB: PDM Stream Example from Audio Plugin

Part Number: LP-CC2652RB

HI TI,

PDM to PCM conversion, TI Team referred audio plugin example (pdmstream). In that Example I need some clarity about output data rate.

we are using ICS-41351 PDM output sensor, there we have 3 power modes.

Our ultimate goal is to achieve the output data rate as 8K & 16K.

But WRT the pdmstream example :

Output Data rate :  Input Clock / Decimation Factor 

As per the pdmstream code the decimation factor they are telling as ( // Must match your custom filter - Must be set to 64 or 128 )

For Example : In order to get 16 KHz ODR

Output Data rate : 1024000 / 64 = 16000 Hz ( Note : Even we verified we are able to achieve )

1. My questions - Is that possible to change the decimation factor value as user need.  ( In order to achieve 16K & 8K in Low power Mode ) / or that should be 64 or 128 ?

For example :

Output Data Rate : 800000 / 50 = 16000 Hz

2. If no that parameter will affect in the audio plugins internal driver functionality and filter part ?

  • Hi,

    1- Yes you can change the decimation value during the life of your application. You will be required to close and re-open the PDM driver to change the decimation factor value. 
    TI filters only allow 64 and 128 as decimation factor. If you want a different value, you have to use the filters provided by PDM_FIR (and available as preview in source\third_party\pdm_fir)

    2- The TI filters are optimized for 1.024MHz clock. Their response might be slightly degraded if used with a different input clock.

    Generally speaking it is important to evaluate the frequency response of your audio system to be sure it meets your goals.

    Let me know if you need further assistance,

    Kind regards,