100% found this document useful (1 vote)
315 views27 pages

QCC300x I S: User Guide

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
315 views27 pages

QCC300x I S: User Guide

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

Qualcomm Technologies International, Ltd.

QCC300x I²S
User Guide
80-CF100-1 Rev. AA

July 28, 2017

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

NO PUBLIC DISCLOSURE PERMITTED: Please report postings of this document on public servers or websites to
DocCtrlAgent@qualcomm.com.

Restricted Distribution: Not to be distributed to anyone who is not an employee of either Qualcomm Technologies International, Ltd. or its
affiliated companies without the express approval of Qualcomm Configuration Management.

Not to be used, copied, reproduced, or modified in whole or in part, nor its contents revealed in any manner to others without the express
written permission of Qualcomm Technologies International, Ltd.

Qualcomm is a trademark of Qualcomm Incorporated, registered in the United States and other countries. Other product and brand names
may be trademarks or registered trademarks of their respective owners.

This technical data may be subject to U.S. and international export, re-export, or transfer ("export") laws. Diversion contrary to U.S. and
international law is strictly prohibited.

Qualcomm Technologies International, Ltd. (formerly known as Cambridge Silicon Radio Limited) is a company registered in England and
Wales with a registered office at: Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom.
Registered Number: 3665875 | VAT number: GB787433096

© 2017 Qualcomm Technologies International, Ltd. All rights reserved.


Revision history

Revision Date Description

AA July 2017 Original publication of this document. Alternate document number:


CS-00404852-UG

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 2


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Contents

Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1 Customer-defined configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 I2S settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3 I2C control data settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3.1 I2C raw command data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3.2 I2C Initialization commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3.3 I2C volume commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3.4 I2C shutdown commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3 I2C command data format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.1 Packet length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2 Volume offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.3 Packet data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.4 SSM2518 example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4 Extra configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.1 Audio routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.2 Volume control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.3 Input PIOs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.4 Output PIOs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.5 I2C PIO mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.6 Tone playback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
A I2S implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
A.1 Supported I2S implementation operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
A.2 I2S implementation limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Document references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Terms and definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 3


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Tables

Table 2-1: Configurable data fields............................................................................................................................ 8


Table 2-2: Example raw command data for the SSM2518....................................................................................... 10
Table 2-3: Configurable data fields for I2C volume commands................................................................................ 11
Table 3-1: Example I2C commands........................................................................................................................... 14
Table 3-2: Example I2C set volume data................................................................................................................... 14
Table 3-3: Set volume command with eight volume bits......................................................................................... 15
Table 3-4: Set volume command with 16 volume bits............................................................................................. 15
Table 3-5: Set volume command with 8 volume bits and 16 command bits........................................................... 15
Table 3-6: Example I2C set sample rate command................................................................................................... 15
Table 3-7: set sample rate PS Key data.................................................................................................................... 15
Table 3-8: Initialization commands.......................................................................................................................... 16
Table 3-9: Shutdown commands..............................................................................................................................17
Table 3-10: Set volume commands.......................................................................................................................... 17
Table 4-1: Audio mute and Power on PIO operation............................................................................................... 21

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 4


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Figures

Figure 2-1: Analog devices SSM2518 plug-in type..................................................................................................... 7


Figure 2-2: Customer-developed plug-in type and associated I2S configuration options.......................................... 8
Figure 2-3: Raw command data............................................................................................................................... 10
Figure 2-4: I2C initialization commands................................................................................................................... 11
Figure 2-5: I2C volume commands........................................................................................................................... 12
Figure 2-6: I2C shutdown commands....................................................................................................................... 13
Figure 4-1: Configuring digital output 0................................................................................................................... 18
Figure 4-2: Configuring I²S audio on digital output 0............................................................................................... 19
Figure 4-3: Volume control setting...........................................................................................................................20
Figure 4-4: Input PIO configuration......................................................................................................................... 20
Figure 4-5: Output PIO configuration.......................................................................................................................21
Figure 4-6: I2C SCL PIO mapping.............................................................................................................................. 22
Figure 4-7: I2C SDA PIO mapping............................................................................................................................. 23
Figure 4-8: Configuration of tone playback..............................................................................................................24

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 5


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
1 Introduction

This document describes how to configure the QCC300x device for I2S operation.

I2S operation can be configured for various I2S audio devices, and to enable initialization and volume
control through the I2C interface. To configure I2S operation, use the ADK Configuration Tool.
This document provides an example configuration to use with Analog Devices SSM2518 external
amplifier device.

NOTE This example configuration uses settings for the SSM2518 amplifier to explicitly show how
to configure the QCC300x device from the beginning.

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 6


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
2 Configuration

This section provides an annotated example for the configuration corresponding to the SSM2518
device. To use this configuration, set Plug-in Type to Qualcomm SSM_2518 I2S Development
Board in the ADK Configuration Tool. This implements all the settings described in Customer-defined
configuration to I2C control data settings.

Figure 2-1 Analog devices SSM2518 plug-in type

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 7


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Configuration

2.1 Customer-defined configuration


To configure an external I2S amplifier, set the Plug-in Typeto Customer Developed Plug-in.

Figure 2-2 Customer-developed plug-in type and associated I2S configuration options

2.2 I2S settings


Table 2-1 describes available I2S configuration settings.
Table 2-1 Configurable data fields

Field Description SSM2518 Value

Plug-in Type Selects a plug-in: Customer-developed


plug-in
■ Qualcomm user-defined using these
configuration options
■ Qualcomm SSM2518 I2S development board
■ Qualcomm CSRA6620 I2S development board
■ Customer-developed plug-in
Master or Slave operation Specifies whether the QCC300x device should act Master
as a master or slave on the I2S bus.
This implies the opposite setting for the external
I2S amplifier.
Left or Right Justified I2S Specifies the I2S audio data format Left-justified
Justified Data Delay by 1-bit Specifies the I2S audio data format 1‑bit delay
Bits Per Sample Specifies the number of bits in each sample of the 16 bits
I2S audio output data.

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 8


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Configuration

Table 2-1 Configurable data fields (cont.)

Field Description SSM2518 Value

Audio Output Resample Rate Specifies whether the music (A2DP, codecs, USB, 48000 Hz
[Hz] wired audio) output must be resampled to a fixed
rate.
A value of 0 indicates that no resampling is
performed. Otherwise, this value specifies the
required output frequency in Hz.
Voice Resample Rate [Hz] Specifies whether the voice (cVc, tones, voice 48000 Hz
prompts) output needs to be resampled to a fixed
rate.
A value of 0 indicates that no resampling is
performed. Otherwise, this value specifies the
required output frequency in Hz.
Bit Clock Scaling Factor Specifies the scaling factor for the I2S bit clock. 256 Hz
This overrides the bit clock frequency.
For example, 256Hz x 48000Hz: 12.28 MHz
If it is set to 0, the bit clock is calculated as follows
for 16-bit 48 kHz audio:
16 x 2 (stereo) x 48000 = 1.536 MHz
Audio Input Resolution Specifies the number of bits in each sample of the 16 bits
I2S audio input data.

2.3 I2C control data settings


Control commands are sent over an I2C interface to power up, configure, and shut down the device,
and to change device settings, such as volume.

This section describes how to configure the QCC300x device to send control commands.

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 9


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Configuration

2.3.1 I2C raw command data

Figure 2-3 Raw command data

Figure 2-3 shows the settings page where the raw I2C commands are entered. Table 2-2 lists example
values. The commands are typically represented by groups of five octets, although they are entered as
one long, continuous stream because they can be longer than five octets. For an example that shows
how to get these values, see I2C command data format.

NOTE The values entered into the configuration tool are decimal. This document calculates and
displays them as hexadecimal.

Table 2-2 Example raw command data for the SSM2518

Packet Length Volume Offset I2C ID I2CData[0] I2CData[1]

0x03 0x00 0x68 0x00 0x04


0x03 0x00 0x68 0x01 0x00
0x03 0x00 0x68 0x02 0x00
0x03 0x00 0x68 0x03 0x00
0x03 0x00 0x68 0x05 0x40
0x03 0x00 0x68 0x06 0x40
0x03 0x00 0x68 0x07 0x00
0x03 0x00 0x68 0x09 0x98
0x03 0x00 0x68 0x07 0x01
0x03 0x01 0x68 0x05 0x40
0x03 0x01 0x68 0x06 0x40

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 10


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Configuration

