STw5098
Dual low power asynchronous stereo audio Codec with integrated power amplifiers
Features
■ ■ ■ ■ ■
Dual 20 bit audio resolution, 8kHz to 96kHz independent rate ADC and DAC Dual I2S or PCM digital interfaces for dual master Sustain complex voice and audio flow with or without mixing I2C/SPI compatible control I/F Asynchronous sampling ADC and DAC: they do not require oversampled clock and information on the audio data sampling frequency (fs). Jitter tolerant fs Wide master clock range: from 4MHz to 32MHz Stereo headphones drivers, handsfree loudspeaker driver, line out drivers Mixable analog line inputs Voice filters: 8/16kHz with voice channel filters Automatic gain control for microphone and linein inputs Frequency programmable clock outputs Multibit Σ∆ modulators with data weighted averaging ADC and DAC DSP functions for bass-treble-volume control, mute, mono/stereo selection, voice channel filters, de-emphasis filter and dynamic compression 93 dB dynamic range ADC, 0.001% THD with full scale output @ 2.7V 95 dB dynamic range DAC, 0.02% THD performance @ 2.7V over 16Ω load
LFBGA 6x6x1.4 (112 pins) VFBGA 5x5x1 (112 pins)
STw5098
■ ■ ■ ■ ■ ■ ■ ■
Description
STw5098 is a dual low power asynchronous stereo audio CODEC device with headphones amplifiers for high quality audio listening and recording. Two I2S/PCM digital interfaces are available, one per master for example Bluetooth and Application Processor, enabling concurrent audio and voice flow between Network and user. The STw5098 control registers are accessible through a selectable I2C-bus compatible or SPI compatible interface.
■ ■
Applications
■
Digital cellular telephones with application processor such as mp3 or gaming and Bluetooth concurrent application
April 2007
Rev 1
1/85
www.st.com
1
Contents
STw5098
Contents
1 2 3 4 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10 4.11 4.12 4.13 4.14 4.15 4.16 4.17 4.18 Naming convention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Device programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Power up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Master clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Data rates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Clock generators and master mode function . . . . . . . . . . . . . . . . . . . . . . 20 Audio digital interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Analog inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Analog output drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Analog mixers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 AD paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 DA paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Analog-only operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Automatic Gain Control (AGC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Interrupt request: IRQ pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Headset plug-in and push-button detection . . . . . . . . . . . . . . . . . . . . . . . 26 Microphone biasing circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5
Control registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.1 5.2 5.3 5.4 5.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Supply and power control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Gains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 DSP control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Analog functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2/85
STw5098
Contents
5.6 5.7 5.8 5.9 5.10
Digital audio interfaces master mode and clock generators . . . . . . . . . . . 41 Digital audio interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Digital filters, software reset and master clock control . . . . . . . . . . . . . . . 45 Interrupt control and control interface SPI out mode . . . . . . . . . . . . . . . . 46 AGC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6
Control interface and master clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.1 6.2 6.3 Control interface I2C mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Control interface SPI mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Master clock timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
7 8 9
Audio interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 Timing specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Operative ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
9.1 9.2 9.3 9.4 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Operative supply voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Power dissipation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Typical power dissipation by entity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
10
Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
10.1 10.2 10.3 10.4 10.5 10.6 10.7 Digital interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 AMCK with sinusoid input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Analog interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Headset plug-in and push-button detector . . . . . . . . . . . . . . . . . . . . . . . . 64 Microphone bias . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Power supply rejection ratio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 LS and EAR gain limiter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
11
Analog input/output operative ranges . . . . . . . . . . . . . . . . . . . . . . . . . 66
11.1 11.2 11.3 11.4 Analog levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Microphone input levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Line output levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Power output levels HP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
3/85
Contents
STw5098
11.5
Power output levels LS and EAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
12 13 14 15 16 17 18
Stereo audio ADC specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Stereo audio DAC specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 AD to DA mixing (sidetone) specifications . . . . . . . . . . . . . . . . . . . . . . 71 Stereo analog-only path specifications . . . . . . . . . . . . . . . . . . . . . . . . 72 ADC (TX) & DAC (RX) specifications with voice filters selected . . . . . 73 Typical performance plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
18.1 18.2 LFBGA 6x6x1.4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 VFBGA 5x5x1.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
19 20 21
Application schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
4/85
STw5098
List of tables
List of tables
Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. Table 8. Table 9. Table 10. Table 11. Table 12. Table 13. Table 14. Table 15. Table 16. Table 17. Table 18. Table 19. Table 20. Table 21. Table 22. Table 23. Table 24. Table 25. Table 26. Table 27. Table 28. Table 29. Table 30. Table 31. Table 32. Table 33. Table 34. Table 35. Table 36. Table 37. Table 38. Table 39. Table 40. Table 41. Table 42. Table 43. Table 44. Table 45. Table 46. Table 47. Table 48. STw5098 pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Control register summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 CR0 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 CR1 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 CR2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 CR3 and CR4 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 CR5 and CR6 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 CR7 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 CR8 and CR9 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 CR10 and CR11 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 CR12 and CR13 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 CR14 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 CR15 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 CR16 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 CR17 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 CR18 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 CR19 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 CR21-20 and CR24-23 description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 CR22 and CR25 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 CR26 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 CR27 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 CR28 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 CR29 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 CR30 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 CR31 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 CR32 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 CR33 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 CR 34 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 CR 35 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Control interface timing with I²C format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Control interface signal timing with SPI format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 AMCK timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Audio interface signal timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Operative supply voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Power dissipation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Typical power dissipation, no master clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Typical power dissipation with master clock AMCK = 13 MHz . . . . . . . . . . . . . . . . . . . . . . 61 Digital interfaces specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 AMCK with sinusoid input specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Analog interface specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Headset plug-in and push-button detector specifications . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Microphone bias specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Power supply rejection ratio specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 LS and EAR gain limiter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Reference full scale analog levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Microphone input levels, absolute levels at pins connected to preamplifiers . . . . . . . . . . . 66 Microphone input levels, absolute levels at pins connected to the line-in amplifiers . . . . . 66
5/85
List of tables Table 49. Table 50. Table 51. Table 52. Table 53. Table 54. Table 55. Table 56. Table 57. Table 58. Table 59. Table 60.
STw5098
Absolute levels at OLP/OLN, ORP/ORN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Absolute levels at HPL - HPR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Absolute levels at 1EARP-1EARN and 2LSP - 2LSN. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Stereo audio ADC specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Stereo audio DAC specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 AD to DA mixing (sidetone) specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Stereo analog-only path specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 ADC (TX) & DAC (RX) specifications with voice filters selected. . . . . . . . . . . . . . . . . . . . . 73 Dimensions of LFBGA 6x6x1.4 112 4R11x11. 0.5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Dimensions of VFBGA 5x5x1.0 112 balls 0.4 mm pitch . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Order codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
6/85
STw5098
List of figures
List of figures
Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16. Figure 17. Figure 18. Figure 19. Figure 20. Figure 21. Figure 22. Figure 23. Figure 24. Figure 25. Figure 26. Figure 27. Figure 28. Figure 29. Figure 30. Figure 31. Figure 32. Figure 33. Figure 34. Pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 STw5098 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Power up block diagram: example shown for one entity . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Plug-in and push-button detection application note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Control interface I2C format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Control interface: I2C format timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Control interface SPI format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Control interface: SPI format timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Audio interfaces formats: delayed, left and right justified . . . . . . . . . . . . . . . . . . . . . . . . . . 54 Audio interfaces formats: DSP, SPI and PCM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Audio interface timings: master mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Audio interface timing: slave mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 A.C. testing input-output waveform. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Bass treble control, de-emphasis filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Dynamic compressor transfer function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 ADC audio path measured filter response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 ADC in band audio path measured filter response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 DAC digital audio filter characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 DAC in band digital audio filter characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 ADC 96 kHz audio path measured filter response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 ADC 96 kHz audio in-band measured filter response. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 ADC voice TX path measured filter response. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 ADC voice TX path measured in-band filter response . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 DAC voice (RX) digital filter characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 DAC voice (RX) in-band digital filter characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 ADC path FFT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 ADC S/N versus input-level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 DAC path FFT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 DAC S/N versus input-level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Analog path FFT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Analog path S/N versus input-level. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 LFBGA 6x6x1.4 112 4R11x11 0.5 drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 VFBGA 5x5x1.0 112 0.4 drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 STw5098 application schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
7/85
Overview
STw5098
1
Overview
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
Dual 20 bit audio resolution, 8kHz to 96kHz independent rate ADC and DAC Dual I2S/PCM digital interfaces for dual master Sustain complex voice and audio flow with or without mixing Two I2C/SPI compatible independent control interfaces Asynchronous sampling ADC and DAC that do not require oversampled clock and information on the audio data sampling frequency (fs). Jitter tolerant fs Wide master clock range from 4MHz to 32MHz Two stereo headphones drivers, hand free loudspeaker driver, line out drivers Mixable analog line inputs Voice filters: 8/16kHz with voice channel filters Automatic gain control for microphone and line-in inputs Four programmable master/slave serial audio data interfaces: I2S, SPI, PCM compatible and other formats Frequency programmable clock outputs Multibit Σ∆ modulators with data weighted averaging ADC and DAC Four DSP functions for bass-treble-volume control, mute, mono/stereo selection, voice channel filters, de-emphasis filter and dynamic compression 93 dB dynamic range ADC, 0.001% THD with full scale with full scale output @ 2.7V 95 dB dynamic range DAC, 0.02% THD performance @ 2.7V over 16Ω load
Analog inputs
● ● ● ●
Selectable stereo differential or single-ended microphone amplifier inputs with 51dB range programmable gain 2 microphone biasing output Microphone plug-in and push-button detection input Selectable stereo differential or single-ended line inputs with 38dB range programmable gain
Analog output drivers
● ● ● ● ● ●
2 Stereo headphones outputs. driving capability: 40mW (0.1% THD) over 16Ω with 40dB range programmable gain Common mode voltage headphones driver (phantom ground) 1 Balanced loudspeaker output with driving capability up to 500mW (VCCLS>3.5V; 1% THD) over 8Ω with 30dB range programmable gain 1 Balanced earphone output with driving capability up to 125mW Transient suppression filter during power up and power down Balanced/unbalanced stereo line outputs with 1 kΩ driving capability
8/85
STw5098
Pinout
2
Figure 1.
Pinout
Pin assignment
1
2
3
4
5
6
7
8
9
10
11
GND
1SCLK
1AD_OCK
2SDA/SDIN
1DA_OCK
1AD_CK
2AS/CSB
2AD_DATA
2AD_SYNC
1DA_SYNC
1DA_DATA
A
2HDET 2SCLK 2AD_OCK 1CMOD 2DA_OCK 2DA_CK AMCK VCC 2DA_SYNC 2DA_DATA GND
B
VCCA 1HDET VCCA 2CMOD 1SDA/SDIN 2AD_CK
1AD_DATA
1AD_SYNC
2IRQ
2MBIAS
1MBIAS
C
2AUX1L 1AUX1L 1MICLN VCC VCCIO 1DA_CK 1AS/CSB 1IRQ VCCA 1AUX1R 2AUX1R
D
2AUX3L 1AUX3L 1MICLP 2MICLN 2CAPLINEIN 1MICRN 2AUX3R 2MICRN
E
2CAPMIC 1CAPMIC GNDA 2MICLP 1CAPLINEIN 1MICRP 1AUX3R 2MICRP
F
1AUX2LN 2AUX2LN 1LINEINL 2LINEINL GNDA 1AUX2RP 1AUX2RN 2AUX2RN
G
1AUX2LP 2AUX2LP 2OLN GNDCM 1EARPS 1EARP VCCP 1HPR 2ORN 2LINEINR 2AUX2RP
H
1OLN 1OLP 2OLP 2HPL 1VCMHP 1CAPEAR 1EARN VCCLS 2ORP 1ORN 1LINEINR
J
GNDCM VCCP 1HPL 2VCMHPS VCCLS
GNDP
GNDP
1EARNS
VCCLS
1ORP
GNDP
K
VCCP GNDP 1VCMHPS 2VCMHP 2LSPS 2LSP 2CAPLS 2LSN 2LSNS VCCP 2HPR
L
9/85
Pinout
STw5098
Table 1.
Position A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 B1 B2 B3 B4 B5 B6 B7
STw5098 pin description
Type P DI DO DIOD DO DIO DI DO DIO DIO DI AI DI DO DI DO DIO DI AI P DIO DI P P Pin name GND 1SCLK 1AD_OCK 2SDA/SDIN 1DA_OCK 1AD_CK 2AS/CSB 2AD_DATA 2AD_SYNC 1DA_SYNC 1DA_DATA 2HDET 2SCLK 2AD_OCK 1CMOD 2DA_OCK 2DA_CK AMCK Description Ground pin for the digital section Control interface serial clock input Oversampled clock out from AD clock generator Control interface serial data input-output in I2C mode (SDA), control interface serial data input in SPI mode (SDIN). Oversampled clock out from DA clock generator Serial data clock for stereo A/D converter Control interface address select in I2C mode (AS). Interface enable signal in SPI mode (CSB). Serial data out for stereo A/D converter Frame sync for stereo A/D converter Frame sync for stereo D/A converter Serial data In for stereo D/A converter Headset detection input (microphone plug-in and push-button detection) Control interface serial clock input Oversampled clock out from AD clock generator Control interface type selector I2C-bus mode or SPI mode Oversampled clock out from DA clock generator Serial data clock for stereo D/A converter Master clock input. Accepted range 4 MHz to 32 MHz. AMCK is a digital square wave AMCK is an analog sinewave (Section 10.2 on page 62) Power supply pin for the digital section. Operating range: from 1.71 V to 2.7 V Frame sync for stereo D/A converter Serial data in for stereo D/A converter Ground pin for the digital section Power supply pin for the analog section. Standard operating range: from 2.7V to 3.3V Low voltage (LV) range: from 2.4V to 2.7V Headset detection input (microphone plug-in and push-button detection) Power supply pin for the analog section. Standard operating range: from 2.7V to 3.3V Low voltage (LV) range: from 2.4V to 2.7V Control interface type selector I2C-bus mode or SPI mode.
B8 B9 B10 B11 C1
VCC 2DA_SYNC 2DA_DATA GND VCCA
C2
AI
1HDET
C3 C4
P DI
VCCA 2CMOD
10/85
STw5098 Table 1.
Position C5 C6 C7 C8 C9 C10 C11 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 E1 E2 E3 E4 E8 E9 E10 E11 F1 F2 F3 F4
Pinout STw5098 pin description
Type DIOD DIO DO DIO DO AO AO AI AI AI P P DIO DI DO P AI AI AI AI AI AI AI AI AI AI AI AI P AI Pin name 1SDA/SDIN 2AD_CK 1AD_DATA 1AD_SYNC 2IRQ 2MBIAS 1MBIAS 2AUX1L 1AUX1L 1MICLN VCC VCCIO 1DA_CK 1AS/CSB 1IRQ VCCA 1AUX1R 2AUX1R 2AUX3L 1AUX3L 1MICLP 2MICLN 2CAPLINEIN 1MICRN 2AUX3R 2MICRN 2CAPMIC 1CAPMIC GNDA 2MICLP Description Control interface serial data input-output in I2C mode (SDA). Control interface serial data input in SPI mode (SDIN). Serial data clock for stereo A/D converter Serial data out for stereo A/D converter Frame sync for stereo A/D converter Programmable interrupt output. Active low signal. Microphone biasing pin. Fixed voltage reference Microphone biasing pin. Fixed voltage reference Left and right channel single ended pins for microphone or line input Left and right channel single ended pins for microphone or line input Left and right channel differential pins for microphone input Power supply pin for the digital section. Operating range: from 1.71V to 2.7V Power supply pin for the digital I ⁄ O buffers. Operating ranges: from 1.2V to 1.8V and from 1.71V to VCC Serial data clock for stereo D/A converter Control interface address select in I2C mode (AS) Interface enable signal in SPI mode (CSB) Programmable interrupt output. Active low signal. Power supply pin for the analog section. Standard operating range: from 2.7V to 3.3V Low voltage (LV) range: from 2.4V to 2.7V Left and right channel single ended pins for microphone or line input Left and right channel single ended pins for microphone or line input Left and right channel single ended pins for microphone or line input Left and right channel single ended pins for microphone or line input Left and right channel differential pins for microphone input Left and right channel differential pins for microphone input A capacitor must be connected between CAPLINEIN and ground Left and right channel differential pins for microphone input Left and right channel single ended pins for microphone or line input Left and right channel differential pins for microphone input A capacitor must be connected between CAPMIC and ground. A capacitor must be connected between CAPMIC and ground Ground pin for the analog section Left and right channel differential pins for microphone input
11/85
Pinout Table 1.
Position F8 F9 F10 F11 G1 G2 G3 G4 G8 G9 G10 G11 H1 H2 H3 AI AI AI AI AI AI AI AI P AI AI AI AI AI AO
STw5098 STw5098 pin description
Type Pin name 1CAPLINEIN 1MICRP 1AUX3R 2MICRP 1AUX2LN 2AUX2LN 1LINEINL 2LINEINL GNDA 1AUX2RP 1AUX2RN 2AUX2RN 1AUX2LP 2AUX2LP 2OLN Description A capacitor must be connected between CAPLINEIN and ground Left and right channel differential pins for microphone input Left and right channel single ended pins for microphone or line input Left and right channel differential pins for microphone input Left and right channel differential pins for microphone or line input Left and right channel differential pins for microphone or line input Left and right channel single ended pins for line input Left and right channel single ended pins for line input Ground pin for the analog section Left and right channel differential pins for microphone or line input. Left and right channel differential pins for microphone or line input Left and right channel differential pins for microphone or line input Left and right channel differential pins for microphone or line input Left and right channel differential pins for microphone or line input Audio differential line out amplifier for left and right channels. This outputs can drive up to 1kΩ resistive load. Can be used as single ended output. Ground pin for analog reference. GNDCM can be connected to GNDA EARPS, EARNS (sense) pins must be connected on the application board to EARP, EARN pins respectively. The connection must be as close as possible to the pins. Analog differential loudspeaker amplifier output for left channel or right channel or the sum of both. This output can drive 50nF (with series resistor) or directly an earpiece transductor from 8Ω to 32Ω. . Can deliver from 500mW to 125mW. Power supply pin for the left and right output drivers (headphones and line-out). Operating range: from VCCA to 3.3V Audio single ended headphones amplifier outputs for left and right channels. The outputs can drive 50nF (with series resistor) or directly an earpiece transductor of 16Ω . Audio differential line out amplifier for left and right channels. This outputs can drive up to 1kΩ resistive load. Can be used as single ended output. Left and right channel single ended pins for line input Left and right channel differential pins for microphone or line input Audio differential line out amplifier for left and right channels. This outputs can drive up to 1kΩ resistive load. Can be used as single ended output.
H4
P
GNDCM
H5
AO
1EARPS
H6
AO
1EARP
H7
P
VCCP
H8
AO
1HPR
H9 H10 H11 J1
AO AI AI AO
2ORN 2LINEINR 2AUX2RP 1OLN
12/85
STw5098 Table 1.
Position J2 AO
Pinout STw5098 pin description
Type Pin name 1OLP Description Audio differential line out amplifier for left and right channels. This outputs can drive up to 1kΩ resistive load. Can be used as single ended output. Audio differential line out amplifier for left and right channels. This outputs can drive up to 1kΩ resistive load. Can be used as single ended output. Audio single ended headphones amplifier outputs for left and right channels. The outputs can drive 50nF (with series resistor) or directly an earpiece transductor of 16Ω . Common mode voltage headphones output. The negative pins of headphones left and right speakers can be connected to this pin to avoid decoupling capacitors. A capacitor can be connected between this node and ground Analog differential loudspeaker amplifier output for Left channel or Right channel or the sum of both. This output can drive 50nF (with series resistor) or directly an earpiece transductor from 8Ω to 32Ω .; It can deliver from 500mW to 125mW. Power supply pin for the mono differential output driver. Operating range: from VCCA to 5.5V Audio differential line out amplifier for left and right channels. This outputs can drive up to 1kΩ resistive load. Can be used as single ended output. Audio differential line out amplifier for left and right channels. This outputs can drive up to 1kΩ resistive load. Can be used as single ended output. Left and right channel single ended pins for line input Ground pin for analog reference. GNDCM can be connected to GNDA Power supply pins for the left and right output drivers (headphones and line-out). Operating range: from VCCA to 3.3V Audio single ended headphones amplifier outputs for left and right channels. The outputs can drive 50nF (with series resistor) or directly an earpiece transductor of 16Ω . VCMHPS (sense) pin must be connected on the application board to VCMHP pin. The connection must be as close as possible to the pins. Power supply pin for the mono differential output driver. Operating range: from VCCA to 5.5V Ground pin for the left, right and mono-differential output drivers. GNDP and GNDA must be connected together. Ground pin for the left, right and mono-differential output drivers. GNDP and GNDA must be connected together.
J3
AO
2OLP
J4
AO
2HPL
J5 J6
AO AI
1VCMHP 1CAPEAR
J7
AO
1EARN
J8
P
VCCLS
J9
AO
2ORP
J10 J11 K1
AO AI P
1ORN 1LINEINR GNDCM
K2
P
VCCP
K3
AO
1HPL
K4
AO
2VCMHPS
K5 K6 K7
P P P
VCCLS GNDP GNDP
13/85
Pinout Table 1.
Position K8 AO
STw5098 STw5098 pin description
Type Pin name 1EARNS Description EARPS, EARNS (sense) pins must be connected on the application board to EARP, EARN pins respectively. The connection must be as close as possible to the pins. Power supply pins for the mono differential output driver. Operating range: from VCCA to 5.5V Audio differential line out amplifier for left and right channels. This outputs can drive up to 1kΩ resistive load. Can be used as single ended output. Ground pin for the left, right and mono-differential output drivers. GNDP and GNDA must be connected together. Power supply pin for the left and right output drivers (headphones and line-out). Operating range: from VCCA to 3.3V Ground pin for the left, right and mono-differential output drivers. GNDP and GNDA must be connected together. VCMHPS (sense) pin must be connected on the application board to VCMHP pin. The connection must be as close as possible to the pins. Common mode voltage headphones output. The negative pins of headphones left and right speakers can be connected to this pin to avoid decoupling capacitors. LSPS, LSNS (sense) pins must be connected on the application board to LSP, LSN pins respectively. The connection must be as close as possible to the pins. Analog differential loudspeaker amplifier output for Left channel or Right channel or the sum of both. This output can drive 50nF (with series resistor) or directly an earpiece transductor of 8Ω It can .; deliver up to 500mW. A capacitor can be connected between this node and ground Analog differential loudspeaker amplifier output for Left channel or Right channel or the sum of both. This output can drive 50nF (with series resistor) or directly an earpiece transductor of 8Ω Can deliver . up to 500mW. LSPS, LSNS (sense) pins must be connected on the application board to LSP, LSN pins respectively. The connection must be as close as possible to the pins. Power supply pin for the left and right output drivers (headphones and line-out). Operating range: from VCCA to 3.3V Audio single ended headphones amplifier outputs for left and right channels. The outputs can drive 50nF (with series resistor) or directly an earpiece transductor of 16Ω .
K9
P
VCCLS
K10
AO
1ORP
K11
P
GNDP
L1
P
VCCP
L2
P
GNDP
L3
AO
1VCMHPS
L4
AO
2VCMHP
L5
AO
2LSPS
L6
AO
2LSP
L7
AI
2CAPLS
L8
AO
2LSN
L9
AO
2LSNS
L10
P
VCCP
L11
AO
2HPR
14/85
STw5098
Pinout
Type definitions
AI AO AIO DI DO DIO DIOD P Analog input Analog output Analog input output Digital input Digital output Digital input output Digital input output open drain Power supply or ground
15/85
3
ADLIN1
ADMIC1
MIXLIN1
MIXMIC1
16/85
GNDA VCCIO VCC GND VCCA 1IRQ 2IRQ 1HDET 2HDET 1SDA/SDIN 1SCLK 1AS/CSB 2AS/CSB 2CMOD 1CMOD 2SCLK 2SDA/SDIN 2MICLP LINSEL2 2MICLN Stereo Diff. 2MICRP 2MICRN 2AUX1L 2AUX1R 2AUX2PL AGC (from DSP) MICSEL2 Stereo Diff. MICLG2 MICRG2 0÷39 dB Step 1.5 MIC L-R PreAmps Stereo Sing.E. 2AUX2NL 2AUX2PR 2AUX2NR 2AUX3L 2AUX3R 2LINEINR Stereo Sing.E. 2LINEINL Comm. Mode 2CAPMIC 2CAPLINEIN IRQ Gen Control I/F LINLG2 LINRG2 -20:+18 dB Step 2 LIN L-R Amps Stereo Sing.E. Headset Detection AGC (from DSP) Stereo Path Power-On Reset Registers R Control Logic Stereo Path L LINEIN AUX1 AUX2 AUX3 MUTE MICLA2 MICRA2 -12÷0 dB Step 1.5
ADLIN2
Figure 2.
VCCP
VCCLS
GNDP
GNDCM
1MICLP
1MICLN
LINSEL1
AGC (from DSP)
1MICRP
Stereo Diff.
Block diagram
1MICRN
LINLG1 LINRG1 -20:+18 dB Step 2
1AUX1L
1AUX1R
Stereo Sing.E.
LINEIN AUX1 AUX2 AUX3 MUTE
LIN L-R Amps
L
R
1AUX2PL
1AUX2NL
1AUX2PR
Stereo Diff.
MICSEL1
AGC (from DSP)
AUX2NR
MICLG1 MICRG1 0÷39 dB Step 1.5 L R
1AUX3L
1AUX3R
Stereo Sing.E.
MICLA1 MICRA1 -12÷0 dB Step 1.5
MIC L-R PreAmps
L
1LINEINR
1LINEINL
Stereo Sing.E.
MIC AUX1 AUX2 AUX3 MUTE
R
MIC AUX1 AUX2 AUX3 MUTE
1CAPMIC
1CAPLINEIN
Comm. Mode
STw5098
ADMIC2
Block diagram
STw5098 block diagram
1MBIAS
Mic. Bias
2.1V Reference
2.1V Reference
Mic. Bias
2MBIAS
LOG: -18:0 dB Step 3 Oscillator
LOG: -18:0 dB Step 3 Left LineOut MICLO2 Bandgap Right LineOut CurrentBias 2ORP 2ORN 2OLP 2OLN
1OLP
1OLN
Left LineOut
MICLO1
1ORP
1ORN
Right LineOut
MIXLIN2
MIXMIC2
1HPL
Left Driver
-40:0 dB Step 2 Transient Suppr. Filter
R
L
L
R
-40:0 dB Step 2 Transient Suppr. Filter
Left Driver HPLG2 Voltage Reference
CM Driver
2HPL
HPLG1
1VCMHP
CM Driver
Voltage Reference
2VCMHP 2VCMHPS -40:0 dB Step 2 Transient Suppr. Filter Right Driver HPRG2 2LSPS 2LSP Mono Driver 2CAPLS 2LSN 2LSNS 2HPR
1VCMHPS
1HPR
Right Driver
-40:0 dB Step 2 Transient Suppr. Filter
HPRG1
1EARPS
1EARP Σ∆ADC Σ∆ADC
1CAPEAR
Mono Driver
1EARN
LSG1 -24:6 dB Step 2 Transient Suppr. Filter
LSSEL1 L (L+R)/2 R
Stereo ADC
Stereo ADC
LSSEL2 L (L+R)/2 R
LSG2 -24:6 dB Step 2 Transient Suppr. Filter
1EARNS
1AD_DATA Digital AD-PLL AD_SYNC1 AD_SYNC2 Digital AD-PLL
AD Sample Rate Converter
AD Sample Rate Converter
2AD_DATA
1AD_CK MIXDAC1 ADCHSW
Audio AD-I/F
DSP1
DSP2
MIXDAC2 ADCHSW ADMONO
Audio AD-I/F
2AD_CK 2AD_SYNC
1AD_SYNC
ADMONO
1AD_OCK
CK Gen/ Master Mode
Analog Filter
AGC (Mic&Lin)
Analog Filter
ADC Filter Digital Audio/Voice Gain
ADC Filter Audio/Voice Digital Gain
AGC (Mic&Lin)
CK Gen/ Master Mode
2AD_OCK
MCK1 DAC
AMCK
PLL
DA to AD Mixing Gain
Stereo DAC
Stereo DAC
MCK2 DAC DA to AD Mixing Gain
(Audio Only)
PLL
(Audio Only)
AD to DA Mixing Gain (sidetone)
AD to DA Mixing Gain (sidetone)
AMCK Σ∆ Modulator
Bass Treble
Bass Treble Σ∆ Modulator DAC Filter Digital Audio/Voice Gain
(Audio only)
AMCK
(Audio only)
1DA_OCK DAC Filter Digital Gain Audio/Voice
2DA_OCK Dyn.Comp. CK Gen/ Master Mode
CK Gen/ Master Mode
Dyn.Comp.
DACHSW Digital DA-PLL DA_SYNC1
1DA_SYNC
DAMONO
DA Sample Rate Converter
DA_SYNC2
Digital DA-PLL
DACHSW DAMONO Audio DA-I/F 2DA_SYNC 2DA_CK 2DA_DATA
DA Sample Rate Converter
1DA_CK
Audio DA-I/F
1DA_DATA
STw5098
STw5098
Functional description
4
4.1
Functional description
Naming convention
The STw5098 is composed of two identical entities, with their respective set of control registers. Regarding the pin labelling, a pin name preceded by 1 refers to entity 1 and a pin name preceded by 2 refers to entity 2 (ie.g. 1SCLK, 2SCLK). In the following sections, no distinction is made between the two entities when it is not relevant. Consequently, the 1 and 2 prefixes for entities 1 and 2 respectively are omitted. The same naming convention applies to the control registers (CRxxx).
4.2
Power supply
STw5098 can have different supply voltages for different blocks, to optimize performance, power consumption and connectivity. See Section 9.2 on page 59 for voltage definition. The correct sequence to apply supply voltage is to set first (and unset last) the digital I/O supply (VCCIO). The other supply voltages can be set in any order and can be disconnected individually, if needed. Disconnection does not cause any harm to the device and no extra current is pulled from any supply during this operation. Moreover if a voltage conflict is detected, like VCCA < VCC (not allowed), simply all blocks connected to VCCA are set to power down and no extra current is pulled from supply. When VCCIO is set and VCC (digital supply) is not set, all the digital output pins are in high impedance state, while the digital inputs are disconnected to avoid power consumption for any input voltage value between GND and VCCIO. Before VCC is disconnected the device has to be reset (SWRES bit in CR30). When the analog supply (VCCA) is set and VCC is not set, all the analog inputs are in high impedance state. The two sets of control registers are powered by VCC pins (digital supply) so if these pins are disconnected all the information stored in control registers is lost. When the digital supply voltage is set, a power-on-reset (POR) circuit sets all the registers content to the default value and then generates IRQ signals writing 1 in bits PORMSK end POREV in CR31 and CR32 respectively for both entities. All supplies must be on during operation.
17/85
Functional description
STw5098
4.3
Device programming
STw5098 can be programmed by writing Control Registers with SPI or I2C compatible control interface (both slave). The interface is always active, there is no need to have the master clock running to program the device registers. The control interfaces of each entity can be operated independently either in SPI or I2C modes. The choice between the two interfaces for each entity is done via their input pins 1CMOD and 2CMOD (CMOD): 1. CMOD connected to GND: I2C compatible mode selected The device address is selected with AS pin:
chip address 00110101(35hex) for reading, 00110100 (34hex) for writing chip address 00110111(37hex) for reading, 00110110 (36hex) for writing
AS/CSB connected to GND: AS/CSB connected to VCCIO:
When this mode is selected control registers are accessed through pins: SCLK (clock) SDA (serial data out/in, open drain) 2. CMOD connected to VCCIO: SPI compatible mode selected When this mode is selected control registers are accessed through: AS/CSB (chip select, active low) SCLK (clock) SDIN (serial data in) AD_OCK or DA_OCK or IRQ (serial data out, if selected)
Device Programming: I2C. The I2C Control Interface timing is shown in Section 6.1 on page 50. The interface has an internal counter that keeps the current address of the control register to be read or written. At each write access of the interface the address counter is loaded with the data of the register address field. The value in the address counter is increased after each data byte read or write. It is possible to access the interface in 2 modes: single-byte mode in which the address and data of a single register are specified, and multi-byte mode in which the address of the first register to be written or read is specified and all the following bytes exchanged are the data of successive registers starting from the one specified (in multi-byte mode the internal address counter restart from register 0 after the last register 36). Using the multi-byte mode it is possible to write or read all the registers with a single access to the device on the I2C bus. This applies to both entities of the device. Device Programming: SPI. The SPI Control Interface timing is shown in section Section 6.2 on page 51. Bits SPIOSEL (SPI Output Select) in CR33 control the out pin selection for serial data out (none, AD_OCK, DA_OCK or IRQ), while bit SPIOHIZ=1 in CR33 selects the high impedance state of serial data out pin when idle. The first bit sent on SDIN, after AS/CSB falling edge, sets the interface for writing (SDIN=1) or reading (SDIN=0), then a 7-bit Control Register address follows. If the interface is set for writing then the last 8 bits on SDIN are written in the control register. If the interface is set for reading then after the 7 bit address STw5098 sends out 8 bits data on the pin selected with bits SPIOSEL in CR33, while bits present at SDIN pin are ignored. If SPIOSEL=00 (no out pin selected) the reading access on SPI interface can still be useful to clear the IRQ event bits in CR32.
18/85
STw5098
Functional description
4.4
Power up
STw5098 internal blocks can individually be switched on and off according to the user needs. A general power-up bit is present at bit 7 of CR0. The output drivers should always be powered up after the general power up. See the following drawing to select the needed block for the desired function. A fast-settling function is activated to quickly charge external capacitors when the device is switched on (CAPLS, CAPLINEIN and CAPMIC). Figure 3. Power up block diagram: example shown for one entity
ENANA ENMICL ENHSD MBIAS POWERUP
ENMICR
ENADCL
STw5098
ENLINL
ENADCR
ENADCKGEN
ENLINR ADMAST ENADOCK
ENLOL
AUDIO I/F
DAMAST ENDAOCK ENHPL ENMIXL
ENLS ENMIXL
ENDACL
ENDACKGEN
ENHPR
ENDACR
ENPLL
ENLOR ENOSC=0
ENAMCK
ENOSC=1 ENHPVCM
ENOSC
4.5
Master clock
Master clock is applied to both entities. The master clock pin (AMCK) accepts any frequency from 4 MHz to 32 MHz. The 4-32 MHz range is divided in sub-ranges that have to be programmed in bits CKRANGE in CR30. The jitter and spectral properties of this clock have a direct impact on the DAC and ADC performance because it is used to directly or by integer division drive the continuous-time to sampled-time interfaces.
19/85
Functional description
STw5098
Note that AMCK clock does not need to have any relation to any other digital or analog input or output. AMCK can be either a square wave or a sinewave, bit AMCKSIN in CR30 selects the proper input mode. When a sinewave is used as input, AMCK pin must be decoupled with a capacitor. Specification for sinusoid input can be found in Section 10.2 on page 62. The AMCK clock is not needed when only analog functions are used. For this purpose an internal oscillator with no external components can be used to operate the device (see Section 4.14 on page 25).
4.6
Data rates
STw5098 supports any data rate in 2 ranges: 8 kHz to 48 kHz and 88 kHz to 96 kHz. The range is selected with bits DA96K and AD96K in CR29 for AD and DA paths respectively.
Note:
When AD96K=1 it is required to have DA96K=1.
The rates are fully independent in A/D and D/A paths. Moreover the rates do not have to be specified to the device and they can change on the fly, within one range, while data is flowing. The 2 audio data interfaces (for A/D and D/A) can independently operate in master or slave modes.
4.7
Clock generators and master mode function
STw5098 provides 4 internal clock generators that can drive, if needed, the audio interfaces (master mode), and/or two independent master clocks. The AMCK clock input frequency is internally raised via a PLL on each entity to obtain a clock (MCK) in the range 32 MHz to 48 MHz. The ratio MCK/AMCK is defined in CR30 (see MCKCOEFF in Section 4.7 on page 20). MCK is used to obtain, by fractional division, the oversampled clock (OCK), word clock (SYNC) and bit clock (CK), that will therefore have edges aligned with MCK (the OCK period can have jitter of 1 MCK period). The frequency of OCK, SYNC and CK is set with DAOCKF in CR21/20 for DA interface, and ADOCKF in CR24/23 for AD interface. The ratio between OCK and SYNC clocks is selected with bit DAOCK512 in CR22 for DA interface and bit ADOCK512 in CR25 for AD interface. The ratio between CK and SYNC clocks depends on the selected interface format (see Audio digital interfaces paragraph below). Note that SPI format can only be slave. The ADOCK and DAOCK output clocks are activated by bits ENADOCK and ENDAOCK respectively, while master mode generation is activated with two bits: first ADMAST (DAMAST) sets ADSYNC and ADCK (DASYNC and DACK) pins as outputs, then ADMASTGEN (DAMASTGEN) generates the SYNC and CK clocks. The logical value at SYNC and CK pins before data generation depends on the interface selected format. See description of CR20 to CR25 for further details.
20/85
STw5098
Functional description
4.8
Audio digital interfaces
Four separate audio data interfaces are provided for AD and DA paths to have maximum flexibility in communicating with other devices. The 4 interfaces can have different rates and can work in different formats and modes (i.e an AD interface can be 8 kHz PCM slave while a DA is 44.1 kHz I2S master). The pins used by the interfaces are: AD_SYNC, AD_CK and AD_DATA for AD paths word clock, bit clock and data, respectively, and DA_SYNC, DA_CK and DA_DATA for DA paths word clock, bit clock and data, respectively. Data is exchanged with MSB first and left channel data first in all formats. Data word-length is selected with bits DAWL in CR26 and ADWL in CR27. AD_DATA pin, outside the selected time slot, is in the impedance condition selected by bit ADHIZ in CR28 in all data formats except right aligned format. In the following paragraphs SYNC, CK and DATA will be used when the distinction between AD and DA is not relevant. When Master Mode is selected (bits DAMAST and ADMAST in CR22 and CR25 respectively) the SYNC and CK clocks are generated internally. In addition, an oversampled clock can be generated for each interface (AD_OCK and DA_OCK). The clock is available in Slave Mode also, if needed. The AD and DA interfaces can also be used as a single bidirectional interface when they are configured with the same format (Delayed, DSP, etc.) and AD_SYNC is connected to DA_SYNC and DA_CK to AD_CK. Master Mode is still available selecting ADMAST or DAMAST (not both). The interfaces features are controlled with control registers CR26, CR27 and CR28. Supported operating formats:
●
Delayed format (I2S compatible) (DAFORM or ADFORM =000): the Audio Interface is I2S compatible (Figure 9 on page 54). The number of CK periods within one SYNC period is not relevant, as long as enough CK periods are used to transfer the data and the maximum frequency limit specified for bit clock is not exceeded. CK can be either a continuous clock or a sequence of bursts. In master mode there are 32 CK periods per SYNC period (that means 16 CK periods per channel) when the word length is 16 bit, while there are 64 CK periods per SYNC period (or 32 CK periods per channel) when word length is 18bit or higher. Bits ADSYNCP, DASYNCP and ADCKP, DACKP affect the interface format inverting the polarity of SYNC and CK pins respectively. Left aligned format (DAFORM or ADFORM =001): this format is equivalent to delayed format without the 1 bit clock delay at the beginning of each frame (Figure 9 on page 54). Right aligned format (DAFORM or ADFORM =010): this format is equivalent to delayed format, except that the audio data is right aligned and that the number of CK periods is fixed to 64 for each SYNC period (Figure 9 on page 54). DSP format (DAFORM or ADFORM =011) in this format the audio interface starting from a frame sync pulse on SYNC receives (DA) or sends (AD) the left and right data one after the other (Figure 10 on page 55). The number of CK periods within one SYNC period is not relevant, as long as enough CK periods are used to transfer the data and the maximum frequency limit specified for bit clock is not exceeded. CK can be either a continuous clock or a sequence of bursts. In Master Mode there are 32 CK periods per SYNC period when the word length is 16 bit, while there are 64 CK periods per SYNC period when word length is 18bit or higher. Bit CKP (ADCKP and DACKP)
●
●
●
21/85
Functional description
STw5098
affects the interface format inverting the polarity of CK pin. Bit SYNCP (ADSYNCP and DASYNCP) switches between delayed (SYNCP=0) and non delayed (SYNCP=1) formats. DSP format is suited to interface with a multi-channel serial port.
●
SPI format (DAFORM or ADFORM =100) in this format left and right data is received with separate data burst. Every burst is identified with a low level on SYNC signal (Figure 10 on page 55). There is no timing difference between the left and right data burst: the two channels are identified by the startup order: the first burst after AD path or DA path power-up identifies the left channel data, the second one is the Right channel data, then left and right data repeat one after the other. CK must have 16 periods per channel in case of 16 bit data word and 32 periods per channel in case of 18 bit to 32 bit data word. The SPI interface can be configured as a single-channel (mono) interface with bit SPIM (ADSPIM and DASPIM). The mono interface always exchanges the left channel sample. SPI-format can only be slave: if Master Mode is selected the CK and SYNC pins are set to 0. Bit CKP (ADCKP and DACKP) affects the interface format inverting the polarity of CK pin. PCM format (DAFORM or ADFORM =111): this format is monophonic, as it can only receive (DA) and transmit (AD) single channel data (Figure 10 on page 55). It is mainly used when voice filters are selected. If audio filters are used then the same sample is sent from DA-PCM interface to both channel of DA path, and the left channel sample from AD path is sent to AD-PCM interface. If in the AD path the right channel has to be sent to the PCM interface then the following must be set: ADRTOL=1 (CR27) and ENADCR=0 (CR1). In Master Mode the number of CK periods per SYNC period is between 16 and 512 (see DAPCMF in CR22 and ADPCMF in CR25 Section 4.7 on page 20 for details). Bit CKP (ADCKP and DACKP) affects the interface format inverting the polarity of CK pin. Bit SYNCP (ADSYNCP and DASYNCP) switches between delayed (SYNCP=0) and non delayed (SYNCP=1) formats.
●
4.9
Analog inputs
Each entity of the STw5098 has a stereo Microphone preamplifier and a stereo Line In amplifier, with inputs selectable among 5: MIC (for Microphone preamplifiers only), LINEIN (for Line In amplifiers only) and 3 different AUX inputs (for Microphone and Line In amplifiers). The AUX inputs can be used simultaneously for Line In amplifiers and Microphone preamplifiers. The following description is for one entity, it is similar for the other entity.
●
Microphone preamplifier: it has a very low noise input, specifically designed for low amplitude signals. For this reason the preamplifier has a high input gain (up to 39 dB) keeping a constant 50 kΩ input impedance for the whole gain range. However it can also be used as line in preamplifier because it can accept a high dynamic input signal (up to 4 Vpp). There are two separate gain and attenuation stages in order to improve the S/N ratio when the preamplifier output range is below full scale (volume control).The gain and attenuation controls are separate for left and right channel (CR3 and CR4 respectively). The Preamplifier input is selected with bits MICSEL in CR18, and it is disconnected when MICMUTE=1. If a single ended input is selected then the preamplifier uses the selected pin as the positive input and connects the negative input (for both left and right channels) to CAPMIC pin, which has to be connected through a capacitor to a low noise ground (typically the same reference ground of the input).
22/85
STw5098
Functional description Each stereo Microphone preamplifier is powered up with bits ENMICL and ENMICR in CR1.
●
Line In amplifier: each line in amplifier is designed for high level input signal. The input gain is in the range -20 dB up to 18 dB. The Line In amplifier input is selected with bits LINSEL in CR18, and it is disconnected when LINMUTE=1. If a single ended input is selected then the amplifier uses the selected pin as the positive input and connects the negative input (for both left and right channels) to CAPLINEIN pin, which has to be connected through a capacitor to a low noise ground (typically the same reference ground of the input). The stereo Line In amplifier is powered up with bits ENLINL and ENLINR in CR1.
4.10
Analog output drivers
Each entity of the STw5098 provides 3 different analog signal outputs and 1 common mode reference output. The description here below is for one entity. VCCP and VCCL are common for both entities.
●
Line out drivers: it is a stereo differential output, it can be used as single-ended output just by using the positive or negative pin. It can drive 1 kΩ resistive load. The load can be connected between the positive and negative pins or between one pin and ground through a decoupling capacitor. The output gain is regulated with LOG bits in CR7, in the range 0 to -18 dB, simultaneously for left and right channels. When used as a single ended output the effective gain is 6 dB lower. It is muted with bit MUTELO in CR19. The input signal of this stereo output can come from the analog mixer or directly from MIC preamplifiers. The output Common Mode Voltage level is controlled with bits VCML in CR19. The supply voltage of line out drivers is VCCP . The line out drivers are powered up with bits ENLOL and ENLOR in CR1. The output pins are in high impedance state with a 180kΩ pull-down resistor when the line out drivers are powered down. Headphones drivers: it is a stereo single ended output. It can drive 16 ohm resistive load and deliver up to 40 mW. The output gain is regulated with HPLG and HPRG bits in CR8 and CR9 respectively, with a range of -40 to 6 dB. It is muted with bit MUTEHP in CR19. The input signal of this stereo output comes from the analog mixer.The output common mode voltage is controlled with bits VCML in CR19. The supply voltage of headphones drivers is VCCP . The headphones drivers are powered up with bits ENHPL and ENHPR in CR2.The output pins are in high impedance state when the headphones drivers are powered down. Common mode voltage driver: it is a single ended output with output voltage value selectable with bits VCML in CR19, from 1.2 V to 1.65 V in steps of 150 mV. The output voltage should be set to the value closest to VCCP/2 to optimize output drivers performance. The common mode voltage driver is designed to be connected to the common pin of stereo headphones, so that decoupling capacitors are not needed at HPL and HPR outputs. The supply voltage of the common mode voltage driver is VCCP . The common mode voltage driver is powered up with bit ENHPVCM in CR2.The output pin is in high impedance state when the common mode voltage driver is powered down.
●
●
23/85
Functional description
●
STw5098
Loudspeaker driver (one entity only): it is a monophonic differential output. It can drive 8 Ω resistive load and deliver up to 500 mW to the load. The output gain is regulated with LSG bits in CR7, in the range -24 to +6 dB. The input signal of the loudspeaker driver comes from the analog mixers: bits LSSEL in CR29 select left channel, right channel, (L+R)/2 (mono) or mute. The output common mode voltage is obtained with an internal voltage divider from VCCLS and it is connected to CAPLS pin. The supply voltage of the loudspeaker driver is VCCLS. The loudspeaker driver is powered up with bit ENLS in CR2.The output pin is in high impedance state when the loudspeaker driver is powered down.
Note:
1
Together with the LS driver, only a second power output is allowed among: Ear (1EARP - 1EARN) Headphones 1 (1HPL and 1HPR) Headphones 2 (2HPL and 2HPR) ● Earphone driver (one entity only): it is a monophonic differential output. It can drive 32 Ω resistive load and deliver up to 125 mW to the load. The output gain is regulated with EARG bits in CR7, in the range -24 to +6 dB. The input signal of the loudspeaker driver comes from the analog mixers: bits EARSEL in CR29 select left channel, right channel, (L+R)/2 (mono) or mute. The output Common Mode Voltage is obtained with an internal voltage divider from VCCLS and it is connected to CAPEAR pin. The supply voltage of the loudspeaker driver is VCCLS. The loudspeaker driver is powered up with bit ENEAR in CR2.The output pin is in high impedance state when the loudspeaker driver is powered down. Note on direct connection of VCCLS to the battery: The voltage of batteries of handheld devices during charging is usually below 5.5 V, making VCCLS supply pin suitable for a direct connection to the battery. In this case if STw5098 is delivering the maximum power to the load and the ambient temperature is above 70 °C then the simultaneous charging of the battery can overheat the device. A basic protection scheme is implemented in STw5098 (activated with bit LSLIM in CR19): it limits the maximum gain of the loudspeaker to -6 dB when VCCLS is above 4.2 V, and it removes the limit for VCCLS below 4.0 V. The loudspeaker gain is left unchanged if it is set below -6 dB with bits LSG. This event (VCCLS > 4.2 V) can generate, if enabled (bit VLSMSK in CR31), an IRQ signal.
Note:
4.11
Analog mixers
STw5098 can send to the output drivers the sum of stereo audio signals from 3 different sources of each entity: DA path (bit MIXDAC in CR17), Microphone Preamplifiers (bit MIXMIC in CR17) and Line In Amplifiers (bit MIXLIN in CR17). The analog mixers do not have a gain control on the inputs, therefore the user should reduce the levels of the input signals within the analog signal range. The stereo analog mixers are powered up with bits ENMIXL and ENMIXR in CR2.
4.12
AD paths
In each entity the AD path converts audio signals from Microphone Preamplifiers (selected with bit ADMIC in CR17) and Line In Amplifiers (bit ADLIN in CR17) inputs to digital domain. If both inputs are selected then the sum of the two is converted. After AD conversion the audio data is resampled with a sample rate converter and then processed with the internal DSP. Two different filters are selectable in the DSP (bit ADVOICE in CR29): stereo Audio
24/85
STw5098
Functional description Filter, with DC offset removal and FIR image filtering; and a standard mono voice-channel filter (uses left channel input and feeds both channel output). The AD path includes a digital gain control (ADCLG, ADCRG in CR12 and CR13 respectively) in the range -57 to +8 dB. The maximum gain from Mic Preamplifier to AD interface is then 47 dB. When Audio filter is selected in both AD and DA paths then DA audio data can be summed to AD data and sent to the AD Audio Interface (see DA2ADG in CR15). Left and right channels can be independently switched on and off to save power, if needed (bits ENADCL and ENADCR in CR1)
4.13
DA paths
In each entity the DA path converts digital data from the digital audio interface to analog domain and feeds it to the analog mixer. Incoming audio data is processed with a DSP where different filters are selectable (bit DAVOICE in CR29): Audio filter, stereo, with FIR image filtering, bass and treble controls (bits BASS and TREBLE in CR14), de-emphasis filter; and a standard voice channel filter, mono (uses left channel input and feeds both channel output). A dynamic compression function is available for both audio and voice filters (bit DYNC in CR14). The DA path includes a digital gain control (DACLG, DACRG in CR10 and CR11 respectively) in the range -65 to 0 dB. AD to DA mixing (sidetone) can be enabled: see CR16 for details. Left and right channel can be independently switched on and off to save power, if needed (bits ENDACL and ENDACR in CR1).
4.14
Analog-only operations
Each entity from the STw5098 can operate without AMCK master clock if analog-only functions are used. It is possible to mix Microphone and Line In preamplifiers signals and listen through headphones, loudspeaker or send them to line-out. The analog-only operation is enabled with bit ENOSC in CR0. When ENOSC=1 the AD and DA paths cannot be used. In Analog Mode, each of the two entities can handle two different stereo audio signals, so it can be used as a front end for an external voice codec that does not include microphone preamplifiers and power drivers: mic signal is sent through Microphone preamplifiers directly to line out drivers (Transmit path), while Receive signal is sent through Line In amplifiers to the selected power drivers.
4.15
Automatic Gain Control (AGC)
STw5098 provides a digital Automatic Gain Control in AD path for each entity. The circuit can control the input gain at MIC preamplifier, Line In amplifier or both (bits ENAGCMIC and ENAGCLIN in CR35). When one input is selected, the center gain value used for the input is fixed with bits MICLG, MICRG, LINLG and LINRG in CR3 to CR6 (like in normal operation), then the AGC circuit adds to all the gains a value in the range -10.5 dB to +10.5 dB (or, extended with bit AGCRANGE in CR35, -21 dB to 21 dB), in order to obtain an average level at the digital interface output in the range -6 dB to -30 dB (selected with bits AGCLEV in CR35). The AGC added gain acts directly in the input gain, to avoid input saturation and improve S/N ratio, so it cannot exceed the input gain range. When MIC and Line-In inputs are selected simultaneously the control is performed on the sum of the two, preserving the balance fixed with input gains. Different values for Attack and Decay constants can be selected, depending on the kind of signal the AGC has to control (i.e. voice, music). The
25/85
Functional description
STw5098
Attack and Decay time constants are related to the AD data rate (see bits AGCATT and AGCDEL in CR34).
4.16
Interrupt request: IRQ pins
On each entity of the STw5098, the interrupt request feature can signal to a control device the occurrence of particular events on each entity. Two control registers are used to choose the behavior of IRQ pin: the first is a Status/Event Register (CR32), where bits can represent the status of an internal function (i.e. a voltage is above or below a threshold) or an event (i.e. a voltage changed crossing a threshold); the second is a Mask Register (CR31) where if a bit in the mask is set to 1 then the corresponding bit in the Status/Event Register can affect IRQ pin status. On each entity, the IRQ pin is always active low. At VCC power up an interrupt request is generated by the Power-On-Reset circuit that sets to 1 bits PORMSK in CR31 and POREV in CR32. After this event the PORMSK bit should be cleared by the user and bit IRQCMOS in CR33 should be set according to the application (open drain or CMOS). When an IRQ event occurs and SPI control interface is selected with no serial output pin it is still possible to identify the event (and relative status) that generated the interrupt request. This can be done by setting the IRQ mask/enable bits (in CR31) one at the time (with successive writings) and reading the IRQ pin status. A simple example of this is the headset plug-in detection: at first we set bit HSDETMSK=1 in CR31 (with all the other bits set to 0). If there is an interrupt request then we set HSDETMSK=0 and HSDETEN=1, so we can read the HSDET status at IRQ pin. Then we read CR32 to clear its content (even if no data is sent out).
4.17
Headset plug-in and push-button detection
Each entity of the STw5098 can detect the plug-in of a microphone connector and the press/release event of a call/answer push-button. An application example can be found below, while specifications can be found in Section 10.4 on page 64. Figure 4. Plug-in and push-button detection application note
HDET 200nF VCCA 3kΩ 1.5kΩ Call/Answer Button 10µF 200nF CAPMIC AUX1L AUX1R
STw5095
From driver Generic Connector
26/85
STw5098
Functional description
4.18
Microphone biasing circuits
The Microphone Biasing Circuits can drive mono or stereo microphones and can switch them off when not needed in order to save the current used by the microphone biasing network on each entity. Two bits control the behavior of the microphone bias circuit: MBIAS in CR17 enables the circuit (fixed voltage at MBIAS pin), while bit MBIASPD in CR17 affects the behavior of MBIAS pin when the function is not enabled. In particular when MBIASPD=1 the MBIAS pin is pulled down, otherwise it is left in tristate mode. The specification for the microphone biasing circuits can be found in Section 10.6 on page 64.
27/85
Control registers
STw5098
5
5.1
Table 2.
CR# (hex) CR0 (00h) CR1 (01h) CR2 (02h) CR3 (03h) CR4 (04h) CR5 (05h) CR6 (06h) CR7 (07h) CR8 (08h) CR9 (09h) CR10 (0Ah) CR11 (0Bh) CR12 (0Ch) CR13 (0Dh) CR14 (0Eh) CR15 (0Fh) CR16 (10h) CR17 (11h)
Control registers
Summary
Control register summary
Description Supply & power control #1 Power control #2 Power control #3 Mic gain left Mic gain right Line in gain left Line in gain right LO gain & LS gain HPL gain HPR gain DAC digital gain left DAC digital gain right ADC digital gain left ADC digital gain right Bass/treble/deemphasis DA to AD mixing gain AD to DA mix/sidetone gain Mixer switches & mic bias
X
D7
POWER UP
D6
D5
D4
D3
D2
D1
D0
Def.
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1001 0000 1001 0000 0011 0000 0011 0000 0011 0000 0000 0000 0000 0000 1000 0000 1000 0000 0000 0000 0000
ENANA
ENAMCK
ENOSC
ENPLL
ENHSD
A24V
D12V
ENADCL
ENADCR
ENDACL
ENDACR
ENMICL
ENMICR
ENLINL
ENLINR
ENLOL
ENLOR
ENHPL
ENHPR
ENHPVC M
1ENEAR 2ENLS
ENMIXL
ENMIXR
MICLA(2:0)
MICLG(4:0)
MICRA(2:0)
MICRG(4:0)
X
X
LINLG(4:0)
X
X
X
LINRG(4:0)
X
LOG(2:0)
1EARG(3:0) 2LSG(3:0)
X
X
X
HPLG(4:0)
X
X
X
HPRG(4:0)
X
X
DACLG(5:0)
X
X
DACRG(5:0)
X
X
ADCLG(5:0)
X
X
ADCRG(5:0)
DYNC
TREBLE(2:0)
BASS(3:0)
X
X
X
DA2ADG(4:0)
X
X
AD2DAG(5:0)
0000 0000
MBIAS
M BIASPD
ADMIC
ADLIN
MIXMIC
MIXLIN
MIXDAC
MICLO
0000 0000
28/85
STw5098 Table 2.
CR# (hex) CR18 (12h) CR19 (13h) CR20 (14h) CR21 (15h) CR22 (16h) CR23 (17h) CR24 (18h) CR25 (19h) CR26 (1Ah) CR27 (1Bh) CR28 (1Ch) CR29 (1Dh) CR30 (1Eh) CR31 (1Fh) CR32 (20h) CR33 (21h) CR34 (22h) CR35 (23h) CR36 (24h)
Control registers Control register summary
Description D7 D6 D5 D4 D3 D2 D1 D0 Def.
0010 0100 0101 1000 0000 0000 0000 0000 DAO CK512 0000 0000 0000 0000 0000 0000 ADO CK512 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
Input switches Drivers control DAOCK frequency LSB DAOCK frequency MSB DA clock generator control ADOCK frequency LSB ADOCK frequency MSB AD Clock generator control DAC data IF control ADC data IF control DAC&ADC data IF control Digital filters control Soft reset & AMCK range Interrupt mask Interrupt status Misc. control AGC attack/decay coeff. AGC control RESERVED
X
IN2VCM
LINMUTE
LINSEL(1:0)
MICMUTE
MICSEL(1:0)
VCML(1:0)
X
MUTELO
MUTEHP
1EARLIM 2LSLIM
1EARSEL(1:0) 2LSSEL(1:0)
DAOCKF(7:0)
DAOCKF(15:8)
X
X
DAMAST
DA MASTGEN
END AOCK
DAPCMF(1:0)
ADOCKF(7:0)
ADOCKF(15:8)
X
X
ADMAST
AD MASTGEN
ENA DOCK
ADPCMF(1:0)
X
DAFORM(2:0)
DASPIM
DAWL(2:0)
ADRTOL
ADFORM2:0)
ADSPIM
ADWL(2:0)
AMC KINV
DACKP
DASYNCP
DAMONO
ADCKP
AD SYNCP
ADMONO
ADHIZ
X
DAVOICE
DA96K
RXNH
ADVOICE
AD96K
ADNH
TXNH
SWRES
X
X
X
AMCKSIN
CKRANGE(2:0)
VLSHEN
PUSH BEN
HSDETEN
VLSHMSK
PUSH BMSK
HSDET MSK
OVFMSK
PORMSK
VLSH
PUSHB
HSDET
VLSHEV
PUSHBEV HSDETEV
OVFEV
POREV
X
X
SPIOHIZ
SPIOSEL(1:0)
IRQCMOS
OVFDA
OVFAD
AGCATT(3:0)
AGCDEC(3:0)
0000 0000
X
ENA GCLIN
ENAG CMIC
AGC RANGE
AGCLEV(3:0)
0000 0000 0000 0000
X
X
X
X
X
X
X
X
Note: X reserved, write zero
29/85
Control registers Caution:
STw5098
In the following Section 5: Control registers, reference to each entity is omitted. Each entity of the STw5098 has the same register set.
5.2
CR# (hex) CR0 (00h) CR1 (01h) CR2 (02h)
Supply and power control
Description Supply & power control #1 Power control #2 Power control #3 D7
POWER UP
D6
D5
D4
D3
D2
D1
D0
Def.
0000 0000 0000 0000 0000 0000
ENANA
ENAMCK
ENOSC
ENPLL
ENHSD
A24V
D12V
ENADCL
ENADCR
ENDACL
ENDACR
ENMICL
ENMICR
ENLINL
ENLINR
ENLOL
ENLOR
ENHPL
ENHPR
ENH PVCM
ENLS
ENMIXL
ENMIXR
Table 3.
Bits 7 6 5
CR0 description
Name Val. 1 0 1 0 1 0 1 CR0 description All the enabled analog and digital blocks are in power up All the device is in power down The analog blocks can be enabled All the analog blocks are in power down AMCK clock input pin is enabled AMCK clock input pin is disabled The Internal oscillator is enabled. The analog blocks use oscillator clock The internal oscillator is in power down The PLL is enabled The PLL is in power down The headset plug-in detector is enabled The headset plug-in detector is disabled Analog supply pins voltage range is 2.4V