Part Number: CC2650
Tool/software: TI-RTOS
Hi,
I would like to inform TI experts that the ADPCM codec provided with TIRTOS for CC2650 (C:\ti\tirtos_cc13xx_cc26xx_2_21_01_08\products\tidrivers_cc13xx_cc26xx_2_21_01_01\packages\ti\drivers\pdm\Codec1.c)
probably contains a bug. The Issue is at line 101 "int16_t difference = audSample - Codec1_pvEnc; ". it should be modified in " int32_t difference = (int32_t)audSample - (int32_t)Codec1_pvEnc;" since In case the difference exceed (2^16-1)/2 the coded values are wrong.
In case, It would be nice to have a fix in future releases.
regards
Prospero