2.3.2 I2C Initialization commands


Figure 2-4 shows how the number of I2C initialization commands is configured. The initialization
commands are sent every time the external I2S amplifier is turned on. It is assumed that initialization
commands begin from offset 0 in the raw command data. The example settings for the SSM2518 use
eight initialization commands, each five octets in length, for a total of 40 octets.

Figure 2-4 I2C initialization commands

2.3.3 I2C volume commands


Figure 3-5 shows how to configure the number of I2C volume commands, and the offset in the raw
command data at which they begin. Other parameters include the ability to set the number of bits used
to represent the volume, and the minimum and maximum value to send. The volume is scaled
automatically to this range.

Table 2-3 lists the configurable fields and their example values for the SSM2518.
Table 2-3 Configurable data fields for I2C volume commands

Field Description SSM2518 Value

Number of I2C Volume Specifies the number of individual volume 2


Commands commands that are sent to the I2S capable
device every time a volume change is made
Volume Commands Offset Specifies the offset, in octets, of the first I2C 45
volume command in the raw command data
Volume Number of Bits Specifies the number of bits of the volume value 8
in the I2C volume command

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 11


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Configuration

Table 2-3 Configurable data fields for I2C volume commands (cont.)

Field Description SSM2518 Value

Volume Range Max Specifies the maximum volume that will be sent 0
to the I2S device to indicate maximum output
level
Volume range min Specifies the minimum volume level that will be 255
sent to the I2S device to indicate minimum
output level

Figure 2-5 I2C volume commands

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 12


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Configuration

2.3.4 I2C shutdown commands


Figure 2-6 shows how to configure the number of I2C shutdown commands, and the shutdown
command offset in the raw command data. For the SSM2518, there is a single five-octet shutdown
command at an offset of 40 in the raw command data.

Figure 2-6 I2C shutdown commands

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 13


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
3 I2C command data format

This section describes the raw data structure of the I2C commands sent to initialize, configure, and
shut down an external I2S amplifier. Table 3-1 lists example I2C commands from the SSM2518 data for
reference.
Table 3-1 Example I2C commands

Packet Length Volume Offset I2C ID I2CData[0] I2CData[1]

0x03 0x00 0x68 0x00 0x04


0x03 0x00 0x68 0x01 0x00
0x03 0x00 0x68 0x02 0x00

3.1 Packet length


Packet length is the length of the packet in octets. For example, an I2C initialization command packet
of 0x68, 0x00, 0x04 has a packet length of 3.

NOTE Packet Length and Volume Offset are not included in the Packet Length
calculation.

3.2 Volume offset


Volume offset applies to data packets that set the volume/audio level output for the left/right channels.
Volume offset value is ignored for non-volume related packets.

Table 3-2 Example I2C set volume data

I2C ID Set Volume command Volume Level

0x68 0x05 0x??

The volume level offset for the example volume packet as described in Table 3-2 is 1, because the first
data byte is always the I2C device ID. Data byte[0] is 0x05 (set volume command). Data byte[1] is the
actual volume level.

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 14


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide I2C command data format

The volume level is not always 8 bits. The volume level size is configured in the Volume section of the
I2C control data settings. If the volume level size is larger than 1 byte, then the volume level offset
indicates the start of the data to be replaced.

Table 3-3 Set volume command with eight volume bits

Set Volume
Packet Length Volume Offset I2C ID Volume Level
command

0x03 0x01 0x68 0x05 0x40

Table 3-4 Set volume command with 16 volume bits

Set Volume Volume Volume Level


Packet Length Volume Offset I2C ID command Level[0] [1]

0x04 0x01 0x68 0x05 0xff 0xff

Table 3-5 Set volume command with 8 volume bits and 16 command bits

Set Volume Set Volume


Packet Length Volume Offset I2C ID Volume Level
command[0] Command[1]

0x04 0x02 0x69 0x01 0x06 0x40

3.3 Packet data


The packet data is an array of I2C command bytes whose length is specified by the Packet Length
value. The first octet is always the I2C ID, which is the address of the external chip on the I2C bus. The
manufacturer’s data sheet usually lists this information, but many chips have chip-select lines that
enable some control over this address. The remaining octets comprise the data actually sent to the
device, and is often a command-value pair.
Table 3-6 Example I2C set sample rate command

