56
DS1113F1
CS4399
5.10 Example Sequences
5.10.2 Power-Up Sequence to DSD Playback
In
, a 22.5792-MHz crystal is used, the PLL is used to create a 24.576-MHz MCLK, XSP is set as DSD slave at
2.8224 MHz, and full-scale output is 1.732 Vrms.
28 Configure Headphone
detect
HP Detect. 0xD0000
0x04
HPDETECT_CTRL
HPDETECT_INV
HPDETECT_RISE_DBC_TIME
HPDETECT_FALL_DBC_TIME
Reserved
00
0
0 0
10
0
HP detect disabled
HP detect input is not inverted
Tip sense rising debounce time set to 0 ms
Tip sense falling debounce time set to 500 ms
29 Headphone detect
HP Detect. 0xD0000
0xC4
HPDETECT_CTRL
HPDETECT_INV
HPDETECT_RISE_DBC_TIME
HPDETECT_FALL_DBC_TIME
Reserved
11
0
0 0
10
0
HP detect enabled
HP detect input is not inverted
Tip sense rising debounce time set to 0 ms
Tip sense falling debounce time set to 500 ms
30 Enable interrupts
31 Read Interrupt Status 1 register (0xF0000) and Interrupt Status 2 register (0xF0001) to clear sticky bits.
32 Enable headphone detect
interrupts
Interrupt Mask 1. 0xF0010
0x87
DAC_OVFL_INT_MASK
HPDETECT_PLUG_INT_MASK
HPDETECT_UNPLUG_INT_MASK
XTAL_READY_INT_MASK
XTAL_ERROR_INT_MASK
PLL_READY_INT_MASK
PLL_ERROR_INT_MASK
PDN_DONE_INT_MASK
1
0
0
0
0
1
1
1
Enable HPDETECT_PLUG interrupt
Enable HPDETECT_UNPLUG interrupt
33 Enable ASP interrupts
Interrupt Mask 2. 0xF0011
0x07
ASP_OVFL_INT_MASK
ASP_ERROR_INT_MASK
ASP_LATE_INT_MASK
ASP_EARLY_INT_MASK
ASP_NOLRCK_INT_MASK
Reserved
0
0
0
0
0
111
Enable ASP_OVFL interrupt
Enable ASP_ERROR interrupt
Enable ASP_LATE interrupt
Enable ASP_EARLY interrupt
Enable ASP_NOLRCK interrupt
34 Wait for interrupt. Check if XTAL_READY_INT = 1 in Interrupt Status 1 register (0xF0000).
35 Switch MCLK source to
XTAL
System Clocking Control 1. 0x10006
0x04
Reserved
MCLK_INT
MCLK_SRC_SEL
0000 0
1
00
MCLK Source set to XTAL. MCLK_INT frequency set to
22.5792 MHz
36 Wait at least 150 µs.
37 Enable ASP clocks
Pad Interface Configuration. 0x1000D
0x02
Reserved
XSP_3ST
ASP_3ST
0000 00
1
0
XSP Interface status is don't care (set to default)
Enable serial clocks in Master Mode
38 Power up DAC
Refer to
for PCM power-up sequence. Skip Step 1 of
(completed in Step 8 above).
Example 5-8. Startup to DSD Playback
STEP
TASK
R
EGISTER
/B
IT
F
IELDS
V
ALUE
D
ESCRIPTION
1
Apply all relevant power supplies, then assert RESET.
2
Wait for 1.5 ms
3
Configure XTAL driver
4
Configure XTAL bias current
strength (assuming River Crystal
at 22.5792 MHz)
Crystal Setting. 0x20052
0x04
Reserved
XTAL_IBIAS
0000 0
100
Bias current set to 12.5 µA
5
Read Interrupt Status 1 register (0xF0000) to clear any pending interrupts.
6
Enable XTAL interrupts
Interrupt Mask 1. 0xF0010
0xE7
DAC_OVFL_INT_MASK
HPDETECT_PLUG_INT_MASK
HPDETECT_UNPLUG_INT_MASK
XTAL_READY_INT_MASK
XTAL_ERROR_INT_MASK
PLL_READY_INT_MASK
PLL_ERROR_INT_MASK
PDN_DONE_INT_MASK
1
1
1
0
0
1
1
1
Enable XTAL_READY interrupt
Enable XTAL_ERROR interrupt
Example 5-7. Startup to I
2
S Playback
(Cont.)
STEP
TASK
R
EGISTER
/B
IT
F
IELDS
V
ALUE
D
ESCRIPTION