What is the maximum voltage to be shown at CN10 Audio Output on DK1/DK2 boards ??
..
..
Hi @RGarc.3 (Community Member) ,
Some information can be found in the User Manual fo the board on st.com
Operating voltage
The audio codec has two power supplies:
• VL, connected to the 3.3 V provided by the STPMIC1
• 1V8_AUDIO, dedicated 1.8 V source provided by the STPMIC1
Headphone outputs The STM32MP157A-DK1 and STM32MP157C-DK2 Discovery kits can drive a stereo headphone.
The STM32MP157x sends the stereo audio channels to the codec via its SAI2 TDM port. The codec converts the digital audio stream to stereo analog signals. It then boosts them for direct drive of the headphone connected to the CN10 3.5 mm stereo jack receptacles on the board.
The audio codec is set by an I2C bus. The address is a 7 bit address plus one bit for read/write (high for read, low for write). The AD0 pin, connected to GND, gives the least-significant address bit. The address of the audio codec is 0b1001010x: 0x94 to write and 0x95 to read.
The audio codec component used on this board is the CirrusLogic CS42L51-CNZ
The CS42L51-CNZ datasheet can be found on the web and shows:

So programming HP_GAIN[2:0] at @08h will provide the gain setting and Vpp voltage range.
Default is HP_GAIN=011 à Gain=0.6047 à Vpp = 1.48V
JM
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.