libsidplayfp  1.0.1
Static Public Member Functions
reSIDfp::Dac Class Reference

#include <Dac.h>

List of all members.

Static Public Member Functions

static void kinkedDac (double *dac, int dacLength, double _2R_div_R, bool term)

Detailed Description

Estimate DAC nonlinearity. The SID contains R-2R ladder, and some likely errors in the resistor lengths which result in errors depending on the bits chosen.

This model was derived by Dag Lem, and is port of the upcoming reSID version. In average, it shows a value higher than the target by a value that depends on the _2R_div_R parameter. It differs from the version written by Antti Lankila chiefly in the emulation of the lacking termination of the 2R ladder, which destroys the output with respect to the low bits of the DAC.

Parameters:
dacan array to be filled with the resulting analog values
dacLengththe dac array length
_2R_div_Rnonlinearity parameter, 1.0 for perfect linearity.
termiis the dac terminated by a 2R resistor? (6581 DACs are not)
Returns:
the analog value as modeled from the R-2R network.

The documentation for this class was generated from the following files: