MC13783 Recommended Audio Output SPI Sequences

Freescale Semiconductor
Application Note
Document Number: AN3261
Rev. 1.1, 01/2010
MC13783 Recommended Audio Output
SPI Sequences
by: Power Management and Audio Applications Team
1
Introduction
This document describes the recommended audio output
SPI sequences for the MC13783 to ensure proper start up
of the digital audio converters. The recommended audio
output SPI sequences minimize undesirable speaker
noises—such as, pops, garbled audio.
2
CODEC Startup From Full
Audio Shutdown
Table 1 provides the CODEC startup sequences from full
audio shutdown. The CODEC is the only audio source of
interest. This use case activates the audio subsystem to
use the voice CODEC for Tx and Rx audio. Bit settings
designated as "X" are "don't care" or depend on the
specific intended application, for example, which output
amplifier path to activate, and so on.
© Freescale Semiconductor, Inc., 2006—2010. All rights reserved.
Contents
1
2
3
4
5
6
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
CODEC Startup From Full Audio Shutdown . . .1
SDAC Startup From Full Audio Shutdown . . . . .4
CODEC Full Audio Shutdown From On State. . .6
SDAC Full Audio Shutdown From On State . . . .6
CODEC On and SDAC Off
Transition to CODEC Off and SDAC On
7
7 SDAC On and CODEC Off
Transition to SDAC Off and CODEC On . . . . . . .9
8 Revision History . . . . . . . . . . . . . . . . . . . . . . . . .11
CODEC Startup From Full Audio Shutdown
NOTE
It is assumed that the VAUDIO regulator is enabled and in full power mode
before any of the SPI sequences are attempted.
The “don't care” bits (X) signify that the actual value programmed is not
important to the success of the SPI sequence. However, the step in which the
bit is programmed is still important. The actual value of these bits will be
determined by each specific application.
Table 1. CODEC Startup From Full Audio Shutdown
Sequence
Register
Bit #
Bit Name
Bit Value
1
36
1
BIASEN
1
36
2
BIASSPEED
0
21
SW
WAIT
WAIT
250 ms
3
4
5
Notes
Enable Audio Bias.
Slow Ramp.
Wait for AUDIO BIAS to reach full value.
39
2
CDCTXRXSLOT0
X
—
39
3
CDCTXRXSLOT1
X
—
39
4
CDCTXSECSLOT0
X
—
39
5
CDCTXSECSLOT1
X
—
39
6
CDCRXSECSLOT0
X
—
39
7
CDCRXSECSLOT1
X
—
39
8
CDCRXSECGAIN0
X
—
39
9
CDCRXSECGAIN1
X
—
39
10
CDCSUMGAIN
X
39
11
CDCFSDLY
X
40
0
CDCSSISEL
X
—
40
1
CDCCLKSEL
X
—
—
FSYNC delay relative to BCLK.
40
2
CDCSM
X
—
40
3
CDCBCLINV
X
—
40
4
CDCFSINV
X
—
40
5
CDCFS0
X
—
40
6
CDCFS1
X
—
40
7
CDCCLK0
X
—
40
8
CDCCLK1
X
—
40
9
CDCCLK2
X
—
40
10
CDCFS8K16K
X
—
40
11
CDCEN
1
—
40
12
CDCCLKEN
X
—
40
13
CDCTS
0
—
40
14
CDCDITH
X
—
40
15
CDCRESET
1
CDCRESET must be set.
40
16
CDCBYP
X
—
40
17
CDCALM
X
—
40
18
CDCDLM
X
—
40
20
AUDOHPF
X
—
40
Same as previous step.
Rewrite REG 40 with previous step settings.
MC13783 Recommended Audio Output SPI Sequences Application Note, Rev. 1.1
2
Freescale Semiconductor
CODEC Startup From Full Audio Shutdown
Table 1. CODEC Startup From Full Audio Shutdown (continued)
Sequence
Register
Bit #
6
SW
7
37
8
1
Bit Name
Bit Value
WAIT
WAIT
15 ms
0
PGARXEN
1
Notes
Wait for data converter to settle.
—
37
1
PGARX0
X
—
37
2
PGARX1
X
—
37
3
PGARX2
X
—
37
4
PGARX3
X
—
37
5
PGASTEN
0
—
37
10
ARXINEN
0
—
37
16
MONO0
X
—
37
17
MONO1
X
—
37
18
BAL0
X
—
37
19
BAL1
X
—
37
20
BAL2
X
—
37
21
BALLR
X
—
36
3
ASPEN
X
36
4
ASPSEL
X
36
5
ALSPEN
X
36
7
ALSPSEL
X
36
9
AHSREN
X
36
10
AHSLEN
X
36
11
AHSSEL
X
36
15
ARXOUTREN
X
36
16
ARXOUTLEN
X
36
17
ARXOUTSEL
X
36
18
CDCOUTEN
X
36
21
ADDCDC
X
36
22
ADDSTDC
0
36
23
ADDRXIN
0
49
14
CONMODE0
X
49
15
CONMODE1
X
49
16
CONMODE2
X
Choose an output path.
If the slow bias WAIT times cannot be tolerated, the FAST BIAS setting can be used. However, the best possible pop-noise
performance will not be achieved if the fast bias is used. Table 2 provides the bit settings and WAIT time changes when using
the fast bias. All other bit settings remain the same.
Table 2. CODEC FAST BIAS Setting
Sequence
Register
Bit #
Bit Name
Bit Value
1
36
1
BIASEN
1
Enable Audio Bias.
36
2
BIASSPEED
1
Fast Ramp.
SW
WAIT
WAIT
25 ms
2
Notes
Wait for AUDIO BIAS to reach full value.
MC13783 Recommended Audio Output SPI Sequences Application Note, Rev. 1.1
Freescale Semiconductor
3
SDAC Startup From Full Audio Shutdown
3
SDAC Startup From Full Audio Shutdown
Table 3 provides the SDAC startup sequences from full audio shutdown. The SDAC is the only audio
source of interest. This use case activates the 16-bit stereo DAC for Rx path audio playback. Bit settings
designated as "X" are "don't care" or depend on the specific intended application, for example, which
output amplifier path to activate, and so on.
Table 3. SDAC Startup From Full Audio Shutdown
Sequence
Register
Bit #
Bit Name
Bit Value
Notes
1
36
1
BIASEN
1
36
2
BIASSPEED
0
21
SW
WAIT
WAIT
250 ms
3
39
12
STDCSLOTS0
X
—
39
13
STDCSLOTS1
X
—
39
14
STDCRXSLOT0
X
—
39
15
STDCRXSLOT1
X
—
39
16
STDCRXSECSLOT0
X
—
39
17
STDCRXSECSLOT1
X
—
39
18
STDCRXSECGAIN0
X
—
39
19
STDCRXSECGAIN1
X
—
Enable Audio Bias.
Slow Ramp.
Wait for AUDIO BIAS to reach full value.
39
20
STDCSUMGAIN
X
—
4
40
13
CDCTS
X
—
5
41
0
STDCSSISEL
X
—
41
1
STDCCLKSEL
X
—
41
2
STDCSM
X
—
41
3
STDCBCLINV
X
—
41
4
STDCFSINV
X
—
41
5
STDCFS0
X
—
41
6
STDCFS1
X
—
41
7
STDCCLK0
X
—
41
8
STDCCLK1
X
—
41
9
STDCCLK2
X
—
41
10
STDCFSDLYB
X
41
11
STDCEN
1
FSYNC delay relative to BCLK.
—
41
12
STDCCLKEN
X
41
15
STDCRESET
1
41
16
SPDIF
0
—
41
17
SR0
X
—
41
18
SR1
X
—
41
19
SR2
X
—
41
20
SR3
X
6
41
7
SW
Same as previous step.
WAIT
WAIT
—
STDCRESET must be set.
—
Rewrite REG 41 with previous step settings.
10 ms
Wait for data converter to settle.
MC13783 Recommended Audio Output SPI Sequences Application Note, Rev. 1.1
4
Freescale Semiconductor
SDAC Startup From Full Audio Shutdown
Table 3. SDAC Startup From Full Audio Shutdown (continued)
Sequence
8
9
1
Register
Bit #
Bit Name
Bit Value
Notes
37
0
PGARXEN
0
—
37
5
PGASTEN
1
—
37
6
PGAST0
X
—
37
7
PGAST1
X
—
37
8
PGAST2
X
—
37
9
PGAST3
X
—
37
10
ARXINEN
0
—
37
16
MONO0
X
—
37
17
MONO1
X
—
37
18
BAL0
X
—
37
19
BAL1
X
—
37
20
BAL2
X
—
—
37
21
BALLR
X
36
3
ASPEN
X
36
4
ASPSEL
X
36
5
ALSPEN
X
36
7
ALSPSEL
X
36
9
AHSREN
X
36
10
AHSLEN
X
36
11
AHSSEL
X
36
15
ARXOUTREN
X
36
16
ARXOUTLEN
X
36
17
ARXOUTSEL
X
36
21
ADDCDC
0
36
22
ADDSTDC
1
36
23
ADDRXIN
0
49
14
CONMODE0
X
49
15
CONMODE1
X
49
16
CONMODE2
X
Choose an output path.
If the slow bias WAIT times cannot be tolerated, the FAST BIAS setting can be used. However, the best possible pop-noise
performance will not be achieved if the fast bias is used. The bit setting and WAIT time changes for using the fast bias are
provided in Table 4. All other bit settings remain the same.
Table 4. SDAC FAST BIAS Setting
Sequence
Register
Bit #
Bit Name
Bit Value
1
36
1
BIASEN
1
Enable Audio Bias.
36
2
BIASSPEED
1
Fast Ramp.
SW
WAIT
WAIT
25 ms
2
Notes
Wait for AUDIO BIAS to reach full value.
MC13783 Recommended Audio Output SPI Sequences Application Note, Rev. 1.1
Freescale Semiconductor
5
CODEC Full Audio Shutdown From On State
4
CODEC Full Audio Shutdown From On State
Table 5 provides the sequence for the CODEC full audio shutdown from on state. This sequence is
recommended for deactivation of the voice CODEC subsystem.
Table 5. CODEC Full Audio Shutdown From On State
Sequence
1
Register
Bit #
Bit Name
Bit Value
36
3
ASPEN
0
36
5
ALSPEN
0
36
9
AHSREN
0
36
10
AHSLEN
0
36
15
ARXOUTREN
0
36
16
ARXOUTLEN
0
36
18
CDCOUTEN
0
36
21
ADDCDC
0
49
14
CONMODE0
0
49
15
CONMODE1
0
Notes
Disable output path previously enabled.
49
16
CONMODE2
0
2
37
0
PGARXEN
0
—
3
40
11
CDCEN
0
—
40
12
CDCCLKEN
0
—
40
13
CDCTS
1
—
36
1
BIASEN
0
—
4
5
SDAC Full Audio Shutdown From On State
Table 6 provides the sequence for the SDAC full audio shutdown from on state. This sequence is
recommended for deactivation of the 16-bit stereo DAC subsystem.
Table 6. SDAC Full Audio Shutdown From On State
Sequence
1
Register
Bit #
Bit Name
Bit Value
36
3
ASPEN
0
36
5
ALSPEN
0
36
9
AHSREN
0
36
10
AHSLEN
0
36
15
ARXOUTREN
0
36
16
ARXOUTLEN
0
36
22
ADDSTDC
0
49
14
CONMODE0
0
49
15
CONMODE1
0
49
16
CONMODE2
0
Notes
Disable output path previously enabled.
2
37
5
PGASTEN
0
—
3
41
11
STDCEN
0
—
41
12
STDCCLKEN
0
—
4
36
1
BIASEN
0
—
MC13783 Recommended Audio Output SPI Sequences Application Note, Rev. 1.1
6
Freescale Semiconductor
CODEC On and SDAC Off Transition to CODEC Off and SDAC On
6
CODEC On and SDAC Off Transition to CODEC Off and
SDAC On
Table 7 provides the sequence to transition the CODEC on and SDAC off to CODEC off and SDAC on.
This sequence is recommended to switch the audio subsystem from 13-bit voice mode to16-bit stereo
mode. Bit settings designated as "X" are "don't care" or depend on the specific intended application.
Table 7. CODEC On and SDAC Off Transition to CODEC Off and SDAC On
Sequence
1
Register
Bit #
Bit Name
Bit Value
36
36
3
ASPEN
0
5
ALSPEN
0
Notes
36
9
AHSREN
0
36
10
AHSLEN
0
36
15
ARXOUTREN
0
36
16
ARXOUTLEN
0
36
18
CDCOUTEN
0
—
36
21
ADDCDC
0
—
49
14
CONMODE0
0
—
49
15
CONMODE1
0
—
Disable output path previously enabled.
49
16
CONMODE2
0
—
2
37
0
PGARXEN
0
—
3
40
11
CDCEN
0
—
40
12
CDCCLKEN
0
—
4
40
13
CDCTS
X
—
39
12
STDCSLOTS0
X
—
39
13
STDCSLOTS1
X
—
39
14
STDCRXSLOT0
X
—
39
15
STDCRXSLOT1
X
—
39
16
STDCRXSECSLOT0
X
—
39
17
STDCRXSECSLOT1
X
—
39
18
STDCRXSECGAIN0
X
—
39
19
STDCRXSECGAIN1
X
—
39
20
STDCSUMGAIN
X
—
MC13783 Recommended Audio Output SPI Sequences Application Note, Rev. 1.1
Freescale Semiconductor
7
CODEC On and SDAC Off Transition to CODEC Off and SDAC On
Table 7. CODEC On and SDAC Off Transition to CODEC Off and SDAC On (continued)
Sequence
Register
Bit #
Bit Name
Bit Value
Notes
5
41
41
0
STDCSSISEL
X
—
1
STDCCLKSEL
X
—
41
2
STDCSM
X
—
41
3
STDCBCLINV
X
—
41
4
STDCFSINV
X
—
41
5
STDCFS0
X
—
41
6
STDCFS1
X
—
41
7
STDCCLK0
X
—
41
8
STDCCLK1
X
—
41
9
STDCCLK2
X
—
41
10
STDCFSDLYB
X
41
11
STDCEN
1
41
12
STDCCLKEN
X
—
41
15
STDCRESET
1
STDCRESET must be set.
41
16
SPDIF
0
—
41
17
SR0
X
—
41
18
SR1
X
—
41
19
SR2
X
—
41
20
SR3
X
6
41
Same as previous step.
7
SW
WAIT
WAIT
10 ms
8
37
5
PGASTEN
1
FSYNC delay relative to BCLK.
—
—
Rewrite REG 41 with previous step settings.
Wait for data converter to settle.
—
37
6
PGAST0
X
—
37
7
PGAST1
X
—
37
8
PGAST2
X
—
37
9
PGAST3
X
—
37
10
ARXINEN
0
—
37
16
MONO0
X
—
37
17
MONO1
X
—
37
18
BAL0
X
—
37
19
BAL1
X
—
37
20
BAL2
X
—
37
21
BALLR
X
—
MC13783 Recommended Audio Output SPI Sequences Application Note, Rev. 1.1
8
Freescale Semiconductor
SDAC On and CODEC Off Transition to SDAC Off and CODEC On
Table 7. CODEC On and SDAC Off Transition to CODEC Off and SDAC On (continued)
Sequence
Register
Bit #
9
36
3
ASPEN
X
36
4
ASPSEL
X
7
Bit Name
Bit Value
36
5
ALSPEN
X
36
7
ALSPSEL
X
36
9
AHSREN
X
36
10
AHSLEN
X
36
11
AHSSEL
X
36
15
ARXOUTREN
X
36
16
ARXOUTLEN
X
36
17
ARXOUTSEL
X
36
21
ADDCDC
0
36
22
ADDSTDC
1
36
23
ADDRXIN
0
49
14
CONMODE0
X
49
15
CONMODE1
X
49
16
CONMODE2
X
Notes
Choose an output path.
SDAC On and CODEC Off Transition to SDAC Off and
CODEC On
Table 8 provides the sequence to transition the SDAC on and CODEC off to SDAC off and CODEC on.
This sequence is recommended to switch the audio subsystem from the 16-bit stereo mode to 13-bit voice
mode. Bit settings designated as "X" are "don't care" or depend on the specific intended application.
Table 8. SDAC On and CODEC Off Transition to SDAC Off and CODEC On
Sequence
1
Register
Bit #
Bit Name
Bit Value
36
3
ASPEN
0
36
5
ALSPEN
0
36
9
AHSREN
0
36
10
AHSLEN
0
36
15
ARXOUTREN
0
36
16
ARXOUTLEN
0
36
22
ADDSTDC
0
49
14
CONMODE0
0
49
15
CONMODE1
0
49
16
CONMODE2
0
Notes
Disable output path previously enabled.
2
37
5
PGASTEN
0
—
3
41
11
STDCEN
0
—
41
12
STDCCLKEN
0
—
MC13783 Recommended Audio Output SPI Sequences Application Note, Rev. 1.1
Freescale Semiconductor
9
SDAC On and CODEC Off Transition to SDAC Off and CODEC On
Table 8. SDAC On and CODEC Off Transition to SDAC Off and CODEC On (continued)
Sequence
Register
Bit #
Bit Name
Bit Value
Notes
4
39
2
CDCTXRXSLOT0
X
—
39
3
CDCTXRXSLOT1
X
—
39
4
CDCTXSECSLOT0
X
—
39
5
CDCTXSECSLOT1
X
—
39
6
CDCRXSECSLOT0
X
—
39
7
CDCRXSECSLOT1
X
—
39
8
CDCRXSECGAIN0
X
—
39
9
CDCRXSECGAIN1
X
—
39
10
CDCSUMGAIN
X
39
11
CDCFSDLY
X
5
—
FSYNC delay relative to BCLK.
40
0
CDCSSISEL
X
—
40
1
CDCCLKSEL
X
—
40
2
CDCSM
X
—
40
3
CDCBCLINV
X
—
40
4
CDCFSINV
X
—
40
5
CDCFS0
X
—
40
6
CDCFS1
X
—
40
7
CDCCLK0
X
—
40
8
CDCCLK1
X
—
40
9
CDCCLK2
X
—
40
10
CDCFS8K16K
X
—
40
11
CDCEN
1
—
40
12
CDCCLKEN
X
—
40
13
CDCTS
0
—
40
14
CDCDITH
X
—
40
15
CDCRESET
1
CDCRESET must be set.
40
16
CDCBYP
X
—
40
17
CDCALM
X
—
40
18
CDCDLM
X
—
40
20
AUDOHPF
X
—
6
40
7
SW
Same as previous step.
WAIT
WAIT
Rewrite REG 40 with previous step settings.
15 ms
Wait for data converter to settle.
MC13783 Recommended Audio Output SPI Sequences Application Note, Rev. 1.1
10
Freescale Semiconductor
Revision History
Table 8. SDAC On and CODEC Off Transition to SDAC Off and CODEC On (continued)
Sequence
Register
8
9
8
Bit #
Bit Name
Bit Value
Notes
37
0
37
1
PGARXEN
1
—
PGARX0
X
—
37
2
PGARX1
X
—
37
3
PGARX2
X
—
37
4
PGARX3
X
—
37
10
ARXINEN
0
—
37
16
MONO0
X
—
37
17
MONO1
X
—
37
18
BAL0
X
—
37
19
BAL1
X
—
37
20
BAL2
X
—
37
21
BALLR
X
—
36
3
ASPEN
X
36
4
ASPSEL
X
36
5
ALSPEN
X
36
7
ALSPSEL
X
36
9
AHSREN
X
36
10
AHSLEN
X
36
11
AHSSEL
X
36
15
ARXOUTREN
X
36
16
ARXOUTLEN
X
36
17
ARXOUTSEL
X
36
18
CDCOUTEN
X
36
21
ADDCDC
X
36
22
ADDSTDC
0
36
23
ADDRXIN
0
49
14
CONMODE0
X
49
15
CONMODE1
X
49
16
CONMODE2
X
Choose an output path.
Revision History
Table 9 summarizes revisions to this document since the release of the previous version (Rev. 1).
Table 9. Revision History
Location
Throughout document
Revision
Prepared for public release. No technical content changes.
MC13783 Recommended Audio Output SPI Sequences Application Note, Rev. 1.1
Freescale Semiconductor
11
How to Reach Us:
Home Page:
www.freescale.com
E-mail:
[email protected]
USA/Europe or Locations Not Listed:
Freescale Semiconductor
Technical Information Center, CH370
1300 N. Alma School Road
Chandler, Arizona 85224
+1-800-521-6274 or +1-480-768-2130
[email protected]
Europe, Middle East, and Africa:
Freescale Halbleiter Deutschland GmbH
Technical Information Center
Schatzbogen 7
81829 Muenchen, Germany
+44 1296 380 456 (English)
+46 8 52200080 (English)
+49 89 92103 559 (German)
+33 1 69 35 48 48 (French)
[email protected]
Japan:
Freescale Semiconductor Japan Ltd.
Headquarters
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064, Japan
0120 191014 or +81 3 5437 9125
[email protected]
Asia/Pacific:
Freescale Semiconductor Hong Kong Ltd.
Technical Information Center
2 Dai King Street
Tai Po Industrial Estate
Tai Po, N.T., Hong Kong
+800 2666 8080
[email protected]
For Literature Requests Only:
Freescale Semiconductor Literature Distribution Center
P.O. Box 5405
Denver, Colorado 80217
1-800-521-6274 or 303-675-2140
Fax: 303-675-2150
[email protected]
Document Number: AN3261
Rev. 1.1
01/2010
Information in this document is provided solely to enable system and software implementers to use
Freescale Semiconductor products. There are no express or implied copyright licenses granted
hereunder to design or fabricate any integrated circuits or integrated circuits based on the information
in this document.
Freescale Semiconductor reserves the right to make changes without further notice to any products
herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the
suitability of its products for any particular purpose, nor does Freescale Semiconductor assume any
liability arising out of the application or use of any product or circuit, and specifically disclaims any
and all liability, including without limitation consequential or incidental damages. “Typical” parameters
that may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary
in different applications and actual performance may vary over time. All operating parameters,
including “Typicals”, must be validated for each customer application by customer’s technical experts.
Freescale Semiconductor does not convey any license under its patent rights nor the rights of others.
Freescale Semiconductor products are not designed, intended, or authorized for use as components
in systems intended for surgical implant into the body, or other applications intended to support or
sustain life, or for any other application in which the failure of the Freescale Semiconductor product
could create a situation where personal injury or death may occur. Should Buyer purchase or use
Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall
indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and
distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney
fees arising out of, directly or indirectly, any claim of personal injury or death associated with such
unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was
negligent regarding the design or manufacture of the part.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other
product or service names are the property of their respective owners.
© Freescale Semiconductor, Inc. 2006—2010. All rights reserved.