The present invention relates in general to receiving Direct Stream Digital (DSD) serial data and more particularly to methods and apparatus for receiving a DSD bit stream in phase modulation mode using a single clock signal.
Multiple-bit pulse code modulation (PCM) is a widely used method of converting an analog audio signal into digital form for storage on a digital medium, such as a compact disk (CD). Generally, an analog-to-digital converter (ADC) samples the amplitude of the input analog signal at a given sampling rate (frequency) Fs to produce a stream of multiple-bit samples representing the amplitude value of the analog signal at each sample time. In standard CDs, the digital data are typically recorded with 16-bit samples and a 44.1 kHz sample rate; however, newer audio formats may use up to 24-bit samples and up to 192 kHz sample rates.
During playback, a digital-to-analog converter (DAC) subsystem converts the PCM samples back to an analog waveform. Delta-sigma DACs, based on a noise-shaping delta-sigma modulator and a following DAC output stage, have found widespread use because delta-sigma DACs generally provide high noise attenuation in the signal band and are relatively inexpensive to manufacture. Typically, prior to conversion, the PCM data are passed through an interpolation filter to increase the sample rate. Using oversampling, the delta-sigma modulator spreads the quantization noise power across the oversampling frequency band, which is typically much greater than the input signal bandwidth. Additionally, the delta sigma modulator performs noise shaping by acting as a lowpass filter to the input signal and a highpass filter to the noise; most of the quantization noise power is thereby shifted out of the signal band. The noise-shaped modulator output signal is ultimately converted to analog form by the output DAC stage, such as a switched-capacitor or current steering DAC.
A more recently developed digital recording system, known as “Super Audio CD” or “SACD”, records the single-bit audio data stream output by a high-order, single-bit, delta-sigma modulator on a digital storage medium, similar to a DVD-type disk. This format is also commonly referred to as a Direct Stream Digital (DSD) format. In theory, a DSD bit-stream may be supplied directly to a delta-sigma DAC for conversion to an analog audio signal during playback without requiring any digital processing.
Two bit streaming modes, or protocols, have been specified for sending a DSD bit-stream to another device, such as a DAC. In the first or normal mode, a device sending the DSD bit-streams drives the data lines according to the value of the data bits being sent. A bit clock is provided to indicate when the data bits are valid. A receiving device may store the data bits on each rising edge of the bit clock.
The second mode, which is the phase modulation mode, is similar to the normal mode in that the sending device drives the data bits onto the data lines, but the data is stored on a falling edge of the bit clock signal. Furthermore, in the phase modulation mode, each data bit is sent as a pair of bits comprising the actual data bit followed by an inverted data bit. Thus, a ‘0’ data bit is sent as a ‘0’ followed by a ‘1’, and a ‘1’ bit is sent as a ‘1’ followed by a ‘0’. A phase clock is provided to distinguish a data bit from its inverse. When the phase clock is low, the data bit is on the data line, whereas the inverted data bit is present when the phase clock is high.
The two modes of data transmission are further classified according to whether the receiving device provides the bit clock signal. When the receiving device is operating in slave mode the sending device provides the bit clock. On the other hand, the receiving device provides the bit clock when it is configured to operate in a master mode.
Transmitting the DSD bit streams using the phase modulation mode provides redundancy in the bit stream, which may provide some degree of robustness. However, the phase modulation mode requires two clock lines, which may be undesirable. For example, a design for an integrated circuit device may be constrained as to the total number of pins available and may be unable to accommodate two pins for the required clock signals. The need for two clock signals also increases the complexity of circuit boards and connectors and may cause problems with radiated electromagnetic interference.
Accordingly, it would be desirable to provide methods and apparatus for receiving phase modulated DSD bit streams in slave mode using only a single clock signal.
The principles of the present invention are embodied in circuits and methods for receiving a DSD bit stream in the phase modulated mode, and audio systems utilizing the same. The receiving circuitry uses either the bit clock or the phase clock in conjunction with the data signals to derive an internal signal that reliably indicates when the bits in the DSD bit stream are stable and may be read.
In a first embodiment of the invention, the circuitry derives the internal signal from the bit clock. A synchronization circuit synchronizes the internal signal with the bit stream to ensure the true data bits are read. In a second embodiment, the receiving circuitry uses a re-timing circuit to create an internal signal derived from the phase clock. In yet a third embodiment, the receiving circuitry is configurable to use either the bit clock or phase clocks to receive the DSD bit stream. The receiver circuitry includes the circuitry of the first and second embodiments. A configuration register is used to select which of the two circuits to use.
Circuitry embodying the inventive principles have substantial advantages over the prior art. For example, receiving circuitry using a single clock signal uses fewer pins in an integrated circuit package. In addition, devices or systems receiving bit-streams according to the principles of the invention require fewer signals to be routed between devices sending and receiving the DSD bit streams. These features may reduce the cost and complexity of products using the present invention.
For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
a and 5b are timing diagrams showing the operation of the circuit of
The principles of the present invention and their advantages are best understood by referring to the illustrated embodiment depicted in
DAC subsystem 102 converts the bit stream into an analog signal corresponding to an audio signal to be reproduced. The analog signal is output to analog audio processor 103 for further processing before amplification by audio amplifier 104. Processing operations provided by analog/audio processor 103 include volume control, frequency equalization, and audio matrix decoding. Audio amplifier 104 receives the processed analog signal and amplifies it to a level suitable for driving speakers 105.
For convenience, the circuits in the illustrative embodiment of
In accordance with the principles of the present invention digital media drive 101 sends the DSD bit stream to DAC subsystem 102 using the phase modulation mode, with DAC subsystem 102 configured to operate in slave mode.
Referring to
When both clocks are present, it is trivial to store the data bits in a receiving device. A suitable circuit 300 for receiving data at DAC subsystem 102 (e.g., receiving or front end of DAC subsystem 102) of
The DATA line is connected to the “L” input of multiplexor 301. When PCLK is low, the state of the DATA line is passed though to flip-flop 302 and stored on the negative edge of BCLK. This event corresponds to time 201 in
When only one of the two signals BCLK and PCLK is available, it is more difficult to reliably read the true data bits. For example, when only BCLK is provided, it is possible to reliably store each bit in the DSD bit stream. However, without PCLK no signal exists to distinguish a true bit value from an inverted bit value. Similarly, when only PCLK is provided, it is possible to distinguish a true bit value from an inverted bit value. However, without BCLK, no signal exists to indicate when the data bits are valid and should be stored.
In accordance with the principles of the present invention, a device is able to receive a DSD bit stream using only one of the signals BCLK and PCLK. The device includes additional circuitry to internally generate a signal to replace the functionality of the missing signal. Preferrably, a device such as DAC Subsystem 102 of
In a first embodiment, the circuitry of the present invention is configured to operate using BCLK without PCLK. As described above, the value of DATA may be stored on the falling edges of BCLK because the data is stable at that time. However, the data and its inverse are transmitted on consecutive cycles of BCLK, so that the data should only be stored on every other falling edge of BCLK. Circuit 400 of
However, the polarity of BCLK/2 with respect to the data bits depends on the initial conditions of flip-flop 401. For example, if flip-flop 401 is initially set so its output is high, BCLK/2 may have the polarity shown in
By analyzing the sequence of bits on the DATA line, flip-flop 401 may be synchronized to the bit stream so that BCLK/2 has the desired polarity. A stream of alternating ones and zeros, such as . . . 1010101 . . . on the DATA line can either be interpreted as the ones being the true data bits and the zeros being the inverted bits or as the zeros being the true data and the ones being the inverted data. Thus, an alternating pattern provides no useful information for synchronizing flip-flop 401 to the DSD bit stream. However, a bit pattern including a pair of repeated bits is utilized to provide the necessary synchronization. For instance, a pattern of . . . 1001 . . . is interpreted such that the first one and the second zero are the true bit values, and the first zero and the second one are the inverted values. A bit pattern including . . . 0110 . . . would be interpreted such that the first zero and second one are the true bit values, and the first one and the second zero are the inverted values. In short, two consecutive 1's or 0's in the DSD bit stream provide the necessary information to start or synchronize flip-flop 401.
In one embodiment of the invention, a finite state machine (FSM) is implemented to monitor the bit stream on the DATA line. When two consecutive bits have the same value, a SYNC signal is generated to start flip-flop 401 in the correct state. A simplified state diagram for such a FSM is shown in
Receiving a ‘0’ bit while in any of states 601, 602, or 603, causes a transition to state 604. State 604 represents having received a single “0” bit. Receiving a second ‘0’ bit causes a transition to state 605 and the generation of a SYNC signal. Thus, state 615 represents having received two or more consecutive “0” bits. Receiving a “1” bit in either of states 604 or 605 result in a transition to state 602.
An exemplary circuit for generating the SYNC signal and storing the true data bits is shown in
On reset, flop-flops 701–705 are all cleared. On each falling edge of BCLK, flip-flop 701 stores the current bit value on the DATA line. At the same time, equivalence gate 706 compares the current bit value with the previous bit value stored by flip-flop 701 on the preceding falling edge of BCLK. An equivalence gate is a circuit that provides a high or true output only if its inputs match, and provides a low or false output if its inputs do not match. The result of the comparison is stored by flip-flop 702 on the falling edge of BCLK. The net effect is that the output of flip-flop 702 goes high when the current bit and previous bit match, thereby generating the necessary SYNC signal.
The circuit of
Flip-flop 703 is configured to provide an output at half the frequency of BLCK as described in connection with
As in
The circuit of
As described above, in the phase modulation mode, the data changes on every edge of the PCLK signal, alternating as a true data bit and an inverted data bit. Moreover, when PCLK is low, the true data is available. On the other hand, when PCLK is high, the inverted data is available. The difficulty is that according to the specification, the PCLK edge may occur anytime within a 20 ns window before or after the DATA line changes. As a result neither edge of PCLK may be used directly as a trigger to store the data bits.
On many digital systems, a high speed clock is provided that runs at a higher frequency than BCLK and PCLK. Also, a high speed master clock or MCLK typically runs at a rate at least four times faster than PCLK. A retiming circuit, such as that shown in
The exact position of the CAP pulse depends on the frequency and phase relationship between MCLK and PCLK; however, the circuit of
Although the invention has been described with reference to specific embodiments, these descriptions are not meant to be construed in a limiting sense. Various modifications of the disclosed embodiments as well as alternative embodiments of the invention will become apparent to persons skilled in the art upon reference to the description of the invention. It should be appreciated by those skilled in the art that the conception and the specific embodiment disclosed may be readily utilized as a basis for modifying or designing other structures for carrying out the same purposes of the present invention. It should also be realized by those skilled in the art that such equivalent constructions do not depart from the spirit and scope of the invention as set forth in the appended claims.
It is therefore, contemplated that the claims will cover any such modifications or embodiments that fall within the true scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
6255975 | Swanson | Jul 2001 | B1 |
6489909 | Nakao et al. | Dec 2002 | B2 |
6646582 | Watanabe | Nov 2003 | B2 |
6750693 | Duewer | Jun 2004 | B1 |
Number | Date | Country | |
---|---|---|---|
20040091063 A1 | May 2004 | US |