This invention pertains to computing systems. In particular, this invention pertains to the arithmetic logic unit of a Reduced Instruction Set Computer (RISC) which incorporates simultaneous execution of different operations of complex calculations. With still greater particularity, the invention pertains to methods and apparatus for converting digital data into analog data in a RISC computer.
In many situations it is desirable to convert binary data into an analog signal. A common application is in audio equipment modern source materials such as Compact Disk (CD) Digital Video Disk (DVD), Computer Audio Formats such as MP3, MP4, AAC and OGG all store and read out audio/video (AV) information in digital form. In addition, Digital Signal Processing and most Digital Rights Management encoders deal with Digital Signals. Playback apparatus such as speakers, headphones and many video displays require an analog input. Digital signals, in addition, contain high frequency harmonics which result in distortion and damage to components when directly inputted to an analog component. This had led to a growing demand for inexpensive efficient Digital to analog converters (DAC).
The operation of a Digital to analog converter (DAC) is to convert a fixed point binary value into a physical quantity such as an electric voltage or current. Ideally, the voltage or current from a DAC is characterized by a linear function of the input binary value.
Assume a maximum voltage Vmax and a minimum voltage Vmin can be produced from a certain six bit DAC. One way to scale the voltage between Vmax and Vmin for a six bit DAC is to utilize Vmin as a base voltage and to apply an increment to this voltage ΔV (also termed the increment between voltages) defined as (Vmax−Vmin)/26. The possible range of voltage values for this example include Vmin, Vmin+ΔV, Vmin+2ΔV, Vmin+3ΔV, . . . , Vmin+(26−1) ΔV. This method of voltage scaling does not produce the precise maximum voltage, but if the bit width of the DAC were great enough, the difference between the last discrete voltage in the range and Vmax would be nearly identical.
Regardless of the bit width of the DAC there will always be gaps in the voltages produced as is the case for any discrete range. In practice the hardware DAC is of a fixed length and it is only possible to produce the scale of voltages from the bit width of the DAC. It is advantageous to utilize a method for digital to analog conversion which can produce greater resolution than a hardware DAC can provide.
The invention provides an apparatus to quickly and linearly convert binary data into analog information. The apparatus preferably utilizes an array of computers connected to each other by one drop busses. Use of this apparatus will bring digital signal procession into use even for the most simple customer applications. The method uses a computational procedure that takes advantage of the dispersed computing arrangement that is superior to existing methods in speed and accuracy.
The invention divides each word of an incoming digital stream of information into most significant and least significant portions. The most and least significant portions control the production of electrical charges which are added together to produce an analog electrical signal proportional to the values of the words in the digital stream.
The computer array 505 of
Table 1 is a table of the thirty two operation codes (sometimes referred to as op-codes) of this language, along with the hex, mnemonic, and binary representations. These op-codes are divided into two main categories, memory instructions and arithmetic logic unit (ALU) instructions, with sixteen op-codes in each division. The memory instructions are shown in the left half of Table 1 and the ALU instructions are shown in the right half of Table 1. It can be appreciated that one clear distinction between the divisions of op-codes is that the memory instructions contain a zero in the left-most bit whereas the ALU instructions contain a one in the left-most bit. Furthermore, this is the case regardless of whether the op-codes are viewed in their hex or binary representations.
The following description is a Forth embodiment for carrying out the hybrid digital to analog conversion method in node 23 of
Forth programs are written bottom up, meaning they are read from the bottom and compiling is done without forward references. However, the following Forth embodiment of the hybrid digital to analog conversion method is displayed in an execution order, and not necessarily the order in which the code would appear in a text file. The choice of labels for the Forth words is chosen to carefully reflect their function. For example, a Forth word calc_derivative will determine the derivative of a function, as this is the implied meaning. Stack comments are also shown in parenthesis next to the Forth word and give data stack 1040 of
The hybrid digital to analog conversion method is contained in the colon definition, : dac. Shown to the right of the colon definition beginning with the left paren and ending with the right paren is a comment. Inside the parenthesis is the contents of the data stack 1040 of
The Forth word prep_regs is shown as a macro followed by the stack effects comment in parenthesis. Like the Forth word suggests, prep_regs duty is to initialize (prepare) the A-register 1015 and B-register 1020 of
The Forth word prep_stks is shown as a macro followed by the stack effects comment in parenthesis where the stack effects also include the return stack effects in addition to just the data stack effects. The Forth word prep_stks is used to prepare the data and return stacks for use in upcoming Forth words. In executing the macro, the value of 0 initially on the data stack is duplicated and passed to the return stack, while a single value fetched from the down port is duplicated and left on the data stack.
The Forth word calc_hold1 is shown as a macro followed by the stack effects comment and is responsible for determining the length of time between t2 and t3 in the plot of
The value left on the data stack after the execution of the macro calc_hold1 is needed for use in calculating the timer interval between t1 and t2 which is a delay before the first charging of the capacitor 2025 of
The Forth word calc_amp2 is shown as a macro followed by the stack effects comment and is responsible for determining the value which will be passed to the six bit hardware DAC 2020 of
The Forth word use_hardware_dac is shown as a macro followed by the stack effects comment and is responsible for sending the correct numerical values to the six bit hardware DAC 2020 of
While various embodiments have been described above, it should be understood that they have been presented by way of example only, and that the breadth and scope of the invention should not be limited by any of the above described exemplary embodiments, but should instead be defined only in accordance with the following claims and their equivalents.
The apparatus illustrated in
The inventive method illustrated in
Since the method of the present invention may be readily produced and integrated with existing tasks, input/output devices and the like, and since the advantages as described herein are provided, it is expected that they will be readily accepted in the industry. For these and other reasons, it is expected that the utility and industrial applicability of the invention will be both significant in scope and long lasting in duration.
This application claims the benefit of provisional U.S. Patent Application Ser. No. 60/962,559 filed on Jul. 30, 2007 entitled “Digital to Analog Converter” by at least one common inventor which is incorporated herewith by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
60962559 | Jul 2007 | US |