Hi Sir,
My customer is testing the PCM5122EVM and need to adjust the gain setting values, May I know if there has the sample code for CodecControl software?
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.
Hi Sir,
My customer is testing the PCM5122EVM and need to adjust the gain setting values, May I know if there has the sample code for CodecControl software?
Hello Henry,
Attached is a folder with several sample codes.
Regards,
Arash
Hi Sir,
My customer cannot find the sample code about gain settings from your sharing file, could you please help to share it? Thanks!
Hi Henry,
Arash is out of office today and will return tomorrow to answer your question.
Thanks for your patience,
Jeff McPherson
Hello Henry,
the 6 samples codes were to help any user to start quickly, it is expected the user to add or modify the needed registers in any of the sample files that were provided.
The registers to change the gain is mentioned in datasheet in details in section 8.3.5.4 Digital Volume Control. Based on register list, the user can write/modify the gain setting with the following registers.
Page 0, Resister 61, D(7:0) for L-ch and Register 62, D(7:0) for R-ch.
Table 29. Digital Volume Control Settings list the digital values vs actual gain in dB.
Also 8.3.5.5 Analog Gain Control Analog gain control can be selected between 2-Vrms FS (0dB) or 1-Vrms FS (–6 dB). Gain is controlled through Page 1, Register 2, D4(L-ch) / D0(R-ch). more details in Table 122. Page 1 / Register 2
Regards,
Arash