EVK-R6 - User guide
UBX-21035387 - R02
Appendix
Page 20 of 23
C1-Public
C.5
Configure audio interface for earphones
The audio interface has to be configured by selecting among the available settings a combination
supported by the used audio codec.
EVK-R6 mounts a Maxim Integrated MAX9860 audio voice codec and the default configuration
module already matches with the setting supported by MAX9860. The user only needs to activate the
audio codec
Command sent by DTE (user)
DCE response (module)
Description
AT+USPM=1,0
OK
Set the headset profile (default
setting)(
1
).
AT+UI2S=14,1,0,3,0
OK
Configures the I2S digital audio interface
(default setting) (
1
).
AT+UGPIOC=34,12
OK
Configures the GPIO pin 34 (I2S_WA) as
I2S digital audio interface (default
setting) (
1
).
AT+UGPIOC=35,12
OK
Configures the GPIO pin 35 (I2S_TXD) as
I2S digital audio interface (default
setting) (
1
).
AT+UGPIOC=36,12
OK
Configures the GPIO pin 36 (I2S_CLK) as
I2S digital audio interface (default
setting) (
1
).
AT+UGPIOC=37,12
OK
Configures the GPIO pin 37 (I2S_RXD) as
I2S digital audio interface (default
setting) (
1
).
AT+UEXTDCONF=0
OK
Disable the audio codec and restore the
default settings (
1
).
AT+UEXTDCONF=0,1
OK
Defines the settings to be downloaded to
the Maxim MAX9860 external audio
codec. If it was disabled (as per default
setting), it will be enabled and configured
properly. In other scenarios,
AT+UEXTDCONF=0
shall have to be issued
previously.
AT+UTGN=440,500,100
OK
+UUTGN: 0
Play a 440 Hz tone, 0.5 s long, volume
0 dB.
(
1
) optional: this command is not needed if the module audio settings have been not changed and they
have the default values.