Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640,
Hi TI,
* Reference code: “C:\ti\simplelink_cc2640r2_sdk_ble_example_pack_1_30_00_27\examples\rtos\CC2640R2RC\bleapps\hid_adv_remote”.
In “simplelink\ble_sdk_2_02_00_31” (for CC2640), we have access to the uncompressed audio data from the digital mic (stored in array ‘tempPcmBuf[]’, below):
[PDMCC26XX.c, Ln#601]:
/* Decimate PDM data to PCM, result is stored in tempPcmBuf */
pdm2pcm16k(bufferRequest.bufferIn, decimationState, object->decimationFilter, (int16_t *)&tempPcmBuf);
But ‘PDMCC26XX.c’ is no longer found in “simplelink_cc2640r2_sdk_ble_example_pack_1_30_00_27” sample code (for CC2640R2F) !
Inside [hid_adv_remote.c] ‘HIDAdvRemote_processPdmData()’ function, we can only get compressed audio data which is stored in ‘bufferRequest.buffer’.
[Q1]: How to get access to the uncompressed audio data (from digital mic) in “simplelink_cc2640r2_sdk_ble_example_pack_1_30_00_27” sample code (for CC2640R2F) ?
The ‘PDMCC26XX_Params’ in the same (above-said) reference code is used to configure Knowles digital mic used in CC2650RC.
If use other type/brand of digital mic, will need to set different setting for gain, filter roll off frequency, etc.
For the digital gain we can use other value than “micGain = PDMCC26XX_GAIN_18”.
[Q2]: Please advise, how to configure the filter roll off frequency ?
Thank you in advance.