SLES248A May 2009 – March 2015 PCM1795
PRODUCTION DATA.
NOTE
Information in the following applications sections is not part of the TI component specification, and TI does not warrant its accuracy or completeness. TI’s customers are responsible for determining suitability of components for their purposes. Customers should validate and test their design implementation to confirm system functionality.
The PCM1795 device is a software-controlled, differential current output DAC that can accept multiple formats of 16-, 24-, or 32-bit PCM audio data, DSD audio data, or TDMCA data. Because the PCM1795 is a current output part, in most cases a current to voltage stage is required before the signal is passed to the amplifier stage. A microcontroller or DSP can use SPI or I2C to control the PCM1795 with ZEROL and ZEROR as status pins for the outputs. The PCM1795 requires a 5-V analog supply, as well as a 3.3-V digital supply.
Figure 52 shows a typical application circuit for PCM mode operation.
The design of the application circuit is very important in order to actually realize the high S/N ratio of which the PCM1795 device is capable, because noise and distortion that are generated in an application circuit are not negligible.
In the third-order, low-pass filter (LPF) circuit of Figure 53, the output level of 2.1 V RMS and 123-dB signal-to-noise ratio is achieved.
Figure 54 shows a circuit for the DSD mode, which is a fourth-order LPF in order to reduce the out-of-band noise.
The current of the PCM1795 device on each of the output pins (IOUTL+, IOUTL–, IOUTR+, IOUTR–) is 4 mAPP at 0 dB (full-scale). The voltage output level of the current-to-voltage (I/V) converter, VI, is given by Equation 2.
where
An NE5534 operational amplifier is recommended for the I/V circuit to obtain the specified performance. Dynamic performance such as the gain bandwidth, settling time, and slew rate of the operational amplifier affects the audio dynamic performance of the I/V section.
The PCM1795 device voltage outputs are followed by differential amplifier stages that sum the differential signals for each channel, creating a single-ended I/V op-amp output. In addition, the differential amplifiers provide a low-pass filter function.
The operational amplifier recommended for the differential circuit is the low-noise type.
Figure 58 shows the connection diagram for an external digital filter.
For some applications, it may be desirable to use an external digital filter to perform the interpolation function, as it can provide improved stop-band attenuation when compared to the internal digital filter of the PCM1795 device.
The PCM1795 device supports several external digital filters, including:
The external digital filter application mode is accessed by programming the following bits in the corresponding control register:
The pins used to provide the serial interface for the external digital filter are illustrated in Figure 58. The word clock (WDCK) signal must be operated at 8 times or 4 times the desired sampling frequency, fS.
The PCM1795 device in the external digital filter interface mode supports right-justified audio formats including 16-bit, 24-bit, and 32-bit audio data, as shown in Figure 59. The audio format is selected by the FMT[2:0] bits of control register 18.
The PCM1795 device in an application using an external digital filter requires the synchronization of WDCK and the system clock. The system clock is phase-free with respect to WDCK. Interface timing among WDCK, BCK, DATA, DATAL, and DATAR is shown in Figure 60 and Table 32.
MIN | MAX | UNIT | ||
---|---|---|---|---|
t(BCY) | BCK pulse cycle time | 20 | ns | |
t(BCL) | BCK pulse duration, low | 7 | ns | |
t(BCH) | BCK pulse duration, high | 7 | ns | |
t(BL) | BCK rising edge to WDCK falling edge | 5 | ns | |
t(LB) | WDCK falling edge to BCK rising edge | 5 | ns | |
t(DS) | DATA, DATAL, DATAR setup time | 5 | ns | |
t(DH) | DATA, DATAL, DATAR hold time | 5 | ns |
The external digital filter mode is selected by setting DSD = 0 (register 20, B5) and DFTH = 1 (register 20, B4).
The external digital filter mode allows access to the majority of the PCM1795 mode control functions.
Table 33 shows the register mapping available when the external digital filter mode is selected, along with descriptions of functions that are modified when using this mode selection.
REGISTER | B15 | B14 | B13 | B12 | B11 | B10 | B9 | B8 | B7 | B6 | B5 | B4 | B3 | B2 | B1 | B0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Register 16 | R/W | 0 | 0 | 1 | 0 | 0 | 0 | 0 | X(1) | X | X | X | X | X | X | X |
Register 17 | R/W | 0 | 0 | 1 | 0 | 0 | 0 | 1 | X | X | X | X | X | X | X | X |
Register 18 | R/W | 0 | 0 | 1 | 0 | 0 | 1 | 0 | X | FMT2 | FMT1 | FMT0 | X | X | X | X |
Register 19 | R/W | 0 | 0 | 1 | 0 | 0 | 1 | 1 | REV | X | X | OPE | X | DFMS | X | INZD |
Register 20 | R/W | 0 | 0 | 1 | 0 | 1 | 0 | 0 | X | SRST | 0 | 1 | MONO | CHSL | OS1 | OS0 |
Register 21 | R/W | 0 | 0 | 1 | 0 | 1 | 0 | 1 | X | X | X | X | X | X | X | PCMZ |
Register 22 | R | 0 | 0 | 1 | 0 | 1 | 1 | 0 | X | X | X | X | X | X | ZFGR | ZFGL |
Default value: 000
FMT[2:0] | AUDIO DATA FORMAT SELECTION |
---|---|
000 | 16-bit right-justified format |
001 | 32-bit right-justified format |
010 | 24-bit right-justified format (default) |
Other | N/A |
Default value: 00
OS[1:0] | OPERATION SPEED SELECTION |
---|---|
00 | 8 times WDCK (default) |
01 | 4 times WDCK |
10 | 16 times WDCK |
11 | Reserved |
The effective oversampling rate is determined by the oversampling performed by both the external digital filter and the ΔΣ modulator. For example, if the external digital filter is 8× oversampling, and OS[1:0] = 00 is selected, then the ΔΣ modulator oversamples by 8×, resulting in an effective oversampling rate of 64×. The 16× WDCK oversampling rate is not available above a 100-kHz sampling rate. If the oversampling rate selected is 16× WDCK, the system clock frequency must be over 256 fS.
Figure 63 shows a connection diagram for DSD mode.
This mode is used for interfacing directly to a DSD decoder, which is found in Super Audio CD™ (SACD) applications.
The DSD mode is accessed by programming the following bit in the corresponding control register.
The DSD mode provides a low-pass filtering function. The filtering is provided using an analog FIR filter structure. Four FIR responses are available and are selected by the DMF[1:0] bits of control register 18.
The DSD bit must be set before inputting DSD data; otherwise, the PCM1795 erroneously detects the TDMCA mode and commands are not accepted through the serial control interface.
Several pins are redefined for DSD mode operation. These include:
For operation in DSD mode, the bit clock (DBCK) is required on pin 7 of the PCM1795. The frequency of the bit clock can be N times the sampling frequency. Generally, N is 64 in DSD applications.
The interface timing between the bit clock and DSDL and DSDR is required to meet the setup and hold time specifications shown in Figure 65 and Table 36.
MIN | MAX | UNIT | ||
---|---|---|---|---|
t(BCY) | DBCK pulse cycle time | 85(1) | ns | |
t(BCH) | DBCK high-level time | 30 | ns | |
t(BCL) | DBCK low-level time | 30 | ns | |
t(DS) | DSDL, DSDR setup time | 10 | ns | |
t(DH) | DSDL, DSDR hold time | 10 | ns |
The DSD interface mode is selected by setting DSD = 1 (register 20, B5).
REGISTER | B15 | B14 | B13 | B12 | B11 | B10 | B9 | B8 | B7 | B6 | B5 | B4 | B3 | B2 | B1 | B0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Register 16 | R/W | 0 | 0 | 1 | 0 | 0 | 0 | 0 | X(1) | X | X | X | X | X | X | X |
Register 17 | R/W | 0 | 0 | 1 | 0 | 0 | 0 | 1 | X | X | X | X | X | X | X | X |
Register 18 | R/W | 0 | 0 | 1 | 0 | 0 | 1 | 0 | X | X | X | X | DMF1 | DMF0 | X | X |
Register 19 | R/W | 0 | 0 | 1 | 0 | 0 | 1 | 1 | REV | X | X | OPE | X | X | X | X |
Register 20 | R/W | 0 | 0 | 1 | 0 | 1 | 0 | 0 | X | SRST | 1 | X | MONO | CHSL | OS1 | OS0 |
Register 21 | R | 0 | 0 | 1 | 0 | 1 | 0 | 1 | X | X | X | X | X | DZ1 | DZ0 | X |
Register 22 | R | 0 | 0 | 1 | 0 | 1 | 1 | 0 | X | X | X | X | X | X | ZFGR | ZFGL |
Default value: 00
DMF[1:0] | ANALOG-FIR PERFORMANCE SELECTION |
---|---|
00 | FIR-1 (default) |
01 | FIR-2 |
10 | FIR-3 |
11 | FIR-4 |
Plots for the four analog finite impulse response (FIR) filter responses are shown in Analog FIR Filter Performance in DSD Mode.
Default value: 00
OS[1:0] | OPERATING SPEED SELECTION |
---|---|
00 | fDBCK (default) |
01 | fDBCK/2 |
10 | Reserved |
11 | fDBCK/4 |
The OS bit in the DSD mode is used to select the operating rate of the analog FIR. The OS bits must be set before setting the DSD bit to '1'.
The PCM1795 device supports the time-division-multiplexed command and audio (TDMCA) data format to simplify the host control serial interface. TDMCA format is designed not only for the multichannel buffered serial port description (McBSP) of TI DSPs but also for any programmable devices. TDMCA format can transfer not only audio data but also command data, so that it can be used together with any kind of device that supports TDMCA format. The TDMCA frame consists of a command field, extended command field, and some audio data fields. Those audio data are transported to IN devices (such as a DAC) and/or from OUT devices (such as an ADC). The PCM1795 is an IN device. LRCK and BCK are used with both IN and OUT devices so that the sample frequency of all devices in a system must be the same. The TDMCA mode supports a maximum of 30 device IDs. The maximum number of audio channels depends on the BCK frequency.
The PCM1795 device recognizes the TDMCA mode automatically when it receives an LRCK signal with a pulse duration of two BCK clocks. If the TDMCA mode operation is not needed, the duty cycle of LRCK must be 50%. Figure 69 shows the LRCK and BCK timing that determines the TDMCA mode. The PCM1795 device enters TDMCA mode after two continuous TDMCA frames. Any TDMCA commands can be issued during the next TDMCA frame after entering TDMCA mode.
TDMCA requires six signals: four signals are for the command and audio data interface, and one pair for daisy-chaining. These signals can be shared as shown in Table 40. The DO signal has a 3-state output so that it can be connected directly to other devices.
TERMINAL NAME | TDMCA NAME | PROPERTY | DESCRIPTION |
---|---|---|---|
LRCK | LRCK | Input | TDMCA frame start signal; it must be the same as the sampling frequency |
BCK | BCK | Input | TDMCA clock; its frequency must be high enough to communicate a TDMCA frame within an LRCK cycle |
DATA | DI | Input | TDMCA command and audio data input signal |
MDO | DO | Output | TDMCA command data 3-state output signal |
MC | DCI | Input | TDMCA daisy-chain input signal |
MS | DCO | Output | TDMCA daisy-chain output signal |
TDMCA mode also supports a multichip implementation in one system. This capability means that a host controller (DSP) can simultaneously support several TDMCA devices, which can be of the same type or different types, including PCM devices. The PCM devices are categorized as either IN devices, OUT devices, IN/OUT devices, and NO devices. The IN device has an input port to receive audio data; the OUT device has an output port to supply audio data; the IN/OUT device has both input and output ports for audio data; and the NO device has no port for audio data, but requires command data from the host. A DAC is an IN device; an ADC is an OUT device; a codec is an IN/OUT device; and a PLL is a NO device. The PCM1795 is an IN device. For the host controller to distinguish the devices, each device is assigned its own device ID by the daisy-chain. The devices obtain their own device IDs automatically by connecting the DCI to the DCO of the preceding device and the DCO to the DCI of the following device in the daisy-chain. The daisy-chains are categorized as the IN chain and the OUT chain, which are completely independent and equivalent. Figure 70 shows an example daisy-chain connection. If a system must chain the PCM1795 device and a NO device in the same IN or OUT chain, the NO device must be chained at the back end of the chain because it does not require any audio data. Figure 71 shows an example TDMCA system including an IN chain and an OUT chain with a TI DSP. For a device to get its own device ID, the DID signal must be set to '1' (see the Command Field section for details), and LRCK and BCK must be driven in the TDMCA mode for all PCM devices that are chained. The device at the top of the chain knows its device ID is '1' because its DCI is fixed high. Other devices count the BCK pulses and observe the respective DCI signal to determine ID and position in the chain. Figure 72 shows the initialization of each device ID.
In general, the TDMCA frame consists of the command field, extended command (EMD) field, and audio data fields. All fields are 32 bits long, but the lowest byte has no meaning. The MSB is transferred first for each field. The command field is always transferred as the first packet of the frame. The EMD field is transferred if the EMD flag of the command field is high. If any EMD packets are transferred, no audio data follow the EMD packets. This frame is for quick system initialization. All devices of a daisy-chain should respond to the command field and extended command field. The PCM1795 has two audio channels that can be selected by OPE (register 19). If the OPE bit is not set to high, those audio channels are transferred. Figure 73 shows the general TDMCA frame. If some DACs are enabled, but corresponding audio data packets are not transferred, the analog outputs are unpredictable.
The normal command field is defined as shown in Figure 75. When the DID bit (MSB) is '1', this frame is used only for device ID determination, and all remaining bits in the field are ignored.
The PCM1795 operates to get its own device ID for TDMCA initialization if this bit is high.
The EMD packet is transferred if this bit is high; otherwise, it is skipped. Once this bit is high, this frame does not contain any audio data. This is for system initialization.
A high setting designates OUT-chain devices, low designates IN-chain devices. The PCM1795 is an IN device, so the DCS bit must be set low.
The device ID is 5 bits long and it can be defined. These bits identify the order of a device in the IN or OUT daisy-chain. The top of the daisy-chain defines device ID 1 and successive devices are numbered 2, 3, 4, etc. All devices for which the DCI is fixed high are also defined as ID 1. The maximum device ID is 30 each in the IN and OUT chains. If a device ID of 0x1F is used, all devices are selected as broadcast when in the write mode. If a device ID of 0x00 is used, no device is selected.
If this bit is high, the command is a read operation.
The register ID is 7 bits long.
The command data are 8 bits long. Any valid data can be chosen for each register.
These bits are never transported when a read operation is performed.
The extended command field is the same as the command field, except that it does not have a DID flag. Figure 76 defines the extended command field.
The audio field is 32 bits long and the audio data are transferred MSB first, so the other fields must be filled with 0s as shown in Figure 77.
The TDMCA mode requires device ID and audio channel information, as previously described. The OPE bit in register 19 indicates audio channel availability and register 23 indicates the device ID. Register 23 is used only in the TDMCA mode; see the mode control register map of Table 10.
The command supports register write and read operations. If the command requests to read one register, the read data are transferred on DO during the data phase of the timing cycle. The DI signal can be retrieved at the positive edge of BCK, and the DO signal is driven at the negative edge of BCK. DO is activated one BCK cycle early to compensate for the output delay caused by high impedance. Figure 78 shows the TDMCA write and read timing.
DCO specifies the owner of the next audio channel in TDMCA mode operation. When a device retrieves its own audio channel data, DCO goes high during the last audio channel period. Figure 79 shows the DCO output timing in TDMCA mode operation. The host controller ignores the behavior of DCI and DCO. DCO indicates the last audio channel of each device. Therefore, DCI means the next audio channel is allocated.
If some devices are skipped because of no active audio channel, the skipped devices must notify the next device that the DCO will be passed through the next DCI. Figure 80 and Figure 81 show DCO timing with skip operation. Figure 82 and Table 41 show the ac timing of the daisy-chain signals.
MIN | MAX | UNIT | ||
---|---|---|---|---|
t(BCY) | BCK pulse cycle time | 20 | ns | |
t(LB) | LRCK setup time | 0 | ns | |
t(BL) | LRCK hold time | 3 | ns | |
t(DS) | DI setup time | 0 | ns | |
t(DH) | DI hold time | 3 | ns | |
t(DS) | DCI setup time | 0 | ns | |
t(DH) | DCI hold time | 3 | ns | |
t(DOE) | DO output delay(1) | 8 | ns | |
t(COE) | DCO output delay(1) | 6 | ns |