I2C ID Set Sample Rate Automatic Sample Rate Control

0x68 0x01 0x01

Table 3-7 lists the complete packet and header information, which comprises five words.
Table 3-7 set sample rate PS Key data

Automatic Sample
Packet Length Volume Offset I2C ID Set Sample Rate Rate Control

0x03 0x00 0x68 0x01 0x01

3.4 SSM2518 example


The raw command data is split into tables of five octet chunks, because every command in this
example is 5 octets long. The commands are split into separate tables for initialization, shutdown, and
volume commands.

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 15


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide I2C command data format

The relevant settings page in the ADK Configuration Tool configures the number of initialization,
shutdown, and volume commands, as well as the volume and shutdown command offsets in the
command data. Initialization commands are assumed to start at offset 0.

Table 3-8 Initialization commands

Data SSM2518 register name Description

03 00 68 00 04 Reset_power_control SPWN: 0 Normal operation


MCS: 0010 256 x fs (Master clock select, value
must match Word 10 in PSKEY_USR35)
NO_BCLK: 0 BCLK pin used as bit clock source
RESERVED: 0
S_RST: 0 Normal operation
03 00 68 01 00 Edge_clock_control ASR: 0 Automatic detection enabled
EDGE: 0 No edge rate control
RESERVED: 0
03 00 68 02 00 Serial_interface_sample_ FS: 0 (only required if ASR = 1 in register 0x01)
rate_control
SAI: 0 I2S left-justified, or right justified stereo
depending on SDATA_FMT)
SDATA_FMT: 0 I2S standard, data is delayed by
one BLCK cycle
RESERVED: 0
03 00 68 03 00 Serial_interface_control RESERVED: 0
BLCK_EDGE: 0 Rising BLCK edge used
SLOT_WIDTH: 00 32 BLCK cycles per slot
SAI_MSB: 0 MSB first
LRCLK_POL: 0 Rising edge (normal)
LRCLK_MODE: 0 50% duty cycle
BCLK_GEN: 0 Bit clock from BCLK pin is used
03 00 68 05 40 Left_volume_control Set left volume to 0 dB
03 00 68 06 40 Right_volume_control Set right volume to 0 dB

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 16


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide I2C command data format

Table 3-8 Initialization commands (cont.)

Data SSM2518 register name Description

03 00 68 07 00 Volume_mute_control M_MUTE: 0 Normal operation


L_MUTE: 0 Normal operation
R_MUTE: 0 Normal operation
VOL_LINK: 0 Normal operation
DEEMP_EN: 0 De-emphasis disabled (normal
operation)
ANA_GAIN: 0 Matched to 3.6 V supply
RESERVED: 0
AMUTE: Automute enabled
03 00 68 09 98 Power_fault_control APWDN_EN: 0 Automatic power down disabled
L_PWDN: 0 Normal operation
R_PWDN: 0 Normal operation
DAC_LPM: 1 Low power operation
AMP_LPM: 1 Low power operation
RESERVED: 0
AR_TIME: 10 40 ms autorecovery delay

Table 3-9 Shutdown commands

Data SSM2518 register name Description

03 00 68 07 01 Volume_mute_control M_MUTE: 1 Master Mute


L_MUTE: 0 Normal operation
R_MUTE: 0 Normal operation
VOL_LINK: 0 Normal operation
DEEMP_EN: 0 De-emphasis disabled (normal
operation)
ANA_GAIN: 0 Matched to 3.6 V supply
RESERVED: 0
AMUTE: Automute enabled

Table 3-10 Set volume commands

Data SSM2518 register name Description

03 01 68 05 40 Left_volume_control Set left volume command (last byte ignored)


03 01 68 06 40 Right_volume_control Set right volume command (last byte ignored)

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 17


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
4 Extra configuration

4.1 Audio routing


To enable I2S output:
1. Modify Configuration Set > Audio > Routing > Multi-channel Plug-in in the ADK Configuration
Tool by so that the Digital Audio Interface Output 0 is enabled and configured to route the
primary DSP output to I2S. When enabled, all audio output is redirected to an I2S capable device,
including tones and voice prompts.
2. Configure the PIOs that generate the correct logic for amplifier Power and Mute signals, see
Output PIOs.

