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.

The slave can't get microphone input to mix with the master's stream

Other Parts Discussed in Thread: CC8531, CC8530

The customer project is as the following:

One CC8531 board was used as the master with two way audio streaming.

Application Role:Dual stereo headset USB soundcard

Another CC8530+AIC3254 board was used as the slave.

Application Role:Stereo headset

The customer wants to use IN1L/R of AIC3254, via an MicPGA and an Mixer Amplifier to connect to HPL/HPR. This is to mix the mcrophone input from IN1L/R and the stream from the master (after DAC) at HPL/HPR. However, it turned out that only the master's stream was heard. 

In PurPath Wireless Configurator's Audio Device Customerization, the customer modified the Configuration Sequences as the following. All the settings of AIC3254 has been verified on AIC3254EVM-U CS software. The Audio Device Definition has also been modified. 

Please help to diagnose and give suggestion. 

#OFF to SR-Switch

#OFF to SR-Switch

# PIN RESET

p Reset 1 # Release the reset pin

# RESET

w 30 00 00 # Select register page 0

w 30 01 01 # I2C reset

# CLOCK SETTINGS

w 30 0B 81 # Power up the NDAC divider with value 1

w 30 0C 82 # Power up the MDAC divider with value 2

w 30 0D 00 # Program OSR for DAC to 128 (MSB)

w 30 0E 80 # Program OSR for DAC to 128 (LSB)

w 30 12 81 # Power up the NADC divider with value 1

w 30 13 82 # Power up the MADC divider with value 2

w 30 14 80 # Program OSR for ADC to 128

# DIGITAL INTERFACE

w 30 1B 00 # I2S, 16-bit, BCLK and WCLK are inputs

# PROCESSING BLOCK USAGE

w 30 3C 08 # Select DAC processing block PRB_P8

w 30 3D 01 # Select ADC processing block PRB_R1

# ANALOG POWER SUPPLY

w 30 00 01 # Select register page 1

w 30 01 08 # Disable internal crude AVDD before powering up the internal AVDD LDO

w 30 02 A1 # Enable internal analog LDO, analog blocks powered

w 30 0A 40 # Common mode set to 0.75V

# MICPGA DELAY, REFERENCE CHARGING AND HEADPHONE DE-POP

w 30 47 31 # MICPGA startup delay is 3 ms

w 30 7B 01 # Reference charging time is 40 ms

w 30 14 65 # HP driver power-up: 50 ms soft routing step time, 5.0 time constants, 6k resistance

# AUDIO ROUTING

w 30 0C 0E # HPL routing: Left channel's DAC reconstruction filter's positive terminal

w 30 0D 0E # HPR routing: Right channel's DAC reconstruction filter's positive terminal

w 30 0E 08 # LOL routing: Left channel's DAC reconstruction filter output

w 30 0F 08 # LOR routing: Right channel's DAC reconstruction filter output

w 30 34 40 # IN1L is routed to Left MICPGA with 10K resistance

w 30 36 40 # CM1L is routed to Left MICPGA via CM1L with 10K resistance

w 30 37 40 # IN1R is routed to Right MICPGA with 10K resistance

w 30 39 40 # CM1R is routed to Right MICPGA via CM1R with 10K resistance

# DC FILTER LEFT CHANNEL

w 30 00 08 # Select register page 8

w 30 18 7F # n0 + n1 * z^-1

w 30 19 FF # H(z) = ----------------------

w 30 1A 00 # 2^23 - d1 * z^-1

w 30 1C 80 #

w 30 1D 01 # The constants are defined as

w 30 1E 00 # n0 = 32767 * 256

w 30 20 7F # n1 = -32767 * 256

w 30 21 FC # d1 = 32768 * 256 * (1- 2^13)

w 30 22 00 # This gives a filter with cutoff at approx. 1 Hz

# DC FILTER RIGHT CHANNEL

w 30 00 09 # Select register page 9

w 30 20 7F # n0 + n1 * z^-1

w 30 21 FF # H(z) = ----------------------

w 30 22 00 # 2^23 - d1 * z^-1

w 30 24 80 #

w 30 25 01 # The constants are defined as

w 30 26 00 # n0 = 32767 * 256

w 30 28 7F # n1 = -32767 * 256

w 30 29 FC # d1 = 32768 * 256 * (1- 2^13)

w 30 2A 00 # This gives a filter with cutoff at approx. 1 Hz

 

 

#Inactive to low power

w 30 00 01 # Select register page 1

w 30 33 44 # Enable MICBIAS connected to AVDD

w 30 3B 80 # MicPGA Gain Control 0

w 30 3C 80 # MicPGA Gain Control 0

w 30 00 00 # Select register page 0

w 30 51 C0 # Power up ADC channels

 

#Low power to active

w 30 00 01 # Select register page 1

w 30 10 00 # HPL driver: Unmute, 0 dB gain

w 30 11 00 # HPR driver: Unmute, 0 dB gain

w 30 12 00 # LOL driver: Unmute, 0 dB gain

w 30 13 00 # LOR driver: Unmute, 0 dB gain

w 30 09 3F # All output drivers powered up

d 100

w 30 3B 3C # MicPGA Gain Control

w 30 3C 3C # MicPGA Gain Control

 

w 30 18 05 # Mixer Amplifier Control L

w 30 19 05 # Mixer Amplifier Control R

w 30 10 0a # HPL driver: 10 dB gain

w 30 11 0a # HPR driver: 10 dB gain

w 30 00 00 # Select register page 0

w 30 3F D6 # Power up the DAC channels, normal channel routing, soft-stepping disabled

 

#Active to low power

w 30 00 01 # Select register page 1

w 30 10 40 # HPL driver: Mute, 0 dB gain

w 30 11 40 # HPR driver: Mute, 0 dB gain

w 30 12 40 # LOL driver: Mute, 0 dB gain

w 30 13 40 # LOR driver: Mute, 0 dB gain

w 30 18 40 # Mixer Amplifier Control L:Mute

w 30 19 40 # Mixer Amplifier Control R:Mute

w 30 09 00 # All output drivers powered down

w 30 00 00 # Select register page 0

w 30 41 81 # Set minimum left DAC digital volume (-63.5 dB)

w 30 42 81 # Set minimum right DAC digital volume (-63.5 dB)

w 30 40 0C # Mute the DAC digital volume control

w 30 3F 16 # Power down the DAC channels, normal channel routing, soft-stepping disabled

 

 

#Low power to inactive

w 30 00 01 # Select register page 1

w 30 3B 80 # Set minimum left MICPGA gain

w 30 3C 80 # Set minimum right MICPGA gain

w 30 33 30 # Disable MICBIAS connected to AVDD

w 30 00 00 # Select register page 0

w 30 52 88 # Mute ADC channels

w 30 51 00 # Power down ADC channels

 

#SR-Switch to Off

# PIN RESET

p Reset 0 # Assert reset pin