D/A converter exercises
Programmable voltage generator
Write a function that generates a given voltage using one of the DACs. The output current of the DACs flow through a resistor connected between the output and ground. The input parameters are: a number that selects one of the DACs, the voltage in mV units. The value of the used resistance is given by a constant or it can be an additional input parameter.