Figure 4-1 Configuring digital output 0

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 18


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Extra configuration

Figure 4-2 Configuring I²S audio on digital output 0

4.2 Volume control


To use volume control commands with the I2C interface, configure Volume Scaling Method to
Hardware. This is because the raw I2S digital audio contains no volume data, so I2C commands must
be sent to the I2S amplifier to configure the final output volume.

To use digital gain commands instead of I2C commands to control the I2S volume, configure Volume
Scaling Method to DSP.

NOTE I2S outputs do not support the Hybrid option.

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 19


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Extra configuration

Figure 4-3 Volume control setting

4.3 Input PIOs


To use the I2S amplifier with the QCC300x device, configure the SPDIF Input PIO to Disable. With the
QCC300x device, the SPDIF Input PIO may be enabled along with the I2S amplifier, if the SPDIF
Output PIO is configured as described in Output PIOs.

Figure 4-4 Input PIO configuration

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 20


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Extra configuration

4.4 Output PIOs


To use the I2S amplifier with the QCC300x device, configure the SPDIF Output PIO to N/A.

Figure 4-5 Output PIO configuration

Use PIOs to manage power up and power down operations for an external amplifier. A Power pin may
be available on the external amplifier that provides a hardware shut down option when required, for
example, when the system goes into Stand-by mode.

When a reference external amplifier board such as H13117 is in use, the Power On PIO must be
configured to PIO14 to toggle the external amplifier power pin logic levels when the QCC300x device
is powered on or powered off.

Some external amplifiers may have a Mute pin. The Audio Mute PIO must be configured to N/A when
a reference external amplifier board such as H13117 is in use.

Table 4-1 lists the sequence of PIO activity when Audio Mute and Power On PIOs are configured to
values other than N/A.
Table 4-1 Audio mute and Power on PIO operation

Sequence of PIO Activity


Action
1: Audio Mute PIO 2: Power On PIO 3: Audio Mute PIO

Power Off (Go into Standby Mode) Goes High Goes Low Goes Low
Power On Goes High Goes High Goes Low

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 21


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Extra configuration

4.5 I2C PIO mapping


When using the ADK, use PSTool to configure I2C SCL PIO Mapping and I2C SDA PIO Mapping.

Figure 4-6 I2C SCL PIO mapping

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 22


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Extra configuration

Figure 4-7 I2C SDA PIO mapping

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 23


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QCC300x I²S User Guide Extra configuration

4.6 Tone playback


Always use resampling with I2S. To enable resampling, modify Configuration Set > Audio > Routing
> Audio Plug-in Features to enable Force Re-sampling of Tones.

Figure 4-8 Configuration of tone playback

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 24


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
A I2S implementation

A.1 Supported I2S implementation operations


I2S Master and Slave operation is supported.

A.2 I2S implementation limitations


The QTIL I2S implementation cannot generate a separate master clock. Use bit clock scaling to
provide a faster bit clock, which can be used as a master clock. The bit clock is generated by dividing
down the 48 MHz chip clock, so a constant mark/space ratio is not guaranteed.

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 25


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Document references

Document Reference

Analog Devices SSM2518 Data Sheet www.analog.com


ADK Sink Application User Guide 80-CT439-1 / CS-00236868-UG

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 26


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Terms and definitions

Term Definition

A2DP Advanced Audio Distribution Profile


AD Analog Devices
ADK Audio or Application Development Kit
Bluetooth Set of technologies providing audio and data transfer over short-range radio connections
cVc Clear Voice Clarity
CSR Cambridge Silicon Radio
DSP Digital Signal Processor
I2C Inter-Integrated Circuit (multimaster serial single-ended computer bus)
I2S Integrated Interchip Sound
ID Identifier
MSB Most Significant Bit
PIO Programmable Input/Output
PS Persistent Store
QTIL Qualcomm Technologies International, Ltd.
ROM Read Only Memory
SCO Synchronous Connection-Oriented
SDA Serial Data (line)
SDK Software Development Kit
USB Universal Serial Bus

80-CF100-1 Rev. AA Confidential and Proprietary – Qualcomm Technologies International, Ltd. 27


MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION

You might also like