ROTATED-BIT PULSE WIDTH MODULATED DIGITAL-TO-ANALOG CONVERTER

Abstract: A pulse width modulated digital-to-analog converter having a digital-to-analog pulse generator for outputting width modulated pulses in accordance with a digital control value. The generator includes a clock (14) for generating a clocking signal, a counter (12) responsive to the clocking signal for generating repeating sequences of N-bit counts, each sequence representing a count interval, and a bit rotator (20) for receiving the sequences of N-bit counts and for rotating bit position of at least a most significant one of N-bits. A latch (24) holds the digital control value for comparison in the comparator (22) to each one of the rotated N-bit counts to output the width modulated pulses during the count interval.

Description: ROTATED-BIT PULSE WIDTH MODULATED ~~~ DIGITAL-TO- ANALOG CONVERTER Field of the Invention This invention relates to digital-to-analog converters. More particularly, the present invention relates to a digital-to-analog converter employing rotated-bit pulse width modulation in generating an analog value from a digital value. Background of the Invention The function of a digital-to-analog converter (DAC) is to convert a digital binary number into an analog current or voltage. DACs enjoy widespread use in a wide variety of applications. DACs have several known limitations. One limitation is the rate of change ("slew rate") and amount of settling time required for the output analog signal to change from one value to a new value in response to a new digital command value. Another limitation of a DAC is linearity and repeatability of its transfer curve. All DACs are output slew-rate limited and have dynamics which are difficult to model. While slew rate and settling time are effects of relatively short duration, in some applications, non-linearities and time delays may prove critical. One such application is to convert digital control values very rapidly into analog control currents for controlling movements of voice coil head positioner actuators in high performance disk drives. DACs may be implemented following a variety of architectures. One DAC architecture employs a switched precision resistance ladder. Another approach employs pulse width modulation (PWM) followed by low pass filtering. This other approach is frequently favored for inclusion with other digital circuitry in very large scale, application specific integrated circuit chips. The present invention relates to the PWM DAC technique and to its implementing structure. Conventional PWM DACs frequently employ a latch, a free-running rollover counter and a digital comparator in order to generate a two-level PWM waveform. Each incremental count reached by the rollover counter is compared with a command value held in the latch. When a maximum count value is reached, the counter rolls over to zero or a preset count value and resumes incremental counting. If an incremental count value is greater than the command value, the comparator output is true, otherwise it is false. Thus, the comparator puts out a pulse having a duty cycle or width which varies in accordance with the digital command value held in the latch. An analog low pass filter following the comparator is required to convert the two-level waveform into an analog signal proportional to the pulse width, thereby completing the conversion from digital domain to analog domain. One drawback of the PWM conversion approach is that relatively substantial low pass filtering is required to reduce output ripple of the conventional two-level waveform generated within a single count interval. The substantial low pass filtering has an undesirable effect of slowing the rate of change of the filtered analog signal (increased settling time), and therefore imposes a speed limitation upon analog signal level changes (slewing rate) in the output of the PWM-based DAC. In the example of the conventional PWM DAC given above one pulse of controlled width is generated at the output of the comparator for each rollover count cycle of the rollover counter. The low pass filter, typically implemented with resistance and capacitance elements, will typically require a relatively large capacitor to provide adequate smoothing to the relatively low frequency pulse in order to minimize ripple. The time constant of the low pass filter is therefore relatively long, imposing an undesirable limitation upon DAC slewing rate and settling time. If a smaller value capacitor were used, output filtering would be incomplete, and the output analog signal would undesirably include pulse transients and ripple components. Thus, a hitherto unsolved need has remained for a PWM DAC which achieves a smooth analog output at a relatively fast slewing rate. Summary of the Invention with Objects A general object of the present invention is to provide an improved, simplified digital pulse generator and method for generating width modulated pulses in a manner overcoming limitations and drawbacks of prior approaches. Another object of the present invention is to employ a bit rotation in order to increase pulse frequency within a count interval of a PWM DAC without increasing clocking rate, or digital circuit complexity. One more object of the present invention is to provide a rotated bit PWM generator within a DAC in which the degree of bit rotation is electrically programmable in real time. In accordance with principles of the present invention, a PWM DAC includes a digital to analog pulse generator for generating width modulated pulses in accordance with a digital control value. The generator includes a clock for generating a clocking signal, a counter responsive to the clocking signal for generating repeating sequences of N-bit counts, each sequence representing a count interval, a bit rotator for receiving the sequences of N- bit counts and for rotating bit position of at least a most significant one of N-bits, a latch for holding the digital control value, and a comparator for comparing the digital control value with each one of the rotated N-bit counts to put out the width modulated pulses during the count interval in accordance with the relation P = 2^ } where 2N is the number of clock cycles in the count interval. The number of pulse- width-modulated pulses output during a count interval is 2^- where R is the number of bit positions which are rotated. The bit rotator may comprise a fixed pattern of rotated bit positions; or more preferably include N multiplexers, each having R inputs, where R equals the number of bit rotation options provided. In this preferred arrangement the multiplexers are controlled by a common bit rotation control value applied over a common control bus. In a related aspect of the invention, a method for generating width modulated pulses in accordance with a digital control value comprises the steps of: generating a clocking signal, generating repeating sequences of N-bit counts by repeatedly counting a sequence marked by the clocking signal, each sequence representing a count interval, rotating bit position of at least a most significant one of N-bits, latching the digital control value, and comparing the digital control value with each one of the rotated N-bit counts to generate the width modulated pulses during the count interval in accordance with the relation P = 2^ ? where 2^ is the number of clock cycles in the count interval. The number of pulse-width-modulated pulses output during a count interval is 2& where R is the number of bit positions which are rotated. These and other objects, advantages, aspects and features of the present invention will be more fully understood and appreciated by those skilled in the art upon consideration of the following detailed description of a preferred embodiment, presented in conjunction with the accompanying drawings. Brief Description of the Drawings In the Drawings: Fig. 1 is a block diagram of a PWM DAC incoφorating bit-rotation principles of the present invention. Fig. 2 is a block diagram of a programmable bit rotator for inclusion within the Fig. 1 DAC. Fig. 3 is a block diagram of one single bit ripple comparator element within the Fig. 1 comparator. Fig. 4 is a truth table for the Fig. 3 comparator element. Fig. 5 is a series of graphs relating bit rotation to pulse width number and duty cycle for pulses put out by the Fig. 1 PWM DAC in response to a half-duty cycle control command value during a single count cycle. Fig. 6 represents an output spectrum from the comparator of the Fig. 1 circuit resulting from zero-bit rotation. Fig. 7 represents an output spectrum from the comparator of the Fig. 1 circuit resulting from one-bit rotation. Fig. 8 represents an output spectrum from the comparator of the Fig. 1 circuit resulting from two-bit rotation. Fig. 9 represents an output spectrum from the comparator of the Fig. 1 circuit resulting from three-bit rotation. Detailed Description of a Preferred Embodiment A DAC 10 incoφorating principles of the present invention is shown in Fig. 1. The DAC 10 includes a rollover counter 12 clocked by a free running clock 14 at a predetermined high clocking frequency. The rollover counter 12 includes an incrementor 16 and a register 18 for cooperatively generating a progressively incrementing sequence of six-bit binary values during each count cycle. Each count cycle ends when a maximum or overflow count is reached, and the counter resets to zero count and begins counting up again in the next count cycle. The DAC 10 also includes a bit rotator 20 implementing aspects of the present invention. The bit rotator 20 rotates the bit order of one or more of the six bits of each count value coming out of the counter 12, and passes the rotated bit values to a six stage, six bit comparator 22. The comparator 22 also receives six bit control values from a register 24. The register 24 holds the control values received from a bus 26. In the present example, the bus 26 extends from a servo controller which generates the six bit digital control values for controlling a voice coil motor within a head positioner servo loop of a disk drive. The six stage comparator 22 receives the bit-rotated count value on a first input path (a[5-0] bus) and the latched control value on a second input path (b[5-0] bus). The comparator 22 compares each rotated-bit value on the first path with the latched control value on the second path, for so long as the latched control value is larger than each rotated-bit count value compared by the comparator 22, a logical true value is put out as a PWM pulse over a path 28 to a low pass filter 30 which filters the PWM pulse into an analog signal. The analog signal is then passed through a voice coil motor driver amplifier 32 and applied to a voice coil 34 of the voice coil motor in order to reposition a data transducer head relative to a rotating disk within the disk drive. The register 18 within counter 12 shown in Fig. 1 stores an N-bit value (N=6 in the present example). The register 18 is a clocked storage element that stores the N-bit value at its input pins upon assertion of the clock signal from the free running clock 14. This stored value is driven to the output of the register 18 until a new value is stored at the next clock pulse. The incrementor 16 is preferably combinatorial logic having an input connected to the output of the register 18. The incrementor 16 generates a value m+l from a value m at the output of the register 18. When the input is the maximum value that can be expressed as an N-bit number (e.g. 1 1 1 11 1 for N=6), the incrementor's output is zero. More precisely, the output of the incrementor 16 is (m+l)mod2N, where m is the input and N is the bit width of the incrementor. Accordingly, the clocked register 18 and the incrementor 16 implement the counter 12 which outputs a sequence of numbers, each number being incremented by one upon assertion of each clock, and rolling over to zero when the number reaches all ones. The bit rotator 20 may implement a fixed bit rotation strategy, or a variable bit number rotation strategy. A fixed bit rotation strategy is suggested by Fig. 1 , while a programmable bit number rotation strategy may be realized by the Fig. 2 circuit. For an implementation using a fixed amount of rotation (e.g. 1 bit) the rotator 20 is nothing more than a static rearrangement of the connection paths between the counter 12 and the comparator 22, as shown in Fig. 1 for the case of a one-bit rotation of a six- bit count value. In the Fig. 1 example, the high order bit (bit[5]) from the counter 12 is rotated to become the low order comparator bit (bit a[0]), and the other five bits connecting to the comparator 22 are respectively rotated one bit position toward the high order bit position. An electronically-selectable bit rotator 20' is illustrated in Fig. 2. Multiplexers 21 which total N in number may selectively provide up to N-1 bit rotation programmable options. In the Fig. 2 example, six three-input multiplexers 21a, 21b, 21c, 2 Id, 21 e, and 2 If have inputs which are connected to illustrated bit positions of the counter 12, in order to select between available bit rotation options. The multiplexers 2 la-f are controlled via a common digital control path 23, which may be controlled by a disk drive controller writing a rotation value to a control latch (not shown). The rotation value will then be applied over the control bus 23 to select the bit rotation degree. When the a[N] inputs of the multiplexers 2 la- f are selected, no bit rotation occurs, and the DAC 10 operates conventionally. When the b[N] inputs are selected, a one-bit rotation is applied. When the c[N] inputs are selected, a two-bit rotation is applied, etc. The comparator 22 comprises a series of simple ripple comparators connected in tandem as shown in Fig. 1. Fig. 3 shows a comparator element 22n formed of combinatorial logic, and Fig. 4 sets forth a truth table applicable to the logic comprising the exemplary single bit comparator element 22n. As configured in Fig. 1, the comparator 22 puts out one or more pulses of variable duty cycle for each count cycle of the counter. Fig. 5 sets forth pulse generation examples for bit rotations of 0-5. As can be appreciated by inspection of Fig. 5, the number of pulses (P) emitted by the comparator 22 for each counter cycle is consistent with an expression P = 2R where P is the number of pulses generated at the output 28, and R is the bit rotation number imposed by the bit rotator 20. Bit rotations for R=0, R=l , R=2, R=3, R=4 and R=5 are shown in Fig. 5. If, for example, the counter 12 counts from 0-63, and the control value held in the register 24 is 32 (50% duty cycle command), without bit rotation, the output pulse (0) has a single, 32 count interval. With a bit rotation of 1 , the output pulse sequence (1) per count cycle is two equally spaced apart pulses, each having a duration of 16 counts. With a bit rotation of 2, the output pulse sequence (2) is four equally spaced apart pulses, each having a duration of 8 counts. With a bit rotation of 3, the output pulse sequence (3) is eight equally spaced apart pulses, each having a duration of 4 counts. With a bit rotation of 4, the output pulse sequence (4) is sixteen equally spaced apart pulses, each having a duration of 2 counts. Figs. 6-9 provide tables of binary patterns put out by the comparator 22 depending upon the bit rotation value R. The left-most column of data in Figs. 6-9 represents the digital control values (signed values establish current direction and magnitude from a midpoint (absolute count 32) of the " available dynamic range). As shown in Fig. 6, when the rotation value R is zero, there is no rotation, and the Fig. 1 PWM DAC functions conventionally. In Fig. 7, with R=l , two pulses (Is) having locations and duration as graphed are generated. In Fig. 8, with R=2, four pulses are generated, and in Fig. 9, with R=3, eight pulses per count interval are generated. Fig. 9 also illustrates that at each end of the dynamic range, the number of pulses smoothly decreases in incremental fashion from eight pulses to one or zero pulse. Thus, the present implementation achieves essentially a smooth, glitchless transition to zero or maximum duty cycle. From the foregoing description it will be appreciated that the number N of bit positions may be a number other than 6, such as 9 or 12. Further, by providing bit rotation, the PWM DAC 10 may be readily realized with an optimized low pass filter 30, having resistance and capacitance elements selected on the basis of clocking rate of the clock 14, and number R of bit positions rotated, to achieve an essentially ripple-free analog signal output with minimized low pass filter for controlling e.g. current passing through the voice coil 34. The counter 12, clock 14, rotator 20, and comparator 22 of the DAC 10 may readily be formed and included as digital logic circuit elements within a large scale digital mode disk drive ASIC. One example of a disk drive ASIC which would be improved by inclusion of a DAC following principles of the present invention is described as drive ASIC 202 shown in Fig. 8 of commonly assigned U.S. Patent No. 5,255,136 to Machado et al., entitled: "High Capacity Submicro- Winchester Fixed Disk Drive", the disclosure thereof being incoφorated herein by reference. To those skilled in the art, many changes and modifications will be readily apparent from consideration of the foregoing description of a preferred embodiment without departure from the spirit of the present invention, the scope thereof being more particularly pointed out by the following claims. The descriptions herein and the disclosures hereof are by way of illustration only and should not be construed as limiting the scope of the present invention which is more particularly pointed out by the following claims.

Claims: What is claimed is: 1. A digital to analog pulse generator for generating width modulated pulses in accordance with a digital control value, comprising: a clock for generating a clocking signal, a counter responsive to the clocking signal for generating repeating sequences of N-bit counts, each sequence representing a count interval, a bit rotator for receiving the sequences of N-bit counts and for rotating bit position of at least a most significant one of N-bits, a latch for holding the digital control value, a comparator for comparing the digital control value with each one of the rotated N-bit counts to put out the width modulated pulses during the count interval in accordance with the relation P = 2^, where 2^ is the number of clock cycles in the count interval and wherein a number of pulse- width-modulated pulses output during a count interval is 2^, where R is the number of bit positions which are rotated. 2. The digital to analog pulse generator set forth in claim 1 wherein the bit rotator comprises a fixed pattern of rotated bit positions. 3. The digital to analog pulse generator set forth in claim 1 wherein the bit rotator comprises N multiplexers, each having R inputs where R equals the number of bit rotations, the multiplexers being controlled by a common bit rotation control value applied over a common control bus. 4. The digital to analog pulse generator further comprising a low pass filter connected to the comparator to receive, accumulate and filter the width modulated pulses to produce an analog control signal. 5. The digital to analog pulse generator set forth in claim 4 further comprising a driving amplifier connected to drive a voice coil motor of a disk drive in accordance with the analog control signal. 6. The digital to analog pulse generator set forth in claim 1 wherein the counter comprises an N-bit register clocked by the clocking signal, and an N-bit incrementor having an input m connected to an output of the N-bit register and having an output in accordance with (m+l)mod2N. 7. The digital to analog pulse generator set forth in claim 1 wherein N=6. 8. A method for generating width modulated pulses in accordance with a digital control value, comprising the steps of: generating a clocking signal, generating repeating sequences of N-bit counts by repeatedly counting a sequence marked by the clocking signal, each sequence representing a count interval, rotating bit position of at least a most significant one of N-bits, latching the digital control value, and comparing the digital control value with each one of the rotated N-bit counts to generate the width modulated pulses during the count interval in accordance with the relation P = 2^, where 2^ is the number of clock cycles in the count interval and wherein a number of pulse- width-modulated pulses output during a count interval is 2^, where R is the number of bit positions which are rotated.

Inventors: BUCH BRUCE D, BUCH, BRUCE, D.
Applicants: QUANTUM CORP, QUANTUM CORPORATION
Application year: 1997
Main classification: H03M5
IPC codes: H03M5